GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 90.4% 604 / 0 / 668
Functions: 89.7% 157 / 0 / 175
Branches: 53.0% 385 / 0 / 726

src/model/HeatPumpAirToWaterFuelFiredHeating.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 "HeatPumpAirToWaterFuelFiredHeating.hpp"
7 #include "HeatPumpAirToWaterFuelFiredHeating_Impl.hpp"
8
9 #include "Model.hpp"
10 #include "Curve.hpp"
11 #include "Curve_Impl.hpp"
12 #include "CurveBiquadratic.hpp"
13 #include "CurveBiquadratic_Impl.hpp"
14 #include "CurveQuadratic.hpp"
15 #include "CurveQuadratic_Impl.hpp"
16 #include "Node.hpp"
17 #include "Node_Impl.hpp"
18 #include "HeatPumpAirToWaterFuelFiredCooling.hpp"
19 #include "HeatPumpAirToWaterFuelFiredCooling_Impl.hpp"
20
21 #include "../utilities/core/Assert.hpp"
22 #include "../utilities/data/DataEnums.hpp"
23
24 #include <utilities/idd/IddFactory.hxx>
25 #include <utilities/idd/IddEnums.hxx>
26 #include <utilities/idd/OS_HeatPump_AirToWater_FuelFired_Heating_FieldEnums.hxx>
27
28 namespace openstudio {
29 namespace model {
30
31 namespace detail {
32
33 12 HeatPumpAirToWaterFuelFiredHeating_Impl::HeatPumpAirToWaterFuelFiredHeating_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
34 12 : StraightComponent_Impl(idfObject, model, keepHandle) {
35
4/6
✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
✓ Branch 7 taken 12 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 12 times.
✗ Branch 13 not taken.
12 OS_ASSERT(idfObject.iddObject().type() == HeatPumpAirToWaterFuelFiredHeating::iddObjectType());
36 12 }
37
38 1 HeatPumpAirToWaterFuelFiredHeating_Impl::HeatPumpAirToWaterFuelFiredHeating_Impl(const openstudio::detail::WorkspaceObject_Impl& other,
39 1 Model_Impl* model, bool keepHandle)
40 1 : StraightComponent_Impl(other, model, keepHandle) {
41
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() == HeatPumpAirToWaterFuelFiredHeating::iddObjectType());
42 1 }
43
44 7 HeatPumpAirToWaterFuelFiredHeating_Impl::HeatPumpAirToWaterFuelFiredHeating_Impl(const HeatPumpAirToWaterFuelFiredHeating_Impl& other,
45 7 Model_Impl* model, bool keepHandle)
46 7 : StraightComponent_Impl(other, model, keepHandle) {}
47
48 ✗ const std::vector<std::string>& HeatPumpAirToWaterFuelFiredHeating_Impl::outputVariableNames() const {
49 static std::vector<std::string> result{"Fuel-fired Absorption HeatPump Load Side Heat Transfer Rate",
50 "Fuel-fired Absorption HeatPump Load Side Heat Transfer Energy",
51 "Fuel-fired Absorption HeatPump Inlet Temperature",
52 "Fuel-fired Absorption HeatPump Outlet Temperature",
53 "Fuel-fired Absorption HeatPump Fuel Rate",
54 "Fuel-fired Absorption HeatPump Electricity Rate",
55 "Fuel-fired Absorption HeatPump Fuel Energy",
56 "Fuel-fired Absorption HeatPump Electricity Energy",
57 "Fuel-fired Absorption HeatPump Mass Flow Rate",
58 ✗ "Fuel-fired Absorption HeatPump Volumetric Flow Rate"};
59 ✗ return result;
60 ✗ }
61
62 ✗ IddObjectType HeatPumpAirToWaterFuelFiredHeating_Impl::iddObjectType() const {
63 ✗ return HeatPumpAirToWaterFuelFiredHeating::iddObjectType();
64 }
65
66 13 unsigned HeatPumpAirToWaterFuelFiredHeating_Impl::inletPort() const {
67 13 return OS_HeatPump_AirToWater_FuelFired_HeatingFields::WaterInletNodeName;
68 }
69
70 33 unsigned HeatPumpAirToWaterFuelFiredHeating_Impl::outletPort() const {
71 33 return OS_HeatPump_AirToWater_FuelFired_HeatingFields::WaterOutletNodeName;
72 }
73
74 7 bool HeatPumpAirToWaterFuelFiredHeating_Impl::addToNode(Node& node) {
75
3/3
✓ Branch 1 taken 7 times.
✓ Branch 3 taken 5 times.
✓ Branch 4 taken 2 times.
14 if (boost::optional<PlantLoop> plant = node.plantLoop()) {
76
5/5
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✓ Branch 10 taken 4 times.
✓ Branch 11 taken 1 time.
10 if (plant->supplyComponent(node.handle())) {
77
1/1
✓ Branch 1 taken 4 times.
4 return StraightComponent_Impl::addToNode(node);
78 }
79 7 }
80
81 3 return false;
82 }
83
84 3 ModelObject HeatPumpAirToWaterFuelFiredHeating_Impl::clone(Model model) const {
85
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 auto moClone = StraightComponent_Impl::clone(model);
86
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
6 moClone.setString(OS_HeatPump_AirToWater_FuelFired_HeatingFields::CompanionCoolingHeatPumpName, "");
87 3 return moClone;
88 ✗ }
89
90 8 boost::optional<HeatPumpAirToWaterFuelFiredCooling> HeatPumpAirToWaterFuelFiredHeating_Impl::companionCoolingHeatPump() const {
91
1/1
✓ Branch 1 taken 8 times.
16 return getObject<ModelObject>().getModelObjectTarget<HeatPumpAirToWaterFuelFiredCooling>(
92
1/1
✓ Branch 1 taken 8 times.
16 OS_HeatPump_AirToWater_FuelFired_HeatingFields::CompanionCoolingHeatPumpName);
93 }
94
95 3 std::string HeatPumpAirToWaterFuelFiredHeating_Impl::fuelType() const {
96
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<std::string> value = getString(OS_HeatPump_AirToWater_FuelFired_HeatingFields::FuelType, true);
97
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
98
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
6 return value.get();
99 3 }
100
101 4 std::string HeatPumpAirToWaterFuelFiredHeating_Impl::endUseSubcategory() const {
102
1/1
✓ Branch 1 taken 4 times.
4 boost::optional<std::string> value = getString(OS_HeatPump_AirToWater_FuelFired_HeatingFields::EndUseSubcategory, true);
103
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
4 OS_ASSERT(value);
104
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
8 return value.get();
105 4 }
106
107 3 bool HeatPumpAirToWaterFuelFiredHeating_Impl::isEndUseSubcategoryDefaulted() const {
108 3 return isEmpty(OS_HeatPump_AirToWater_FuelFired_HeatingFields::EndUseSubcategory);
109 }
110
111 6 boost::optional<double> HeatPumpAirToWaterFuelFiredHeating_Impl::nominalHeatingCapacity() const {
112 6 return getDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::NominalHeatingCapacity, true);
113 }
114
115 4 bool HeatPumpAirToWaterFuelFiredHeating_Impl::isNominalHeatingCapacityAutosized() const {
116 4 bool result = false;
117
1/1
✓ Branch 1 taken 4 times.
4 boost::optional<std::string> value = getString(OS_HeatPump_AirToWater_FuelFired_HeatingFields::NominalHeatingCapacity, true);
118
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 if (value) {
119
3/3
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
8 result = openstudio::istringEqual(value.get(), "autosize");
120 }
121 4 return result;
122 4 }
123
124 ✗ boost::optional<double> HeatPumpAirToWaterFuelFiredHeating_Impl::autosizedNominalHeatingCapacity() {
125 ✗ return getAutosizedValue("Design Size Nominal Capacity", "W");
126 }
127
128 3 double HeatPumpAirToWaterFuelFiredHeating_Impl::nominalCOP() const {
129
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::NominalCOP, true);
130
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
131
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
132 }
133
134 6 boost::optional<double> HeatPumpAirToWaterFuelFiredHeating_Impl::designFlowRate() const {
135 6 return getDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::DesignFlowRate, true);
136 }
137
138 4 bool HeatPumpAirToWaterFuelFiredHeating_Impl::isDesignFlowRateAutosized() const {
139 4 bool result = false;
140
1/1
✓ Branch 1 taken 4 times.
4 boost::optional<std::string> value = getString(OS_HeatPump_AirToWater_FuelFired_HeatingFields::DesignFlowRate, true);
141
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 if (value) {
142
3/3
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
8 result = openstudio::istringEqual(value.get(), "autosize");
143 }
144 4 return result;
145 4 }
146
147 ✗ boost::optional<double> HeatPumpAirToWaterFuelFiredHeating_Impl::autosizedDesignFlowRate() {
148 ✗ return getAutosizedValue("Design Size Load Side Volume Flow Rate", "m3/s");
149 }
150
151 3 double HeatPumpAirToWaterFuelFiredHeating_Impl::designSupplyTemperature() const {
152
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::DesignSupplyTemperature, true);
153
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
154
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
155 }
156
157 6 boost::optional<double> HeatPumpAirToWaterFuelFiredHeating_Impl::designTemperatureLift() const {
158 6 return getDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::DesignTemperatureLift, true);
159 }
160
161 4 bool HeatPumpAirToWaterFuelFiredHeating_Impl::isDesignTemperatureLiftAutosized() const {
162 4 bool result = false;
163
1/1
✓ Branch 1 taken 4 times.
4 boost::optional<std::string> value = getString(OS_HeatPump_AirToWater_FuelFired_HeatingFields::DesignTemperatureLift, true);
164
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 if (value) {
165
3/3
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
8 result = openstudio::istringEqual(value.get(), "autosize");
166 }
167 4 return result;
168 4 }
169
170 ✗ boost::optional<double> HeatPumpAirToWaterFuelFiredHeating_Impl::autosizedDesignTemperatureLift() {
171 // TODO: This entire field is actually never used in E+ as of 23.1.0-IOFreeze
172 ✗ return getAutosizedValue("TODO_CHECK_SQL Design Temperature Lift", "deltaC");
173 }
174
175 3 double HeatPumpAirToWaterFuelFiredHeating_Impl::sizingFactor() const {
176
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::SizingFactor, true);
177
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
178
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
179 }
180
181 3 std::string HeatPumpAirToWaterFuelFiredHeating_Impl::flowMode() const {
182
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<std::string> value = getString(OS_HeatPump_AirToWater_FuelFired_HeatingFields::FlowMode, true);
183
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
184
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
6 return value.get();
185 3 }
186
187 3 std::string HeatPumpAirToWaterFuelFiredHeating_Impl::outdoorAirTemperatureCurveInputVariable() const {
188
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<std::string> value = getString(OS_HeatPump_AirToWater_FuelFired_HeatingFields::OutdoorAirTemperatureCurveInputVariable, true);
189
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
190
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
6 return value.get();
191 3 }
192
193 3 std::string HeatPumpAirToWaterFuelFiredHeating_Impl::waterTemperatureCurveInputVariable() const {
194
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<std::string> value = getString(OS_HeatPump_AirToWater_FuelFired_HeatingFields::WaterTemperatureCurveInputVariable, true);
195
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
196
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
6 return value.get();
197 3 }
198
199 5 Curve HeatPumpAirToWaterFuelFiredHeating_Impl::normalizedCapacityFunctionofTemperatureCurve() const {
200
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<Curve> value = optionalNormalizedCapacityFunctionofTemperatureCurve();
201
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
5 if (!value) {
202 ✗ LOG_AND_THROW(briefDescription() << " does not have an Normalized Capacity Function of Temperature Curve attached.");
203 }
204
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
10 return value.get();
205 5 }
206
207 5 Curve HeatPumpAirToWaterFuelFiredHeating_Impl::fuelEnergyInputRatioFunctionofTemperatureCurve() const {
208
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<Curve> value = optionalFuelEnergyInputRatioFunctionofTemperatureCurve();
209
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
5 if (!value) {
210 ✗ LOG_AND_THROW(briefDescription() << " does not have an Fuel Energy Input Ratio Function of Temperature Curve attached.");
211 }
212
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
10 return value.get();
213 5 }
214
215 5 Curve HeatPumpAirToWaterFuelFiredHeating_Impl::fuelEnergyInputRatioFunctionofPLRCurve() const {
216
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<Curve> value = optionalFuelEnergyInputRatioFunctionofPLRCurve();
217
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
5 if (!value) {
218 ✗ LOG_AND_THROW(briefDescription() << " does not have an Fuel Energy Input Ratio Function of PLR Curve attached.");
219 }
220
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
10 return value.get();
221 5 }
222
223 3 double HeatPumpAirToWaterFuelFiredHeating_Impl::minimumPartLoadRatio() const {
224
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::MinimumPartLoadRatio, true);
225
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
226
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
227 }
228
229 3 double HeatPumpAirToWaterFuelFiredHeating_Impl::maximumPartLoadRatio() const {
230
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::MaximumPartLoadRatio, true);
231
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
232
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
233 }
234
235 3 std::string HeatPumpAirToWaterFuelFiredHeating_Impl::defrostControlType() const {
236
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<std::string> value = getString(OS_HeatPump_AirToWater_FuelFired_HeatingFields::DefrostControlType, true);
237
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
238
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
6 return value.get();
239 3 }
240
241 3 double HeatPumpAirToWaterFuelFiredHeating_Impl::defrostOperationTimeFraction() const {
242
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::DefrostOperationTimeFraction, true);
243
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
244
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
245 }
246
247 5 boost::optional<Curve> HeatPumpAirToWaterFuelFiredHeating_Impl::fuelEnergyInputRatioDefrostAdjustmentCurve() const {
248
1/1
✓ Branch 1 taken 5 times.
10 return getObject<ModelObject>().getModelObjectTarget<Curve>(
249
1/1
✓ Branch 1 taken 5 times.
10 OS_HeatPump_AirToWater_FuelFired_HeatingFields::FuelEnergyInputRatioDefrostAdjustmentCurveName);
250 }
251
252 3 double HeatPumpAirToWaterFuelFiredHeating_Impl::resistiveDefrostHeaterCapacity() const {
253
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::ResistiveDefrostHeaterCapacity, true);
254
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
255
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
256 }
257
258 3 double HeatPumpAirToWaterFuelFiredHeating_Impl::maximumOutdoorDrybulbTemperatureforDefrostOperation() const {
259 boost::optional<double> value =
260
1/1
✓ Branch 1 taken 3 times.
3 getDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::MaximumOutdoorDrybulbTemperatureforDefrostOperation, true);
261
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
262
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
263 }
264
265 5 boost::optional<Curve> HeatPumpAirToWaterFuelFiredHeating_Impl::cyclingRatioFactorCurve() const {
266
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_HeatPump_AirToWater_FuelFired_HeatingFields::CyclingRatioFactorCurveName);
267 }
268
269 3 double HeatPumpAirToWaterFuelFiredHeating_Impl::nominalAuxiliaryElectricPower() const {
270
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::NominalAuxiliaryElectricPower, true);
271
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
272
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
273 }
274
275 5 boost::optional<Curve> HeatPumpAirToWaterFuelFiredHeating_Impl::auxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve() const {
276
1/1
✓ Branch 1 taken 5 times.
10 return getObject<ModelObject>().getModelObjectTarget<Curve>(
277
1/1
✓ Branch 1 taken 5 times.
10 OS_HeatPump_AirToWater_FuelFired_HeatingFields::AuxiliaryElectricEnergyInputRatioFunctionofTemperatureCurveName);
278 }
279
280 5 boost::optional<Curve> HeatPumpAirToWaterFuelFiredHeating_Impl::auxiliaryElectricEnergyInputRatioFunctionofPLRCurve() const {
281
1/1
✓ Branch 1 taken 5 times.
10 return getObject<ModelObject>().getModelObjectTarget<Curve>(
282
1/1
✓ Branch 1 taken 5 times.
10 OS_HeatPump_AirToWater_FuelFired_HeatingFields::AuxiliaryElectricEnergyInputRatioFunctionofPLRCurveName);
283 }
284
285 3 double HeatPumpAirToWaterFuelFiredHeating_Impl::standbyElectricPower() const {
286
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::StandbyElectricPower, true);
287
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
288
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
289 }
290
291 3 double HeatPumpAirToWaterFuelFiredHeating_Impl::minimumUnloadingRatio() const {
292
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::MinimumUnloadingRatio, true);
293
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
294
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
295 }
296
297 6 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setCompanionCoolingHeatPump(
298 const HeatPumpAirToWaterFuelFiredCooling& heatPumpAirToWaterFuelFiredCooling) {
299 bool result =
300
2/2
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
6 setPointer(OS_HeatPump_AirToWater_FuelFired_HeatingFields::CompanionCoolingHeatPumpName, heatPumpAirToWaterFuelFiredCooling.handle());
301 6 return result;
302 }
303
304 1 void HeatPumpAirToWaterFuelFiredHeating_Impl::resetCompanionCoolingHeatPump() {
305
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_HeatPump_AirToWater_FuelFired_HeatingFields::CompanionCoolingHeatPumpName, "");
306
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
307 1 }
308
309 13 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setFuelType(const std::string& fuelType) {
310 13 bool result = setString(OS_HeatPump_AirToWater_FuelFired_HeatingFields::FuelType, fuelType);
311 13 return result;
312 }
313
314 2 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setEndUseSubcategory(const std::string& endUseSubcategory) {
315 2 bool result = setString(OS_HeatPump_AirToWater_FuelFired_HeatingFields::EndUseSubcategory, endUseSubcategory);
316
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
2 OS_ASSERT(result);
317 2 return result;
318 }
319
320 1 void HeatPumpAirToWaterFuelFiredHeating_Impl::resetEndUseSubcategory() {
321
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_HeatPump_AirToWater_FuelFired_HeatingFields::EndUseSubcategory, "");
322
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
323 1 }
324
325 2 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setNominalHeatingCapacity(double nominalHeatingCapacity) {
326 2 bool result = setDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::NominalHeatingCapacity, nominalHeatingCapacity);
327 2 return result;
328 }
329
330 1 void HeatPumpAirToWaterFuelFiredHeating_Impl::resetNominalHeatingCapacity() {
331
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_HeatPump_AirToWater_FuelFired_HeatingFields::NominalHeatingCapacity, "");
332
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
333 1 }
334
335 12 void HeatPumpAirToWaterFuelFiredHeating_Impl::autosizeNominalHeatingCapacity() {
336
2/2
✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
24 bool result = setString(OS_HeatPump_AirToWater_FuelFired_HeatingFields::NominalHeatingCapacity, "autosize");
337
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
12 OS_ASSERT(result);
338 12 }
339
340 13 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setNominalCOP(double nominalCOP) {
341 13 bool result = setDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::NominalCOP, nominalCOP);
342 13 return result;
343 }
344
345 2 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setDesignFlowRate(double designFlowRate) {
346 2 bool result = setDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::DesignFlowRate, designFlowRate);
347 2 return result;
348 }
349
350 1 void HeatPumpAirToWaterFuelFiredHeating_Impl::resetDesignFlowRate() {
351
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_HeatPump_AirToWater_FuelFired_HeatingFields::DesignFlowRate, "");
352
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
353 1 }
354
355 12 void HeatPumpAirToWaterFuelFiredHeating_Impl::autosizeDesignFlowRate() {
356
2/2
✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
24 bool result = setString(OS_HeatPump_AirToWater_FuelFired_HeatingFields::DesignFlowRate, "autosize");
357
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
12 OS_ASSERT(result);
358 12 }
359
360 13 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setDesignSupplyTemperature(double designSupplyTemperature) {
361 13 bool result = setDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::DesignSupplyTemperature, designSupplyTemperature);
362
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 13 times.
13 OS_ASSERT(result);
363 13 return result;
364 }
365
366 13 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setDesignTemperatureLift(double designTemperatureLift) {
367 13 bool result = setDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::DesignTemperatureLift, designTemperatureLift);
368
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 13 times.
13 OS_ASSERT(result);
369 13 return result;
370 }
371
372 1 void HeatPumpAirToWaterFuelFiredHeating_Impl::autosizeDesignTemperatureLift() {
373
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_HeatPump_AirToWater_FuelFired_HeatingFields::DesignTemperatureLift, "autosize");
374
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
375 1 }
376
377 13 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setSizingFactor(double sizingFactor) {
378 13 bool result = setDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::SizingFactor, sizingFactor);
379 13 return result;
380 }
381
382 13 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setFlowMode(const std::string& flowMode) {
383 13 bool result = setString(OS_HeatPump_AirToWater_FuelFired_HeatingFields::FlowMode, flowMode);
384 13 return result;
385 }
386
387 13 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setOutdoorAirTemperatureCurveInputVariable(
388 const std::string& outdoorAirTemperatureCurveInputVariable) {
389 bool result =
390 13 setString(OS_HeatPump_AirToWater_FuelFired_HeatingFields::OutdoorAirTemperatureCurveInputVariable, outdoorAirTemperatureCurveInputVariable);
391 13 return result;
392 }
393
394 13 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setWaterTemperatureCurveInputVariable(const std::string& waterTemperatureCurveInputVariable) {
395 13 bool result = setString(OS_HeatPump_AirToWater_FuelFired_HeatingFields::WaterTemperatureCurveInputVariable, waterTemperatureCurveInputVariable);
396 13 return result;
397 }
398
399 13 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setNormalizedCapacityFunctionofTemperatureCurve(
400 const Curve& normalizedCapacityFunctionofTemperatureCurve) {
401
1/1
✓ Branch 1 taken 13 times.
13 bool result = setPointer(OS_HeatPump_AirToWater_FuelFired_HeatingFields::NormalizedCapacityFunctionofTemperatureCurveName,
402
1/1
✓ Branch 1 taken 13 times.
13 normalizedCapacityFunctionofTemperatureCurve.handle());
403 13 return result;
404 }
405
406 13 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setFuelEnergyInputRatioFunctionofTemperatureCurve(
407 const Curve& fuelEnergyInputRatioFunctionofTemperatureCurve) {
408
1/1
✓ Branch 1 taken 13 times.
13 bool result = setPointer(OS_HeatPump_AirToWater_FuelFired_HeatingFields::FuelEnergyInputRatioFunctionofTemperatureCurveName,
409
1/1
✓ Branch 1 taken 13 times.
13 fuelEnergyInputRatioFunctionofTemperatureCurve.handle());
410 13 return result;
411 }
412
413 13 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setFuelEnergyInputRatioFunctionofPLRCurve(const Curve& fuelEnergyInputRatioFunctionofPLRCurve) {
414
1/1
✓ Branch 1 taken 13 times.
13 bool result = setPointer(OS_HeatPump_AirToWater_FuelFired_HeatingFields::FuelEnergyInputRatioFunctionofPLRCurveName,
415
1/1
✓ Branch 1 taken 13 times.
13 fuelEnergyInputRatioFunctionofPLRCurve.handle());
416 13 return result;
417 }
418
419 13 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setMinimumPartLoadRatio(double minimumPartLoadRatio) {
420 13 bool result = setDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::MinimumPartLoadRatio, minimumPartLoadRatio);
421 13 return result;
422 }
423
424 13 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setMaximumPartLoadRatio(double maximumPartLoadRatio) {
425 13 bool result = setDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::MaximumPartLoadRatio, maximumPartLoadRatio);
426 13 return result;
427 }
428
429 13 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setDefrostControlType(const std::string& defrostControlType) {
430 13 bool result = setString(OS_HeatPump_AirToWater_FuelFired_HeatingFields::DefrostControlType, defrostControlType);
431 13 return result;
432 }
433
434 13 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setDefrostOperationTimeFraction(double defrostOperationTimeFraction) {
435 13 bool result = setDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::DefrostOperationTimeFraction, defrostOperationTimeFraction);
436 13 return result;
437 }
438
439 2 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setFuelEnergyInputRatioDefrostAdjustmentCurve(
440 const Curve& fuelEnergyInputRatioDefrostAdjustmentCurve) {
441
1/1
✓ Branch 1 taken 2 times.
2 bool result = setPointer(OS_HeatPump_AirToWater_FuelFired_HeatingFields::FuelEnergyInputRatioDefrostAdjustmentCurveName,
442
1/1
✓ Branch 1 taken 2 times.
2 fuelEnergyInputRatioDefrostAdjustmentCurve.handle());
443 2 return result;
444 }
445
446 1 void HeatPumpAirToWaterFuelFiredHeating_Impl::resetFuelEnergyInputRatioDefrostAdjustmentCurve() {
447
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_HeatPump_AirToWater_FuelFired_HeatingFields::FuelEnergyInputRatioDefrostAdjustmentCurveName, "");
448
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
449 1 }
450
451 13 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setResistiveDefrostHeaterCapacity(double resistiveDefrostHeaterCapacity) {
452 13 bool result = setDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::ResistiveDefrostHeaterCapacity, resistiveDefrostHeaterCapacity);
453 13 return result;
454 }
455
456 13 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setMaximumOutdoorDrybulbTemperatureforDefrostOperation(
457 double maximumOutdoorDrybulbTemperatureforDefrostOperation) {
458 13 bool result = setDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::MaximumOutdoorDrybulbTemperatureforDefrostOperation,
459 maximumOutdoorDrybulbTemperatureforDefrostOperation);
460 13 return result;
461 }
462
463 2 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setCyclingRatioFactorCurve(const Curve& cyclingRatioFactorCurve) {
464
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 bool result = setPointer(OS_HeatPump_AirToWater_FuelFired_HeatingFields::CyclingRatioFactorCurveName, cyclingRatioFactorCurve.handle());
465 2 return result;
466 }
467
468 1 void HeatPumpAirToWaterFuelFiredHeating_Impl::resetCyclingRatioFactorCurve() {
469
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_HeatPump_AirToWater_FuelFired_HeatingFields::CyclingRatioFactorCurveName, "");
470
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
471 1 }
472
473 13 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setNominalAuxiliaryElectricPower(double nominalAuxiliaryElectricPower) {
474 13 bool result = setDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::NominalAuxiliaryElectricPower, nominalAuxiliaryElectricPower);
475 13 return result;
476 }
477
478 2 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setAuxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve(
479 const Curve& auxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve) {
480
1/1
✓ Branch 1 taken 2 times.
2 bool result = setPointer(OS_HeatPump_AirToWater_FuelFired_HeatingFields::AuxiliaryElectricEnergyInputRatioFunctionofTemperatureCurveName,
481
1/1
✓ Branch 1 taken 2 times.
2 auxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve.handle());
482 2 return result;
483 }
484
485 1 void HeatPumpAirToWaterFuelFiredHeating_Impl::resetAuxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve() {
486
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_HeatPump_AirToWater_FuelFired_HeatingFields::AuxiliaryElectricEnergyInputRatioFunctionofTemperatureCurveName, "");
487
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
488 1 }
489
490 2 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setAuxiliaryElectricEnergyInputRatioFunctionofPLRCurve(
491 const Curve& auxiliaryElectricEnergyInputRatioFunctionofPLRCurve) {
492
1/1
✓ Branch 1 taken 2 times.
2 bool result = setPointer(OS_HeatPump_AirToWater_FuelFired_HeatingFields::AuxiliaryElectricEnergyInputRatioFunctionofPLRCurveName,
493
1/1
✓ Branch 1 taken 2 times.
2 auxiliaryElectricEnergyInputRatioFunctionofPLRCurve.handle());
494 2 return result;
495 }
496
497 1 void HeatPumpAirToWaterFuelFiredHeating_Impl::resetAuxiliaryElectricEnergyInputRatioFunctionofPLRCurve() {
498
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_HeatPump_AirToWater_FuelFired_HeatingFields::AuxiliaryElectricEnergyInputRatioFunctionofPLRCurveName, "");
499
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
500 1 }
501
502 13 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setStandbyElectricPower(double standbyElectricPower) {
503 13 bool result = setDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::StandbyElectricPower, standbyElectricPower);
504 13 return result;
505 }
506
507 13 bool HeatPumpAirToWaterFuelFiredHeating_Impl::setMinimumUnloadingRatio(double minimumUnloadingRatio) {
508 13 bool result = setDouble(OS_HeatPump_AirToWater_FuelFired_HeatingFields::MinimumUnloadingRatio, minimumUnloadingRatio);
509 13 return result;
510 }
511
512 ✗ void HeatPumpAirToWaterFuelFiredHeating_Impl::autosize() {
513 ✗ autosizeNominalHeatingCapacity();
514 ✗ autosizeDesignFlowRate();
515 ✗ autosizeDesignTemperatureLift();
516 ✗ }
517
518 ✗ void HeatPumpAirToWaterFuelFiredHeating_Impl::applySizingValues() {
519 ✗ boost::optional<double> val;
520 ✗ val = autosizedNominalHeatingCapacity();
521 ✗ if (val) {
522 ✗ setNominalHeatingCapacity(val.get());
523 }
524
525 ✗ val = autosizedDesignFlowRate();
526 ✗ if (val) {
527 ✗ setDesignFlowRate(val.get());
528 }
529
530 ✗ val = autosizedDesignTemperatureLift();
531 ✗ if (val) {
532 ✗ setDesignTemperatureLift(val.get());
533 }
534 ✗ }
535
536 5 boost::optional<Curve> HeatPumpAirToWaterFuelFiredHeating_Impl::optionalNormalizedCapacityFunctionofTemperatureCurve() const {
537
1/1
✓ Branch 1 taken 5 times.
10 return getObject<ModelObject>().getModelObjectTarget<Curve>(
538
1/1
✓ Branch 1 taken 5 times.
10 OS_HeatPump_AirToWater_FuelFired_HeatingFields::NormalizedCapacityFunctionofTemperatureCurveName);
539 }
540
541 5 boost::optional<Curve> HeatPumpAirToWaterFuelFiredHeating_Impl::optionalFuelEnergyInputRatioFunctionofTemperatureCurve() const {
542
1/1
✓ Branch 1 taken 5 times.
10 return getObject<ModelObject>().getModelObjectTarget<Curve>(
543
1/1
✓ Branch 1 taken 5 times.
10 OS_HeatPump_AirToWater_FuelFired_HeatingFields::FuelEnergyInputRatioFunctionofTemperatureCurveName);
544 }
545
546 5 boost::optional<Curve> HeatPumpAirToWaterFuelFiredHeating_Impl::optionalFuelEnergyInputRatioFunctionofPLRCurve() const {
547
1/1
✓ Branch 1 taken 5 times.
10 return getObject<ModelObject>().getModelObjectTarget<Curve>(
548
1/1
✓ Branch 1 taken 5 times.
10 OS_HeatPump_AirToWater_FuelFired_HeatingFields::FuelEnergyInputRatioFunctionofPLRCurveName);
549 }
550
551 4 ComponentType HeatPumpAirToWaterFuelFiredHeating_Impl::componentType() const {
552
1/1
✓ Branch 1 taken 4 times.
4 return ComponentType::Heating;
553 }
554
555 ✗ std::vector<FuelType> HeatPumpAirToWaterFuelFiredHeating_Impl::coolingFuelTypes() const {
556 ✗ return {};
557 }
558
559 ✗ std::vector<FuelType> HeatPumpAirToWaterFuelFiredHeating_Impl::heatingFuelTypes() const {
560 ✗ return {FuelType(fuelType())};
561 }
562
563 ✗ std::vector<AppGFuelType> HeatPumpAirToWaterFuelFiredHeating_Impl::appGHeatingFuelTypes() const {
564 ✗ return {convertFuelTypeToAppG(FuelType(fuelType()))};
565 }
566
567 } // namespace detail
568
569 10 HeatPumpAirToWaterFuelFiredHeating::HeatPumpAirToWaterFuelFiredHeating(const Model& model)
570 10 : StraightComponent(HeatPumpAirToWaterFuelFiredHeating::iddObjectType(), model) {
571
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 10 times.
✗ Branch 5 not taken.
10 OS_ASSERT(getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>());
572
573 10 bool ok = true;
574
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
10 ok = setFuelType("NaturalGas");
575
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
576
1/1
✓ Branch 1 taken 10 times.
10 autosizeNominalHeatingCapacity();
577
1/1
✓ Branch 1 taken 10 times.
10 ok = setNominalCOP(1.0);
578
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
579
1/1
✓ Branch 1 taken 10 times.
10 autosizeDesignFlowRate();
580
1/1
✓ Branch 1 taken 10 times.
10 ok = setDesignSupplyTemperature(60);
581
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
582
1/1
✓ Branch 1 taken 10 times.
10 ok = setDesignTemperatureLift(11.1);
583
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
584
1/1
✓ Branch 1 taken 10 times.
10 ok = setSizingFactor(1.0);
585
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
586
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
10 ok = setFlowMode("NotModulated");
587
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
588
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
10 ok = setOutdoorAirTemperatureCurveInputVariable("DryBulb");
589
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
590
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
10 ok = setWaterTemperatureCurveInputVariable("EnteringCondenser");
591
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
592
593 // From PlantLoopHeatPump_Fuel-Fired.idf
594
595 {
596
1/1
✓ Branch 1 taken 10 times.
10 CurveBiquadratic normalizedCapacityFunctionofTemperatureCurve(model);
597
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
10 normalizedCapacityFunctionofTemperatureCurve.setName("GAHP Heating CapFT");
598
1/1
✓ Branch 1 taken 10 times.
10 normalizedCapacityFunctionofTemperatureCurve.setCoefficient1Constant(1);
599
1/1
✓ Branch 1 taken 10 times.
10 normalizedCapacityFunctionofTemperatureCurve.setCoefficient2x(0);
600
1/1
✓ Branch 1 taken 10 times.
10 normalizedCapacityFunctionofTemperatureCurve.setCoefficient3xPOW2(0);
601
1/1
✓ Branch 1 taken 10 times.
10 normalizedCapacityFunctionofTemperatureCurve.setCoefficient4y(0);
602
1/1
✓ Branch 1 taken 10 times.
10 normalizedCapacityFunctionofTemperatureCurve.setCoefficient5yPOW2(0);
603
1/1
✓ Branch 1 taken 10 times.
10 normalizedCapacityFunctionofTemperatureCurve.setCoefficient6xTIMESY(0);
604
1/1
✓ Branch 1 taken 10 times.
10 normalizedCapacityFunctionofTemperatureCurve.setMinimumValueofx(5);
605
1/1
✓ Branch 1 taken 10 times.
10 normalizedCapacityFunctionofTemperatureCurve.setMaximumValueofx(10);
606
1/1
✓ Branch 1 taken 10 times.
10 normalizedCapacityFunctionofTemperatureCurve.setMinimumValueofy(24);
607
1/1
✓ Branch 1 taken 10 times.
10 normalizedCapacityFunctionofTemperatureCurve.setMaximumValueofy(35);
608
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
20 normalizedCapacityFunctionofTemperatureCurve.setInputUnitTypeforX("Temperature");
609
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
10 normalizedCapacityFunctionofTemperatureCurve.setInputUnitTypeforY("Temperature");
610
1/1
✓ Branch 1 taken 10 times.
10 ok = setNormalizedCapacityFunctionofTemperatureCurve(normalizedCapacityFunctionofTemperatureCurve);
611
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
612 10 }
613
614 {
615
1/1
✓ Branch 1 taken 10 times.
10 CurveBiquadratic fuelEnergyInputRatioFunctionofTemperatureCurve(model);
616
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
10 fuelEnergyInputRatioFunctionofTemperatureCurve.setName("GAHP Heating EIRFT");
617
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofTemperatureCurve.setCoefficient1Constant(1);
618
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofTemperatureCurve.setCoefficient2x(0);
619
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofTemperatureCurve.setCoefficient3xPOW2(0);
620
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofTemperatureCurve.setCoefficient4y(0);
621
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofTemperatureCurve.setCoefficient5yPOW2(0);
622
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofTemperatureCurve.setCoefficient6xTIMESY(0);
623
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofTemperatureCurve.setMinimumValueofx(5);
624
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofTemperatureCurve.setMaximumValueofx(10);
625
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofTemperatureCurve.setMinimumValueofy(24);
626
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofTemperatureCurve.setMaximumValueofy(35);
627
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
20 fuelEnergyInputRatioFunctionofTemperatureCurve.setInputUnitTypeforX("Temperature");
628
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
10 fuelEnergyInputRatioFunctionofTemperatureCurve.setInputUnitTypeforY("Temperature");
629
1/1
✓ Branch 1 taken 10 times.
10 ok = setFuelEnergyInputRatioFunctionofTemperatureCurve(fuelEnergyInputRatioFunctionofTemperatureCurve);
630
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
631 10 }
632
633 {
634
1/1
✓ Branch 1 taken 10 times.
10 CurveQuadratic fuelEnergyInputRatioFunctionofPLRCurve(model);
635
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
10 fuelEnergyInputRatioFunctionofPLRCurve.setName("GAHP Heating EIRFPLR");
636
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofPLRCurve.setCoefficient1Constant(1);
637
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofPLRCurve.setCoefficient2x(0);
638
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofPLRCurve.setCoefficient3xPOW2(0);
639
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofPLRCurve.setMinimumValueofx(0);
640
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofPLRCurve.setMaximumValueofx(1);
641
1/1
✓ Branch 1 taken 10 times.
10 ok = setFuelEnergyInputRatioFunctionofPLRCurve(fuelEnergyInputRatioFunctionofPLRCurve);
642
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
643 10 }
644
1/1
✓ Branch 1 taken 10 times.
10 ok = setMinimumPartLoadRatio(0.1);
645
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
646
1/1
✓ Branch 1 taken 10 times.
10 ok = setMaximumPartLoadRatio(1.0);
647
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
648
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
10 ok = setDefrostControlType("Timed");
649
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
650
1/1
✓ Branch 1 taken 10 times.
10 ok = setDefrostOperationTimeFraction(0);
651
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
652
1/1
✓ Branch 1 taken 10 times.
10 ok = setResistiveDefrostHeaterCapacity(0);
653
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
654
1/1
✓ Branch 1 taken 10 times.
10 ok = setMaximumOutdoorDrybulbTemperatureforDefrostOperation(5);
655
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
656
1/1
✓ Branch 1 taken 10 times.
10 ok = setNominalAuxiliaryElectricPower(0);
657
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
658
1/1
✓ Branch 1 taken 10 times.
10 ok = setStandbyElectricPower(0);
659
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
660
1/1
✓ Branch 1 taken 10 times.
10 ok = setMinimumUnloadingRatio(0.25);
661
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
662 10 }
663
664 1 HeatPumpAirToWaterFuelFiredHeating::HeatPumpAirToWaterFuelFiredHeating(const Model& model,
665 const Curve& normalizedCapacityFunctionofTemperatureCurve,
666 const Curve& fuelEnergyInputRatioFunctionofTemperatureCurve,
667 1 const Curve& fuelEnergyInputRatioFunctionofPLRCurve)
668 1 : StraightComponent(HeatPumpAirToWaterFuelFiredHeating::iddObjectType(), model) {
669
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 1 time.
✗ Branch 5 not taken.
1 OS_ASSERT(getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>());
670
671 1 bool ok = true;
672
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 ok = setFuelType("NaturalGas");
673
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
674
1/1
✓ Branch 1 taken 1 time.
1 autosizeNominalHeatingCapacity();
675
1/1
✓ Branch 1 taken 1 time.
1 ok = setNominalCOP(1.0);
676
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
677
1/1
✓ Branch 1 taken 1 time.
1 autosizeDesignFlowRate();
678
1/1
✓ Branch 1 taken 1 time.
1 ok = setDesignSupplyTemperature(60);
679
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
680
1/1
✓ Branch 1 taken 1 time.
1 ok = setDesignTemperatureLift(11.1);
681
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
682
1/1
✓ Branch 1 taken 1 time.
1 ok = setSizingFactor(1.0);
683
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
684
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 ok = setFlowMode("NotModulated");
685
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
686
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 ok = setOutdoorAirTemperatureCurveInputVariable("DryBulb");
687
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
688
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 ok = setWaterTemperatureCurveInputVariable("EnteringCondenser");
689
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
690
691
1/1
✓ Branch 1 taken 1 time.
1 ok = setNormalizedCapacityFunctionofTemperatureCurve(normalizedCapacityFunctionofTemperatureCurve);
692
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 if (!ok) {
693 ✗ remove();
694 ✗ LOG_AND_THROW("Unable to set " << briefDescription() << "'s normalized capacity modifier function of temperature curve to "
695 << normalizedCapacityFunctionofTemperatureCurve.briefDescription() << ".");
696 }
697
698
1/1
✓ Branch 1 taken 1 time.
1 ok = setFuelEnergyInputRatioFunctionofTemperatureCurve(fuelEnergyInputRatioFunctionofTemperatureCurve);
699
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 if (!ok) {
700 ✗ remove();
701 ✗ LOG_AND_THROW("Unable to set " << briefDescription() << "'s fuel energy input ratio function of temperature curve to "
702 << fuelEnergyInputRatioFunctionofTemperatureCurve.briefDescription() << ".");
703 }
704
705
1/1
✓ Branch 1 taken 1 time.
1 ok = setFuelEnergyInputRatioFunctionofPLRCurve(fuelEnergyInputRatioFunctionofPLRCurve);
706
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 if (!ok) {
707 ✗ remove();
708 ✗ LOG_AND_THROW("Unable to set " << briefDescription() << "'s fuel energy input ratio function of PLR curve to "
709 << fuelEnergyInputRatioFunctionofPLRCurve.briefDescription() << ".");
710 }
711
712
1/1
✓ Branch 1 taken 1 time.
1 ok = setMinimumPartLoadRatio(0.1);
713
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
714
1/1
✓ Branch 1 taken 1 time.
1 ok = setMaximumPartLoadRatio(1.0);
715
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
716
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 ok = setDefrostControlType("Timed");
717
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
718
1/1
✓ Branch 1 taken 1 time.
1 ok = setDefrostOperationTimeFraction(0);
719
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
720
1/1
✓ Branch 1 taken 1 time.
1 ok = setResistiveDefrostHeaterCapacity(0);
721
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
722
1/1
✓ Branch 1 taken 1 time.
1 ok = setMaximumOutdoorDrybulbTemperatureforDefrostOperation(5);
723
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
724
1/1
✓ Branch 1 taken 1 time.
1 ok = setNominalAuxiliaryElectricPower(0);
725
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
726
1/1
✓ Branch 1 taken 1 time.
1 ok = setStandbyElectricPower(0);
727
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
728
1/1
✓ Branch 1 taken 1 time.
1 ok = setMinimumUnloadingRatio(0.25);
729
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
730 1 }
731
732 7624 IddObjectType HeatPumpAirToWaterFuelFiredHeating::iddObjectType() {
733
1/1
✓ Branch 1 taken 7624 times.
7624 return {IddObjectType::OS_HeatPump_AirToWater_FuelFired_Heating};
734 }
735
736 ✗ std::vector<std::string> HeatPumpAirToWaterFuelFiredHeating::fuelTypeValues() {
737 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_HeatPump_AirToWater_FuelFired_HeatingFields::FuelType);
738 }
739
740 ✗ std::vector<std::string> HeatPumpAirToWaterFuelFiredHeating::flowModeValues() {
741 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_HeatPump_AirToWater_FuelFired_HeatingFields::FlowMode);
742 }
743
744 ✗ std::vector<std::string> HeatPumpAirToWaterFuelFiredHeating::outdoorAirTemperatureCurveInputVariableValues() {
745 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(),
746 ✗ OS_HeatPump_AirToWater_FuelFired_HeatingFields::OutdoorAirTemperatureCurveInputVariable);
747 }
748
749 ✗ std::vector<std::string> HeatPumpAirToWaterFuelFiredHeating::waterTemperatureCurveInputVariableValues() {
750 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(),
751 ✗ OS_HeatPump_AirToWater_FuelFired_HeatingFields::WaterTemperatureCurveInputVariable);
752 }
753
754 ✗ std::vector<std::string> HeatPumpAirToWaterFuelFiredHeating::defrostControlTypeValues() {
755 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(),
756 ✗ OS_HeatPump_AirToWater_FuelFired_HeatingFields::DefrostControlType);
757 }
758
759 8 boost::optional<HeatPumpAirToWaterFuelFiredCooling> HeatPumpAirToWaterFuelFiredHeating::companionCoolingHeatPump() const {
760
1/1
✓ Branch 3 taken 8 times.
8 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->companionCoolingHeatPump();
761 }
762
763 3 std::string HeatPumpAirToWaterFuelFiredHeating::fuelType() const {
764
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->fuelType();
765 }
766
767 4 std::string HeatPumpAirToWaterFuelFiredHeating::endUseSubcategory() const {
768
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->endUseSubcategory();
769 }
770
771 3 bool HeatPumpAirToWaterFuelFiredHeating::isEndUseSubcategoryDefaulted() const {
772
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->isEndUseSubcategoryDefaulted();
773 }
774
775 6 boost::optional<double> HeatPumpAirToWaterFuelFiredHeating::nominalHeatingCapacity() const {
776
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->nominalHeatingCapacity();
777 }
778
779 4 bool HeatPumpAirToWaterFuelFiredHeating::isNominalHeatingCapacityAutosized() const {
780
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->isNominalHeatingCapacityAutosized();
781 }
782
783 ✗ boost::optional<double> HeatPumpAirToWaterFuelFiredHeating::autosizedNominalHeatingCapacity() {
784 ✗ return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->autosizedNominalHeatingCapacity();
785 }
786
787 3 double HeatPumpAirToWaterFuelFiredHeating::nominalCOP() const {
788
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->nominalCOP();
789 }
790
791 6 boost::optional<double> HeatPumpAirToWaterFuelFiredHeating::designFlowRate() const {
792
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->designFlowRate();
793 }
794
795 4 bool HeatPumpAirToWaterFuelFiredHeating::isDesignFlowRateAutosized() const {
796
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->isDesignFlowRateAutosized();
797 }
798
799 ✗ boost::optional<double> HeatPumpAirToWaterFuelFiredHeating::autosizedDesignFlowRate() {
800 ✗ return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->autosizedDesignFlowRate();
801 }
802
803 3 double HeatPumpAirToWaterFuelFiredHeating::designSupplyTemperature() const {
804
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->designSupplyTemperature();
805 }
806
807 6 boost::optional<double> HeatPumpAirToWaterFuelFiredHeating::designTemperatureLift() const {
808
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->designTemperatureLift();
809 }
810
811 4 bool HeatPumpAirToWaterFuelFiredHeating::isDesignTemperatureLiftAutosized() const {
812
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->isDesignTemperatureLiftAutosized();
813 }
814
815 ✗ boost::optional<double> HeatPumpAirToWaterFuelFiredHeating::autosizedDesignTemperatureLift() {
816 ✗ return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->autosizedDesignTemperatureLift();
817 }
818
819 3 double HeatPumpAirToWaterFuelFiredHeating::sizingFactor() const {
820
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->sizingFactor();
821 }
822
823 3 std::string HeatPumpAirToWaterFuelFiredHeating::flowMode() const {
824
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->flowMode();
825 }
826
827 3 std::string HeatPumpAirToWaterFuelFiredHeating::outdoorAirTemperatureCurveInputVariable() const {
828
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->outdoorAirTemperatureCurveInputVariable();
829 }
830
831 3 std::string HeatPumpAirToWaterFuelFiredHeating::waterTemperatureCurveInputVariable() const {
832
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->waterTemperatureCurveInputVariable();
833 }
834
835 5 Curve HeatPumpAirToWaterFuelFiredHeating::normalizedCapacityFunctionofTemperatureCurve() const {
836
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->normalizedCapacityFunctionofTemperatureCurve();
837 }
838
839 5 Curve HeatPumpAirToWaterFuelFiredHeating::fuelEnergyInputRatioFunctionofTemperatureCurve() const {
840
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->fuelEnergyInputRatioFunctionofTemperatureCurve();
841 }
842
843 5 Curve HeatPumpAirToWaterFuelFiredHeating::fuelEnergyInputRatioFunctionofPLRCurve() const {
844
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->fuelEnergyInputRatioFunctionofPLRCurve();
845 }
846
847 3 double HeatPumpAirToWaterFuelFiredHeating::minimumPartLoadRatio() const {
848
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->minimumPartLoadRatio();
849 }
850
851 3 double HeatPumpAirToWaterFuelFiredHeating::maximumPartLoadRatio() const {
852
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->maximumPartLoadRatio();
853 }
854
855 3 std::string HeatPumpAirToWaterFuelFiredHeating::defrostControlType() const {
856
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->defrostControlType();
857 }
858
859 3 double HeatPumpAirToWaterFuelFiredHeating::defrostOperationTimeFraction() const {
860
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->defrostOperationTimeFraction();
861 }
862
863 5 boost::optional<Curve> HeatPumpAirToWaterFuelFiredHeating::fuelEnergyInputRatioDefrostAdjustmentCurve() const {
864
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->fuelEnergyInputRatioDefrostAdjustmentCurve();
865 }
866
867 3 double HeatPumpAirToWaterFuelFiredHeating::resistiveDefrostHeaterCapacity() const {
868
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->resistiveDefrostHeaterCapacity();
869 }
870
871 3 double HeatPumpAirToWaterFuelFiredHeating::maximumOutdoorDrybulbTemperatureforDefrostOperation() const {
872
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->maximumOutdoorDrybulbTemperatureforDefrostOperation();
873 }
874
875 5 boost::optional<Curve> HeatPumpAirToWaterFuelFiredHeating::cyclingRatioFactorCurve() const {
876
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->cyclingRatioFactorCurve();
877 }
878
879 3 double HeatPumpAirToWaterFuelFiredHeating::nominalAuxiliaryElectricPower() const {
880
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->nominalAuxiliaryElectricPower();
881 }
882
883 5 boost::optional<Curve> HeatPumpAirToWaterFuelFiredHeating::auxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve() const {
884
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->auxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve();
885 }
886
887 5 boost::optional<Curve> HeatPumpAirToWaterFuelFiredHeating::auxiliaryElectricEnergyInputRatioFunctionofPLRCurve() const {
888
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->auxiliaryElectricEnergyInputRatioFunctionofPLRCurve();
889 }
890
891 3 double HeatPumpAirToWaterFuelFiredHeating::standbyElectricPower() const {
892
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->standbyElectricPower();
893 }
894
895 3 double HeatPumpAirToWaterFuelFiredHeating::minimumUnloadingRatio() const {
896
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->minimumUnloadingRatio();
897 }
898
899 6 bool HeatPumpAirToWaterFuelFiredHeating::setCompanionCoolingHeatPump(const HeatPumpAirToWaterFuelFiredCooling& heatPumpAirToWaterFuelFiredCooling) {
900
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setCompanionCoolingHeatPump(heatPumpAirToWaterFuelFiredCooling);
901 }
902
903 1 void HeatPumpAirToWaterFuelFiredHeating::resetCompanionCoolingHeatPump() {
904
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->resetCompanionCoolingHeatPump();
905 1 }
906
907 13 bool HeatPumpAirToWaterFuelFiredHeating::setFuelType(const std::string& fuelType) {
908
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setFuelType(fuelType);
909 }
910
911 2 bool HeatPumpAirToWaterFuelFiredHeating::setEndUseSubcategory(const std::string& endUseSubcategory) {
912
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setEndUseSubcategory(endUseSubcategory);
913 }
914
915 1 void HeatPumpAirToWaterFuelFiredHeating::resetEndUseSubcategory() {
916
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->resetEndUseSubcategory();
917 1 }
918
919 2 bool HeatPumpAirToWaterFuelFiredHeating::setNominalHeatingCapacity(double nominalHeatingCapacity) {
920
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setNominalHeatingCapacity(nominalHeatingCapacity);
921 }
922
923 1 void HeatPumpAirToWaterFuelFiredHeating::resetNominalHeatingCapacity() {
924
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->resetNominalHeatingCapacity();
925 1 }
926
927 12 void HeatPumpAirToWaterFuelFiredHeating::autosizeNominalHeatingCapacity() {
928
1/1
✓ Branch 3 taken 12 times.
12 getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->autosizeNominalHeatingCapacity();
929 12 }
930
931 13 bool HeatPumpAirToWaterFuelFiredHeating::setNominalCOP(double nominalCOP) {
932
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setNominalCOP(nominalCOP);
933 }
934
935 2 bool HeatPumpAirToWaterFuelFiredHeating::setDesignFlowRate(double designFlowRate) {
936
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setDesignFlowRate(designFlowRate);
937 }
938
939 1 void HeatPumpAirToWaterFuelFiredHeating::resetDesignFlowRate() {
940
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->resetDesignFlowRate();
941 1 }
942
943 12 void HeatPumpAirToWaterFuelFiredHeating::autosizeDesignFlowRate() {
944
1/1
✓ Branch 3 taken 12 times.
12 getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->autosizeDesignFlowRate();
945 12 }
946
947 13 bool HeatPumpAirToWaterFuelFiredHeating::setDesignSupplyTemperature(double designSupplyTemperature) {
948
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setDesignSupplyTemperature(designSupplyTemperature);
949 }
950
951 13 bool HeatPumpAirToWaterFuelFiredHeating::setDesignTemperatureLift(double designTemperatureLift) {
952
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setDesignTemperatureLift(designTemperatureLift);
953 }
954
955 1 void HeatPumpAirToWaterFuelFiredHeating::autosizeDesignTemperatureLift() {
956
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->autosizeDesignTemperatureLift();
957 1 }
958
959 13 bool HeatPumpAirToWaterFuelFiredHeating::setSizingFactor(double sizingFactor) {
960
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setSizingFactor(sizingFactor);
961 }
962
963 13 bool HeatPumpAirToWaterFuelFiredHeating::setFlowMode(const std::string& flowMode) {
964
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setFlowMode(flowMode);
965 }
966
967 13 bool HeatPumpAirToWaterFuelFiredHeating::setOutdoorAirTemperatureCurveInputVariable(const std::string& outdoorAirTemperatureCurveInputVariable) {
968
1/1
✓ Branch 3 taken 13 times.
26 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setOutdoorAirTemperatureCurveInputVariable(
969 26 outdoorAirTemperatureCurveInputVariable);
970 }
971
972 13 bool HeatPumpAirToWaterFuelFiredHeating::setWaterTemperatureCurveInputVariable(const std::string& waterTemperatureCurveInputVariable) {
973
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setWaterTemperatureCurveInputVariable(waterTemperatureCurveInputVariable);
974 }
975
976 bool
977 13 HeatPumpAirToWaterFuelFiredHeating::setNormalizedCapacityFunctionofTemperatureCurve(const Curve& normalizedCapacityFunctionofTemperatureCurve) {
978
1/1
✓ Branch 3 taken 13 times.
26 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setNormalizedCapacityFunctionofTemperatureCurve(
979 26 normalizedCapacityFunctionofTemperatureCurve);
980 }
981
982 13 bool HeatPumpAirToWaterFuelFiredHeating::setFuelEnergyInputRatioFunctionofTemperatureCurve(
983 const Curve& fuelEnergyInputRatioFunctionofTemperatureCurve) {
984
1/1
✓ Branch 3 taken 13 times.
26 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setFuelEnergyInputRatioFunctionofTemperatureCurve(
985 26 fuelEnergyInputRatioFunctionofTemperatureCurve);
986 }
987
988 13 bool HeatPumpAirToWaterFuelFiredHeating::setFuelEnergyInputRatioFunctionofPLRCurve(const Curve& fuelEnergyInputRatioFunctionofPLRCurve) {
989
1/1
✓ Branch 3 taken 13 times.
26 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setFuelEnergyInputRatioFunctionofPLRCurve(
990 26 fuelEnergyInputRatioFunctionofPLRCurve);
991 }
992
993 13 bool HeatPumpAirToWaterFuelFiredHeating::setMinimumPartLoadRatio(double minimumPartLoadRatio) {
994
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setMinimumPartLoadRatio(minimumPartLoadRatio);
995 }
996
997 13 bool HeatPumpAirToWaterFuelFiredHeating::setMaximumPartLoadRatio(double maximumPartLoadRatio) {
998
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setMaximumPartLoadRatio(maximumPartLoadRatio);
999 }
1000
1001 13 bool HeatPumpAirToWaterFuelFiredHeating::setDefrostControlType(const std::string& defrostControlType) {
1002
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setDefrostControlType(defrostControlType);
1003 }
1004
1005 13 bool HeatPumpAirToWaterFuelFiredHeating::setDefrostOperationTimeFraction(double defrostOperationTimeFraction) {
1006
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setDefrostOperationTimeFraction(defrostOperationTimeFraction);
1007 }
1008
1009 2 bool HeatPumpAirToWaterFuelFiredHeating::setFuelEnergyInputRatioDefrostAdjustmentCurve(const Curve& fuelEnergyInputRatioDefrostAdjustmentCurve) {
1010
1/1
✓ Branch 3 taken 2 times.
4 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setFuelEnergyInputRatioDefrostAdjustmentCurve(
1011 4 fuelEnergyInputRatioDefrostAdjustmentCurve);
1012 }
1013
1014 1 void HeatPumpAirToWaterFuelFiredHeating::resetFuelEnergyInputRatioDefrostAdjustmentCurve() {
1015
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->resetFuelEnergyInputRatioDefrostAdjustmentCurve();
1016 1 }
1017
1018 13 bool HeatPumpAirToWaterFuelFiredHeating::setResistiveDefrostHeaterCapacity(double resistiveDefrostHeaterCapacity) {
1019
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setResistiveDefrostHeaterCapacity(resistiveDefrostHeaterCapacity);
1020 }
1021
1022 13 bool HeatPumpAirToWaterFuelFiredHeating::setMaximumOutdoorDrybulbTemperatureforDefrostOperation(
1023 double maximumOutdoorDrybulbTemperatureforDefrostOperation) {
1024
1/1
✓ Branch 3 taken 13 times.
26 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setMaximumOutdoorDrybulbTemperatureforDefrostOperation(
1025 26 maximumOutdoorDrybulbTemperatureforDefrostOperation);
1026 }
1027
1028 2 bool HeatPumpAirToWaterFuelFiredHeating::setCyclingRatioFactorCurve(const Curve& cyclingRatioFactorCurve) {
1029
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setCyclingRatioFactorCurve(cyclingRatioFactorCurve);
1030 }
1031
1032 1 void HeatPumpAirToWaterFuelFiredHeating::resetCyclingRatioFactorCurve() {
1033
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->resetCyclingRatioFactorCurve();
1034 1 }
1035
1036 13 bool HeatPumpAirToWaterFuelFiredHeating::setNominalAuxiliaryElectricPower(double nominalAuxiliaryElectricPower) {
1037
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setNominalAuxiliaryElectricPower(nominalAuxiliaryElectricPower);
1038 }
1039
1040 2 bool HeatPumpAirToWaterFuelFiredHeating::setAuxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve(
1041 const Curve& auxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve) {
1042
1/1
✓ Branch 3 taken 2 times.
4 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setAuxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve(
1043 4 auxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve);
1044 }
1045
1046 1 void HeatPumpAirToWaterFuelFiredHeating::resetAuxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve() {
1047
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->resetAuxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve();
1048 1 }
1049
1050 2 bool HeatPumpAirToWaterFuelFiredHeating::setAuxiliaryElectricEnergyInputRatioFunctionofPLRCurve(
1051 const Curve& auxiliaryElectricEnergyInputRatioFunctionofPLRCurve) {
1052
1/1
✓ Branch 3 taken 2 times.
4 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setAuxiliaryElectricEnergyInputRatioFunctionofPLRCurve(
1053 4 auxiliaryElectricEnergyInputRatioFunctionofPLRCurve);
1054 }
1055
1056 1 void HeatPumpAirToWaterFuelFiredHeating::resetAuxiliaryElectricEnergyInputRatioFunctionofPLRCurve() {
1057
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->resetAuxiliaryElectricEnergyInputRatioFunctionofPLRCurve();
1058 1 }
1059
1060 13 bool HeatPumpAirToWaterFuelFiredHeating::setStandbyElectricPower(double standbyElectricPower) {
1061
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setStandbyElectricPower(standbyElectricPower);
1062 }
1063
1064 13 bool HeatPumpAirToWaterFuelFiredHeating::setMinimumUnloadingRatio(double minimumUnloadingRatio) {
1065
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpAirToWaterFuelFiredHeating_Impl>()->setMinimumUnloadingRatio(minimumUnloadingRatio);
1066 }
1067
1068 /// @cond
1069 8 HeatPumpAirToWaterFuelFiredHeating::HeatPumpAirToWaterFuelFiredHeating(std::shared_ptr<detail::HeatPumpAirToWaterFuelFiredHeating_Impl> impl)
1070
1/1
✓ Branch 3 taken 8 times.
8 : StraightComponent(std::move(impl)) {}
1071 /// @endcond
1072
1073 } // namespace model
1074 } // namespace openstudio
1075