Module: PrototypeBuilding::QuickServiceRestaurant

Defined in:
lib/openstudio-standards/prototypes/Prototype.quick_service_restaurant.rb

Class Method Summary collapse

Class Method Details

.add_door_infiltration(template, climate_zone, model) ⇒ Object



334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
# File 'lib/openstudio-standards/prototypes/Prototype.quick_service_restaurant.rb', line 334

def self.add_door_infiltration(template, climate_zone, model)
  # add extra infiltration for dining room door and attic (there is no attic in 'DOE Ref Pre-1980')
  unless template == 'DOE Ref 1980-2004' || template == 'DOE Ref Pre-1980'
    dining_space = model.getSpaceByName('Dining').get
    attic_space = model.getSpaceByName('Attic').get
    infiltration_diningdoor = OpenStudio::Model::SpaceInfiltrationDesignFlowRate.new(model)
    infiltration_attic = OpenStudio::Model::SpaceInfiltrationDesignFlowRate.new(model)
    infiltration_diningdoor.setName('Dining door Infiltration')
    infiltration_per_zone_diningdoor = 0
    infiltration_per_zone_attic = 0.0729
    if template == '90.1-2004'
      infiltration_per_zone_diningdoor = 0.902834611
      infiltration_diningdoor.setSchedule(model.add_schedule('RestaurantFastFood DOOR_INFIL_SCH'))
    elsif template == '90.1-2007'
      case climate_zone
      when 'ASHRAE 169-2006-1A', 'ASHRAE 169-2006-2A', 'ASHRAE 169-2006-2B', 'ASHRAE 169-2006-3A', 'ASHRAE 169-2006-3B',
          'ASHRAE 169-2006-3C', 'ASHRAE 169-2006-4A', 'ASHRAE 169-2006-4B', 'ASHRAE 169-2006-4C'
        infiltration_per_zone_diningdoor = 0.902834611
        infiltration_diningdoor.setSchedule(model.add_schedule('RestaurantFastFood DOOR_INFIL_SCH'))
      else
        infiltration_per_zone_diningdoor = 0.583798439
        infiltration_diningdoor.setSchedule(model.add_schedule('RestaurantFastFood VESTIBULE_DOOR_INFIL_SCH'))
      end
    elsif template == '90.1-2010' || template == '90.1-2013'
      case climate_zone
      when 'ASHRAE 169-2006-1A', 'ASHRAE 169-2006-2A', 'ASHRAE 169-2006-2B', 'ASHRAE 169-2006-3A', 'ASHRAE 169-2006-3B', 'ASHRAE 169-2006-3C'
        infiltration_per_zone_diningdoor = 0.902834611
        infiltration_diningdoor.setSchedule(model.add_schedule('RestaurantFastFood DOOR_INFIL_SCH'))
      else
        infiltration_per_zone_diningdoor = 0.583798439
        infiltration_diningdoor.setSchedule(model.add_schedule('RestaurantFastFood VESTIBULE_DOOR_INFIL_SCH'))
      end
    end
    infiltration_diningdoor.setDesignFlowRate(infiltration_per_zone_diningdoor)
    infiltration_diningdoor.setSpace(dining_space)
    infiltration_attic.setDesignFlowRate(infiltration_per_zone_attic)
    infiltration_attic.setSchedule(model.add_schedule('Always On'))
    infiltration_attic.setSpace(attic_space)
  end
end

.add_extra_equip_kitchen(template, model) ⇒ Object

add extra equipment for kitchen



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
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
# File 'lib/openstudio-standards/prototypes/Prototype.quick_service_restaurant.rb', line 376

