Module: SuperMarket
- Defined in:
- lib/openstudio-standards/prototypes/common/buildings/Prototype.SuperMarket.rb
Overview
Custom changes for the SuperMarket prototype. These are changes that are inconsistent with other prototype building types.
Instance Method Summary collapse
-
#add_extra_equip_kitchen(model) ⇒ Object
define additional kitchen loads based on AEDG baseline model.
-
#add_humidistat(model) ⇒ Object
add humidistat to all spaces.
- #model_custom_hvac_tweaks(building_type, climate_zone, prototype_input, model) ⇒ Object
- #model_custom_swh_tweaks(model, building_type, climate_zone, prototype_input) ⇒ Object
-
#model_update_exhaust_fan_efficiency(model) ⇒ Object
Update exhuast fan efficiency.
-
#reset_bakery_deli_oa(model) ⇒ Object
reset bakery & deli OA from AEDG baseline model.
- #update_waterheater_loss_coefficient(model) ⇒ Object
Instance Method Details
#add_extra_equip_kitchen(model) ⇒ Object
define additional kitchen loads based on AEDG baseline model
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.SuperMarket.rb', line 24 def add_extra_equip_kitchen(model) space_names = ['Deli', 'Bakery'] space_names.each do |space_name| space = model.getSpaceByName(space_name).get kitchen_definition = OpenStudio::Model::ElectricEquipmentDefinition.new(model) kitchen_definition.setName('kitchen load') kitchen_definition.setDesignLevel(11_674.5) kitchen_definition.setFractionLatent(0.25) kitchen_definition.setFractionRadiant(0.3) kitchen_definition.setFractionLost(0.2) kitchen_equipment = OpenStudio::Model::ElectricEquipment.new(kitchen_definition) kitchen_equipment.setName('kitchen equipment') kitchen_sch = model_add_schedule(model, 'SuperMarketEle Kit Equip Sch') kitchen_equipment.setSchedule(kitchen_sch) kitchen_equipment.setSpace(space) end end |
#add_humidistat(model) ⇒ Object
add humidistat to all spaces
44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.SuperMarket.rb', line 44 def add_humidistat(model) space_names = ['Main Sales', 'Produce', 'West Perimeter Sales', 'East Perimeter Sales', 'Deli', 'Bakery', 'Enclosed Office', 'Meeting Room', 'Dining Room', 'Restroom', 'Mechanical Room', 'Corridor', 'Vestibule', 'Active Storage'] space_names.each do |space_name| space = model.getSpaceByName(space_name).get zone = space.thermalZone.get humidistat = OpenStudio::Model::ZoneControlHumidistat.new(model) humidistat.(model_add_schedule(model, 'SuperMarket MinRelHumSetSch')) humidistat.(model_add_schedule(model, 'SuperMarket MaxRelHumSetSch')) zone.setZoneControlHumidistat(humidistat) end 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 |
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.SuperMarket.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') # add humidistat to all spaces add_humidistat(model) # additional kitchen loads add_extra_equip_kitchen(model) # reset bakery & deli OA reset reset_bakery_deli_oa(model) 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) ⇒ Object
90 91 92 93 94 |
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.SuperMarket.rb', line 90 def model_custom_swh_tweaks(model, building_type, climate_zone, prototype_input) update_waterheater_loss_coefficient(model) return true end |
#model_update_exhaust_fan_efficiency(model) ⇒ Object
Update exhuast fan efficiency
58 59 60 61 62 63 |
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.SuperMarket.rb', line 58 def model_update_exhaust_fan_efficiency(model) model.getFanZoneExhausts.sort.each do |exhaust_fan| exhaust_fan.setFanEfficiency(0.45) exhaust_fan.setPressureRise(125) end end |
#reset_bakery_deli_oa(model) ⇒ Object
reset bakery & deli OA from AEDG baseline model
66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.SuperMarket.rb', line 66 def reset_bakery_deli_oa(model) space_names = ['Deli', 'Bakery'] space_names.each do |space_name| space_kitchen = model.getSpaceByName(space_name).get ventilation = space_kitchen.designSpecificationOutdoorAir.get ventilation.setOutdoorAirFlowperPerson(0) ventilation.setOutdoorAirFlowperFloorArea(0.0015) # case template # when '90.1-2004','90.1-2007','90.1-2010', '90.1-2013' # ventilation.setOutdoorAirFlowRate(4.27112436) # end end end |
#update_waterheater_loss_coefficient(model) ⇒ Object
80 81 82 83 84 85 86 87 88 |
# File 'lib/openstudio-standards/prototypes/common/buildings/Prototype.SuperMarket.rb', line 80 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(0.798542707) water_heater.setOnCycleLossCoefficienttoAmbientTemperature(0.798542707) end end end |