Module: PrototypeBuilding::Warehouse

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

Class Method Summary collapse

Class Method Details

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



94
95
96
# File 'lib/openstudio-standards/prototypes/Prototype.warehouse.rb', line 94

def self.custom_hvac_tweaks(building_type, template, climate_zone, prototype_input, model)
  return true
end

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



108
109
110
111
112
# File 'lib/openstudio-standards/prototypes/Prototype.warehouse.rb', line 108

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

  return true
end

.define_hvac_system_map(building_type, template, climate_zone) ⇒ Object



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

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',
        'name' => 'HVAC_1',
        'space_names' => ['Zone1 Office']
      },
      {
        'type' => 'PSZ-AC',
        'name' => 'HVAC_2',
        'space_names' => ['Zone2 Fine Storage']
      },
      {
        'type' => 'UnitHeater',
        'name' => 'HVAC_3',
        'space_names' => ['Zone3 Bulk Storage']
      },
      {
        'type' => 'Zone Ventilation',
        'name' => 'Bulk Storage Zone Ventilation - Intake',
        'availability_sch_name' => 'Warehouse MinOA_Sched',
        'flow_rate' => 0.00025, # in m^3/s-m^2
        'ventilation_type' => 'Intake',
        'space_names' => ['Zone3 Bulk Storage']
      }
    ]
  when '90.1-2004', '90.1-2007', '90.1-2010', '90.1-2013'
    system_to_space_map = [
      {
        'type' => 'PSZ-AC',
        'name' => 'HVAC_1',
        'space_names' => ['Zone1 Office']
      },
      {
        'type' => 'PSZ-AC',
        'name' => 'HVAC_2',
        'space_names' => ['Zone2 Fine Storage']
      },
      {
        'type' => 'UnitHeater',
        'name' => 'HVAC_3',
        'space_names' => ['Zone3 Bulk Storage']
      },
      {
        'type' => 'Zone Ventilation',
        'name' => 'Bulk Storage Zone Ventilation - Exhaust',
        'availability_sch_name' => 'Always On',
        'flow_rate' => OpenStudio.convert(80_008.9191, 'cfm', 'm^3/s').get,
        'ventilation_type' => 'Exhaust',
        'space_names' => ['Zone3 Bulk Storage']
      },
      {
        'type' => 'Zone Ventilation',
        'name' => 'Bulk Storage Zone Ventilation - Natural',
        'availability_sch_name' => 'Always On',
        'flow_rate' => OpenStudio.convert(2000, 'cfm', 'm^3/s').get,
        'ventilation_type' => 'Natural',
        'space_names' => ['Zone3 Bulk Storage']
      }
    ]
  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
# File 'lib/openstudio-standards/prototypes/Prototype.warehouse.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'
    # dom =A
    {
      'Warehouse - med/blk' => ['Zone3 Bulk Storage'],
      'Warehouse - fine' => ['Zone2 Fine Storage'],
      'Office - enclosed' => ['Zone1 Office']
    }
  else
    {
      'Bulk' => ['Zone3 Bulk Storage'],
      'Fine' => ['Zone2 Fine Storage'],
      'Office' => ['Zone1 Office']
    }
                   end
  return space_type_map
end

.update_waterheater_loss_coefficient(template, model) ⇒ Object



98
99
100
101
102
103
104
105
106
# File 'lib/openstudio-standards/prototypes/Prototype.warehouse.rb', line 98

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(0.798542707)
      water_heater.setOnCycleLossCoefficienttoAmbientTemperature(0.798542707)
    end
  end
end