GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 84.9% 304 / 0 / 358
Functions: 92.9% 65 / 0 / 70
Branches: 46.4% 204 / 0 / 440

src/model/CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData.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 "CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData.hpp"
7 #include "CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl.hpp"
8
9 #include "Curve.hpp"
10 #include "Curve_Impl.hpp"
11 #include "Model.hpp"
12 #include "Model_Impl.hpp"
13 #include "CurveBiquadratic.hpp"
14 #include "CurveQuadratic.hpp"
15
16 #include <utilities/idd/OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedData_FieldEnums.hxx>
17
18 #include <utilities/idd/IddEnums.hxx>
19 #include "../utilities/units/Unit.hpp"
20 #include "../utilities/core/Assert.hpp"
21
22 namespace openstudio {
23 namespace model {
24
25 namespace detail {
26
27 14 CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl(
28 14 const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
29 14 : ParentObject_Impl(idfObject, model, keepHandle) {
30
4/6
✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
✓ Branch 7 taken 14 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 14 times.
✗ Branch 13 not taken.
14 OS_ASSERT(idfObject.iddObject().type() == CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::iddObjectType());
31 14 }
32
33 ✗ CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl(
34 ✗ const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle)
35 ✗ : ParentObject_Impl(other, model, keepHandle) {
36 ✗ OS_ASSERT(other.iddObject().type() == CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::iddObjectType());
37 ✗ }
38
39 12 CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl(
40 12 const CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl& other, Model_Impl* model, bool keepHandle)
41 12 : ParentObject_Impl(other, model, keepHandle) {}
42
43 ✗ const std::vector<std::string>& CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::outputVariableNames() const {
44 ✗ static const std::vector<std::string> result;
45 ✗ return result;
46 }
47
48 ✗ IddObjectType CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::iddObjectType() const {
49 ✗ return CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::iddObjectType();
50 }
51
52 14 double CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::referenceUnitGrossRatedTotalCoolingCapacity() const {
53 boost::optional<double> value =
54
1/1
✓ Branch 1 taken 14 times.
14 getDouble(OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::ReferenceUnitGrossRatedTotalCoolingCapacity, true);
55
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 14 times.
✗ Branch 4 not taken.
14 OS_ASSERT(value);
56
1/1
✓ Branch 1 taken 14 times.
28 return value.get();
57 }
58
59 14 double CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::referenceUnitGrossRatedSensibleHeatRatio() const {
60 boost::optional<double> value =
61
1/1
✓ Branch 1 taken 14 times.
14 getDouble(OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::ReferenceUnitGrossRatedSensibleHeatRatio, true);
62
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 14 times.
✗ Branch 4 not taken.
14 OS_ASSERT(value);
63
1/1
✓ Branch 1 taken 14 times.
28 return value.get();
64 }
65
66 14 double CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::referenceUnitGrossRatedCoolingCOP() const {
67 boost::optional<double> value =
68
1/1
✓ Branch 1 taken 14 times.
14 getDouble(OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::ReferenceUnitGrossRatedCoolingCOP, true);
69
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 14 times.
✗ Branch 4 not taken.
14 OS_ASSERT(value);
70
1/1
✓ Branch 1 taken 14 times.
28 return value.get();
71 }
72
73 26 double CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::referenceUnitRatedAirFlowRate() const {
74 boost::optional<double> value =
75
1/1
✓ Branch 1 taken 26 times.
26 getDouble(OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::ReferenceUnitRatedAirFlowRate, true);
76
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 26 times.
✗ Branch 4 not taken.
26 OS_ASSERT(value);
77
1/1
✓ Branch 1 taken 26 times.
52 return value.get();
78 }
79
80 14 double CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::referenceUnitRatedWaterFlowRate() const {
81 boost::optional<double> value =
82
1/1
✓ Branch 1 taken 14 times.
14 getDouble(OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::ReferenceUnitRatedWaterFlowRate, true);
83
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 14 times.
✗ Branch 4 not taken.
14 OS_ASSERT(value);
84
1/1
✓ Branch 1 taken 14 times.
28 return value.get();
85 }
86
87 17 Curve CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::totalCoolingCapacityFunctionofTemperatureCurve() const {
88
1/1
✓ Branch 1 taken 17 times.
17 boost::optional<Curve> value = optionalTotalCoolingCapacityFunctionofTemperatureCurve();
89
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 17 times.
17 if (!value) {
90 ✗ LOG_AND_THROW(briefDescription() << " does not have an Total Cooling Capacity Functionof Temperature Curve attached.");
91 }
92
2/2
✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
34 return value.get();
93 17 }
94
95 17 Curve CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::totalCoolingCapacityFunctionofAirFlowFractionCurve() const {
96
1/1
✓ Branch 1 taken 17 times.
17 boost::optional<Curve> value = optionalTotalCoolingCapacityFunctionofAirFlowFractionCurve();
97
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 17 times.
17 if (!value) {
98 ✗ LOG_AND_THROW(briefDescription() << " does not have an Total Cooling Capacity Functionof Air Flow Fraction Curve attached.");
99 }
100
2/2
✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
34 return value.get();
101 17 }
102
103 17 Curve CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::totalCoolingCapacityFunctionofWaterFlowFractionCurve() const {
104
1/1
✓ Branch 1 taken 17 times.
17 boost::optional<Curve> value = optionalTotalCoolingCapacityFunctionofWaterFlowFractionCurve();
105
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 17 times.
17 if (!value) {
106 ✗ LOG_AND_THROW(briefDescription() << " does not have an Total Cooling Capacity Functionof Water Flow Fraction Curve attached.");
107 }
108
2/2
✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
34 return value.get();
109 17 }
110
111 17 Curve CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::energyInputRatioFunctionofTemperatureCurve() const {
112
1/1
✓ Branch 1 taken 17 times.
17 boost::optional<Curve> value = optionalEnergyInputRatioFunctionofTemperatureCurve();
113
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 17 times.
17 if (!value) {
114 ✗ LOG_AND_THROW(briefDescription() << " does not have an Energy Input Ratio Functionof Temperature Curve attached.");
115 }
116
2/2
✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
34 return value.get();
117 17 }
118
119 17 Curve CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::energyInputRatioFunctionofAirFlowFractionCurve() const {
120
1/1
✓ Branch 1 taken 17 times.
17 boost::optional<Curve> value = optionalEnergyInputRatioFunctionofAirFlowFractionCurve();
121
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 17 times.
17 if (!value) {
122 ✗ LOG_AND_THROW(briefDescription() << " does not have an Energy Input Ratio Functionof Air Flow Fraction Curve attached.");
123 }
124
2/2
✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
34 return value.get();
125 17 }
126
127 17 Curve CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::energyInputRatioFunctionofWaterFlowFractionCurve() const {
128
1/1
✓ Branch 1 taken 17 times.
17 boost::optional<Curve> value = optionalEnergyInputRatioFunctionofWaterFlowFractionCurve();
129
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 17 times.
17 if (!value) {
130 ✗ LOG_AND_THROW(briefDescription() << " does not have an Energy Input Ratio Functionof Water Flow Fraction Curve attached.");
131 }
132
2/2
✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
34 return value.get();
133 17 }
134
135 14 double CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::referenceUnitWasteHeatFractionofInputPowerAtRatedConditions() const {
136
1/1
✓ Branch 1 taken 14 times.
14 boost::optional<double> value = getDouble(
137 OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::ReferenceUnitWasteHeatFractionofInputPowerAtRatedConditions,
138 true);
139
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 14 times.
✗ Branch 4 not taken.
14 OS_ASSERT(value);
140
1/1
✓ Branch 1 taken 14 times.
28 return value.get();
141 }
142
143 17 Curve CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::wasteHeatFunctionofTemperatureCurve() const {
144
1/1
✓ Branch 1 taken 17 times.
17 boost::optional<Curve> value = optionalWasteHeatFunctionofTemperatureCurve();
145
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 17 times.
17 if (!value) {
146 ✗ LOG_AND_THROW(briefDescription() << " does not have an Waste Heat Functionof Temperature Curve attached.");
147 }
148
2/2
✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
34 return value.get();
149 17 }
150
151 16 bool CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::setReferenceUnitGrossRatedTotalCoolingCapacity(
152 double referenceUnitGrossRatedTotalCoolingCapacity) {
153 bool result =
154 16 setDouble(OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::ReferenceUnitGrossRatedTotalCoolingCapacity,
155 referenceUnitGrossRatedTotalCoolingCapacity);
156 16 return result;
157 }
158
159 16 bool CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::setReferenceUnitGrossRatedSensibleHeatRatio(
160 double referenceUnitGrossRatedSensibleHeatRatio) {
161 16 bool result = setDouble(OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::ReferenceUnitGrossRatedSensibleHeatRatio,
162 referenceUnitGrossRatedSensibleHeatRatio);
163 16 return result;
164 }
165
166 16 bool CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::setReferenceUnitGrossRatedCoolingCOP(
167 double referenceUnitGrossRatedCoolingCOP) {
168 16 bool result = setDouble(OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::ReferenceUnitGrossRatedCoolingCOP,
169 referenceUnitGrossRatedCoolingCOP);
170 16 return result;
171 }
172
173 16 bool CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::setReferenceUnitRatedAirFlowRate(double referenceUnitRatedAirFlowRate) {
174 16 bool result = setDouble(OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::ReferenceUnitRatedAirFlowRate,
175 referenceUnitRatedAirFlowRate);
176 16 return result;
177 }
178
179 16 bool CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::setReferenceUnitRatedWaterFlowRate(
180 double referenceUnitRatedWaterFlowRate) {
181 16 bool result = setDouble(OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::ReferenceUnitRatedWaterFlowRate,
182 referenceUnitRatedWaterFlowRate);
183 16 return result;
184 }
185
186 14 bool CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::setTotalCoolingCapacityFunctionofTemperatureCurve(const Curve& curve) {
187 bool result =
188
1/1
✓ Branch 1 taken 14 times.
14 setPointer(OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::TotalCoolingCapacityFunctionofTemperatureCurveName,
189
1/1
✓ Branch 1 taken 14 times.
14 curve.handle());
190 14 return result;
191 }
192
193 bool
194 14 CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::setTotalCoolingCapacityFunctionofAirFlowFractionCurve(const Curve& curve) {
195
1/1
✓ Branch 1 taken 14 times.
14 bool result = setPointer(
196 OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::TotalCoolingCapacityFunctionofAirFlowFractionCurveName,
197
1/1
✓ Branch 1 taken 14 times.
14 curve.handle());
198 14 return result;
199 }
200
201 14 bool CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::setTotalCoolingCapacityFunctionofWaterFlowFractionCurve(
202 const Curve& curve) {
203
1/1
✓ Branch 1 taken 14 times.
14 bool result = setPointer(
204 OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::TotalCoolingCapacityFunctionofWaterFlowFractionCurveName,
205
1/1
✓ Branch 1 taken 14 times.
14 curve.handle());
206 14 return result;
207 }
208
209 14 bool CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::setEnergyInputRatioFunctionofTemperatureCurve(const Curve& curve) {
210
1/1
✓ Branch 1 taken 14 times.
14 bool result = setPointer(
211
1/1
✓ Branch 1 taken 14 times.
14 OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::EnergyInputRatioFunctionofTemperatureCurveName, curve.handle());
212 14 return result;
213 }
214
215 14 bool CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::setEnergyInputRatioFunctionofAirFlowFractionCurve(const Curve& curve) {
216 bool result =
217
1/1
✓ Branch 1 taken 14 times.
14 setPointer(OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::EnergyInputRatioFunctionofAirFlowFractionCurveName,
218
1/1
✓ Branch 1 taken 14 times.
14 curve.handle());
219 14 return result;
220 }
221
222 bool
223 14 CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::setEnergyInputRatioFunctionofWaterFlowFractionCurve(const Curve& curve) {
224 bool result =
225
1/1
✓ Branch 1 taken 14 times.
14 setPointer(OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::EnergyInputRatioFunctionofWaterFlowFractionCurveName,
226
1/1
✓ Branch 1 taken 14 times.
14 curve.handle());
227 14 return result;
228 }
229
230 16 bool CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::setReferenceUnitWasteHeatFractionofInputPowerAtRatedConditions(
231 double referenceUnitWasteHeatFractionofInputPowerAtRatedConditions) {
232 16 bool result = setDouble(
233 OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::ReferenceUnitWasteHeatFractionofInputPowerAtRatedConditions,
234 referenceUnitWasteHeatFractionofInputPowerAtRatedConditions);
235 16 return result;
236 }
237
238 14 bool CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::setWasteHeatFunctionofTemperatureCurve(const Curve& curve) {
239
1/1
✓ Branch 1 taken 14 times.
14 bool result = setPointer(OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::WasteHeatFunctionofTemperatureCurveName,
240
1/1
✓ Branch 1 taken 14 times.
14 curve.handle());
241 14 return result;
242 }
243
244 boost::optional<Curve>
245 17 CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::optionalTotalCoolingCapacityFunctionofTemperatureCurve() const {
246
1/1
✓ Branch 1 taken 17 times.
34 return getObject<ModelObject>().getModelObjectTarget<Curve>(
247
1/1
✓ Branch 1 taken 17 times.
34 OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::TotalCoolingCapacityFunctionofTemperatureCurveName);
248 }
249
250 boost::optional<Curve>
251 17 CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::optionalTotalCoolingCapacityFunctionofAirFlowFractionCurve() const {
252
1/1
✓ Branch 1 taken 17 times.
34 return getObject<ModelObject>().getModelObjectTarget<Curve>(
253
1/1
✓ Branch 1 taken 17 times.
34 OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::TotalCoolingCapacityFunctionofAirFlowFractionCurveName);
254 }
255
256 boost::optional<Curve>
257 17 CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::optionalTotalCoolingCapacityFunctionofWaterFlowFractionCurve() const {
258
1/1
✓ Branch 1 taken 17 times.
34 return getObject<ModelObject>().getModelObjectTarget<Curve>(
259
1/1
✓ Branch 1 taken 17 times.
34 OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::TotalCoolingCapacityFunctionofWaterFlowFractionCurveName);
260 }
261
262 boost::optional<Curve>
263 17 CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::optionalEnergyInputRatioFunctionofTemperatureCurve() const {
264
1/1
✓ Branch 1 taken 17 times.
34 return getObject<ModelObject>().getModelObjectTarget<Curve>(
265
1/1
✓ Branch 1 taken 17 times.
34 OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::EnergyInputRatioFunctionofTemperatureCurveName);
266 }
267
268 boost::optional<Curve>
269 17 CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::optionalEnergyInputRatioFunctionofAirFlowFractionCurve() const {
270
1/1
✓ Branch 1 taken 17 times.
34 return getObject<ModelObject>().getModelObjectTarget<Curve>(
271
1/1
✓ Branch 1 taken 17 times.
34 OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::EnergyInputRatioFunctionofAirFlowFractionCurveName);
272 }
273
274 boost::optional<Curve>
275 17 CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::optionalEnergyInputRatioFunctionofWaterFlowFractionCurve() const {
276
1/1
✓ Branch 1 taken 17 times.
34 return getObject<ModelObject>().getModelObjectTarget<Curve>(
277
1/1
✓ Branch 1 taken 17 times.
34 OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::EnergyInputRatioFunctionofWaterFlowFractionCurveName);
278 }
279
280 17 boost::optional<Curve> CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::optionalWasteHeatFunctionofTemperatureCurve() const {
281
1/1
✓ Branch 1 taken 17 times.
34 return getObject<ModelObject>().getModelObjectTarget<Curve>(
282
1/1
✓ Branch 1 taken 17 times.
34 OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::WasteHeatFunctionofTemperatureCurveName);
283 }
284
285 ✗ ModelObject CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::clone(Model model) const {
286 ✗ auto t_clone = ParentObject_Impl::clone(model).cast<CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData>();
287
288 ✗ return std::move(t_clone);
289 ✗ }
290
291 1 std::vector<ModelObject> CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::children() const {
292 1 std::vector<ModelObject> children;
293
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 children.push_back(totalCoolingCapacityFunctionofTemperatureCurve());
294
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 children.push_back(totalCoolingCapacityFunctionofAirFlowFractionCurve());
295
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 children.push_back(totalCoolingCapacityFunctionofWaterFlowFractionCurve());
296
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 children.push_back(energyInputRatioFunctionofTemperatureCurve());
297
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 children.push_back(energyInputRatioFunctionofAirFlowFractionCurve());
298
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 children.push_back(energyInputRatioFunctionofWaterFlowFractionCurve());
299
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 children.push_back(wasteHeatFunctionofTemperatureCurve());
300 1 return children;
301 ✗ }
302
303 } // namespace detail
304
305 14 CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData(const Model& model)
306 14 : ParentObject(CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::iddObjectType(), model) {
307
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 14 times.
✗ Branch 5 not taken.
14 OS_ASSERT(getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>());
308
309
1/1
✓ Branch 1 taken 14 times.
14 CurveBiquadratic cooling_curve_1(model);
310
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_1.setCoefficient1Constant(1.43085);
311
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_1.setCoefficient2x(-0.0453653);
312
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_1.setCoefficient3xPOW2(0.00199378);
313
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_1.setCoefficient4y(-0.00805944);
314
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_1.setCoefficient5yPOW2(3.93414E-05);
315
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_1.setCoefficient6xTIMESY(-1.81187E-04);
316
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_1.setMinimumValueofx(10.0);
317
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_1.setMaximumValueofx(25.6);
318
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_1.setMinimumValueofy(7.2);
319
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_1.setMaximumValueofy(48.9);
320
321
1/1
✓ Branch 1 taken 14 times.
14 CurveQuadratic cooling_curve_2(model);
322
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_2.setCoefficient1Constant(1.0);
323
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_2.setCoefficient2x(0.0);
324
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_2.setCoefficient3xPOW2(0.0);
325
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_2.setMinimumValueofx(0.0);
326
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_2.setMaximumValueofx(1.0);
327
328
1/1
✓ Branch 1 taken 14 times.
14 CurveQuadratic cooling_curve_3(model);
329
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_3.setCoefficient1Constant(1.0);
330
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_3.setCoefficient2x(0.0);
331
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_3.setCoefficient3xPOW2(0.0);
332
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_3.setMinimumValueofx(0.0);
333
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_3.setMaximumValueofx(1.0);
334
335
1/1
✓ Branch 1 taken 14 times.
14 CurveBiquadratic cooling_curve_4(model);
336
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_4.setCoefficient1Constant(0.138848);
337
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_4.setCoefficient2x(0.0457985);
338
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_4.setCoefficient3xPOW2(-0.00138661);
339
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_4.setCoefficient4y(0.0141485);
340
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_4.setCoefficient5yPOW2(0.000386055);
341
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_4.setCoefficient6xTIMESY(-4.38194E-04);
342
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_4.setMinimumValueofx(10.0);
343
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_4.setMaximumValueofx(25.6);
344
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_4.setMinimumValueofy(7.2);
345
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_4.setMaximumValueofy(48.9);
346
347
1/1
✓ Branch 1 taken 14 times.
14 CurveQuadratic cooling_curve_5(model);
348
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_5.setCoefficient1Constant(1.0);
349
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_5.setCoefficient2x(0.0);
350
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_5.setCoefficient3xPOW2(0.0);
351
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_5.setMinimumValueofx(0.0);
352
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_5.setMaximumValueofx(1.0);
353
354
1/1
✓ Branch 1 taken 14 times.
14 CurveQuadratic cooling_curve_6(model);
355
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_6.setCoefficient1Constant(1.0);
356
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_6.setCoefficient2x(0.0);
357
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_6.setCoefficient3xPOW2(0.0);
358
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_6.setMinimumValueofx(0.0);
359
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_6.setMaximumValueofx(1.0);
360
361
1/1
✓ Branch 1 taken 14 times.
14 CurveBiquadratic cooling_curve_7(model);
362
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_7.setCoefficient1Constant(1.0);
363
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_7.setCoefficient2x(0.0);
364
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_7.setCoefficient3xPOW2(0.0);
365
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_7.setCoefficient4y(0.0);
366
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_7.setCoefficient5yPOW2(0.0);
367
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_7.setCoefficient6xTIMESY(0.0);
368
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_7.setMinimumValueofx(10.0);
369
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_7.setMaximumValueofx(25.6);
370
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_7.setMinimumValueofy(7.2);
371
1/1
✓ Branch 1 taken 14 times.
14 cooling_curve_7.setMaximumValueofy(48.9);
372
373 14 bool ok = true;
374
1/1
✓ Branch 1 taken 14 times.
14 ok = setReferenceUnitGrossRatedTotalCoolingCapacity(1524.1);
375
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
14 OS_ASSERT(ok);
376
1/1
✓ Branch 1 taken 14 times.
14 ok = setReferenceUnitGrossRatedSensibleHeatRatio(0.75);
377
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
14 OS_ASSERT(ok);
378
1/1
✓ Branch 1 taken 14 times.
14 ok = setReferenceUnitGrossRatedCoolingCOP(4.0);
379
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
14 OS_ASSERT(ok);
380
1/1
✓ Branch 1 taken 14 times.
14 ok = setReferenceUnitRatedAirFlowRate(0.1359072);
381
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
14 OS_ASSERT(ok);
382
1/1
✓ Branch 1 taken 14 times.
14 ok = setReferenceUnitRatedWaterFlowRate(0.000381695);
383
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
14 OS_ASSERT(ok);
384
1/1
✓ Branch 1 taken 14 times.
14 ok = setReferenceUnitWasteHeatFractionofInputPowerAtRatedConditions(0.1);
385
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
14 OS_ASSERT(ok);
386
1/1
✓ Branch 1 taken 14 times.
14 ok = setTotalCoolingCapacityFunctionofTemperatureCurve(cooling_curve_1);
387
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
14 OS_ASSERT(ok);
388
1/1
✓ Branch 1 taken 14 times.
14 ok = setTotalCoolingCapacityFunctionofAirFlowFractionCurve(cooling_curve_2);
389
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
14 OS_ASSERT(ok);
390
1/1
✓ Branch 1 taken 14 times.
14 ok = setTotalCoolingCapacityFunctionofWaterFlowFractionCurve(cooling_curve_3);
391
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
14 OS_ASSERT(ok);
392
1/1
✓ Branch 1 taken 14 times.
14 ok = setEnergyInputRatioFunctionofTemperatureCurve(cooling_curve_4);
393
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
14 OS_ASSERT(ok);
394
1/1
✓ Branch 1 taken 14 times.
14 ok = setEnergyInputRatioFunctionofAirFlowFractionCurve(cooling_curve_5);
395
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
14 OS_ASSERT(ok);
396
1/1
✓ Branch 1 taken 14 times.
14 ok = setEnergyInputRatioFunctionofWaterFlowFractionCurve(cooling_curve_6);
397
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
14 OS_ASSERT(ok);
398
1/1
✓ Branch 1 taken 14 times.
14 ok = setWasteHeatFunctionofTemperatureCurve(cooling_curve_7);
399
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
14 OS_ASSERT(ok);
400 14 }
401
402 ✗ CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData(
403 const Model& model, const Curve& totalCoolingCapacityFunctionofTemperature, const Curve& totalCoolingCapacityFunctionofAirFlowFraction,
404 const Curve& totalCoolingCapacityFunctionofWaterFlowFraction, const Curve& energyInputRatioFunctionofTemperature,
405 const Curve& energyInputRatioFunctionofAirFlowFraction, const Curve& energyInputRatioFunctionofWaterFlowFraction,
406 ✗ const Curve& wasteHeatFunctionofTemperature)
407 ✗ : ParentObject(CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::iddObjectType(), model) {
408 ✗ OS_ASSERT(getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>());
409
410 ✗ bool ok = true;
411 ✗ ok = setReferenceUnitGrossRatedTotalCoolingCapacity(1524.1);
412 ✗ OS_ASSERT(ok);
413 ✗ ok = setReferenceUnitGrossRatedSensibleHeatRatio(0.75);
414 ✗ OS_ASSERT(ok);
415 ✗ ok = setReferenceUnitGrossRatedCoolingCOP(4.0);
416 ✗ OS_ASSERT(ok);
417 ✗ ok = setReferenceUnitRatedAirFlowRate(0.1359072);
418 ✗ OS_ASSERT(ok);
419 ✗ ok = setReferenceUnitRatedWaterFlowRate(0.000381695);
420 ✗ OS_ASSERT(ok);
421 ✗ ok = setReferenceUnitWasteHeatFractionofInputPowerAtRatedConditions(0.1);
422 ✗ OS_ASSERT(ok);
423 ✗ ok = setTotalCoolingCapacityFunctionofTemperatureCurve(totalCoolingCapacityFunctionofTemperature);
424 ✗ OS_ASSERT(ok);
425 ✗ ok = setTotalCoolingCapacityFunctionofAirFlowFractionCurve(totalCoolingCapacityFunctionofAirFlowFraction);
426 ✗ OS_ASSERT(ok);
427 ✗ ok = setTotalCoolingCapacityFunctionofWaterFlowFractionCurve(totalCoolingCapacityFunctionofWaterFlowFraction);
428 ✗ OS_ASSERT(ok);
429 ✗ ok = setEnergyInputRatioFunctionofTemperatureCurve(energyInputRatioFunctionofTemperature);
430 ✗ OS_ASSERT(ok);
431 ✗ ok = setEnergyInputRatioFunctionofAirFlowFractionCurve(energyInputRatioFunctionofAirFlowFraction);
432 ✗ OS_ASSERT(ok);
433 ✗ ok = setEnergyInputRatioFunctionofWaterFlowFractionCurve(energyInputRatioFunctionofWaterFlowFraction);
434 ✗ OS_ASSERT(ok);
435 ✗ ok = setWasteHeatFunctionofTemperatureCurve(wasteHeatFunctionofTemperature);
436 ✗ OS_ASSERT(ok);
437 ✗ }
438
439 7756 IddObjectType CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::iddObjectType() {
440
1/1
✓ Branch 1 taken 7756 times.
7756 return {IddObjectType::OS_Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedData};
441 }
442
443 14 double CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::referenceUnitGrossRatedTotalCoolingCapacity() const {
444
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->referenceUnitGrossRatedTotalCoolingCapacity();
445 }
446
447 14 double CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::referenceUnitGrossRatedSensibleHeatRatio() const {
448
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->referenceUnitGrossRatedSensibleHeatRatio();
449 }
450
451 14 double CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::referenceUnitGrossRatedCoolingCOP() const {
452
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->referenceUnitGrossRatedCoolingCOP();
453 }
454
455 26 double CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::referenceUnitRatedAirFlowRate() const {
456
1/1
✓ Branch 3 taken 26 times.
26 return getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->referenceUnitRatedAirFlowRate();
457 }
458
459 14 double CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::referenceUnitRatedWaterFlowRate() const {
460
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->referenceUnitRatedWaterFlowRate();
461 }
462
463 16 Curve CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::totalCoolingCapacityFunctionofTemperatureCurve() const {
464
1/1
✓ Branch 3 taken 16 times.
16 return getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->totalCoolingCapacityFunctionofTemperatureCurve();
465 }
466
467 16 Curve CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::totalCoolingCapacityFunctionofAirFlowFractionCurve() const {
468 32 return getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()
469
1/1
✓ Branch 2 taken 16 times.
32 ->totalCoolingCapacityFunctionofAirFlowFractionCurve();
470 }
471
472 16 Curve CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::totalCoolingCapacityFunctionofWaterFlowFractionCurve() const {
473 32 return getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()
474
1/1
✓ Branch 2 taken 16 times.
32 ->totalCoolingCapacityFunctionofWaterFlowFractionCurve();
475 }
476
477 16 Curve CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::energyInputRatioFunctionofTemperatureCurve() const {
478
1/1
✓ Branch 3 taken 16 times.
16 return getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->energyInputRatioFunctionofTemperatureCurve();
479 }
480
481 16 Curve CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::energyInputRatioFunctionofAirFlowFractionCurve() const {
482
1/1
✓ Branch 3 taken 16 times.
16 return getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->energyInputRatioFunctionofAirFlowFractionCurve();
483 }
484
485 16 Curve CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::energyInputRatioFunctionofWaterFlowFractionCurve() const {
486
1/1
✓ Branch 3 taken 16 times.
16 return getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->energyInputRatioFunctionofWaterFlowFractionCurve();
487 }
488
489 14 double CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::referenceUnitWasteHeatFractionofInputPowerAtRatedConditions() const {
490 28 return getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()
491
1/1
✓ Branch 2 taken 14 times.
28 ->referenceUnitWasteHeatFractionofInputPowerAtRatedConditions();
492 }
493
494 16 Curve CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::wasteHeatFunctionofTemperatureCurve() const {
495
1/1
✓ Branch 3 taken 16 times.
16 return getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->wasteHeatFunctionofTemperatureCurve();
496 }
497
498 16 bool CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::setReferenceUnitGrossRatedTotalCoolingCapacity(
499 double referenceUnitGrossRatedTotalCoolingCapacity) {
500
1/1
✓ Branch 3 taken 16 times.
32 return getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->setReferenceUnitGrossRatedTotalCoolingCapacity(
501 32 referenceUnitGrossRatedTotalCoolingCapacity);
502 }
503
504 16 bool CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::setReferenceUnitGrossRatedSensibleHeatRatio(
505 double referenceUnitGrossRatedSensibleHeatRatio) {
506
1/1
✓ Branch 3 taken 16 times.
32 return getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->setReferenceUnitGrossRatedSensibleHeatRatio(
507 32 referenceUnitGrossRatedSensibleHeatRatio);
508 }
509
510 bool
511 16 CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::setReferenceUnitGrossRatedCoolingCOP(double referenceUnitGrossRatedCoolingCOP) {
512
1/1
✓ Branch 3 taken 16 times.
32 return getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->setReferenceUnitGrossRatedCoolingCOP(
513 32 referenceUnitGrossRatedCoolingCOP);
514 }
515
516 16 bool CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::setReferenceUnitRatedAirFlowRate(double referenceUnitRatedAirFlowRate) {
517
1/1
✓ Branch 3 taken 16 times.
32 return getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->setReferenceUnitRatedAirFlowRate(
518 32 referenceUnitRatedAirFlowRate);
519 }
520
521 16 bool CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::setReferenceUnitRatedWaterFlowRate(double referenceUnitRatedWaterFlowRate) {
522
1/1
✓ Branch 3 taken 16 times.
32 return getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->setReferenceUnitRatedWaterFlowRate(
523 32 referenceUnitRatedWaterFlowRate);
524 }
525
526 14 bool CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::setTotalCoolingCapacityFunctionofTemperatureCurve(const Curve& curve) {
527
1/1
✓ Branch 3 taken 14 times.
28 return getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->setTotalCoolingCapacityFunctionofTemperatureCurve(
528 28 curve);
529 }
530
531 14 bool CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::setTotalCoolingCapacityFunctionofAirFlowFractionCurve(const Curve& curve) {
532 28 return getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()
533
1/1
✓ Branch 2 taken 14 times.
28 ->setTotalCoolingCapacityFunctionofAirFlowFractionCurve(curve);
534 }
535
536 14 bool CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::setTotalCoolingCapacityFunctionofWaterFlowFractionCurve(const Curve& curve) {
537 28 return getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()
538
1/1
✓ Branch 2 taken 14 times.
28 ->setTotalCoolingCapacityFunctionofWaterFlowFractionCurve(curve);
539 }
540
541 14 bool CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::setEnergyInputRatioFunctionofTemperatureCurve(const Curve& curve) {
542
1/1
✓ Branch 3 taken 14 times.
28 return getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->setEnergyInputRatioFunctionofTemperatureCurve(
543 28 curve);
544 }
545
546 14 bool CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::setEnergyInputRatioFunctionofAirFlowFractionCurve(const Curve& curve) {
547
1/1
✓ Branch 3 taken 14 times.
28 return getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->setEnergyInputRatioFunctionofAirFlowFractionCurve(
548 28 curve);
549 }
550
551 14 bool CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::setEnergyInputRatioFunctionofWaterFlowFractionCurve(const Curve& curve) {
552 28 return getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()
553
1/1
✓ Branch 2 taken 14 times.
28 ->setEnergyInputRatioFunctionofWaterFlowFractionCurve(curve);
554 }
555
556 16 bool CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::setReferenceUnitWasteHeatFractionofInputPowerAtRatedConditions(
557 double referenceUnitWasteHeatFractionofInputPowerAtRatedConditions) {
558 32 return getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()
559
1/1
✓ Branch 2 taken 16 times.
32 ->setReferenceUnitWasteHeatFractionofInputPowerAtRatedConditions(referenceUnitWasteHeatFractionofInputPowerAtRatedConditions);
560 }
561
562 14 bool CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::setWasteHeatFunctionofTemperatureCurve(const Curve& curve) {
563
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->setWasteHeatFunctionofTemperatureCurve(curve);
564 }
565
566 /// @cond
567 26 CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData(
568 26 std::shared_ptr<detail::CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl> impl)
569
1/1
✓ Branch 3 taken 26 times.
26 : ParentObject(std::move(impl)) {}
570 /// @endcond
571
572 } // namespace model
573 } // namespace openstudio
574