openstudio-standards 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/data/standards/OpenStudio_Standards.xlsx +0 -0
  3. data/data/standards/OpenStudio_Standards_boilers.json +62 -4
  4. data/data/standards/OpenStudio_Standards_chillers.json +778 -68
  5. data/data/standards/OpenStudio_Standards_construction_sets.json +52 -93
  6. data/data/standards/OpenStudio_Standards_curve_biquadratics.json +36 -36
  7. data/data/standards/OpenStudio_Standards_curve_quadratics.json +3 -3
  8. data/data/standards/OpenStudio_Standards_heat_pumps.json +840 -0
  9. data/data/standards/OpenStudio_Standards_heat_pumps_heating.json +352 -0
  10. data/data/standards/OpenStudio_Standards_heat_rejection.json +48 -0
  11. data/data/standards/OpenStudio_Standards_motors.json +270 -0
  12. data/data/standards/OpenStudio_Standards_space_types.json +10390 -2824
  13. data/data/standards/OpenStudio_Standards_unitary_acs.json +794 -18
  14. data/data/weather/USA_CO_Boulder-Broomfield-Jefferson.County.AP.724699_TMY3.ddy +538 -0
  15. data/data/weather/USA_CO_Boulder-Broomfield-Jefferson.County.AP.724699_TMY3.epw +8768 -0
  16. data/data/weather/USA_CO_Boulder-Broomfield-Jefferson.County.AP.724699_TMY3.stat +493 -0
  17. data/data/weather/USA_CO_Denver.Intl.AP.725650_TMY3.ddy +536 -0
  18. data/data/weather/USA_CO_Denver.Intl.AP.725650_TMY3.epw +8768 -0
  19. data/data/weather/USA_CO_Denver.Intl.AP.725650_TMY3.stat +554 -0
  20. data/data/weather/USA_CO_Fort.Collins.AWOS.724769_TMY3.ddy +536 -0
  21. data/data/weather/USA_CO_Fort.Collins.AWOS.724769_TMY3.epw +8768 -0
  22. data/data/weather/USA_CO_Fort.Collins.AWOS.724769_TMY3.stat +554 -0
  23. data/data/weather/envelope_info.csv +6 -0
  24. data/lib/openstudio-standards.rb +10 -11
  25. data/lib/openstudio-standards/btap/compliance.rb +251 -969
  26. data/lib/openstudio-standards/btap/envelope.rb +1 -1
  27. data/lib/openstudio-standards/btap/fileio.rb +37 -5
  28. data/lib/openstudio-standards/btap/geometry.rb +27 -17
  29. data/lib/openstudio-standards/btap/hvac.rb +80 -27
  30. data/lib/openstudio-standards/hvac_sizing/{HVACSizing.CoilHeatingDXMultiSpeed.rb → Siz.CoilHeatingDXMultiSpeed.rb} +0 -0
  31. data/lib/openstudio-standards/hvac_sizing/Siz.ControllerOutdoorAir.rb +30 -4
  32. data/lib/openstudio-standards/hvac_sizing/Siz.CoolingTowerTwoSpeed.rb +61 -5
  33. data/lib/openstudio-standards/hvac_sizing/Siz.CoolingTowerVariableSpeed.rb +37 -7
  34. data/lib/openstudio-standards/hvac_sizing/Siz.DistrictCooling.rb +27 -0
  35. data/lib/openstudio-standards/hvac_sizing/Siz.DistrictHeating.rb +27 -0
  36. data/lib/openstudio-standards/hvac_sizing/Siz.HeaderedPumpsConstantSpeed.rb +55 -0
  37. data/lib/openstudio-standards/hvac_sizing/Siz.HeaderedPumpsVariableSpeed.rb +55 -0
  38. data/lib/openstudio-standards/hvac_sizing/Siz.HeatingCoolingFuels.rb +51 -9
  39. data/lib/openstudio-standards/hvac_sizing/Siz.Model.rb +99 -17
  40. data/lib/openstudio-standards/hvac_sizing/Siz.PumpConstantSpeed.rb +1 -1
  41. data/lib/openstudio-standards/hvac_sizing/Siz.ThermalZone.rb +29 -6
  42. data/lib/openstudio-standards/hvac_sizing/Siz.WaterHeaterMixed.rb +16 -0
  43. data/lib/openstudio-standards/prototypes/Prototype.AirTerminalSingleDuctVAVReheat.rb +43 -48
  44. data/lib/openstudio-standards/prototypes/Prototype.ControllerWaterCoil.rb +5 -9
  45. data/lib/openstudio-standards/prototypes/Prototype.Fan.rb +68 -0
  46. data/lib/openstudio-standards/prototypes/Prototype.FanConstantVolume.rb +39 -43
  47. data/lib/openstudio-standards/prototypes/Prototype.FanOnOff.rb +49 -51
  48. data/lib/openstudio-standards/prototypes/Prototype.FanVariableVolume.rb +55 -61
  49. data/lib/openstudio-standards/prototypes/Prototype.FanZoneExhaust.rb +8 -10
  50. data/lib/openstudio-standards/prototypes/Prototype.HeatExchangerAirToAirSensibleAndLatent.rb +15 -20
  51. data/lib/openstudio-standards/prototypes/Prototype.Model.hvac.rb +330 -322
  52. data/lib/openstudio-standards/prototypes/Prototype.Model.rb +501 -446
  53. data/lib/openstudio-standards/prototypes/Prototype.Model.swh.rb +221 -230
  54. data/lib/openstudio-standards/prototypes/Prototype.add_objects.rb +0 -2
  55. data/lib/openstudio-standards/prototypes/Prototype.full_service_restaurant.rb +130 -137
  56. data/lib/openstudio-standards/prototypes/Prototype.high_rise_apartment.rb +374 -291
  57. data/lib/openstudio-standards/prototypes/Prototype.hospital.rb +146 -193
  58. data/lib/openstudio-standards/prototypes/Prototype.hvac_systems.rb +1315 -1113
  59. data/lib/openstudio-standards/prototypes/Prototype.large_hotel.rb +65 -88
  60. data/lib/openstudio-standards/prototypes/Prototype.large_office.rb +101 -156
  61. data/lib/openstudio-standards/prototypes/Prototype.medium_office.rb +46 -96
  62. data/lib/openstudio-standards/prototypes/Prototype.mid_rise_apartment.rb +113 -123
  63. data/lib/openstudio-standards/prototypes/Prototype.outpatient.rb +356 -345
  64. data/lib/openstudio-standards/prototypes/Prototype.primary_school.rb +48 -103
  65. data/lib/openstudio-standards/prototypes/Prototype.quick_service_restaurant.rb +115 -123
  66. data/lib/openstudio-standards/prototypes/Prototype.retail_standalone.rb +30 -39
  67. data/lib/openstudio-standards/prototypes/Prototype.retail_stripmall.rb +32 -45
  68. data/lib/openstudio-standards/prototypes/Prototype.secondary_school.rb +98 -258
  69. data/lib/openstudio-standards/prototypes/Prototype.small_hotel.rb +429 -474
  70. data/lib/openstudio-standards/prototypes/Prototype.small_office.rb +28 -36
  71. data/lib/openstudio-standards/prototypes/Prototype.strip_model.rb +7 -7
  72. data/lib/openstudio-standards/prototypes/Prototype.utilities.rb +172 -146
  73. data/lib/openstudio-standards/prototypes/Prototype.warehouse.rb +46 -53
  74. data/lib/openstudio-standards/standards/Standards.AirLoopHVAC.rb +885 -707
  75. data/lib/openstudio-standards/standards/Standards.AirTerminalSingleDuctParallelPIUReheat.rb +48 -57
  76. data/lib/openstudio-standards/standards/Standards.AirTerminalSingleDuctVAVReheat.rb +24 -31
  77. data/lib/openstudio-standards/standards/Standards.BoilerHotWater.rb +80 -93
  78. data/lib/openstudio-standards/standards/Standards.BuildingStory.rb +69 -0
  79. data/lib/openstudio-standards/standards/Standards.ChillerElectricEIR.rb +60 -72
  80. data/lib/openstudio-standards/standards/Standards.CoilCoolingDXMultiSpeed.rb +104 -108
  81. data/lib/openstudio-standards/standards/Standards.CoilCoolingDXSingleSpeed.rb +190 -198
  82. data/lib/openstudio-standards/standards/Standards.CoilCoolingDXTwoSpeed.rb +134 -146
  83. data/lib/openstudio-standards/standards/Standards.CoilHeatingDXMultiSpeed.rb +56 -60
  84. data/lib/openstudio-standards/standards/Standards.CoilHeatingDXSingleSpeed.rb +151 -161
  85. data/lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb +30 -34
  86. data/lib/openstudio-standards/standards/Standards.Construction.rb +116 -132
  87. data/lib/openstudio-standards/standards/Standards.CoolingTower.rb +138 -0
  88. data/lib/openstudio-standards/standards/Standards.CoolingTowerSingleSpeed.rb +11 -0
  89. data/lib/openstudio-standards/standards/Standards.CoolingTowerTwoSpeed.rb +11 -0
  90. data/lib/openstudio-standards/standards/Standards.CoolingTowerVariableSpeed.rb +16 -0
  91. data/lib/openstudio-standards/standards/Standards.Fan.rb +190 -236
  92. data/lib/openstudio-standards/standards/Standards.FanConstantVolume.rb +0 -2
  93. data/lib/openstudio-standards/standards/Standards.FanOnOff.rb +0 -2
  94. data/lib/openstudio-standards/standards/Standards.FanVariableVolume.rb +168 -14
  95. data/lib/openstudio-standards/standards/Standards.FanZoneExhaust.rb +0 -2
  96. data/lib/openstudio-standards/standards/Standards.HeaderedPumpsConstantSpeed.rb +33 -0
  97. data/lib/openstudio-standards/standards/Standards.HeaderedPumpsVariableSpeed.rb +83 -0
  98. data/lib/openstudio-standards/standards/Standards.HeatExchangerSensLat.rb +22 -0
  99. data/lib/openstudio-standards/standards/Standards.Model.rb +2385 -1622
  100. data/lib/openstudio-standards/standards/Standards.PlanarSurface.rb +83 -35
  101. data/lib/openstudio-standards/standards/Standards.PlantLoop.rb +805 -395
  102. data/lib/openstudio-standards/standards/Standards.Pump.rb +139 -119
  103. data/lib/openstudio-standards/standards/Standards.PumpConstantSpeed.rb +0 -2
  104. data/lib/openstudio-standards/standards/Standards.PumpVariableSpeed.rb +16 -15
  105. data/lib/openstudio-standards/standards/Standards.ScheduleCompact.rb +35 -0
  106. data/lib/openstudio-standards/standards/Standards.ScheduleConstant.rb +7 -13
  107. data/lib/openstudio-standards/standards/Standards.ScheduleRuleset.rb +144 -59
  108. data/lib/openstudio-standards/standards/Standards.Space.rb +1509 -1326
  109. data/lib/openstudio-standards/standards/Standards.SpaceType.rb +254 -262
  110. data/lib/openstudio-standards/standards/Standards.SubSurface.rb +105 -105
  111. data/lib/openstudio-standards/standards/Standards.Surface.rb +27 -31
  112. data/lib/openstudio-standards/standards/Standards.ThermalZone.rb +882 -157
  113. data/lib/openstudio-standards/standards/Standards.WaterHeaterMixed.rb +179 -69
  114. data/lib/openstudio-standards/standards/Standards.ZoneHVACComponent.rb +75 -0
  115. data/lib/openstudio-standards/utilities/logging.rb +31 -38
  116. data/lib/openstudio-standards/utilities/simulation.rb +118 -82
  117. data/lib/openstudio-standards/version.rb +1 -1
  118. data/lib/openstudio-standards/weather/Weather.Model.rb +382 -390
  119. data/lib/openstudio-standards/weather/Weather.stat_file.rb +159 -78
  120. metadata +59 -6
