Module: SecondarySchool
- Defined in:
- lib/openstudio-standards/prototypes/common/buildings/Prototype.SecondarySchool.rb
Overview
Custom changes for the SecondarySchool prototype. These are changes that are inconsistent with other prototype building types.
AirTerminalSingleDuctVAVReheat collapse
-
#air_loop_hvac_supply_air_temperature_reset_type(air_loop_hvac) ⇒ String
Type of SAT reset for this building type.
-
#air_terminal_single_duct_vav_reheat_apply_initial_prototype_damper_position(air_terminal_single_duct_vav_reheat, zone_oa_per_area) ⇒ Boolean
Set the initial minimum damper position based on OA rate of the space and the template.
-
#model_transfer_air_target_and_source_zones(model) ⇒ Hash
List transfer air target and source zones, and air aflow (cfm) code_sections [90.1-2019_6.5.7.1], [90.1-2016_6.5.7.1].
Instance Method Summary collapse
-
#add_extra_equip_kitchen(model) ⇒ Boolean
add extra equipment for kitchen.
- #model_custom_daylighting_tweaks(building_type, climate_zone, prototype_input, model) ⇒ Object
-
#model_custom_geometry_tweaks(model, building_type, climate_zone, prototype_input) ⇒ Boolean
geometry adjustments specific to the prototype model.
-
#model_custom_hvac_tweaks(model, building_type, climate_zone, prototype_input) ⇒ Boolean
hvac adjustments specific to the prototype model.
-
#model_custom_swh_tweaks(model, building_type, climate_zone, prototype_input) ⇒ Boolean
swh adjustments specific to the prototype model.
-
#update_waterheater_ambient_parameters(model) ⇒ Boolean
update water heater ambient conditions.
Instance Method Details
#add_extra_equip_kitchen(model) ⇒ Boolean
add extra equipment for kitchen
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.SecondarySchool.rb', line 79 def add_extra_equip_kitchen(model) kitchen_space = model.getSpaceByName('Kitchen_ZN_1_FLR_1') kitchen_space = kitchen_space.get kitchen_space_type = kitchen_space.spaceType.get elec_equip_def1 = OpenStudio::Model::ElectricEquipmentDefinition.new(model) elec_equip_def2 = OpenStudio::Model::ElectricEquipmentDefinition.new(model) elec_equip_def1.setName('Kitchen Electric Equipment Definition1') elec_equip_def2.setName('Kitchen Electric Equipment Definition2') case template when '90.1-2004', '90.1-2007', '90.1-2010', '90.1-2013', '90.1-2016', '90.1-2019' elec_equip_def1.setFractionLatent(0) elec_equip_def1.setFractionRadiant(0.25) elec_equip_def1.setFractionLost(0) elec_equip_def2.setFractionLatent(0) elec_equip_def2.setFractionRadiant(0.25) elec_equip_def2.setFractionLost(0) if template == '90.1-2013' || template == '90.1-2016' elec_equip_def1.setDesignLevel(915) elec_equip_def2.setDesignLevel(570) elsif template == '90.1-2019' elec_equip_def1.setDesignLevel(555) elec_equip_def2.setDesignLevel(313.3) else elec_equip_def1.setDesignLevel(1032) elec_equip_def2.setDesignLevel(852) end # Create the electric equipment instance and hook it up to the space type elec_equip1 = OpenStudio::Model::ElectricEquipment.new(elec_equip_def1) elec_equip2 = OpenStudio::Model::ElectricEquipment.new(elec_equip_def2) elec_equip1.setName('Kitchen_Reach-in-Freezer') elec_equip2.setName('Kitchen_Reach-in-Refrigerator') elec_equip1.setSpaceType(kitchen_space_type) elec_equip2.setSpaceType(kitchen_space_type) elec_equip1.setSchedule(model_add_schedule(model, 'SchoolSecondary ALWAYS_ON')) elec_equip2.setSchedule(model_add_schedule(model, 'SchoolSecondary ALWAYS_ON')) end return true end |
#air_loop_hvac_supply_air_temperature_reset_type(air_loop_hvac) ⇒ String
Type of SAT reset for this building type
184 185 186 |
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.SecondarySchool.rb', line 184 def air_loop_hvac_supply_air_temperature_reset_type(air_loop_hvac) return 'oa' end |
#air_terminal_single_duct_vav_reheat_apply_initial_prototype_damper_position(air_terminal_single_duct_vav_reheat, zone_oa_per_area) ⇒ Boolean
Set the initial minimum damper position based on OA rate of the space and the template. Zones with low OA per area get lower initial guesses. Final position will be adjusted upward as necessary by Standards.AirLoopHVAC.apply_minimum_vav_damper_positions
171 172 173 174 175 176 177 178 |
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.SecondarySchool.rb', line 171 def air_terminal_single_duct_vav_reheat_apply_initial_prototype_damper_position(air_terminal_single_duct_vav_reheat, zone_oa_per_area) min_damper_position = template == '90.1-2010' || template == '90.1-2013' || template == '90.1-2016' || template == '90.1-2019' ? 0.2 : 0.3 # Set the minimum flow fraction air_terminal_single_duct_vav_reheat.setConstantMinimumAirFlowFraction(min_damper_position) return true end |
#model_custom_daylighting_tweaks(building_type, climate_zone, prototype_input, model) ⇒ Object
146 147 148 |
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.SecondarySchool.rb', line 146 def model_custom_daylighting_tweaks(building_type, climate_zone, prototype_input, model) return true end |
#model_custom_geometry_tweaks(model, building_type, climate_zone, prototype_input) ⇒ Boolean
geometry adjustments specific to the prototype model
157 158 159 160 161 |
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.SecondarySchool.rb', line 157 def model_custom_geometry_tweaks(model, building_type, climate_zone, prototype_input) # Set original building North axis OpenstudioStandards::Geometry.model_set_building_north_axis(model, 0.0) return true end |
#model_custom_hvac_tweaks(model, building_type, climate_zone, prototype_input) ⇒ Boolean
hvac adjustments specific to the prototype model
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.SecondarySchool.rb', line 11 def model_custom_hvac_tweaks(model, building_type, climate_zone, prototype_input) OpenStudio.logFree(OpenStudio::Info, 'openstudio.model.Model', 'Started building type specific HVAC adjustments') # add transformer # efficiency based on a 225 kVA transformer case template when '90.1-2004', '90.1-2007' transformer_efficiency = 0.974 when '90.1-2010', '90.1-2013' transformer_efficiency = 0.985 when '90.1-2016', '90.1-2019' transformer_efficiency = 0.989 else transformer_efficiency = nil end return true if transformer_efficiency.nil? # Change to output variable name in E+ 9.4 (OS 3.1.0) excluded_interiorequip_variable = if model.version < OpenStudio::VersionString.new('3.1.0') 'Electric Equipment Electric Energy' else 'Electric Equipment Electricity Energy' end model_add_transformer(model, wired_lighting_frac: 0.0194, transformer_size: 225000, transformer_efficiency: transformer_efficiency, excluded_interiorequip_key: '2 Elevator Lift Motors', excluded_interiorequip_meter: excluded_interiorequip_variable) # add extra equipment for kitchen add_extra_equip_kitchen(model) model.getSpaces.sort.each do |space| if space.name.get.to_s == 'Mech_ZN_1_FLR_1' model_add_elevator(model, space, prototype_input['number_of_elevators'], prototype_input['elevator_type'], prototype_input['elevator_schedule'], prototype_input['elevator_fan_schedule'], prototype_input['elevator_fan_schedule'], building_type) end end # change sizing method for zone model.getThermalZones.each do |zone| air_terminal = zone.airLoopHVACTerminal if air_terminal.is_initialized air_terminal = air_terminal.get if air_terminal.to_AirTerminalSingleDuctVAVReheat.is_initialized sizing_zone = zone.sizingZone sizing_zone.setCoolingDesignAirFlowMethod('DesignDay') end end end OpenStudio.logFree(OpenStudio::Info, 'openstudio.model.Model', 'Finished building type specific adjustments') return true end |
#model_custom_swh_tweaks(model, building_type, climate_zone, prototype_input) ⇒ Boolean
swh adjustments specific to the prototype model
140 141 142 143 144 |
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.SecondarySchool.rb', line 140 def model_custom_swh_tweaks(model, building_type, climate_zone, prototype_input) update_waterheater_ambient_parameters(model) return true end |
#model_transfer_air_target_and_source_zones(model) ⇒ Hash
List transfer air target and source zones, and air aflow (cfm) code_sections [90.1-2019_6.5.7.1], [90.1-2016_6.5.7.1]
193 194 195 196 197 198 199 |
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.SecondarySchool.rb', line 193 def model_transfer_air_target_and_source_zones(model) model_transfer_air_target_and_source_zones_hash = { 'Bathrooms_ZN_1_FLR_1 ZN' => ['Main_Corridor_ZN_1_FLR_1 ZN', 600.0], 'Bathrooms_ZN_1_FLR_2 ZN' => ['Main_Corridor_ZN_1_FLR_2 ZN', 600.0] } return model_transfer_air_target_and_source_zones_hash end |
#update_waterheater_ambient_parameters(model) ⇒ Boolean
update water heater ambient conditions
122 123 124 125 126 127 128 129 130 131 |
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.SecondarySchool.rb', line 122 def update_waterheater_ambient_parameters(model) model.getWaterHeaterMixeds.sort.each do |water_heater| if water_heater.name.to_s.include?('Booster') water_heater.resetAmbientTemperatureSchedule water_heater.setAmbientTemperatureIndicator('ThermalZone') water_heater.setAmbientTemperatureThermalZone(model.getThermalZoneByName('Kitchen_ZN_1_FLR_1 ZN').get) end end return true end |