GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 81.5% 753 / 0 / 924
Functions: 91.6% 241 / 0 / 263
Branches: 48.9% 403 / 0 / 824

src/model/SizingSystem.cpp
Line Branch Exec Source
1 /***********************************************************************************************************************
2 * OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC.
3 * See also https://openstudio.net/license
4 ***********************************************************************************************************************/
5
6 #include "SizingSystem.hpp"
7 #include "SizingSystem_Impl.hpp"
8 #include "AirLoopHVAC.hpp"
9 #include "AirLoopHVAC_Impl.hpp"
10 #include "AirLoopHVACOutdoorAirSystem.hpp"
11 #include "AirLoopHVACOutdoorAirSystem_Impl.hpp"
12 #include "ControllerOutdoorAir.hpp"
13 #include "ControllerOutdoorAir_Impl.hpp"
14 #include "Model.hpp"
15 #include "Model_Impl.hpp"
16 #include <utilities/idd/IddFactory.hxx>
17
18 #include <utilities/idd/OS_Sizing_System_FieldEnums.hxx>
19 #include <utilities/idd/IddEnums.hxx>
20 #include "../utilities/core/Assert.hpp"
21 #include "../utilities/sql/SqlFile.hpp"
22
23 namespace openstudio {
24
25 namespace model {
26
27 namespace detail {
28
29 749 SizingSystem_Impl::SizingSystem_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
30 749 : ModelObject_Impl(idfObject, model, keepHandle) {
31
4/6
✓ Branch 1 taken 749 times.
✓ Branch 4 taken 749 times.
✓ Branch 7 taken 749 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 749 times.
✗ Branch 13 not taken.
749 OS_ASSERT(idfObject.iddObject().type() == SizingSystem::iddObjectType());
32 749 }
33
34 43 SizingSystem_Impl::SizingSystem_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle)
35 43 : ModelObject_Impl(other, model, keepHandle) {
36
4/6
✓ Branch 1 taken 43 times.
✓ Branch 4 taken 43 times.
✓ Branch 7 taken 43 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 43 times.
✗ Branch 13 not taken.
43 OS_ASSERT(other.iddObject().type() == SizingSystem::iddObjectType());
37 43 }
38
39 285 SizingSystem_Impl::SizingSystem_Impl(const SizingSystem_Impl& other, Model_Impl* model, bool keepHandle)
40 285 : ModelObject_Impl(other, model, keepHandle) {}
41
42 1 const std::vector<std::string>& SizingSystem_Impl::outputVariableNames() const {
43
2/4
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
1 static const std::vector<std::string> result;
44 1 return result;
45 }
46
47 1 IddObjectType SizingSystem_Impl::iddObjectType() const {
48 1 return SizingSystem::iddObjectType();
49 }
50
51 10 bool SizingSystem_Impl::setParent(ParentObject& newParent) {
52 10 bool result = false;
53
2/3
✓ Branch 1 taken 10 times.
✓ Branch 3 taken 10 times.
✗ Branch 4 not taken.
20 if (boost::optional<AirLoopHVAC> airLoopHVAC = newParent.optionalCast<AirLoopHVAC>()) {
54
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
10 result = this->setAirLoopHVAC(airLoopHVAC.get());
55 10 }
56 10 return result;
57 }
58
59 203 std::string SizingSystem_Impl::typeofLoadtoSizeOn() const {
60
1/1
✓ Branch 1 taken 203 times.
203 boost::optional<std::string> value = getString(OS_Sizing_SystemFields::TypeofLoadtoSizeOn, true);
61
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 203 times.
✗ Branch 4 not taken.
203 OS_ASSERT(value);
62
2/2
✓ Branch 1 taken 203 times.
✓ Branch 4 taken 203 times.
406 return value.get();
63 203 }
64
65 3 bool SizingSystem_Impl::isTypeofLoadtoSizeOnDefaulted() const {
66 3 return isEmpty(OS_Sizing_SystemFields::TypeofLoadtoSizeOn);
67 }
68
69 4 boost::optional<double> SizingSystem_Impl::designOutdoorAirFlowRate() const {
70 4 return getDouble(OS_Sizing_SystemFields::DesignOutdoorAirFlowRate, true);
71 }
72
73 4 bool SizingSystem_Impl::isDesignOutdoorAirFlowRateDefaulted() const {
74 4 return isEmpty(OS_Sizing_SystemFields::DesignOutdoorAirFlowRate);
75 }
76
77 203 bool SizingSystem_Impl::isDesignOutdoorAirFlowRateAutosized() const {
78 203 bool result = false;
79
1/1
✓ Branch 1 taken 203 times.
203 boost::optional<std::string> value = getString(OS_Sizing_SystemFields::DesignOutdoorAirFlowRate, true);
80
1/2
✓ Branch 0 taken 203 times.
✗ Branch 1 not taken.
203 if (value) {
81
3/3
✓ Branch 1 taken 203 times.
✓ Branch 4 taken 203 times.
✓ Branch 7 taken 203 times.
406 result = openstudio::istringEqual(value.get(), "Autosize");
82 }
83 203 return result;
84 203 }
85
86 205 boost::optional<double> SizingSystem_Impl::centralHeatingMaximumSystemAirFlowRatio() const {
87 205 return getDouble(OS_Sizing_SystemFields::CentralHeatingMaximumSystemAirFlowRatio, true);
88 }
89
90 4 bool SizingSystem_Impl::isCentralHeatingMaximumSystemAirFlowRatioDefaulted() const {
91 4 return isEmpty(OS_Sizing_SystemFields::CentralHeatingMaximumSystemAirFlowRatio);
92 }
93
94 203 bool SizingSystem_Impl::isCentralHeatingMaximumSystemAirFlowRatioAutosized() const {
95 203 bool result = false;
96
1/1
✓ Branch 1 taken 203 times.
203 boost::optional<std::string> value = getString(OS_Sizing_SystemFields::CentralHeatingMaximumSystemAirFlowRatio, true);
97
1/2
✓ Branch 0 taken 203 times.
✗ Branch 1 not taken.
203 if (value) {
98
3/3
✓ Branch 1 taken 203 times.
✓ Branch 4 taken 203 times.
✓ Branch 7 taken 203 times.
406 result = openstudio::istringEqual(value.get(), "Autosize");
99 }
100 203 return result;
101 203 }
102
103 202 double SizingSystem_Impl::preheatDesignTemperature() const {
104
1/1
✓ Branch 1 taken 202 times.
202 boost::optional<double> value = getDouble(OS_Sizing_SystemFields::PreheatDesignTemperature, true);
105
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 202 times.
✗ Branch 4 not taken.
202 OS_ASSERT(value);
106
1/1
✓ Branch 1 taken 202 times.
404 return value.get();
107 }
108
109 202 double SizingSystem_Impl::preheatDesignHumidityRatio() const {
110
1/1
✓ Branch 1 taken 202 times.
202 boost::optional<double> value = getDouble(OS_Sizing_SystemFields::PreheatDesignHumidityRatio, true);
111
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 202 times.
✗ Branch 4 not taken.
202 OS_ASSERT(value);
112
1/1
✓ Branch 1 taken 202 times.
404 return value.get();
113 }
114
115 202 double SizingSystem_Impl::precoolDesignTemperature() const {
116
1/1
✓ Branch 1 taken 202 times.
202 boost::optional<double> value = getDouble(OS_Sizing_SystemFields::PrecoolDesignTemperature, true);
117
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 202 times.
✗ Branch 4 not taken.
202 OS_ASSERT(value);
118
1/1
✓ Branch 1 taken 202 times.
404 return value.get();
119 }
120
121 202 double SizingSystem_Impl::precoolDesignHumidityRatio() const {
122
1/1
✓ Branch 1 taken 202 times.
202 boost::optional<double> value = getDouble(OS_Sizing_SystemFields::PrecoolDesignHumidityRatio, true);
123
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 202 times.
✗ Branch 4 not taken.
202 OS_ASSERT(value);
124
1/1
✓ Branch 1 taken 202 times.
404 return value.get();
125 }
126
127 202 double SizingSystem_Impl::centralCoolingDesignSupplyAirTemperature() const {
128
1/1
✓ Branch 1 taken 202 times.
202 boost::optional<double> value = getDouble(OS_Sizing_SystemFields::CentralCoolingDesignSupplyAirTemperature, true);
129
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 202 times.
✗ Branch 4 not taken.
202 OS_ASSERT(value);
130
1/1
✓ Branch 1 taken 202 times.
404 return value.get();
131 }
132
133 202 double SizingSystem_Impl::centralHeatingDesignSupplyAirTemperature() const {
134
1/1
✓ Branch 1 taken 202 times.
202 boost::optional<double> value = getDouble(OS_Sizing_SystemFields::CentralHeatingDesignSupplyAirTemperature, true);
135
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 202 times.
✗ Branch 4 not taken.
202 OS_ASSERT(value);
136
1/1
✓ Branch 1 taken 202 times.
404 return value.get();
137 }
138
139 203 std::string SizingSystem_Impl::sizingOption() const {
140
1/1
✓ Branch 1 taken 203 times.
203 boost::optional<std::string> value = getString(OS_Sizing_SystemFields::SizingOption, true);
141
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 203 times.
✗ Branch 4 not taken.
203 OS_ASSERT(value);
142
2/2
✓ Branch 1 taken 203 times.
✓ Branch 4 taken 203 times.
406 return value.get();
143 203 }
144
145 3 bool SizingSystem_Impl::isSizingOptionDefaulted() const {
146 3 return isEmpty(OS_Sizing_SystemFields::SizingOption);
147 }
148
149 203 bool SizingSystem_Impl::allOutdoorAirinCooling() const {
150
1/1
✓ Branch 1 taken 203 times.
203 boost::optional<std::string> value = getString(OS_Sizing_SystemFields::AllOutdoorAirinCooling, true);
151
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 203 times.
✗ Branch 4 not taken.
203 OS_ASSERT(value);
152
3/3
✓ Branch 1 taken 203 times.
✓ Branch 4 taken 203 times.
✓ Branch 7 taken 203 times.
406 return openstudio::istringEqual(value.get(), "Yes");
153 203 }
154
155 3 bool SizingSystem_Impl::isAllOutdoorAirinCoolingDefaulted() const {
156 3 return isEmpty(OS_Sizing_SystemFields::AllOutdoorAirinCooling);
157 }
158
159 203 bool SizingSystem_Impl::allOutdoorAirinHeating() const {
160
1/1
✓ Branch 1 taken 203 times.
203 boost::optional<std::string> value = getString(OS_Sizing_SystemFields::AllOutdoorAirinHeating, true);
161
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 203 times.
✗ Branch 4 not taken.
203 OS_ASSERT(value);
162
3/3
✓ Branch 1 taken 203 times.
✓ Branch 4 taken 203 times.
✓ Branch 7 taken 203 times.
406 return openstudio::istringEqual(value.get(), "Yes");
163 203 }
164
165 3 bool SizingSystem_Impl::isAllOutdoorAirinHeatingDefaulted() const {
166 3 return isEmpty(OS_Sizing_SystemFields::AllOutdoorAirinHeating);
167 }
168
169 203 double SizingSystem_Impl::centralCoolingDesignSupplyAirHumidityRatio() const {
170
1/1
✓ Branch 1 taken 203 times.
203 boost::optional<double> value = getDouble(OS_Sizing_SystemFields::CentralCoolingDesignSupplyAirHumidityRatio, true);
171
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 203 times.
✗ Branch 4 not taken.
203 OS_ASSERT(value);
172
1/1
✓ Branch 1 taken 203 times.
406 return value.get();
173 }
174
175 3 bool SizingSystem_Impl::isCentralCoolingDesignSupplyAirHumidityRatioDefaulted() const {
176 3 return isEmpty(OS_Sizing_SystemFields::CentralCoolingDesignSupplyAirHumidityRatio);
177 }
178
179 203 double SizingSystem_Impl::centralHeatingDesignSupplyAirHumidityRatio() const {
180
1/1
✓ Branch 1 taken 203 times.
203 boost::optional<double> value = getDouble(OS_Sizing_SystemFields::CentralHeatingDesignSupplyAirHumidityRatio, true);
181
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 203 times.
✗ Branch 4 not taken.
203 OS_ASSERT(value);
182
1/1
✓ Branch 1 taken 203 times.
406 return value.get();
183 }
184
185 3 bool SizingSystem_Impl::isCentralHeatingDesignSupplyAirHumidityRatioDefaulted() const {
186 3 return isEmpty(OS_Sizing_SystemFields::CentralHeatingDesignSupplyAirHumidityRatio);
187 }
188
189 203 std::string SizingSystem_Impl::coolingDesignAirFlowMethod() const {
190
1/1
✓ Branch 1 taken 203 times.
203 boost::optional<std::string> value = getString(OS_Sizing_SystemFields::CoolingDesignAirFlowMethod, true);
191
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 203 times.
✗ Branch 4 not taken.
203 OS_ASSERT(value);
192
2/2
✓ Branch 1 taken 203 times.
✓ Branch 4 taken 203 times.
406 return value.get();
193 203 }
194
195 3 bool SizingSystem_Impl::isCoolingDesignAirFlowMethodDefaulted() const {
196 3 return isEmpty(OS_Sizing_SystemFields::CoolingDesignAirFlowMethod);
197 }
198
199 203 double SizingSystem_Impl::coolingDesignAirFlowRate() const {
200
1/1
✓ Branch 1 taken 203 times.
203 boost::optional<double> value = getDouble(OS_Sizing_SystemFields::CoolingDesignAirFlowRate, true);
201
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 203 times.
✗ Branch 4 not taken.
203 OS_ASSERT(value);
202
1/1
✓ Branch 1 taken 203 times.
406 return value.get();
203 }
204
205 3 bool SizingSystem_Impl::isCoolingDesignAirFlowRateDefaulted() const {
206 3 return isEmpty(OS_Sizing_SystemFields::CoolingDesignAirFlowRate);
207 }
208
209 203 std::string SizingSystem_Impl::heatingDesignAirFlowMethod() const {
210
1/1
✓ Branch 1 taken 203 times.
203 boost::optional<std::string> value = getString(OS_Sizing_SystemFields::HeatingDesignAirFlowMethod, true);
211
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 203 times.
✗ Branch 4 not taken.
203 OS_ASSERT(value);
212
2/2
✓ Branch 1 taken 203 times.
✓ Branch 4 taken 203 times.
406 return value.get();
213 203 }
214
215 3 bool SizingSystem_Impl::isHeatingDesignAirFlowMethodDefaulted() const {
216 3 return isEmpty(OS_Sizing_SystemFields::HeatingDesignAirFlowMethod);
217 }
218
219 203 double SizingSystem_Impl::heatingDesignAirFlowRate() const {
220
1/1
✓ Branch 1 taken 203 times.
203 boost::optional<double> value = getDouble(OS_Sizing_SystemFields::HeatingDesignAirFlowRate, true);
221
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 203 times.
✗ Branch 4 not taken.
203 OS_ASSERT(value);
222
1/1
✓ Branch 1 taken 203 times.
406 return value.get();
223 }
224
225 3 bool SizingSystem_Impl::isHeatingDesignAirFlowRateDefaulted() const {
226 3 return isEmpty(OS_Sizing_SystemFields::HeatingDesignAirFlowRate);
227 }
228
229 218 std::string SizingSystem_Impl::systemOutdoorAirMethod() const {
230
1/1
✓ Branch 1 taken 218 times.
218 boost::optional<std::string> value = getString(OS_Sizing_SystemFields::SystemOutdoorAirMethod, true);
231
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 218 times.
✗ Branch 4 not taken.
218 OS_ASSERT(value);
232
2/2
✓ Branch 1 taken 218 times.
✓ Branch 4 taken 218 times.
436 return value.get();
233 218 }
234
235 3 bool SizingSystem_Impl::isSystemOutdoorAirMethodDefaulted() const {
236 3 return isEmpty(OS_Sizing_SystemFields::SystemOutdoorAirMethod);
237 }
238
239 202 double SizingSystem_Impl::zoneMaximumOutdoorAirFraction() const {
240
1/1
✓ Branch 1 taken 202 times.
202 boost::optional<double> value = getDouble(OS_Sizing_SystemFields::ZoneMaximumOutdoorAirFraction, true);
241
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 202 times.
✗ Branch 4 not taken.
202 OS_ASSERT(value);
242
1/1
✓ Branch 1 taken 202 times.
404 return value.get();
243 }
244
245 202 double SizingSystem_Impl::coolingSupplyAirFlowRatePerFloorArea() const {
246
1/1
✓ Branch 1 taken 202 times.
202 boost::optional<double> value = getDouble(OS_Sizing_SystemFields::CoolingSupplyAirFlowRatePerFloorArea, true);
247
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 202 times.
✗ Branch 4 not taken.
202 OS_ASSERT(value);
248
1/1
✓ Branch 1 taken 202 times.
404 return value.get();
249 }
250
251 202 double SizingSystem_Impl::coolingFractionofAutosizedCoolingSupplyAirFlowRate() const {
252
1/1
✓ Branch 1 taken 202 times.
202 boost::optional<double> value = getDouble(OS_Sizing_SystemFields::CoolingFractionofAutosizedCoolingSupplyAirFlowRate, true);
253
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 202 times.
✗ Branch 4 not taken.
202 OS_ASSERT(value);
254
1/1
✓ Branch 1 taken 202 times.
404 return value.get();
255 }
256
257 202 double SizingSystem_Impl::coolingSupplyAirFlowRatePerUnitCoolingCapacity() const {
258
1/1
✓ Branch 1 taken 202 times.
202 boost::optional<double> value = getDouble(OS_Sizing_SystemFields::CoolingSupplyAirFlowRatePerUnitCoolingCapacity, true);
259
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 202 times.
✗ Branch 4 not taken.
202 OS_ASSERT(value);
260
1/1
✓ Branch 1 taken 202 times.
404 return value.get();
261 }
262
263 202 double SizingSystem_Impl::heatingSupplyAirFlowRatePerFloorArea() const {
264
1/1
✓ Branch 1 taken 202 times.
202 boost::optional<double> value = getDouble(OS_Sizing_SystemFields::HeatingSupplyAirFlowRatePerFloorArea, true);
265
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 202 times.
✗ Branch 4 not taken.
202 OS_ASSERT(value);
266
1/1
✓ Branch 1 taken 202 times.
404 return value.get();
267 }
268
269 202 double SizingSystem_Impl::heatingFractionofAutosizedHeatingSupplyAirFlowRate() const {
270
1/1
✓ Branch 1 taken 202 times.
202 boost::optional<double> value = getDouble(OS_Sizing_SystemFields::HeatingFractionofAutosizedHeatingSupplyAirFlowRate, true);
271
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 202 times.
✗ Branch 4 not taken.
202 OS_ASSERT(value);
272
1/1
✓ Branch 1 taken 202 times.
404 return value.get();
273 }
274
275 202 double SizingSystem_Impl::heatingFractionofAutosizedCoolingSupplyAirFlowRate() const {
276
1/1
✓ Branch 1 taken 202 times.
202 boost::optional<double> value = getDouble(OS_Sizing_SystemFields::HeatingFractionofAutosizedCoolingSupplyAirFlowRate, true);
277
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 202 times.
✗ Branch 4 not taken.
202 OS_ASSERT(value);
278
1/1
✓ Branch 1 taken 202 times.
404 return value.get();
279 }
280
281 202 double SizingSystem_Impl::heatingSupplyAirFlowRatePerUnitHeatingCapacity() const {
282
1/1
✓ Branch 1 taken 202 times.
202 boost::optional<double> value = getDouble(OS_Sizing_SystemFields::HeatingSupplyAirFlowRatePerUnitHeatingCapacity, true);
283
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 202 times.
✗ Branch 4 not taken.
202 OS_ASSERT(value);
284
1/1
✓ Branch 1 taken 202 times.
404 return value.get();
285 }
286
287 202 std::string SizingSystem_Impl::coolingDesignCapacityMethod() const {
288
1/1
✓ Branch 1 taken 202 times.
202 boost::optional<std::string> value = getString(OS_Sizing_SystemFields::CoolingDesignCapacityMethod, true);
289
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 202 times.
✗ Branch 4 not taken.
202 OS_ASSERT(value);
290
2/2
✓ Branch 1 taken 202 times.
✓ Branch 4 taken 202 times.
404 return value.get();
291 202 }
292
293 204 boost::optional<double> SizingSystem_Impl::coolingDesignCapacity() const {
294 204 return getDouble(OS_Sizing_SystemFields::CoolingDesignCapacity, true);
295 }
296
297 203 bool SizingSystem_Impl::isCoolingDesignCapacityAutosized() const {
298 203 bool result = false;
299
1/1
✓ Branch 1 taken 203 times.
203 boost::optional<std::string> value = getString(OS_Sizing_SystemFields::CoolingDesignCapacity, true);
300
1/2
✓ Branch 0 taken 203 times.
✗ Branch 1 not taken.
203 if (value) {
301
3/3
✓ Branch 1 taken 203 times.
✓ Branch 4 taken 203 times.
✓ Branch 7 taken 203 times.
406 result = openstudio::istringEqual(value.get(), "autosize");
302 }
303 203 return result;
304 203 }
305
306 202 double SizingSystem_Impl::coolingDesignCapacityPerFloorArea() const {
307
1/1
✓ Branch 1 taken 202 times.
202 boost::optional<double> value = getDouble(OS_Sizing_SystemFields::CoolingDesignCapacityPerFloorArea, true);
308
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 202 times.
✗ Branch 4 not taken.
202 OS_ASSERT(value);
309
1/1
✓ Branch 1 taken 202 times.
404 return value.get();
310 }
311
312 202 double SizingSystem_Impl::fractionofAutosizedCoolingDesignCapacity() const {
313
1/1
✓ Branch 1 taken 202 times.
202 boost::optional<double> value = getDouble(OS_Sizing_SystemFields::FractionofAutosizedCoolingDesignCapacity, true);
314
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 202 times.
✗ Branch 4 not taken.
202 OS_ASSERT(value);
315
1/1
✓ Branch 1 taken 202 times.
404 return value.get();
316 }
317
318 202 std::string SizingSystem_Impl::heatingDesignCapacityMethod() const {
319
1/1
✓ Branch 1 taken 202 times.
202 boost::optional<std::string> value = getString(OS_Sizing_SystemFields::HeatingDesignCapacityMethod, true);
320
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 202 times.
✗ Branch 4 not taken.
202 OS_ASSERT(value);
321
2/2
✓ Branch 1 taken 202 times.
✓ Branch 4 taken 202 times.
404 return value.get();
322 202 }
323
324 204 boost::optional<double> SizingSystem_Impl::heatingDesignCapacity() const {
325 204 return getDouble(OS_Sizing_SystemFields::HeatingDesignCapacity, true);
326 }
327
328 203 bool SizingSystem_Impl::isHeatingDesignCapacityAutosized() const {
329 203 bool result = false;
330
1/1
✓ Branch 1 taken 203 times.
203 boost::optional<std::string> value = getString(OS_Sizing_SystemFields::HeatingDesignCapacity, true);
331
1/2
✓ Branch 0 taken 203 times.
✗ Branch 1 not taken.
203 if (value) {
332
3/3
✓ Branch 1 taken 203 times.
✓ Branch 4 taken 203 times.
✓ Branch 7 taken 203 times.
406 result = openstudio::istringEqual(value.get(), "autosize");
333 }
334 203 return result;
335 203 }
336
337 202 double SizingSystem_Impl::heatingDesignCapacityPerFloorArea() const {
338
1/1
✓ Branch 1 taken 202 times.
202 boost::optional<double> value = getDouble(OS_Sizing_SystemFields::HeatingDesignCapacityPerFloorArea, true);
339
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 202 times.
✗ Branch 4 not taken.
202 OS_ASSERT(value);
340
1/1
✓ Branch 1 taken 202 times.
404 return value.get();
341 }
342
343 202 double SizingSystem_Impl::fractionofAutosizedHeatingDesignCapacity() const {
344
1/1
✓ Branch 1 taken 202 times.
202 boost::optional<double> value = getDouble(OS_Sizing_SystemFields::FractionofAutosizedHeatingDesignCapacity, true);
345
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 202 times.
✗ Branch 4 not taken.
202 OS_ASSERT(value);
346
1/1
✓ Branch 1 taken 202 times.
404 return value.get();
347 }
348
349 202 std::string SizingSystem_Impl::centralCoolingCapacityControlMethod() const {
350
1/1
✓ Branch 1 taken 202 times.
202 boost::optional<std::string> value = getString(OS_Sizing_SystemFields::CentralCoolingCapacityControlMethod, true);
351
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 202 times.
✗ Branch 4 not taken.
202 OS_ASSERT(value);
352
2/2
✓ Branch 1 taken 202 times.
✓ Branch 4 taken 202 times.
404 return value.get();
353 202 }
354
355 204 boost::optional<double> SizingSystem_Impl::occupantDiversity() const {
356 204 return getDouble(OS_Sizing_SystemFields::OccupantDiversity, true);
357 }
358
359 203 bool SizingSystem_Impl::isOccupantDiversityAutosized() const {
360 203 bool result = false;
361
1/1
✓ Branch 1 taken 203 times.
203 boost::optional<std::string> value = getString(OS_Sizing_SystemFields::OccupantDiversity, true);
362
1/2
✓ Branch 0 taken 203 times.
✗ Branch 1 not taken.
203 if (value) {
363
3/3
✓ Branch 1 taken 203 times.
✓ Branch 4 taken 203 times.
✓ Branch 7 taken 203 times.
406 result = openstudio::istringEqual(value.get(), "autosize");
364 }
365 203 return result;
366 203 }
367
368 202 std::string SizingSystem_Impl::heatingCoilSizingMethod() const {
369
1/1
✓ Branch 1 taken 202 times.
202 boost::optional<std::string> value = getString(OS_Sizing_SystemFields::HeatingCoilSizingMethod, true);
370
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 202 times.
✗ Branch 4 not taken.
202 OS_ASSERT(value);
371
2/2
✓ Branch 1 taken 202 times.
✓ Branch 4 taken 202 times.
404 return value.get();
372 202 }
373
374 202 double SizingSystem_Impl::maximumHeatingCapacityToCoolingCapacitySizingRatio() const {
375
1/1
✓ Branch 1 taken 202 times.
202 boost::optional<double> value = getDouble(OS_Sizing_SystemFields::MaximumHeatingCapacityToCoolingCapacitySizingRatio, true);
376
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 202 times.
✗ Branch 4 not taken.
202 OS_ASSERT(value);
377
1/1
✓ Branch 1 taken 202 times.
404 return value.get();
378 }
379
380 9 bool SizingSystem_Impl::setTypeofLoadtoSizeOn(const std::string& typeofLoadtoSizeOn) {
381 9 bool result = setString(OS_Sizing_SystemFields::TypeofLoadtoSizeOn, typeofLoadtoSizeOn);
382 9 return result;
383 }
384
385 1 void SizingSystem_Impl::resetTypeofLoadtoSizeOn() {
386
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Sizing_SystemFields::TypeofLoadtoSizeOn, "");
387
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
388 1 }
389
390 1 bool SizingSystem_Impl::setDesignOutdoorAirFlowRate(boost::optional<double> designOutdoorAirFlowRate) {
391 1 bool result = false;
392
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (designOutdoorAirFlowRate) {
393 1 result = setDouble(OS_Sizing_SystemFields::DesignOutdoorAirFlowRate, designOutdoorAirFlowRate.get());
394 } else {
395 ✗ result = setString(OS_Sizing_SystemFields::DesignOutdoorAirFlowRate, "");
396 }
397 1 return result;
398 }
399
400 1 void SizingSystem_Impl::resetDesignOutdoorAirFlowRate() {
401
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Sizing_SystemFields::DesignOutdoorAirFlowRate, "");
402
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
403 1 }
404
405 9 void SizingSystem_Impl::autosizeDesignOutdoorAirFlowRate() {
406
2/2
✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
18 bool result = setString(OS_Sizing_SystemFields::DesignOutdoorAirFlowRate, "Autosize");
407
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 9 times.
9 OS_ASSERT(result);
408 9 }
409
410 719 bool SizingSystem_Impl::setCentralHeatingMaximumSystemAirFlowRatio(boost::optional<double> centralHeatingMaximumSystemAirFlowRatio) {
411 719 bool result = false;
412
1/2
✓ Branch 0 taken 719 times.
✗ Branch 1 not taken.
719 if (centralHeatingMaximumSystemAirFlowRatio) {
413 719 result = setDouble(OS_Sizing_SystemFields::CentralHeatingMaximumSystemAirFlowRatio, centralHeatingMaximumSystemAirFlowRatio.get());
414 } else {
415 ✗ result = setString(OS_Sizing_SystemFields::CentralHeatingMaximumSystemAirFlowRatio, "");
416 }
417 719 return result;
418 }
419
420 1 void SizingSystem_Impl::resetCentralHeatingMaximumSystemAirFlowRatio() {
421
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Sizing_SystemFields::CentralHeatingMaximumSystemAirFlowRatio, "");
422
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
423 1 }
424
425 1 void SizingSystem_Impl::autosizeCentralHeatingMaximumSystemAirFlowRatio() {
426
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Sizing_SystemFields::CentralHeatingMaximumSystemAirFlowRatio, "Autosize");
427
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
428 1 }
429
430 719 bool SizingSystem_Impl::setPreheatDesignTemperature(double preheatDesignTemperature) {
431 719 bool result = setDouble(OS_Sizing_SystemFields::PreheatDesignTemperature, preheatDesignTemperature);
432
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 719 times.
719 OS_ASSERT(result);
433 719 return result;
434 }
435
436 719 bool SizingSystem_Impl::setPreheatDesignHumidityRatio(double preheatDesignHumidityRatio) {
437 719 bool result = setDouble(OS_Sizing_SystemFields::PreheatDesignHumidityRatio, preheatDesignHumidityRatio);
438
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 719 times.
719 OS_ASSERT(result);
439 719 return result;
440 }
441
442 719 bool SizingSystem_Impl::setPrecoolDesignTemperature(double precoolDesignTemperature) {
443 719 bool result = setDouble(OS_Sizing_SystemFields::PrecoolDesignTemperature, precoolDesignTemperature);
444
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 719 times.
719 OS_ASSERT(result);
445 719 return result;
446 }
447
448 719 bool SizingSystem_Impl::setPrecoolDesignHumidityRatio(double precoolDesignHumidityRatio) {
449 719 bool result = setDouble(OS_Sizing_SystemFields::PrecoolDesignHumidityRatio, precoolDesignHumidityRatio);
450
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 719 times.
719 OS_ASSERT(result);
451 719 return result;
452 }
453
454 722 bool SizingSystem_Impl::setCentralCoolingDesignSupplyAirTemperature(double centralCoolingDesignSupplyAirTemperature) {
455 722 bool result = setDouble(OS_Sizing_SystemFields::CentralCoolingDesignSupplyAirTemperature, centralCoolingDesignSupplyAirTemperature);
456
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 722 times.
722 OS_ASSERT(result);
457 722 return result;
458 }
459
460 722 bool SizingSystem_Impl::setCentralHeatingDesignSupplyAirTemperature(double centralHeatingDesignSupplyAirTemperature) {
461 722 bool result = setDouble(OS_Sizing_SystemFields::CentralHeatingDesignSupplyAirTemperature, centralHeatingDesignSupplyAirTemperature);
462
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 722 times.
722 OS_ASSERT(result);
463 722 return result;
464 }
465
466 14 bool SizingSystem_Impl::setSizingOption(const std::string& sizingOption) {
467 14 bool result = setString(OS_Sizing_SystemFields::SizingOption, sizingOption);
468 14 return result;
469 }
470
471 1 void SizingSystem_Impl::resetSizingOption() {
472
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Sizing_SystemFields::SizingOption, "");
473
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
474 1 }
475
476 719 bool SizingSystem_Impl::setAllOutdoorAirinCooling(bool allOutdoorAirinCooling) {
477 719 bool result = false;
478
2/2
✓ Branch 0 taken 706 times.
✓ Branch 1 taken 13 times.
719 if (allOutdoorAirinCooling) {
479
2/2
✓ Branch 1 taken 706 times.
✓ Branch 4 taken 706 times.
2118 result = setString(OS_Sizing_SystemFields::AllOutdoorAirinCooling, "Yes");
480 } else {
481
2/2
✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
39 result = setString(OS_Sizing_SystemFields::AllOutdoorAirinCooling, "No");
482 }
483
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 719 times.
719 OS_ASSERT(result);
484 719 return result;
485 }
486
487 1 void SizingSystem_Impl::resetAllOutdoorAirinCooling() {
488
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Sizing_SystemFields::AllOutdoorAirinCooling, "");
489
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
490 1 }
491
492 719 bool SizingSystem_Impl::setAllOutdoorAirinHeating(bool allOutdoorAirinHeating) {
493 719 bool result = false;
494
2/2
✓ Branch 0 taken 706 times.
✓ Branch 1 taken 13 times.
719 if (allOutdoorAirinHeating) {
495
2/2
✓ Branch 1 taken 706 times.
✓ Branch 4 taken 706 times.
2118 result = setString(OS_Sizing_SystemFields::AllOutdoorAirinHeating, "Yes");
496 } else {
497
2/2
✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
39 result = setString(OS_Sizing_SystemFields::AllOutdoorAirinHeating, "No");
498 }
499
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 719 times.
719 OS_ASSERT(result);
500 719 return result;
501 }
502
503 1 void SizingSystem_Impl::resetAllOutdoorAirinHeating() {
504
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Sizing_SystemFields::AllOutdoorAirinHeating, "");
505
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
506 1 }
507
508 719 bool SizingSystem_Impl::setCentralCoolingDesignSupplyAirHumidityRatio(double centralCoolingDesignSupplyAirHumidityRatio) {
509 719 bool result = setDouble(OS_Sizing_SystemFields::CentralCoolingDesignSupplyAirHumidityRatio, centralCoolingDesignSupplyAirHumidityRatio);
510
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 719 times.
719 OS_ASSERT(result);
511 719 return result;
512 }
513
514 1 void SizingSystem_Impl::resetCentralCoolingDesignSupplyAirHumidityRatio() {
515
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Sizing_SystemFields::CentralCoolingDesignSupplyAirHumidityRatio, "");
516
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
517 1 }
518
519 14 bool SizingSystem_Impl::setCentralHeatingDesignSupplyAirHumidityRatio(double centralHeatingDesignSupplyAirHumidityRatio) {
520 14 bool result = setDouble(OS_Sizing_SystemFields::CentralHeatingDesignSupplyAirHumidityRatio, centralHeatingDesignSupplyAirHumidityRatio);
521
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
14 OS_ASSERT(result);
522 14 return result;
523 }
524
525 1 void SizingSystem_Impl::resetCentralHeatingDesignSupplyAirHumidityRatio() {
526
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Sizing_SystemFields::CentralHeatingDesignSupplyAirHumidityRatio, "");
527
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
528 1 }
529
530 9 bool SizingSystem_Impl::setCoolingDesignAirFlowMethod(const std::string& coolingDesignAirFlowMethod) {
531 9 bool result = setString(OS_Sizing_SystemFields::CoolingDesignAirFlowMethod, coolingDesignAirFlowMethod);
532 9 return result;
533 }
534
535 1 void SizingSystem_Impl::resetCoolingDesignAirFlowMethod() {
536
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Sizing_SystemFields::CoolingDesignAirFlowMethod, "");
537
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
538 1 }
539
540 9 bool SizingSystem_Impl::setCoolingDesignAirFlowRate(double coolingDesignAirFlowRate) {
541 9 bool result = setDouble(OS_Sizing_SystemFields::CoolingDesignAirFlowRate, coolingDesignAirFlowRate);
542 9 return result;
543 }
544
545 1 void SizingSystem_Impl::resetCoolingDesignAirFlowRate() {
546
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Sizing_SystemFields::CoolingDesignAirFlowRate, "");
547
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
548 1 }
549
550 9 bool SizingSystem_Impl::setHeatingDesignAirFlowMethod(const std::string& heatingDesignAirFlowMethod) {
551 9 bool result = setString(OS_Sizing_SystemFields::HeatingDesignAirFlowMethod, heatingDesignAirFlowMethod);
552 9 return result;
553 }
554
555 1 void SizingSystem_Impl::resetHeatingDesignAirFlowMethod() {
556
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Sizing_SystemFields::HeatingDesignAirFlowMethod, "");
557
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
558 1 }
559
560 9 bool SizingSystem_Impl::setHeatingDesignAirFlowRate(double heatingDesignAirFlowRate) {
561 9 bool result = setDouble(OS_Sizing_SystemFields::HeatingDesignAirFlowRate, heatingDesignAirFlowRate);
562 9 return result;
563 }
564
565 1 void SizingSystem_Impl::resetHeatingDesignAirFlowRate() {
566
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Sizing_SystemFields::HeatingDesignAirFlowRate, "");
567
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
568 1 }
569
570 13 bool SizingSystem_Impl::setSystemOutdoorAirMethod(const std::string& systemOutdoorAirMethod) {
571 13 bool result = setString(OS_Sizing_SystemFields::SystemOutdoorAirMethod, systemOutdoorAirMethod);
572 13 return result;
573 }
574
575 1 void SizingSystem_Impl::resetSystemOutdoorAirMethod() {
576
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Sizing_SystemFields::SystemOutdoorAirMethod, "");
577
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
578 1 }
579
580 706 bool SizingSystem_Impl::setZoneMaximumOutdoorAirFraction(double zoneMaximumOutdoorAirFraction) {
581 706 bool result = setDouble(OS_Sizing_SystemFields::ZoneMaximumOutdoorAirFraction, zoneMaximumOutdoorAirFraction);
582 706 return result;
583 }
584
585 706 bool SizingSystem_Impl::setCoolingSupplyAirFlowRatePerFloorArea(double coolingSupplyAirFlowRatePerFloorArea) {
586 706 bool result = setDouble(OS_Sizing_SystemFields::CoolingSupplyAirFlowRatePerFloorArea, coolingSupplyAirFlowRatePerFloorArea);
587 706 return result;
588 }
589
590 706 bool SizingSystem_Impl::setCoolingFractionofAutosizedCoolingSupplyAirFlowRate(double coolingFractionofAutosizedCoolingSupplyAirFlowRate) {
591 bool result =
592 706 setDouble(OS_Sizing_SystemFields::CoolingFractionofAutosizedCoolingSupplyAirFlowRate, coolingFractionofAutosizedCoolingSupplyAirFlowRate);
593 706 return result;
594 }
595
596 706 bool SizingSystem_Impl::setCoolingSupplyAirFlowRatePerUnitCoolingCapacity(double coolingSupplyAirFlowRatePerUnitCoolingCapacity) {
597 706 bool result = setDouble(OS_Sizing_SystemFields::CoolingSupplyAirFlowRatePerUnitCoolingCapacity, coolingSupplyAirFlowRatePerUnitCoolingCapacity);
598 706 return result;
599 }
600
601 706 bool SizingSystem_Impl::setHeatingSupplyAirFlowRatePerFloorArea(double heatingSupplyAirFlowRatePerFloorArea) {
602 706 bool result = setDouble(OS_Sizing_SystemFields::HeatingSupplyAirFlowRatePerFloorArea, heatingSupplyAirFlowRatePerFloorArea);
603 706 return result;
604 }
605
606 706 bool SizingSystem_Impl::setHeatingFractionofAutosizedHeatingSupplyAirFlowRate(double heatingFractionofAutosizedHeatingSupplyAirFlowRate) {
607 bool result =
608 706 setDouble(OS_Sizing_SystemFields::HeatingFractionofAutosizedHeatingSupplyAirFlowRate, heatingFractionofAutosizedHeatingSupplyAirFlowRate);
609 706 return result;
610 }
611
612 706 bool SizingSystem_Impl::setHeatingFractionofAutosizedCoolingSupplyAirFlowRate(double heatingFractionofAutosizedCoolingSupplyAirFlowRate) {
613 bool result =
614 706 setDouble(OS_Sizing_SystemFields::HeatingFractionofAutosizedCoolingSupplyAirFlowRate, heatingFractionofAutosizedCoolingSupplyAirFlowRate);
615 706 return result;
616 }
617
618 706 bool SizingSystem_Impl::setHeatingSupplyAirFlowRatePerUnitHeatingCapacity(double heatingSupplyAirFlowRatePerUnitHeatingCapacity) {
619 706 bool result = setDouble(OS_Sizing_SystemFields::HeatingSupplyAirFlowRatePerUnitHeatingCapacity, heatingSupplyAirFlowRatePerUnitHeatingCapacity);
620 706 return result;
621 }
622
623 706 bool SizingSystem_Impl::setCoolingDesignCapacityMethod(const std::string& coolingDesignCapacityMethod) {
624 706 bool result = setString(OS_Sizing_SystemFields::CoolingDesignCapacityMethod, coolingDesignCapacityMethod);
625 706 return result;
626 }
627
628 1 bool SizingSystem_Impl::setCoolingDesignCapacity(boost::optional<double> coolingDesignCapacity) {
629 1 bool result(false);
630
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (coolingDesignCapacity) {
631 1 result = setDouble(OS_Sizing_SystemFields::CoolingDesignCapacity, coolingDesignCapacity.get());
632 }
633 1 return result;
634 }
635
636 706 void SizingSystem_Impl::autosizeCoolingDesignCapacity() {
637
2/2
✓ Branch 1 taken 706 times.
✓ Branch 4 taken 706 times.
1412 bool result = setString(OS_Sizing_SystemFields::CoolingDesignCapacity, "autosize");
638
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 706 times.
706 OS_ASSERT(result);
639 706 }
640
641 706 bool SizingSystem_Impl::setCoolingDesignCapacityPerFloorArea(double coolingDesignCapacityPerFloorArea) {
642 706 bool result = setDouble(OS_Sizing_SystemFields::CoolingDesignCapacityPerFloorArea, coolingDesignCapacityPerFloorArea);
643 706 return result;
644 }
645
646 706 bool SizingSystem_Impl::setFractionofAutosizedCoolingDesignCapacity(double fractionofAutosizedCoolingDesignCapacity) {
647 706 bool result = setDouble(OS_Sizing_SystemFields::FractionofAutosizedCoolingDesignCapacity, fractionofAutosizedCoolingDesignCapacity);
648 706 return result;
649 }
650
651 706 bool SizingSystem_Impl::setHeatingDesignCapacityMethod(const std::string& heatingDesignCapacityMethod) {
652 706 bool result = setString(OS_Sizing_SystemFields::HeatingDesignCapacityMethod, heatingDesignCapacityMethod);
653 706 return result;
654 }
655
656 1 bool SizingSystem_Impl::setHeatingDesignCapacity(boost::optional<double> heatingDesignCapacity) {
657 1 bool result(false);
658
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (heatingDesignCapacity) {
659 1 result = setDouble(OS_Sizing_SystemFields::HeatingDesignCapacity, heatingDesignCapacity.get());
660 }
661 1 return result;
662 }
663
664 706 void SizingSystem_Impl::autosizeHeatingDesignCapacity() {
665
2/2
✓ Branch 1 taken 706 times.
✓ Branch 4 taken 706 times.
1412 bool result = setString(OS_Sizing_SystemFields::HeatingDesignCapacity, "autosize");
666
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 706 times.
706 OS_ASSERT(result);
667 706 }
668
669 706 bool SizingSystem_Impl::setHeatingDesignCapacityPerFloorArea(double heatingDesignCapacityPerFloorArea) {
670 706 bool result = setDouble(OS_Sizing_SystemFields::HeatingDesignCapacityPerFloorArea, heatingDesignCapacityPerFloorArea);
671 706 return result;
672 }
673
674 706 bool SizingSystem_Impl::setFractionofAutosizedHeatingDesignCapacity(double fractionofAutosizedHeatingDesignCapacity) {
675 706 bool result = setDouble(OS_Sizing_SystemFields::FractionofAutosizedHeatingDesignCapacity, fractionofAutosizedHeatingDesignCapacity);
676 706 return result;
677 }
678
679 706 bool SizingSystem_Impl::setCentralCoolingCapacityControlMethod(const std::string& centralCoolingCapacityControlMethod) {
680 706 bool result = setString(OS_Sizing_SystemFields::CentralCoolingCapacityControlMethod, centralCoolingCapacityControlMethod);
681 706 return result;
682 }
683
684 1 bool SizingSystem_Impl::setOccupantDiversity(double occupantDiversity) {
685 1 bool result = setDouble(OS_Sizing_SystemFields::OccupantDiversity, occupantDiversity);
686 1 return result;
687 }
688
689 706 void SizingSystem_Impl::autosizeOccupantDiversity() {
690
2/2
✓ Branch 1 taken 706 times.
✓ Branch 4 taken 706 times.
1412 bool result = setString(OS_Sizing_SystemFields::OccupantDiversity, "autosize");
691
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 706 times.
706 OS_ASSERT(result);
692 706 }
693
694 706 bool SizingSystem_Impl::setHeatingCoilSizingMethod(const std::string& heatingCoilSizingMethod) {
695 706 bool result = setString(OS_Sizing_SystemFields::HeatingCoilSizingMethod, heatingCoilSizingMethod);
696 706 return result;
697 }
698
699 706 bool SizingSystem_Impl::setMaximumHeatingCapacityToCoolingCapacitySizingRatio(double maximumHeatingCapacityToCoolingCapacitySizingRatio) {
700 bool result =
701 706 setDouble(OS_Sizing_SystemFields::MaximumHeatingCapacityToCoolingCapacitySizingRatio, maximumHeatingCapacityToCoolingCapacitySizingRatio);
702 706 return result;
703 }
704
705 670 AirLoopHVAC SizingSystem_Impl::airLoopHVAC() const {
706
3/3
✓ Branch 1 taken 670 times.
✓ Branch 4 taken 670 times.
✓ Branch 7 taken 670 times.
670 WorkspaceObject wo = getTarget(OS_Sizing_SystemFields::AirLoopName).get();
707
708
1/1
✓ Branch 1 taken 670 times.
1340 return wo.cast<AirLoopHVAC>();
709 670 }
710
711 715 bool SizingSystem_Impl::setAirLoopHVAC(const AirLoopHVAC& airLoopHVAC) {
712
4/5
✓ Branch 1 taken 715 times.
✓ Branch 4 taken 715 times.
✓ Branch 7 taken 715 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 715 times.
715 if (model() != airLoopHVAC.model()) {
713 ✗ LOG(Error, "Cannot set an AirLoopHVAC that isn't part of the same model for " << briefDescription());
714 ✗ return false;
715 }
716
2/2
✓ Branch 1 taken 715 times.
✓ Branch 4 taken 715 times.
715 bool result = this->setPointer(OS_Sizing_SystemFields::AirLoopName, airLoopHVAC.handle());
717
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 715 times.
715 OS_ASSERT(result);
718 715 return result;
719 }
720
721 ✗ boost::optional<double> SizingSystem_Impl::autosizedDesignOutdoorAirFlowRate() const {
722 ✗ boost::optional<double> result;
723
724 // Get the parent AirLoopHVAC
725 ✗ boost::optional<AirLoopHVAC> parAirLoop = airLoopHVAC();
726
727 // Get the OA system
728 ✗ boost::optional<AirLoopHVACOutdoorAirSystem> oaSys = parAirLoop->airLoopHVACOutdoorAirSystem();
729 ✗ if (!oaSys) {
730 ✗ LOG(Debug, "This object's parent AirLoopHVAC has no AirLoopHVACOutdoorAirSystem, cannot retrieve the autosizedDesignOutdoorAirFlowRate.");
731 ✗ return result;
732 }
733
734 // Get the OA Controller
735 ✗ ControllerOutdoorAir oaController = oaSys->getControllerOutdoorAir();
736
737 ✗ return oaController.getAutosizedValue("Maximum Outdoor Air Flow Rate", "m3/s");
738 ✗ }
739
740 ✗ boost::optional<double> SizingSystem_Impl::autosizedCoolingDesignCapacity() const {
741 ✗ boost::optional<double> result;
742
743 ✗ std::string capacityType = "Cooling";
744
745 // Get the parent AirLoopHVAC
746 ✗ AirLoopHVAC parAirLoop = airLoopHVAC();
747
748 // Get the name of the air loop
749 ✗ if (!parAirLoop.name()) {
750 ✗ LOG(Warn, "This object's parent AirLoopHVAC does not have a name, cannot retrieve the autosized " + capacityType + " Design Capacity.");
751 ✗ return result;
752 }
753
754 // Get the object name and transform to the way it is recorded
755 // in the sql file
756 ✗ std::string sqlName = parAirLoop.name().get();
757 ✗ boost::to_upper(sqlName);
758
759 // Check that the model has a sql file
760 ✗ if (!model().sqlFile()) {
761 ✗ LOG(Warn, "This model has no sql file, cannot retrieve the autosized " + capacityType + " Design Capacity.");
762 ✗ return result;
763 }
764
765 // Query the InitializationSummary -> System Sizing Information table to get
766 // the row names that contains information for this component.
767 ✗ std::string rowsQuery = R"(
768 SELECT RowName FROM TabularDataWithStrings
769 WHERE ReportName = 'InitializationSummary'
770 AND ReportForString = 'Entire Facility'
771 AND TableName = 'System Sizing Information'
772 AND Value = ?;)";
773
774 ✗ boost::optional<std::vector<std::string>> rowNames = model().sqlFile().get().execAndReturnVectorOfString(rowsQuery,
775 // Bind args
776 ✗ sqlName);
777
778 // Warn if the query failed
779 ✗ if (!rowNames) {
780 ✗ LOG(Warn, "Could not find a component called '" + sqlName + "' in any rows of the InitializationSummary System Sizing table.");
781 ✗ return result;
782 }
783
784 // Query each row of the InitializationSummary -> System Sizing table
785 // that contains this component to get the desired value.
786 ✗ for (const std::string& rowName : rowNames.get()) {
787
788 ✗ std::string rowCheckQuery = R"(
789 SELECT Value FROM TabularDataWithStrings
790 WHERE ReportName = 'InitializationSummary'
791 AND ReportForString = 'Entire Facility'
792 AND TableName = 'System Sizing Information'
793 AND RowName = ?
794 AND Value = ?;)";
795 ✗ boost::optional<std::string> rowValueName = model().sqlFile().get().execAndReturnFirstString(rowCheckQuery,
796 // bindArgs
797 ✗ rowName, capacityType);
798
799 // Check if the query succeeded
800 ✗ if (!rowValueName) {
801 ✗ continue;
802 }
803 // This is the right row
804 ✗ std::string valQuery = R"(
805 SELECT Value FROM TabularDataWithStrings
806 WHERE ReportName = 'InitializationSummary'
807 AND ReportForString = 'Entire Facility'
808 AND TableName = 'System Sizing Information'
809 AND ColumnName='User Design Capacity'
810 AND RowName = ?;)";
811 ✗ boost::optional<double> val = model().sqlFile().get().execAndReturnFirstDouble(valQuery, rowName);
812
813 // Check if the query succeeded
814 ✗ if (val) {
815 ✗ result = val.get();
816 ✗ break;
817 }
818 ✗ }
819
820 ✗ if (!result) {
821 ✗ LOG(Debug, "The autosized value query for " + capacityType + " Design Capacity of " + sqlName + " returned no value.");
822 }
823
824 ✗ return result;
825 ✗ }
826
827 ✗ boost::optional<double> SizingSystem_Impl::autosizedHeatingDesignCapacity() const {
828 ✗ boost::optional<double> result;
829
830 ✗ std::string capacityType = "Heating";
831
832 // Get the parent AirLoopHVAC
833 ✗ AirLoopHVAC parAirLoop = airLoopHVAC();
834
835 // Get the name of the air loop
836 ✗ if (!parAirLoop.name()) {
837 ✗ LOG(Debug, "This object's parent AirLoopHVAC does not have a name, cannot retrieve the autosized " + capacityType + " Design Capacity.");
838 ✗ return result;
839 }
840
841 // Get the object name and transform to the way it is recorded
842 // in the sql file
843 ✗ std::string sqlName = parAirLoop.name().get();
844 ✗ boost::to_upper(sqlName);
845
846 // Check that the model has a sql file
847 ✗ if (!model().sqlFile()) {
848 ✗ LOG(Warn, "This model has no sql file, cannot retrieve the autosized " + capacityType + " Design Capacity.");
849 ✗ return result;
850 }
851
852 // Query the InitializationSummary -> System Sizing table to get
853 // the row names that contains information for this component.
854 ✗ std::string rowsQuery = R"(
855 SELECT RowName FROM TabularDataWithStrings
856 WHERE ReportName = 'InitializationSummary'
857 AND ReportForString = 'Entire Facility'
858 AND TableName = 'System Sizing Information'
859 AND Value = ?;)";
860
861 ✗ boost::optional<std::vector<std::string>> rowNames = model().sqlFile().get().execAndReturnVectorOfString(rowsQuery,
862 // Bind args
863 ✗ sqlName);
864
865 // Warn if the query failed
866 ✗ if (!rowNames) {
867 ✗ LOG(Warn, "Could not find a component called '" + sqlName + "' in any rows of the InitializationSummary System Sizing table.");
868 ✗ return result;
869 }
870
871 // Query each row of the InitializationSummary -> System Sizing table
872 // that contains this component to get the desired value.
873 ✗ for (const std::string& rowName : rowNames.get()) {
874
875 ✗ std::string rowCheckQuery = R"(
876 SELECT Value FROM TabularDataWithStrings
877 WHERE ReportName = 'InitializationSummary'
878 AND ReportForString = 'Entire Facility'
879 AND TableName = 'System Sizing Information'
880 AND RowName = ?
881 AND Value = ?;)";
882 ✗ boost::optional<std::string> rowValueName = model().sqlFile().get().execAndReturnFirstString(rowCheckQuery,
883 // bindArgs
884 ✗ rowName, capacityType);
885
886 // Check if the query succeeded
887 ✗ if (!rowValueName) {
888 ✗ continue;
889 }
890 // This is the right row
891 ✗ std::string valQuery = R"(
892 SELECT Value FROM TabularDataWithStrings
893 WHERE ReportName = 'InitializationSummary'
894 AND ReportForString = 'Entire Facility'
895 AND TableName = 'System Sizing Information'
896 AND ColumnName='User Design Capacity'
897 AND RowName = ?;)";
898 ✗ boost::optional<double> val = model().sqlFile().get().execAndReturnFirstDouble(valQuery, rowName);
899
900 // Check if the query succeeded
901 ✗ if (val) {
902 ✗ result = val.get();
903 ✗ break;
904 }
905 ✗ }
906
907 ✗ if (!result) {
908 ✗ LOG(Debug, "The autosized value query for " + capacityType + " Design Capacity of " + sqlName + " returned no value.");
909 }
910
911 ✗ return result;
912 ✗ }
913
914 ✗ boost::optional<double> SizingSystem_Impl::autosizedCentralHeatingMaximumSystemAirFlowRatio() const {
915 ✗ boost::optional<double> result;
916
917 // Get the parent AirLoopHVAC
918 ✗ AirLoopHVAC parAirLoop = airLoopHVAC();
919
920 // Get the name of the air loop
921 ✗ if (!parAirLoop.name()) {
922 ✗ LOG(Debug, "This object's parent AirLoopHVAC does not have a name, cannot retrieve the autosized "
923 << "'Central Heating Maximum System Air Flow Ratio'.");
924 ✗ return result;
925 }
926
927 // Get the object name and transform to the way it is recorded
928 // in the sql file
929 ✗ std::string sqlName = parAirLoop.name().get();
930 ✗ boost::to_upper(sqlName);
931
932 // Check that the model has a sql file
933 ✗ if (!model().sqlFile()) {
934 ✗ LOG(Warn, "This model has no sql file, cannot retrieve the autosized 'Central Heating Maximum System Air Flow Ratio'.");
935 ✗ return result;
936 }
937
938 // Note JM 2018-09-10: It's not in the TabularDataWithStrings, so I look in the ComponentSizes
939 ✗ std::string valQuery = R"(
940 SELECT Value FROM ComponentSizes
941 WHERE CompType = 'AirLoopHVAC'
942 AND Description = 'User Heating Air Flow Ratio'
943 AND Units = ''
944 AND CompName = ?;)";
945
946 ✗ boost::optional<double> val = model().sqlFile().get().execAndReturnFirstDouble(valQuery, sqlName);
947 // Check if the query succeeded
948 ✗ if (val) {
949 ✗ result = val.get();
950 }
951
952 ✗ return result;
953 ✗ }
954
955 ✗ boost::optional<double> SizingSystem_Impl::autosizedOccupantDiversity() const {
956 ✗ boost::optional<double> result;
957
958 // Note: as of 9.6.0, for some reason, it returns one entry for cooling and one for heating...
959 // And it's only present in the tabular report 'Standard62.1Summary'
960 // Both the Heating and Cooling are actually the same underlying value. Cf https://github.com/NREL/OpenStudio/pull/4450#issue-1011104323
961 ✗ std::string tableName = "System Ventilation Requirements for Cooling";
962
963 // Get the parent AirLoopHVAC
964 ✗ AirLoopHVAC parAirLoop = airLoopHVAC();
965
966 // Get the object name and transform to the way it is recorded
967 // in the sql file
968 ✗ std::string sqlName = parAirLoop.nameString();
969 ✗ boost::to_upper(sqlName);
970
971 // Check that the model has a sql file
972 ✗ if (!model().sqlFile()) {
973 ✗ LOG(Warn, "This model has no sql file, cannot retrieve the autosized " + tableName + " - 'Occupant Diversity - D'.");
974 ✗ return result;
975 }
976
977 // Query the InitializationSummary -> System Sizing table to get
978 // the row names that contains information for this component.
979 ✗ std::string rowsQuery = R"(
980 SELECT Value FROM TabularDataWithStrings
981 WHERE ReportName = 'Standard62.1Summary'
982 AND ReportForString = 'Entire Facility'
983 AND ColumnName = 'Occupant Diversity - D'
984 AND TableName = ?
985 AND RowName = ?;
986 )";
987
988 ✗ result = model().sqlFile().get().execAndReturnFirstDouble(rowsQuery,
989 // Bind args
990 tableName, sqlName);
991 ✗ return result;
992 ✗ }
993
994 ✗ void SizingSystem_Impl::autosize() {
995 ✗ autosizeDesignOutdoorAirFlowRate();
996 ✗ autosizeCoolingDesignCapacity();
997 ✗ autosizeHeatingDesignCapacity();
998 ✗ autosizeCentralHeatingMaximumSystemAirFlowRatio();
999 ✗ autosizeOccupantDiversity();
1000 ✗ }
1001
1002 ✗ void SizingSystem_Impl::applySizingValues() {
1003 ✗ boost::optional<double> val;
1004 ✗ val = autosizedDesignOutdoorAirFlowRate();
1005 ✗ if (val) {
1006 ✗ setDesignOutdoorAirFlowRate(val.get());
1007 }
1008
1009 ✗ val = autosizedCoolingDesignCapacity();
1010 ✗ if (val) {
1011 ✗ setCoolingDesignCapacity(val.get());
1012 }
1013
1014 ✗ val = autosizedHeatingDesignCapacity();
1015 ✗ if (val) {
1016 ✗ setHeatingDesignCapacity(val.get());
1017 }
1018
1019 ✗ val = autosizedCentralHeatingMaximumSystemAirFlowRatio();
1020 ✗ if (val) {
1021 ✗ setCentralHeatingMaximumSystemAirFlowRatio(val.get());
1022 }
1023
1024 ✗ val = autosizedOccupantDiversity();
1025 ✗ if (val) {
1026 ✗ setOccupantDiversity(val.get());
1027 }
1028 ✗ }
1029
1030 ✗ std::vector<EMSActuatorNames> SizingSystem_Impl::emsActuatorNames() const {
1031 std::vector<EMSActuatorNames> actuators{{"Sizing:System", "Main Supply Volume Flow Rate"},
1032 {"Sizing:System", "Main Supply Coincident Peak Cooling Mass Flow Rate"},
1033 {"Sizing:System", "Main Supply Coincident Peak Heating Mass Flow Rate"},
1034 {"Sizing:System", "Main Supply Noncoincident Peak Cooling Mass Flow Rate"},
1035 {"Sizing:System", "Main Supply Noncoincident Peak Heating Mass Flow Rate"},
1036 {"Sizing:System", "Main Heating Volume Flow Rate"},
1037 ✗ {"Sizing:System", "Main Cooling Volume Flow Rate"}};
1038 ✗ return actuators;
1039 ✗ }
1040
1041 ✗ std::vector<std::string> SizingSystem_Impl::emsInternalVariableNames() const {
1042 std::vector<std::string> types{"Intermediate Air System Main Supply Volume Flow Rate",
1043 "Intermediate Air System Coincident Peak Cooling Mass Flow Rate",
1044 "Intermediate Air System Coincident Peak Heating Mass Flow Rate",
1045 "Intermediate Air System Noncoincident Peak Cooling Mass Flow Rate",
1046 "Intermediate Air System Noncoincident Peak Heating Mass Flow Rate",
1047 "Intermediate Air System Heating Volume Flow Rate",
1048 "Intermediate Air System Cooling Volume Flow Rate"
1049 "Air System Cooling Design Sensible Capacity",
1050 "Air System Cooling Design Total Capacity",
1051 "Air System Heating Design Sensible Capacity",
1052 "Air System Preheating Design Sensible Capacity",
1053 "Air System Outdoor Air Design Volume Flow Rate",
1054 "Air System Cooling Design Mixed Air Temperature",
1055 "Air System Cooling Design Mixed Air Humidity Ratio",
1056 "Air System Cooling Design Return Air Temperature",
1057 "Air System Cooling Design Return Air Humidity Ratio",
1058 "Air System Cooling Design Outdoor Air Temperature",
1059 "Air System Cooling Design Outdoor Air Humidity Ratio",
1060 "Air System Heating Design Mixed Air Temperature",
1061 "Air System Heating Design Mixed Air Humidity Ratio",
1062 "Air System Heating Design Return Air Temperature",
1063 "Air System Heating Design Return Air Humidity Ratio",
1064 "Air System Heating Design Outdoor Air Temperature",
1065 ✗ "Air System Heating Design Outdoor Air Humidity Ratio"};
1066 ✗ return types;
1067 ✗ }
1068 } // namespace detail
1069
1070 705 SizingSystem::SizingSystem(const Model& model, const AirLoopHVAC& airLoopHVAC) : ModelObject(SizingSystem::iddObjectType(), model) {
1071
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 705 times.
✗ Branch 5 not taken.
705 OS_ASSERT(getImpl<detail::SizingSystem_Impl>());
1072
1073
1/1
✓ Branch 1 taken 705 times.
705 setAirLoopHVAC(airLoopHVAC);
1074
1075 // setTypeofLoadtoSizeOn("Sensible");
1076 // autosizeDesignOutdoorAirFlowRate();
1077
1078
1/1
✓ Branch 1 taken 705 times.
705 setCentralHeatingMaximumSystemAirFlowRatio(0.3);
1079 // TODO: should we autosize (E+ default) instead?
1080 // autosizeCentralHeatingMaximumSystemAirFlowRatio();
1081
1082
1/1
✓ Branch 1 taken 705 times.
705 setPreheatDesignTemperature(7.0);
1083
1/1
✓ Branch 1 taken 705 times.
705 setPreheatDesignHumidityRatio(0.008);
1084
1/1
✓ Branch 1 taken 705 times.
705 setPrecoolDesignTemperature(12.8);
1085
1/1
✓ Branch 1 taken 705 times.
705 setPrecoolDesignHumidityRatio(0.008);
1086
1/1
✓ Branch 1 taken 705 times.
705 setCentralCoolingDesignSupplyAirTemperature(12.8);
1087
1/1
✓ Branch 1 taken 705 times.
705 setCentralHeatingDesignSupplyAirTemperature(16.7);
1088 // setSizingOption("NonCoincident");
1089
1090 // Note: Prior to OpenStudio 3.3.0, this was unfortunately done this way
1091 // setAllOutdoorAirinCooling("No");
1092 // setAllOutdoorAirinHeating("No");
1093 // Both functions expect a boolean to be passed, so here you have an implicit `const char *` -> `bool` conversion
1094 // which results in `true` being passed which is the exact opposite of the intent (and E+ default).
1095 // In the name of API stability, we're sticking with it...
1096
1/1
✓ Branch 1 taken 705 times.
705 setAllOutdoorAirinCooling(true);
1097
1/1
✓ Branch 1 taken 705 times.
705 setAllOutdoorAirinHeating(true);
1098
1099
1/1
✓ Branch 1 taken 705 times.
705 setCentralCoolingDesignSupplyAirHumidityRatio(0.0085);
1100 // setCentralHeatingDesignSupplyAirHumidityRatio(0.0080);
1101 // setCoolingDesignAirFlowMethod("DesignDay");
1102 // setCoolingDesignAirFlowRate(0.0);
1103 // setHeatingDesignAirFlowMethod("DesignDay");
1104 // setHeatingDesignAirFlowRate(0.0);
1105 // setSystemOutdoorAirMethod("ZoneSum");
1106
1/1
✓ Branch 1 taken 705 times.
705 setZoneMaximumOutdoorAirFraction(1.0);
1107
1/1
✓ Branch 1 taken 705 times.
705 setCoolingSupplyAirFlowRatePerFloorArea(9.9676501E-3);
1108
1/1
✓ Branch 1 taken 705 times.
705 setCoolingFractionofAutosizedCoolingSupplyAirFlowRate(1.0);
1109
1/1
✓ Branch 1 taken 705 times.
705 setCoolingSupplyAirFlowRatePerUnitCoolingCapacity(3.9475456E-5);
1110
1/1
✓ Branch 1 taken 705 times.
705 setHeatingSupplyAirFlowRatePerFloorArea(9.9676501E-3);
1111
1/1
✓ Branch 1 taken 705 times.
705 setHeatingFractionofAutosizedHeatingSupplyAirFlowRate(1.0);
1112
1/1
✓ Branch 1 taken 705 times.
705 setHeatingFractionofAutosizedCoolingSupplyAirFlowRate(1.0);
1113
1/1
✓ Branch 1 taken 705 times.
705 setHeatingSupplyAirFlowRatePerUnitHeatingCapacity(3.1588213E-5);
1114
2/2
✓ Branch 1 taken 705 times.
✓ Branch 4 taken 705 times.
705 setCoolingDesignCapacityMethod("CoolingDesignCapacity");
1115
1/1
✓ Branch 1 taken 705 times.
705 autosizeCoolingDesignCapacity();
1116
1/1
✓ Branch 1 taken 705 times.
705 setCoolingDesignCapacityPerFloorArea(234.7);
1117
1/1
✓ Branch 1 taken 705 times.
705 setFractionofAutosizedCoolingDesignCapacity(1.0);
1118
2/2
✓ Branch 1 taken 705 times.
✓ Branch 4 taken 705 times.
705 setHeatingDesignCapacityMethod("HeatingDesignCapacity");
1119
1/1
✓ Branch 1 taken 705 times.
705 autosizeHeatingDesignCapacity();
1120
1/1
✓ Branch 1 taken 705 times.
705 setHeatingDesignCapacityPerFloorArea(157.0);
1121
1/1
✓ Branch 1 taken 705 times.
705 setFractionofAutosizedHeatingDesignCapacity(1.0);
1122
2/2
✓ Branch 1 taken 705 times.
✓ Branch 4 taken 705 times.
705 setCentralCoolingCapacityControlMethod("OnOff");
1123
1/1
✓ Branch 1 taken 705 times.
705 autosizeOccupantDiversity();
1124
2/2
✓ Branch 1 taken 705 times.
✓ Branch 4 taken 705 times.
705 setHeatingCoilSizingMethod("None");
1125
1/1
✓ Branch 1 taken 705 times.
705 setMaximumHeatingCapacityToCoolingCapacitySizingRatio(1.0);
1126 705 }
1127
1128 9103 IddObjectType SizingSystem::iddObjectType() {
1129
1/1
✓ Branch 1 taken 9103 times.
9103 IddObjectType result(IddObjectType::OS_Sizing_System);
1130 9103 return result;
1131 }
1132
1133 ✗ std::vector<std::string> SizingSystem::validTypeofLoadtoSizeOnValues() {
1134 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Sizing_SystemFields::TypeofLoadtoSizeOn);
1135 }
1136
1137 ✗ std::vector<std::string> SizingSystem::validSizingOptionValues() {
1138 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Sizing_SystemFields::SizingOption);
1139 }
1140
1141 ✗ std::vector<std::string> SizingSystem::validCoolingDesignAirFlowMethodValues() {
1142 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Sizing_SystemFields::CoolingDesignAirFlowMethod);
1143 }
1144
1145 ✗ std::vector<std::string> SizingSystem::validHeatingDesignAirFlowMethodValues() {
1146 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Sizing_SystemFields::HeatingDesignAirFlowMethod);
1147 }
1148
1149 ✗ std::vector<std::string> SizingSystem::validSystemOutdoorAirMethodValues() {
1150 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Sizing_SystemFields::SystemOutdoorAirMethod);
1151 }
1152
1153 ✗ std::vector<std::string> SizingSystem::heatingCoilSizingMethodValues() {
1154 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Sizing_SystemFields::HeatingCoilSizingMethod);
1155 }
1156
1157 203 std::string SizingSystem::typeofLoadtoSizeOn() const {
1158
1/1
✓ Branch 3 taken 203 times.
203 return getImpl<detail::SizingSystem_Impl>()->typeofLoadtoSizeOn();
1159 }
1160
1161 3 bool SizingSystem::isTypeofLoadtoSizeOnDefaulted() const {
1162
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::SizingSystem_Impl>()->isTypeofLoadtoSizeOnDefaulted();
1163 }
1164
1165 4 boost::optional<double> SizingSystem::designOutdoorAirFlowRate() const {
1166
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::SizingSystem_Impl>()->designOutdoorAirFlowRate();
1167 }
1168
1169 4 bool SizingSystem::isDesignOutdoorAirFlowRateDefaulted() const {
1170
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::SizingSystem_Impl>()->isDesignOutdoorAirFlowRateDefaulted();
1171 }
1172
1173 203 bool SizingSystem::isDesignOutdoorAirFlowRateAutosized() const {
1174
1/1
✓ Branch 3 taken 203 times.
203 return getImpl<detail::SizingSystem_Impl>()->isDesignOutdoorAirFlowRateAutosized();
1175 }
1176
1177 205 boost::optional<double> SizingSystem::centralHeatingMaximumSystemAirFlowRatio() const {
1178
1/1
✓ Branch 3 taken 205 times.
205 return getImpl<detail::SizingSystem_Impl>()->centralHeatingMaximumSystemAirFlowRatio();
1179 }
1180
1181 4 bool SizingSystem::isCentralHeatingMaximumSystemAirFlowRatioDefaulted() const {
1182
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::SizingSystem_Impl>()->isCentralHeatingMaximumSystemAirFlowRatioDefaulted();
1183 }
1184
1185 203 bool SizingSystem::isCentralHeatingMaximumSystemAirFlowRatioAutosized() const {
1186
1/1
✓ Branch 3 taken 203 times.
203 return getImpl<detail::SizingSystem_Impl>()->isCentralHeatingMaximumSystemAirFlowRatioAutosized();
1187 }
1188
1189 202 double SizingSystem::preheatDesignTemperature() const {
1190
1/1
✓ Branch 3 taken 202 times.
202 return getImpl<detail::SizingSystem_Impl>()->preheatDesignTemperature();
1191 }
1192
1193 202 double SizingSystem::preheatDesignHumidityRatio() const {
1194
1/1
✓ Branch 3 taken 202 times.
202 return getImpl<detail::SizingSystem_Impl>()->preheatDesignHumidityRatio();
1195 }
1196
1197 202 double SizingSystem::precoolDesignTemperature() const {
1198
1/1
✓ Branch 3 taken 202 times.
202 return getImpl<detail::SizingSystem_Impl>()->precoolDesignTemperature();
1199 }
1200
1201 202 double SizingSystem::precoolDesignHumidityRatio() const {
1202
1/1
✓ Branch 3 taken 202 times.
202 return getImpl<detail::SizingSystem_Impl>()->precoolDesignHumidityRatio();
1203 }
1204
1205 202 double SizingSystem::centralCoolingDesignSupplyAirTemperature() const {
1206
1/1
✓ Branch 3 taken 202 times.
202 return getImpl<detail::SizingSystem_Impl>()->centralCoolingDesignSupplyAirTemperature();
1207 }
1208
1209 202 double SizingSystem::centralHeatingDesignSupplyAirTemperature() const {
1210
1/1
✓ Branch 3 taken 202 times.
202 return getImpl<detail::SizingSystem_Impl>()->centralHeatingDesignSupplyAirTemperature();
1211 }
1212
1213 203 std::string SizingSystem::sizingOption() const {
1214
1/1
✓ Branch 3 taken 203 times.
203 return getImpl<detail::SizingSystem_Impl>()->sizingOption();
1215 }
1216
1217 3 bool SizingSystem::isSizingOptionDefaulted() const {
1218
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::SizingSystem_Impl>()->isSizingOptionDefaulted();
1219 }
1220
1221 203 bool SizingSystem::allOutdoorAirinCooling() const {
1222
1/1
✓ Branch 3 taken 203 times.
203 return getImpl<detail::SizingSystem_Impl>()->allOutdoorAirinCooling();
1223 }
1224
1225 3 bool SizingSystem::isAllOutdoorAirinCoolingDefaulted() const {
1226
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::SizingSystem_Impl>()->isAllOutdoorAirinCoolingDefaulted();
1227 }
1228
1229 203 bool SizingSystem::allOutdoorAirinHeating() const {
1230
1/1
✓ Branch 3 taken 203 times.
203 return getImpl<detail::SizingSystem_Impl>()->allOutdoorAirinHeating();
1231 }
1232
1233 3 bool SizingSystem::isAllOutdoorAirinHeatingDefaulted() const {
1234
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::SizingSystem_Impl>()->isAllOutdoorAirinHeatingDefaulted();
1235 }
1236
1237 203 double SizingSystem::centralCoolingDesignSupplyAirHumidityRatio() const {
1238
1/1
✓ Branch 3 taken 203 times.
203 return getImpl<detail::SizingSystem_Impl>()->centralCoolingDesignSupplyAirHumidityRatio();
1239 }
1240
1241 3 bool SizingSystem::isCentralCoolingDesignSupplyAirHumidityRatioDefaulted() const {
1242
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::SizingSystem_Impl>()->isCentralCoolingDesignSupplyAirHumidityRatioDefaulted();
1243 }
1244
1245 203 double SizingSystem::centralHeatingDesignSupplyAirHumidityRatio() const {
1246
1/1
✓ Branch 3 taken 203 times.
203 return getImpl<detail::SizingSystem_Impl>()->centralHeatingDesignSupplyAirHumidityRatio();
1247 }
1248
1249 3 bool SizingSystem::isCentralHeatingDesignSupplyAirHumidityRatioDefaulted() const {
1250
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::SizingSystem_Impl>()->isCentralHeatingDesignSupplyAirHumidityRatioDefaulted();
1251 }
1252
1253 203 std::string SizingSystem::coolingDesignAirFlowMethod() const {
1254
1/1
✓ Branch 3 taken 203 times.
203 return getImpl<detail::SizingSystem_Impl>()->coolingDesignAirFlowMethod();
1255 }
1256
1257 3 bool SizingSystem::isCoolingDesignAirFlowMethodDefaulted() const {
1258
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::SizingSystem_Impl>()->isCoolingDesignAirFlowMethodDefaulted();
1259 }
1260
1261 203 double SizingSystem::coolingDesignAirFlowRate() const {
1262
1/1
✓ Branch 3 taken 203 times.
203 return getImpl<detail::SizingSystem_Impl>()->coolingDesignAirFlowRate();
1263 }
1264
1265 3 bool SizingSystem::isCoolingDesignAirFlowRateDefaulted() const {
1266
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::SizingSystem_Impl>()->isCoolingDesignAirFlowRateDefaulted();
1267 }
1268
1269 203 std::string SizingSystem::heatingDesignAirFlowMethod() const {
1270
1/1
✓ Branch 3 taken 203 times.
203 return getImpl<detail::SizingSystem_Impl>()->heatingDesignAirFlowMethod();
1271 }
1272
1273 3 bool SizingSystem::isHeatingDesignAirFlowMethodDefaulted() const {
1274
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::SizingSystem_Impl>()->isHeatingDesignAirFlowMethodDefaulted();
1275 }
1276
1277 203 double SizingSystem::heatingDesignAirFlowRate() const {
1278
1/1
✓ Branch 3 taken 203 times.
203 return getImpl<detail::SizingSystem_Impl>()->heatingDesignAirFlowRate();
1279 }
1280
1281 3 bool SizingSystem::isHeatingDesignAirFlowRateDefaulted() const {
1282
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::SizingSystem_Impl>()->isHeatingDesignAirFlowRateDefaulted();
1283 }
1284
1285 218 std::string SizingSystem::systemOutdoorAirMethod() const {
1286
1/1
✓ Branch 3 taken 218 times.
218 return getImpl<detail::SizingSystem_Impl>()->systemOutdoorAirMethod();
1287 }
1288
1289 3 bool SizingSystem::isSystemOutdoorAirMethodDefaulted() const {
1290
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::SizingSystem_Impl>()->isSystemOutdoorAirMethodDefaulted();
1291 }
1292
1293 202 double SizingSystem::zoneMaximumOutdoorAirFraction() const {
1294
1/1
✓ Branch 3 taken 202 times.
202 return getImpl<detail::SizingSystem_Impl>()->zoneMaximumOutdoorAirFraction();
1295 }
1296
1297 202 double SizingSystem::coolingSupplyAirFlowRatePerFloorArea() const {
1298
1/1
✓ Branch 3 taken 202 times.
202 return getImpl<detail::SizingSystem_Impl>()->coolingSupplyAirFlowRatePerFloorArea();
1299 }
1300
1301 202 double SizingSystem::coolingFractionofAutosizedCoolingSupplyAirFlowRate() const {
1302
1/1
✓ Branch 3 taken 202 times.
202 return getImpl<detail::SizingSystem_Impl>()->coolingFractionofAutosizedCoolingSupplyAirFlowRate();
1303 }
1304
1305 202 double SizingSystem::coolingSupplyAirFlowRatePerUnitCoolingCapacity() const {
1306
1/1
✓ Branch 3 taken 202 times.
202 return getImpl<detail::SizingSystem_Impl>()->coolingSupplyAirFlowRatePerUnitCoolingCapacity();
1307 }
1308
1309 202 double SizingSystem::heatingSupplyAirFlowRatePerFloorArea() const {
1310
1/1
✓ Branch 3 taken 202 times.
202 return getImpl<detail::SizingSystem_Impl>()->heatingSupplyAirFlowRatePerFloorArea();
1311 }
1312
1313 202 double SizingSystem::heatingFractionofAutosizedHeatingSupplyAirFlowRate() const {
1314
1/1
✓ Branch 3 taken 202 times.
202 return getImpl<detail::SizingSystem_Impl>()->heatingFractionofAutosizedHeatingSupplyAirFlowRate();
1315 }
1316
1317 202 double SizingSystem::heatingFractionofAutosizedCoolingSupplyAirFlowRate() const {
1318
1/1
✓ Branch 3 taken 202 times.
202 return getImpl<detail::SizingSystem_Impl>()->heatingFractionofAutosizedCoolingSupplyAirFlowRate();
1319 }
1320
1321 202 double SizingSystem::heatingSupplyAirFlowRatePerUnitHeatingCapacity() const {
1322
1/1
✓ Branch 3 taken 202 times.
202 return getImpl<detail::SizingSystem_Impl>()->heatingSupplyAirFlowRatePerUnitHeatingCapacity();
1323 }
1324
1325 202 std::string SizingSystem::coolingDesignCapacityMethod() const {
1326
1/1
✓ Branch 3 taken 202 times.
202 return getImpl<detail::SizingSystem_Impl>()->coolingDesignCapacityMethod();
1327 }
1328
1329 204 boost::optional<double> SizingSystem::coolingDesignCapacity() const {
1330
1/1
✓ Branch 3 taken 204 times.
204 return getImpl<detail::SizingSystem_Impl>()->coolingDesignCapacity();
1331 }
1332
1333 203 bool SizingSystem::isCoolingDesignCapacityAutosized() const {
1334
1/1
✓ Branch 3 taken 203 times.
203 return getImpl<detail::SizingSystem_Impl>()->isCoolingDesignCapacityAutosized();
1335 }
1336
1337 202 double SizingSystem::coolingDesignCapacityPerFloorArea() const {
1338
1/1
✓ Branch 3 taken 202 times.
202 return getImpl<detail::SizingSystem_Impl>()->coolingDesignCapacityPerFloorArea();
1339 }
1340
1341 202 double SizingSystem::fractionofAutosizedCoolingDesignCapacity() const {
1342
1/1
✓ Branch 3 taken 202 times.
202 return getImpl<detail::SizingSystem_Impl>()->fractionofAutosizedCoolingDesignCapacity();
1343 }
1344
1345 202 std::string SizingSystem::heatingDesignCapacityMethod() const {
1346
1/1
✓ Branch 3 taken 202 times.
202 return getImpl<detail::SizingSystem_Impl>()->heatingDesignCapacityMethod();
1347 }
1348
1349 204 boost::optional<double> SizingSystem::heatingDesignCapacity() const {
1350
1/1
✓ Branch 3 taken 204 times.
204 return getImpl<detail::SizingSystem_Impl>()->heatingDesignCapacity();
1351 }
1352
1353 203 bool SizingSystem::isHeatingDesignCapacityAutosized() const {
1354
1/1
✓ Branch 3 taken 203 times.
203 return getImpl<detail::SizingSystem_Impl>()->isHeatingDesignCapacityAutosized();
1355 }
1356
1357 202 double SizingSystem::heatingDesignCapacityPerFloorArea() const {
1358
1/1
✓ Branch 3 taken 202 times.
202 return getImpl<detail::SizingSystem_Impl>()->heatingDesignCapacityPerFloorArea();
1359 }
1360
1361 202 double SizingSystem::fractionofAutosizedHeatingDesignCapacity() const {
1362
1/1
✓ Branch 3 taken 202 times.
202 return getImpl<detail::SizingSystem_Impl>()->fractionofAutosizedHeatingDesignCapacity();
1363 }
1364
1365 202 std::string SizingSystem::centralCoolingCapacityControlMethod() const {
1366
1/1
✓ Branch 3 taken 202 times.
202 return getImpl<detail::SizingSystem_Impl>()->centralCoolingCapacityControlMethod();
1367 }
1368
1369 204 boost::optional<double> SizingSystem::occupantDiversity() const {
1370
1/1
✓ Branch 3 taken 204 times.
204 return getImpl<detail::SizingSystem_Impl>()->occupantDiversity();
1371 }
1372
1373 203 bool SizingSystem::isOccupantDiversityAutosized() const {
1374
1/1
✓ Branch 3 taken 203 times.
203 return getImpl<detail::SizingSystem_Impl>()->isOccupantDiversityAutosized();
1375 }
1376
1377 202 std::string SizingSystem::heatingCoilSizingMethod() const {
1378
1/1
✓ Branch 3 taken 202 times.
202 return getImpl<detail::SizingSystem_Impl>()->heatingCoilSizingMethod();
1379 }
1380
1381 202 double SizingSystem::maximumHeatingCapacityToCoolingCapacitySizingRatio() const {
1382
1/1
✓ Branch 3 taken 202 times.
202 return getImpl<detail::SizingSystem_Impl>()->maximumHeatingCapacityToCoolingCapacitySizingRatio();
1383 }
1384
1385 9 bool SizingSystem::setTypeofLoadtoSizeOn(const std::string& typeofLoadtoSizeOn) {
1386
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::SizingSystem_Impl>()->setTypeofLoadtoSizeOn(typeofLoadtoSizeOn);
1387 }
1388
1389 1 void SizingSystem::resetTypeofLoadtoSizeOn() {
1390
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::SizingSystem_Impl>()->resetTypeofLoadtoSizeOn();
1391 1 }
1392
1393 1 bool SizingSystem::setDesignOutdoorAirFlowRate(double designOutdoorAirFlowRate) {
1394
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::SizingSystem_Impl>()->setDesignOutdoorAirFlowRate(designOutdoorAirFlowRate);
1395 }
1396
1397 1 void SizingSystem::resetDesignOutdoorAirFlowRate() {
1398
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::SizingSystem_Impl>()->resetDesignOutdoorAirFlowRate();
1399 1 }
1400
1401 9 void SizingSystem::autosizeDesignOutdoorAirFlowRate() {
1402
1/1
✓ Branch 3 taken 9 times.
9 getImpl<detail::SizingSystem_Impl>()->autosizeDesignOutdoorAirFlowRate();
1403 9 }
1404
1405 719 bool SizingSystem::setCentralHeatingMaximumSystemAirFlowRatio(double centralHeatingMaximumSystemAirFlowRatio) {
1406
2/2
✓ Branch 3 taken 719 times.
✓ Branch 6 taken 719 times.
719 return getImpl<detail::SizingSystem_Impl>()->setCentralHeatingMaximumSystemAirFlowRatio(centralHeatingMaximumSystemAirFlowRatio);
1407 }
1408
1409 1 void SizingSystem::resetCentralHeatingMaximumSystemAirFlowRatio() {
1410
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::SizingSystem_Impl>()->resetCentralHeatingMaximumSystemAirFlowRatio();
1411 1 }
1412
1413 1 void SizingSystem::autosizeCentralHeatingMaximumSystemAirFlowRatio() {
1414
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::SizingSystem_Impl>()->autosizeCentralHeatingMaximumSystemAirFlowRatio();
1415 1 }
1416
1417 719 bool SizingSystem::setPreheatDesignTemperature(double preheatDesignTemperature) {
1418
1/1
✓ Branch 3 taken 719 times.
719 return getImpl<detail::SizingSystem_Impl>()->setPreheatDesignTemperature(preheatDesignTemperature);
1419 }
1420
1421 719 bool SizingSystem::setPreheatDesignHumidityRatio(double preheatDesignHumidityRatio) {
1422
1/1
✓ Branch 3 taken 719 times.
719 return getImpl<detail::SizingSystem_Impl>()->setPreheatDesignHumidityRatio(preheatDesignHumidityRatio);
1423 }
1424
1425 719 bool SizingSystem::setPrecoolDesignTemperature(double precoolDesignTemperature) {
1426
1/1
✓ Branch 3 taken 719 times.
719 return getImpl<detail::SizingSystem_Impl>()->setPrecoolDesignTemperature(precoolDesignTemperature);
1427 }
1428
1429 719 bool SizingSystem::setPrecoolDesignHumidityRatio(double precoolDesignHumidityRatio) {
1430
1/1
✓ Branch 3 taken 719 times.
719 return getImpl<detail::SizingSystem_Impl>()->setPrecoolDesignHumidityRatio(precoolDesignHumidityRatio);
1431 }
1432
1433 722 bool SizingSystem::setCentralCoolingDesignSupplyAirTemperature(double centralCoolingDesignSupplyAirTemperature) {
1434
1/1
✓ Branch 3 taken 722 times.
722 return getImpl<detail::SizingSystem_Impl>()->setCentralCoolingDesignSupplyAirTemperature(centralCoolingDesignSupplyAirTemperature);
1435 }
1436
1437 722 bool SizingSystem::setCentralHeatingDesignSupplyAirTemperature(double centralHeatingDesignSupplyAirTemperature) {
1438
1/1
✓ Branch 3 taken 722 times.
722 return getImpl<detail::SizingSystem_Impl>()->setCentralHeatingDesignSupplyAirTemperature(centralHeatingDesignSupplyAirTemperature);
1439 }
1440
1441 14 bool SizingSystem::setSizingOption(const std::string& sizingOption) {
1442
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::SizingSystem_Impl>()->setSizingOption(sizingOption);
1443 }
1444
1445 1 void SizingSystem::resetSizingOption() {
1446
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::SizingSystem_Impl>()->resetSizingOption();
1447 1 }
1448
1449 719 bool SizingSystem::setAllOutdoorAirinCooling(bool allOutdoorAirinCooling) {
1450
1/1
✓ Branch 3 taken 719 times.
719 return getImpl<detail::SizingSystem_Impl>()->setAllOutdoorAirinCooling(allOutdoorAirinCooling);
1451 }
1452
1453 1 void SizingSystem::resetAllOutdoorAirinCooling() {
1454
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::SizingSystem_Impl>()->resetAllOutdoorAirinCooling();
1455 1 }
1456
1457 719 bool SizingSystem::setAllOutdoorAirinHeating(bool allOutdoorAirinHeating) {
1458
1/1
✓ Branch 3 taken 719 times.
719 return getImpl<detail::SizingSystem_Impl>()->setAllOutdoorAirinHeating(allOutdoorAirinHeating);
1459 }
1460
1461 1 void SizingSystem::resetAllOutdoorAirinHeating() {
1462
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::SizingSystem_Impl>()->resetAllOutdoorAirinHeating();
1463 1 }
1464
1465 719 bool SizingSystem::setCentralCoolingDesignSupplyAirHumidityRatio(double centralCoolingDesignSupplyAirHumidityRatio) {
1466
1/1
✓ Branch 3 taken 719 times.
719 return getImpl<detail::SizingSystem_Impl>()->setCentralCoolingDesignSupplyAirHumidityRatio(centralCoolingDesignSupplyAirHumidityRatio);
1467 }
1468
1469 1 void SizingSystem::resetCentralCoolingDesignSupplyAirHumidityRatio() {
1470
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::SizingSystem_Impl>()->resetCentralCoolingDesignSupplyAirHumidityRatio();
1471 1 }
1472
1473 14 bool SizingSystem::setCentralHeatingDesignSupplyAirHumidityRatio(double centralHeatingDesignSupplyAirHumidityRatio) {
1474
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::SizingSystem_Impl>()->setCentralHeatingDesignSupplyAirHumidityRatio(centralHeatingDesignSupplyAirHumidityRatio);
1475 }
1476
1477 1 void SizingSystem::resetCentralHeatingDesignSupplyAirHumidityRatio() {
1478
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::SizingSystem_Impl>()->resetCentralHeatingDesignSupplyAirHumidityRatio();
1479 1 }
1480
1481 9 bool SizingSystem::setCoolingDesignAirFlowMethod(const std::string& coolingDesignAirFlowMethod) {
1482
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::SizingSystem_Impl>()->setCoolingDesignAirFlowMethod(coolingDesignAirFlowMethod);
1483 }
1484
1485 1 void SizingSystem::resetCoolingDesignAirFlowMethod() {
1486
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::SizingSystem_Impl>()->resetCoolingDesignAirFlowMethod();
1487 1 }
1488
1489 9 bool SizingSystem::setCoolingDesignAirFlowRate(double coolingDesignAirFlowRate) {
1490
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::SizingSystem_Impl>()->setCoolingDesignAirFlowRate(coolingDesignAirFlowRate);
1491 }
1492
1493 1 void SizingSystem::resetCoolingDesignAirFlowRate() {
1494
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::SizingSystem_Impl>()->resetCoolingDesignAirFlowRate();
1495 1 }
1496
1497 9 bool SizingSystem::setHeatingDesignAirFlowMethod(const std::string& heatingDesignAirFlowMethod) {
1498
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::SizingSystem_Impl>()->setHeatingDesignAirFlowMethod(heatingDesignAirFlowMethod);
1499 }
1500
1501 1 void SizingSystem::resetHeatingDesignAirFlowMethod() {
1502
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::SizingSystem_Impl>()->resetHeatingDesignAirFlowMethod();
1503 1 }
1504
1505 9 bool SizingSystem::setHeatingDesignAirFlowRate(double heatingDesignAirFlowRate) {
1506
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::SizingSystem_Impl>()->setHeatingDesignAirFlowRate(heatingDesignAirFlowRate);
1507 }
1508
1509 1 void SizingSystem::resetHeatingDesignAirFlowRate() {
1510
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::SizingSystem_Impl>()->resetHeatingDesignAirFlowRate();
1511 1 }
1512
1513 13 bool SizingSystem::setSystemOutdoorAirMethod(const std::string& systemOutdoorAirMethod) {
1514
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::SizingSystem_Impl>()->setSystemOutdoorAirMethod(systemOutdoorAirMethod);
1515 }
1516
1517 1 void SizingSystem::resetSystemOutdoorAirMethod() {
1518
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::SizingSystem_Impl>()->resetSystemOutdoorAirMethod();
1519 1 }
1520
1521 706 bool SizingSystem::setZoneMaximumOutdoorAirFraction(double zoneMaximumOutdoorAirFraction) {
1522
1/1
✓ Branch 3 taken 706 times.
706 return getImpl<detail::SizingSystem_Impl>()->setZoneMaximumOutdoorAirFraction(zoneMaximumOutdoorAirFraction);
1523 }
1524
1525 706 bool SizingSystem::setCoolingSupplyAirFlowRatePerFloorArea(double coolingSupplyAirFlowRatePerFloorArea) {
1526
1/1
✓ Branch 3 taken 706 times.
706 return getImpl<detail::SizingSystem_Impl>()->setCoolingSupplyAirFlowRatePerFloorArea(coolingSupplyAirFlowRatePerFloorArea);
1527 }
1528
1529 706 bool SizingSystem::setCoolingFractionofAutosizedCoolingSupplyAirFlowRate(double coolingFractionofAutosizedCoolingSupplyAirFlowRate) {
1530
1/1
✓ Branch 3 taken 706 times.
1412 return getImpl<detail::SizingSystem_Impl>()->setCoolingFractionofAutosizedCoolingSupplyAirFlowRate(
1531 1412 coolingFractionofAutosizedCoolingSupplyAirFlowRate);
1532 }
1533
1534 706 bool SizingSystem::setCoolingSupplyAirFlowRatePerUnitCoolingCapacity(double coolingSupplyAirFlowRatePerUnitCoolingCapacity) {
1535
1/1
✓ Branch 3 taken 706 times.
706 return getImpl<detail::SizingSystem_Impl>()->setCoolingSupplyAirFlowRatePerUnitCoolingCapacity(coolingSupplyAirFlowRatePerUnitCoolingCapacity);
1536 }
1537
1538 706 bool SizingSystem::setHeatingSupplyAirFlowRatePerFloorArea(double heatingSupplyAirFlowRatePerFloorArea) {
1539
1/1
✓ Branch 3 taken 706 times.
706 return getImpl<detail::SizingSystem_Impl>()->setHeatingSupplyAirFlowRatePerFloorArea(heatingSupplyAirFlowRatePerFloorArea);
1540 }
1541
1542 706 bool SizingSystem::setHeatingFractionofAutosizedHeatingSupplyAirFlowRate(double heatingFractionofAutosizedHeatingSupplyAirFlowRate) {
1543
1/1
✓ Branch 3 taken 706 times.
1412 return getImpl<detail::SizingSystem_Impl>()->setHeatingFractionofAutosizedHeatingSupplyAirFlowRate(
1544 1412 heatingFractionofAutosizedHeatingSupplyAirFlowRate);
1545 }
1546
1547 706 bool SizingSystem::setHeatingFractionofAutosizedCoolingSupplyAirFlowRate(double heatingFractionofAutosizedCoolingSupplyAirFlowRate) {
1548
1/1
✓ Branch 3 taken 706 times.
1412 return getImpl<detail::SizingSystem_Impl>()->setHeatingFractionofAutosizedCoolingSupplyAirFlowRate(
1549 1412 heatingFractionofAutosizedCoolingSupplyAirFlowRate);
1550 }
1551
1552 706 bool SizingSystem::setHeatingSupplyAirFlowRatePerUnitHeatingCapacity(double heatingSupplyAirFlowRatePerUnitHeatingCapacity) {
1553
1/1
✓ Branch 3 taken 706 times.
706 return getImpl<detail::SizingSystem_Impl>()->setHeatingSupplyAirFlowRatePerUnitHeatingCapacity(heatingSupplyAirFlowRatePerUnitHeatingCapacity);
1554 }
1555
1556 706 bool SizingSystem::setCoolingDesignCapacityMethod(const std::string& coolingDesignCapacityMethod) {
1557
1/1
✓ Branch 3 taken 706 times.
706 return getImpl<detail::SizingSystem_Impl>()->setCoolingDesignCapacityMethod(coolingDesignCapacityMethod);
1558 }
1559
1560 1 bool SizingSystem::setCoolingDesignCapacity(double coolingDesignCapacity) {
1561
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::SizingSystem_Impl>()->setCoolingDesignCapacity(coolingDesignCapacity);
1562 }
1563
1564 706 void SizingSystem::autosizeCoolingDesignCapacity() {
1565
1/1
✓ Branch 3 taken 706 times.
706 getImpl<detail::SizingSystem_Impl>()->autosizeCoolingDesignCapacity();
1566 706 }
1567
1568 706 bool SizingSystem::setCoolingDesignCapacityPerFloorArea(double coolingDesignCapacityPerFloorArea) {
1569
1/1
✓ Branch 3 taken 706 times.
706 return getImpl<detail::SizingSystem_Impl>()->setCoolingDesignCapacityPerFloorArea(coolingDesignCapacityPerFloorArea);
1570 }
1571
1572 706 bool SizingSystem::setFractionofAutosizedCoolingDesignCapacity(double fractionofAutosizedCoolingDesignCapacity) {
1573
1/1
✓ Branch 3 taken 706 times.
706 return getImpl<detail::SizingSystem_Impl>()->setFractionofAutosizedCoolingDesignCapacity(fractionofAutosizedCoolingDesignCapacity);
1574 }
1575
1576 706 bool SizingSystem::setHeatingDesignCapacityMethod(const std::string& heatingDesignCapacityMethod) {
1577
1/1
✓ Branch 3 taken 706 times.
706 return getImpl<detail::SizingSystem_Impl>()->setHeatingDesignCapacityMethod(heatingDesignCapacityMethod);
1578 }
1579
1580 1 bool SizingSystem::setHeatingDesignCapacity(double heatingDesignCapacity) {
1581
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::SizingSystem_Impl>()->setHeatingDesignCapacity(heatingDesignCapacity);
1582 }
1583
1584 706 void SizingSystem::autosizeHeatingDesignCapacity() {
1585
1/1
✓ Branch 3 taken 706 times.
706 getImpl<detail::SizingSystem_Impl>()->autosizeHeatingDesignCapacity();
1586 706 }
1587
1588 706 bool SizingSystem::setHeatingDesignCapacityPerFloorArea(double heatingDesignCapacityPerFloorArea) {
1589
1/1
✓ Branch 3 taken 706 times.
706 return getImpl<detail::SizingSystem_Impl>()->setHeatingDesignCapacityPerFloorArea(heatingDesignCapacityPerFloorArea);
1590 }
1591
1592 706 bool SizingSystem::setFractionofAutosizedHeatingDesignCapacity(double fractionofAutosizedHeatingDesignCapacity) {
1593
1/1
✓ Branch 3 taken 706 times.
706 return getImpl<detail::SizingSystem_Impl>()->setFractionofAutosizedHeatingDesignCapacity(fractionofAutosizedHeatingDesignCapacity);
1594 }
1595
1596 706 bool SizingSystem::setCentralCoolingCapacityControlMethod(const std::string& centralCoolingCapacityControlMethod) {
1597
1/1
✓ Branch 3 taken 706 times.
706 return getImpl<detail::SizingSystem_Impl>()->setCentralCoolingCapacityControlMethod(centralCoolingCapacityControlMethod);
1598 }
1599
1600 1 bool SizingSystem::setOccupantDiversity(double occupantDiversity) {
1601
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::SizingSystem_Impl>()->setOccupantDiversity(occupantDiversity);
1602 }
1603
1604 706 void SizingSystem::autosizeOccupantDiversity() {
1605
1/1
✓ Branch 3 taken 706 times.
706 getImpl<detail::SizingSystem_Impl>()->autosizeOccupantDiversity();
1606 706 }
1607
1608 670 AirLoopHVAC SizingSystem::airLoopHVAC() const {
1609
1/1
✓ Branch 3 taken 670 times.
670 return getImpl<detail::SizingSystem_Impl>()->airLoopHVAC();
1610 }
1611
1612 705 bool SizingSystem::setAirLoopHVAC(const AirLoopHVAC& airLoopHVAC) {
1613
1/1
✓ Branch 3 taken 705 times.
705 return getImpl<detail::SizingSystem_Impl>()->setAirLoopHVAC(airLoopHVAC);
1614 }
1615
1616 /// @cond
1617
1/1
✓ Branch 3 taken 672 times.
672 SizingSystem::SizingSystem(std::shared_ptr<detail::SizingSystem_Impl> impl) : ModelObject(std::move(impl)) {}
1618 /// @endcond
1619
1620 ✗ boost::optional<double> SizingSystem::autosizedDesignOutdoorAirFlowRate() const {
1621 ✗ return getImpl<detail::SizingSystem_Impl>()->autosizedDesignOutdoorAirFlowRate();
1622 }
1623
1624 ✗ boost::optional<double> SizingSystem::autosizedCoolingDesignCapacity() const {
1625 ✗ return getImpl<detail::SizingSystem_Impl>()->autosizedCoolingDesignCapacity();
1626 }
1627
1628 ✗ boost::optional<double> SizingSystem::autosizedHeatingDesignCapacity() const {
1629 ✗ return getImpl<detail::SizingSystem_Impl>()->autosizedHeatingDesignCapacity();
1630 }
1631
1632 ✗ void SizingSystem::autosize() {
1633 ✗ return getImpl<detail::SizingSystem_Impl>()->autosize();
1634 }
1635
1636 ✗ void SizingSystem::applySizingValues() {
1637 ✗ return getImpl<detail::SizingSystem_Impl>()->applySizingValues();
1638 }
1639
1640 ✗ boost::optional<double> SizingSystem::autosizedCentralHeatingMaximumSystemAirFlowRatio() const {
1641 ✗ return getImpl<detail::SizingSystem_Impl>()->autosizedCentralHeatingMaximumSystemAirFlowRatio();
1642 }
1643
1644 ✗ boost::optional<double> SizingSystem::autosizedOccupantDiversity() const {
1645 ✗ return getImpl<detail::SizingSystem_Impl>()->autosizedOccupantDiversity();
1646 }
1647
1648 706 bool SizingSystem::setHeatingCoilSizingMethod(const std::string& heatingCoilSizingMethod) {
1649
1/1
✓ Branch 3 taken 706 times.
706 return getImpl<detail::SizingSystem_Impl>()->setHeatingCoilSizingMethod(heatingCoilSizingMethod);
1650 }
1651
1652 706 bool SizingSystem::setMaximumHeatingCapacityToCoolingCapacitySizingRatio(double maximumHeatingCapacityToCoolingCapacitySizingRatio) {
1653
1/1
✓ Branch 3 taken 706 times.
1412 return getImpl<detail::SizingSystem_Impl>()->setMaximumHeatingCapacityToCoolingCapacitySizingRatio(
1654 1412 maximumHeatingCapacityToCoolingCapacitySizingRatio);
1655 }
1656
1657 } // namespace model
1658
1659 } // namespace openstudio
1660