def self.add_extra_equip_kitchen(template, model)
  kitchen_space = model.getSpaceByName('Kitchen')
  kitchen_space = kitchen_space.get
  kitchen_space_type = kitchen_space.spaceType.get
  elec_equip_def1 = OpenStudio::Model::ElectricEquipmentDefinition.new(model)
  elec_equip_def2 = OpenStudio::Model::ElectricEquipmentDefinition.new(model)
  elec_equip_def1.setName('Kitchen Electric Equipment Definition1')
  elec_equip_def2.setName('Kitchen Electric Equipment Definition2')
  case template
  when '90.1-2004', '90.1-2007', '90.1-2010', '90.1-2013'
    elec_equip_def1.setFractionLatent(0)
    elec_equip_def1.setFractionRadiant(0.25)
    elec_equip_def1.setFractionLost(0)
    elec_equip_def2.setFractionLatent(0)
    elec_equip_def2.setFractionRadiant(0.25)
    elec_equip_def2.setFractionLost(0)
    if template == '90.1-2013'
      elec_equip_def1.setDesignLevel(457.5)
      elec_equip_def2.setDesignLevel(570)
    else
      elec_equip_def1.setDesignLevel(515.917)
      elec_equip_def2.setDesignLevel(851.67)
    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('Kitchen_Reach-in-Freezer')
    elec_equip2.setName('Kitchen_Reach-in-Refrigerator')
    elec_equip1.setSpaceType(kitchen_space_type)
    elec_equip2.setSpaceType(kitchen_space_type)
    elec_equip1.setSchedule(model.add_schedule('RestaurantFastFood ALWAYS_ON'))
    elec_equip2.setSchedule(model.add_schedule('RestaurantFastFood ALWAYS_ON'))
  when 'DOE Ref Pre-1980', 'DOE Ref 1980-2004'
    elec_equip_def1.setDesignLevel(577)
    elec_equip_def1.setFractionLatent(0)
    elec_equip_def1.setFractionRadiant(0)
    elec_equip_def1.setFractionLost(1)
    # Create the electric equipment instance and hook it up to the space type
    elec_equip1 = OpenStudio::Model::ElectricEquipment.new(elec_equip_def1)
    elec_equip1.setName('Kitchen_ExhFan_Equip')
    elec_equip1.setSpaceType(kitchen_space_type)
    elec_equip1.setSchedule(model.add_schedule('RestaurantFastFood Kitchen_Exhaust_SCH'))
  end
end

.add_zone_mixing(template, model) ⇒ Object



493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
# File 'lib/openstudio-standards/prototypes/Prototype.quick_service_restaurant.rb', line 493

def self.add_zone_mixing(template, model)
  # add zone_mixing between kitchen and dining
  space_kitchen = model.getSpaceByName('Kitchen').get
  zone_kitchen = space_kitchen.thermalZone.get
  space_dining = model.getSpaceByName('Dining').get
  zone_dining = space_dining.thermalZone.get
  zone_mixing_kitchen = OpenStudio::Model::ZoneMixing.new(zone_kitchen)
  zone_mixing_kitchen.setSchedule(model.add_schedule('RestaurantFastFood Hours_of_operation'))
  case template
  when 'DOE Ref Pre-1980', 'DOE Ref 1980-2004'
    zone_mixing_kitchen.setDesignFlowRate(0.834532374)
  when '90.1-2007', '90.1-2010', '90.1-2013'
    zone_mixing_kitchen.setDesignFlowRate(0.416067345)
  when '90.1-2004'
    zone_mixing_kitchen.setDesignFlowRate(0.826232888)
  end
  zone_mixing_kitchen.setSourceZone(zone_dining)
  zone_mixing_kitchen.setDeltaTemperature(0)
end

.adjust_clg_setpoint(template, climate_zone, model) ⇒ Object



440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
# File 'lib/openstudio-standards/prototypes/Prototype.quick_service_restaurant.rb', line 440

def self.adjust_clg_setpoint(template, climate_zone, model)
  ['Dining', 'Kitchen'].each do |space_name|
    space_type_name = model.getSpaceByName(space_name).get.spaceType.get.name.get
    thermostat_name = space_type_name + ' Thermostat'
    thermostat = model.getThermostatSetpointDualSetpointByName(thermostat_name).get
    case template
    when '90.1-2004', '90.1-2007', '90.1-2010'
      if climate_zone == 'ASHRAE 169-2006-2B' || climate_zone == 'ASHRAE 169-2006-1B' || climate_zone == 'ASHRAE 169-2006-3B'
        case space_name
        when 'Dining'
          thermostat.setCoolingSetpointTemperatureSchedule(model.add_schedule('RestaurantFastFood CLGSETP_SCH_NO_OPTIMUM'))
        when 'Kitchen'
          thermostat.setCoolingSetpointTemperatureSchedule(model.add_schedule('RestaurantFastFood CLGSETP_KITCHEN_SCH_NO_OPTIMUM'))
        end
      end
    end
  end
end

.custom_hvac_tweaks(building_type, template, climate_zone, prototype_input, model) ⇒ Object



