GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 41.6% 170 / 0 / 409
Functions: 43.9% 47 / 0 / 107
Branches: 28.5% 110 / 0 / 386

src/model/HeatPumpWaterToWaterEquationFitHeating.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 "HeatPumpWaterToWaterEquationFitHeating.hpp"
7 #include "HeatPumpWaterToWaterEquationFitHeating_Impl.hpp"
8 #include "Model.hpp"
9 #include "CurveQuadLinear.hpp"
10 #include "CurveQuadLinear_Impl.hpp"
11
12 #include "HeatPumpWaterToWaterEquationFitCooling.hpp"
13 #include "HeatPumpWaterToWaterEquationFitCooling_Impl.hpp"
14
15 #include "../utilities/core/Assert.hpp"
16 #include "../utilities/data/DataEnums.hpp"
17
18 #include <utilities/idd/IddEnums.hxx>
19 #include <utilities/idd/OS_HeatPump_WaterToWater_EquationFit_Heating_FieldEnums.hxx>
20
21 #include "../utilities/core/DeprecatedHelpers.hpp"
22
23 namespace openstudio {
24 namespace model {
25
26 namespace detail {
27
28 4 HeatPumpWaterToWaterEquationFitHeating_Impl::HeatPumpWaterToWaterEquationFitHeating_Impl(const IdfObject& idfObject, Model_Impl* model,
29 4 bool keepHandle)
30 4 : WaterToWaterComponent_Impl(idfObject, model, keepHandle) {
31
4/6
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 4 times.
✗ Branch 13 not taken.
4 OS_ASSERT(idfObject.iddObject().type() == HeatPumpWaterToWaterEquationFitHeating::iddObjectType());
32 4 }
33
34 1 HeatPumpWaterToWaterEquationFitHeating_Impl::HeatPumpWaterToWaterEquationFitHeating_Impl(const openstudio::detail::WorkspaceObject_Impl& other,
35 1 Model_Impl* model, bool keepHandle)
36 1 : WaterToWaterComponent_Impl(other, model, keepHandle) {
37
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() == HeatPumpWaterToWaterEquationFitHeating::iddObjectType());
38 1 }
39
40 1 HeatPumpWaterToWaterEquationFitHeating_Impl::HeatPumpWaterToWaterEquationFitHeating_Impl(const HeatPumpWaterToWaterEquationFitHeating_Impl& other,
41 1 Model_Impl* model, bool keepHandle)
42 1 : WaterToWaterComponent_Impl(other, model, keepHandle) {}
43
44 ✗ const std::vector<std::string>& HeatPumpWaterToWaterEquationFitHeating_Impl::outputVariableNames() const {
45 static const std::vector<std::string> result{"Water to Water Heat Pump Electricity Energy",
46 "Water to Water Heat Pump Load Side Heat Transfer Energy",
47 "Water to Water Heat Pump Source Side Heat Transfer Energy",
48 "Water to Water Heat Pump Electricity Rate",
49 "Water to Water Heat Pump Load Side Heat Transfer Rate",
50 "Water to Water Heat Pump Source Side Heat Transfer Rate",
51 "Water to Water Heat Pump Load Side Outlet Temperature",
52 "Water to Water Heat Pump Load Side Inlet Temperature",
53 "Water to Water Heat Pump Source Side Outlet Temperature",
54 "Water to Water Heat Pump Source Side Inlet Temperature",
55 "Water to Water Heat Pump Load Side Mass Flow Rate",
56 ✗ "Water to Water Heat Pump Source Side Mass Flow Rate"};
57 ✗ return result;
58 ✗ }
59
60 ✗ IddObjectType HeatPumpWaterToWaterEquationFitHeating_Impl::iddObjectType() const {
61 ✗ return HeatPumpWaterToWaterEquationFitHeating::iddObjectType();
62 }
63
64 ✗ boost::optional<double> HeatPumpWaterToWaterEquationFitHeating_Impl::referenceLoadSideFlowRate() const {
65 ✗ return getDouble(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::ReferenceLoadSideFlowRate, true);
66 }
67
68 ✗ double HeatPumpWaterToWaterEquationFitHeating_Impl::ratedLoadSideFlowRate() const {
69 ✗ if (auto value = getDouble(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::ReferenceLoadSideFlowRate, true)) {
70 ✗ return value.get();
71 } else {
72 ✗ return -999.0;
73 }
74 }
75
76 1 bool HeatPumpWaterToWaterEquationFitHeating_Impl::isReferenceLoadSideFlowRateAutosized() const {
77 1 bool result = false;
78
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<std::string> value = getString(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::ReferenceLoadSideFlowRate, true);
79
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (value) {
80
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
2 result = openstudio::istringEqual(value.get(), "Autosize");
81 }
82 1 return result;
83 1 }
84
85 ✗ boost::optional<double> HeatPumpWaterToWaterEquationFitHeating_Impl::referenceSourceSideFlowRate() const {
86 ✗ return getDouble(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::ReferenceSourceSideFlowRate, true);
87 }
88
89 ✗ double HeatPumpWaterToWaterEquationFitHeating_Impl::ratedSourceSideFlowRate() const {
90 ✗ if (auto value = getDouble(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::ReferenceSourceSideFlowRate, true)) {
91 ✗ return value.get();
92 } else {
93 ✗ return -999.0;
94 }
95 }
96
97 1 bool HeatPumpWaterToWaterEquationFitHeating_Impl::isReferenceSourceSideFlowRateAutosized() const {
98 1 bool result = false;
99
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<std::string> value = getString(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::ReferenceSourceSideFlowRate, true);
100
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (value) {
101
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
2 result = openstudio::istringEqual(value.get(), "Autosize");
102 }
103 1 return result;
104 1 }
105
106 ✗ boost::optional<double> HeatPumpWaterToWaterEquationFitHeating_Impl::ratedHeatingCapacity() const {
107 ✗ return getDouble(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::ReferenceHeatingCapacity, true);
108 }
109
110 1 bool HeatPumpWaterToWaterEquationFitHeating_Impl::isRatedHeatingCapacityAutosized() const {
111 1 bool result = false;
112
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<std::string> value = getString(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::ReferenceHeatingCapacity, true);
113
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (value) {
114
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
2 result = openstudio::istringEqual(value.get(), "Autosize");
115 }
116 1 return result;
117 1 }
118
119 ✗ boost::optional<double> HeatPumpWaterToWaterEquationFitHeating_Impl::ratedHeatingPowerConsumption() const {
120 ✗ return getDouble(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::ReferenceHeatingPowerConsumption, true);
121 }
122
123 1 bool HeatPumpWaterToWaterEquationFitHeating_Impl::isRatedHeatingPowerConsumptionAutosized() const {
124 1 bool result = false;
125
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<std::string> value = getString(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::ReferenceHeatingPowerConsumption, true);
126
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (value) {
127
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
2 result = openstudio::istringEqual(value.get(), "Autosize");
128 }
129 1 return result;
130 1 }
131
132 1 double HeatPumpWaterToWaterEquationFitHeating_Impl::referenceCoefficientofPerformance() const {
133
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<double> value = getDouble(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::ReferenceCoefficientofPerformance, true);
134
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
1 OS_ASSERT(value);
135
1/1
✓ Branch 1 taken 1 time.
2 return value.get();
136 }
137
138 1 double HeatPumpWaterToWaterEquationFitHeating_Impl::sizingFactor() const {
139
1/1
✓ Branch 1 taken 1 time.
1 boost::optional<double> value = getDouble(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::SizingFactor, true);
140
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
1 OS_ASSERT(value);
141
1/1
✓ Branch 1 taken 1 time.
2 return value.get();
142 }
143
144 1 boost::optional<HeatPumpWaterToWaterEquationFitCooling> HeatPumpWaterToWaterEquationFitHeating_Impl::companionCoolingHeatPump() const {
145
1/1
✓ Branch 1 taken 1 time.
2 return getObject<ModelObject>().getModelObjectTarget<HeatPumpWaterToWaterEquationFitCooling>(
146
1/1
✓ Branch 1 taken 1 time.
2 OS_HeatPump_WaterToWater_EquationFit_HeatingFields::CompanionCoolingHeatPumpName);
147 }
148
149 ✗ bool HeatPumpWaterToWaterEquationFitHeating_Impl::setReferenceLoadSideFlowRate(double referenceLoadSideFlowRate) {
150 ✗ bool result = setDouble(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::ReferenceLoadSideFlowRate, referenceLoadSideFlowRate);
151 ✗ return result;
152 }
153
154 ✗ bool HeatPumpWaterToWaterEquationFitHeating_Impl::setRatedLoadSideFlowRate(double ratedLoadSideFlowRate) {
155 ✗ bool result = setDouble(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::ReferenceLoadSideFlowRate, ratedLoadSideFlowRate);
156 ✗ return result;
157 }
158
159 3 void HeatPumpWaterToWaterEquationFitHeating_Impl::autosizeReferenceLoadSideFlowRate() {
160
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
6 bool result = setString(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::ReferenceLoadSideFlowRate, "Autosize");
161
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 OS_ASSERT(result);
162 3 }
163
164 ✗ bool HeatPumpWaterToWaterEquationFitHeating_Impl::setReferenceSourceSideFlowRate(double referenceSourceSideFlowRate) {
165 ✗ bool result = setDouble(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::ReferenceSourceSideFlowRate, referenceSourceSideFlowRate);
166 ✗ return result;
167 }
168
169 ✗ bool HeatPumpWaterToWaterEquationFitHeating_Impl::setRatedSourceSideFlowRate(double ratedSourceSideFlowRate) {
170 ✗ bool result = setDouble(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::ReferenceSourceSideFlowRate, ratedSourceSideFlowRate);
171 ✗ return result;
172 }
173
174 3 void HeatPumpWaterToWaterEquationFitHeating_Impl::autosizeReferenceSourceSideFlowRate() {
175
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
6 bool result = setString(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::ReferenceSourceSideFlowRate, "Autosize");
176
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 OS_ASSERT(result);
177 3 }
178
179 ✗ bool HeatPumpWaterToWaterEquationFitHeating_Impl::setRatedHeatingCapacity(double ratedHeatingCapacity) {
180 ✗ bool result = setDouble(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::ReferenceHeatingCapacity, ratedHeatingCapacity);
181 ✗ return result;
182 }
183
184 3 void HeatPumpWaterToWaterEquationFitHeating_Impl::autosizeRatedHeatingCapacity() {
185
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
6 bool result = setString(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::ReferenceHeatingCapacity, "Autosize");
186
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 OS_ASSERT(result);
187 3 }
188
189 ✗ bool HeatPumpWaterToWaterEquationFitHeating_Impl::setRatedHeatingPowerConsumption(double ratedHeatingPowerConsumption) {
190 ✗ bool result = setDouble(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::ReferenceHeatingPowerConsumption, ratedHeatingPowerConsumption);
191 ✗ return result;
192 }
193
194 3 void HeatPumpWaterToWaterEquationFitHeating_Impl::autosizeRatedHeatingPowerConsumption() {
195
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
6 bool result = setString(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::ReferenceHeatingPowerConsumption, "Autosize");
196
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 OS_ASSERT(result);
197 3 }
198
199 3 bool HeatPumpWaterToWaterEquationFitHeating_Impl::setReferenceCoefficientofPerformance(double referenceCoefficientofPerformance) {
200 bool result =
201 3 setDouble(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::ReferenceCoefficientofPerformance, referenceCoefficientofPerformance);
202
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 OS_ASSERT(result);
203 3 return result;
204 }
205
206 3 bool HeatPumpWaterToWaterEquationFitHeating_Impl::setSizingFactor(double sizingFactor) {
207 3 bool result = setDouble(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::SizingFactor, sizingFactor);
208
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
3 OS_ASSERT(result);
209 3 return result;
210 }
211
212 1 bool HeatPumpWaterToWaterEquationFitHeating_Impl::setCompanionCoolingHeatPump(const HeatPumpWaterToWaterEquationFitCooling& companionHP) {
213
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 return this->setPointer(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::CompanionCoolingHeatPumpName, companionHP.handle());
214 }
215
216 1 CurveQuadLinear HeatPumpWaterToWaterEquationFitHeating_Impl::heatingCapacityCurve() const {
217
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
1 WorkspaceObject wo = getTarget(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::HeatingCapacityCurveName).get();
218
1/1
✓ Branch 1 taken 1 time.
2 return wo.cast<CurveQuadLinear>();
219 1 }
220
221 3 bool HeatPumpWaterToWaterEquationFitHeating_Impl::setHeatingCapacityCurve(const CurveQuadLinear& heatingCapacityCurve) {
222
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 bool result = setPointer(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::HeatingCapacityCurveName, heatingCapacityCurve.handle());
223 3 return result;
224 }
225
226 1 CurveQuadLinear HeatPumpWaterToWaterEquationFitHeating_Impl::heatingCompressorPowerCurve() const {
227
3/3
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
1 WorkspaceObject wo = getTarget(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::HeatingCompressorPowerCurveName).get();
228
1/1
✓ Branch 1 taken 1 time.
2 return wo.cast<CurveQuadLinear>();
229 1 }
230
231 3 bool HeatPumpWaterToWaterEquationFitHeating_Impl::setHeatingCompressorPowerCurve(const CurveQuadLinear& heatingCompressorPowerCurve) {
232 bool result =
233
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 setPointer(OS_HeatPump_WaterToWater_EquationFit_HeatingFields::HeatingCompressorPowerCurveName, heatingCompressorPowerCurve.handle());
234 3 return result;
235 }
236
237 12 unsigned HeatPumpWaterToWaterEquationFitHeating_Impl::supplyInletPort() const {
238 12 return OS_HeatPump_WaterToWater_EquationFit_HeatingFields::SourceSideInletNodeName;
239 }
240
241 11 unsigned HeatPumpWaterToWaterEquationFitHeating_Impl::supplyOutletPort() const {
242 11 return OS_HeatPump_WaterToWater_EquationFit_HeatingFields::SourceSideOutletNodeName;
243 }
244
245 5 unsigned HeatPumpWaterToWaterEquationFitHeating_Impl::demandInletPort() const {
246 5 return OS_HeatPump_WaterToWater_EquationFit_HeatingFields::LoadSideInletNodeName;
247 }
248
249 6 unsigned HeatPumpWaterToWaterEquationFitHeating_Impl::demandOutletPort() const {
250 6 return OS_HeatPump_WaterToWater_EquationFit_HeatingFields::LoadSideOutletNodeName;
251 }
252
253 ✗ boost::optional<double> HeatPumpWaterToWaterEquationFitHeating_Impl::autosizedReferenceLoadSideFlowRate() const {
254 ✗ return getAutosizedValue("Design Size Load Side Volume Flow Rate", "m3/s");
255 }
256
257 ✗ boost::optional<double> HeatPumpWaterToWaterEquationFitHeating_Impl::autosizedReferenceSourceSideFlowRate() const {
258 ✗ return getAutosizedValue("Design Size Source Side Volume Flow Rate", "m3/s");
259 }
260
261 ✗ boost::optional<double> HeatPumpWaterToWaterEquationFitHeating_Impl::autosizedRatedHeatingCapacity() const {
262 ✗ return getAutosizedValue("Design Size Nominal Capacity", "W");
263 }
264
265 ✗ boost::optional<double> HeatPumpWaterToWaterEquationFitHeating_Impl::autosizedRatedHeatingPowerConsumption() const {
266 ✗ return getAutosizedValue("Design Size Heating Power Consumption", "W");
267 }
268
269 ✗ void HeatPumpWaterToWaterEquationFitHeating_Impl::autosize() {
270 ✗ autosizeReferenceLoadSideFlowRate();
271 ✗ autosizeReferenceSourceSideFlowRate();
272 ✗ autosizeRatedHeatingCapacity();
273 ✗ autosizeRatedHeatingPowerConsumption();
274 ✗ }
275
276 ✗ void HeatPumpWaterToWaterEquationFitHeating_Impl::applySizingValues() {
277 ✗ boost::optional<double> val;
278 ✗ val = autosizedReferenceLoadSideFlowRate();
279 ✗ if (val) {
280 ✗ setReferenceLoadSideFlowRate(val.get());
281 }
282
283 ✗ val = autosizedReferenceSourceSideFlowRate();
284 ✗ if (val) {
285 ✗ setReferenceSourceSideFlowRate(val.get());
286 }
287
288 ✗ val = autosizedRatedHeatingCapacity();
289 ✗ if (val) {
290 ✗ setRatedHeatingCapacity(val.get());
291 }
292
293 ✗ val = autosizedRatedHeatingPowerConsumption();
294 ✗ if (val) {
295 ✗ setRatedHeatingPowerConsumption(val.get());
296 }
297 ✗ }
298
299 4 ComponentType HeatPumpWaterToWaterEquationFitHeating_Impl::componentType() const {
300
1/1
✓ Branch 1 taken 4 times.
4 return ComponentType::Heating;
301 }
302
303 ✗ std::vector<FuelType> HeatPumpWaterToWaterEquationFitHeating_Impl::coolingFuelTypes() const {
304 ✗ return {};
305 }
306
307 ✗ std::vector<FuelType> HeatPumpWaterToWaterEquationFitHeating_Impl::heatingFuelTypes() const {
308 ✗ std::set<FuelType> result;
309 ✗ result.insert(FuelType::Electricity);
310 ✗ if (auto p_ = secondaryPlantLoop()) {
311 ✗ for (auto& ft : p_->heatingFuelTypes()) {
312 ✗ result.insert(ft);
313 ✗ }
314 ✗ }
315 ✗ return {result.begin(), result.end()};
316 ✗ }
317
318 ✗ std::vector<AppGFuelType> HeatPumpWaterToWaterEquationFitHeating_Impl::appGHeatingFuelTypes() const {
319 ✗ std::set<AppGFuelType> result;
320 ✗ result.insert(AppGFuelType::HeatPump); // TODO: is that right?
321 ✗ if (auto p_ = secondaryPlantLoop()) {
322 ✗ for (auto& ft : p_->appGHeatingFuelTypes()) {
323 ✗ result.insert(ft);
324 ✗ }
325 ✗ }
326 ✗ return {result.begin(), result.end()};
327 ✗ }
328
329 } // namespace detail
330
331 ✗ HeatPumpWaterToWaterEquationFitHeating::HeatPumpWaterToWaterEquationFitHeating(const Model& model, const CurveQuadLinear& heatingCapacityCurve,
332 ✗ const CurveQuadLinear& heatingCompressorPowerCurve)
333 ✗ : WaterToWaterComponent(HeatPumpWaterToWaterEquationFitHeating::iddObjectType(), model) {
334 ✗ OS_ASSERT(getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>());
335
336 ✗ autosizeReferenceLoadSideFlowRate();
337 ✗ autosizeReferenceSourceSideFlowRate();
338 ✗ autosizeRatedHeatingCapacity();
339 ✗ autosizeRatedHeatingPowerConsumption();
340
341 ✗ bool ok = setHeatingCapacityCurve(heatingCapacityCurve);
342 ✗ OS_ASSERT(ok);
343
344 ✗ ok = setHeatingCompressorPowerCurve(heatingCompressorPowerCurve);
345 ✗ OS_ASSERT(ok);
346
347 ✗ setReferenceCoefficientofPerformance(7.5);
348 ✗ setSizingFactor(1.0);
349 // Trick to make IG not do weird things
350 ✗ setString(22, "");
351 ✗ }
352
353 3 HeatPumpWaterToWaterEquationFitHeating::HeatPumpWaterToWaterEquationFitHeating(const Model& model)
354 3 : WaterToWaterComponent(HeatPumpWaterToWaterEquationFitHeating::iddObjectType(), model) {
355
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 3 times.
✗ Branch 5 not taken.
3 OS_ASSERT(getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>());
356
357
1/1
✓ Branch 1 taken 3 times.
3 autosizeReferenceLoadSideFlowRate();
358
1/1
✓ Branch 1 taken 3 times.
3 autosizeReferenceSourceSideFlowRate();
359
1/1
✓ Branch 1 taken 3 times.
3 autosizeRatedHeatingCapacity();
360
1/1
✓ Branch 1 taken 3 times.
3 autosizeRatedHeatingPowerConsumption();
361
362
1/1
✓ Branch 1 taken 3 times.
3 CurveQuadLinear heatingCapacityCurve(model);
363
1/1
✓ Branch 1 taken 3 times.
3 heatingCapacityCurve.setCoefficient1Constant(-3.33491153);
364
1/1
✓ Branch 1 taken 3 times.
3 heatingCapacityCurve.setCoefficient2w(-0.51451946);
365
1/1
✓ Branch 1 taken 3 times.
3 heatingCapacityCurve.setCoefficient3x(4.51592706);
366
1/1
✓ Branch 1 taken 3 times.
3 heatingCapacityCurve.setCoefficient4y(0.01797107);
367
1/1
✓ Branch 1 taken 3 times.
3 heatingCapacityCurve.setCoefficient5z(0.155797661);
368
1/1
✓ Branch 1 taken 3 times.
3 bool ok = setHeatingCapacityCurve(heatingCapacityCurve);
369
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
3 OS_ASSERT(ok);
370
371
1/1
✓ Branch 1 taken 3 times.
3 CurveQuadLinear heatingCompressorPowerCurve(model);
372
1/1
✓ Branch 1 taken 3 times.
3 heatingCompressorPowerCurve.setCoefficient1Constant(-8.93121751);
373
1/1
✓ Branch 1 taken 3 times.
3 heatingCompressorPowerCurve.setCoefficient2w(8.57035762);
374
1/1
✓ Branch 1 taken 3 times.
3 heatingCompressorPowerCurve.setCoefficient3x(1.29660976);
375
1/1
✓ Branch 1 taken 3 times.
3 heatingCompressorPowerCurve.setCoefficient4y(-0.21629222);
376
1/1
✓ Branch 1 taken 3 times.
3 heatingCompressorPowerCurve.setCoefficient5z(0.033862378);
377
1/1
✓ Branch 1 taken 3 times.
3 ok = setHeatingCompressorPowerCurve(heatingCapacityCurve);
378
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
3 OS_ASSERT(ok);
379
380
1/1
✓ Branch 1 taken 3 times.
3 setReferenceCoefficientofPerformance(7.5);
381
1/1
✓ Branch 1 taken 3 times.
3 setSizingFactor(1.0);
382 // Trick to make IG not do weird things
383
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
6 setString(22, "");
384 3 }
385
386 7606 IddObjectType HeatPumpWaterToWaterEquationFitHeating::iddObjectType() {
387
1/1
✓ Branch 1 taken 7606 times.
7606 return {IddObjectType::OS_HeatPump_WaterToWater_EquationFit_Heating};
388 }
389
390 ✗ boost::optional<double> HeatPumpWaterToWaterEquationFitHeating::referenceLoadSideFlowRate() const {
391 ✗ return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->referenceLoadSideFlowRate();
392 }
393
394 ✗ double HeatPumpWaterToWaterEquationFitHeating::ratedLoadSideFlowRate() const {
395 ✗ return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->ratedLoadSideFlowRate();
396 }
397
398 1 bool HeatPumpWaterToWaterEquationFitHeating::isReferenceLoadSideFlowRateAutosized() const {
399
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->isReferenceLoadSideFlowRateAutosized();
400 }
401
402 ✗ boost::optional<double> HeatPumpWaterToWaterEquationFitHeating::referenceSourceSideFlowRate() const {
403 ✗ return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->referenceSourceSideFlowRate();
404 }
405
406 ✗ double HeatPumpWaterToWaterEquationFitHeating::ratedSourceSideFlowRate() const {
407 ✗ return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->ratedSourceSideFlowRate();
408 }
409
410 1 bool HeatPumpWaterToWaterEquationFitHeating::isReferenceSourceSideFlowRateAutosized() const {
411
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->isReferenceSourceSideFlowRateAutosized();
412 }
413
414 ✗ boost::optional<double> HeatPumpWaterToWaterEquationFitHeating::ratedHeatingCapacity() const {
415 ✗ return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->ratedHeatingCapacity();
416 }
417
418 1 bool HeatPumpWaterToWaterEquationFitHeating::isRatedHeatingCapacityAutosized() const {
419
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->isRatedHeatingCapacityAutosized();
420 }
421
422 ✗ boost::optional<double> HeatPumpWaterToWaterEquationFitHeating::ratedHeatingPowerConsumption() const {
423 ✗ return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->ratedHeatingPowerConsumption();
424 }
425
426 1 bool HeatPumpWaterToWaterEquationFitHeating::isRatedHeatingPowerConsumptionAutosized() const {
427
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->isRatedHeatingPowerConsumptionAutosized();
428 }
429
430 1 double HeatPumpWaterToWaterEquationFitHeating::referenceCoefficientofPerformance() const {
431
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->referenceCoefficientofPerformance();
432 }
433
434 1 double HeatPumpWaterToWaterEquationFitHeating::sizingFactor() const {
435
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->sizingFactor();
436 }
437
438 1 boost::optional<HeatPumpWaterToWaterEquationFitCooling> HeatPumpWaterToWaterEquationFitHeating::companionCoolingHeatPump() const {
439
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->companionCoolingHeatPump();
440 }
441
442 ✗ bool HeatPumpWaterToWaterEquationFitHeating::setRatedLoadSideFlowRate(double ratedLoadSideFlowRate) {
443 ✗ return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->setRatedLoadSideFlowRate(ratedLoadSideFlowRate);
444 }
445
446 ✗ bool HeatPumpWaterToWaterEquationFitHeating::setReferenceLoadSideFlowRate(double referenceLoadSideFlowRate) {
447 ✗ return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->setReferenceLoadSideFlowRate(referenceLoadSideFlowRate);
448 }
449
450 3 void HeatPumpWaterToWaterEquationFitHeating::autosizeReferenceLoadSideFlowRate() {
451
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->autosizeReferenceLoadSideFlowRate();
452 }
453
454 ✗ bool HeatPumpWaterToWaterEquationFitHeating::setRatedSourceSideFlowRate(double ratedSourceSideFlowRate) {
455 ✗ return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->setRatedSourceSideFlowRate(ratedSourceSideFlowRate);
456 }
457
458 ✗ bool HeatPumpWaterToWaterEquationFitHeating::setReferenceSourceSideFlowRate(double referenceSourceSideFlowRate) {
459 ✗ return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->setReferenceSourceSideFlowRate(referenceSourceSideFlowRate);
460 }
461
462 3 void HeatPumpWaterToWaterEquationFitHeating::autosizeReferenceSourceSideFlowRate() {
463
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->autosizeReferenceSourceSideFlowRate();
464 }
465
466 ✗ bool HeatPumpWaterToWaterEquationFitHeating::setRatedHeatingCapacity(double ratedHeatingCapacity) {
467 ✗ return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->setRatedHeatingCapacity(ratedHeatingCapacity);
468 }
469
470 3 void HeatPumpWaterToWaterEquationFitHeating::autosizeRatedHeatingCapacity() {
471
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->autosizeRatedHeatingCapacity();
472 }
473
474 ✗ bool HeatPumpWaterToWaterEquationFitHeating::setRatedHeatingPowerConsumption(double ratedHeatingPowerConsumption) {
475 ✗ return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->setRatedHeatingPowerConsumption(ratedHeatingPowerConsumption);
476 }
477
478 3 void HeatPumpWaterToWaterEquationFitHeating::autosizeRatedHeatingPowerConsumption() {
479
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->autosizeRatedHeatingPowerConsumption();
480 }
481
482 3 bool HeatPumpWaterToWaterEquationFitHeating::setReferenceCoefficientofPerformance(double referenceCoefficientofPerformance) {
483
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->setReferenceCoefficientofPerformance(referenceCoefficientofPerformance);
484 }
485
486 3 bool HeatPumpWaterToWaterEquationFitHeating::setSizingFactor(double sizingFactor) {
487
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->setSizingFactor(sizingFactor);
488 }
489
490 1 bool HeatPumpWaterToWaterEquationFitHeating::setCompanionCoolingHeatPump(const HeatPumpWaterToWaterEquationFitCooling& companionHP) {
491
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->setCompanionCoolingHeatPump(companionHP);
492 }
493
494 ✗ boost::optional<double> HeatPumpWaterToWaterEquationFitHeating::autosizedReferenceLoadSideFlowRate() const {
495 ✗ return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->autosizedReferenceLoadSideFlowRate();
496 }
497
498 ✗ boost::optional<double> HeatPumpWaterToWaterEquationFitHeating::autosizedReferenceSourceSideFlowRate() const {
499 ✗ return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->autosizedReferenceSourceSideFlowRate();
500 }
501
502 ✗ boost::optional<double> HeatPumpWaterToWaterEquationFitHeating::autosizedRatedHeatingCapacity() const {
503 ✗ return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->autosizedRatedHeatingCapacity();
504 }
505
506 ✗ boost::optional<double> HeatPumpWaterToWaterEquationFitHeating::autosizedRatedHeatingPowerConsumption() const {
507 ✗ return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->autosizedRatedHeatingPowerConsumption();
508 }
509
510 1 CurveQuadLinear HeatPumpWaterToWaterEquationFitHeating::heatingCapacityCurve() const {
511
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->heatingCapacityCurve();
512 }
513
514 3 bool HeatPumpWaterToWaterEquationFitHeating::setHeatingCapacityCurve(const CurveQuadLinear& heatingCapacityCurve) {
515
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->setHeatingCapacityCurve(heatingCapacityCurve);
516 }
517
518 1 CurveQuadLinear HeatPumpWaterToWaterEquationFitHeating::heatingCompressorPowerCurve() const {
519
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->heatingCompressorPowerCurve();
520 }
521
522 3 bool HeatPumpWaterToWaterEquationFitHeating::setHeatingCompressorPowerCurve(const CurveQuadLinear& heatingCompressorPowerCurve) {
523
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->setHeatingCompressorPowerCurve(heatingCompressorPowerCurve);
524 }
525
526 /// @cond
527 2 HeatPumpWaterToWaterEquationFitHeating::HeatPumpWaterToWaterEquationFitHeating(
528 2 std::shared_ptr<detail::HeatPumpWaterToWaterEquationFitHeating_Impl> impl)
529
1/1
✓ Branch 3 taken 2 times.
2 : WaterToWaterComponent(std::move(impl)) {}
530
531 // DEPRECATED
532 ✗ double HeatPumpWaterToWaterEquationFitHeating::heatingCapacityCoefficient1() const {
533 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitHeating::heatingCapacityCurve().coefficient1Constant() instead.");
534 ✗ CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->heatingCapacityCurve();
535 ✗ return curve.coefficient1Constant();
536 ✗ }
537
538 ✗ bool HeatPumpWaterToWaterEquationFitHeating::setHeatingCapacityCoefficient1(double heatingCapacityCoefficient1) {
539 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitHeating::heatingCapacityCurve().setCoefficient1Constant(double) instead.");
540 ✗ CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->heatingCapacityCurve();
541 ✗ return curve.setCoefficient1Constant(heatingCapacityCoefficient1);
542 ✗ }
543
544 ✗ double HeatPumpWaterToWaterEquationFitHeating::heatingCapacityCoefficient2() const {
545 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitHeating::heatingCapacityCurve().coefficient2w() instead.");
546 ✗ CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->heatingCapacityCurve();
547 ✗ return curve.coefficient2w();
548 ✗ }
549
550 ✗ bool HeatPumpWaterToWaterEquationFitHeating::setHeatingCapacityCoefficient2(double heatingCapacityCoefficient2) {
551 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitHeating::heatingCapacityCurve().setCoefficient2w(double) instead.");
552 ✗ CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->heatingCapacityCurve();
553 ✗ return curve.setCoefficient2w(heatingCapacityCoefficient2);
554 ✗ }
555
556 ✗ double HeatPumpWaterToWaterEquationFitHeating::heatingCapacityCoefficient3() const {
557 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitHeating::heatingCapacityCurve().coefficient3x() instead.");
558 ✗ CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->heatingCapacityCurve();
559 ✗ return curve.coefficient3x();
560 ✗ }
561
562 ✗ bool HeatPumpWaterToWaterEquationFitHeating::setHeatingCapacityCoefficient3(double heatingCapacityCoefficient3) {
563 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitHeating::heatingCapacityCurve().setCoefficient3x(double) instead.");
564 ✗ CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->heatingCapacityCurve();
565 ✗ return curve.setCoefficient3x(heatingCapacityCoefficient3);
566 ✗ }
567
568 ✗ double HeatPumpWaterToWaterEquationFitHeating::heatingCapacityCoefficient4() const {
569 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitHeating::heatingCapacityCurve().coefficient4y() instead.");
570 ✗ CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->heatingCapacityCurve();
571 ✗ return curve.coefficient4y();
572 ✗ }
573
574 ✗ bool HeatPumpWaterToWaterEquationFitHeating::setHeatingCapacityCoefficient4(double heatingCapacityCoefficient4) {
575 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitHeating::heatingCapacityCurve().setCoefficient4y(double) instead.");
576 ✗ CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->heatingCapacityCurve();
577 ✗ return curve.setCoefficient4y(heatingCapacityCoefficient4);
578 ✗ }
579
580 ✗ double HeatPumpWaterToWaterEquationFitHeating::heatingCapacityCoefficient5() const {
581 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitHeating::heatingCapacityCurve().coefficient5z() instead.");
582 ✗ CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->heatingCapacityCurve();
583 ✗ return curve.coefficient5z();
584 ✗ }
585
586 ✗ bool HeatPumpWaterToWaterEquationFitHeating::setHeatingCapacityCoefficient5(double heatingCapacityCoefficient5) {
587 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitHeating::heatingCapacityCurve().setCoefficient5z(double) instead.");
588 ✗ CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->heatingCapacityCurve();
589 ✗ return curve.setCoefficient5z(heatingCapacityCoefficient5);
590 ✗ }
591
592 ✗ double HeatPumpWaterToWaterEquationFitHeating::heatingCompressorPowerCoefficient1() const {
593 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitHeating::heatingCompressorPowerCurve().coefficient1Constant() instead.");
594 ✗ CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->heatingCompressorPowerCurve();
595 ✗ return curve.coefficient1Constant();
596 ✗ }
597
598 ✗ bool HeatPumpWaterToWaterEquationFitHeating::setHeatingCompressorPowerCoefficient1(double heatingCompressorPowerCoefficient1) {
599 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitHeating::heatingCompressorPowerCurve().setCoefficient1Constant(double) instead.");
600 ✗ CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->heatingCompressorPowerCurve();
601 ✗ return curve.setCoefficient1Constant(heatingCompressorPowerCoefficient1);
602 ✗ }
603
604 ✗ double HeatPumpWaterToWaterEquationFitHeating::heatingCompressorPowerCoefficient2() const {
605 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitHeating::heatingCompressorPowerCurve().coefficient2w() instead.");
606 ✗ CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->heatingCompressorPowerCurve();
607 ✗ return curve.coefficient2w();
608 ✗ }
609
610 ✗ bool HeatPumpWaterToWaterEquationFitHeating::setHeatingCompressorPowerCoefficient2(double heatingCompressorPowerCoefficient2) {
611 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitHeating::heatingCompressorPowerCurve().setCoefficient2w(double) instead.");
612 ✗ CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->heatingCompressorPowerCurve();
613 ✗ return curve.setCoefficient2w(heatingCompressorPowerCoefficient2);
614 ✗ }
615
616 ✗ double HeatPumpWaterToWaterEquationFitHeating::heatingCompressorPowerCoefficient3() const {
617 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitHeating::heatingCompressorPowerCurve().coefficient3x() instead.");
618 ✗ CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->heatingCompressorPowerCurve();
619 ✗ return curve.coefficient3x();
620 ✗ }
621
622 ✗ bool HeatPumpWaterToWaterEquationFitHeating::setHeatingCompressorPowerCoefficient3(double heatingCompressorPowerCoefficient3) {
623 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitHeating::heatingCompressorPowerCurve().setCoefficient3x(double) instead.");
624 ✗ CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->heatingCompressorPowerCurve();
625 ✗ return curve.setCoefficient3x(heatingCompressorPowerCoefficient3);
626 ✗ }
627
628 ✗ double HeatPumpWaterToWaterEquationFitHeating::heatingCompressorPowerCoefficient4() const {
629 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitHeating::heatingCompressorPowerCurve().coefficient4y() instead.");
630 ✗ CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->heatingCompressorPowerCurve();
631 ✗ return curve.coefficient4y();
632 ✗ }
633
634 ✗ bool HeatPumpWaterToWaterEquationFitHeating::setHeatingCompressorPowerCoefficient4(double heatingCompressorPowerCoefficient4) {
635 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitHeating::heatingCompressorPowerCurve().setCoefficient4y(double) instead.");
636 ✗ CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->heatingCompressorPowerCurve();
637 ✗ return curve.setCoefficient4y(heatingCompressorPowerCoefficient4);
638 ✗ }
639
640 ✗ double HeatPumpWaterToWaterEquationFitHeating::heatingCompressorPowerCoefficient5() const {
641 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitHeating::heatingCompressorPowerCurve().coefficient5z() instead.");
642 ✗ CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->heatingCompressorPowerCurve();
643 ✗ return curve.coefficient5z();
644 ✗ }
645
646 ✗ bool HeatPumpWaterToWaterEquationFitHeating::setHeatingCompressorPowerCoefficient5(double heatingCompressorPowerCoefficient5) {
647 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitHeating::heatingCompressorPowerCurve().setCoefficient5z(double) instead.");
648 ✗ CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitHeating_Impl>()->heatingCompressorPowerCurve();
649 ✗ return curve.setCoefficient5z(heatingCompressorPowerCoefficient5);
650 ✗ }
651
652 /// @endcond
653
654 } // namespace model
655 } // namespace openstudio
656