@@ -1,297 +1,383 @@
1
1
 
2
2
 
3
3
  class OpenStudio::Model::Model
4
-
5
- def define_space_type_map(building_type, building_vintage, climate_zone)
6
-
4
+ def define_space_type_map(building_type, template, climate_zone)
5
+ space_type_map = nil
6
+ case template
7
+
8
+ when 'NECB 2011'
9
+ space_type_map = {
10
+ 'Office - enclosed' => ['Office'],
11
+ "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'],
12
+ 'Dwelling Unit(s)' => [
13
+ 'G SW Apartment',
14
+ 'G NW Apartment',
15
+ 'G NE Apartment',
16
+ 'G N1 Apartment',
17
+ 'G N2 Apartment',
18
+ 'G S1 Apartment',
19
+ 'G S2 Apartment',
20
+ 'F2 SW Apartment',
21
+ 'F2 NW Apartment',
22
+ 'F2 SE Apartment',
23
+ 'F2 NE Apartment',
24
+ 'F2 N1 Apartment',
25
+ 'F2 N2 Apartment',
26
+ 'F2 S1 Apartment',
27
+ 'F2 S2 Apartment',
28
+ 'F3 SW Apartment',
29
+ 'F3 NW Apartment',
30
+ 'F3 SE Apartment',
31
+ 'F3 NE Apartment',
32
+ 'F3 N1 Apartment',
33
+ 'F3 N2 Apartment',
34
+ 'F3 S1 Apartment',
35
+ 'F3 S2 Apartment',
36
+ 'F4 SW Apartment',
37
+ 'F4 NW Apartment',
38
+ 'F4 SE Apartment',
39
+ 'F4 NE Apartment',
40
+ 'F4 N1 Apartment',
41
+ 'F4 N2 Apartment',
42
+ 'F4 S1 Apartment',
43
+ 'F4 S2 Apartment',
44
+ 'M SW Apartment',
45
+ 'M NW Apartment',
46
+ 'M SE Apartment',
47
+ 'M NE Apartment',
48
+ 'M N1 Apartment',
49
+ 'M N2 Apartment',
50
+ 'M S1 Apartment',
51
+ 'M S2 Apartment',
52
+ 'F6 SW Apartment',
53
+ 'F6 NW Apartment',
54
+ 'F6 SE Apartment',
55
+ 'F6 NE Apartment',
56
+ 'F6 N1 Apartment',
57
+ 'F6 N2 Apartment',
58
+ 'F6 S1 Apartment',
59
+ 'F6 S2 Apartment',
60
+ 'F7 SW Apartment',
61
+ 'F7 NW Apartment',
62
+ 'F7 SE Apartment',
63
+ 'F7 NE Apartment',
64
+ 'F7 N1 Apartment',
65
+ 'F7 N2 Apartment',
66
+ 'F7 S1 Apartment',
67
+ 'F7 S2 Apartment',
68
+ 'F8 SW Apartment',
69
+ 'F8 NW Apartment',
70
+ 'F8 SE Apartment',
71
+ 'F8 NE Apartment',
72
+ 'F8 N1 Apartment',
73
+ 'F8 N2 Apartment',
74
+ 'F8 S1 Apartment',
75
+ 'F8 S2 Apartment',
76
+ 'F9 SW Apartment',
77
+ 'F9 NW Apartment',
78
+ 'F9 SE Apartment',
79
+ 'F9 NE Apartment',
80
+ 'F9 N1 Apartment',
81
+ 'F9 N2 Apartment',
82
+ 'F9 S1 Apartment',
83
+ 'F9 S2 Apartment',
84
+ 'T SW Apartment',
85
+ 'T NW Apartment',
86
+ 'T SE Apartment',
87
+ 'T NE Apartment',
88
+ 'T N1 Apartment',
89
+ 'T N2 Apartment',
90
+ 'T S1 Apartment',
91
+ 'T S2 Apartment'
92
+ ]
93
+ }
94
+
95
+ else
7
96
  space_type_map = {
8
- 'Office' => ['Office'],
9
- 'Corridor' => ['G Corridor', 'F2 Corridor', 'F3 Corridor', 'F4 Corridor', 'M Corridor', 'F6 Corridor', 'F7 Corridor', 'F8 Corridor', 'F9 Corridor'],
10
- 'Corridor_topfloor' => ['T Corridor'],
11
- 'Apartment' => [
12
- 'G SW Apartment',
13
- 'G NW Apartment',
14
- 'G NE Apartment',
15
- 'G N1 Apartment',
16
- 'G N2 Apartment',
17
- 'G S1 Apartment',
18
- 'G S2 Apartment',
19
- 'F2 SW Apartment',
20
- 'F2 NW Apartment',
21
- 'F2 SE Apartment',
22
- 'F2 NE Apartment',
23
- 'F2 N1 Apartment',
24
- 'F2 N2 Apartment',
25
- 'F2 S1 Apartment',
26
- 'F2 S2 Apartment',
27
- 'F3 SW Apartment',
28
- 'F3 NW Apartment',
29
- 'F3 SE Apartment',
30
- 'F3 NE Apartment',
31
- 'F3 N1 Apartment',
32
- 'F3 N2 Apartment',
33
- 'F3 S1 Apartment',
34
- 'F3 S2 Apartment',
35
- 'F4 SW Apartment',
36
- 'F4 NW Apartment',
37
- 'F4 SE Apartment',
38
- 'F4 NE Apartment',
39
- 'F4 N1 Apartment',
40
- 'F4 N2 Apartment',
41
- 'F4 S1 Apartment',
42
- 'F4 S2 Apartment',
43
- 'M SW Apartment',
44
- 'M NW Apartment',
45
- 'M SE Apartment',
46
- 'M NE Apartment',
47
- 'M N1 Apartment',
48
- 'M N2 Apartment',
49
- 'M S1 Apartment',
50
- 'M S2 Apartment',
51
- 'F6 SW Apartment',
52
- 'F6 NW Apartment',
53
- 'F6 SE Apartment',
54
- 'F6 NE Apartment',
55
- 'F6 N1 Apartment',
56
- 'F6 N2 Apartment',
57
- 'F6 S1 Apartment',
58
- 'F6 S2 Apartment',
59
- 'F7 SW Apartment',
60
- 'F7 NW Apartment',
61
- 'F7 SE Apartment',
62
- 'F7 NE Apartment',
63
- 'F7 N1 Apartment',
64
- 'F7 N2 Apartment',
65
- 'F7 S1 Apartment',
66
- 'F7 S2 Apartment',
67
- 'F8 SW Apartment',
68
- 'F8 NW Apartment',
69
- 'F8 SE Apartment',
70
- 'F8 NE Apartment',
71
- 'F8 N1 Apartment',
72
- 'F8 N2 Apartment',
73
- 'F8 S1 Apartment',
74
- 'F8 S2 Apartment',
75
- 'F9 SW Apartment',
76
- 'F9 NW Apartment',
77
- 'F9 SE Apartment',
78
- 'F9 NE Apartment',
79
- 'F9 N1 Apartment',
80
- 'F9 N2 Apartment',
81
- 'F9 S1 Apartment',
82
- 'F9 S2 Apartment'
83
- ],
84
- 'Apartment_topfloor_WE' => [
85
- 'T SW Apartment',
86
- 'T NW Apartment',
87
- 'T SE Apartment',
88
- 'T NE Apartment'
89
- ],
90
- 'Apartment_topfloor_NS' => [
91
- 'T N1 Apartment',
92
- 'T N2 Apartment',
93
- 'T S1 Apartment',
94
- 'T S2 Apartment'
95
- ]
96
- }
97
-
97
+ 'Office' => ['Office'],
98
+ 'Corridor' => ['G Corridor', 'F2 Corridor', 'F3 Corridor', 'F4 Corridor', 'M Corridor', 'F6 Corridor', 'F7 Corridor', 'F8 Corridor', 'F9 Corridor'],
99
+ 'Corridor_topfloor' => ['T Corridor'],
100
+ 'Apartment' => [
101
+ 'G SW Apartment',
102
+ 'G NW Apartment',
103
+ 'G NE Apartment',
104
+ 'G N1 Apartment',
105
+ 'G N2 Apartment',
106
+ 'G S1 Apartment',
107
+ 'G S2 Apartment',
108
+ 'F2 SW Apartment',
109
+ 'F2 NW Apartment',
110
+ 'F2 SE Apartment',
111
+ 'F2 NE Apartment',
112
+ 'F2 N1 Apartment',
113
+ 'F2 N2 Apartment',
114
+ 'F2 S1 Apartment',
115
+ 'F2 S2 Apartment',
116
+ 'F3 SW Apartment',
117
+ 'F3 NW Apartment',
118
+ 'F3 SE Apartment',
119
+ 'F3 NE Apartment',
120
+ 'F3 N1 Apartment',
121
+ 'F3 N2 Apartment',
122
+ 'F3 S1 Apartment',
123
+ 'F3 S2 Apartment',
124
+ 'F4 SW Apartment',
125
+ 'F4 NW Apartment',
126
+ 'F4 SE Apartment',
127
+ 'F4 NE Apartment',
128
+ 'F4 N1 Apartment',
129
+ 'F4 N2 Apartment',
130
+ 'F4 S1 Apartment',
131
+ 'F4 S2 Apartment',
132
+ 'M SW Apartment',
133
+ 'M NW Apartment',
134
+ 'M SE Apartment',
135
+ 'M NE Apartment',
136
+ 'M N1 Apartment',
137
+ 'M N2 Apartment',
138
+ 'M S1 Apartment',
139
+ 'M S2 Apartment',
140
+ 'F6 SW Apartment',
141
+ 'F6 NW Apartment',
142
+ 'F6 SE Apartment',
143
+ 'F6 NE Apartment',
144
+ 'F6 N1 Apartment',
145
+ 'F6 N2 Apartment',
146
+ 'F6 S1 Apartment',
147
+ 'F6 S2 Apartment',
148
+ 'F7 SW Apartment',
149
+ 'F7 NW Apartment',
150
+ 'F7 SE Apartment',
151
+ 'F7 NE Apartment',
152
+ 'F7 N1 Apartment',
153
+ 'F7 N2 Apartment',
154
+ 'F7 S1 Apartment',
155
+ 'F7 S2 Apartment',
156
+ 'F8 SW Apartment',
157
+ 'F8 NW Apartment',
158
+ 'F8 SE Apartment',
159
+ 'F8 NE Apartment',
160
+ 'F8 N1 Apartment',
161
+ 'F8 N2 Apartment',
162
+ 'F8 S1 Apartment',
163
+ 'F8 S2 Apartment',
164
+ 'F9 SW Apartment',
165
+ 'F9 NW Apartment',
166
+ 'F9 SE Apartment',
167
+ 'F9 NE Apartment',
168
+ 'F9 N1 Apartment',
169
+ 'F9 N2 Apartment',
170
+ 'F9 S1 Apartment',
171
+ 'F9 S2 Apartment'
172
+ ],
173
+ 'Apartment_topfloor_WE' => [
174
+ 'T SW Apartment',
175
+ 'T NW Apartment',
176
+ 'T SE Apartment',
177
+ 'T NE Apartment'
178
+ ],
179
+ 'Apartment_topfloor_NS' => [
180
+ 'T N1 Apartment',
181
+ 'T N2 Apartment',
182
+ 'T S1 Apartment',
183
+ 'T S2 Apartment'
184
+ ]
185
+ }
186
+ end
98
187
  return space_type_map