313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
# File 'lib/openstudio-standards/prototypes/Prototype.quick_service_restaurant.rb', line 313

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')

  # add extra equipment for kitchen
  PrototypeBuilding::QuickServiceRestaurant.add_extra_equip_kitchen(template, model)
  # add extra infiltration for dining room door and attic
  PrototypeBuilding::QuickServiceRestaurant.add_door_infiltration(template, climate_zone, model)
  # add zone_mixing between kitchen and dining
  PrototypeBuilding::QuickServiceRestaurant.add_zone_mixing(template, model)
  # Update Sizing Zone
  PrototypeBuilding::QuickServiceRestaurant.update_sizing_zone(template, model)
  # adjust the cooling setpoint
  PrototypeBuilding::QuickServiceRestaurant.adjust_clg_setpoint(template, climate_zone, model)
  # reset the design OA of kitchen
  PrototypeBuilding::QuickServiceRestaurant.reset_kitchen_oa(template, model)

  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



523
524
525
526
527
# File 'lib/openstudio-standards/prototypes/Prototype.quick_service_restaurant.rb', line 523

def self.custom_swh_tweaks(building_type, template, climate_zone, prototype_input, model)
  PrototypeBuilding::QuickServiceRestaurant.update_waterheater_loss_coefficient(template, model)

  return true
end

.define_hvac_system_map(building_type, template, climate_zone) ⇒ Object



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
190
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
# File 'lib/openstudio-standards/prototypes/Prototype.quick_service_restaurant.rb', line 30

