GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 82.1% 340 / 0 / 414
Functions: 84.1% 74 / 0 / 88
Branches: 49.8% 246 / 0 / 494

src/model/CoilHeatingDXMultiSpeedStageData.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 "CoilHeatingDXMultiSpeedStageData.hpp"
7 #include "CoilHeatingDXMultiSpeedStageData_Impl.hpp"
8 #include "Curve.hpp"
9 #include "Curve_Impl.hpp"
10 #include "Model.hpp"
11 #include "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/CoilHeatingDXMultiSpeed.hpp"
17 #include "../model/CoilHeatingDXMultiSpeed_Impl.hpp"
18 #include <utilities/idd/OS_Coil_Heating_DX_MultiSpeed_StageData_FieldEnums.hxx>
19 #include <utilities/idd/IddEnums.hxx>
20 #include "../utilities/units/Unit.hpp"
21 #include "../utilities/core/Assert.hpp"
22 #include "../utilities/core/DeprecatedHelpers.hpp"
23
24 namespace openstudio {
25 namespace model {
26
27 namespace detail {
28
29 39 CoilHeatingDXMultiSpeedStageData_Impl::CoilHeatingDXMultiSpeedStageData_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
30 39 : ParentObject_Impl(idfObject, model, keepHandle) {
31
4/6
✓ Branch 1 taken 39 times.
✓ Branch 4 taken 39 times.
✓ Branch 7 taken 39 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 39 times.
✗ Branch 13 not taken.
39 OS_ASSERT(idfObject.iddObject().type() == CoilHeatingDXMultiSpeedStageData::iddObjectType());
32 39 }
33
34 5 CoilHeatingDXMultiSpeedStageData_Impl::CoilHeatingDXMultiSpeedStageData_Impl(const openstudio::detail::WorkspaceObject_Impl& other,
35 5 Model_Impl* model, bool keepHandle)
36 5 : ParentObject_Impl(other, model, keepHandle) {
37
4/6
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 5 times.
✗ Branch 13 not taken.
5 OS_ASSERT(other.iddObject().type() == CoilHeatingDXMultiSpeedStageData::iddObjectType());
38 5 }
39
40 17 CoilHeatingDXMultiSpeedStageData_Impl::CoilHeatingDXMultiSpeedStageData_Impl(const CoilHeatingDXMultiSpeedStageData_Impl& other,
41 17 Model_Impl* model, bool keepHandle)
42 17 : ParentObject_Impl(other, model, keepHandle) {}
43
44 ✗ const std::vector<std::string>& CoilHeatingDXMultiSpeedStageData_Impl::outputVariableNames() const {
45 ✗ static const std::vector<std::string> result;
46 ✗ return result;
47 }
48
49 ✗ IddObjectType CoilHeatingDXMultiSpeedStageData_Impl::iddObjectType() const {
50 ✗ return CoilHeatingDXMultiSpeedStageData::iddObjectType();
51 }
52
53 2 boost::optional<double> CoilHeatingDXMultiSpeedStageData_Impl::grossRatedHeatingCapacity() const {
54 2 return getDouble(OS_Coil_Heating_DX_MultiSpeed_StageDataFields::GrossRatedHeatingCapacity, true);
55 }
56
57 19 bool CoilHeatingDXMultiSpeedStageData_Impl::isGrossRatedHeatingCapacityAutosized() const {
58 19 bool result = false;
59
1/1
✓ Branch 1 taken 19 times.
19 boost::optional<std::string> value = getString(OS_Coil_Heating_DX_MultiSpeed_StageDataFields::GrossRatedHeatingCapacity, true);
60
1/2
✓ Branch 0 taken 19 times.
✗ Branch 1 not taken.
19 if (value) {
61
3/3
✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
✓ Branch 7 taken 19 times.
38 result = openstudio::istringEqual(value.get(), "autosize");
62 }
63 19 return result;
64 19 }
65
66 19 double CoilHeatingDXMultiSpeedStageData_Impl::grossRatedHeatingCOP() const {
67
1/1
✓ Branch 1 taken 19 times.
19 boost::optional<double> value = getDouble(OS_Coil_Heating_DX_MultiSpeed_StageDataFields::GrossRatedHeatingCOP, true);
68
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 19 times.
✗ Branch 4 not taken.
19 OS_ASSERT(value);
69
1/1
✓ Branch 1 taken 19 times.
38 return value.get();
70 }
71
72 14 boost::optional<double> CoilHeatingDXMultiSpeedStageData_Impl::ratedAirFlowRate() const {
73 14 return getDouble(OS_Coil_Heating_DX_MultiSpeed_StageDataFields::RatedAirFlowRate, true);
74 }
75
76 19 bool CoilHeatingDXMultiSpeedStageData_Impl::isRatedAirFlowRateAutosized() const {
77 19 bool result = false;
78
1/1
✓ Branch 1 taken 19 times.
19 boost::optional<std::string> value = getString(OS_Coil_Heating_DX_MultiSpeed_StageDataFields::RatedAirFlowRate, true);
79
1/2
✓ Branch 0 taken 19 times.
✗ Branch 1 not taken.
19 if (value) {
80
3/3
✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
✓ Branch 7 taken 19 times.
38 result = openstudio::istringEqual(value.get(), "autosize");
81 }
82 19 return result;
83 19 }
84
85 21 double CoilHeatingDXMultiSpeedStageData_Impl::ratedSupplyAirFanPowerPerVolumeFlowRate2017() const {
86
1/1
✓ Branch 1 taken 21 times.
21 boost::optional<double> value = getDouble(OS_Coil_Heating_DX_MultiSpeed_StageDataFields::RatedSupplyAirFanPowerPerVolumeFlowRate2017, true);
87
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 21 times.
✗ Branch 4 not taken.
21 OS_ASSERT(value);
88
1/1
✓ Branch 1 taken 21 times.
42 return value.get();
89 }
90
91 21 double CoilHeatingDXMultiSpeedStageData_Impl::ratedSupplyAirFanPowerPerVolumeFlowRate2023() const {
92
1/1
✓ Branch 1 taken 21 times.
21 boost::optional<double> value = getDouble(OS_Coil_Heating_DX_MultiSpeed_StageDataFields::RatedSupplyAirFanPowerPerVolumeFlowRate2023, true);
93
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 21 times.
✗ Branch 4 not taken.
21 OS_ASSERT(value);
94
1/1
✓ Branch 1 taken 21 times.
42 return value.get();
95 }
96
97 25 Curve CoilHeatingDXMultiSpeedStageData_Impl::heatingCapacityFunctionofTemperatureCurve() const {
98
1/1
✓ Branch 1 taken 25 times.
25 boost::optional<Curve> value = optionalHeatingCapacityFunctionofTemperatureCurve();
99
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 25 times.
25 if (!value) {
100 ✗ LOG_AND_THROW(briefDescription() << " does not have an Heating Capacity Functionof Temperature Curve attached.");
101 }
102
2/2
✓ Branch 1 taken 25 times.
✓ Branch 4 taken 25 times.
50 return value.get();
103 25 }
104
105 21 Curve CoilHeatingDXMultiSpeedStageData_Impl::heatingCapacityFunctionofFlowFractionCurve() const {
106
1/1
✓ Branch 1 taken 21 times.
21 boost::optional<Curve> value = optionalHeatingCapacityFunctionofFlowFractionCurve();
107
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 21 times.
21 if (!value) {
108 ✗ LOG_AND_THROW(briefDescription() << " does not have an Heating Capacity Functionof Flow Fraction Curve attached.");
109 }
110
2/2
✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
42 return value.get();
111 21 }
112
113 21 Curve CoilHeatingDXMultiSpeedStageData_Impl::energyInputRatioFunctionofTemperatureCurve() const {
114
1/1
✓ Branch 1 taken 21 times.
21 boost::optional<Curve> value = optionalEnergyInputRatioFunctionofTemperatureCurve();
115
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 21 times.
21 if (!value) {
116 ✗ LOG_AND_THROW(briefDescription() << " does not have an Energy Input Ratio Functionof Temperature Curve attached.");
117 }
118
2/2
✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
42 return value.get();
119 21 }
120
121 21 Curve CoilHeatingDXMultiSpeedStageData_Impl::energyInputRatioFunctionofFlowFractionCurve() const {
122
1/1
✓ Branch 1 taken 21 times.
21 boost::optional<Curve> value = optionalEnergyInputRatioFunctionofFlowFractionCurve();
123
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 21 times.
21 if (!value) {
124 ✗ LOG_AND_THROW(briefDescription() << " does not have an Energy Input Ratio Functionof Flow Fraction Curve attached.");
125 }
126
2/2
✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
42 return value.get();
127 21 }
128
129 21 Curve CoilHeatingDXMultiSpeedStageData_Impl::partLoadFractionCorrelationCurve() const {
130
1/1
✓ Branch 1 taken 21 times.
21 boost::optional<Curve> value = optionalPartLoadFractionCorrelationCurve();
131
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 21 times.
21 if (!value) {
132 ✗ LOG_AND_THROW(briefDescription() << " does not have an Part Load Fraction Correlation Curve attached.");
133 }
134
2/2
✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
42 return value.get();
135 21 }
136
137 19 double CoilHeatingDXMultiSpeedStageData_Impl::ratedWasteHeatFractionofPowerInput() const {
138
1/1
✓ Branch 1 taken 19 times.
19 boost::optional<double> value = getDouble(OS_Coil_Heating_DX_MultiSpeed_StageDataFields::RatedWasteHeatFractionofPowerInput, true);
139
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 19 times.
✗ Branch 4 not taken.
19 OS_ASSERT(value);
140
1/1
✓ Branch 1 taken 19 times.
38 return value.get();
141 }
142
143 21 Curve CoilHeatingDXMultiSpeedStageData_Impl::wasteHeatFunctionofTemperatureCurve() const {
144
1/1
✓ Branch 1 taken 21 times.
21 boost::optional<Curve> value = optionalWasteHeatFunctionofTemperatureCurve();
145
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 21 times.
21 if (!value) {
146 ✗ LOG_AND_THROW(briefDescription() << " does not have an Waste Heat Functionof Temperature Curve attached.");
147 }
148
2/2
✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
42 return value.get();
149 21 }
150
151 1 bool CoilHeatingDXMultiSpeedStageData_Impl::setGrossRatedHeatingCapacity(boost::optional<double> grossRatedHeatingCapacity) {
152 1 bool result(false);
153
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (grossRatedHeatingCapacity) {
154 1 result = setDouble(OS_Coil_Heating_DX_MultiSpeed_StageDataFields::GrossRatedHeatingCapacity, grossRatedHeatingCapacity.get());
155 }
156 1 return result;
157 }
158
159 34 void CoilHeatingDXMultiSpeedStageData_Impl::autosizeGrossRatedHeatingCapacity() {
160
2/2
✓ Branch 1 taken 34 times.
✓ Branch 4 taken 34 times.
68 bool result = setString(OS_Coil_Heating_DX_MultiSpeed_StageDataFields::GrossRatedHeatingCapacity, "autosize");
161
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 34 times.
34 OS_ASSERT(result);
162 34 }
163
164 35 bool CoilHeatingDXMultiSpeedStageData_Impl::setGrossRatedHeatingCOP(double grossRatedHeatingCOP) {
165 35 bool result = setDouble(OS_Coil_Heating_DX_MultiSpeed_StageDataFields::GrossRatedHeatingCOP, grossRatedHeatingCOP);
166 35 return result;
167 }
168
169 7 bool CoilHeatingDXMultiSpeedStageData_Impl::setRatedAirFlowRate(boost::optional<double> ratedAirFlowRate) {
170 7 bool result(false);
171
1/2
✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
7 if (ratedAirFlowRate) {
172 7 result = setDouble(OS_Coil_Heating_DX_MultiSpeed_StageDataFields::RatedAirFlowRate, ratedAirFlowRate.get());
173 }
174 7 return result;
175 }
176
177 34 void CoilHeatingDXMultiSpeedStageData_Impl::autosizeRatedAirFlowRate() {
178
2/2
✓ Branch 1 taken 34 times.
✓ Branch 4 taken 34 times.
68 bool result = setString(OS_Coil_Heating_DX_MultiSpeed_StageDataFields::RatedAirFlowRate, "autosize");
179
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 34 times.
34 OS_ASSERT(result);
180 34 }
181
182 36 bool CoilHeatingDXMultiSpeedStageData_Impl::setRatedSupplyAirFanPowerPerVolumeFlowRate2017(double ratedSupplyAirFanPowerPerVolumeFlowRate2017) {
183 36 bool result = setDouble(OS_Coil_Heating_DX_MultiSpeed_StageDataFields::RatedSupplyAirFanPowerPerVolumeFlowRate2017,
184 ratedSupplyAirFanPowerPerVolumeFlowRate2017);
185 36 return result;
186 }
187
188 35 bool CoilHeatingDXMultiSpeedStageData_Impl::setRatedSupplyAirFanPowerPerVolumeFlowRate2023(double ratedSupplyAirFanPowerPerVolumeFlowRate2023) {
189 35 bool result = setDouble(OS_Coil_Heating_DX_MultiSpeed_StageDataFields::RatedSupplyAirFanPowerPerVolumeFlowRate2023,
190 ratedSupplyAirFanPowerPerVolumeFlowRate2023);
191 35 return result;
192 }
193
194 34 bool CoilHeatingDXMultiSpeedStageData_Impl::setHeatingCapacityFunctionofTemperatureCurve(const Curve& curve) {
195
2/2
✓ Branch 1 taken 34 times.
✓ Branch 4 taken 34 times.
34 bool result = setPointer(OS_Coil_Heating_DX_MultiSpeed_StageDataFields::HeatingCapacityFunctionofTemperatureCurveName, curve.handle());
196 34 return result;
197 }
198
199 34 bool CoilHeatingDXMultiSpeedStageData_Impl::setHeatingCapacityFunctionofFlowFractionCurve(const Curve& curve) {
200
2/2
✓ Branch 1 taken 34 times.
✓ Branch 4 taken 34 times.
34 bool result = setPointer(OS_Coil_Heating_DX_MultiSpeed_StageDataFields::HeatingCapacityFunctionofFlowFractionCurveName, curve.handle());
201 34 return result;
202 }
203
204 34 bool CoilHeatingDXMultiSpeedStageData_Impl::setEnergyInputRatioFunctionofTemperatureCurve(const Curve& curve) {
205
2/2
✓ Branch 1 taken 34 times.
✓ Branch 4 taken 34 times.
34 bool result = setPointer(OS_Coil_Heating_DX_MultiSpeed_StageDataFields::EnergyInputRatioFunctionofTemperatureCurveName, curve.handle());
206 34 return result;
207 }
208
209 34 bool CoilHeatingDXMultiSpeedStageData_Impl::setEnergyInputRatioFunctionofFlowFractionCurve(const Curve& curve) {
210
2/2
✓ Branch 1 taken 34 times.
✓ Branch 4 taken 34 times.
34 bool result = setPointer(OS_Coil_Heating_DX_MultiSpeed_StageDataFields::EnergyInputRatioFunctionofFlowFractionCurveName, curve.handle());
211 34 return result;
212 }
213
214 34 bool CoilHeatingDXMultiSpeedStageData_Impl::setPartLoadFractionCorrelationCurve(const Curve& curve) {
215
2/2
✓ Branch 1 taken 34 times.
✓ Branch 4 taken 34 times.
34 bool result = setPointer(OS_Coil_Heating_DX_MultiSpeed_StageDataFields::PartLoadFractionCorrelationCurveName, curve.handle());
216 34 return result;
217 }
218
219 35 bool CoilHeatingDXMultiSpeedStageData_Impl::setRatedWasteHeatFractionofPowerInput(double ratedWasteHeatFractionofPowerInput) {
220 35 bool result = setDouble(OS_Coil_Heating_DX_MultiSpeed_StageDataFields::RatedWasteHeatFractionofPowerInput, ratedWasteHeatFractionofPowerInput);
221 35 return result;
222 }
223
224 34 bool CoilHeatingDXMultiSpeedStageData_Impl::setWasteHeatFunctionofTemperatureCurve(const Curve& curve) {
225
2/2
✓ Branch 1 taken 34 times.
✓ Branch 4 taken 34 times.
34 bool result = setPointer(OS_Coil_Heating_DX_MultiSpeed_StageDataFields::WasteHeatFunctionofTemperatureCurveName, curve.handle());
226 34 return result;
227 }
228
229 25 boost::optional<Curve> CoilHeatingDXMultiSpeedStageData_Impl::optionalHeatingCapacityFunctionofTemperatureCurve() const {
230
1/1
✓ Branch 1 taken 25 times.
50 return getObject<ModelObject>().getModelObjectTarget<Curve>(
231
1/1
✓ Branch 1 taken 25 times.
50 OS_Coil_Heating_DX_MultiSpeed_StageDataFields::HeatingCapacityFunctionofTemperatureCurveName);
232 }
233
234 21 boost::optional<Curve> CoilHeatingDXMultiSpeedStageData_Impl::optionalHeatingCapacityFunctionofFlowFractionCurve() const {
235
1/1
✓ Branch 1 taken 21 times.
42 return getObject<ModelObject>().getModelObjectTarget<Curve>(
236
1/1
✓ Branch 1 taken 21 times.
42 OS_Coil_Heating_DX_MultiSpeed_StageDataFields::HeatingCapacityFunctionofFlowFractionCurveName);
237 }
238
239 21 boost::optional<Curve> CoilHeatingDXMultiSpeedStageData_Impl::optionalEnergyInputRatioFunctionofTemperatureCurve() const {
240
1/1
✓ Branch 1 taken 21 times.
42 return getObject<ModelObject>().getModelObjectTarget<Curve>(
241
1/1
✓ Branch 1 taken 21 times.
42 OS_Coil_Heating_DX_MultiSpeed_StageDataFields::EnergyInputRatioFunctionofTemperatureCurveName);
242 }
243
244 21 boost::optional<Curve> CoilHeatingDXMultiSpeedStageData_Impl::optionalEnergyInputRatioFunctionofFlowFractionCurve() const {
245
1/1
✓ Branch 1 taken 21 times.
42 return getObject<ModelObject>().getModelObjectTarget<Curve>(
246
1/1
✓ Branch 1 taken 21 times.
42 OS_Coil_Heating_DX_MultiSpeed_StageDataFields::EnergyInputRatioFunctionofFlowFractionCurveName);
247 }
248
249 21 boost::optional<Curve> CoilHeatingDXMultiSpeedStageData_Impl::optionalPartLoadFractionCorrelationCurve() const {
250
1/1
✓ Branch 1 taken 21 times.
42 return getObject<ModelObject>().getModelObjectTarget<Curve>(
251
1/1
✓ Branch 1 taken 21 times.
42 OS_Coil_Heating_DX_MultiSpeed_StageDataFields::PartLoadFractionCorrelationCurveName);
252 }
253
254 21 boost::optional<Curve> CoilHeatingDXMultiSpeedStageData_Impl::optionalWasteHeatFunctionofTemperatureCurve() const {
255
1/1
✓ Branch 1 taken 21 times.
42 return getObject<ModelObject>().getModelObjectTarget<Curve>(
256
1/1
✓ Branch 1 taken 21 times.
42 OS_Coil_Heating_DX_MultiSpeed_StageDataFields::WasteHeatFunctionofTemperatureCurveName);
257 }
258
259 2 std::vector<ModelObject> CoilHeatingDXMultiSpeedStageData_Impl::children() const {
260 2 std::vector<ModelObject> result;
261
262
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 result.push_back(heatingCapacityFunctionofTemperatureCurve());
263
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 result.push_back(heatingCapacityFunctionofFlowFractionCurve());
264
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 result.push_back(energyInputRatioFunctionofTemperatureCurve());
265
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 result.push_back(energyInputRatioFunctionofFlowFractionCurve());
266
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 result.push_back(partLoadFractionCorrelationCurve());
267
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 result.push_back(wasteHeatFunctionofTemperatureCurve());
268
269 2 return result;
270 ✗ }
271
272 ✗ ModelObject CoilHeatingDXMultiSpeedStageData_Impl::clone(Model model) const {
273 ✗ auto t_clone = ModelObject_Impl::clone(model).cast<CoilHeatingDXMultiSpeedStageData>();
274
275 ✗ return std::move(t_clone);
276 ✗ }
277
278 1 std::vector<IdfObject> CoilHeatingDXMultiSpeedStageData_Impl::remove() {
279
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
2 if (auto _coil = parentCoil()) {
280
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
1 _coil->removeStage(getObject<CoilHeatingDXMultiSpeedStageData>());
281 1 }
282 1 return ParentObject_Impl::remove();
283 }
284
285 46 boost::optional<CoilHeatingDXMultiSpeed> CoilHeatingDXMultiSpeedStageData_Impl::parentCoil() const {
286
3/3
✓ Branch 1 taken 46 times.
✓ Branch 4 taken 46 times.
✓ Branch 7 taken 46 times.
46 auto coils = getObject<ModelObject>().getModelObjectSources<CoilHeatingDXMultiSpeed>(CoilHeatingDXMultiSpeed::iddObjectType());
287 46 auto count = coils.size();
288
2/2
✓ Branch 0 taken 4 times.
✓ Branch 1 taken 42 times.
46 if (count == 1) {
289
1/1
✓ Branch 2 taken 4 times.
4 return coils[0];
290
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 42 times.
42 } else if (count > 1) {
291 ✗ LOG(Error, briefDescription() << " is referenced by more than one CoilHeatingDXMultiSpeed, returning the first");
292 ✗ return coils[0];
293 }
294 42 return boost::none;
295 46 }
296
297 ✗ boost::optional<std::tuple<int, CoilHeatingDXMultiSpeed>> CoilHeatingDXMultiSpeedStageData_Impl::stageIndexAndParentCoil() const {
298
299 ✗ boost::optional<std::tuple<int, CoilHeatingDXMultiSpeed>> result;
300
301 ✗ if (auto _coil = parentCoil()) {
302 ✗ result = std::make_tuple(_coil->stageIndex(getObject<CoilHeatingDXMultiSpeedStageData>()).get(), _coil.get());
303 } else {
304 ✗ LOG(Warn, name().get() + " was not found inside a CoilHeatingDXMultiSpeed in the model, cannot retrieve the autosized value.");
305 ✗ }
306
307 ✗ return result;
308 ✗ }
309
310 ✗ boost::optional<double> CoilHeatingDXMultiSpeedStageData_Impl::autosizedGrossRatedHeatingCapacity() const {
311 ✗ auto indexAndNameOpt = stageIndexAndParentCoil();
312 ✗ boost::optional<double> result;
313 ✗ if (!indexAndNameOpt) {
314 ✗ return result;
315 }
316 ✗ auto indexAndName = indexAndNameOpt.get();
317 ✗ int index = std::get<0>(indexAndName);
318 ✗ CoilHeatingDXMultiSpeed parentCoil = std::get<1>(indexAndName);
319 ✗ std::string sqlField = "Design Size Speed " + std::to_string(index) + " Gross Rated Heating Capacity";
320
321 ✗ return parentCoil.getAutosizedValue(sqlField, "W");
322 ✗ }
323
324 ✗ boost::optional<double> CoilHeatingDXMultiSpeedStageData_Impl::autosizedRatedAirFlowRate() const {
325 ✗ auto indexAndNameOpt = stageIndexAndParentCoil();
326 ✗ boost::optional<double> result;
327 ✗ if (!indexAndNameOpt) {
328 ✗ return result;
329 }
330 ✗ auto indexAndName = indexAndNameOpt.get();
331 ✗ int index = std::get<0>(indexAndName);
332 ✗ CoilHeatingDXMultiSpeed parentCoil = std::get<1>(indexAndName);
333 ✗ std::string sqlField = "Design Size Speed " + std::to_string(index) + " Rated Air Flow Rate";
334
335 ✗ return parentCoil.getAutosizedValue(sqlField, "m3/s");
336 ✗ }
337
338 ✗ void CoilHeatingDXMultiSpeedStageData_Impl::autosize() {
339 ✗ autosizeGrossRatedHeatingCapacity();
340 ✗ autosizeRatedAirFlowRate();
341 ✗ }
342
343 ✗ void CoilHeatingDXMultiSpeedStageData_Impl::applySizingValues() {
344 ✗ boost::optional<double> val;
345 ✗ val = autosizedGrossRatedHeatingCapacity();
346 ✗ if (val) {
347 ✗ setGrossRatedHeatingCapacity(val.get());
348 }
349
350 ✗ val = autosizedRatedAirFlowRate();
351 ✗ if (val) {
352 ✗ setRatedAirFlowRate(val.get());
353 }
354 ✗ }
355
356 } // namespace detail
357
358 32 CoilHeatingDXMultiSpeedStageData::CoilHeatingDXMultiSpeedStageData(const Model& model)
359 32 : ParentObject(CoilHeatingDXMultiSpeedStageData::iddObjectType(), model) {
360
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 32 times.
✗ Branch 5 not taken.
32 OS_ASSERT(getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>());
361
362
1/1
✓ Branch 1 taken 32 times.
32 CurveBiquadratic heating_curve_1(model);
363
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_1.setCoefficient1Constant(0.760523473);
364
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_1.setCoefficient2x(0.007531702);
365
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_1.setCoefficient3xPOW2(-0.000288398);
366
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_1.setCoefficient4y(0.021653033);
367
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_1.setCoefficient5yPOW2(3.29133E-05);
368
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_1.setCoefficient6xTIMESY(0.00014862);
369
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_1.setMinimumValueofx(18.33333);
370
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_1.setMaximumValueofx(23.88889);
371
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_1.setMinimumValueofy(-13.88889);
372
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_1.setMaximumValueofy(19.44444);
373
374
1/1
✓ Branch 1 taken 32 times.
32 CurveQuadratic heating_curve_2(model);
375
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_2.setCoefficient1Constant(0.752130847);
376
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_2.setCoefficient2x(0.437552514);
377
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_2.setCoefficient3xPOW2(-0.189683361);
378
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_2.setMinimumValueofx(0.7);
379
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_2.setMaximumValueofx(1.1);
380
381
1/1
✓ Branch 1 taken 32 times.
32 CurveBiquadratic heating_curve_3(model);
382
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_3.setCoefficient1Constant(0.750128109);
383
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_3.setCoefficient2x(0.002298944);
384
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_3.setCoefficient3xPOW2(0.000953927);
385
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_3.setCoefficient4y(-0.008327043);
386
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_3.setCoefficient5yPOW2(0.001016058);
387
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_3.setCoefficient6xTIMESY(-0.001433855);
388
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_3.setMinimumValueofx(18.33333);
389
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_3.setMaximumValueofx(23.88889);
390
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_3.setMinimumValueofy(-13.88889);
391
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_3.setMaximumValueofy(19.44444);
392
393
1/1
✓ Branch 1 taken 32 times.
32 CurveQuadratic heating_curve_4(model);
394
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_4.setCoefficient1Constant(1.853909301);
395
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_4.setCoefficient2x(-1.411203778);
396
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_4.setCoefficient3xPOW2(0.557294478);
397
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_4.setMinimumValueofx(0.7);
398
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_4.setMaximumValueofx(1.1);
399
400
1/1
✓ Branch 1 taken 32 times.
32 CurveQuadratic heating_curve_5(model);
401
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_5.setCoefficient1Constant(0.85);
402
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_5.setCoefficient2x(0.15);
403
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_5.setCoefficient3xPOW2(0.0);
404
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_5.setMinimumValueofx(0.0);
405
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_5.setMaximumValueofx(1.0);
406
407
1/1
✓ Branch 1 taken 32 times.
32 CurveBiquadratic heating_curve_6(model);
408
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_6.setCoefficient1Constant(1.0);
409
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_6.setCoefficient2x(0.0);
410
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_6.setCoefficient3xPOW2(0.0);
411
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_6.setCoefficient4y(0.0);
412
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_6.setCoefficient5yPOW2(0.0);
413
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_6.setCoefficient6xTIMESY(0.0);
414
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_6.setMinimumValueofx(0);
415
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_6.setMaximumValueofx(50);
416
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_6.setMinimumValueofy(0);
417
1/1
✓ Branch 1 taken 32 times.
32 heating_curve_6.setMaximumValueofy(50);
418
419 32 bool ok = true;
420
1/1
✓ Branch 1 taken 32 times.
32 autosizeGrossRatedHeatingCapacity();
421
1/1
✓ Branch 1 taken 32 times.
32 ok = setGrossRatedHeatingCOP(2.75);
422
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 32 times.
✗ Branch 3 not taken.
32 OS_ASSERT(ok);
423
1/1
✓ Branch 1 taken 32 times.
32 autosizeRatedAirFlowRate();
424
1/1
✓ Branch 1 taken 32 times.
32 ok = setRatedSupplyAirFanPowerPerVolumeFlowRate2017(773.3);
425
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 32 times.
✗ Branch 3 not taken.
32 OS_ASSERT(ok);
426
1/1
✓ Branch 1 taken 32 times.
32 ok = setRatedSupplyAirFanPowerPerVolumeFlowRate2023(934.4);
427
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 32 times.
✗ Branch 3 not taken.
32 OS_ASSERT(ok);
428
1/1
✓ Branch 1 taken 32 times.
32 ok = setHeatingCapacityFunctionofTemperatureCurve(heating_curve_1);
429
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 32 times.
✗ Branch 3 not taken.
32 OS_ASSERT(ok);
430
1/1
✓ Branch 1 taken 32 times.
32 ok = setHeatingCapacityFunctionofFlowFractionCurve(heating_curve_2);
431
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 32 times.
✗ Branch 3 not taken.
32 OS_ASSERT(ok);
432
1/1
✓ Branch 1 taken 32 times.
32 ok = setEnergyInputRatioFunctionofTemperatureCurve(heating_curve_3);
433
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 32 times.
✗ Branch 3 not taken.
32 OS_ASSERT(ok);
434
1/1
✓ Branch 1 taken 32 times.
32 ok = setEnergyInputRatioFunctionofFlowFractionCurve(heating_curve_4);
435
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 32 times.
✗ Branch 3 not taken.
32 OS_ASSERT(ok);
436
1/1
✓ Branch 1 taken 32 times.
32 ok = setPartLoadFractionCorrelationCurve(heating_curve_5);
437
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 32 times.
✗ Branch 3 not taken.
32 OS_ASSERT(ok);
438
1/1
✓ Branch 1 taken 32 times.
32 ok = setRatedWasteHeatFractionofPowerInput(0.2);
439
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 32 times.
✗ Branch 3 not taken.
32 OS_ASSERT(ok);
440
1/1
✓ Branch 1 taken 32 times.
32 ok = setWasteHeatFunctionofTemperatureCurve(heating_curve_6);
441
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 32 times.
✗ Branch 3 not taken.
32 OS_ASSERT(ok);
442 32 }
443
444 2 CoilHeatingDXMultiSpeedStageData::CoilHeatingDXMultiSpeedStageData(const Model& model, const Curve& heatingCapacityFunctionofTemperature,
445 const Curve& heatingCapacityFuncionofFlowFraction,
446 const Curve& energyInputRatioFunctionofTemperature,
447 const Curve& energyInputRatioFunctionofFlowFraction,
448 const Curve& partLoadFractionCorrelation,
449 2 const Curve& wasteHeatFunctionofTemperature)
450 2 : ParentObject(CoilHeatingDXMultiSpeedStageData::iddObjectType(), model) {
451
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 2 times.
✗ Branch 5 not taken.
2 OS_ASSERT(getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>());
452
453 2 bool ok = true;
454
1/1
✓ Branch 1 taken 2 times.
2 autosizeGrossRatedHeatingCapacity();
455
1/1
✓ Branch 1 taken 2 times.
2 ok = setGrossRatedHeatingCOP(2.75);
456
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
457
1/1
✓ Branch 1 taken 2 times.
2 autosizeRatedAirFlowRate();
458
1/1
✓ Branch 1 taken 2 times.
2 ok = setRatedSupplyAirFanPowerPerVolumeFlowRate2017(773.3);
459
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
460
1/1
✓ Branch 1 taken 2 times.
2 ok = setRatedSupplyAirFanPowerPerVolumeFlowRate2023(934.4);
461
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
462
1/1
✓ Branch 1 taken 2 times.
2 ok = setHeatingCapacityFunctionofTemperatureCurve(heatingCapacityFunctionofTemperature);
463
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
464
1/1
✓ Branch 1 taken 2 times.
2 ok = setHeatingCapacityFunctionofFlowFractionCurve(heatingCapacityFuncionofFlowFraction);
465
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
466
1/1
✓ Branch 1 taken 2 times.
2 ok = setEnergyInputRatioFunctionofTemperatureCurve(energyInputRatioFunctionofTemperature);
467
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
468
1/1
✓ Branch 1 taken 2 times.
2 ok = setEnergyInputRatioFunctionofFlowFractionCurve(energyInputRatioFunctionofFlowFraction);
469
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
470
1/1
✓ Branch 1 taken 2 times.
2 ok = setPartLoadFractionCorrelationCurve(partLoadFractionCorrelation);
471
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
472
1/1
✓ Branch 1 taken 2 times.
2 ok = setRatedWasteHeatFractionofPowerInput(0.2);
473
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
474
1/1
✓ Branch 1 taken 2 times.
2 ok = setWasteHeatFunctionofTemperatureCurve(wasteHeatFunctionofTemperature);
475
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
476 2 }
477
478 7679 IddObjectType CoilHeatingDXMultiSpeedStageData::iddObjectType() {
479
1/1
✓ Branch 1 taken 7679 times.
7679 return {IddObjectType::OS_Coil_Heating_DX_MultiSpeed_StageData};
480 }
481
482 2 boost::optional<double> CoilHeatingDXMultiSpeedStageData::grossRatedHeatingCapacity() const {
483
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->grossRatedHeatingCapacity();
484 }
485
486 19 bool CoilHeatingDXMultiSpeedStageData::isGrossRatedHeatingCapacityAutosized() const {
487
1/1
✓ Branch 3 taken 19 times.
19 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->isGrossRatedHeatingCapacityAutosized();
488 }
489
490 19 double CoilHeatingDXMultiSpeedStageData::grossRatedHeatingCOP() const {
491
1/1
✓ Branch 3 taken 19 times.
19 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->grossRatedHeatingCOP();
492 }
493
494 14 boost::optional<double> CoilHeatingDXMultiSpeedStageData::ratedAirFlowRate() const {
495
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->ratedAirFlowRate();
496 }
497
498 19 bool CoilHeatingDXMultiSpeedStageData::isRatedAirFlowRateAutosized() const {
499
1/1
✓ Branch 3 taken 19 times.
19 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->isRatedAirFlowRateAutosized();
500 }
501
502 21 double CoilHeatingDXMultiSpeedStageData::ratedSupplyAirFanPowerPerVolumeFlowRate2017() const {
503
1/1
✓ Branch 3 taken 21 times.
21 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->ratedSupplyAirFanPowerPerVolumeFlowRate2017();
504 }
505
506 21 double CoilHeatingDXMultiSpeedStageData::ratedSupplyAirFanPowerPerVolumeFlowRate2023() const {
507
1/1
✓ Branch 3 taken 21 times.
21 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->ratedSupplyAirFanPowerPerVolumeFlowRate2023();
508 }
509
510 23 Curve CoilHeatingDXMultiSpeedStageData::heatingCapacityFunctionofTemperatureCurve() const {
511
1/1
✓ Branch 3 taken 23 times.
23 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->heatingCapacityFunctionofTemperatureCurve();
512 }
513
514 19 Curve CoilHeatingDXMultiSpeedStageData::heatingCapacityFunctionofFlowFractionCurve() const {
515
1/1
✓ Branch 3 taken 19 times.
19 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->heatingCapacityFunctionofFlowFractionCurve();
516 }
517
518 19 Curve CoilHeatingDXMultiSpeedStageData::energyInputRatioFunctionofTemperatureCurve() const {
519
1/1
✓ Branch 3 taken 19 times.
19 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->energyInputRatioFunctionofTemperatureCurve();
520 }
521
522 19 Curve CoilHeatingDXMultiSpeedStageData::energyInputRatioFunctionofFlowFractionCurve() const {
523
1/1
✓ Branch 3 taken 19 times.
19 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->energyInputRatioFunctionofFlowFractionCurve();
524 }
525
526 19 Curve CoilHeatingDXMultiSpeedStageData::partLoadFractionCorrelationCurve() const {
527
1/1
✓ Branch 3 taken 19 times.
19 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->partLoadFractionCorrelationCurve();
528 }
529
530 19 double CoilHeatingDXMultiSpeedStageData::ratedWasteHeatFractionofPowerInput() const {
531
1/1
✓ Branch 3 taken 19 times.
19 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->ratedWasteHeatFractionofPowerInput();
532 }
533
534 19 Curve CoilHeatingDXMultiSpeedStageData::wasteHeatFunctionofTemperatureCurve() const {
535
1/1
✓ Branch 3 taken 19 times.
19 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->wasteHeatFunctionofTemperatureCurve();
536 }
537
538 1 bool CoilHeatingDXMultiSpeedStageData::setGrossRatedHeatingCapacity(double grossRatedHeatingCapacity) {
539
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->setGrossRatedHeatingCapacity(grossRatedHeatingCapacity);
540 }
541
542 34 void CoilHeatingDXMultiSpeedStageData::autosizeGrossRatedHeatingCapacity() {
543
1/1
✓ Branch 3 taken 34 times.
34 getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->autosizeGrossRatedHeatingCapacity();
544 34 }
545
546 35 bool CoilHeatingDXMultiSpeedStageData::setGrossRatedHeatingCOP(double grossRatedHeatingCOP) {
547
1/1
✓ Branch 3 taken 35 times.
35 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->setGrossRatedHeatingCOP(grossRatedHeatingCOP);
548 }
549
550 7 bool CoilHeatingDXMultiSpeedStageData::setRatedAirFlowRate(double ratedAirFlowRate) {
551
2/2
✓ Branch 3 taken 7 times.
✓ Branch 6 taken 7 times.
7 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->setRatedAirFlowRate(ratedAirFlowRate);
552 }
553
554 34 void CoilHeatingDXMultiSpeedStageData::autosizeRatedAirFlowRate() {
555
1/1
✓ Branch 3 taken 34 times.
34 getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->autosizeRatedAirFlowRate();
556 34 }
557
558 35 bool CoilHeatingDXMultiSpeedStageData::setRatedSupplyAirFanPowerPerVolumeFlowRate2017(double ratedSupplyAirFanPowerPerVolumeFlowRate2017) {
559
1/1
✓ Branch 3 taken 35 times.
70 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->setRatedSupplyAirFanPowerPerVolumeFlowRate2017(
560 70 ratedSupplyAirFanPowerPerVolumeFlowRate2017);
561 }
562
563 35 bool CoilHeatingDXMultiSpeedStageData::setRatedSupplyAirFanPowerPerVolumeFlowRate2023(double ratedSupplyAirFanPowerPerVolumeFlowRate2023) {
564
1/1
✓ Branch 3 taken 35 times.
70 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->setRatedSupplyAirFanPowerPerVolumeFlowRate2023(
565 70 ratedSupplyAirFanPowerPerVolumeFlowRate2023);
566 }
567
568 34 bool CoilHeatingDXMultiSpeedStageData::setHeatingCapacityFunctionofTemperatureCurve(const Curve& curve) {
569
1/1
✓ Branch 3 taken 34 times.
34 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->setHeatingCapacityFunctionofTemperatureCurve(curve);
570 }
571
572 34 bool CoilHeatingDXMultiSpeedStageData::setHeatingCapacityFunctionofFlowFractionCurve(const Curve& curve) {
573
1/1
✓ Branch 3 taken 34 times.
34 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->setHeatingCapacityFunctionofFlowFractionCurve(curve);
574 }
575
576 34 bool CoilHeatingDXMultiSpeedStageData::setEnergyInputRatioFunctionofTemperatureCurve(const Curve& curve) {
577
1/1
✓ Branch 3 taken 34 times.
34 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->setEnergyInputRatioFunctionofTemperatureCurve(curve);
578 }
579
580 34 bool CoilHeatingDXMultiSpeedStageData::setEnergyInputRatioFunctionofFlowFractionCurve(const Curve& curve) {
581
1/1
✓ Branch 3 taken 34 times.
34 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->setEnergyInputRatioFunctionofFlowFractionCurve(curve);
582 }
583
584 34 bool CoilHeatingDXMultiSpeedStageData::setPartLoadFractionCorrelationCurve(const Curve& curve) {
585
1/1
✓ Branch 3 taken 34 times.
34 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->setPartLoadFractionCorrelationCurve(curve);
586 }
587
588 35 bool CoilHeatingDXMultiSpeedStageData::setRatedWasteHeatFractionofPowerInput(double ratedWasteHeatFractionofPowerInput) {
589
1/1
✓ Branch 3 taken 35 times.
35 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->setRatedWasteHeatFractionofPowerInput(ratedWasteHeatFractionofPowerInput);
590 }
591
592 34 bool CoilHeatingDXMultiSpeedStageData::setWasteHeatFunctionofTemperatureCurve(const Curve& curve) {
593
1/1
✓ Branch 3 taken 34 times.
34 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->setWasteHeatFunctionofTemperatureCurve(curve);
594 }
595
596 ✗ boost::optional<double> CoilHeatingDXMultiSpeedStageData::autosizedGrossRatedHeatingCapacity() const {
597 ✗ return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->autosizedGrossRatedHeatingCapacity();
598 }
599
600 ✗ boost::optional<double> CoilHeatingDXMultiSpeedStageData::autosizedRatedAirFlowRate() const {
601 ✗ return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->autosizedRatedAirFlowRate();
602 }
603
604 ✗ void CoilHeatingDXMultiSpeedStageData::autosize() {
605 ✗ return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->autosize();
606 }
607
608 ✗ void CoilHeatingDXMultiSpeedStageData::applySizingValues() {
609 ✗ return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->applySizingValues();
610 }
611
612 45 boost::optional<CoilHeatingDXMultiSpeed> CoilHeatingDXMultiSpeedStageData::parentCoil() const {
613
1/1
✓ Branch 3 taken 45 times.
45 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->parentCoil();
614 }
615
616 ✗ boost::optional<std::tuple<int, CoilHeatingDXMultiSpeed>> CoilHeatingDXMultiSpeedStageData::stageIndexAndParentCoil() const {
617 ✗ return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->stageIndexAndParentCoil();
618 }
619
620 /// @cond
621 131 CoilHeatingDXMultiSpeedStageData::CoilHeatingDXMultiSpeedStageData(std::shared_ptr<detail::CoilHeatingDXMultiSpeedStageData_Impl> impl)
622
1/1
✓ Branch 3 taken 131 times.
131 : ParentObject(std::move(impl)) {}
623
624 // DEPRECATED
625 ✗ double CoilHeatingDXMultiSpeedStageData::ratedSupplyAirFanPowerPerVolumeFlowRate() const {
626 ✗ DEPRECATED_AT_MSG(3, 5, 0, "Use ratedSupplyAirFanPowerPerVolumeFlowRate2017 instead.");
627 ✗ return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->ratedSupplyAirFanPowerPerVolumeFlowRate2017();
628 }
629
630 1 bool CoilHeatingDXMultiSpeedStageData::setRatedSupplyAirFanPowerPerVolumeFlowRate(double ratedSupplyAirFanPowerPerVolumeFlowRate) {
631
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 setRatedSupplyAirFanPowerPerVolumeFlowRate2017 instead.");
632
1/1
✓ Branch 3 taken 1 time.
2 return getImpl<detail::CoilHeatingDXMultiSpeedStageData_Impl>()->setRatedSupplyAirFanPowerPerVolumeFlowRate2017(
633 2 ratedSupplyAirFanPowerPerVolumeFlowRate);
634 }
635 /// @endcond
636
637 } // namespace model
638 } // namespace openstudio
639