99
188
  end
100
189
 
101
- def define_hvac_system_map(building_type, building_vintage, climate_zone)
190
+ def define_hvac_system_map(building_type, template, climate_zone)
102
191
  system_to_space_map = [
103
- {'type' => 'PSZ-AC',
104
- 'space_names' => ['G SW Apartment']},
105
- {'type' => 'PSZ-AC',
106
- 'space_names' => ['G NW Apartment']},
107
- {'type' => 'PSZ-AC',
108
- 'space_names' => ['G NE Apartment']},
109
- {'type' => 'PSZ-AC',
110
- 'space_names' => ['G N1 Apartment']},
111
- {'type' => 'PSZ-AC',
112
- 'space_names' => ['G N2 Apartment']},
113
- {'type' => 'PSZ-AC',
114
- 'space_names' => ['G S1 Apartment']},
115
- {'type' => 'PSZ-AC',
116
- 'space_names' => ['G S2 Apartment']},
117
- {'type' => 'PSZ-AC',
118
- 'space_names' => ['F2 SW Apartment']},
119
- {'type' => 'PSZ-AC',
120
- 'space_names' => ['F2 NW Apartment']},
121
- {'type' => 'PSZ-AC',
122
- 'space_names' => ['F2 SE Apartment']},
123
- {'type' => 'PSZ-AC',
124
- 'space_names' => ['F2 NE Apartment']},
125
- {'type' => 'PSZ-AC',
126
- 'space_names' => ['F2 N1 Apartment']},
127
- {'type' => 'PSZ-AC',
128
- 'space_names' => ['F2 N2 Apartment']},
129
- {'type' => 'PSZ-AC',
130
- 'space_names' => ['F2 S1 Apartment']},
131
- {'type' => 'PSZ-AC',
132
- 'space_names' => ['F2 S2 Apartment']},
133
- {'type' => 'PSZ-AC',
134
- 'space_names' => ['F3 SW Apartment']},
135
- {'type' => 'PSZ-AC',
136
- 'space_names' => ['F3 NW Apartment']},
137
- {'type' => 'PSZ-AC',
138
- 'space_names' => ['F3 SE Apartment']},
139
- {'type' => 'PSZ-AC',
140
- 'space_names' => ['F3 NE Apartment']},
141
- {'type' => 'PSZ-AC',
142
- 'space_names' => ['F3 N1 Apartment']},
143
- {'type' => 'PSZ-AC',
144
- 'space_names' => ['F3 N2 Apartment']},
145
- {'type' => 'PSZ-AC',
146
- 'space_names' => ['F3 S1 Apartment']},
147
- {'type' => 'PSZ-AC',
148
- 'space_names' => ['F3 S2 Apartment']},
149
- {'type' => 'PSZ-AC',
150
- 'space_names' => ['F4 SW Apartment']},
151
- {'type' => 'PSZ-AC',
152
- 'space_names' => ['F4 NW Apartment']},
153
- {'type' => 'PSZ-AC',
154
- 'space_names' => ['F4 SE Apartment']},
155
- {'type' => 'PSZ-AC',
156
- 'space_names' => ['F4 NE Apartment']},
157
- {'type' => 'PSZ-AC',
158
- 'space_names' => ['F4 N1 Apartment']},
159
- {'type' => 'PSZ-AC',
160
- 'space_names' => ['F4 N2 Apartment']},
161
- {'type' => 'PSZ-AC',
162
- 'space_names' => ['F4 S1 Apartment']},
163
- {'type' => 'PSZ-AC',
164
- 'space_names' => ['F4 S2 Apartment']},
165
- {'type' => 'PSZ-AC',
166
- 'space_names' => ['M SW Apartment']},
167
- {'type' => 'PSZ-AC',
168
- 'space_names' => ['M NW Apartment']},
169
- {'type' => 'PSZ-AC',
170
- 'space_names' => ['M SE Apartment']},
171
- {'type' => 'PSZ-AC',
172
- 'space_names' => ['M NE Apartment']},
173
- {'type' => 'PSZ-AC',
174
- 'space_names' => ['M N1 Apartment']},
175
- {'type' => 'PSZ-AC',
176
- 'space_names' => ['M N2 Apartment']},
177
- {'type' => 'PSZ-AC',
178
- 'space_names' => ['M S1 Apartment']},
179
- {'type' => 'PSZ-AC',
180
- 'space_names' => ['M S2 Apartment']},
181
- {'type' => 'PSZ-AC',
182
- 'space_names' => ['F6 SW Apartment']},
183
- {'type' => 'PSZ-AC',
184
- 'space_names' => ['F6 NW Apartment']},
185
- {'type' => 'PSZ-AC',
186
- 'space_names' => ['F6 SE Apartment']},
187
- {'type' => 'PSZ-AC',
188
- 'space_names' => ['F6 NE Apartment']},
189
- {'type' => 'PSZ-AC',
190
- 'space_names' => ['F6 N1 Apartment']},
191
- {'type' => 'PSZ-AC',
192
- 'space_names' => ['F6 N2 Apartment']},
193
- {'type' => 'PSZ-AC',
194
- 'space_names' => ['F6 S1 Apartment']},
195
- {'type' => 'PSZ-AC',
196
- 'space_names' => ['F6 S2 Apartment']},
197
- {'type' => 'PSZ-AC',
198
- 'space_names' => ['F7 SW Apartment']},
199
- {'type' => 'PSZ-AC',
200
- 'space_names' => ['F7 NW Apartment']},
201
- {'type' => 'PSZ-AC',
202
- 'space_names' => ['F7 SE Apartment']},
203
- {'type' => 'PSZ-AC',
204
- 'space_names' => ['F7 NE Apartment']},
205
- {'type' => 'PSZ-AC',
206
- 'space_names' => ['F7 N1 Apartment']},
207
- {'type' => 'PSZ-AC',
208
- 'space_names' => ['F7 N2 Apartment']},
209
- {'type' => 'PSZ-AC',
210
- 'space_names' => ['F7 S1 Apartment']},
211
- {'type' => 'PSZ-AC',
212
- 'space_names' => ['F7 S2 Apartment']},
213
- {'type' => 'PSZ-AC',
214
- 'space_names' => ['F8 SW Apartment']},
215
- {'type' => 'PSZ-AC',
216
- 'space_names' => ['F8 NW Apartment']},
217
- {'type' => 'PSZ-AC',
218
- 'space_names' => ['F8 SE Apartment']},
219
- {'type' => 'PSZ-AC',
220
- 'space_names' => ['F8 NE Apartment']},
221
- {'type' => 'PSZ-AC',
222
- 'space_names' => ['F8 N1 Apartment']},
223
- {'type' => 'PSZ-AC',
224
- 'space_names' => ['F8 N2 Apartment']},
225
- {'type' => 'PSZ-AC',
226
- 'space_names' => ['F8 S1 Apartment']},
227
- {'type' => 'PSZ-AC',
228
- 'space_names' => ['F8 S2 Apartment']},
229
- {'type' => 'PSZ-AC',
230
- 'space_names' => ['F9 SW Apartment']},
231
- {'type' => 'PSZ-AC',
232
- 'space_names' => ['F9 NW Apartment']},
233
- {'type' => 'PSZ-AC',
234
- 'space_names' => ['F9 SE Apartment']},
235
- {'type' => 'PSZ-AC',
236
- 'space_names' => ['F9 NE Apartment']},
237
- {'type' => 'PSZ-AC',
238
- 'space_names' => ['F9 N1 Apartment']},
239
- {'type' => 'PSZ-AC',
240
- 'space_names' => ['F9 N2 Apartment']},
241
- {'type' => 'PSZ-AC',
242
- 'space_names' => ['F9 S1 Apartment']},
243
- {'type' => 'PSZ-AC',
244
- 'space_names' => ['F9 S2 Apartment']},
245
- {'type' => 'PSZ-AC',
246
- 'space_names' => ['T SW Apartment']},
247
- {'type' => 'PSZ-AC',
248
- 'space_names' => ['T NW Apartment']},
249
- {'type' => 'PSZ-AC',
250
- 'space_names' => ['T SE Apartment']},
251
- {'type' => 'PSZ-AC',
252
- 'space_names' => ['T NE Apartment']},
253
- {'type' => 'PSZ-AC',
254
- 'space_names' => ['T N1 Apartment']},
255
- {'type' => 'PSZ-AC',
256
- 'space_names' => ['T N2 Apartment']},
257
- {'type' => 'PSZ-AC',
258
- 'space_names' => ['T S1 Apartment']},
259
- {'type' => 'PSZ-AC',
260
- 'space_names' => ['T S2 Apartment']},
261
- {'type' => 'PSZ-AC',
262
- 'space_names' => ['Office']}
263
- ]
192
+ { 'type' => 'PSZ-AC',
193
+ 'space_names' => ['G SW Apartment'] },
194
+ { 'type' => 'PSZ-AC',
195
+ 'space_names' => ['G NW Apartment'] },
196
+ { 'type' => 'PSZ-AC',
197
+ 'space_names' => ['G NE Apartment'] },
198
+ { 'type' => 'PSZ-AC',
199
+ 'space_names' => ['G N1 Apartment'] },
200
+ { 'type' => 'PSZ-AC',
201
+ 'space_names' => ['G N2 Apartment'] },
202
+ { 'type' => 'PSZ-AC',
203
+ 'space_names' => ['G S1 Apartment'] },
204
+ { 'type' => 'PSZ-AC',
205
+ 'space_names' => ['G S2 Apartment'] },
206
+ { 'type' => 'PSZ-AC',
207
+ 'space_names' => ['F2 SW Apartment'] },
208
+ { 'type' => 'PSZ-AC',
209
+ 'space_names' => ['F2 NW Apartment'] },
210
+ { 'type' => 'PSZ-AC',
211
+ 'space_names' => ['F2 SE Apartment'] },
212
+ { 'type' => 'PSZ-AC',
213
+ 'space_names' => ['F2 NE Apartment'] },
214
+ { 'type' => 'PSZ-AC',
215
+ 'space_names' => ['F2 N1 Apartment'] },
216
+ { 'type' => 'PSZ-AC',
217
+ 'space_names' => ['F2 N2 Apartment'] },
218
+ { 'type' => 'PSZ-AC',
219
+ 'space_names' => ['F2 S1 Apartment'] },
220
+ { 'type' => 'PSZ-AC',
221
+ 'space_names' => ['F2 S2 Apartment'] },
222
+ { 'type' => 'PSZ-AC',
223
+ 'space_names' => ['F3 SW Apartment'] },
224
+ { 'type' => 'PSZ-AC',
225
+ 'space_names' => ['F3 NW Apartment'] },
226
+ { 'type' => 'PSZ-AC',
227
+ 'space_names' => ['F3 SE Apartment'] },
228
+ { 'type' => 'PSZ-AC',
229
+ 'space_names' => ['F3 NE Apartment'] },
230
+ { 'type' => 'PSZ-AC',
231
+ 'space_names' => ['F3 N1 Apartment'] },
232
+ { 'type' => 'PSZ-AC',
233
+ 'space_names' => ['F3 N2 Apartment'] },
234
+ { 'type' => 'PSZ-AC',
235
+ 'space_names' => ['F3 S1 Apartment'] },
236
+ { 'type' => 'PSZ-AC',
237
+ 'space_names' => ['F3 S2 Apartment'] },
238
+ { 'type' => 'PSZ-AC',
239
+ 'space_names' => ['F4 SW Apartment'] },
240
+ { 'type' => 'PSZ-AC',
241
+ 'space_names' => ['F4 NW Apartment'] },
242
+ { 'type' => 'PSZ-AC',
243
+ 'space_names' => ['F4 SE Apartment'] },
244
+ { 'type' => 'PSZ-AC',
245
+ 'space_names' => ['F4 NE Apartment'] },
246
+ { 'type' => 'PSZ-AC',
247
+ 'space_names' => ['F4 N1 Apartment'] },
248
+ { 'type' => 'PSZ-AC',
249
+ 'space_names' => ['F4 N2 Apartment'] },
250
+ { 'type' => 'PSZ-AC',
251
+ 'space_names' => ['F4 S1 Apartment'] },
252
+ { 'type' => 'PSZ-AC',
253
+ 'space_names' => ['F4 S2 Apartment'] },
254
+ { 'type' => 'PSZ-AC',
255
+ 'space_names' => ['M SW Apartment'] },
256
+ { 'type' => 'PSZ-AC',
257
+ 'space_names' => ['M NW Apartment'] },
258
+ { 'type' => 'PSZ-AC',
259
+ 'space_names' => ['M SE Apartment'] },
260
+ { 'type' => 'PSZ-AC',
261
+ 'space_names' => ['M NE Apartment'] },
262
+ { 'type' => 'PSZ-AC',
263
+ 'space_names' => ['M N1 Apartment'] },
264
+ { 'type' => 'PSZ-AC',
265
+ 'space_names' => ['M N2 Apartment'] },
266
+ { 'type' => 'PSZ-AC',
267
+ 'space_names' => ['M S1 Apartment'] },
268
+ { 'type' => 'PSZ-AC',
269
+ 'space_names' => ['M S2 Apartment'] },
270
+ { 'type' => 'PSZ-AC',
271
+ 'space_names' => ['F6 SW Apartment'] },
272
+ { 'type' => 'PSZ-AC',
273
+ 'space_names' => ['F6 NW Apartment'] },
274
+ { 'type' => 'PSZ-AC',
275
+ 'space_names' => ['F6 SE Apartment'] },
276
+ { 'type' => 'PSZ-AC',
277
+ 'space_names' => ['F6 NE Apartment'] },
278
+ { 'type' => 'PSZ-AC',
279
+ 'space_names' => ['F6 N1 Apartment'] },
280
+ { 'type' => 'PSZ-AC',
281
+ 'space_names' => ['F6 N2 Apartment'] },
282
+ { 'type' => 'PSZ-AC',
283
+ 'space_names' => ['F6 S1 Apartment'] },
284
+ { 'type' => 'PSZ-AC',
285
+ 'space_names' => ['F6 S2 Apartment'] },
286
+ { 'type' => 'PSZ-AC',
287
+ 'space_names' => ['F7 SW Apartment'] },
288
+ { 'type' => 'PSZ-AC',
289
+ 'space_names' => ['F7 NW Apartment'] },
290
+ { 'type' => 'PSZ-AC',
291
+ 'space_names' => ['F7 SE Apartment'] },
292
+ { 'type' => 'PSZ-AC',
293
+ 'space_names' => ['F7 NE Apartment'] },
294
+ { 'type' => 'PSZ-AC',
295
+ 'space_names' => ['F7 N1 Apartment'] },
296
+ { 'type' => 'PSZ-AC',
297
+ 'space_names' => ['F7 N2 Apartment'] },
298
+ { 'type' => 'PSZ-AC',
299
+ 'space_names' => ['F7 S1 Apartment'] },
300
+ { 'type' => 'PSZ-AC',
301
+ 'space_names' => ['F7 S2 Apartment'] },
302
+ { 'type' => 'PSZ-AC',
303
+ 'space_names' => ['F8 SW Apartment'] },
304
+ { 'type' => 'PSZ-AC',
305
+ 'space_names' => ['F8 NW Apartment'] },
306
+ { 'type' => 'PSZ-AC',
307
+ 'space_names' => ['F8 SE Apartment'] },
308
+ { 'type' => 'PSZ-AC',
309
+ 'space_names' => ['F8 NE Apartment'] },
310
+ { 'type' => 'PSZ-AC',
311
+ 'space_names' => ['F8 N1 Apartment'] },
312
+ { 'type' => 'PSZ-AC',
313
+ 'space_names' => ['F8 N2 Apartment'] },
314
+ { 'type' => 'PSZ-AC',
315
+ 'space_names' => ['F8 S1 Apartment'] },
316
+ { 'type' => 'PSZ-AC',
317
+ 'space_names' => ['F8 S2 Apartment'] },
318
+ { 'type' => 'PSZ-AC',
319
+ 'space_names' => ['F9 SW Apartment'] },
320
+ { 'type' => 'PSZ-AC',
321
+ 'space_names' => ['F9 NW Apartment'] },
322
+ { 'type' => 'PSZ-AC',
323
+ 'space_names' => ['F9 SE Apartment'] },
324
+ { 'type' => 'PSZ-AC',
325
+ 'space_names' => ['F9 NE Apartment'] },
326
+ { 'type' => 'PSZ-AC',
327
+ 'space_names' => ['F9 N1 Apartment'] },
328
+ { 'type' => 'PSZ-AC',
329
+ 'space_names' => ['F9 N2 Apartment'] },
330
+ { 'type' => 'PSZ-AC',
331
+ 'space_names' => ['F9 S1 Apartment'] },
332
+ { 'type' => 'PSZ-AC',
333
+ 'space_names' => ['F9 S2 Apartment'] },
334
+ { 'type' => 'PSZ-AC',
335
+ 'space_names' => ['T SW Apartment'] },
336
+ { 'type' => 'PSZ-AC',
337
+ 'space_names' => ['T NW Apartment'] },
338
+ { 'type' => 'PSZ-AC',
339
+ 'space_names' => ['T SE Apartment'] },
340
+ { 'type' => 'PSZ-AC',
341
+ 'space_names' => ['T NE Apartment'] },
342
+ { 'type' => 'PSZ-AC',
343
+ 'space_names' => ['T N1 Apartment'] },
344
+ { 'type' => 'PSZ-AC',
345
+ 'space_names' => ['T N2 Apartment'] },
346
+ { 'type' => 'PSZ-AC',
347
+ 'space_names' => ['T S1 Apartment'] },
348
+ { 'type' => 'PSZ-AC',
349
+ 'space_names' => ['T S2 Apartment'] },
350
+ { 'type' => 'PSZ-AC',
351
+ 'space_names' => ['Office'] }
352
+ ]
264
353
 