def self.define_hvac_system_map(building_type, template, climate_zone)
  case template
  when 'DOE Ref Pre-1980', 'DOE Ref 1980-2004'
    system_to_space_map = [
      {
        'type' => 'PSZ-AC',
        'space_names' => ['Dining', 'Kitchen']
      },
      {
        'type' => 'Exhaust Fan',
        'name' => 'Dining Exhaust Fan',
        'availability_sch_name' => 'RestaurantFastFood HVACOperationSchd',
        'flow_rate' => 0.834532374,
        'flow_fraction_schedule_name' => nil,
        'balanced_exhaust_fraction_schedule_name' => nil,
        'space_names' =>
          [
            'Dining'
          ]
      },
      {
        'type' => 'Exhaust Fan',
        'name' => 'Kitchen Exhaust Fan',
        'availability_sch_name' => 'RestaurantFastFood HVACOperationSchd',
        'flow_rate' => 0.722467626,
        'flow_fraction_schedule_name' => nil,
        'balanced_exhaust_fraction_schedule_name' => nil,
        'space_names' =>
          [
            'Kitchen'
          ]
      },
      {
        'type' => 'Refrigeration',
        'case_type' => 'Walkin Freezer',
        'cooling_capacity_per_length' => 688,
        'length' => 2.44,
        'evaporator_fan_pwr_per_length' => 74,
        'lighting_per_length' => 33,
        'lighting_sch_name' => 'QuickServiceRestaurant Bldg Light',
        'defrost_pwr_per_length' => 1291.7,
        'restocking_sch_name' => 'RestaurantFastFood Kitchen_Case:1_WALKINFREEZER_WalkInStockingSched',
        'cop' => 1.5,
        'cop_f_of_t_curve_name' => 'RACK1_RackCOPfTCurve',
        'condenser_fan_pwr' => 330,
        'condenser_fan_pwr_curve_name' => 'RACK1_RackCondFanCurve2',
        'space_names' =>
          [
            'Kitchen'
          ]
      },
      {
        'type' => 'Refrigeration',
        'case_type' => 'Display Case',
        'cooling_capacity_per_length' => 734.0,
        'length' => 3.05,
        'evaporator_fan_pwr_per_length' => 66,
        'lighting_per_length' => 33.0,
        'lighting_sch_name' => 'QuickServiceRestaurant Bldg Light',
        'defrost_pwr_per_length' => 0.0,
        'restocking_sch_name' => 'RestaurantFastFood Kitchen_Case:2_SELFCONTAINEDDISPLAYCASE_CaseStockingSched',
        'cop' => 3.0,
        'cop_f_of_t_curve_name' => 'RACK2_RackCOPfTCurve',
        'condenser_fan_pwr' => 330,
        'condenser_fan_pwr_curve_name' => nil,
        'space_names' =>
          [
            'Kitchen'
          ]
      }
    ]
  when '90.1-2004'
    system_to_space_map = [
      {
        'type' => 'PSZ-AC',
        'space_names' => ['Dining', 'Kitchen']
      },
      {
        'type' => 'Exhaust Fan',
        'name' => 'Kitchen Exhaust Fan',
        'availability_sch_name' => 'RestaurantFastFood Hours_of_operation',
        'flow_rate' => 1.557427,
        'flow_fraction_schedule_name' => nil,
        'balanced_exhaust_fraction_schedule_name' => 'RestaurantFastFood Kitchen Exhaust Fan Balanced Exhaust Fraction Schedule_2004',
        'space_names' =>
          [
            'Kitchen'
          ]
      },
      {
        'type' => 'Exhaust Fan',
        'name' => 'Dining Exhaust Fan',
        'availability_sch_name' => 'RestaurantFastFood Hours_of_operation',
        'flow_rate' => 0.826233,
        'flow_fraction_schedule_name' => nil,
        'balanced_exhaust_fraction_schedule_name' => nil,
        'space_names' =>
          [
            'Dining'
          ]
      },
      {
        'type' => 'Refrigeration',
        'case_type' => 'Walkin Freezer',
        'cooling_capacity_per_length' => 688,
        'length' => 2.44,
        'evaporator_fan_pwr_per_length' => 74,
        'lighting_per_length' => 33,
        'lighting_sch_name' => 'RestaurantFastFood BLDG_LIGHT_DINING_SCH_2004_2007',
        'defrost_pwr_per_length' => 1291.7,
        'restocking_sch_name' => 'RestaurantFastFood Kitchen_Case:1_WALKINFREEZER_WalkInStockingSched',
        'cop' => 1.5,
        'cop_f_of_t_curve_name' => 'RACK1_RackCOPfTCurve',
        'condenser_fan_pwr' => 330,
        'condenser_fan_pwr_curve_name' => 'RACK1_RackCondFanCurve2',
        'space_names' =>
          [
            'Kitchen'
          ]
      },
      {
        'type' => 'Refrigeration',
        'case_type' => 'Display Case',
        'cooling_capacity_per_length' => 734.0,
        'length' => 3.05,
        'evaporator_fan_pwr_per_length' => 66,
        'lighting_per_length' => 33.0,
        'lighting_sch_name' => 'RestaurantFastFood BLDG_LIGHT_DINING_SCH_2004_2007',
        'defrost_pwr_per_length' => 0.0,
        'restocking_sch_name' => 'RestaurantFastFood Kitchen_Case:2_SELFCONTAINEDDISPLAYCASE_CaseStockingSched',
        'cop' => 3.0,
        'cop_f_of_t_curve_name' => 'RACK2_RackCOPfTCurve',
        'condenser_fan_pwr' => 330,
        'condenser_fan_pwr_curve_name' => nil,
        'space_names' =>
          [
            'Kitchen'
          ]
      }
    ]
  when '90.1-2007', '90.1-2010'
    system_to_space_map = [
      {
        'type' => 'PSZ-AC',
        'space_names' => ['Dining', 'Kitchen']
      },
      {
        'type' => 'Exhaust Fan',
        'name' => 'Kitchen Exhaust Fan',
        'availability_sch_name' => 'RestaurantFastFood Hours_of_operation',
        'flow_rate' => 1.557427,
        'flow_fraction_schedule_name' => nil,
        'balanced_exhaust_fraction_schedule_name' => 'RestaurantFastFood Kitchen Exhaust Fan Balanced Exhaust Fraction Schedule_2007_2010_2013',
        'space_names' =>
          [
            'Kitchen'
          ]
      },
      {
        'type' => 'Exhaust Fan',
        'name' => 'Dining Exhaust Fan',
        'availability_sch_name' => 'RestaurantFastFood Hours_of_operation',
        'flow_rate' => 0.416,
        'flow_fraction_schedule_name' => nil,
        'balanced_exhaust_fraction_schedule_name' => nil,
        'space_names' =>
          [
            'Dining'
          ]
      },
      {
        'type' => 'Refrigeration',
        'case_type' => 'Walkin Freezer',
        'cooling_capacity_per_length' => 688,
        'length' => 2.44,
        'evaporator_fan_pwr_per_length' => 74,
        'lighting_per_length' => 33,
        'lighting_sch_name' => 'RestaurantFastFood BLDG_LIGHT_DINING_SCH_2004_2007',
        'defrost_pwr_per_length' => 1291.7,
        'restocking_sch_name' => 'RestaurantFastFood Kitchen_Case:1_WALKINFREEZER_WalkInStockingSched',
        'cop' => 1.5,
        'cop_f_of_t_curve_name' => 'RACK1_RackCOPfTCurve',
        'condenser_fan_pwr' => 330,
        'condenser_fan_pwr_curve_name' => 'RACK1_RackCondFanCurve2',
        'space_names' =>
          [
            'Kitchen'
          ]
      },
      {
        'type' => 'Refrigeration',
        'case_type' => 'Display Case',
        'cooling_capacity_per_length' => 734.0,
        'length' => 3.05,
        'evaporator_fan_pwr_per_length' => 66,
        'lighting_per_length' => 33.0,
        'lighting_sch_name' => 'RestaurantFastFood BLDG_LIGHT_DINING_SCH_2004_2007',
        'defrost_pwr_per_length' => 0.0,
        'restocking_sch_name' => 'RestaurantFastFood Kitchen_Case:2_SELFCONTAINEDDISPLAYCASE_CaseStockingSched',
        'cop' => 3.0,
        'cop_f_of_t_curve_name' => 'RACK2_RackCOPfTCurve',
        'condenser_fan_pwr' => 330,
        'condenser_fan_pwr_curve_name' => nil,
        'space_names' =>
          [
            'Kitchen'
          ]
      }
    ]
  when '90.1-2013'
    system_to_space_map = [
      {
        'type' => 'PSZ-AC',
        'space_names' => ['Dining', 'Kitchen']
      },
      {
        'type' => 'Exhaust Fan',
        'name' => 'Kitchen Exhaust Fan',
        'availability_sch_name' => 'RestaurantFastFood Hours_of_operation',
        'flow_rate' => 1.557427,
        'flow_fraction_schedule_name' => nil,
        'balanced_exhaust_fraction_schedule_name' => 'RestaurantFastFood Kitchen Exhaust Fan Balanced Exhaust Fraction Schedule_2007_2010_2013',
        'space_names' =>
          [
            'Kitchen'
          ]
      },
      {
        'type' => 'Exhaust Fan',
        'name' => 'Dining Exhaust Fan',
        'availability_sch_name' => 'RestaurantFastFood Hours_of_operation',
        'flow_rate' => 0.416,
        'flow_fraction_schedule_name' => nil,
        'balanced_exhaust_fraction_schedule_name' => nil,
        'space_names' =>
          [
            'Dining'
          ]
      },
      {
        'type' => 'Refrigeration',
        'case_type' => 'Walkin Freezer',
        'cooling_capacity_per_length' => 688,
        'length' => 2.44,
        'evaporator_fan_pwr_per_length' => 21.143,
        'lighting_per_length' => 33,
        'lighting_sch_name' => 'RestaurantFastFood walkin_occ_lght_SCH',
        'defrost_pwr_per_length' => 1291.7,
        'restocking_sch_name' => 'RestaurantFastFood Kitchen_Case:1_WALKINFREEZER_WalkInStockingSched',
        'cop' => 1.5,
        'cop_f_of_t_curve_name' => 'RACK1_RackCOPfTCurve',
        'condenser_fan_pwr' => 330,
        'condenser_fan_pwr_curve_name' => 'RACK1_RackCondFanCurve2',
        'space_names' =>
          [
            'Kitchen'
          ]
      },
      {
        'type' => 'Refrigeration',
        'case_type' => 'Display Case',
        'cooling_capacity_per_length' => 734.0,
        'length' => 3.05,
        'evaporator_fan_pwr_per_length' => 18.857,
        'lighting_per_length' => 33.0,
        'lighting_sch_name' => 'RestaurantFastFood walkin_occ_lght_SCH',
        'defrost_pwr_per_length' => 0.0,
        'restocking_sch_name' => 'RestaurantFastFood Kitchen_Case:2_SELFCONTAINEDDISPLAYCASE_CaseStockingSched',
        'cop' => 3.0,
        'cop_f_of_t_curve_name' => 'RACK2_RackCOPfTCurve',
        'condenser_fan_pwr' => 330,
        'condenser_fan_pwr_curve_name' => nil,
        'space_names' =>
          [
            'Kitchen'
          ]
      }
    ]
  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
