GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 79.8% 502 / 0 / 629
Functions: 85.4% 117 / 0 / 137
Branches: 49.6% 336 / 0 / 678

src/model/CoilCoolingDXMultiSpeedStageData.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 "../model/CoilCoolingDXMultiSpeedStageData.hpp"
7 #include "../model/CoilCoolingDXMultiSpeedStageData_Impl.hpp"
8 #include "../model/Curve.hpp"
9 #include "../model/Curve_Impl.hpp"
10 #include "../model/Model.hpp"
11 #include "../model/Model_Impl.hpp"
12 #include "../model/CurveBiquadratic.hpp"
13 #include "../model/CurveBiquadratic_Impl.hpp"
14 #include "../model/CurveQuadratic.hpp"
15 #include "../model/CurveQuadratic_Impl.hpp"
16 #include "../model/CoilCoolingDXMultiSpeed.hpp"
17 #include "../model/CoilCoolingDXMultiSpeed_Impl.hpp"
18 #include <utilities/idd/OS_Coil_Cooling_DX_MultiSpeed_StageData_FieldEnums.hxx>
19 #include <utilities/idd/IddEnums.hxx>
20 #include "../utilities/units/Unit.hpp"
21 #include "../utilities/core/Assert.hpp"
22
23 #include "../utilities/core/DeprecatedHelpers.hpp"
24
25 namespace openstudio {
26 namespace model {
27
28 namespace detail {
29
30 33 CoilCoolingDXMultiSpeedStageData_Impl::CoilCoolingDXMultiSpeedStageData_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
31 33 : ParentObject_Impl(idfObject, model, keepHandle) {
32
4/6
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 33 times.
✗ Branch 13 not taken.
33 OS_ASSERT(idfObject.iddObject().type() == CoilCoolingDXMultiSpeedStageData::iddObjectType());
33 33 }
34
35 1 CoilCoolingDXMultiSpeedStageData_Impl::CoilCoolingDXMultiSpeedStageData_Impl(const openstudio::detail::WorkspaceObject_Impl& other,
36 1 Model_Impl* model, bool keepHandle)
37 1 : ParentObject_Impl(other, model, keepHandle) {
38
4/6
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 10 not taken.
✓ Branch 11 taken 1 time.
✗ Branch 13 not taken.
1 OS_ASSERT(other.iddObject().type() == CoilCoolingDXMultiSpeedStageData::iddObjectType());
39 1 }
40
41 26 CoilCoolingDXMultiSpeedStageData_Impl::CoilCoolingDXMultiSpeedStageData_Impl(const CoilCoolingDXMultiSpeedStageData_Impl& other,
42 26 Model_Impl* model, bool keepHandle)
43 26 : ParentObject_Impl(other, model, keepHandle) {}
44
45 ✗ const std::vector<std::string>& CoilCoolingDXMultiSpeedStageData_Impl::outputVariableNames() const {
46 ✗ static const std::vector<std::string> result;
47 // Not Appropriate
48 ✗ return result;
49 }
50
51 ✗ IddObjectType CoilCoolingDXMultiSpeedStageData_Impl::iddObjectType() const {
52 ✗ return CoilCoolingDXMultiSpeedStageData::iddObjectType();
53 }
54
55 2 boost::optional<double> CoilCoolingDXMultiSpeedStageData_Impl::grossRatedTotalCoolingCapacity() const {
56 2 return getDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::GrossRatedTotalCoolingCapacity, true);
57 }
58
59 20 bool CoilCoolingDXMultiSpeedStageData_Impl::isGrossRatedTotalCoolingCapacityAutosized() const {
60 20 bool result = false;
61
1/1
✓ Branch 1 taken 20 times.
20 boost::optional<std::string> value = getString(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::GrossRatedTotalCoolingCapacity, true);
62
1/2
✓ Branch 0 taken 20 times.
✗ Branch 1 not taken.
20 if (value) {
63
3/3
✓ Branch 1 taken 20 times.
✓ Branch 4 taken 20 times.
✓ Branch 7 taken 20 times.
40 result = openstudio::istringEqual(value.get(), "autosize");
64 }
65 20 return result;
66 20 }
67
68 2 boost::optional<double> CoilCoolingDXMultiSpeedStageData_Impl::grossRatedSensibleHeatRatio() const {
69 2 return getDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::GrossRatedSensibleHeatRatio, true);
70 }
71
72 20 bool CoilCoolingDXMultiSpeedStageData_Impl::isGrossRatedSensibleHeatRatioAutosized() const {
73 20 bool result = false;
74
1/1
✓ Branch 1 taken 20 times.
20 boost::optional<std::string> value = getString(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::GrossRatedSensibleHeatRatio, true);
75
1/2
✓ Branch 0 taken 20 times.
✗ Branch 1 not taken.
20 if (value) {
76
3/3
✓ Branch 1 taken 20 times.
✓ Branch 4 taken 20 times.
✓ Branch 7 taken 20 times.
40 result = openstudio::istringEqual(value.get(), "autosize");
77 }
78 20 return result;
79 20 }
80
81 20 double CoilCoolingDXMultiSpeedStageData_Impl::grossRatedCoolingCOP() const {
82
1/1
✓ Branch 1 taken 20 times.
20 boost::optional<double> value = getDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::GrossRatedCoolingCOP, true);
83
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 20 times.
✗ Branch 4 not taken.
20 OS_ASSERT(value);
84
1/1
✓ Branch 1 taken 20 times.
40 return value.get();
85 }
86
87 16 boost::optional<double> CoilCoolingDXMultiSpeedStageData_Impl::ratedAirFlowRate() const {
88 16 return getDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::RatedAirFlowRate, true);
89 }
90
91 20 bool CoilCoolingDXMultiSpeedStageData_Impl::isRatedAirFlowRateAutosized() const {
92 20 bool result = false;
93
1/1
✓ Branch 1 taken 20 times.
20 boost::optional<std::string> value = getString(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::RatedAirFlowRate, true);
94
1/2
✓ Branch 0 taken 20 times.
✗ Branch 1 not taken.
20 if (value) {
95
3/3
✓ Branch 1 taken 20 times.
✓ Branch 4 taken 20 times.
✓ Branch 7 taken 20 times.
40 result = openstudio::istringEqual(value.get(), "autosize");
96 }
97 20 return result;
98 20 }
99
100 20 double CoilCoolingDXMultiSpeedStageData_Impl::ratedEvaporatorFanPowerPerVolumeFlowRate2017() const {
101
1/1
✓ Branch 1 taken 20 times.
20 boost::optional<double> value = getDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::RatedEvaporatorFanPowerPerVolumeFlowRate2017, true);
102
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 20 times.
✗ Branch 4 not taken.
20 OS_ASSERT(value);
103
1/1
✓ Branch 1 taken 20 times.
40 return value.get();
104 }
105
106 20 double CoilCoolingDXMultiSpeedStageData_Impl::ratedEvaporatorFanPowerPerVolumeFlowRate2023() const {
107
1/1
✓ Branch 1 taken 20 times.
20 boost::optional<double> value = getDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::RatedEvaporatorFanPowerPerVolumeFlowRate2023, true);
108
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 20 times.
✗ Branch 4 not taken.
20 OS_ASSERT(value);
109
1/1
✓ Branch 1 taken 20 times.
40 return value.get();
110 }
111
112 25 Curve CoilCoolingDXMultiSpeedStageData_Impl::totalCoolingCapacityFunctionofTemperatureCurve() const {
113
1/1
✓ Branch 1 taken 25 times.
25 boost::optional<Curve> value = optionalTotalCoolingCapacityFunctionofTemperatureCurve();
114
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 25 times.
25 if (!value) {
115 ✗ LOG_AND_THROW(briefDescription() << " does not have an Total Cooling Capacity Functionof Temperature Curve attached.");
116 }
117
2/2
✓ Branch 1 taken 25 times.
✓ Branch 4 taken 25 times.
50 return value.get();
118 25 }
119
120 21 Curve CoilCoolingDXMultiSpeedStageData_Impl::totalCoolingCapacityFunctionofFlowFractionCurve() const {
121
1/1
✓ Branch 1 taken 21 times.
21 boost::optional<Curve> value = optionalTotalCoolingCapacityFunctionofFlowFractionCurve();
122
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 21 times.
21 if (!value) {
123 ✗ LOG_AND_THROW(briefDescription() << " does not have an Total Cooling Capacity Functionof Flow Fraction Curve attached.");
124 }
125
2/2
✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
42 return value.get();
126 21 }
127
128 21 Curve CoilCoolingDXMultiSpeedStageData_Impl::energyInputRatioFunctionofTemperatureCurve() const {
129
1/1
✓ Branch 1 taken 21 times.
21 boost::optional<Curve> value = optionalEnergyInputRatioFunctionofTemperatureCurve();
130
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 21 times.
21 if (!value) {
131 ✗ LOG_AND_THROW(briefDescription() << " does not have an Energy Input Ratio Functionof Temperature Curve attached.");
132 }
133
2/2
✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
42 return value.get();
134 21 }
135
136 21 Curve CoilCoolingDXMultiSpeedStageData_Impl::energyInputRatioFunctionofFlowFractionCurve() const {
137
1/1
✓ Branch 1 taken 21 times.
21 boost::optional<Curve> value = optionalEnergyInputRatioFunctionofFlowFractionCurve();
138
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 21 times.
21 if (!value) {
139 ✗ LOG_AND_THROW(briefDescription() << " does not have an Energy Input Ratio Functionof Flow Fraction Curve attached.");
140 }
141
2/2
✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
42 return value.get();
142 21 }
143
144 21 Curve CoilCoolingDXMultiSpeedStageData_Impl::partLoadFractionCorrelationCurve() const {
145
1/1
✓ Branch 1 taken 21 times.
21 boost::optional<Curve> value = optionalPartLoadFractionCorrelationCurve();
146
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 21 times.
21 if (!value) {
147 ✗ LOG_AND_THROW(briefDescription() << " does not have an Part Load Fraction Correlation Curve attached.");
148 }
149
2/2
✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
42 return value.get();
150 21 }
151
152 20 double CoilCoolingDXMultiSpeedStageData_Impl::nominalTimeforCondensateRemovaltoBegin() const {
153
1/1
✓ Branch 1 taken 20 times.
20 boost::optional<double> value = getDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::NominalTimeforCondensateRemovaltoBegin, true);
154
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 20 times.
✗ Branch 4 not taken.
20 OS_ASSERT(value);
155
1/1
✓ Branch 1 taken 20 times.
40 return value.get();
156 }
157
158 20 double CoilCoolingDXMultiSpeedStageData_Impl::ratioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity() const {
159 boost::optional<double> value =
160
1/1
✓ Branch 1 taken 20 times.
20 getDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::RatioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity, true);
161
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 20 times.
✗ Branch 4 not taken.
20 OS_ASSERT(value);
162
1/1
✓ Branch 1 taken 20 times.
40 return value.get();
163 }
164
165 20 double CoilCoolingDXMultiSpeedStageData_Impl::maximumCyclingRate() const {
166
1/1
✓ Branch 1 taken 20 times.
20 boost::optional<double> value = getDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::MaximumCyclingRate, true);
167
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 20 times.
✗ Branch 4 not taken.
20 OS_ASSERT(value);
168
1/1
✓ Branch 1 taken 20 times.
40 return value.get();
169 }
170
171 20 double CoilCoolingDXMultiSpeedStageData_Impl::latentCapacityTimeConstant() const {
172
1/1
✓ Branch 1 taken 20 times.
20 boost::optional<double> value = getDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::LatentCapacityTimeConstant, true);
173
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 20 times.
✗ Branch 4 not taken.
20 OS_ASSERT(value);
174
1/1
✓ Branch 1 taken 20 times.
40 return value.get();
175 }
176
177 20 double CoilCoolingDXMultiSpeedStageData_Impl::ratedWasteHeatFractionofPowerInput() const {
178
1/1
✓ Branch 1 taken 20 times.
20 boost::optional<double> value = getDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::RatedWasteHeatFractionofPowerInput, true);
179
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 20 times.
✗ Branch 4 not taken.
20 OS_ASSERT(value);
180
1/1
✓ Branch 1 taken 20 times.
40 return value.get();
181 }
182
183 21 Curve CoilCoolingDXMultiSpeedStageData_Impl::wasteHeatFunctionofTemperatureCurve() const {
184 auto curve =
185
2/2
✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
21 getObject<ModelObject>().getModelObjectTarget<Curve>(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::WasteHeatFunctionofTemperatureCurve);
186
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 21 times.
21 if (!curve) {
187 ✗ LOG_AND_THROW(briefDescription() << " does not have an Waste Heat Function of Temperature Curve attached.");
188 }
189
2/2
✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
42 return curve.get();
190 21 }
191
192 20 double CoilCoolingDXMultiSpeedStageData_Impl::evaporativeCondenserEffectiveness() const {
193
1/1
✓ Branch 1 taken 20 times.
20 boost::optional<double> value = getDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::EvaporativeCondenserEffectiveness, true);
194
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 20 times.
✗ Branch 4 not taken.
20 OS_ASSERT(value);
195
1/1
✓ Branch 1 taken 20 times.
40 return value.get();
196 }
197
198 2 boost::optional<double> CoilCoolingDXMultiSpeedStageData_Impl::evaporativeCondenserAirFlowRate() const {
199 2 return getDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::EvaporativeCondenserAirFlowRate, true);
200 }
201
202 20 bool CoilCoolingDXMultiSpeedStageData_Impl::isEvaporativeCondenserAirFlowRateAutosized() const {
203 20 bool result = false;
204
1/1
✓ Branch 1 taken 20 times.
20 boost::optional<std::string> value = getString(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::EvaporativeCondenserAirFlowRate, true);
205
1/2
✓ Branch 0 taken 20 times.
✗ Branch 1 not taken.
20 if (value) {
206
3/3
✓ Branch 1 taken 20 times.
✓ Branch 4 taken 20 times.
✓ Branch 7 taken 20 times.
40 result = openstudio::istringEqual(value.get(), "autosize");
207 }
208 20 return result;
209 20 }
210
211 2 boost::optional<double> CoilCoolingDXMultiSpeedStageData_Impl::ratedEvaporativeCondenserPumpPowerConsumption() const {
212 2 return getDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::RatedEvaporativeCondenserPumpPowerConsumption, true);
213 }
214
215 20 bool CoilCoolingDXMultiSpeedStageData_Impl::isRatedEvaporativeCondenserPumpPowerConsumptionAutosized() const {
216 20 bool result = false;
217 boost::optional<std::string> value =
218
1/1
✓ Branch 1 taken 20 times.
20 getString(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::RatedEvaporativeCondenserPumpPowerConsumption, true);
219
1/2
✓ Branch 0 taken 20 times.
✗ Branch 1 not taken.
20 if (value) {
220
3/3
✓ Branch 1 taken 20 times.
✓ Branch 4 taken 20 times.
✓ Branch 7 taken 20 times.
40 result = openstudio::istringEqual(value.get(), "autosize");
221 }
222 20 return result;
223 20 }
224
225 1 bool CoilCoolingDXMultiSpeedStageData_Impl::setGrossRatedTotalCoolingCapacity(boost::optional<double> grossRatedTotalCoolingCapacity) {
226 1 bool result(false);
227
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (grossRatedTotalCoolingCapacity) {
228 1 result = setDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::GrossRatedTotalCoolingCapacity, grossRatedTotalCoolingCapacity.get());
229 }
230 1 return result;
231 }
232
233 32 void CoilCoolingDXMultiSpeedStageData_Impl::autosizeGrossRatedTotalCoolingCapacity() {
234
2/2
✓ Branch 1 taken 32 times.
✓ Branch 4 taken 32 times.
64 bool result = setString(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::GrossRatedTotalCoolingCapacity, "autosize");
235
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 32 times.
32 OS_ASSERT(result);
236 32 }
237
238 1 bool CoilCoolingDXMultiSpeedStageData_Impl::setGrossRatedSensibleHeatRatio(boost::optional<double> grossRatedSensibleHeatRatio) {
239 1 bool result(false);
240
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (grossRatedSensibleHeatRatio) {
241 1 result = setDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::GrossRatedSensibleHeatRatio, grossRatedSensibleHeatRatio.get());
242 }
243 1 return result;
244 }
245
246 32 void CoilCoolingDXMultiSpeedStageData_Impl::autosizeGrossRatedSensibleHeatRatio() {
247
2/2
✓ Branch 1 taken 32 times.
✓ Branch 4 taken 32 times.
64 bool result = setString(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::GrossRatedSensibleHeatRatio, "autosize");
248
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 32 times.
32 OS_ASSERT(result);
249 32 }
250
251 33 bool CoilCoolingDXMultiSpeedStageData_Impl::setGrossRatedCoolingCOP(double grossRatedCoolingCOP) {
252 33 bool result = setDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::GrossRatedCoolingCOP, grossRatedCoolingCOP);
253 33 return result;
254 }
255
256 8 bool CoilCoolingDXMultiSpeedStageData_Impl::setRatedAirFlowRate(boost::optional<double> ratedAirFlowRate) {
257 8 bool result(false);
258
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 if (ratedAirFlowRate) {
259 8 result = setDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::RatedAirFlowRate, ratedAirFlowRate.get());
260 }
261 8 return result;
262 }
263
264 32 void CoilCoolingDXMultiSpeedStageData_Impl::autosizeRatedAirFlowRate() {
265
2/2
✓ Branch 1 taken 32 times.
✓ Branch 4 taken 32 times.
64 bool result = setString(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::RatedAirFlowRate, "autosize");
266
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 32 times.
32 OS_ASSERT(result);
267 32 }
268
269 33 bool CoilCoolingDXMultiSpeedStageData_Impl::setRatedEvaporatorFanPowerPerVolumeFlowRate2017(double ratedEvaporatorFanPowerPerVolumeFlowRate2017) {
270 33 bool result = setDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::RatedEvaporatorFanPowerPerVolumeFlowRate2017,
271 ratedEvaporatorFanPowerPerVolumeFlowRate2017);
272 33 return result;
273 }
274
275 32 bool CoilCoolingDXMultiSpeedStageData_Impl::setRatedEvaporatorFanPowerPerVolumeFlowRate2023(double ratedEvaporatorFanPowerPerVolumeFlowRate2023) {
276 32 bool result = setDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::RatedEvaporatorFanPowerPerVolumeFlowRate2023,
277 ratedEvaporatorFanPowerPerVolumeFlowRate2023);
278 32 return result;
279 }
280
281 32 bool CoilCoolingDXMultiSpeedStageData_Impl::setTotalCoolingCapacityFunctionofTemperatureCurve(const Curve& curve) {
282
2/2
✓ Branch 1 taken 32 times.
✓ Branch 4 taken 32 times.
32 bool result = setPointer(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::TotalCoolingCapacityFunctionofTemperatureCurve, curve.handle());
283 32 return result;
284 }
285
286 32 bool CoilCoolingDXMultiSpeedStageData_Impl::setTotalCoolingCapacityFunctionofFlowFractionCurve(const Curve& curve) {
287
2/2
✓ Branch 1 taken 32 times.
✓ Branch 4 taken 32 times.
32 bool result = setPointer(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::TotalCoolingCapacityFunctionofFlowFractionCurve, curve.handle());
288 32 return result;
289 }
290
291 32 bool CoilCoolingDXMultiSpeedStageData_Impl::setEnergyInputRatioFunctionofTemperatureCurve(const Curve& curve) {
292
2/2
✓ Branch 1 taken 32 times.
✓ Branch 4 taken 32 times.
32 bool result = setPointer(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::EnergyInputRatioFunctionofTemperatureCurve, curve.handle());
293 32 return result;
294 }
295
296 32 bool CoilCoolingDXMultiSpeedStageData_Impl::setEnergyInputRatioFunctionofFlowFractionCurve(const Curve& curve) {
297
2/2
✓ Branch 1 taken 32 times.
✓ Branch 4 taken 32 times.
32 bool result = setPointer(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::EnergyInputRatioFunctionofFlowFractionCurve, curve.handle());
298 32 return result;
299 }
300
301 32 bool CoilCoolingDXMultiSpeedStageData_Impl::setPartLoadFractionCorrelationCurve(const Curve& curve) {
302
2/2
✓ Branch 1 taken 32 times.
✓ Branch 4 taken 32 times.
32 bool result = setPointer(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::PartLoadFractionCorrelationCurve, curve.handle());
303 32 return result;
304 }
305
306 33 bool CoilCoolingDXMultiSpeedStageData_Impl::setNominalTimeforCondensateRemovaltoBegin(double nominalTimeforCondensateRemovaltoBegin) {
307 bool result =
308 33 setDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::NominalTimeforCondensateRemovaltoBegin, nominalTimeforCondensateRemovaltoBegin);
309 33 return result;
310 }
311
312 33 bool CoilCoolingDXMultiSpeedStageData_Impl::setRatioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity(
313 double ratioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity) {
314 33 bool result = setDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::RatioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity,
315 ratioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity);
316 33 return result;
317 }
318
319 33 bool CoilCoolingDXMultiSpeedStageData_Impl::setMaximumCyclingRate(double maximumCyclingRate) {
320 33 bool result = setDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::MaximumCyclingRate, maximumCyclingRate);
321 33 return result;
322 }
323
324 33 bool CoilCoolingDXMultiSpeedStageData_Impl::setLatentCapacityTimeConstant(double latentCapacityTimeConstant) {
325 33 bool result = setDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::LatentCapacityTimeConstant, latentCapacityTimeConstant);
326 33 return result;
327 }
328
329 33 bool CoilCoolingDXMultiSpeedStageData_Impl::setRatedWasteHeatFractionofPowerInput(double ratedWasteHeatFractionofPowerInput) {
330 33 bool result = setDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::RatedWasteHeatFractionofPowerInput, ratedWasteHeatFractionofPowerInput);
331 33 return result;
332 }
333
334 32 bool CoilCoolingDXMultiSpeedStageData_Impl::setWasteHeatFunctionofTemperatureCurve(const Curve& curve) {
335
2/2
✓ Branch 1 taken 32 times.
✓ Branch 4 taken 32 times.
32 bool result = setPointer(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::WasteHeatFunctionofTemperatureCurve, curve.handle());
336 32 return result;
337 }
338
339 33 bool CoilCoolingDXMultiSpeedStageData_Impl::setEvaporativeCondenserEffectiveness(double evaporativeCondenserEffectiveness) {
340 33 bool result = setDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::EvaporativeCondenserEffectiveness, evaporativeCondenserEffectiveness);
341 33 return result;
342 }
343
344 1 bool CoilCoolingDXMultiSpeedStageData_Impl::setEvaporativeCondenserAirFlowRate(boost::optional<double> evaporativeCondenserAirFlowRate) {
345 1 bool result(false);
346
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (evaporativeCondenserAirFlowRate) {
347 1 result = setDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::EvaporativeCondenserAirFlowRate, evaporativeCondenserAirFlowRate.get());
348 }
349 1 return result;
350 }
351
352 32 void CoilCoolingDXMultiSpeedStageData_Impl::autosizeEvaporativeCondenserAirFlowRate() {
353
2/2
✓ Branch 1 taken 32 times.
✓ Branch 4 taken 32 times.
64 bool result = setString(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::EvaporativeCondenserAirFlowRate, "autosize");
354
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 32 times.
32 OS_ASSERT(result);
355 32 }
356
357 1 bool CoilCoolingDXMultiSpeedStageData_Impl::setRatedEvaporativeCondenserPumpPowerConsumption(
358 boost::optional<double> ratedEvaporativeCondenserPumpPowerConsumption) {
359 1 bool result(false);
360
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (ratedEvaporativeCondenserPumpPowerConsumption) {
361 1 result = setDouble(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::RatedEvaporativeCondenserPumpPowerConsumption,
362 1 ratedEvaporativeCondenserPumpPowerConsumption.get());
363 }
364 1 return result;
365 }
366
367 64 void CoilCoolingDXMultiSpeedStageData_Impl::autosizeRatedEvaporativeCondenserPumpPowerConsumption() {
368
2/2
✓ Branch 1 taken 64 times.
✓ Branch 4 taken 64 times.
128 bool result = setString(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::RatedEvaporativeCondenserPumpPowerConsumption, "autosize");
369
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 64 times.
64 OS_ASSERT(result);
370 64 }
371
372 25 boost::optional<Curve> CoilCoolingDXMultiSpeedStageData_Impl::optionalTotalCoolingCapacityFunctionofTemperatureCurve() const {
373
1/1
✓ Branch 1 taken 25 times.
50 return getObject<ModelObject>().getModelObjectTarget<Curve>(
374
1/1
✓ Branch 1 taken 25 times.
50 OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::TotalCoolingCapacityFunctionofTemperatureCurve);
375 }
376
377 21 boost::optional<Curve> CoilCoolingDXMultiSpeedStageData_Impl::optionalTotalCoolingCapacityFunctionofFlowFractionCurve() const {
378
1/1
✓ Branch 1 taken 21 times.
42 return getObject<ModelObject>().getModelObjectTarget<Curve>(
379
1/1
✓ Branch 1 taken 21 times.
42 OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::TotalCoolingCapacityFunctionofFlowFractionCurve);
380 }
381
382 21 boost::optional<Curve> CoilCoolingDXMultiSpeedStageData_Impl::optionalEnergyInputRatioFunctionofTemperatureCurve() const {
383
1/1
✓ Branch 1 taken 21 times.
42 return getObject<ModelObject>().getModelObjectTarget<Curve>(
384
1/1
✓ Branch 1 taken 21 times.
42 OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::EnergyInputRatioFunctionofTemperatureCurve);
385 }
386
387 21 boost::optional<Curve> CoilCoolingDXMultiSpeedStageData_Impl::optionalEnergyInputRatioFunctionofFlowFractionCurve() const {
388
1/1
✓ Branch 1 taken 21 times.
42 return getObject<ModelObject>().getModelObjectTarget<Curve>(
389
1/1
✓ Branch 1 taken 21 times.
42 OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::EnergyInputRatioFunctionofFlowFractionCurve);
390 }
391
392 21 boost::optional<Curve> CoilCoolingDXMultiSpeedStageData_Impl::optionalPartLoadFractionCorrelationCurve() const {
393
2/2
✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
21 return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_Coil_Cooling_DX_MultiSpeed_StageDataFields::PartLoadFractionCorrelationCurve);
394 }
395
396 1 std::vector<ModelObject> CoilCoolingDXMultiSpeedStageData_Impl::children() const {
397 1 std::vector<ModelObject> result;
398
399
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 result.push_back(totalCoolingCapacityFunctionofTemperatureCurve());
400
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 result.push_back(totalCoolingCapacityFunctionofFlowFractionCurve());
401
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 result.push_back(energyInputRatioFunctionofTemperatureCurve());
402
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 result.push_back(energyInputRatioFunctionofFlowFractionCurve());
403
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 result.push_back(partLoadFractionCorrelationCurve());
404
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 result.push_back(wasteHeatFunctionofTemperatureCurve());
405
406 1 return result;
407 ✗ }
408
409 4 ModelObject CoilCoolingDXMultiSpeedStageData_Impl::clone(Model model) const {
410
3/3
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
4 auto t_clone = ModelObject_Impl::clone(model).cast<CoilCoolingDXMultiSpeedStageData>();
411
412 8 return std::move(t_clone);
413 4 }
414
415 ✗ std::vector<IdfObject> CoilCoolingDXMultiSpeedStageData_Impl::remove() {
416 ✗ if (auto _coil = parentCoil()) {
417 ✗ _coil->removeStage(getObject<CoilCoolingDXMultiSpeedStageData>());
418 ✗ }
419 ✗ return ParentObject_Impl::remove();
420 }
421
422 45 boost::optional<CoilCoolingDXMultiSpeed> CoilCoolingDXMultiSpeedStageData_Impl::parentCoil() const {
423
3/3
✓ Branch 1 taken 45 times.
✓ Branch 4 taken 45 times.
✓ Branch 7 taken 45 times.
45 auto coils = getObject<ModelObject>().getModelObjectSources<CoilCoolingDXMultiSpeed>(CoilCoolingDXMultiSpeed::iddObjectType());
424 45 auto count = coils.size();
425
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 45 times.
45 if (count == 1) {
426 ✗ return coils[0];
427
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 45 times.
45 } else if (count > 1) {
428 ✗ LOG(Error, briefDescription() << " is referenced by more than one CoilCoolingDXMultiSpeed, returning the first");
429 ✗ return coils[0];
430 }
431 45 return boost::none;
432 45 }
433
434 ✗ boost::optional<std::tuple<int, CoilCoolingDXMultiSpeed>> CoilCoolingDXMultiSpeedStageData_Impl::stageIndexAndParentCoil() const {
435
436 ✗ boost::optional<std::tuple<int, CoilCoolingDXMultiSpeed>> result;
437
438 ✗ if (auto _coil = parentCoil()) {
439 ✗ result = std::make_tuple(_coil->stageIndex(getObject<CoilCoolingDXMultiSpeedStageData>()).get(), _coil.get());
440 } else {
441 ✗ LOG(Warn, name().get() + " was not found inside a CoilCoolingDXMultiSpeed in the model, cannot retrieve the autosized value.");
442 ✗ }
443
444 ✗ return result;
445 ✗ }
446
447 ✗ boost::optional<double> CoilCoolingDXMultiSpeedStageData_Impl::autosizedGrossRatedTotalCoolingCapacity() const {
448 ✗ auto indexAndNameOpt = stageIndexAndParentCoil();
449 ✗ boost::optional<double> result;
450 ✗ if (!indexAndNameOpt) {
451 ✗ return result;
452 }
453 ✗ auto indexAndName = indexAndNameOpt.get();
454 ✗ int index = std::get<0>(indexAndName);
455 ✗ CoilCoolingDXMultiSpeed parentCoil = std::get<1>(indexAndName);
456 ✗ std::string sqlField = "Design Size Speed " + std::to_string(index) + " Gross Rated Total Cooling Capacity";
457 ✗ return parentCoil.getAutosizedValue(sqlField, "W");
458 ✗ }
459
460 ✗ boost::optional<double> CoilCoolingDXMultiSpeedStageData_Impl::autosizedGrossRatedSensibleHeatRatio() const {
461 ✗ auto indexAndNameOpt = stageIndexAndParentCoil();
462 ✗ boost::optional<double> result;
463 ✗ if (!indexAndNameOpt) {
464 ✗ return result;
465 }
466 ✗ auto indexAndName = indexAndNameOpt.get();
467 ✗ int index = std::get<0>(indexAndName);
468 ✗ CoilCoolingDXMultiSpeed parentCoil = std::get<1>(indexAndName);
469 ✗ std::string sqlField = "Design Size Speed " + std::to_string(index) + " Rated Sensible Heat Ratio";
470
471 ✗ return parentCoil.getAutosizedValue(sqlField, "");
472 ✗ }
473
474 ✗ boost::optional<double> CoilCoolingDXMultiSpeedStageData_Impl::autosizedRatedAirFlowRate() const {
475 ✗ auto indexAndNameOpt = stageIndexAndParentCoil();
476 ✗ boost::optional<double> result;
477 ✗ if (!indexAndNameOpt) {
478 ✗ return result;
479 }
480 ✗ auto indexAndName = indexAndNameOpt.get();
481 ✗ int index = std::get<0>(indexAndName);
482 ✗ CoilCoolingDXMultiSpeed parentCoil = std::get<1>(indexAndName);
483 ✗ std::string sqlField = "Design Size Speed " + std::to_string(index) + " Rated Air Flow Rate";
484
485 ✗ return parentCoil.getAutosizedValue(sqlField, "m3/s");
486 ✗ }
487
488 ✗ boost::optional<double> CoilCoolingDXMultiSpeedStageData_Impl::autosizedEvaporativeCondenserAirFlowRate() const {
489 ✗ auto indexAndNameOpt = stageIndexAndParentCoil();
490 ✗ boost::optional<double> result;
491 ✗ if (!indexAndNameOpt) {
492 ✗ return result;
493 }
494 ✗ auto indexAndName = indexAndNameOpt.get();
495 ✗ int index = std::get<0>(indexAndName);
496 ✗ CoilCoolingDXMultiSpeed parentCoil = std::get<1>(indexAndName);
497 ✗ std::string sqlField = "Design Size Speed " + std::to_string(index) + " Evaporative Condenser Air Flow Rate";
498
499 ✗ return parentCoil.getAutosizedValue(sqlField, "m3/s");
500 ✗ }
501
502 ✗ boost::optional<double> CoilCoolingDXMultiSpeedStageData_Impl::autosizedRatedEvaporativeCondenserPumpPowerConsumption() const {
503 ✗ auto indexAndNameOpt = stageIndexAndParentCoil();
504 ✗ boost::optional<double> result;
505 ✗ if (!indexAndNameOpt) {
506 ✗ return result;
507 }
508 ✗ auto indexAndName = indexAndNameOpt.get();
509 ✗ int index = std::get<0>(indexAndName);
510 ✗ CoilCoolingDXMultiSpeed parentCoil = std::get<1>(indexAndName);
511 ✗ std::string sqlField = "Design Size Speed " + std::to_string(index) + " Rated Evaporative Condenser Pump Power Consumption";
512
513 ✗ return parentCoil.getAutosizedValue(sqlField, "W");
514 ✗ }
515
516 ✗ void CoilCoolingDXMultiSpeedStageData_Impl::autosize() {
517 ✗ autosizeGrossRatedTotalCoolingCapacity();
518 ✗ autosizeGrossRatedSensibleHeatRatio();
519 ✗ autosizeRatedAirFlowRate();
520 ✗ autosizeEvaporativeCondenserAirFlowRate();
521 ✗ autosizeRatedEvaporativeCondenserPumpPowerConsumption();
522 ✗ }
523
524 ✗ void CoilCoolingDXMultiSpeedStageData_Impl::applySizingValues() {
525 ✗ boost::optional<double> val;
526 ✗ val = autosizedGrossRatedTotalCoolingCapacity();
527 ✗ if (val) {
528 ✗ setGrossRatedTotalCoolingCapacity(val.get());
529 }
530
531 ✗ val = autosizedGrossRatedSensibleHeatRatio();
532 ✗ if (val) {
533 ✗ setGrossRatedSensibleHeatRatio(val.get());
534 }
535
536 ✗ val = autosizedRatedAirFlowRate();
537 ✗ if (val) {
538 ✗ setRatedAirFlowRate(val.get());
539 }
540
541 ✗ val = autosizedEvaporativeCondenserAirFlowRate();
542 ✗ if (val) {
543 ✗ setEvaporativeCondenserAirFlowRate(val.get());
544 }
545
546 ✗ val = autosizedRatedEvaporativeCondenserPumpPowerConsumption();
547 ✗ if (val) {
548 ✗ setRatedEvaporativeCondenserPumpPowerConsumption(val.get());
549 }
550 ✗ }
551
552 } // namespace detail
553
554 30 CoilCoolingDXMultiSpeedStageData::CoilCoolingDXMultiSpeedStageData(const Model& model)
555 30 : ParentObject(CoilCoolingDXMultiSpeedStageData::iddObjectType(), model) {
556
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 30 times.
✗ Branch 5 not taken.
30 OS_ASSERT(getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>());
557
558
1/1
✓ Branch 1 taken 30 times.
30 CurveBiquadratic coolingCapacityFunctionofTemperature(model);
559
1/1
✓ Branch 1 taken 30 times.
30 coolingCapacityFunctionofTemperature.setCoefficient1Constant(0.766956);
560
1/1
✓ Branch 1 taken 30 times.
30 coolingCapacityFunctionofTemperature.setCoefficient2x(0.0107756);
561
1/1
✓ Branch 1 taken 30 times.
30 coolingCapacityFunctionofTemperature.setCoefficient3xPOW2(-0.0000414703);
562
1/1
✓ Branch 1 taken 30 times.
30 coolingCapacityFunctionofTemperature.setCoefficient4y(0.00134961);
563
1/1
✓ Branch 1 taken 30 times.
30 coolingCapacityFunctionofTemperature.setCoefficient5yPOW2(-0.000261144);
564
1/1
✓ Branch 1 taken 30 times.
30 coolingCapacityFunctionofTemperature.setCoefficient6xTIMESY(0.000457488);
565
1/1
✓ Branch 1 taken 30 times.
30 coolingCapacityFunctionofTemperature.setMinimumValueofx(17.0);
566
1/1
✓ Branch 1 taken 30 times.
30 coolingCapacityFunctionofTemperature.setMaximumValueofx(22.0);
567
1/1
✓ Branch 1 taken 30 times.
30 coolingCapacityFunctionofTemperature.setMinimumValueofy(13.0);
568
1/1
✓ Branch 1 taken 30 times.
30 coolingCapacityFunctionofTemperature.setMaximumValueofy(46.0);
569
570
1/1
✓ Branch 1 taken 30 times.
30 CurveQuadratic coolingCapacityFuncionofFlowFraction(model);
571
1/1
✓ Branch 1 taken 30 times.
30 coolingCapacityFuncionofFlowFraction.setCoefficient1Constant(0.8);
572
1/1
✓ Branch 1 taken 30 times.
30 coolingCapacityFuncionofFlowFraction.setCoefficient2x(0.2);
573
1/1
✓ Branch 1 taken 30 times.
30 coolingCapacityFuncionofFlowFraction.setCoefficient3xPOW2(0.0);
574
1/1
✓ Branch 1 taken 30 times.
30 coolingCapacityFuncionofFlowFraction.setMinimumValueofx(0.5);
575
1/1
✓ Branch 1 taken 30 times.
30 coolingCapacityFuncionofFlowFraction.setMaximumValueofx(1.5);
576
577
1/1
✓ Branch 1 taken 30 times.
30 CurveBiquadratic energyInputRatioFunctionofTemperature(model);
578
1/1
✓ Branch 1 taken 30 times.
30 energyInputRatioFunctionofTemperature.setCoefficient1Constant(0.297145);
579
1/1
✓ Branch 1 taken 30 times.
30 energyInputRatioFunctionofTemperature.setCoefficient2x(0.0430933);
580
1/1
✓ Branch 1 taken 30 times.
30 energyInputRatioFunctionofTemperature.setCoefficient3xPOW2(-0.000748766);
581
1/1
✓ Branch 1 taken 30 times.
30 energyInputRatioFunctionofTemperature.setCoefficient4y(0.00597727);
582
1/1
✓ Branch 1 taken 30 times.
30 energyInputRatioFunctionofTemperature.setCoefficient5yPOW2(0.000482112);
583
1/1
✓ Branch 1 taken 30 times.
30 energyInputRatioFunctionofTemperature.setCoefficient6xTIMESY(-0.000956448);
584
1/1
✓ Branch 1 taken 30 times.
30 energyInputRatioFunctionofTemperature.setMinimumValueofx(17.0);
585
1/1
✓ Branch 1 taken 30 times.
30 energyInputRatioFunctionofTemperature.setMaximumValueofx(22.0);
586
1/1
✓ Branch 1 taken 30 times.
30 energyInputRatioFunctionofTemperature.setMinimumValueofy(13.0);
587
1/1
✓ Branch 1 taken 30 times.
30 energyInputRatioFunctionofTemperature.setMaximumValueofy(46.0);
588
589
1/1
✓ Branch 1 taken 30 times.
30 CurveQuadratic energyInputRatioFunctionofFlowFraction(model);
590
1/1
✓ Branch 1 taken 30 times.
30 energyInputRatioFunctionofFlowFraction.setCoefficient1Constant(1.156);
591
1/1
✓ Branch 1 taken 30 times.
30 energyInputRatioFunctionofFlowFraction.setCoefficient2x(-0.1816);
592
1/1
✓ Branch 1 taken 30 times.
30 energyInputRatioFunctionofFlowFraction.setCoefficient3xPOW2(0.0256);
593
1/1
✓ Branch 1 taken 30 times.
30 energyInputRatioFunctionofFlowFraction.setMinimumValueofx(0.5);
594
1/1
✓ Branch 1 taken 30 times.
30 energyInputRatioFunctionofFlowFraction.setMaximumValueofx(1.5);
595
596
1/1
✓ Branch 1 taken 30 times.
30 CurveQuadratic partLoadFractionCorrelation(model);
597
1/1
✓ Branch 1 taken 30 times.
30 partLoadFractionCorrelation.setCoefficient1Constant(0.75);
598
1/1
✓ Branch 1 taken 30 times.
30 partLoadFractionCorrelation.setCoefficient2x(0.25);
599
1/1
✓ Branch 1 taken 30 times.
30 partLoadFractionCorrelation.setCoefficient3xPOW2(0.0);
600
1/1
✓ Branch 1 taken 30 times.
30 partLoadFractionCorrelation.setMinimumValueofx(0.0);
601
1/1
✓ Branch 1 taken 30 times.
30 partLoadFractionCorrelation.setMaximumValueofx(1.0);
602
603
1/1
✓ Branch 1 taken 30 times.
30 CurveBiquadratic wasteHeatFunctionofTemperature(model);
604
1/1
✓ Branch 1 taken 30 times.
30 wasteHeatFunctionofTemperature.setCoefficient1Constant(1);
605
1/1
✓ Branch 1 taken 30 times.
30 wasteHeatFunctionofTemperature.setCoefficient2x(0.0);
606
1/1
✓ Branch 1 taken 30 times.
30 wasteHeatFunctionofTemperature.setCoefficient3xPOW2(0.0);
607
1/1
✓ Branch 1 taken 30 times.
30 wasteHeatFunctionofTemperature.setCoefficient4y(0.0);
608
1/1
✓ Branch 1 taken 30 times.
30 wasteHeatFunctionofTemperature.setCoefficient5yPOW2(0.0);
609
1/1
✓ Branch 1 taken 30 times.
30 wasteHeatFunctionofTemperature.setCoefficient6xTIMESY(0.0);
610
1/1
✓ Branch 1 taken 30 times.
30 wasteHeatFunctionofTemperature.setMinimumValueofx(0.0);
611
1/1
✓ Branch 1 taken 30 times.
30 wasteHeatFunctionofTemperature.setMaximumValueofx(0.0);
612
1/1
✓ Branch 1 taken 30 times.
30 wasteHeatFunctionofTemperature.setMinimumValueofy(0.0);
613
1/1
✓ Branch 1 taken 30 times.
30 wasteHeatFunctionofTemperature.setMaximumValueofy(0.0);
614
615 30 bool ok = true;
616
1/1
✓ Branch 1 taken 30 times.
30 autosizeGrossRatedTotalCoolingCapacity();
617
1/1
✓ Branch 1 taken 30 times.
30 autosizeGrossRatedSensibleHeatRatio();
618
1/1
✓ Branch 1 taken 30 times.
30 ok = setGrossRatedCoolingCOP(3.0);
619
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 30 times.
✗ Branch 3 not taken.
30 OS_ASSERT(ok);
620
1/1
✓ Branch 1 taken 30 times.
30 autosizeRatedAirFlowRate();
621
1/1
✓ Branch 1 taken 30 times.
30 autosizeRatedEvaporativeCondenserPumpPowerConsumption();
622
1/1
✓ Branch 1 taken 30 times.
30 ok = setNominalTimeforCondensateRemovaltoBegin(0.0);
623
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 30 times.
✗ Branch 3 not taken.
30 OS_ASSERT(ok);
624
1/1
✓ Branch 1 taken 30 times.
30 ok = setRatioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity(0.0);
625
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 30 times.
✗ Branch 3 not taken.
30 OS_ASSERT(ok);
626
1/1
✓ Branch 1 taken 30 times.
30 ok = setMaximumCyclingRate(0.0);
627
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 30 times.
✗ Branch 3 not taken.
30 OS_ASSERT(ok);
628
1/1
✓ Branch 1 taken 30 times.
30 ok = setLatentCapacityTimeConstant(0.0);
629
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 30 times.
✗ Branch 3 not taken.
30 OS_ASSERT(ok);
630
1/1
✓ Branch 1 taken 30 times.
30 ok = setRatedWasteHeatFractionofPowerInput(0.5);
631
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 30 times.
✗ Branch 3 not taken.
30 OS_ASSERT(ok);
632
1/1
✓ Branch 1 taken 30 times.
30 ok = setEvaporativeCondenserEffectiveness(0.9);
633
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 30 times.
✗ Branch 3 not taken.
30 OS_ASSERT(ok);
634
1/1
✓ Branch 1 taken 30 times.
30 autosizeEvaporativeCondenserAirFlowRate();
635
1/1
✓ Branch 1 taken 30 times.
30 autosizeRatedEvaporativeCondenserPumpPowerConsumption();
636
1/1
✓ Branch 1 taken 30 times.
30 ok = setRatedEvaporatorFanPowerPerVolumeFlowRate2017(773.3);
637
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 30 times.
✗ Branch 3 not taken.
30 OS_ASSERT(ok);
638
1/1
✓ Branch 1 taken 30 times.
30 ok = setRatedEvaporatorFanPowerPerVolumeFlowRate2023(934.4);
639
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 30 times.
✗ Branch 3 not taken.
30 OS_ASSERT(ok);
640
1/1
✓ Branch 1 taken 30 times.
30 ok = setTotalCoolingCapacityFunctionofTemperatureCurve(coolingCapacityFunctionofTemperature);
641
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 30 times.
✗ Branch 3 not taken.
30 OS_ASSERT(ok);
642
1/1
✓ Branch 1 taken 30 times.
30 ok = setTotalCoolingCapacityFunctionofFlowFractionCurve(coolingCapacityFuncionofFlowFraction);
643
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 30 times.
✗ Branch 3 not taken.
30 OS_ASSERT(ok);
644
1/1
✓ Branch 1 taken 30 times.
30 ok = setEnergyInputRatioFunctionofTemperatureCurve(energyInputRatioFunctionofTemperature);
645
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 30 times.
✗ Branch 3 not taken.
30 OS_ASSERT(ok);
646
1/1
✓ Branch 1 taken 30 times.
30 ok = setEnergyInputRatioFunctionofFlowFractionCurve(energyInputRatioFunctionofFlowFraction);
647
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 30 times.
✗ Branch 3 not taken.
30 OS_ASSERT(ok);
648
1/1
✓ Branch 1 taken 30 times.
30 ok = setPartLoadFractionCorrelationCurve(partLoadFractionCorrelation);
649
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 30 times.
✗ Branch 3 not taken.
30 OS_ASSERT(ok);
650
1/1
✓ Branch 1 taken 30 times.
30 ok = setWasteHeatFunctionofTemperatureCurve(wasteHeatFunctionofTemperature);
651
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 30 times.
✗ Branch 3 not taken.
30 OS_ASSERT(ok);
652 30 }
653
654 2 CoilCoolingDXMultiSpeedStageData::CoilCoolingDXMultiSpeedStageData(const Model& model, Curve& coolingCapacityFunctionofTemperature,
655 Curve& coolingCapacityFuncionofFlowFraction,
656 Curve& energyInputRatioFunctionofTemperature,
657 Curve& energyInputRatioFunctionofFlowFraction,
658 2 Curve& partLoadFractionCorrelation, Curve& wasteHeatFunctionofTemperature)
659 2 : ParentObject(CoilCoolingDXMultiSpeedStageData::iddObjectType(), model) {
660
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 2 times.
✗ Branch 5 not taken.
2 OS_ASSERT(getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>());
661
662 2 bool ok = true;
663
1/1
✓ Branch 1 taken 2 times.
2 autosizeGrossRatedTotalCoolingCapacity();
664
1/1
✓ Branch 1 taken 2 times.
2 autosizeGrossRatedSensibleHeatRatio();
665
1/1
✓ Branch 1 taken 2 times.
2 ok = setGrossRatedCoolingCOP(3.0);
666
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
667
1/1
✓ Branch 1 taken 2 times.
2 autosizeRatedAirFlowRate();
668
1/1
✓ Branch 1 taken 2 times.
2 autosizeRatedEvaporativeCondenserPumpPowerConsumption();
669
1/1
✓ Branch 1 taken 2 times.
2 ok = setNominalTimeforCondensateRemovaltoBegin(0.0);
670
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
671
1/1
✓ Branch 1 taken 2 times.
2 ok = setRatioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity(0.0);
672
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
673
1/1
✓ Branch 1 taken 2 times.
2 ok = setMaximumCyclingRate(0.0);
674
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
675
1/1
✓ Branch 1 taken 2 times.
2 ok = setLatentCapacityTimeConstant(0.0);
676
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
677
1/1
✓ Branch 1 taken 2 times.
2 ok = setRatedWasteHeatFractionofPowerInput(0.5);
678
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
679
1/1
✓ Branch 1 taken 2 times.
2 ok = setEvaporativeCondenserEffectiveness(0.9);
680
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
681
1/1
✓ Branch 1 taken 2 times.
2 autosizeEvaporativeCondenserAirFlowRate();
682
1/1
✓ Branch 1 taken 2 times.
2 autosizeRatedEvaporativeCondenserPumpPowerConsumption();
683
1/1
✓ Branch 1 taken 2 times.
2 ok = setRatedEvaporatorFanPowerPerVolumeFlowRate2017(773.3);
684
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
685
1/1
✓ Branch 1 taken 2 times.
2 ok = setRatedEvaporatorFanPowerPerVolumeFlowRate2023(934.4);
686
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
687
1/1
✓ Branch 1 taken 2 times.
2 ok = setTotalCoolingCapacityFunctionofTemperatureCurve(coolingCapacityFunctionofTemperature);
688
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
689
1/1
✓ Branch 1 taken 2 times.
2 ok = setTotalCoolingCapacityFunctionofFlowFractionCurve(coolingCapacityFuncionofFlowFraction);
690
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
691
1/1
✓ Branch 1 taken 2 times.
2 ok = setEnergyInputRatioFunctionofTemperatureCurve(energyInputRatioFunctionofTemperature);
692
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
693
1/1
✓ Branch 1 taken 2 times.
2 ok = setEnergyInputRatioFunctionofFlowFractionCurve(energyInputRatioFunctionofFlowFraction);
694
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
695
1/1
✓ Branch 1 taken 2 times.
2 ok = setPartLoadFractionCorrelationCurve(partLoadFractionCorrelation);
696
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
697
1/1
✓ Branch 1 taken 2 times.
2 ok = setWasteHeatFunctionofTemperatureCurve(wasteHeatFunctionofTemperature);
698
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
699 2 }
700
701 7798 IddObjectType CoilCoolingDXMultiSpeedStageData::iddObjectType() {
702
1/1
✓ Branch 1 taken 7798 times.
7798 return {IddObjectType::OS_Coil_Cooling_DX_MultiSpeed_StageData};
703 }
704
705 2 boost::optional<double> CoilCoolingDXMultiSpeedStageData::grossRatedTotalCoolingCapacity() const {
706
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->grossRatedTotalCoolingCapacity();
707 }
708
709 20 bool CoilCoolingDXMultiSpeedStageData::isGrossRatedTotalCoolingCapacityAutosized() const {
710
1/1
✓ Branch 3 taken 20 times.
20 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->isGrossRatedTotalCoolingCapacityAutosized();
711 }
712
713 2 boost::optional<double> CoilCoolingDXMultiSpeedStageData::grossRatedSensibleHeatRatio() const {
714
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->grossRatedSensibleHeatRatio();
715 }
716
717 20 bool CoilCoolingDXMultiSpeedStageData::isGrossRatedSensibleHeatRatioAutosized() const {
718
1/1
✓ Branch 3 taken 20 times.
20 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->isGrossRatedSensibleHeatRatioAutosized();
719 }
720
721 20 double CoilCoolingDXMultiSpeedStageData::grossRatedCoolingCOP() const {
722
1/1
✓ Branch 3 taken 20 times.
20 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->grossRatedCoolingCOP();
723 }
724
725 16 boost::optional<double> CoilCoolingDXMultiSpeedStageData::ratedAirFlowRate() const {
726
1/1
✓ Branch 3 taken 16 times.
16 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->ratedAirFlowRate();
727 }
728
729 20 bool CoilCoolingDXMultiSpeedStageData::isRatedAirFlowRateAutosized() const {
730
1/1
✓ Branch 3 taken 20 times.
20 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->isRatedAirFlowRateAutosized();
731 }
732
733 20 double CoilCoolingDXMultiSpeedStageData::ratedEvaporatorFanPowerPerVolumeFlowRate2017() const {
734
1/1
✓ Branch 3 taken 20 times.
20 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->ratedEvaporatorFanPowerPerVolumeFlowRate2017();
735 }
736
737 20 double CoilCoolingDXMultiSpeedStageData::ratedEvaporatorFanPowerPerVolumeFlowRate2023() const {
738
1/1
✓ Branch 3 taken 20 times.
20 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->ratedEvaporatorFanPowerPerVolumeFlowRate2023();
739 }
740
741 24 Curve CoilCoolingDXMultiSpeedStageData::totalCoolingCapacityFunctionofTemperatureCurve() const {
742
1/1
✓ Branch 3 taken 24 times.
24 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->totalCoolingCapacityFunctionofTemperatureCurve();
743 }
744
745 20 Curve CoilCoolingDXMultiSpeedStageData::totalCoolingCapacityFunctionofFlowFractionCurve() const {
746
1/1
✓ Branch 3 taken 20 times.
20 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->totalCoolingCapacityFunctionofFlowFractionCurve();
747 }
748
749 20 Curve CoilCoolingDXMultiSpeedStageData::energyInputRatioFunctionofTemperatureCurve() const {
750
1/1
✓ Branch 3 taken 20 times.
20 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->energyInputRatioFunctionofTemperatureCurve();
751 }
752
753 20 Curve CoilCoolingDXMultiSpeedStageData::energyInputRatioFunctionofFlowFractionCurve() const {
754
1/1
✓ Branch 3 taken 20 times.
20 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->energyInputRatioFunctionofFlowFractionCurve();
755 }
756
757 20 Curve CoilCoolingDXMultiSpeedStageData::partLoadFractionCorrelationCurve() const {
758
1/1
✓ Branch 3 taken 20 times.
20 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->partLoadFractionCorrelationCurve();
759 }
760
761 20 double CoilCoolingDXMultiSpeedStageData::nominalTimeforCondensateRemovaltoBegin() const {
762
1/1
✓ Branch 3 taken 20 times.
20 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->nominalTimeforCondensateRemovaltoBegin();
763 }
764
765 20 double CoilCoolingDXMultiSpeedStageData::ratioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity() const {
766
1/1
✓ Branch 3 taken 20 times.
20 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->ratioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity();
767 }
768
769 20 double CoilCoolingDXMultiSpeedStageData::maximumCyclingRate() const {
770
1/1
✓ Branch 3 taken 20 times.
20 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->maximumCyclingRate();
771 }
772
773 20 double CoilCoolingDXMultiSpeedStageData::latentCapacityTimeConstant() const {
774
1/1
✓ Branch 3 taken 20 times.
20 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->latentCapacityTimeConstant();
775 }
776
777 20 double CoilCoolingDXMultiSpeedStageData::ratedWasteHeatFractionofPowerInput() const {
778
1/1
✓ Branch 3 taken 20 times.
20 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->ratedWasteHeatFractionofPowerInput();
779 }
780
781 20 Curve CoilCoolingDXMultiSpeedStageData::wasteHeatFunctionofTemperatureCurve() const {
782
1/1
✓ Branch 3 taken 20 times.
20 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->wasteHeatFunctionofTemperatureCurve();
783 }
784
785 20 double CoilCoolingDXMultiSpeedStageData::evaporativeCondenserEffectiveness() const {
786
1/1
✓ Branch 3 taken 20 times.
20 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->evaporativeCondenserEffectiveness();
787 }
788
789 2 boost::optional<double> CoilCoolingDXMultiSpeedStageData::evaporativeCondenserAirFlowRate() const {
790
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->evaporativeCondenserAirFlowRate();
791 }
792
793 20 bool CoilCoolingDXMultiSpeedStageData::isEvaporativeCondenserAirFlowRateAutosized() const {
794
1/1
✓ Branch 3 taken 20 times.
20 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->isEvaporativeCondenserAirFlowRateAutosized();
795 }
796
797 2 boost::optional<double> CoilCoolingDXMultiSpeedStageData::ratedEvaporativeCondenserPumpPowerConsumption() const {
798
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->ratedEvaporativeCondenserPumpPowerConsumption();
799 }
800
801 20 bool CoilCoolingDXMultiSpeedStageData::isRatedEvaporativeCondenserPumpPowerConsumptionAutosized() const {
802
1/1
✓ Branch 3 taken 20 times.
20 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->isRatedEvaporativeCondenserPumpPowerConsumptionAutosized();
803 }
804
805 1 bool CoilCoolingDXMultiSpeedStageData::setGrossRatedTotalCoolingCapacity(double grossRatedTotalCoolingCapacity) {
806
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->setGrossRatedTotalCoolingCapacity(grossRatedTotalCoolingCapacity);
807 }
808
809 32 void CoilCoolingDXMultiSpeedStageData::autosizeGrossRatedTotalCoolingCapacity() {
810
1/1
✓ Branch 3 taken 32 times.
32 getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->autosizeGrossRatedTotalCoolingCapacity();
811 32 }
812
813 1 bool CoilCoolingDXMultiSpeedStageData::setGrossRatedSensibleHeatRatio(double grossRatedSensibleHeatRatio) {
814
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->setGrossRatedSensibleHeatRatio(grossRatedSensibleHeatRatio);
815 }
816
817 32 void CoilCoolingDXMultiSpeedStageData::autosizeGrossRatedSensibleHeatRatio() {
818
1/1
✓ Branch 3 taken 32 times.
32 getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->autosizeGrossRatedSensibleHeatRatio();
819 32 }
820
821 33 bool CoilCoolingDXMultiSpeedStageData::setGrossRatedCoolingCOP(double grossRatedCoolingCOP) {
822
1/1
✓ Branch 3 taken 33 times.
33 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->setGrossRatedCoolingCOP(grossRatedCoolingCOP);
823 }
824
825 8 bool CoilCoolingDXMultiSpeedStageData::setRatedAirFlowRate(double ratedAirFlowRate) {
826
2/2
✓ Branch 3 taken 8 times.
✓ Branch 6 taken 8 times.
8 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->setRatedAirFlowRate(ratedAirFlowRate);
827 }
828
829 32 void CoilCoolingDXMultiSpeedStageData::autosizeRatedAirFlowRate() {
830
1/1
✓ Branch 3 taken 32 times.
32 getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->autosizeRatedAirFlowRate();
831 32 }
832
833 32 bool CoilCoolingDXMultiSpeedStageData::setRatedEvaporatorFanPowerPerVolumeFlowRate2017(double ratedEvaporatorFanPowerPerVolumeFlowRate2017) {
834
1/1
✓ Branch 3 taken 32 times.
64 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->setRatedEvaporatorFanPowerPerVolumeFlowRate2017(
835 64 ratedEvaporatorFanPowerPerVolumeFlowRate2017);
836 }
837
838 32 bool CoilCoolingDXMultiSpeedStageData::setRatedEvaporatorFanPowerPerVolumeFlowRate2023(double ratedEvaporatorFanPowerPerVolumeFlowRate2023) {
839
1/1
✓ Branch 3 taken 32 times.
64 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->setRatedEvaporatorFanPowerPerVolumeFlowRate2023(
840 64 ratedEvaporatorFanPowerPerVolumeFlowRate2023);
841 }
842
843 32 bool CoilCoolingDXMultiSpeedStageData::setTotalCoolingCapacityFunctionofTemperatureCurve(const Curve& curve) {
844
1/1
✓ Branch 3 taken 32 times.
32 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->setTotalCoolingCapacityFunctionofTemperatureCurve(curve);
845 }
846
847 32 bool CoilCoolingDXMultiSpeedStageData::setTotalCoolingCapacityFunctionofFlowFractionCurve(const Curve& curve) {
848
1/1
✓ Branch 3 taken 32 times.
32 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->setTotalCoolingCapacityFunctionofFlowFractionCurve(curve);
849 }
850
851 32 bool CoilCoolingDXMultiSpeedStageData::setEnergyInputRatioFunctionofTemperatureCurve(const Curve& curve) {
852
1/1
✓ Branch 3 taken 32 times.
32 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->setEnergyInputRatioFunctionofTemperatureCurve(curve);
853 }
854
855 32 bool CoilCoolingDXMultiSpeedStageData::setEnergyInputRatioFunctionofFlowFractionCurve(const Curve& curve) {
856
1/1
✓ Branch 3 taken 32 times.
32 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->setEnergyInputRatioFunctionofFlowFractionCurve(curve);
857 }
858
859 32 bool CoilCoolingDXMultiSpeedStageData::setPartLoadFractionCorrelationCurve(const Curve& curve) {
860
1/1
✓ Branch 3 taken 32 times.
32 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->setPartLoadFractionCorrelationCurve(curve);
861 }
862
863 33 bool CoilCoolingDXMultiSpeedStageData::setNominalTimeforCondensateRemovaltoBegin(double nominalTimeforCondensateRemovaltoBegin) {
864
1/1
✓ Branch 3 taken 33 times.
66 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->setNominalTimeforCondensateRemovaltoBegin(
865 66 nominalTimeforCondensateRemovaltoBegin);
866 }
867
868 33 bool CoilCoolingDXMultiSpeedStageData::setRatioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity(
869 double ratioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity) {
870
1/1
✓ Branch 3 taken 33 times.
66 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->setRatioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity(
871 66 ratioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity);
872 }
873
874 33 bool CoilCoolingDXMultiSpeedStageData::setMaximumCyclingRate(double maximumCyclingRate) {
875
1/1
✓ Branch 3 taken 33 times.
33 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->setMaximumCyclingRate(maximumCyclingRate);
876 }
877
878 33 bool CoilCoolingDXMultiSpeedStageData::setLatentCapacityTimeConstant(double latentCapacityTimeConstant) {
879
1/1
✓ Branch 3 taken 33 times.
33 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->setLatentCapacityTimeConstant(latentCapacityTimeConstant);
880 }
881
882 33 bool CoilCoolingDXMultiSpeedStageData::setRatedWasteHeatFractionofPowerInput(double ratedWasteHeatFractionofPowerInput) {
883
1/1
✓ Branch 3 taken 33 times.
33 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->setRatedWasteHeatFractionofPowerInput(ratedWasteHeatFractionofPowerInput);
884 }
885
886 32 bool CoilCoolingDXMultiSpeedStageData::setWasteHeatFunctionofTemperatureCurve(const Curve& curve) {
887
1/1
✓ Branch 3 taken 32 times.
32 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->setWasteHeatFunctionofTemperatureCurve(curve);
888 }
889
890 33 bool CoilCoolingDXMultiSpeedStageData::setEvaporativeCondenserEffectiveness(double evaporativeCondenserEffectiveness) {
891
1/1
✓ Branch 3 taken 33 times.
33 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->setEvaporativeCondenserEffectiveness(evaporativeCondenserEffectiveness);
892 }
893
894 1 bool CoilCoolingDXMultiSpeedStageData::setEvaporativeCondenserAirFlowRate(double evaporativeCondenserAirFlowRate) {
895
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->setEvaporativeCondenserAirFlowRate(evaporativeCondenserAirFlowRate);
896 }
897
898 32 void CoilCoolingDXMultiSpeedStageData::autosizeEvaporativeCondenserAirFlowRate() {
899
1/1
✓ Branch 3 taken 32 times.
32 getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->autosizeEvaporativeCondenserAirFlowRate();
900 32 }
901
902 1 bool CoilCoolingDXMultiSpeedStageData::setRatedEvaporativeCondenserPumpPowerConsumption(double ratedEvaporativeCondenserPumpPowerConsumption) {
903
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
2 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->setRatedEvaporativeCondenserPumpPowerConsumption(
904 2 ratedEvaporativeCondenserPumpPowerConsumption);
905 }
906
907 64 void CoilCoolingDXMultiSpeedStageData::autosizeRatedEvaporativeCondenserPumpPowerConsumption() {
908
1/1
✓ Branch 3 taken 64 times.
64 getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->autosizeRatedEvaporativeCondenserPumpPowerConsumption();
909 64 }
910
911 ✗ boost::optional<double> CoilCoolingDXMultiSpeedStageData::autosizedGrossRatedTotalCoolingCapacity() const {
912 ✗ return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->autosizedGrossRatedTotalCoolingCapacity();
913 }
914
915 ✗ boost::optional<double> CoilCoolingDXMultiSpeedStageData::autosizedGrossRatedSensibleHeatRatio() const {
916 ✗ return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->autosizedGrossRatedSensibleHeatRatio();
917 }
918
919 ✗ boost::optional<double> CoilCoolingDXMultiSpeedStageData::autosizedRatedAirFlowRate() const {
920 ✗ return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->autosizedRatedAirFlowRate();
921 }
922
923 ✗ boost::optional<double> CoilCoolingDXMultiSpeedStageData::autosizedEvaporativeCondenserAirFlowRate() const {
924 ✗ return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->autosizedEvaporativeCondenserAirFlowRate();
925 }
926
927 ✗ boost::optional<double> CoilCoolingDXMultiSpeedStageData::autosizedRatedEvaporativeCondenserPumpPowerConsumption() const {
928 ✗ return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->autosizedRatedEvaporativeCondenserPumpPowerConsumption();
929 }
930
931 ✗ void CoilCoolingDXMultiSpeedStageData::autosize() {
932 ✗ return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->autosize();
933 }
934
935 ✗ void CoilCoolingDXMultiSpeedStageData::applySizingValues() {
936 ✗ return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->applySizingValues();
937 }
938
939 45 boost::optional<CoilCoolingDXMultiSpeed> CoilCoolingDXMultiSpeedStageData::parentCoil() const {
940
1/1
✓ Branch 3 taken 45 times.
45 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->parentCoil();
941 }
942
943 ✗ boost::optional<std::tuple<int, CoilCoolingDXMultiSpeed>> CoilCoolingDXMultiSpeedStageData::stageIndexAndParentCoil() const {
944 ✗ return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->stageIndexAndParentCoil();
945 }
946
947 /// @cond
948 150 CoilCoolingDXMultiSpeedStageData::CoilCoolingDXMultiSpeedStageData(std::shared_ptr<detail::CoilCoolingDXMultiSpeedStageData_Impl> impl)
949
1/1
✓ Branch 3 taken 150 times.
150 : ParentObject(std::move(impl)) {}
950
951 // DEPRECATED
952 ✗ double CoilCoolingDXMultiSpeedStageData::ratedEvaporatorFanPowerPerVolumeFlowRate() const {
953 ✗ DEPRECATED_AT_MSG(3, 5, 0, "Use ratedEvaporatorFanPowerPerVolumeFlowRate2017 instead.");
954 ✗ return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->ratedEvaporatorFanPowerPerVolumeFlowRate2017();
955 }
956
957 1 bool CoilCoolingDXMultiSpeedStageData::setRatedEvaporatorFanPowerPerVolumeFlowRate(double ratedEvaporatorFanPowerPerVolumeFlowRate) {
958
5/5
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
4 DEPRECATED_AT_MSG(3, 5, 0, "Use setRatedEvaporatorFanPowerPerVolumeFlowRate2017 instead.");
959
1/1
✓ Branch 3 taken 1 time.
2 return getImpl<detail::CoilCoolingDXMultiSpeedStageData_Impl>()->setRatedEvaporatorFanPowerPerVolumeFlowRate2017(
960 2 ratedEvaporatorFanPowerPerVolumeFlowRate);
961 }
962
963 /// @endcond
964
965 } // namespace model
966 } // namespace openstudio
967