265
354
  return system_to_space_map
266
355
  end
267
356
 
268
-
269
- def custom_hvac_tweaks(building_type, building_vintage, climate_zone, prototype_input)
270
-
357
+ def custom_hvac_tweaks(building_type, template, climate_zone, prototype_input)
271
358
  # add elevator and lights&fans for the ground floor corridor
272
- self.add_extra_equip_corridor(building_vintage)
359
+ add_extra_equip_corridor(template)
273
360
  # add extra infiltration for ground floor corridor
274
- self.add_door_infiltration(building_vintage,climate_zone)
275
-
361
+ add_door_infiltration(template, climate_zone)
362
+
276
363
  return true
277
-
278
- end #add hvac
364
+ end # add hvac
279
365
 
280
366
  # add elevator and lights&fans for the top floor corridor
281
- def add_extra_equip_corridor(building_vintage)
282
- corridor_top_space = self.getSpaceByName('T Corridor').get
367
+ def add_extra_equip_corridor(template)
368
+ corridor_top_space = getSpaceByName('T Corridor').get
283
369
  elec_equip_def1 = OpenStudio::Model::ElectricEquipmentDefinition.new(self)
284
370
  elec_equip_def2 = OpenStudio::Model::ElectricEquipmentDefinition.new(self)
285
- elec_equip_def1.setName("T Corridor Electric Equipment Definition1")
286
- elec_equip_def2.setName("T Corridor Electric Equipment Definition2")
371
+ elec_equip_def1.setName('T Corridor Electric Equipment Definition1')
372
+ elec_equip_def2.setName('T Corridor Electric Equipment Definition2')
287
373
  elec_equip_def1.setFractionLatent(0)