21
22
23
24
25
26
27
28
# File 'lib/openstudio-standards/prototypes/Prototype.quick_service_restaurant.rb', line 5

def self.define_space_type_map(building_type, template, climate_zone)
  space_type_map = nil
  case template
  when 'DOE Ref Pre-1980'
    space_type_map = {
      'Dining' => ['Dining'],
      'Kitchen' => ['Kitchen']
    }
  when 'DOE Ref 1980-2004', '90.1-2010', '90.1-2007', '90.1-2004', '90.1-2013'
    space_type_map = {
      'Dining' => ['Dining'],
      'Kitchen' => ['Kitchen'],
      'Attic' => ['attic']
    }
  when 'NECB 2011'
    # dom = B
    space_type_map = {
      '- undefined -' => ['attic'],
      'Dining - bar lounge/leisure' => ['Dining'],
      'Food preparation' => ['Kitchen']
    }
  end
  return space_type_map
end

.reset_kitchen_oa(template, model) ⇒ Object

In order to provide sufficient OSA to replace exhaust flow through kitchen hoods (3,300 cfm), modeled OSA to kitchen is different from OSA determined based on ASHRAE 62.1. It takes into account the available OSA in dining as transfer air.



462
463
464
465
466
467
468
469
470
471
472
473
# File 'lib/openstudio-standards/prototypes/Prototype.quick_service_restaurant.rb', line 462

