Module: LargeOffice
- Defined in:
- lib/openstudio-standards/prototypes/common/buildings/Prototype.LargeOffice.rb
Overview
Custom changes for the LargeOffice prototype. These are changes that are inconsistent with other prototype building types.
Instance Method Summary collapse
- #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
Instance Method Details
#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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.LargeOffice.rb', line 6 def model_custom_hvac_tweaks(building_type, climate_zone, prototype_input, model) system_to_space_map = define_hvac_system_map(building_type, climate_zone) system_to_space_map.each do |system| # find all zones associated with these spaces thermal_zones = [] system['space_names'].each do |space_name| space = model.getSpaceByName(space_name) if space.empty? OpenStudio.logFree(OpenStudio::Error, 'openstudio.model.Model', "No space called #{space_name} was found in the model") return false end space = space.get zone = space.thermalZone if zone.empty? OpenStudio.logFree(OpenStudio::Error, 'openstudio.model.Model', "No thermal zone was created for the space called #{space_name}") return false end thermal_zones << zone.get end return_plenum = nil unless system['return_plenum'].nil? return_plenum_space = model.getSpaceByName(system['return_plenum']) if return_plenum_space.empty? OpenStudio.logFree(OpenStudio::Error, 'openstudio.model.Model', "No space called #{system['return_plenum']} was found in the model") return false end return_plenum_space = return_plenum_space.get return_plenum = return_plenum_space.thermalZone if return_plenum.empty? OpenStudio.logFree(OpenStudio::Error, 'openstudio.model.Model', "No thermal zone was created for the space called #{system['return_plenum']}") return false end return_plenum = return_plenum.get end end return true end |
#model_custom_swh_tweaks(model, building_type, climate_zone, prototype_input) ⇒ Object
57 58 59 60 |
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.LargeOffice.rb', line 57 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
47 48 49 50 51 52 53 54 55 |
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.LargeOffice.rb', line 47 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(11.25413987) water_heater.setOnCycleLossCoefficienttoAmbientTemperature(11.25413987) end end end |