288
374
  elec_equip_def1.setFractionRadiant(0)
289
375
  elec_equip_def1.setFractionLost(0.95)
290
376
  elec_equip_def2.setFractionLatent(0)
291
377
  elec_equip_def2.setFractionRadiant(0)
292
378
  elec_equip_def2.setFractionLost(0.95)
293
- elec_equip_def1.setDesignLevel(20370)
294
- case building_vintage
379
+ elec_equip_def1.setDesignLevel(20_370)
380
+ case template
295
381
  when '90.1-2013'
296
382
  elec_equip_def2.setDesignLevel(63)
297
383
  when '90.1-2010'
@@ -302,36 +388,36 @@ class OpenStudio::Model::Model
302
388
  # Create the electric equipment instance and hook it up to the space type
303
389
  elec_equip1 = OpenStudio::Model::ElectricEquipment.new(elec_equip_def1)
304
390
  elec_equip2 = OpenStudio::Model::ElectricEquipment.new(elec_equip_def2)
305
- elec_equip1.setName("T Corridor_Elevators_Equip")
306
- elec_equip2.setName("Elevators_Lights_Fan")
391
+ elec_equip1.setName('T Corridor_Elevators_Equip')
392
+ elec_equip2.setName('Elevators_Lights_Fan')
307
393
  elec_equip1.setSpace(corridor_top_space)
