Module: MediumOfficeDetailed
- Defined in:
- lib/openstudio-standards/prototypes/common/buildings/Prototype.MediumOfficeDetailed.rb
Overview
Custom changes for the MediumOffice prototype. These are changes that are inconsistent with other prototype building types.
Instance Method Summary collapse
-
#add_door_infiltration(climate_zone, model) ⇒ Object
add hvac.
- #air_terminal_single_duct_vav_reheat_apply_initial_prototype_damper_position(air_terminal_single_duct_vav_reheat, zone_oa_per_area) ⇒ Object
- #model_custom_geometry_tweaks(building_type, climate_zone, prototype_input, model) ⇒ Object
- #model_custom_hvac_tweaks(building_type, climate_zone, prototype_input, model) ⇒ Object
- #model_custom_swh_tweaks(model, building_type, climate_zone, prototype_input) ⇒ Object
-
#update_waterheater_loss_coefficient(model) ⇒ Object
if adj && zone.secondaryDaylightingControl.is_initialized OpenStudio.logFree(OpenStudio::Info, ‘openstudio.model.Model’, “For #zonezone.name: Adjusting secondary daylight sensor to control #'sensor_2_frac' of the lighting.”) zone.setFractionofZoneControlledbySecondaryDaylightingControl(adj) sec_ctrl = zone.secondaryDaylightingControl.get if adj x = adj[0] y = adj[1] z = adj[2] OpenStudio.logFree(OpenStudio::Info, ‘openstudio.model.Model’, “For #zonezone.name: Adjusting secondary daylight sensor position to [#x, #y, #z].”) sec_ctrl.setPositionXCoordinate(x) sec_ctrl.setPositionYCoordinate(y) sec_ctrl.setPositionZCoordinate(z) end end.
Instance Method Details
#add_door_infiltration(climate_zone, model) ⇒ Object
add hvac
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.MediumOfficeDetailed.rb', line 33 def add_door_infiltration(climate_zone, model) # add extra infiltration for entry door in m3/s (there is no attic in 'DOE Ref Pre-1980') unless template == 'DOE Ref 1980-2004' || template == 'DOE Ref Pre-1980' entry_space = model.getSpaceByName('Lounge_Bot').get infiltration_entrydoor = OpenStudio::Model::SpaceInfiltrationDesignFlowRate.new(model) infiltration_entrydoor.setName('entry door Infiltration') infiltration_per_zone_entrydoor = 0 if template == '90.1-2004' infiltration_per_zone_entrydoor = 1.04300287 infiltration_entrydoor.setSchedule(model_add_schedule(model,'OfficeMedium INFIL_Door_Opening_SCH')) elsif template == '90.1-2007' || template == '90.1-2010'|| template == '90.1-2013' case climate_zone when 'ASHRAE 169-2006-1A', 'ASHRAE 169-2006-2A', 'ASHRAE 169-2006-1B', 'ASHRAE 169-2006-2B' infiltration_per_zone_entrydoor = 1.04300287 infiltration_entrydoor.setSchedule(model_add_schedule(model, 'OfficeMedium INFIL_Door_Opening_SCH')) else infiltration_per_zone_entrydoor = 0.678659786 infiltration_entrydoor.setSchedule(model_add_schedule(model, 'OfficeMedium INFIL_Door_Opening_SCH')) end end infiltration_entrydoor.setDesignFlowRate(infiltration_per_zone_entrydoor) infiltration_entrydoor.setSpace(entry_space) end end |
#air_terminal_single_duct_vav_reheat_apply_initial_prototype_damper_position(air_terminal_single_duct_vav_reheat, zone_oa_per_area) ⇒ Object
136 137 138 139 140 141 142 143 |
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.MediumOfficeDetailed.rb', line 136 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' ? 0.2 : 0.3 # Set the minimum flow fraction air_terminal_single_duct_vav_reheat.setConstantMinimumAirFlowFraction(min_damper_position) return true end |
#model_custom_geometry_tweaks(building_type, climate_zone, prototype_input, model) ⇒ Object
131 132 133 134 |
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.MediumOfficeDetailed.rb', line 131 def model_custom_geometry_tweaks(building_type, climate_zone, prototype_input, model) return true end |
#model_custom_hvac_tweaks(building_type, climate_zone, prototype_input, model) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.MediumOfficeDetailed.rb', line 6 def model_custom_hvac_tweaks(building_type, climate_zone, prototype_input, model) OpenStudio.logFree(OpenStudio::Info, 'openstudio.model.Model', 'Started building type specific adjustments') model.getSpaces.sort.each do |space| if space.name.get.to_s == 'Lobby_Bot' 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 OpenStudio.logFree(OpenStudio::Info, 'openstudio.model.Model', 'Finished building type specific adjustments') # add extra infiltration for entry door add_door_infiltration(climate_zone, model) OpenStudio.logFree(OpenStudio::Info, 'openstudio.model.Model', 'Added door infiltration') return true end |
#model_custom_swh_tweaks(model, building_type, climate_zone, prototype_input) ⇒ Object
125 126 127 128 129 |
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.MediumOfficeDetailed.rb', line 125 def model_custom_swh_tweaks(model, building_type, climate_zone, prototype_input) update_waterheater_loss_coefficient(model) return true end |
#update_waterheater_loss_coefficient(model) ⇒ Object
if adj && zone.secondaryDaylightingControl.is_initialized
OpenStudio.logFree(OpenStudio::Info, 'openstudio.model.Model', "For #{zone.name}: Adjusting secondary daylight sensor to control #{adj['sensor_2_frac']} of the lighting.")
zone.setFractionofZoneControlledbySecondaryDaylightingControl(adj['sensor_2_frac'])
sec_ctrl = zone.secondaryDaylightingControl.get
if adj['sensor_2_xyz']
x = adj['sensor_2_xyz'][0]
y = adj['sensor_2_xyz'][1]
z = adj['sensor_2_xyz'][2]
OpenStudio.logFree(OpenStudio::Info, 'openstudio.model.Model', "For #{zone.name}: Adjusting secondary daylight sensor position to [#{x}, #{y}, #{z}].")
sec_ctrl.setPositionXCoordinate(x)
sec_ctrl.setPositionYCoordinate(y)
sec_ctrl.setPositionZCoordinate(z)
end
end
end
end
return true
end
115 116 117 118 119 120 121 122 123 |
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.MediumOfficeDetailed.rb', line 115 def update_waterheater_loss_coefficient(model) case template when '90.1-2004', '90.1-2007', '90.1-2010', '90.1-2013', 'NECB2011' model.getWaterHeaterMixeds.sort.each do |water_heater| water_heater.setOffCycleLossCoefficienttoAmbientTemperature(7.561562668) water_heater.setOnCycleLossCoefficienttoAmbientTemperature(7.561562668) end end end |