class NECB2011SmallOffice

This class represents a prototypical NECB2011 SmallOffice.

Constants

BUILDING_TYPE
TEMPLATE

Attributes

building_story_map[RW]
geometry_file[RW]
lookup_building_type[RW]
prototype_database[RW]
prototype_input[RW]
space_type_map[RW]
system_to_space_map[RW]

Public Class Methods

new() click to toggle source
Calls superclass method NECB2011::new
# File lib/openstudio-standards/prototypes/common/do_not_edit_metaclasses.rb, line 34231
def initialize
  super()
  @building_type = BUILDING_TYPE
  @template = TEMPLATE
  @instvarbuilding_type = @building_type
  @prototype_input = self.standards_lookup_table_first(table_name: 'prototype_inputs', search_criteria: {'template' => "NECB2011",'building_type' => "SmallOffice" })
  if @prototype_input.nil?
    OpenStudio.logFree(OpenStudio::Error, 'openstudio.standards.Model', "Could not find prototype inputs for #{{'template' => "NECB2011",'building_type' => "SmallOffice" }}, cannot create model.")
    #puts JSON.pretty_generate(standards_data['prototype_inputs'])
    raise("Could not find prototype inputs for NECB2011 SmallOffice, cannot create model.")
    return false
  end
  @lookup_building_type = self.model_get_lookup_name(@building_type)
  #ideally we should map the data required to a instance variable.
  @geometry_file = 'geometry/' + self.class.name + '.osm'
  hvac_map_file =  'geometry/' + self.class.name + '.hvac_map.json'
  # @system_to_space_map = load_hvac_map(hvac_map_file) # No HVAC map json files for NECB
  self.set_variables()
end

Public Instance Methods

define_building_story_map(building_type, climate_zone) click to toggle source

Returns the mapping between the names of the spaces in the geometry .osm file and the building story that they are located on.

# File lib/openstudio-standards/prototypes/common/do_not_edit_metaclasses.rb, line 34275
def define_building_story_map(building_type, climate_zone)
   return @building_story_map
end
define_hvac_system_map(building_type, climate_zone) click to toggle source

Returns the mapping between the names of the spaces in the geometry .osm file and the HVAC system that will be applied to those spaces.

# File lib/openstudio-standards/prototypes/common/do_not_edit_metaclasses.rb, line 34268
def define_hvac_system_map(building_type, climate_zone)
  return @system_to_space_map
end
define_space_type_map(building_type, climate_zone) click to toggle source

Returns the mapping between the names of the spaces in the geometry .osm file and the space types available for this particular Standard.

# File lib/openstudio-standards/prototypes/common/do_not_edit_metaclasses.rb, line 34261
def define_space_type_map(building_type, climate_zone)
  return @space_type_map
end
model_modify_oa_controller(model) click to toggle source

Does nothing unless implmented by the specific standard

# File lib/openstudio-standards/prototypes/common/do_not_edit_metaclasses.rb, line 34280
def model_modify_oa_controller(model)
end
model_reset_or_room_vav_minimum_damper(prototype_input, model) click to toggle source

Does nothing unless implmented by the specific standard

# File lib/openstudio-standards/prototypes/common/do_not_edit_metaclasses.rb, line 34284
def model_reset_or_room_vav_minimum_damper(prototype_input, model)
end
model_update_exhaust_fan_efficiency(model) click to toggle source

update exhuast fan efficiency

@param model [OpenStudio::Model::Model] OpenStudio model object @return [Boolean] returns true if successful, false if not

# File lib/openstudio-standards/prototypes/common/do_not_edit_metaclasses.rb, line 34291
def model_update_exhaust_fan_efficiency(model)
  return true
end
model_update_fan_efficiency(model) click to toggle source

Does nothing unless implmented by the specific standard

# File lib/openstudio-standards/prototypes/common/do_not_edit_metaclasses.rb, line 34296
def model_update_fan_efficiency(model)
end
set_variables() click to toggle source

This method is used to extend the class with building-type-specific methods, as defined in Prototype.SomeBuildingType.rb. Each building type has its own set of methods that change things which are not common across all prototype buildings, even within a given Standard.

# File lib/openstudio-standards/prototypes/common/do_not_edit_metaclasses.rb, line 34255
def set_variables()
end