GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 61.0% 352 / 0 / 577
Functions: 70.4% 95 / 0 / 135
Branches: 34.6% 218 / 0 / 630

src/model/CoilHeatingWaterToAirHeatPumpEquationFit.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 "CoilHeatingWaterToAirHeatPumpEquationFit.hpp"
7 #include "CoilHeatingWaterToAirHeatPumpEquationFit_Impl.hpp"
8 #include "ZoneHVACComponent.hpp"
9 #include "ZoneHVACComponent_Impl.hpp"
10 #include "ZoneHVACWaterToAirHeatPump.hpp"
11 #include "ZoneHVACWaterToAirHeatPump_Impl.hpp"
12 #include "AirLoopHVACUnitarySystem.hpp"
13 #include "AirLoopHVACUnitarySystem_Impl.hpp"
14 #include "AirflowNetworkEquivalentDuct.hpp"
15 #include "AirflowNetworkEquivalentDuct_Impl.hpp"
16 #include "Node.hpp"
17 #include "Node_Impl.hpp"
18 #include "Model.hpp"
19 #include "CurveQuadLinear.hpp"
20 #include "CurveQuadLinear_Impl.hpp"
21 #include "CurveLinear.hpp"
22 #include "Curve.hpp"
23 #include "Curve_Impl.hpp"
24 #include "Schedule.hpp"
25 #include "Schedule_Impl.hpp"
26 #include "ScheduleTypeRegistry.hpp"
27
28 #include <utilities/idd/OS_Coil_Heating_WaterToAirHeatPump_EquationFit_FieldEnums.hxx>
29 #include <utilities/idd/IddEnums.hxx>
30 #include "../utilities/core/Compare.hpp"
31 #include "../utilities/core/Assert.hpp"
32 #include "../utilities/data/DataEnums.hpp"
33
34 #include "../utilities/core/DeprecatedHelpers.hpp"
35
36 namespace openstudio {
37 namespace model {
38
39 namespace detail {
40
41 //constructor
42 23 CoilHeatingWaterToAirHeatPumpEquationFit_Impl::CoilHeatingWaterToAirHeatPumpEquationFit_Impl(const IdfObject& idfObject, Model_Impl* model,
43 23 bool keepHandle)
44 23 : WaterToAirComponent_Impl(idfObject, model, keepHandle) {
45
4/6
✓ Branch 1 taken 23 times.
✓ Branch 4 taken 23 times.
✓ Branch 7 taken 23 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 23 times.
✗ Branch 13 not taken.
23 OS_ASSERT(idfObject.iddObject().type() == CoilHeatingWaterToAirHeatPumpEquationFit::iddObjectType());
46 23 }
47
48 9 CoilHeatingWaterToAirHeatPumpEquationFit_Impl::CoilHeatingWaterToAirHeatPumpEquationFit_Impl(
49 9 const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle)
50 9 : WaterToAirComponent_Impl(other, model, keepHandle) {
51
4/6
✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 9 times.
✗ Branch 13 not taken.
9 OS_ASSERT(other.iddObject().type() == CoilHeatingWaterToAirHeatPumpEquationFit::iddObjectType());
52 9 }
53
54 4 CoilHeatingWaterToAirHeatPumpEquationFit_Impl::CoilHeatingWaterToAirHeatPumpEquationFit_Impl(
55 4 const CoilHeatingWaterToAirHeatPumpEquationFit_Impl& other, Model_Impl* model, bool keepHandle)
56 4 : WaterToAirComponent_Impl(other, model, keepHandle) {}
57
58 ✗ const std::vector<std::string>& CoilHeatingWaterToAirHeatPumpEquationFit_Impl::outputVariableNames() const {
59 static const std::vector<std::string> result{"Heating Coil Electricity Rate",
60 "Heating Coil Heating Rate",
61 "Heating Coil Sensible Heating Rate",
62 "Heating Coil Source Side Heat Transfer Rate",
63 "Heating Coil Part Load Ratio",
64 "Heating Coil Runtime Fraction",
65 "Heating Coil Air Mass Flow Rate",
66 "Heating Coil Air Inlet Temperature",
67 "Heating Coil Air Inlet Humidity Ratio",
68 "Heating Coil Air Outlet Temperature",
69 "Heating Coil Air Outlet Humidity Ratio",
70 "Heating Coil Source Side Mass Flow Rate",
71 "Heating Coil Source Side Inlet Temperature",
72 "Heating Coil Source Side Outlet Temperature",
73 "Heating Coil Electricity Energy",
74 "Heating Coil Heating Energy",
75 ✗ "Heating Coil Source Side Heat Transfer Energy"};
76 ✗ return result;
77 ✗ }
78
79 4 IddObjectType CoilHeatingWaterToAirHeatPumpEquationFit_Impl::iddObjectType() const {
80 4 return CoilHeatingWaterToAirHeatPumpEquationFit::iddObjectType();
81 }
82
83 ✗ std::vector<ScheduleTypeKey> CoilHeatingWaterToAirHeatPumpEquationFit_Impl::getScheduleTypeKeys(const Schedule& schedule) const {
84 ✗ std::vector<ScheduleTypeKey> result;
85 ✗ UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
86 ✗ UnsignedVector::const_iterator b(fieldIndices.begin());
87 ✗ UnsignedVector::const_iterator e(fieldIndices.end());
88 ✗ if (std::find(b, e, OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::AvailabilityScheduleName) != e) {
89 ✗ result.push_back(ScheduleTypeKey("CoilHeatingWaterToAirHeatPumpEquationFit", "Availability Schedule"));
90 }
91 ✗ return result;
92 ✗ }
93
94 4 unsigned CoilHeatingWaterToAirHeatPumpEquationFit_Impl::airInletPort() const {
95 4 return OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::AirInletNodeName;
96 }
97
98 4 unsigned CoilHeatingWaterToAirHeatPumpEquationFit_Impl::airOutletPort() const {
99 4 return OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::AirOutletNodeName;
100 }
101
102 26 unsigned CoilHeatingWaterToAirHeatPumpEquationFit_Impl::waterInletPort() const {
103 26 return OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::WaterInletNodeName;
104 }
105
106 26 unsigned CoilHeatingWaterToAirHeatPumpEquationFit_Impl::waterOutletPort() const {
107 26 return OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::WaterOutletNodeName;
108 }
109
110 4 std::vector<ModelObject> CoilHeatingWaterToAirHeatPumpEquationFit_Impl::children() const {
111 4 std::vector<ModelObject> children;
112
113 std::vector<AirflowNetworkEquivalentDuct> myAFNItems =
114
3/3
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
4 getObject<ModelObject>().getModelObjectSources<AirflowNetworkEquivalentDuct>(AirflowNetworkEquivalentDuct::iddObjectType());
115
1/1
✓ Branch 5 taken 4 times.
4 children.insert(children.end(), myAFNItems.begin(), myAFNItems.end());
116
117 8 return children;
118 4 }
119
120 6 boost::optional<Schedule> CoilHeatingWaterToAirHeatPumpEquationFit_Impl::optionalAvailabilitySchedule() const {
121
2/2
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
6 return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::AvailabilityScheduleName);
122 }
123
124 6 Schedule CoilHeatingWaterToAirHeatPumpEquationFit_Impl::availabilitySchedule() const {
125
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<Schedule> value = optionalAvailabilitySchedule();
126
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
6 if (!value) {
127 // it is an error if we get here, however we don't want to crash
128 // so we hook up to global always on schedule
129 ✗ LOG(Error, "Required availability schedule not set, using 'Always On' schedule");
130 ✗ value = this->model().alwaysOnDiscreteSchedule();
131 ✗ OS_ASSERT(value);
132 ✗ const_cast<CoilHeatingWaterToAirHeatPumpEquationFit_Impl*>(this)->setAvailabilitySchedule(*value);
133 ✗ value = optionalAvailabilitySchedule();
134 }
135
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
6 OS_ASSERT(value);
136
2/2
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
12 return value.get();
137 6 }
138
139 3 boost::optional<double> CoilHeatingWaterToAirHeatPumpEquationFit_Impl::ratedAirFlowRate() const {
140 3 return getDouble(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedAirFlowRate, true);
141 }
142
143 1 bool CoilHeatingWaterToAirHeatPumpEquationFit_Impl::isRatedAirFlowRateDefaulted() const {
144 1 return isEmpty(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedAirFlowRate);
145 }
146
147 5 bool CoilHeatingWaterToAirHeatPumpEquationFit_Impl::isRatedAirFlowRateAutosized() const {
148 5 bool result = false;
149
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<std::string> value = getString(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedAirFlowRate, true);
150
1/2
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
5 if (value) {
151
3/3
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
10 result = openstudio::istringEqual(value.get(), "autosize");
152 }
153 5 return result;
154 5 }
155
156 6 boost::optional<double> CoilHeatingWaterToAirHeatPumpEquationFit_Impl::ratedWaterFlowRate() const {
157 6 return getDouble(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedWaterFlowRate, true);
158 }
159
160 1 bool CoilHeatingWaterToAirHeatPumpEquationFit_Impl::isRatedWaterFlowRateDefaulted() const {
161 1 return isEmpty(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedWaterFlowRate);
162 }
163
164 5 bool CoilHeatingWaterToAirHeatPumpEquationFit_Impl::isRatedWaterFlowRateAutosized() const {
165 5 bool result = false;
166
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<std::string> value = getString(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedWaterFlowRate, true);
167
1/2
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
5 if (value) {
168
3/3
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
10 result = openstudio::istringEqual(value.get(), "autosize");
169 }
170 5 return result;
171 5 }
172
173 6 boost::optional<double> CoilHeatingWaterToAirHeatPumpEquationFit_Impl::ratedHeatingCapacity() const {
174 6 return getDouble(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedHeatingCapacity, true);
175 }
176
177 1 bool CoilHeatingWaterToAirHeatPumpEquationFit_Impl::isRatedHeatingCapacityDefaulted() const {
178 1 return isEmpty(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedHeatingCapacity);
179 }
180
181 5 bool CoilHeatingWaterToAirHeatPumpEquationFit_Impl::isRatedHeatingCapacityAutosized() const {
182 5 bool result = false;
183
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<std::string> value = getString(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedHeatingCapacity, true);
184
1/2
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
5 if (value) {
185
3/3
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
10 result = openstudio::istringEqual(value.get(), "autosize");
186 }
187 5 return result;
188 5 }
189
190 6 double CoilHeatingWaterToAirHeatPumpEquationFit_Impl::ratedHeatingCoefficientofPerformance() const {
191
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<double> value = getDouble(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedHeatingCoefficientofPerformance, true);
192
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
6 OS_ASSERT(value);
193
1/1
✓ Branch 1 taken 6 times.
12 return value.get();
194 }
195
196 2 bool CoilHeatingWaterToAirHeatPumpEquationFit_Impl::isRatedHeatingCoefficientofPerformanceDefaulted() const {
197 2 return isEmpty(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedHeatingCoefficientofPerformance);
198 }
199
200 6 double CoilHeatingWaterToAirHeatPumpEquationFit_Impl::ratedEnteringWaterTemperature() const {
201
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<double> value = getDouble(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedEnteringWaterTemperature, true);
202
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
6 OS_ASSERT(value);
203
1/1
✓ Branch 1 taken 6 times.
12 return value.get();
204 }
205
206 6 double CoilHeatingWaterToAirHeatPumpEquationFit_Impl::ratedEnteringAirDryBulbTemperature() const {
207
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<double> value = getDouble(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedEnteringAirDryBulbTemperature, true);
208
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
6 OS_ASSERT(value);
209
1/1
✓ Branch 1 taken 6 times.
12 return value.get();
210 }
211
212 6 double CoilHeatingWaterToAirHeatPumpEquationFit_Impl::ratioofRatedHeatingCapacitytoRatedCoolingCapacity() const {
213 boost::optional<double> value =
214
1/1
✓ Branch 1 taken 6 times.
6 getDouble(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatioofRatedHeatingCapacitytoRatedCoolingCapacity, true);
215
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
6 OS_ASSERT(value);
216
1/1
✓ Branch 1 taken 6 times.
12 return value.get();
217 }
218
219 15 bool CoilHeatingWaterToAirHeatPumpEquationFit_Impl::setAvailabilitySchedule(Schedule& schedule) {
220
3/3
✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
✓ Branch 7 taken 15 times.
60 bool result = setSchedule(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::AvailabilityScheduleName,
221 "CoilHeatingWaterToAirHeatPumpEquationFit", "Availability Schedule", schedule);
222 15 return result;
223 }
224
225 ✗ bool CoilHeatingWaterToAirHeatPumpEquationFit_Impl::setRatedAirFlowRate(boost::optional<double> ratedAirFlowRate) {
226 ✗ bool result(false);
227 ✗ if (ratedAirFlowRate) {
228 ✗ result = setDouble(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedAirFlowRate, ratedAirFlowRate.get());
229 } else {
230 ✗ resetRatedAirFlowRate();
231 ✗ result = true;
232 }
233 ✗ return result;
234 }
235
236 2 bool CoilHeatingWaterToAirHeatPumpEquationFit_Impl::setRatedAirFlowRate(double ratedAirFlowRate) {
237 2 return setDouble(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedAirFlowRate, ratedAirFlowRate);
238 }
239
240 1 void CoilHeatingWaterToAirHeatPumpEquationFit_Impl::resetRatedAirFlowRate() {
241
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedAirFlowRate, "");
242
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
243 1 }
244
245 2 void CoilHeatingWaterToAirHeatPumpEquationFit_Impl::autosizeRatedAirFlowRate() {
246
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
4 bool result = setString(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedAirFlowRate, "Autosize");
247
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
2 OS_ASSERT(result);
248 2 }
249
250 ✗ bool CoilHeatingWaterToAirHeatPumpEquationFit_Impl::setRatedWaterFlowRate(boost::optional<double> ratedWaterFlowRate) {
251 ✗ bool result(false);
252 ✗ if (ratedWaterFlowRate) {
253 ✗ result = setDouble(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedWaterFlowRate, ratedWaterFlowRate.get());
254 } else {
255 ✗ resetRatedWaterFlowRate();
256 ✗ result = true;
257 }
258 ✗ return result;
259 }
260
261 3 bool CoilHeatingWaterToAirHeatPumpEquationFit_Impl::setRatedWaterFlowRate(double ratedWaterFlowRate) {
262 3 return setDouble(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedWaterFlowRate, ratedWaterFlowRate);
263 }
264
265 1 void CoilHeatingWaterToAirHeatPumpEquationFit_Impl::resetRatedWaterFlowRate() {
266
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedWaterFlowRate, "");
267
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
268 1 }
269
270 1 void CoilHeatingWaterToAirHeatPumpEquationFit_Impl::autosizeRatedWaterFlowRate() {
271
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedWaterFlowRate, "Autosize");
272
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
273 1 }
274
275 ✗ bool CoilHeatingWaterToAirHeatPumpEquationFit_Impl::setRatedHeatingCapacity(boost::optional<double> ratedHeatingCapacity) {
276 ✗ bool result(false);
277 ✗ if (ratedHeatingCapacity) {
278 ✗ result = setDouble(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedHeatingCapacity, ratedHeatingCapacity.get());
279 } else {
280 ✗ resetRatedHeatingCapacity();
281 ✗ result = true;
282 }
283 ✗ return result;
284 }
285
286 3 bool CoilHeatingWaterToAirHeatPumpEquationFit_Impl::setRatedHeatingCapacity(double ratedHeatingCapacity) {
287 3 return setDouble(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedHeatingCapacity, ratedHeatingCapacity);
288 }
289
290 1 void CoilHeatingWaterToAirHeatPumpEquationFit_Impl::resetRatedHeatingCapacity() {
291
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedHeatingCapacity, "");
292
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
293 1 }
294
295 1 void CoilHeatingWaterToAirHeatPumpEquationFit_Impl::autosizeRatedHeatingCapacity() {
296
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedHeatingCapacity, "Autosize");
297
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
298 1 }
299
300 3 bool CoilHeatingWaterToAirHeatPumpEquationFit_Impl::setRatedHeatingCoefficientofPerformance(double ratedHeatingCoefficientofPerformance) {
301 bool result =
302 3 setDouble(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedHeatingCoefficientofPerformance, ratedHeatingCoefficientofPerformance);
303 3 return result;
304 }
305
306 1 void CoilHeatingWaterToAirHeatPumpEquationFit_Impl::resetRatedHeatingCoefficientofPerformance() {
307
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedHeatingCoefficientofPerformance, "");
308
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
309 1 }
310
311 17 bool CoilHeatingWaterToAirHeatPumpEquationFit_Impl::setRatedEnteringWaterTemperature(double ratedEnteringWaterTemperature) {
312 17 bool result = setDouble(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedEnteringWaterTemperature, ratedEnteringWaterTemperature);
313 17 return result;
314 }
315
316 17 bool CoilHeatingWaterToAirHeatPumpEquationFit_Impl::setRatedEnteringAirDryBulbTemperature(double ratedEnteringAirDryBulbTemperature) {
317 bool result =
318 17 setDouble(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatedEnteringAirDryBulbTemperature, ratedEnteringAirDryBulbTemperature);
319 17 return result;
320 }
321
322 17 bool CoilHeatingWaterToAirHeatPumpEquationFit_Impl::setRatioofRatedHeatingCapacitytoRatedCoolingCapacity(
323 double ratioofRatedHeatingCapacitytoRatedCoolingCapacity) {
324 17 bool result = setDouble(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::RatioofRatedHeatingCapacitytoRatedCoolingCapacity,
325 ratioofRatedHeatingCapacitytoRatedCoolingCapacity);
326 17 return result;
327 }
328
329 1 boost::optional<HVACComponent> CoilHeatingWaterToAirHeatPumpEquationFit_Impl::containingHVACComponent() const {
330 // AirLoopHVACUnitarySystem
331
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 std::vector<AirLoopHVACUnitarySystem> airLoopHVACUnitarySystems = this->model().getConcreteModelObjects<AirLoopHVACUnitarySystem>();
332
333
1/2
✓ Branch 5 taken 1 time.
✗ Branch 6 not taken.
1 for (const auto& airLoopHVACUnitarySystem : airLoopHVACUnitarySystems) {
334
2/3
✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
2 if (boost::optional<HVACComponent> heatingCoil = airLoopHVACUnitarySystem.heatingCoil()) {
335
5/6
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 12 taken 1 time.
✗ Branch 13 not taken.
1 if (heatingCoil->handle() == this->handle()) {
336
1/1
✓ Branch 1 taken 1 time.
1 return airLoopHVACUnitarySystem;
337 }
338 1 }
339 }
340 ✗ return boost::none;
341 1 }
342
343 1 boost::optional<ZoneHVACComponent> CoilHeatingWaterToAirHeatPumpEquationFit_Impl::containingZoneHVACComponent() const {
344 // ZoneHVACWaterToAirHeatPump
345
346 1 std::vector<ZoneHVACWaterToAirHeatPump> zoneHVACWaterToAirHeatPumps;
347
348
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 zoneHVACWaterToAirHeatPumps = this->model().getConcreteModelObjects<ZoneHVACWaterToAirHeatPump>();
349
350
1/2
✓ Branch 5 taken 1 time.
✗ Branch 6 not taken.
1 for (const auto& zoneHVACWaterToAirHeatPump : zoneHVACWaterToAirHeatPumps) {
351
3/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 8 taken 1 time.
✗ Branch 9 not taken.
2 if (boost::optional<HVACComponent> coil = zoneHVACWaterToAirHeatPump.heatingCoil()) {
352
5/6
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 12 taken 1 time.
✗ Branch 13 not taken.
1 if (coil->handle() == this->handle()) {
353
1/1
✓ Branch 1 taken 1 time.
1 return zoneHVACWaterToAirHeatPump;
354 }
355 1 }
356 }
357
358 ✗ return boost::none;
359 1 }
360
361 ✗ AirflowNetworkEquivalentDuct CoilHeatingWaterToAirHeatPumpEquationFit_Impl::getAirflowNetworkEquivalentDuct(double length, double diameter) {
362 ✗ boost::optional<AirflowNetworkEquivalentDuct> opt = airflowNetworkEquivalentDuct();
363 ✗ if (opt) {
364 ✗ if (opt->airPathLength() != length) {
365 ✗ opt->setAirPathLength(length);
366 }
367 ✗ if (opt->airPathHydraulicDiameter() != diameter) {
368 ✗ opt->setAirPathHydraulicDiameter(diameter);
369 }
370 }
371 ✗ return AirflowNetworkEquivalentDuct(model(), length, diameter, handle());
372 ✗ }
373
374 ✗ boost::optional<AirflowNetworkEquivalentDuct> CoilHeatingWaterToAirHeatPumpEquationFit_Impl::airflowNetworkEquivalentDuct() const {
375 std::vector<AirflowNetworkEquivalentDuct> myAFN =
376 ✗ getObject<ModelObject>().getModelObjectSources<AirflowNetworkEquivalentDuct>(AirflowNetworkEquivalentDuct::iddObjectType());
377 ✗ auto count = myAFN.size();
378 ✗ if (count == 1) {
379 ✗ return myAFN[0];
380 ✗ } else if (count > 1) {
381 ✗ LOG(Warn, briefDescription() << " has more than one AirflowNetwork EquivalentDuct attached, returning first.");
382 ✗ return myAFN[0];
383 }
384 ✗ return boost::none;
385 ✗ }
386
387 15 boost::optional<Curve> CoilHeatingWaterToAirHeatPumpEquationFit_Impl::optionalHeatingCapacityCurve() const {
388
2/2
✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
15 return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::HeatingCapacityCurveName);
389 }
390
391 15 Curve CoilHeatingWaterToAirHeatPumpEquationFit_Impl::heatingCapacityCurve() const {
392
1/1
✓ Branch 1 taken 15 times.
15 boost::optional<Curve> value = optionalHeatingCapacityCurve();
393
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 15 times.
15 if (!value) {
394 ✗ LOG_AND_THROW(briefDescription() << " does not have a Heating Capacity Curve attached.");
395 }
396
2/2
✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
30 return *value;
397 15 }
398
399 17 bool CoilHeatingWaterToAirHeatPumpEquationFit_Impl::setHeatingCapacityCurve(const Curve& heatingCapacityCurve) {
400
2/2
✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
17 const bool result = setPointer(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::HeatingCapacityCurveName, heatingCapacityCurve.handle());
401 17 return result;
402 }
403
404 15 boost::optional<Curve> CoilHeatingWaterToAirHeatPumpEquationFit_Impl::optionalHeatingPowerConsumptionCurve() const {
405
1/1
✓ Branch 1 taken 15 times.
30 return getObject<ModelObject>().getModelObjectTarget<Curve>(
406
1/1
✓ Branch 1 taken 15 times.
30 OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::HeatingPowerConsumptionCurveName);
407 }
408
409 15 Curve CoilHeatingWaterToAirHeatPumpEquationFit_Impl::heatingPowerConsumptionCurve() const {
410
1/1
✓ Branch 1 taken 15 times.
15 boost::optional<Curve> value = optionalHeatingPowerConsumptionCurve();
411
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 15 times.
15 if (!value) {
412 ✗ LOG_AND_THROW(briefDescription() << " does not have a Heating Power Consumption Curve attached.");
413 }
414
2/2
✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
30 return *value;
415 15 }
416
417 17 bool CoilHeatingWaterToAirHeatPumpEquationFit_Impl::setHeatingPowerConsumptionCurve(const Curve& heatingPowerConsumptionCurve) {
418 const bool result =
419
2/2
✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
17 setPointer(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::HeatingPowerConsumptionCurveName, heatingPowerConsumptionCurve.handle());
420 17 return result;
421 }
422
423 6 boost::optional<Curve> CoilHeatingWaterToAirHeatPumpEquationFit_Impl::optionalPartLoadFractionCorrelationCurve() const {
424
1/1
✓ Branch 1 taken 6 times.
12 return getObject<ModelObject>().getModelObjectTarget<Curve>(
425
1/1
✓ Branch 1 taken 6 times.
12 OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::PartLoadFractionCorrelationCurveName);
426 }
427
428 6 Curve CoilHeatingWaterToAirHeatPumpEquationFit_Impl::partLoadFractionCorrelationCurve() const {
429
1/1
✓ Branch 1 taken 6 times.
6 boost::optional<Curve> value = optionalPartLoadFractionCorrelationCurve();
430
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
6 if (!value) {
431 ✗ LOG_AND_THROW(briefDescription() << " does not have a Part Load Fraction Correlation Curve attached.");
432 }
433
2/2
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
12 return *value;
434 6 }
435
436 15 bool CoilHeatingWaterToAirHeatPumpEquationFit_Impl::setPartLoadFractionCorrelationCurve(const Curve& partLoadFractionCorrelationCurve) {
437
1/1
✓ Branch 1 taken 15 times.
15 const bool result = setPointer(OS_Coil_Heating_WaterToAirHeatPump_EquationFitFields::PartLoadFractionCorrelationCurveName,
438
1/1
✓ Branch 1 taken 15 times.
15 partLoadFractionCorrelationCurve.handle());
439 15 return result;
440 }
441
442 ✗ boost::optional<double> CoilHeatingWaterToAirHeatPumpEquationFit_Impl::autosizedRatedAirFlowRate() const {
443 // EPLUS-SQL-INCONSISTENCY
444 ✗ return getAutosizedValue("Design Size Rated Air Flow Rate", "m3/s", "COIL:HEATING:WATERTOAIRHEATPUMP:EQUATIONFIT");
445 }
446
447 ✗ boost::optional<double> CoilHeatingWaterToAirHeatPumpEquationFit_Impl::autosizedRatedWaterFlowRate() const {
448 // EPLUS-SQL-INCONSISTENCY
449 ✗ return getAutosizedValue("Design Size Rated Water Flow Rate", "m3/s", "COIL:HEATING:WATERTOAIRHEATPUMP:EQUATIONFIT");
450 }
451
452 ✗ boost::optional<double> CoilHeatingWaterToAirHeatPumpEquationFit_Impl::autosizedRatedHeatingCapacity() const {
453 // EPLUS-SQL-INCONSISTENCY
454 ✗ return getAutosizedValue("Design Size Rated Heating Capacity", "W", "COIL:HEATING:WATERTOAIRHEATPUMP:EQUATIONFIT");
455 }
456
457 ✗ void CoilHeatingWaterToAirHeatPumpEquationFit_Impl::autosize() {
458 ✗ autosizeRatedAirFlowRate();
459 ✗ autosizeRatedWaterFlowRate();
460 ✗ autosizeRatedHeatingCapacity();
461 ✗ }
462
463 ✗ void CoilHeatingWaterToAirHeatPumpEquationFit_Impl::applySizingValues() {
464 ✗ boost::optional<double> val;
465 ✗ val = autosizedRatedAirFlowRate();
466 ✗ if (val) {
467 ✗ setRatedAirFlowRate(val.get());
468 }
469
470 ✗ val = autosizedRatedWaterFlowRate();
471 ✗ if (val) {
472 ✗ setRatedWaterFlowRate(val.get());
473 }
474
475 ✗ val = autosizedRatedHeatingCapacity();
476 ✗ if (val) {
477 ✗ setRatedHeatingCapacity(val.get());
478 }
479 ✗ }
480
481 2 ComponentType CoilHeatingWaterToAirHeatPumpEquationFit_Impl::componentType() const {
482
1/1
✓ Branch 1 taken 2 times.
2 return ComponentType::Heating;
483 }
484
485 2 std::vector<FuelType> CoilHeatingWaterToAirHeatPumpEquationFit_Impl::coolingFuelTypes() const {
486 2 return {};
487 }
488
489 1 std::vector<FuelType> CoilHeatingWaterToAirHeatPumpEquationFit_Impl::heatingFuelTypes() const {
490 1 std::set<FuelType> result;
491
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 result.insert(FuelType::Electricity);
492
2/3
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
2 if (auto p_ = plantLoop()) {
493 ✗ for (auto ft : p_->heatingFuelTypes()) {
494 ✗ result.insert(ft);
495 ✗ }
496 1 }
497
1/1
✓ Branch 3 taken 1 time.
3 return {result.begin(), result.end()};
498 1 }
499
500 2 std::vector<AppGFuelType> CoilHeatingWaterToAirHeatPumpEquationFit_Impl::appGHeatingFuelTypes() const {
501 2 std::set<AppGFuelType> result;
502
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 result.insert(AppGFuelType::HeatPump);
503
3/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
4 if (auto p_ = plantLoop()) {
504
4/4
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 11 taken 1 time.
✓ Branch 12 taken 1 time.
2 for (auto ft : p_->appGHeatingFuelTypes()) {
505
1/1
✓ Branch 1 taken 1 time.
1 result.insert(ft);
506 1 }
507 2 }
508
1/1
✓ Branch 3 taken 2 times.
6 return {result.begin(), result.end()};
509 2 }
510
511 } // namespace detail
512
513 // create a new CoilHeatingWaterToAirHeatPumpEquationFit object in the model's workspace
514 2 CoilHeatingWaterToAirHeatPumpEquationFit::CoilHeatingWaterToAirHeatPumpEquationFit(const Model& model, const Curve& heatingCapacityCurve,
515 2 const Curve& heatingPowerConsumptionCurve)
516 2 : WaterToAirComponent(CoilHeatingWaterToAirHeatPumpEquationFit::iddObjectType(), model) {
517
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 2 times.
✗ Branch 5 not taken.
2 OS_ASSERT(getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>());
518
519
1/1
✓ Branch 1 taken 2 times.
2 auto always_on = model.alwaysOnDiscreteSchedule();
520
1/1
✓ Branch 1 taken 2 times.
2 bool ok = setAvailabilitySchedule(always_on);
521
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
522
523
1/1
✓ Branch 1 taken 2 times.
2 ok = setRatedEnteringWaterTemperature(20);
524
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
525
526
1/1
✓ Branch 1 taken 2 times.
2 ok = setRatedEnteringAirDryBulbTemperature(20);
527
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
528
529
1/1
✓ Branch 1 taken 2 times.
2 ok = setRatioofRatedHeatingCapacitytoRatedCoolingCapacity(1.0);
530
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
531
532
1/1
✓ Branch 1 taken 2 times.
2 ok = setHeatingCapacityCurve(heatingCapacityCurve);
533
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
534
535
1/1
✓ Branch 1 taken 2 times.
2 ok = setHeatingPowerConsumptionCurve(heatingPowerConsumptionCurve);
536
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
537
538 2 constexpr double maximumCyclingRatePerHour = 2.5;
539 2 constexpr double heatPumpTimeConstantSeconds = 60.0;
540 const CurveLinear plfCorrelation =
541
1/1
✓ Branch 1 taken 2 times.
2 CurveLinear::defaultHeatPumpCoilPLFCorrelationCurve(model, maximumCyclingRatePerHour, heatPumpTimeConstantSeconds);
542
543
1/1
✓ Branch 1 taken 2 times.
2 ok = setPartLoadFractionCorrelationCurve(plfCorrelation);
544
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
2 OS_ASSERT(ok);
545 2 }
546
547 // create a new CoilHeatingWaterToAirHeatPumpEquationFit object in the model's workspace
548 12 CoilHeatingWaterToAirHeatPumpEquationFit::CoilHeatingWaterToAirHeatPumpEquationFit(const Model& model)
549 12 : WaterToAirComponent(CoilHeatingWaterToAirHeatPumpEquationFit::iddObjectType(), model) {
550
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 12 times.
✗ Branch 5 not taken.
12 OS_ASSERT(getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>());
551
552
1/1
✓ Branch 1 taken 12 times.
12 auto always_on = model.alwaysOnDiscreteSchedule();
553
1/1
✓ Branch 1 taken 12 times.
12 bool ok = setAvailabilitySchedule(always_on);
554
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
12 OS_ASSERT(ok);
555
556
1/1
✓ Branch 1 taken 12 times.
12 ok = setRatedEnteringWaterTemperature(20);
557
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
12 OS_ASSERT(ok);
558
559
1/1
✓ Branch 1 taken 12 times.
12 ok = setRatedEnteringAirDryBulbTemperature(20);
560
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
12 OS_ASSERT(ok);
561
562
1/1
✓ Branch 1 taken 12 times.
12 ok = setRatioofRatedHeatingCapacitytoRatedCoolingCapacity(1.0);
563
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
12 OS_ASSERT(ok);
564
565
1/1
✓ Branch 1 taken 12 times.
12 CurveQuadLinear heatingCapacityCurve(model);
566
1/1
✓ Branch 1 taken 12 times.
12 heatingCapacityCurve.setCoefficient1Constant(-5.50102734);
567
1/1
✓ Branch 1 taken 12 times.
12 heatingCapacityCurve.setCoefficient2w(-0.96688754);
568
1/1
✓ Branch 1 taken 12 times.
12 heatingCapacityCurve.setCoefficient3x(7.70755007);
569
1/1
✓ Branch 1 taken 12 times.
12 heatingCapacityCurve.setCoefficient4y(0.031928881);
570
1/1
✓ Branch 1 taken 12 times.
12 heatingCapacityCurve.setCoefficient5z(0.028112522);
571
572
1/1
✓ Branch 1 taken 12 times.
12 ok = setHeatingCapacityCurve(heatingCapacityCurve);
573
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
12 OS_ASSERT(ok);
574
575
1/1
✓ Branch 1 taken 12 times.
12 CurveQuadLinear heatingPowerConsumptionCurve(model);
576
1/1
✓ Branch 1 taken 12 times.
12 heatingPowerConsumptionCurve.setCoefficient1Constant(-7.47517858);
577
1/1
✓ Branch 1 taken 12 times.
12 heatingPowerConsumptionCurve.setCoefficient2w(6.40876653);
578
1/1
✓ Branch 1 taken 12 times.
12 heatingPowerConsumptionCurve.setCoefficient3x(1.99711665);
579
1/1
✓ Branch 1 taken 12 times.
12 heatingPowerConsumptionCurve.setCoefficient4y(-0.050682973);
580
1/1
✓ Branch 1 taken 12 times.
12 heatingPowerConsumptionCurve.setCoefficient5z(0.011385145);
581
1/1
✓ Branch 1 taken 12 times.
12 ok = setHeatingPowerConsumptionCurve(heatingPowerConsumptionCurve);
582
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
12 OS_ASSERT(ok);
583
584 12 constexpr double maximumCyclingRatePerHour = 2.5;
585 12 constexpr double heatPumpTimeConstantSeconds = 60.0;
586 const CurveLinear plfCorrelation =
587
1/1
✓ Branch 1 taken 12 times.
12 CurveLinear::defaultHeatPumpCoilPLFCorrelationCurve(model, maximumCyclingRatePerHour, heatPumpTimeConstantSeconds);
588
589
1/1
✓ Branch 1 taken 12 times.
12 ok = setPartLoadFractionCorrelationCurve(plfCorrelation);
590
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
12 OS_ASSERT(ok);
591 12 }
592
593 7778 IddObjectType CoilHeatingWaterToAirHeatPumpEquationFit::iddObjectType() {
594
1/1
✓ Branch 1 taken 7778 times.
7778 return {IddObjectType::OS_Coil_Heating_WaterToAirHeatPump_EquationFit};
595 }
596
597 6 Schedule CoilHeatingWaterToAirHeatPumpEquationFit::availabilitySchedule() const {
598
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->availabilitySchedule();
599 }
600
601 3 boost::optional<double> CoilHeatingWaterToAirHeatPumpEquationFit::ratedAirFlowRate() const {
602
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->ratedAirFlowRate();
603 }
604
605 1 bool CoilHeatingWaterToAirHeatPumpEquationFit::isRatedAirFlowRateDefaulted() const {
606
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->isRatedAirFlowRateDefaulted();
607 }
608
609 5 bool CoilHeatingWaterToAirHeatPumpEquationFit::isRatedAirFlowRateAutosized() const {
610
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->isRatedAirFlowRateAutosized();
611 }
612
613 6 boost::optional<double> CoilHeatingWaterToAirHeatPumpEquationFit::ratedWaterFlowRate() const {
614
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->ratedWaterFlowRate();
615 }
616
617 1 bool CoilHeatingWaterToAirHeatPumpEquationFit::isRatedWaterFlowRateDefaulted() const {
618
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->isRatedWaterFlowRateDefaulted();
619 }
620
621 5 bool CoilHeatingWaterToAirHeatPumpEquationFit::isRatedWaterFlowRateAutosized() const {
622
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->isRatedWaterFlowRateAutosized();
623 }
624
625 6 boost::optional<double> CoilHeatingWaterToAirHeatPumpEquationFit::ratedHeatingCapacity() const {
626
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->ratedHeatingCapacity();
627 }
628
629 1 bool CoilHeatingWaterToAirHeatPumpEquationFit::isRatedHeatingCapacityDefaulted() const {
630
1/1
✓ Branch 3 taken 1 time.
1 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->isRatedHeatingCapacityDefaulted();
631 }
632
633 5 bool CoilHeatingWaterToAirHeatPumpEquationFit::isRatedHeatingCapacityAutosized() const {
634
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->isRatedHeatingCapacityAutosized();
635 }
636
637 6 double CoilHeatingWaterToAirHeatPumpEquationFit::ratedHeatingCoefficientofPerformance() const {
638
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->ratedHeatingCoefficientofPerformance();
639 }
640
641 2 bool CoilHeatingWaterToAirHeatPumpEquationFit::isRatedHeatingCoefficientofPerformanceDefaulted() const {
642
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->isRatedHeatingCoefficientofPerformanceDefaulted();
643 }
644
645 6 double CoilHeatingWaterToAirHeatPumpEquationFit::ratedEnteringWaterTemperature() const {
646
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->ratedEnteringWaterTemperature();
647 }
648
649 6 double CoilHeatingWaterToAirHeatPumpEquationFit::ratedEnteringAirDryBulbTemperature() const {
650
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->ratedEnteringAirDryBulbTemperature();
651 }
652
653 6 double CoilHeatingWaterToAirHeatPumpEquationFit::ratioofRatedHeatingCapacitytoRatedCoolingCapacity() const {
654
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->ratioofRatedHeatingCapacitytoRatedCoolingCapacity();
655 }
656
657 15 bool CoilHeatingWaterToAirHeatPumpEquationFit::setAvailabilitySchedule(Schedule& schedule) {
658
1/1
✓ Branch 3 taken 15 times.
15 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->setAvailabilitySchedule(schedule);
659 }
660
661 ✗ bool CoilHeatingWaterToAirHeatPumpEquationFit::setRatedAirFlowRate(OptionalDouble ratedAirFlowRate) {
662 ✗ return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->setRatedAirFlowRate(ratedAirFlowRate);
663 }
664
665 2 bool CoilHeatingWaterToAirHeatPumpEquationFit::setRatedAirFlowRate(double ratedAirFlowRate) {
666
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->setRatedAirFlowRate(ratedAirFlowRate);
667 }
668
669 1 void CoilHeatingWaterToAirHeatPumpEquationFit::resetRatedAirFlowRate() {
670
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->resetRatedAirFlowRate();
671 1 }
672
673 2 void CoilHeatingWaterToAirHeatPumpEquationFit::autosizeRatedAirFlowRate() {
674
1/1
✓ Branch 3 taken 2 times.
2 getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->autosizeRatedAirFlowRate();
675 2 }
676
677 ✗ bool CoilHeatingWaterToAirHeatPumpEquationFit::setRatedWaterFlowRate(OptionalDouble ratedWaterFlowRate) {
678 ✗ return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->setRatedWaterFlowRate(ratedWaterFlowRate);
679 }
680
681 3 bool CoilHeatingWaterToAirHeatPumpEquationFit::setRatedWaterFlowRate(double ratedWaterFlowRate) {
682
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->setRatedWaterFlowRate(ratedWaterFlowRate);
683 }
684
685 1 void CoilHeatingWaterToAirHeatPumpEquationFit::resetRatedWaterFlowRate() {
686
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->resetRatedWaterFlowRate();
687 1 }
688
689 1 void CoilHeatingWaterToAirHeatPumpEquationFit::autosizeRatedWaterFlowRate() {
690
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->autosizeRatedWaterFlowRate();
691 1 }
692
693 ✗ bool CoilHeatingWaterToAirHeatPumpEquationFit::setRatedHeatingCapacity(OptionalDouble ratedHeatingCapacity) {
694 ✗ return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->setRatedHeatingCapacity(ratedHeatingCapacity);
695 }
696
697 3 bool CoilHeatingWaterToAirHeatPumpEquationFit::setRatedHeatingCapacity(double ratedHeatingCapacity) {
698
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->setRatedHeatingCapacity(ratedHeatingCapacity);
699 }
700
701 1 void CoilHeatingWaterToAirHeatPumpEquationFit::resetRatedHeatingCapacity() {
702
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->resetRatedHeatingCapacity();
703 1 }
704
705 1 void CoilHeatingWaterToAirHeatPumpEquationFit::autosizeRatedHeatingCapacity() {
706
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->autosizeRatedHeatingCapacity();
707 1 }
708
709 3 bool CoilHeatingWaterToAirHeatPumpEquationFit::setRatedHeatingCoefficientofPerformance(double ratedHeatingCoefficientofPerformance) {
710
1/1
✓ Branch 3 taken 3 times.
6 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->setRatedHeatingCoefficientofPerformance(
711 6 ratedHeatingCoefficientofPerformance);
712 }
713
714 1 void CoilHeatingWaterToAirHeatPumpEquationFit::resetRatedHeatingCoefficientofPerformance() {
715
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->resetRatedHeatingCoefficientofPerformance();
716 1 }
717
718 17 bool CoilHeatingWaterToAirHeatPumpEquationFit::setRatedEnteringWaterTemperature(double ratedEnteringWaterTemperature) {
719
1/1
✓ Branch 3 taken 17 times.
17 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->setRatedEnteringWaterTemperature(ratedEnteringWaterTemperature);
720 }
721
722 17 bool CoilHeatingWaterToAirHeatPumpEquationFit::setRatedEnteringAirDryBulbTemperature(double ratedEnteringAirDryBulbTemperature) {
723
1/1
✓ Branch 3 taken 17 times.
34 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->setRatedEnteringAirDryBulbTemperature(
724 34 ratedEnteringAirDryBulbTemperature);
725 }
726
727 17 bool CoilHeatingWaterToAirHeatPumpEquationFit::setRatioofRatedHeatingCapacitytoRatedCoolingCapacity(
728 double ratioofRatedHeatingCapacitytoRatedCoolingCapacity) {
729
1/1
✓ Branch 3 taken 17 times.
34 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->setRatioofRatedHeatingCapacitytoRatedCoolingCapacity(
730 34 ratioofRatedHeatingCapacitytoRatedCoolingCapacity);
731 }
732
733 ✗ boost::optional<double> CoilHeatingWaterToAirHeatPumpEquationFit::autosizedRatedAirFlowRate() const {
734 ✗ return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->autosizedRatedAirFlowRate();
735 }
736
737 ✗ boost::optional<double> CoilHeatingWaterToAirHeatPumpEquationFit::autosizedRatedWaterFlowRate() const {
738 ✗ return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->autosizedRatedWaterFlowRate();
739 }
740
741 ✗ boost::optional<double> CoilHeatingWaterToAirHeatPumpEquationFit::autosizedRatedHeatingCapacity() const {
742 ✗ return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->autosizedRatedHeatingCapacity();
743 }
744
745 15 Curve CoilHeatingWaterToAirHeatPumpEquationFit::heatingCapacityCurve() const {
746
1/1
✓ Branch 3 taken 15 times.
15 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->heatingCapacityCurve();
747 }
748
749 17 bool CoilHeatingWaterToAirHeatPumpEquationFit::setHeatingCapacityCurve(const Curve& heatingCapacityCurve) {
750
1/1
✓ Branch 3 taken 17 times.
17 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->setHeatingCapacityCurve(heatingCapacityCurve);
751 }
752
753 15 Curve CoilHeatingWaterToAirHeatPumpEquationFit::heatingPowerConsumptionCurve() const {
754
1/1
✓ Branch 3 taken 15 times.
15 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->heatingPowerConsumptionCurve();
755 }
756
757 17 bool CoilHeatingWaterToAirHeatPumpEquationFit::setHeatingPowerConsumptionCurve(const Curve& heatingPowerConsumptionCurve) {
758
1/1
✓ Branch 3 taken 17 times.
17 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->setHeatingPowerConsumptionCurve(heatingPowerConsumptionCurve);
759 }
760
761 6 Curve CoilHeatingWaterToAirHeatPumpEquationFit::partLoadFractionCorrelationCurve() const {
762
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->partLoadFractionCorrelationCurve();
763 }
764
765 15 bool CoilHeatingWaterToAirHeatPumpEquationFit::setPartLoadFractionCorrelationCurve(const Curve& partLoadFractionCorrelationCurve) {
766
1/1
✓ Branch 3 taken 15 times.
15 return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->setPartLoadFractionCorrelationCurve(partLoadFractionCorrelationCurve);
767 }
768
769 ✗ AirflowNetworkEquivalentDuct CoilHeatingWaterToAirHeatPumpEquationFit::getAirflowNetworkEquivalentDuct(double length, double diameter) {
770 ✗ return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->getAirflowNetworkEquivalentDuct(length, diameter);
771 }
772
773 ✗ boost::optional<AirflowNetworkEquivalentDuct> CoilHeatingWaterToAirHeatPumpEquationFit::airflowNetworkEquivalentDuct() const {
774 ✗ return getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->airflowNetworkEquivalentDuct();
775 }
776
777 /// @cond
778 4 CoilHeatingWaterToAirHeatPumpEquationFit::CoilHeatingWaterToAirHeatPumpEquationFit(
779 4 std::shared_ptr<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl> impl)
780
1/1
✓ Branch 3 taken 4 times.
4 : WaterToAirComponent(std::move(impl)) {}
781
782 // DEPRECATED
783 ✗ double CoilHeatingWaterToAirHeatPumpEquationFit::heatingCapacityCoefficient1() const {
784 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use CoilHeatingWaterToAirHeatPumpEquationFit::heatingCapacityCurve().coefficient1Constant() instead.");
785 ✗ Curve curve = getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->heatingCapacityCurve();
786 ✗ boost::optional<CurveQuadLinear> curveQuadLinear = curve.optionalCast<CurveQuadLinear>();
787 ✗ return curveQuadLinear->coefficient1Constant();
788 ✗ }
789
790 ✗ bool CoilHeatingWaterToAirHeatPumpEquationFit::setHeatingCapacityCoefficient1(double heatingCapacityCoefficient1) {
791 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use CoilHeatingWaterToAirHeatPumpEquationFit::heatingCapacityCurve().setCoefficient1Constant(double) instead.");
792 ✗ Curve curve = getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->heatingCapacityCurve();
793 ✗ boost::optional<CurveQuadLinear> curveQuadLinear = curve.optionalCast<CurveQuadLinear>();
794 ✗ return curveQuadLinear->setCoefficient1Constant(heatingCapacityCoefficient1);
795 ✗ }
796
797 ✗ double CoilHeatingWaterToAirHeatPumpEquationFit::heatingCapacityCoefficient2() const {
798 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use CoilHeatingWaterToAirHeatPumpEquationFit::heatingCapacityCurve().coefficient2w() instead.");
799 ✗ Curve curve = getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->heatingCapacityCurve();
800 ✗ boost::optional<CurveQuadLinear> curveQuadLinear = curve.optionalCast<CurveQuadLinear>();
801 ✗ return curveQuadLinear->coefficient2w();
802 ✗ }
803
804 ✗ bool CoilHeatingWaterToAirHeatPumpEquationFit::setHeatingCapacityCoefficient2(double heatingCapacityCoefficient2) {
805 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use CoilHeatingWaterToAirHeatPumpEquationFit::heatingCapacityCurve().setCoefficient2w(double) instead.");
806 ✗ Curve curve = getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->heatingCapacityCurve();
807 ✗ boost::optional<CurveQuadLinear> curveQuadLinear = curve.optionalCast<CurveQuadLinear>();
808 ✗ return curveQuadLinear->setCoefficient2w(heatingCapacityCoefficient2);
809 ✗ }
810
811 ✗ double CoilHeatingWaterToAirHeatPumpEquationFit::heatingCapacityCoefficient3() const {
812 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use CoilHeatingWaterToAirHeatPumpEquationFit::heatingCapacityCurve().coefficient3x() instead.");
813 ✗ Curve curve = getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->heatingCapacityCurve();
814 ✗ boost::optional<CurveQuadLinear> curveQuadLinear = curve.optionalCast<CurveQuadLinear>();
815 ✗ return curveQuadLinear->coefficient3x();
816 ✗ }
817
818 ✗ bool CoilHeatingWaterToAirHeatPumpEquationFit::setHeatingCapacityCoefficient3(double heatingCapacityCoefficient3) {
819 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use CoilHeatingWaterToAirHeatPumpEquationFit::heatingCapacityCurve().setCoefficient3x(double) instead.");
820 ✗ Curve curve = getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->heatingCapacityCurve();
821 ✗ boost::optional<CurveQuadLinear> curveQuadLinear = curve.optionalCast<CurveQuadLinear>();
822 ✗ return curveQuadLinear->setCoefficient3x(heatingCapacityCoefficient3);
823 ✗ }
824
825 ✗ double CoilHeatingWaterToAirHeatPumpEquationFit::heatingCapacityCoefficient4() const {
826 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use CoilHeatingWaterToAirHeatPumpEquationFit::heatingCapacityCurve().coefficient4y() instead.");
827 ✗ Curve curve = getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->heatingCapacityCurve();
828 ✗ boost::optional<CurveQuadLinear> curveQuadLinear = curve.optionalCast<CurveQuadLinear>();
829 ✗ return curveQuadLinear->coefficient4y();
830 ✗ }
831
832 ✗ bool CoilHeatingWaterToAirHeatPumpEquationFit::setHeatingCapacityCoefficient4(double heatingCapacityCoefficient4) {
833 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use CoilHeatingWaterToAirHeatPumpEquationFit::heatingCapacityCurve().setCoefficient4y(double) instead.");
834 ✗ Curve curve = getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->heatingCapacityCurve();
835 ✗ boost::optional<CurveQuadLinear> curveQuadLinear = curve.optionalCast<CurveQuadLinear>();
836 ✗ return curveQuadLinear->setCoefficient4y(heatingCapacityCoefficient4);
837 ✗ }
838
839 ✗ double CoilHeatingWaterToAirHeatPumpEquationFit::heatingCapacityCoefficient5() const {
840 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use CoilHeatingWaterToAirHeatPumpEquationFit::heatingCapacityCurve().coefficient5z() instead.");
841 ✗ Curve curve = getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->heatingCapacityCurve();
842 ✗ boost::optional<CurveQuadLinear> curveQuadLinear = curve.optionalCast<CurveQuadLinear>();
843 ✗ return curveQuadLinear->coefficient5z();
844 ✗ }
845
846 ✗ bool CoilHeatingWaterToAirHeatPumpEquationFit::setHeatingCapacityCoefficient5(double heatingCapacityCoefficient5) {
847 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use CoilHeatingWaterToAirHeatPumpEquationFit::heatingCapacityCurve().setCoefficient5z(double) instead.");
848 ✗ Curve curve = getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->heatingCapacityCurve();
849 ✗ boost::optional<CurveQuadLinear> curveQuadLinear = curve.optionalCast<CurveQuadLinear>();
850 ✗ return curveQuadLinear->setCoefficient5z(heatingCapacityCoefficient5);
851 ✗ }
852
853 ✗ double CoilHeatingWaterToAirHeatPumpEquationFit::heatingPowerConsumptionCoefficient1() const {
854 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use CoilHeatingWaterToAirHeatPumpEquationFit::heatingPowerConsumptionCurve().coefficient1Constant() instead.");
855 ✗ Curve curve = getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->heatingPowerConsumptionCurve();
856 ✗ boost::optional<CurveQuadLinear> curveQuadLinear = curve.optionalCast<CurveQuadLinear>();
857 ✗ return curveQuadLinear->coefficient1Constant();
858 ✗ }
859
860 ✗ bool CoilHeatingWaterToAirHeatPumpEquationFit::setHeatingPowerConsumptionCoefficient1(double heatingPowerConsumptionCoefficient1) {
861 ✗ DEPRECATED_AT_MSG(3, 2, 0,
862 "Use "
863 "CoilHeatingWaterToAirHeatPumpEquationFit::heatingPowerConsumptionCurve().setCoefficient1Constant(double) instead.");
864 ✗ Curve curve = getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->heatingPowerConsumptionCurve();
865 ✗ boost::optional<CurveQuadLinear> curveQuadLinear = curve.optionalCast<CurveQuadLinear>();
866 ✗ return curveQuadLinear->setCoefficient1Constant(heatingPowerConsumptionCoefficient1);
867 ✗ }
868
869 ✗ double CoilHeatingWaterToAirHeatPumpEquationFit::heatingPowerConsumptionCoefficient2() const {
870 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use CoilHeatingWaterToAirHeatPumpEquationFit::heatingPowerConsumptionCurve().coefficient2w() instead.");
871 ✗ Curve curve = getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->heatingPowerConsumptionCurve();
872 ✗ boost::optional<CurveQuadLinear> curveQuadLinear = curve.optionalCast<CurveQuadLinear>();
873 ✗ return curveQuadLinear->coefficient2w();
874 ✗ }
875
876 ✗ bool CoilHeatingWaterToAirHeatPumpEquationFit::setHeatingPowerConsumptionCoefficient2(double heatingPowerConsumptionCoefficient2) {
877 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use CoilHeatingWaterToAirHeatPumpEquationFit::heatingPowerConsumptionCurve().setCoefficient2w(double) instead.");
878 ✗ Curve curve = getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->heatingPowerConsumptionCurve();
879 ✗ boost::optional<CurveQuadLinear> curveQuadLinear = curve.optionalCast<CurveQuadLinear>();
880 ✗ return curveQuadLinear->setCoefficient2w(heatingPowerConsumptionCoefficient2);
881 ✗ }
882
883 ✗ double CoilHeatingWaterToAirHeatPumpEquationFit::heatingPowerConsumptionCoefficient3() const {
884 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use CoilHeatingWaterToAirHeatPumpEquationFit::heatingPowerConsumptionCurve().coefficient3x() instead.");
885 ✗ Curve curve = getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->heatingPowerConsumptionCurve();
886 ✗ boost::optional<CurveQuadLinear> curveQuadLinear = curve.optionalCast<CurveQuadLinear>();
887 ✗ return curveQuadLinear->coefficient3x();
888 ✗ }
889
890 ✗ bool CoilHeatingWaterToAirHeatPumpEquationFit::setHeatingPowerConsumptionCoefficient3(double heatingPowerConsumptionCoefficient3) {
891 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use CoilHeatingWaterToAirHeatPumpEquationFit::heatingPowerConsumptionCurve().setCoefficient3x(double) instead.");
892 ✗ Curve curve = getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->heatingPowerConsumptionCurve();
893 ✗ boost::optional<CurveQuadLinear> curveQuadLinear = curve.optionalCast<CurveQuadLinear>();
894 ✗ return curveQuadLinear->setCoefficient3x(heatingPowerConsumptionCoefficient3);
895 ✗ }
896
897 ✗ double CoilHeatingWaterToAirHeatPumpEquationFit::heatingPowerConsumptionCoefficient4() const {
898 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use CoilHeatingWaterToAirHeatPumpEquationFit::heatingPowerConsumptionCurve().coefficient4y() instead.");
899 ✗ Curve curve = getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->heatingPowerConsumptionCurve();
900 ✗ boost::optional<CurveQuadLinear> curveQuadLinear = curve.optionalCast<CurveQuadLinear>();
901 ✗ return curveQuadLinear->coefficient4y();
902 ✗ }
903
904 ✗ bool CoilHeatingWaterToAirHeatPumpEquationFit::setHeatingPowerConsumptionCoefficient4(double heatingPowerConsumptionCoefficient4) {
905 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use CoilHeatingWaterToAirHeatPumpEquationFit::heatingPowerConsumptionCurve().setCoefficient4y(double) instead.");
906 ✗ Curve curve = getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->heatingPowerConsumptionCurve();
907 ✗ boost::optional<CurveQuadLinear> curveQuadLinear = curve.optionalCast<CurveQuadLinear>();
908 ✗ return curveQuadLinear->setCoefficient4y(heatingPowerConsumptionCoefficient4);
909 ✗ }
910
911 ✗ double CoilHeatingWaterToAirHeatPumpEquationFit::heatingPowerConsumptionCoefficient5() const {
912 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use CoilHeatingWaterToAirHeatPumpEquationFit::heatingPowerConsumptionCurve().coefficient5z() instead.");
913 ✗ Curve curve = getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->heatingPowerConsumptionCurve();
914 ✗ boost::optional<CurveQuadLinear> curveQuadLinear = curve.optionalCast<CurveQuadLinear>();
915 ✗ return curveQuadLinear->coefficient5z();
916 ✗ }
917
918 ✗ bool CoilHeatingWaterToAirHeatPumpEquationFit::setHeatingPowerConsumptionCoefficient5(double heatingPowerConsumptionCoefficient5) {
919 ✗ DEPRECATED_AT_MSG(3, 2, 0, "Use CoilHeatingWaterToAirHeatPumpEquationFit::heatingPowerConsumptionCurve().setCoefficient5z(double) instead.");
920 ✗ Curve curve = getImpl<detail::CoilHeatingWaterToAirHeatPumpEquationFit_Impl>()->heatingPowerConsumptionCurve();
921 ✗ boost::optional<CurveQuadLinear> curveQuadLinear = curve.optionalCast<CurveQuadLinear>();
922 ✗ return curveQuadLinear->setCoefficient5z(heatingPowerConsumptionCoefficient5);
923 ✗ }
924
925 /// @endcond
926
927 } // namespace model
928 } // namespace openstudio
929