308
394
  elec_equip2.setSpace(corridor_top_space)
309
- elec_equip1.setSchedule(add_schedule("ApartmentMidRise BLDG_ELEVATORS"))
310
- case building_vintage
395
+ elec_equip1.setSchedule(add_schedule('ApartmentMidRise BLDG_ELEVATORS'))
396
+ case template
311
397
  when '90.1-2004', '90.1-2007'
312
- elec_equip2.setSchedule(add_schedule("ApartmentMidRise ELEV_LIGHT_FAN_SCH_24_7"))
398
+ elec_equip2.setSchedule(add_schedule('ApartmentMidRise ELEV_LIGHT_FAN_SCH_24_7'))
313
399
  when '90.1-2010', '90.1-2013'
314
- elec_equip2.setSchedule(add_schedule("ApartmentMidRise ELEV_LIGHT_FAN_SCH_ADD_DF"))
400
+ elec_equip2.setSchedule(add_schedule('ApartmentMidRise ELEV_LIGHT_FAN_SCH_ADD_DF'))
315
401
  end
316
402
  end
317
403
 
318
- def update_waterheater_loss_coefficient(building_vintage)
319
- case building_vintage
404
+ def update_waterheater_loss_coefficient(template)
405
+ case template
320
406
  when '90.1-2004', '90.1-2007', '90.1-2010', '90.1-2013'