def self.reset_kitchen_oa(template, model)
  space_kitchen = model.getSpaceByName('Kitchen').get
  ventilation = space_kitchen.designSpecificationOutdoorAir.get
  ventilation.setOutdoorAirFlowperPerson(0)
  ventilation.setOutdoorAirFlowperFloorArea(0)
  case template
  when '90.1-2007', '90.1-2010', '90.1-2013'
    ventilation.setOutdoorAirFlowRate(1.14135966)
  when '90.1-2004', 'DOE Ref Pre-1980', 'DOE Ref 1980-2004'
    ventilation.setOutdoorAirFlowRate(0.7312)
  end
end

.update_exhaust_fan_efficiency(template, model) ⇒ Object



475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
# File 'lib/openstudio-standards/prototypes/Prototype.quick_service_restaurant.rb', line 475

def self.update_exhaust_fan_efficiency(template, model)
  case template
  when '90.1-2004', '90.1-2007', '90.1-2010', '90.1-2013'
    model.getFanZoneExhausts.sort.each do |exhaust_fan|
      fan_name = exhaust_fan.name.to_s
      if fan_name.include? 'Dining'
        exhaust_fan.setFanEfficiency(1)
        exhaust_fan.setPressureRise(0)
      end
    end
  when 'DOE Ref Pre-1980', 'DOE Ref 1980-2004'
    model.getFanZoneExhausts.sort.each do |exhaust_fan|
      exhaust_fan.setFanEfficiency(1)
      exhaust_fan.setPressureRise(0.000001)
    end
  end
end

.update_sizing_zone(template, model) ⇒ Object



421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
# File 'lib/openstudio-standards/prototypes/Prototype.quick_service_restaurant.rb', line 421

def self.update_sizing_zone(template, model)
  case template
  when '90.1-2007', '90.1-2010', '90.1-2013'
    zone_sizing = model.getSpaceByName('Dining').get.thermalZone.get.sizingZone
    zone_sizing.setCoolingDesignAirFlowMethod('DesignDayWithLimit')
    zone_sizing.setCoolingMinimumAirFlowperZoneFloorArea(0.003581176)
    zone_sizing = model.getSpaceByName('Kitchen').get.thermalZone.get.sizingZone
    zone_sizing.setCoolingDesignAirFlowMethod('DesignDayWithLimit')
    zone_sizing.setCoolingMinimumAirFlowperZoneFloorArea(0)
  when '90.1-2004'
    zone_sizing = model.getSpaceByName('Dining').get.thermalZone.get.sizingZone
    zone_sizing.setCoolingDesignAirFlowMethod('DesignDayWithLimit')
    zone_sizing.setCoolingMinimumAirFlowperZoneFloorArea(0.007111554)
    zone_sizing = model.getSpaceByName('Kitchen').get.thermalZone.get.sizingZone
    zone_sizing.setCoolingDesignAirFlowMethod('DesignDayWithLimit')
    zone_sizing.setCoolingMinimumAirFlowperZoneFloorArea(0)
  end
end

.update_waterheater_loss_coefficient(template, model) ⇒ Object



513
514
515
516
517
518
519
520
521
# File 'lib/openstudio-standards/prototypes/Prototype.quick_service_restaurant.rb', line 513

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