Module: PrototypeBuilding::MediumOffice
- Defined in:
- lib/openstudio-standards/prototypes/Prototype.medium_office.rb
Class Method Summary collapse
- .custom_hvac_tweaks(building_type, template, climate_zone, prototype_input, model) ⇒ Object
- .custom_swh_tweaks(building_type, template, climate_zone, prototype_input, model) ⇒ Object
- .define_hvac_system_map(building_type, template, climate_zone) ⇒ Object
- .define_space_type_map(building_type, template, climate_zone) ⇒ Object
-
.update_waterheater_loss_coefficient(template, model) ⇒ Object
add hvac.
Class Method Details
.custom_hvac_tweaks(building_type, template, climate_zone, prototype_input, model) ⇒ Object
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/openstudio-standards/prototypes/Prototype.medium_office.rb', line 58 def self.custom_hvac_tweaks(building_type, template, climate_zone, prototype_input, model) OpenStudio.logFree(OpenStudio::Info, 'openstudio.model.Model', 'Started building type specific adjustments') model.getSpaces.each do |space| if space.name.get.to_s == 'Core_bottom' model.add_elevator(template, 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') return true end |
.custom_swh_tweaks(building_type, template, climate_zone, prototype_input, model) ⇒ Object
89 90 91 92 93 |
# File 'lib/openstudio-standards/prototypes/Prototype.medium_office.rb', line 89 def self.custom_swh_tweaks(building_type, template, climate_zone, prototype_input, model) PrototypeBuilding::MediumOffice.update_waterheater_loss_coefficient(template, model) return true end |
.define_hvac_system_map(building_type, template, climate_zone) ⇒ Object
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 |
# File 'lib/openstudio-standards/prototypes/Prototype.medium_office.rb', line 22 def self.define_hvac_system_map(building_type, template, climate_zone) system_to_space_map = case template when 'DOE Ref Pre-1980' [ { 'type' => 'PSZ-AC', 'space_names' => ['Perimeter_bot_ZN_1', 'Perimeter_bot_ZN_2', 'Perimeter_bot_ZN_3', 'Perimeter_bot_ZN_4', 'Core_bottom', 'Perimeter_mid_ZN_1', 'Perimeter_mid_ZN_2', 'Perimeter_mid_ZN_3', 'Perimeter_mid_ZN_4', 'Core_mid', 'Perimeter_top_ZN_1', 'Perimeter_top_ZN_2', 'Perimeter_top_ZN_3', 'Perimeter_top_ZN_4', 'Core_top'] } ] else [ { 'type' => 'PVAV', 'space_names' => ['Perimeter_bot_ZN_1', 'Perimeter_bot_ZN_2', 'Perimeter_bot_ZN_3', 'Perimeter_bot_ZN_4', 'Core_bottom'], 'return_plenum' => 'FirstFloor_Plenum' }, { 'type' => 'PVAV', 'space_names' => ['Perimeter_mid_ZN_1', 'Perimeter_mid_ZN_2', 'Perimeter_mid_ZN_3', 'Perimeter_mid_ZN_4', 'Core_mid'], 'return_plenum' => 'MidFloor_Plenum' }, { 'type' => 'PVAV', 'space_names' => ['Perimeter_top_ZN_1', 'Perimeter_top_ZN_2', 'Perimeter_top_ZN_3', 'Perimeter_top_ZN_4', 'Core_top'], 'return_plenum' => 'TopFloor_Plenum' } ] end return system_to_space_map end |
.define_space_type_map(building_type, template, climate_zone) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/openstudio-standards/prototypes/Prototype.medium_office.rb', line 5 def self.define_space_type_map(building_type, template, climate_zone) space_type_map = nil space_type_map = case template when 'NECB 2011' { '- undefined -' => ['FirstFloor_Plenum', 'TopFloor_Plenum', 'MidFloor_Plenum'], 'Office - open plan' => ['Core_bottom', 'Core_mid', 'Core_top', 'Perimeter_bot_ZN_1', 'Perimeter_bot_ZN_2', 'Perimeter_bot_ZN_3', 'Perimeter_bot_ZN_4', 'Perimeter_mid_ZN_1', 'Perimeter_mid_ZN_2', 'Perimeter_mid_ZN_3', 'Perimeter_mid_ZN_4', 'Perimeter_top_ZN_1', 'Perimeter_top_ZN_2', 'Perimeter_top_ZN_3', 'Perimeter_top_ZN_4'] } else { 'WholeBuilding - Md Office' => ['Perimeter_bot_ZN_1', 'Perimeter_bot_ZN_2', 'Perimeter_bot_ZN_3', 'Perimeter_bot_ZN_4', 'Core_bottom', 'Perimeter_mid_ZN_1', 'Perimeter_mid_ZN_2', 'Perimeter_mid_ZN_3', 'Perimeter_mid_ZN_4', 'Core_mid', 'Perimeter_top_ZN_1', 'Perimeter_top_ZN_2', 'Perimeter_top_ZN_3', 'Perimeter_top_ZN_4', 'Core_top'] } end return space_type_map end |
.update_waterheater_loss_coefficient(template, model) ⇒ Object
add hvac
79 80 81 82 83 84 85 86 87 |
# File 'lib/openstudio-standards/prototypes/Prototype.medium_office.rb', line 79 def self.update_waterheater_loss_coefficient(template, model) case template when '90.1-2004', '90.1-2007', '90.1-2010', '90.1-2013', 'NECB 2011' model.getWaterHeaterMixeds.sort.each do |water_heater| water_heater.setOffCycleLossCoefficienttoAmbientTemperature(7.561562668) water_heater.setOnCycleLossCoefficienttoAmbientTemperature(7.561562668) end end end |