321
- self.getWaterHeaterMixeds.sort.each do |water_heater|
407
+ getWaterHeaterMixeds.sort.each do |water_heater|
322
408
  water_heater.setOffCycleLossCoefficienttoAmbientTemperature(46.288874618)
323
409
  water_heater.setOnCycleLossCoefficienttoAmbientTemperature(46.288874618)
324
410
  end
325
- end
411
+ end
326
412
  end
327
413
 
328
414
  # add extra infiltration for ground floor corridor
329
- def add_door_infiltration(building_vintage,climate_zone)
330
- g_corridor = self.getSpaceByName('G Corridor').get
415
+ def add_door_infiltration(template, climate_zone)
416
+ g_corridor = getSpaceByName('G Corridor').get
331
417
  infiltration_g_corridor_door = OpenStudio::Model::SpaceInfiltrationDesignFlowRate.new(self)
332
- infiltration_g_corridor_door.setName("G Corridor door Infiltration")
418
+ infiltration_g_corridor_door.setName('G Corridor door Infiltration')
333
419
  infiltration_g_corridor_door.setSpace(g_corridor)
334
- case building_vintage
420
+ case template
335
421
  when '90.1-2004'
336
422
  infiltration_g_corridor_door.setDesignFlowRate(1.523916863)
337
423
  infiltration_g_corridor_door.setSchedule(add_schedule('ApartmentHighRise INFIL_Door_Opening_SCH_0.144'))
@@ -348,18 +434,15 @@ class OpenStudio::Model::Model
348
434
  end
349
435
 
350
436
  def update_fan_efficiency
351
- self.getFanOnOffs.sort.each do |fan_onoff|
437
+ getFanOnOffs.sort.each do |fan_onoff|
352
438
  fan_onoff.setFanEfficiency(0.53625)
353
439
  fan_onoff.setMotorEfficiency(0.825)
354
440
  end
355
441
  end
356
442
 
357
- def custom_swh_tweaks(building_type, building_vintage, climate_zone, prototype_input)
358
-
359
- self.update_waterheater_loss_coefficient(building_vintage)
360
-
443
+ def custom_swh_tweaks(building_type, template, climate_zone, prototype_input)
444
+ update_waterheater_loss_coefficient(template)
445
+
361
446
  return true
362
-
363
- end
364
-
447
+ end
365
448
  end