Module: PrototypeBuilding::HighriseApartment
- Defined in:
- lib/openstudio-standards/prototypes/Prototype.high_rise_apartment.rb
Class Method Summary collapse
-
.add_door_infiltration(template, climate_zone, model) ⇒ Object
add extra infiltration for ground floor corridor.
-
.add_extra_equip_corridor(template, model) ⇒ Object
add elevator and lights&fans for the top floor corridor.
- .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_fan_efficiency(model) ⇒ Object
- .update_waterheater_loss_coefficient(template, model) ⇒ Object
Class Method Details
.add_door_infiltration(template, climate_zone, model) ⇒ Object
add extra infiltration for ground floor corridor
416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 |
# File 'lib/openstudio-standards/prototypes/Prototype.high_rise_apartment.rb', line 416 def self.add_door_infiltration(template, climate_zone, model) g_corridor = model.getSpaceByName('G Corridor').get infiltration_g_corridor_door = OpenStudio::Model::SpaceInfiltrationDesignFlowRate.new(model) infiltration_g_corridor_door.setName('G Corridor door Infiltration') infiltration_g_corridor_door.setSpace(g_corridor) case template when '90.1-2004' infiltration_g_corridor_door.setDesignFlowRate(1.523916863) infiltration_g_corridor_door.setSchedule(model.add_schedule('ApartmentHighRise INFIL_Door_Opening_SCH_0.144')) when '90.1-2007', '90.1-2010', '90.1-2013' case climate_zone when 'ASHRAE 169-2006-1A', 'ASHRAE 169-2006-2A', 'ASHRAE 169-2006-2B' infiltration_g_corridor_door.setDesignFlowRate(1.523916863) infiltration_g_corridor_door.setSchedule(model.add_schedule('ApartmentHighRise INFIL_Door_Opening_SCH_0.144')) else infiltration_g_corridor_door.setDesignFlowRate(1.008078792) infiltration_g_corridor_door.setSchedule(model.add_schedule('ApartmentHighRise INFIL_Door_Opening_SCH_0.131')) end end end |
.add_extra_equip_corridor(template, model) ⇒ Object
add elevator and lights&fans for the top floor corridor
368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 |
# File 'lib/openstudio-standards/prototypes/Prototype.high_rise_apartment.rb', line 368 def self.add_extra_equip_corridor(template, model) corridor_top_space = model.getSpaceByName('T Corridor').get elec_equip_def1 = OpenStudio::Model::ElectricEquipmentDefinition.new(model) elec_equip_def2 = OpenStudio::Model::ElectricEquipmentDefinition.new(model) elec_equip_def1.setName('T Corridor Electric Equipment Definition1') elec_equip_def2.setName('T Corridor Electric Equipment Definition2') elec_equip_def1.setFractionLatent(0) elec_equip_def1.setFractionRadiant(0) elec_equip_def1.setFractionLost(0.95) elec_equip_def2.setFractionLatent(0) elec_equip_def2.setFractionRadiant(0) elec_equip_def2.setFractionLost(0.95) elec_equip_def1.setDesignLevel(20_370) case template when '90.1-2013' elec_equip_def2.setDesignLevel(63) when '90.1-2010' elec_equip_def2.setDesignLevel(105.9) when '90.1-2004', '90.1-2007' elec_equip_def2.setDesignLevel(161.9) 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('T Corridor_Elevators_Equip') elec_equip2.setName('Elevators_Lights_Fan') elec_equip1.setSpace(corridor_top_space) elec_equip2.setSpace(corridor_top_space) elec_equip1.setSchedule(model.add_schedule('ApartmentMidRise BLDG_ELEVATORS')) case template when '90.1-2004', '90.1-2007' elec_equip2.setSchedule(model.add_schedule('ApartmentMidRise ELEV_LIGHT_FAN_SCH_24_7')) when '90.1-2010', '90.1-2013' elec_equip2.setSchedule(model.add_schedule('ApartmentMidRise ELEV_LIGHT_FAN_SCH_ADD_DF')) end end |
.custom_hvac_tweaks(building_type, template, climate_zone, prototype_input, model) ⇒ Object
358 359 360 361 362 363 364 365 |
# File 'lib/openstudio-standards/prototypes/Prototype.high_rise_apartment.rb', line 358 def self.custom_hvac_tweaks(building_type, template, climate_zone, prototype_input, model) # add elevator and lights&fans for the ground floor corridor PrototypeBuilding::HighriseApartment.add_extra_equip_corridor(template, model) # add extra infiltration for ground floor corridor PrototypeBuilding::HighriseApartment.add_door_infiltration(template, climate_zone, model) return true end |
.custom_swh_tweaks(building_type, template, climate_zone, prototype_input, model) ⇒ Object
444 445 446 447 448 |
# File 'lib/openstudio-standards/prototypes/Prototype.high_rise_apartment.rb', line 444 def self.custom_swh_tweaks(building_type, template, climate_zone, prototype_input, model) PrototypeBuilding::HighriseApartment.update_waterheater_loss_coefficient(template, model) return true end |
.define_hvac_system_map(building_type, template, climate_zone) ⇒ Object
191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 |
# File 'lib/openstudio-standards/prototypes/Prototype.high_rise_apartment.rb', line 191 def self.define_hvac_system_map(building_type, template, climate_zone) system_to_space_map = [ { 'type' => 'PSZ-AC', 'space_names' => ['G SW Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['G NW Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['G NE Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['G N1 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['G N2 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['G S1 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['G S2 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F2 SW Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F2 NW Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F2 SE Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F2 NE Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F2 N1 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F2 N2 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F2 S1 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F2 S2 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F3 SW Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F3 NW Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F3 SE Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F3 NE Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F3 N1 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F3 N2 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F3 S1 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F3 S2 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F4 SW Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F4 NW Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F4 SE Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F4 NE Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F4 N1 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F4 N2 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F4 S1 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F4 S2 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['M SW Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['M NW Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['M SE Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['M NE Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['M N1 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['M N2 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['M S1 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['M S2 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F6 SW Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F6 NW Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F6 SE Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F6 NE Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F6 N1 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F6 N2 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F6 S1 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F6 S2 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F7 SW Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F7 NW Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F7 SE Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F7 NE Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F7 N1 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F7 N2 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F7 S1 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F7 S2 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F8 SW Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F8 NW Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F8 SE Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F8 NE Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F8 N1 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F8 N2 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F8 S1 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F8 S2 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F9 SW Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F9 NW Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F9 SE Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F9 NE Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F9 N1 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F9 N2 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F9 S1 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['F9 S2 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['T SW Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['T NW Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['T SE Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['T NE Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['T N1 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['T N2 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['T S1 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['T S2 Apartment'] }, { 'type' => 'PSZ-AC', 'space_names' => ['Office'] } ] 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 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 74 75 76 77 78 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 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 |
# File 'lib/openstudio-standards/prototypes/Prototype.high_rise_apartment.rb', line 5 def self.define_space_type_map(building_type, template, climate_zone) space_type_map = nil case template when 'NECB 2011' space_type_map = { 'Office - enclosed' => ['Office'], "Corr. < 2.4m wide-sch-#{sch}" => ['T Corridor', 'G Corridor', 'F2 Corridor', 'F3 Corridor', 'F4 Corridor', 'M Corridor', 'F6 Corridor', 'F7 Corridor', 'F8 Corridor', 'F9 Corridor'], 'Dwelling Unit(s)' => [ 'G SW Apartment', 'G NW Apartment', 'G NE Apartment', 'G N1 Apartment', 'G N2 Apartment', 'G S1 Apartment', 'G S2 Apartment', 'F2 SW Apartment', 'F2 NW Apartment', 'F2 SE Apartment', 'F2 NE Apartment', 'F2 N1 Apartment', 'F2 N2 Apartment', 'F2 S1 Apartment', 'F2 S2 Apartment', 'F3 SW Apartment', 'F3 NW Apartment', 'F3 SE Apartment', 'F3 NE Apartment', 'F3 N1 Apartment', 'F3 N2 Apartment', 'F3 S1 Apartment', 'F3 S2 Apartment', 'F4 SW Apartment', 'F4 NW Apartment', 'F4 SE Apartment', 'F4 NE Apartment', 'F4 N1 Apartment', 'F4 N2 Apartment', 'F4 S1 Apartment', 'F4 S2 Apartment', 'M SW Apartment', 'M NW Apartment', 'M SE Apartment', 'M NE Apartment', 'M N1 Apartment', 'M N2 Apartment', 'M S1 Apartment', 'M S2 Apartment', 'F6 SW Apartment', 'F6 NW Apartment', 'F6 SE Apartment', 'F6 NE Apartment', 'F6 N1 Apartment', 'F6 N2 Apartment', 'F6 S1 Apartment', 'F6 S2 Apartment', 'F7 SW Apartment', 'F7 NW Apartment', 'F7 SE Apartment', 'F7 NE Apartment', 'F7 N1 Apartment', 'F7 N2 Apartment', 'F7 S1 Apartment', 'F7 S2 Apartment', 'F8 SW Apartment', 'F8 NW Apartment', 'F8 SE Apartment', 'F8 NE Apartment', 'F8 N1 Apartment', 'F8 N2 Apartment', 'F8 S1 Apartment', 'F8 S2 Apartment', 'F9 SW Apartment', 'F9 NW Apartment', 'F9 SE Apartment', 'F9 NE Apartment', 'F9 N1 Apartment', 'F9 N2 Apartment', 'F9 S1 Apartment', 'F9 S2 Apartment', 'T SW Apartment', 'T NW Apartment', 'T SE Apartment', 'T NE Apartment', 'T N1 Apartment', 'T N2 Apartment', 'T S1 Apartment', 'T S2 Apartment' ] } else space_type_map = { 'Office' => ['Office'], 'Corridor' => ['G Corridor', 'F2 Corridor', 'F3 Corridor', 'F4 Corridor', 'M Corridor', 'F6 Corridor', 'F7 Corridor', 'F8 Corridor', 'F9 Corridor'], 'Corridor_topfloor' => ['T Corridor'], 'Apartment' => [ 'G SW Apartment', 'G NW Apartment', 'G NE Apartment', 'G N1 Apartment', 'G N2 Apartment', 'G S1 Apartment', 'G S2 Apartment', 'F2 SW Apartment', 'F2 NW Apartment', 'F2 SE Apartment', 'F2 NE Apartment', 'F2 N1 Apartment', 'F2 N2 Apartment', 'F2 S1 Apartment', 'F2 S2 Apartment', 'F3 SW Apartment', 'F3 NW Apartment', 'F3 SE Apartment', 'F3 NE Apartment', 'F3 N1 Apartment', 'F3 N2 Apartment', 'F3 S1 Apartment', 'F3 S2 Apartment', 'F4 SW Apartment', 'F4 NW Apartment', 'F4 SE Apartment', 'F4 NE Apartment', 'F4 N1 Apartment', 'F4 N2 Apartment', 'F4 S1 Apartment', 'F4 S2 Apartment', 'M SW Apartment', 'M NW Apartment', 'M SE Apartment', 'M NE Apartment', 'M N1 Apartment', 'M N2 Apartment', 'M S1 Apartment', 'M S2 Apartment', 'F6 SW Apartment', 'F6 NW Apartment', 'F6 SE Apartment', 'F6 NE Apartment', 'F6 N1 Apartment', 'F6 N2 Apartment', 'F6 S1 Apartment', 'F6 S2 Apartment', 'F7 SW Apartment', 'F7 NW Apartment', 'F7 SE Apartment', 'F7 NE Apartment', 'F7 N1 Apartment', 'F7 N2 Apartment', 'F7 S1 Apartment', 'F7 S2 Apartment', 'F8 SW Apartment', 'F8 NW Apartment', 'F8 SE Apartment', 'F8 NE Apartment', 'F8 N1 Apartment', 'F8 N2 Apartment', 'F8 S1 Apartment', 'F8 S2 Apartment', 'F9 SW Apartment', 'F9 NW Apartment', 'F9 SE Apartment', 'F9 NE Apartment', 'F9 N1 Apartment', 'F9 N2 Apartment', 'F9 S1 Apartment', 'F9 S2 Apartment' ], 'Apartment_topfloor_WE' => [ 'T SW Apartment', 'T NW Apartment', 'T SE Apartment', 'T NE Apartment' ], 'Apartment_topfloor_NS' => [ 'T N1 Apartment', 'T N2 Apartment', 'T S1 Apartment', 'T S2 Apartment' ] } end return space_type_map end |
.update_fan_efficiency(model) ⇒ Object
437 438 439 440 441 442 |
# File 'lib/openstudio-standards/prototypes/Prototype.high_rise_apartment.rb', line 437 def self.update_fan_efficiency(model) model.getFanOnOffs.sort.each do |fan_onoff| fan_onoff.setFanEfficiency(0.53625) fan_onoff.setMotorEfficiency(0.825) end end |
.update_waterheater_loss_coefficient(template, model) ⇒ Object
405 406 407 408 409 410 411 412 413 |
# File 'lib/openstudio-standards/prototypes/Prototype.high_rise_apartment.rb', line 405 def self.update_waterheater_loss_coefficient(template, model) case template when '90.1-2004', '90.1-2007', '90.1-2010', '90.1-2013' model.getWaterHeaterMixeds.sort.each do |water_heater| water_heater.setOffCycleLossCoefficienttoAmbientTemperature(46.288874618) water_heater.setOnCycleLossCoefficienttoAmbientTemperature(46.288874618) end end end |