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.
- checksums.yaml +4 -4
- data/data/standards/OpenStudio_Standards.xlsx +0 -0
- data/data/standards/OpenStudio_Standards_boilers.json +62 -4
- data/data/standards/OpenStudio_Standards_chillers.json +778 -68
- data/data/standards/OpenStudio_Standards_construction_sets.json +52 -93
- data/data/standards/OpenStudio_Standards_curve_biquadratics.json +36 -36
- data/data/standards/OpenStudio_Standards_curve_quadratics.json +3 -3
- data/data/standards/OpenStudio_Standards_heat_pumps.json +840 -0
- data/data/standards/OpenStudio_Standards_heat_pumps_heating.json +352 -0
- data/data/standards/OpenStudio_Standards_heat_rejection.json +48 -0
- data/data/standards/OpenStudio_Standards_motors.json +270 -0
- data/data/standards/OpenStudio_Standards_space_types.json +10390 -2824
- data/data/standards/OpenStudio_Standards_unitary_acs.json +794 -18
- data/data/weather/USA_CO_Boulder-Broomfield-Jefferson.County.AP.724699_TMY3.ddy +538 -0
- data/data/weather/USA_CO_Boulder-Broomfield-Jefferson.County.AP.724699_TMY3.epw +8768 -0
- data/data/weather/USA_CO_Boulder-Broomfield-Jefferson.County.AP.724699_TMY3.stat +493 -0
- data/data/weather/USA_CO_Denver.Intl.AP.725650_TMY3.ddy +536 -0
- data/data/weather/USA_CO_Denver.Intl.AP.725650_TMY3.epw +8768 -0
- data/data/weather/USA_CO_Denver.Intl.AP.725650_TMY3.stat +554 -0
- data/data/weather/USA_CO_Fort.Collins.AWOS.724769_TMY3.ddy +536 -0
- data/data/weather/USA_CO_Fort.Collins.AWOS.724769_TMY3.epw +8768 -0
- data/data/weather/USA_CO_Fort.Collins.AWOS.724769_TMY3.stat +554 -0
- data/data/weather/envelope_info.csv +6 -0
- data/lib/openstudio-standards.rb +10 -11
- data/lib/openstudio-standards/btap/compliance.rb +251 -969
- data/lib/openstudio-standards/btap/envelope.rb +1 -1
- data/lib/openstudio-standards/btap/fileio.rb +37 -5
- data/lib/openstudio-standards/btap/geometry.rb +27 -17
- data/lib/openstudio-standards/btap/hvac.rb +80 -27
- data/lib/openstudio-standards/hvac_sizing/{HVACSizing.CoilHeatingDXMultiSpeed.rb → Siz.CoilHeatingDXMultiSpeed.rb} +0 -0
- data/lib/openstudio-standards/hvac_sizing/Siz.ControllerOutdoorAir.rb +30 -4
- data/lib/openstudio-standards/hvac_sizing/Siz.CoolingTowerTwoSpeed.rb +61 -5
- data/lib/openstudio-standards/hvac_sizing/Siz.CoolingTowerVariableSpeed.rb +37 -7
- data/lib/openstudio-standards/hvac_sizing/Siz.DistrictCooling.rb +27 -0
- data/lib/openstudio-standards/hvac_sizing/Siz.DistrictHeating.rb +27 -0
- data/lib/openstudio-standards/hvac_sizing/Siz.HeaderedPumpsConstantSpeed.rb +55 -0
- data/lib/openstudio-standards/hvac_sizing/Siz.HeaderedPumpsVariableSpeed.rb +55 -0
- data/lib/openstudio-standards/hvac_sizing/Siz.HeatingCoolingFuels.rb +51 -9
- data/lib/openstudio-standards/hvac_sizing/Siz.Model.rb +99 -17
- data/lib/openstudio-standards/hvac_sizing/Siz.PumpConstantSpeed.rb +1 -1
- data/lib/openstudio-standards/hvac_sizing/Siz.ThermalZone.rb +29 -6
- data/lib/openstudio-standards/hvac_sizing/Siz.WaterHeaterMixed.rb +16 -0
- data/lib/openstudio-standards/prototypes/Prototype.AirTerminalSingleDuctVAVReheat.rb +43 -48
- data/lib/openstudio-standards/prototypes/Prototype.ControllerWaterCoil.rb +5 -9
- data/lib/openstudio-standards/prototypes/Prototype.Fan.rb +68 -0
- data/lib/openstudio-standards/prototypes/Prototype.FanConstantVolume.rb +39 -43
- data/lib/openstudio-standards/prototypes/Prototype.FanOnOff.rb +49 -51
- data/lib/openstudio-standards/prototypes/Prototype.FanVariableVolume.rb +55 -61
- data/lib/openstudio-standards/prototypes/Prototype.FanZoneExhaust.rb +8 -10
- data/lib/openstudio-standards/prototypes/Prototype.HeatExchangerAirToAirSensibleAndLatent.rb +15 -20
- data/lib/openstudio-standards/prototypes/Prototype.Model.hvac.rb +330 -322
- data/lib/openstudio-standards/prototypes/Prototype.Model.rb +501 -446
- data/lib/openstudio-standards/prototypes/Prototype.Model.swh.rb +221 -230
- data/lib/openstudio-standards/prototypes/Prototype.add_objects.rb +0 -2
- data/lib/openstudio-standards/prototypes/Prototype.full_service_restaurant.rb +130 -137
- data/lib/openstudio-standards/prototypes/Prototype.high_rise_apartment.rb +374 -291
- data/lib/openstudio-standards/prototypes/Prototype.hospital.rb +146 -193
- data/lib/openstudio-standards/prototypes/Prototype.hvac_systems.rb +1315 -1113
- data/lib/openstudio-standards/prototypes/Prototype.large_hotel.rb +65 -88
- data/lib/openstudio-standards/prototypes/Prototype.large_office.rb +101 -156
- data/lib/openstudio-standards/prototypes/Prototype.medium_office.rb +46 -96
- data/lib/openstudio-standards/prototypes/Prototype.mid_rise_apartment.rb +113 -123
- data/lib/openstudio-standards/prototypes/Prototype.outpatient.rb +356 -345
- data/lib/openstudio-standards/prototypes/Prototype.primary_school.rb +48 -103
- data/lib/openstudio-standards/prototypes/Prototype.quick_service_restaurant.rb +115 -123
- data/lib/openstudio-standards/prototypes/Prototype.retail_standalone.rb +30 -39
- data/lib/openstudio-standards/prototypes/Prototype.retail_stripmall.rb +32 -45
- data/lib/openstudio-standards/prototypes/Prototype.secondary_school.rb +98 -258
- data/lib/openstudio-standards/prototypes/Prototype.small_hotel.rb +429 -474
- data/lib/openstudio-standards/prototypes/Prototype.small_office.rb +28 -36
- data/lib/openstudio-standards/prototypes/Prototype.strip_model.rb +7 -7
- data/lib/openstudio-standards/prototypes/Prototype.utilities.rb +172 -146
- data/lib/openstudio-standards/prototypes/Prototype.warehouse.rb +46 -53
- data/lib/openstudio-standards/standards/Standards.AirLoopHVAC.rb +885 -707
- data/lib/openstudio-standards/standards/Standards.AirTerminalSingleDuctParallelPIUReheat.rb +48 -57
- data/lib/openstudio-standards/standards/Standards.AirTerminalSingleDuctVAVReheat.rb +24 -31
- data/lib/openstudio-standards/standards/Standards.BoilerHotWater.rb +80 -93
- data/lib/openstudio-standards/standards/Standards.BuildingStory.rb +69 -0
- data/lib/openstudio-standards/standards/Standards.ChillerElectricEIR.rb +60 -72
- data/lib/openstudio-standards/standards/Standards.CoilCoolingDXMultiSpeed.rb +104 -108
- data/lib/openstudio-standards/standards/Standards.CoilCoolingDXSingleSpeed.rb +190 -198
- data/lib/openstudio-standards/standards/Standards.CoilCoolingDXTwoSpeed.rb +134 -146
- data/lib/openstudio-standards/standards/Standards.CoilHeatingDXMultiSpeed.rb +56 -60
- data/lib/openstudio-standards/standards/Standards.CoilHeatingDXSingleSpeed.rb +151 -161
- data/lib/openstudio-standards/standards/Standards.CoilHeatingGasMultiStage.rb +30 -34
- data/lib/openstudio-standards/standards/Standards.Construction.rb +116 -132
- data/lib/openstudio-standards/standards/Standards.CoolingTower.rb +138 -0
- data/lib/openstudio-standards/standards/Standards.CoolingTowerSingleSpeed.rb +11 -0
- data/lib/openstudio-standards/standards/Standards.CoolingTowerTwoSpeed.rb +11 -0
- data/lib/openstudio-standards/standards/Standards.CoolingTowerVariableSpeed.rb +16 -0
- data/lib/openstudio-standards/standards/Standards.Fan.rb +190 -236
- data/lib/openstudio-standards/standards/Standards.FanConstantVolume.rb +0 -2
- data/lib/openstudio-standards/standards/Standards.FanOnOff.rb +0 -2
- data/lib/openstudio-standards/standards/Standards.FanVariableVolume.rb +168 -14
- data/lib/openstudio-standards/standards/Standards.FanZoneExhaust.rb +0 -2
- data/lib/openstudio-standards/standards/Standards.HeaderedPumpsConstantSpeed.rb +33 -0
- data/lib/openstudio-standards/standards/Standards.HeaderedPumpsVariableSpeed.rb +83 -0
- data/lib/openstudio-standards/standards/Standards.HeatExchangerSensLat.rb +22 -0
- data/lib/openstudio-standards/standards/Standards.Model.rb +2385 -1622
- data/lib/openstudio-standards/standards/Standards.PlanarSurface.rb +83 -35
- data/lib/openstudio-standards/standards/Standards.PlantLoop.rb +805 -395
- data/lib/openstudio-standards/standards/Standards.Pump.rb +139 -119
- data/lib/openstudio-standards/standards/Standards.PumpConstantSpeed.rb +0 -2
- data/lib/openstudio-standards/standards/Standards.PumpVariableSpeed.rb +16 -15
- data/lib/openstudio-standards/standards/Standards.ScheduleCompact.rb +35 -0
- data/lib/openstudio-standards/standards/Standards.ScheduleConstant.rb +7 -13
- data/lib/openstudio-standards/standards/Standards.ScheduleRuleset.rb +144 -59
- data/lib/openstudio-standards/standards/Standards.Space.rb +1509 -1326
- data/lib/openstudio-standards/standards/Standards.SpaceType.rb +254 -262
- data/lib/openstudio-standards/standards/Standards.SubSurface.rb +105 -105
- data/lib/openstudio-standards/standards/Standards.Surface.rb +27 -31
- data/lib/openstudio-standards/standards/Standards.ThermalZone.rb +882 -157
- data/lib/openstudio-standards/standards/Standards.WaterHeaterMixed.rb +179 -69
- data/lib/openstudio-standards/standards/Standards.ZoneHVACComponent.rb +75 -0
- data/lib/openstudio-standards/utilities/logging.rb +31 -38
- data/lib/openstudio-standards/utilities/simulation.rb +118 -82
- data/lib/openstudio-standards/version.rb +1 -1
- data/lib/openstudio-standards/weather/Weather.Model.rb +382 -390
- data/lib/openstudio-standards/weather/Weather.stat_file.rb +159 -78
- metadata +59 -6
@@ -1,297 +1,383 @@
|
|
1
1
|
|
2
2
|
|
3
3
|
class OpenStudio::Model::Model
|
4
|
-
|
5
|
-
|
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
|
-
|
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
|
-
|
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,
|
190
|
+
def define_hvac_system_map(building_type, template, climate_zone)
|
102
191
|
system_to_space_map = [
|
103
|
-
{'type' => 'PSZ-AC',
|
104
|
-
|
105
|
-
{'type' => 'PSZ-AC',
|
106
|
-
|
107
|
-
{'type' => 'PSZ-AC',
|
108
|
-
|
109
|
-
{'type' => 'PSZ-AC',
|
110
|
-
|
111
|
-
{'type' => 'PSZ-AC',
|
112
|
-
|
113
|
-
{'type' => 'PSZ-AC',
|
114
|
-
|
115
|
-
{'type' => 'PSZ-AC',
|
116
|
-
|
117
|
-
{'type' => 'PSZ-AC',
|
118
|
-
|
119
|
-
{'type' => 'PSZ-AC',
|
120
|
-
|
121
|
-
{'type' => 'PSZ-AC',
|
122
|
-
|
123
|
-
{'type' => 'PSZ-AC',
|
124
|
-
|
125
|
-
{'type' => 'PSZ-AC',
|
126
|
-
|
127
|
-
{'type' => 'PSZ-AC',
|
128
|
-
|
129
|
-
{'type' => 'PSZ-AC',
|
130
|
-
|
131
|
-
{'type' => 'PSZ-AC',
|
132
|
-
|
133
|
-
{'type' => 'PSZ-AC',
|
134
|
-
|
135
|
-
{'type' => 'PSZ-AC',
|
136
|
-
|
137
|
-
{'type' => 'PSZ-AC',
|
138
|
-
|
139
|
-
{'type' => 'PSZ-AC',
|
140
|
-
|
141
|
-
{'type' => 'PSZ-AC',
|
142
|
-
|
143
|
-
{'type' => 'PSZ-AC',
|
144
|
-
|
145
|
-
{'type' => 'PSZ-AC',
|
146
|
-
|
147
|
-
{'type' => 'PSZ-AC',
|
148
|
-
|
149
|
-
{'type' => 'PSZ-AC',
|
150
|
-
|
151
|
-
{'type' => 'PSZ-AC',
|
152
|
-
|
153
|
-
{'type' => 'PSZ-AC',
|
154
|
-
|
155
|
-
{'type' => 'PSZ-AC',
|
156
|
-
|
157
|
-
{'type' => 'PSZ-AC',
|
158
|
-
|
159
|
-
{'type' => 'PSZ-AC',
|
160
|
-
|
161
|
-
{'type' => 'PSZ-AC',
|
162
|
-
|
163
|
-
{'type' => 'PSZ-AC',
|
164
|
-
|
165
|
-
{'type' => 'PSZ-AC',
|
166
|
-
|
167
|
-
{'type' => 'PSZ-AC',
|
168
|
-
|
169
|
-
{'type' => 'PSZ-AC',
|
170
|
-
|
171
|
-
{'type' => 'PSZ-AC',
|
172
|
-
|
173
|
-
{'type' => 'PSZ-AC',
|
174
|
-
|
175
|
-
{'type' => 'PSZ-AC',
|
176
|
-
|
177
|
-
{'type' => 'PSZ-AC',
|
178
|
-
|
179
|
-
{'type' => 'PSZ-AC',
|
180
|
-
|
181
|
-
{'type' => 'PSZ-AC',
|
182
|
-
|
183
|
-
{'type' => 'PSZ-AC',
|
184
|
-
|
185
|
-
{'type' => 'PSZ-AC',
|
186
|
-
|
187
|
-
{'type' => 'PSZ-AC',
|
188
|
-
|
189
|
-
{'type' => 'PSZ-AC',
|
190
|
-
|
191
|
-
{'type' => 'PSZ-AC',
|
192
|
-
|
193
|
-
{'type' => 'PSZ-AC',
|
194
|
-
|
195
|
-
{'type' => 'PSZ-AC',
|
196
|
-
|
197
|
-
{'type' => 'PSZ-AC',
|
198
|
-
|
199
|
-
{'type' => 'PSZ-AC',
|
200
|
-
|
201
|
-
{'type' => 'PSZ-AC',
|
202
|
-
|
203
|
-
{'type' => 'PSZ-AC',
|
204
|
-
|
205
|
-
{'type' => 'PSZ-AC',
|
206
|
-
|
207
|
-
{'type' => 'PSZ-AC',
|
208
|
-
|
209
|
-
{'type' => 'PSZ-AC',
|
210
|
-
|
211
|
-
{'type' => 'PSZ-AC',
|
212
|
-
|
213
|
-
{'type' => 'PSZ-AC',
|
214
|
-
|
215
|
-
{'type' => 'PSZ-AC',
|
216
|
-
|
217
|
-
{'type' => 'PSZ-AC',
|
218
|
-
|
219
|
-
{'type' => 'PSZ-AC',
|
220
|
-
|
221
|
-
{'type' => 'PSZ-AC',
|
222
|
-
|
223
|
-
{'type' => 'PSZ-AC',
|
224
|
-
|
225
|
-
{'type' => 'PSZ-AC',
|
226
|
-
|
227
|
-
{'type' => 'PSZ-AC',
|
228
|
-
|
229
|
-
{'type' => 'PSZ-AC',
|
230
|
-
|
231
|
-
{'type' => 'PSZ-AC',
|
232
|
-
|
233
|
-
{'type' => 'PSZ-AC',
|
234
|
-
|
235
|
-
{'type' => 'PSZ-AC',
|
236
|
-
|
237
|
-
{'type' => 'PSZ-AC',
|
238
|
-
|
239
|
-
{'type' => 'PSZ-AC',
|
240
|
-
|
241
|
-
{'type' => 'PSZ-AC',
|
242
|
-
|
243
|
-
{'type' => 'PSZ-AC',
|
244
|
-
|
245
|
-
{'type' => 'PSZ-AC',
|
246
|
-
|
247
|
-
{'type' => 'PSZ-AC',
|
248
|
-
|
249
|
-
{'type' => 'PSZ-AC',
|
250
|
-
|
251
|
-
{'type' => 'PSZ-AC',
|
252
|
-
|
253
|
-
{'type' => 'PSZ-AC',
|
254
|
-
|
255
|
-
{'type' => 'PSZ-AC',
|
256
|
-
|
257
|
-
{'type' => 'PSZ-AC',
|
258
|
-
|
259
|
-
{'type' => 'PSZ-AC',
|
260
|
-
|
261
|
-
{'type' => 'PSZ-AC',
|
262
|
-
|
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
|
-
|
359
|
+
add_extra_equip_corridor(template)
|
273
360
|
# add extra infiltration for ground floor corridor
|
274
|
-
|
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(
|
282
|
-
corridor_top_space =
|
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(
|
286
|
-
elec_equip_def2.setName(
|
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(
|
294
|
-
case
|
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(
|
306
|
-
elec_equip2.setName(
|
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(
|
310
|
-
case
|
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(
|
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(
|
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(
|
319
|
-
case
|
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
|
-
|
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(
|
330
|
-
g_corridor =
|
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(
|
418
|
+
infiltration_g_corridor_door.setName('G Corridor door Infiltration')
|
333
419
|
infiltration_g_corridor_door.setSpace(g_corridor)
|
334
|
-
case
|
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
|
-
|
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,
|
358
|
-
|
359
|
-
|
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
|