GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 89.5% 522 / 0 / 583
Functions: 88.8% 135 / 0 / 152
Branches: 52.3% 336 / 0 / 643

src/model/HeatPumpAirToWaterFuelFiredCooling.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 "HeatPumpAirToWaterFuelFiredCooling.hpp"
7 #include "HeatPumpAirToWaterFuelFiredCooling_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 "HeatPumpAirToWaterFuelFiredHeating.hpp"
19 #include "HeatPumpAirToWaterFuelFiredHeating_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_Cooling_FieldEnums.hxx>
27
28 namespace openstudio {
29 namespace model {
30
31 namespace detail {
32
33 12 HeatPumpAirToWaterFuelFiredCooling_Impl::HeatPumpAirToWaterFuelFiredCooling_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() == HeatPumpAirToWaterFuelFiredCooling::iddObjectType());
36 12 }
37
38 1 HeatPumpAirToWaterFuelFiredCooling_Impl::HeatPumpAirToWaterFuelFiredCooling_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() == HeatPumpAirToWaterFuelFiredCooling::iddObjectType());
42 1 }
43
44 7 HeatPumpAirToWaterFuelFiredCooling_Impl::HeatPumpAirToWaterFuelFiredCooling_Impl(const HeatPumpAirToWaterFuelFiredCooling_Impl& other,
45 7 Model_Impl* model, bool keepHandle)
46 7 : StraightComponent_Impl(other, model, keepHandle) {}
47
48 ✗ const std::vector<std::string>& HeatPumpAirToWaterFuelFiredCooling_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 HeatPumpAirToWaterFuelFiredCooling_Impl::iddObjectType() const {
63 ✗ return HeatPumpAirToWaterFuelFiredCooling::iddObjectType();
64 }
65
66 13 unsigned HeatPumpAirToWaterFuelFiredCooling_Impl::inletPort() const {
67 13 return OS_HeatPump_AirToWater_FuelFired_CoolingFields::WaterInletNodeName;
68 }
69
70 32 unsigned HeatPumpAirToWaterFuelFiredCooling_Impl::outletPort() const {
71 32 return OS_HeatPump_AirToWater_FuelFired_CoolingFields::WaterOutletNodeName;
72 }
73
74 7 bool HeatPumpAirToWaterFuelFiredCooling_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 HeatPumpAirToWaterFuelFiredCooling_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_CoolingFields::CompanionHeatingHeatPumpName, "");
87 3 return moClone;
88 ✗ }
89
90 8 boost::optional<HeatPumpAirToWaterFuelFiredHeating> HeatPumpAirToWaterFuelFiredCooling_Impl::companionHeatingHeatPump() const {
91
1/1
✓ Branch 1 taken 8 times.
16 return getObject<ModelObject>().getModelObjectTarget<HeatPumpAirToWaterFuelFiredHeating>(
92
1/1
✓ Branch 1 taken 8 times.
16 OS_HeatPump_AirToWater_FuelFired_CoolingFields::CompanionHeatingHeatPumpName);
93 }
94
95 3 std::string HeatPumpAirToWaterFuelFiredCooling_Impl::fuelType() const {
96
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<std::string> value = getString(OS_HeatPump_AirToWater_FuelFired_CoolingFields::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 HeatPumpAirToWaterFuelFiredCooling_Impl::endUseSubcategory() const {
102
1/1
✓ Branch 1 taken 4 times.
4 boost::optional<std::string> value = getString(OS_HeatPump_AirToWater_FuelFired_CoolingFields::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 HeatPumpAirToWaterFuelFiredCooling_Impl::isEndUseSubcategoryDefaulted() const {
108 3 return isEmpty(OS_HeatPump_AirToWater_FuelFired_CoolingFields::EndUseSubcategory);
109 }
110
111 6 boost::optional<double> HeatPumpAirToWaterFuelFiredCooling_Impl::nominalCoolingCapacity() const {
112 6 return getDouble(OS_HeatPump_AirToWater_FuelFired_CoolingFields::NominalCoolingCapacity, true);
113 }
114
115 4 bool HeatPumpAirToWaterFuelFiredCooling_Impl::isNominalCoolingCapacityAutosized() 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_CoolingFields::NominalCoolingCapacity, 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> HeatPumpAirToWaterFuelFiredCooling_Impl::autosizedNominalCoolingCapacity() {
125 ✗ return getAutosizedValue("Design Size Nominal Capacity", "W");
126 }
127
128 3 double HeatPumpAirToWaterFuelFiredCooling_Impl::nominalCOP() const {
129
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_HeatPump_AirToWater_FuelFired_CoolingFields::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> HeatPumpAirToWaterFuelFiredCooling_Impl::designFlowRate() const {
135 6 return getDouble(OS_HeatPump_AirToWater_FuelFired_CoolingFields::DesignFlowRate, true);
136 }
137
138 4 bool HeatPumpAirToWaterFuelFiredCooling_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_CoolingFields::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> HeatPumpAirToWaterFuelFiredCooling_Impl::autosizedDesignFlowRate() {
148 ✗ return getAutosizedValue("Design Size Load Side Volume Flow Rate", "m3/s");
149 }
150
151 3 double HeatPumpAirToWaterFuelFiredCooling_Impl::designSupplyTemperature() const {
152
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_HeatPump_AirToWater_FuelFired_CoolingFields::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> HeatPumpAirToWaterFuelFiredCooling_Impl::designTemperatureLift() const {
158 6 return getDouble(OS_HeatPump_AirToWater_FuelFired_CoolingFields::DesignTemperatureLift, true);
159 }
160
161 4 bool HeatPumpAirToWaterFuelFiredCooling_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_CoolingFields::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> HeatPumpAirToWaterFuelFiredCooling_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 HeatPumpAirToWaterFuelFiredCooling_Impl::sizingFactor() const {
176
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_HeatPump_AirToWater_FuelFired_CoolingFields::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 HeatPumpAirToWaterFuelFiredCooling_Impl::flowMode() const {
182
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<std::string> value = getString(OS_HeatPump_AirToWater_FuelFired_CoolingFields::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 HeatPumpAirToWaterFuelFiredCooling_Impl::outdoorAirTemperatureCurveInputVariable() const {
188
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<std::string> value = getString(OS_HeatPump_AirToWater_FuelFired_CoolingFields::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 HeatPumpAirToWaterFuelFiredCooling_Impl::waterTemperatureCurveInputVariable() const {
194
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<std::string> value = getString(OS_HeatPump_AirToWater_FuelFired_CoolingFields::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 HeatPumpAirToWaterFuelFiredCooling_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 HeatPumpAirToWaterFuelFiredCooling_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 HeatPumpAirToWaterFuelFiredCooling_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 HeatPumpAirToWaterFuelFiredCooling_Impl::minimumPartLoadRatio() const {
224
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_HeatPump_AirToWater_FuelFired_CoolingFields::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 HeatPumpAirToWaterFuelFiredCooling_Impl::maximumPartLoadRatio() const {
230
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_HeatPump_AirToWater_FuelFired_CoolingFields::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 5 boost::optional<Curve> HeatPumpAirToWaterFuelFiredCooling_Impl::cyclingRatioFactorCurve() const {
236
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
5 return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_HeatPump_AirToWater_FuelFired_CoolingFields::CyclingRatioFactorCurveName);
237 }
238
239 3 double HeatPumpAirToWaterFuelFiredCooling_Impl::nominalAuxiliaryElectricPower() const {
240
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_HeatPump_AirToWater_FuelFired_CoolingFields::NominalAuxiliaryElectricPower, true);
241
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
242
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
243 }
244
245 5 boost::optional<Curve> HeatPumpAirToWaterFuelFiredCooling_Impl::auxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve() const {
246
1/1
✓ Branch 1 taken 5 times.
10 return getObject<ModelObject>().getModelObjectTarget<Curve>(
247
1/1
✓ Branch 1 taken 5 times.
10 OS_HeatPump_AirToWater_FuelFired_CoolingFields::AuxiliaryElectricEnergyInputRatioFunctionofTemperatureCurveName);
248 }
249
250 5 boost::optional<Curve> HeatPumpAirToWaterFuelFiredCooling_Impl::auxiliaryElectricEnergyInputRatioFunctionofPLRCurve() const {
251
1/1
✓ Branch 1 taken 5 times.
10 return getObject<ModelObject>().getModelObjectTarget<Curve>(
252
1/1
✓ Branch 1 taken 5 times.
10 OS_HeatPump_AirToWater_FuelFired_CoolingFields::AuxiliaryElectricEnergyInputRatioFunctionofPLRCurveName);
253 }
254
255 3 double HeatPumpAirToWaterFuelFiredCooling_Impl::standbyElectricPower() const {
256
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_HeatPump_AirToWater_FuelFired_CoolingFields::StandbyElectricPower, true);
257
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
258
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
259 }
260
261 3 double HeatPumpAirToWaterFuelFiredCooling_Impl::minimumUnloadingRatio() const {
262
1/1
✓ Branch 1 taken 3 times.
3 boost::optional<double> value = getDouble(OS_HeatPump_AirToWater_FuelFired_CoolingFields::MinimumUnloadingRatio, true);
263
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
3 OS_ASSERT(value);
264
1/1
✓ Branch 1 taken 3 times.
6 return value.get();
265 }
266
267 6 bool HeatPumpAirToWaterFuelFiredCooling_Impl::setCompanionHeatingHeatPump(
268 const HeatPumpAirToWaterFuelFiredHeating& heatPumpAirToWaterFuelFiredHeating) {
269 bool result =
270
2/2
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
6 setPointer(OS_HeatPump_AirToWater_FuelFired_CoolingFields::CompanionHeatingHeatPumpName, heatPumpAirToWaterFuelFiredHeating.handle());
271 6 return result;
272 }
273
274 1 void HeatPumpAirToWaterFuelFiredCooling_Impl::resetCompanionHeatingHeatPump() {
275
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_HeatPump_AirToWater_FuelFired_CoolingFields::CompanionHeatingHeatPumpName, "");
276
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
277 1 }
278
279 13 bool HeatPumpAirToWaterFuelFiredCooling_Impl::setFuelType(const std::string& fuelType) {
280 13 bool result = setString(OS_HeatPump_AirToWater_FuelFired_CoolingFields::FuelType, fuelType);
281 13 return result;
282 }
283
284 2 bool HeatPumpAirToWaterFuelFiredCooling_Impl::setEndUseSubcategory(const std::string& endUseSubcategory) {
285 2 bool result = setString(OS_HeatPump_AirToWater_FuelFired_CoolingFields::EndUseSubcategory, endUseSubcategory);
286
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
2 OS_ASSERT(result);
287 2 return result;
288 }
289
290 1 void HeatPumpAirToWaterFuelFiredCooling_Impl::resetEndUseSubcategory() {
291
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_HeatPump_AirToWater_FuelFired_CoolingFields::EndUseSubcategory, "");
292
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
293 1 }
294
295 2 bool HeatPumpAirToWaterFuelFiredCooling_Impl::setNominalCoolingCapacity(double nominalCoolingCapacity) {
296 2 bool result = setDouble(OS_HeatPump_AirToWater_FuelFired_CoolingFields::NominalCoolingCapacity, nominalCoolingCapacity);
297 2 return result;
298 }
299
300 1 void HeatPumpAirToWaterFuelFiredCooling_Impl::resetNominalCoolingCapacity() {
301
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_HeatPump_AirToWater_FuelFired_CoolingFields::NominalCoolingCapacity, "");
302
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
303 1 }
304
305 12 void HeatPumpAirToWaterFuelFiredCooling_Impl::autosizeNominalCoolingCapacity() {
306
2/2
✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
24 bool result = setString(OS_HeatPump_AirToWater_FuelFired_CoolingFields::NominalCoolingCapacity, "autosize");
307
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
12 OS_ASSERT(result);
308 12 }
309
310 13 bool HeatPumpAirToWaterFuelFiredCooling_Impl::setNominalCOP(double nominalCOP) {
311 13 bool result = setDouble(OS_HeatPump_AirToWater_FuelFired_CoolingFields::NominalCOP, nominalCOP);
312 13 return result;
313 }
314
315 2 bool HeatPumpAirToWaterFuelFiredCooling_Impl::setDesignFlowRate(double designFlowRate) {
316 2 bool result = setDouble(OS_HeatPump_AirToWater_FuelFired_CoolingFields::DesignFlowRate, designFlowRate);
317 2 return result;
318 }
319
320 1 void HeatPumpAirToWaterFuelFiredCooling_Impl::resetDesignFlowRate() {
321
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_HeatPump_AirToWater_FuelFired_CoolingFields::DesignFlowRate, "");
322
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
323 1 }
324
325 12 void HeatPumpAirToWaterFuelFiredCooling_Impl::autosizeDesignFlowRate() {
326
2/2
✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
24 bool result = setString(OS_HeatPump_AirToWater_FuelFired_CoolingFields::DesignFlowRate, "autosize");
327
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
12 OS_ASSERT(result);
328 12 }
329
330 13 bool HeatPumpAirToWaterFuelFiredCooling_Impl::setDesignSupplyTemperature(double designSupplyTemperature) {
331 13 bool result = setDouble(OS_HeatPump_AirToWater_FuelFired_CoolingFields::DesignSupplyTemperature, designSupplyTemperature);
332
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 13 times.
13 OS_ASSERT(result);
333 13 return result;
334 }
335
336 13 bool HeatPumpAirToWaterFuelFiredCooling_Impl::setDesignTemperatureLift(double designTemperatureLift) {
337 13 bool result = setDouble(OS_HeatPump_AirToWater_FuelFired_CoolingFields::DesignTemperatureLift, designTemperatureLift);
338
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 13 times.
13 OS_ASSERT(result);
339 13 return result;
340 }
341
342 1 void HeatPumpAirToWaterFuelFiredCooling_Impl::autosizeDesignTemperatureLift() {
343
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_HeatPump_AirToWater_FuelFired_CoolingFields::DesignTemperatureLift, "autosize");
344
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
345 1 }
346
347 13 bool HeatPumpAirToWaterFuelFiredCooling_Impl::setSizingFactor(double sizingFactor) {
348 13 bool result = setDouble(OS_HeatPump_AirToWater_FuelFired_CoolingFields::SizingFactor, sizingFactor);
349 13 return result;
350 }
351
352 13 bool HeatPumpAirToWaterFuelFiredCooling_Impl::setFlowMode(const std::string& flowMode) {
353 13 bool result = setString(OS_HeatPump_AirToWater_FuelFired_CoolingFields::FlowMode, flowMode);
354 13 return result;
355 }
356
357 13 bool HeatPumpAirToWaterFuelFiredCooling_Impl::setOutdoorAirTemperatureCurveInputVariable(
358 const std::string& outdoorAirTemperatureCurveInputVariable) {
359 bool result =
360 13 setString(OS_HeatPump_AirToWater_FuelFired_CoolingFields::OutdoorAirTemperatureCurveInputVariable, outdoorAirTemperatureCurveInputVariable);
361 13 return result;
362 }
363
364 13 bool HeatPumpAirToWaterFuelFiredCooling_Impl::setWaterTemperatureCurveInputVariable(const std::string& waterTemperatureCurveInputVariable) {
365 13 bool result = setString(OS_HeatPump_AirToWater_FuelFired_CoolingFields::WaterTemperatureCurveInputVariable, waterTemperatureCurveInputVariable);
366 13 return result;
367 }
368
369 13 bool HeatPumpAirToWaterFuelFiredCooling_Impl::setNormalizedCapacityFunctionofTemperatureCurve(
370 const Curve& normalizedCapacityFunctionofTemperatureCurve) {
371
1/1
✓ Branch 1 taken 13 times.
13 bool result = setPointer(OS_HeatPump_AirToWater_FuelFired_CoolingFields::NormalizedCapacityFunctionofTemperatureCurveName,
372
1/1
✓ Branch 1 taken 13 times.
13 normalizedCapacityFunctionofTemperatureCurve.handle());
373 13 return result;
374 }
375
376 13 bool HeatPumpAirToWaterFuelFiredCooling_Impl::setFuelEnergyInputRatioFunctionofTemperatureCurve(
377 const Curve& fuelEnergyInputRatioFunctionofTemperatureCurve) {
378
1/1
✓ Branch 1 taken 13 times.
13 bool result = setPointer(OS_HeatPump_AirToWater_FuelFired_CoolingFields::FuelEnergyInputRatioFunctionofTemperatureCurveName,
379
1/1
✓ Branch 1 taken 13 times.
13 fuelEnergyInputRatioFunctionofTemperatureCurve.handle());
380 13 return result;
381 }
382
383 13 bool HeatPumpAirToWaterFuelFiredCooling_Impl::setFuelEnergyInputRatioFunctionofPLRCurve(const Curve& fuelEnergyInputRatioFunctionofPLRCurve) {
384
1/1
✓ Branch 1 taken 13 times.
13 bool result = setPointer(OS_HeatPump_AirToWater_FuelFired_CoolingFields::FuelEnergyInputRatioFunctionofPLRCurveName,
385
1/1
✓ Branch 1 taken 13 times.
13 fuelEnergyInputRatioFunctionofPLRCurve.handle());
386 13 return result;
387 }
388
389 13 bool HeatPumpAirToWaterFuelFiredCooling_Impl::setMinimumPartLoadRatio(double minimumPartLoadRatio) {
390 13 bool result = setDouble(OS_HeatPump_AirToWater_FuelFired_CoolingFields::MinimumPartLoadRatio, minimumPartLoadRatio);
391 13 return result;
392 }
393
394 13 bool HeatPumpAirToWaterFuelFiredCooling_Impl::setMaximumPartLoadRatio(double maximumPartLoadRatio) {
395 13 bool result = setDouble(OS_HeatPump_AirToWater_FuelFired_CoolingFields::MaximumPartLoadRatio, maximumPartLoadRatio);
396 13 return result;
397 }
398
399 2 bool HeatPumpAirToWaterFuelFiredCooling_Impl::setCyclingRatioFactorCurve(const Curve& cyclingRatioFactorCurve) {
400
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 bool result = setPointer(OS_HeatPump_AirToWater_FuelFired_CoolingFields::CyclingRatioFactorCurveName, cyclingRatioFactorCurve.handle());
401 2 return result;
402 }
403
404 1 void HeatPumpAirToWaterFuelFiredCooling_Impl::resetCyclingRatioFactorCurve() {
405
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_HeatPump_AirToWater_FuelFired_CoolingFields::CyclingRatioFactorCurveName, "");
406
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
407 1 }
408
409 13 bool HeatPumpAirToWaterFuelFiredCooling_Impl::setNominalAuxiliaryElectricPower(double nominalAuxiliaryElectricPower) {
410 13 bool result = setDouble(OS_HeatPump_AirToWater_FuelFired_CoolingFields::NominalAuxiliaryElectricPower, nominalAuxiliaryElectricPower);
411 13 return result;
412 }
413
414 2 bool HeatPumpAirToWaterFuelFiredCooling_Impl::setAuxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve(
415 const Curve& auxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve) {
416
1/1
✓ Branch 1 taken 2 times.
2 bool result = setPointer(OS_HeatPump_AirToWater_FuelFired_CoolingFields::AuxiliaryElectricEnergyInputRatioFunctionofTemperatureCurveName,
417
1/1
✓ Branch 1 taken 2 times.
2 auxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve.handle());
418 2 return result;
419 }
420
421 1 void HeatPumpAirToWaterFuelFiredCooling_Impl::resetAuxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve() {
422
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_HeatPump_AirToWater_FuelFired_CoolingFields::AuxiliaryElectricEnergyInputRatioFunctionofTemperatureCurveName, "");
423
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
424 1 }
425
426 2 bool HeatPumpAirToWaterFuelFiredCooling_Impl::setAuxiliaryElectricEnergyInputRatioFunctionofPLRCurve(
427 const Curve& auxiliaryElectricEnergyInputRatioFunctionofPLRCurve) {
428
1/1
✓ Branch 1 taken 2 times.
2 bool result = setPointer(OS_HeatPump_AirToWater_FuelFired_CoolingFields::AuxiliaryElectricEnergyInputRatioFunctionofPLRCurveName,
429
1/1
✓ Branch 1 taken 2 times.
2 auxiliaryElectricEnergyInputRatioFunctionofPLRCurve.handle());
430 2 return result;
431 }
432
433 1 void HeatPumpAirToWaterFuelFiredCooling_Impl::resetAuxiliaryElectricEnergyInputRatioFunctionofPLRCurve() {
434
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_HeatPump_AirToWater_FuelFired_CoolingFields::AuxiliaryElectricEnergyInputRatioFunctionofPLRCurveName, "");
435
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
436 1 }
437
438 13 bool HeatPumpAirToWaterFuelFiredCooling_Impl::setStandbyElectricPower(double standbyElectricPower) {
439 13 bool result = setDouble(OS_HeatPump_AirToWater_FuelFired_CoolingFields::StandbyElectricPower, standbyElectricPower);
440 13 return result;
441 }
442
443 13 bool HeatPumpAirToWaterFuelFiredCooling_Impl::setMinimumUnloadingRatio(double minimumUnloadingRatio) {
444 13 bool result = setDouble(OS_HeatPump_AirToWater_FuelFired_CoolingFields::MinimumUnloadingRatio, minimumUnloadingRatio);
445 13 return result;
446 }
447
448 ✗ void HeatPumpAirToWaterFuelFiredCooling_Impl::autosize() {
449 ✗ autosizeNominalCoolingCapacity();
450 ✗ autosizeDesignFlowRate();
451 ✗ autosizeDesignTemperatureLift();
452 ✗ }
453
454 ✗ void HeatPumpAirToWaterFuelFiredCooling_Impl::applySizingValues() {
455 ✗ boost::optional<double> val;
456 ✗ val = autosizedNominalCoolingCapacity();
457 ✗ if (val) {
458 ✗ setNominalCoolingCapacity(val.get());
459 }
460
461 ✗ val = autosizedDesignFlowRate();
462 ✗ if (val) {
463 ✗ setDesignFlowRate(val.get());
464 }
465
466 ✗ val = autosizedDesignTemperatureLift();
467 ✗ if (val) {
468 ✗ setDesignTemperatureLift(val.get());
469 }
470 ✗ }
471
472 5 boost::optional<Curve> HeatPumpAirToWaterFuelFiredCooling_Impl::optionalNormalizedCapacityFunctionofTemperatureCurve() const {
473
1/1
✓ Branch 1 taken 5 times.
10 return getObject<ModelObject>().getModelObjectTarget<Curve>(
474
1/1
✓ Branch 1 taken 5 times.
10 OS_HeatPump_AirToWater_FuelFired_CoolingFields::NormalizedCapacityFunctionofTemperatureCurveName);
475 }
476
477 5 boost::optional<Curve> HeatPumpAirToWaterFuelFiredCooling_Impl::optionalFuelEnergyInputRatioFunctionofTemperatureCurve() const {
478
1/1
✓ Branch 1 taken 5 times.
10 return getObject<ModelObject>().getModelObjectTarget<Curve>(
479
1/1
✓ Branch 1 taken 5 times.
10 OS_HeatPump_AirToWater_FuelFired_CoolingFields::FuelEnergyInputRatioFunctionofTemperatureCurveName);
480 }
481
482 5 boost::optional<Curve> HeatPumpAirToWaterFuelFiredCooling_Impl::optionalFuelEnergyInputRatioFunctionofPLRCurve() const {
483
1/1
✓ Branch 1 taken 5 times.
10 return getObject<ModelObject>().getModelObjectTarget<Curve>(
484
1/1
✓ Branch 1 taken 5 times.
10 OS_HeatPump_AirToWater_FuelFired_CoolingFields::FuelEnergyInputRatioFunctionofPLRCurveName);
485 }
486
487 4 ComponentType HeatPumpAirToWaterFuelFiredCooling_Impl::componentType() const {
488
1/1
✓ Branch 1 taken 4 times.
4 return ComponentType::Cooling;
489 }
490
491 ✗ std::vector<FuelType> HeatPumpAirToWaterFuelFiredCooling_Impl::coolingFuelTypes() const {
492 ✗ return {FuelType(fuelType())};
493 }
494
495 ✗ std::vector<FuelType> HeatPumpAirToWaterFuelFiredCooling_Impl::heatingFuelTypes() const {
496 ✗ return {};
497 }
498
499 ✗ std::vector<AppGFuelType> HeatPumpAirToWaterFuelFiredCooling_Impl::appGHeatingFuelTypes() const {
500 ✗ return {};
501 }
502
503 } // namespace detail
504
505 10 HeatPumpAirToWaterFuelFiredCooling::HeatPumpAirToWaterFuelFiredCooling(const Model& model)
506 10 : StraightComponent(HeatPumpAirToWaterFuelFiredCooling::iddObjectType(), model) {
507
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 10 times.
✗ Branch 5 not taken.
10 OS_ASSERT(getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>());
508
509
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
10 bool ok = setFuelType("NaturalGas");
510
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
511
1/1
✓ Branch 1 taken 10 times.
10 autosizeNominalCoolingCapacity();
512
1/1
✓ Branch 1 taken 10 times.
10 ok = setNominalCOP(1.0);
513
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
514
1/1
✓ Branch 1 taken 10 times.
10 autosizeDesignFlowRate();
515
1/1
✓ Branch 1 taken 10 times.
10 ok = setDesignSupplyTemperature(7.0);
516
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
517
1/1
✓ Branch 1 taken 10 times.
10 ok = setDesignTemperatureLift(11.1);
518
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
519
1/1
✓ Branch 1 taken 10 times.
10 ok = setSizingFactor(1.0);
520
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
521
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
10 ok = setFlowMode("NotModulated");
522
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
523
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
10 ok = setOutdoorAirTemperatureCurveInputVariable("DryBulb");
524
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
525
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
10 ok = setWaterTemperatureCurveInputVariable("EnteringEvaporator");
526
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
527
528 // From PlantLoopHeatPump_Fuel-Fired.idf
529
530 {
531
1/1
✓ Branch 1 taken 10 times.
10 CurveBiquadratic normalizedCapacityFunctionofTemperatureCurve(model);
532
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
10 normalizedCapacityFunctionofTemperatureCurve.setName("GAHP Cooling CapFT");
533
1/1
✓ Branch 1 taken 10 times.
10 normalizedCapacityFunctionofTemperatureCurve.setCoefficient1Constant(1);
534
1/1
✓ Branch 1 taken 10 times.
10 normalizedCapacityFunctionofTemperatureCurve.setCoefficient2x(0);
535
1/1
✓ Branch 1 taken 10 times.
10 normalizedCapacityFunctionofTemperatureCurve.setCoefficient3xPOW2(0);
536
1/1
✓ Branch 1 taken 10 times.
10 normalizedCapacityFunctionofTemperatureCurve.setCoefficient4y(0);
537
1/1
✓ Branch 1 taken 10 times.
10 normalizedCapacityFunctionofTemperatureCurve.setCoefficient5yPOW2(0);
538
1/1
✓ Branch 1 taken 10 times.
10 normalizedCapacityFunctionofTemperatureCurve.setCoefficient6xTIMESY(0);
539
1/1
✓ Branch 1 taken 10 times.
10 normalizedCapacityFunctionofTemperatureCurve.setMinimumValueofx(5);
540
1/1
✓ Branch 1 taken 10 times.
10 normalizedCapacityFunctionofTemperatureCurve.setMaximumValueofx(10);
541
1/1
✓ Branch 1 taken 10 times.
10 normalizedCapacityFunctionofTemperatureCurve.setMinimumValueofy(24);
542
1/1
✓ Branch 1 taken 10 times.
10 normalizedCapacityFunctionofTemperatureCurve.setMaximumValueofy(35);
543
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
20 normalizedCapacityFunctionofTemperatureCurve.setInputUnitTypeforX("Temperature");
544
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
10 normalizedCapacityFunctionofTemperatureCurve.setInputUnitTypeforY("Temperature");
545
1/1
✓ Branch 1 taken 10 times.
10 ok = setNormalizedCapacityFunctionofTemperatureCurve(normalizedCapacityFunctionofTemperatureCurve);
546
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
547 10 }
548
549 {
550
1/1
✓ Branch 1 taken 10 times.
10 CurveBiquadratic fuelEnergyInputRatioFunctionofTemperatureCurve(model);
551
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
10 fuelEnergyInputRatioFunctionofTemperatureCurve.setName("GAHP Cooling EIRFT");
552
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofTemperatureCurve.setCoefficient1Constant(1);
553
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofTemperatureCurve.setCoefficient2x(0);
554
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofTemperatureCurve.setCoefficient3xPOW2(0);
555
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofTemperatureCurve.setCoefficient4y(0);
556
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofTemperatureCurve.setCoefficient5yPOW2(0);
557
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofTemperatureCurve.setCoefficient6xTIMESY(0);
558
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofTemperatureCurve.setMinimumValueofx(5);
559
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofTemperatureCurve.setMaximumValueofx(10);
560
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofTemperatureCurve.setMinimumValueofy(24);
561
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofTemperatureCurve.setMaximumValueofy(35);
562
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
20 fuelEnergyInputRatioFunctionofTemperatureCurve.setInputUnitTypeforX("Temperature");
563
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
10 fuelEnergyInputRatioFunctionofTemperatureCurve.setInputUnitTypeforY("Temperature");
564
1/1
✓ Branch 1 taken 10 times.
10 ok = setFuelEnergyInputRatioFunctionofTemperatureCurve(fuelEnergyInputRatioFunctionofTemperatureCurve);
565
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
566 10 }
567
568 {
569
1/1
✓ Branch 1 taken 10 times.
10 CurveQuadratic fuelEnergyInputRatioFunctionofPLRCurve(model);
570
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
10 fuelEnergyInputRatioFunctionofPLRCurve.setName("GAHP Cooling EIRFPLR");
571
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofPLRCurve.setCoefficient1Constant(1);
572
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofPLRCurve.setCoefficient2x(0);
573
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofPLRCurve.setCoefficient3xPOW2(0);
574
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofPLRCurve.setMinimumValueofx(0);
575
1/1
✓ Branch 1 taken 10 times.
10 fuelEnergyInputRatioFunctionofPLRCurve.setMaximumValueofx(1);
576
1/1
✓ Branch 1 taken 10 times.
10 ok = setFuelEnergyInputRatioFunctionofPLRCurve(fuelEnergyInputRatioFunctionofPLRCurve);
577
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
578 10 }
579
580
1/1
✓ Branch 1 taken 10 times.
10 ok = setMinimumPartLoadRatio(0.1);
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 = setMaximumPartLoadRatio(1.0);
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 = setNominalAuxiliaryElectricPower(0);
585
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
586
1/1
✓ Branch 1 taken 10 times.
10 ok = setStandbyElectricPower(0);
587
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
588
1/1
✓ Branch 1 taken 10 times.
10 ok = setMinimumUnloadingRatio(0.25);
589
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
✗ Branch 3 not taken.
10 OS_ASSERT(ok);
590 10 }
591
592 1 HeatPumpAirToWaterFuelFiredCooling::HeatPumpAirToWaterFuelFiredCooling(const Model& model,
593 const Curve& normalizedCapacityFunctionofTemperatureCurve,
594 const Curve& fuelEnergyInputRatioFunctionofTemperatureCurve,
595 1 const Curve& fuelEnergyInputRatioFunctionofPLRCurve)
596 1 : StraightComponent(HeatPumpAirToWaterFuelFiredCooling::iddObjectType(), model) {
597
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 1 time.
✗ Branch 5 not taken.
1 OS_ASSERT(getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>());
598
599 1 bool ok = true;
600
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 ok = setFuelType("NaturalGas");
601
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
602
1/1
✓ Branch 1 taken 1 time.
1 autosizeNominalCoolingCapacity();
603
1/1
✓ Branch 1 taken 1 time.
1 ok = setNominalCOP(1.0);
604
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
605
1/1
✓ Branch 1 taken 1 time.
1 autosizeDesignFlowRate();
606
1/1
✓ Branch 1 taken 1 time.
1 ok = setDesignSupplyTemperature(7.0);
607
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
608
1/1
✓ Branch 1 taken 1 time.
1 ok = setDesignTemperatureLift(11.1);
609
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
610
1/1
✓ Branch 1 taken 1 time.
1 ok = setSizingFactor(1.0);
611
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
612
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 ok = setFlowMode("NotModulated");
613
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
614
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 ok = setOutdoorAirTemperatureCurveInputVariable("DryBulb");
615
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
616
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 ok = setWaterTemperatureCurveInputVariable("EnteringEvaporator");
617
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
618
619
1/1
✓ Branch 1 taken 1 time.
1 ok = setNormalizedCapacityFunctionofTemperatureCurve(normalizedCapacityFunctionofTemperatureCurve);
620
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 if (!ok) {
621 ✗ remove();
622 ✗ LOG_AND_THROW("Unable to set " << briefDescription() << "'s normalized capacity modifier function of temperature curve to "
623 << normalizedCapacityFunctionofTemperatureCurve.briefDescription() << ".");
624 }
625
626
1/1
✓ Branch 1 taken 1 time.
1 ok = setFuelEnergyInputRatioFunctionofTemperatureCurve(fuelEnergyInputRatioFunctionofTemperatureCurve);
627
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 if (!ok) {
628 ✗ remove();
629 ✗ LOG_AND_THROW("Unable to set " << briefDescription() << "'s fuel energy input ratio function of temperature curve to "
630 << fuelEnergyInputRatioFunctionofTemperatureCurve.briefDescription() << ".");
631 }
632
633
1/1
✓ Branch 1 taken 1 time.
1 ok = setFuelEnergyInputRatioFunctionofPLRCurve(fuelEnergyInputRatioFunctionofPLRCurve);
634
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 if (!ok) {
635 ✗ remove();
636 ✗ LOG_AND_THROW("Unable to set " << briefDescription() << "'s fuel energy input ratio function of PLR curve to "
637 << fuelEnergyInputRatioFunctionofPLRCurve.briefDescription() << ".");
638 }
639
640
1/1
✓ Branch 1 taken 1 time.
1 ok = setMinimumPartLoadRatio(0.1);
641
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
642
1/1
✓ Branch 1 taken 1 time.
1 ok = setMaximumPartLoadRatio(1.0);
643
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
644
1/1
✓ Branch 1 taken 1 time.
1 ok = setNominalAuxiliaryElectricPower(0);
645
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
646
1/1
✓ Branch 1 taken 1 time.
1 ok = setStandbyElectricPower(0);
647
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
648
1/1
✓ Branch 1 taken 1 time.
1 ok = setMinimumUnloadingRatio(0.25);
649
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
1 OS_ASSERT(ok);
650 1 }
651
652 7754 IddObjectType HeatPumpAirToWaterFuelFiredCooling::iddObjectType() {
653
1/1
✓ Branch 1 taken 7754 times.
7754 return {IddObjectType::OS_HeatPump_AirToWater_FuelFired_Cooling};
654 }
655
656 ✗ std::vector<std::string> HeatPumpAirToWaterFuelFiredCooling::fuelTypeValues() {
657 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_HeatPump_AirToWater_FuelFired_CoolingFields::FuelType);
658 }
659
660 ✗ std::vector<std::string> HeatPumpAirToWaterFuelFiredCooling::flowModeValues() {
661 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_HeatPump_AirToWater_FuelFired_CoolingFields::FlowMode);
662 }
663
664 ✗ std::vector<std::string> HeatPumpAirToWaterFuelFiredCooling::outdoorAirTemperatureCurveInputVariableValues() {
665 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(),
666 ✗ OS_HeatPump_AirToWater_FuelFired_CoolingFields::OutdoorAirTemperatureCurveInputVariable);
667 }
668
669 ✗ std::vector<std::string> HeatPumpAirToWaterFuelFiredCooling::waterTemperatureCurveInputVariableValues() {
670 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(),
671 ✗ OS_HeatPump_AirToWater_FuelFired_CoolingFields::WaterTemperatureCurveInputVariable);
672 }
673
674 8 boost::optional<HeatPumpAirToWaterFuelFiredHeating> HeatPumpAirToWaterFuelFiredCooling::companionHeatingHeatPump() const {
675
1/1
✓ Branch 3 taken 8 times.
8 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->companionHeatingHeatPump();
676 }
677
678 3 std::string HeatPumpAirToWaterFuelFiredCooling::fuelType() const {
679
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->fuelType();
680 }
681
682 4 std::string HeatPumpAirToWaterFuelFiredCooling::endUseSubcategory() const {
683
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->endUseSubcategory();
684 }
685
686 3 bool HeatPumpAirToWaterFuelFiredCooling::isEndUseSubcategoryDefaulted() const {
687
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->isEndUseSubcategoryDefaulted();
688 }
689
690 6 boost::optional<double> HeatPumpAirToWaterFuelFiredCooling::nominalCoolingCapacity() const {
691
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->nominalCoolingCapacity();
692 }
693
694 4 bool HeatPumpAirToWaterFuelFiredCooling::isNominalCoolingCapacityAutosized() const {
695
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->isNominalCoolingCapacityAutosized();
696 }
697
698 ✗ boost::optional<double> HeatPumpAirToWaterFuelFiredCooling::autosizedNominalCoolingCapacity() {
699 ✗ return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->autosizedNominalCoolingCapacity();
700 }
701
702 3 double HeatPumpAirToWaterFuelFiredCooling::nominalCOP() const {
703
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->nominalCOP();
704 }
705
706 6 boost::optional<double> HeatPumpAirToWaterFuelFiredCooling::designFlowRate() const {
707
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->designFlowRate();
708 }
709
710 4 bool HeatPumpAirToWaterFuelFiredCooling::isDesignFlowRateAutosized() const {
711
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->isDesignFlowRateAutosized();
712 }
713
714 ✗ boost::optional<double> HeatPumpAirToWaterFuelFiredCooling::autosizedDesignFlowRate() {
715 ✗ return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->autosizedDesignFlowRate();
716 }
717
718 3 double HeatPumpAirToWaterFuelFiredCooling::designSupplyTemperature() const {
719
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->designSupplyTemperature();
720 }
721
722 6 boost::optional<double> HeatPumpAirToWaterFuelFiredCooling::designTemperatureLift() const {
723
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->designTemperatureLift();
724 }
725
726 4 bool HeatPumpAirToWaterFuelFiredCooling::isDesignTemperatureLiftAutosized() const {
727
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->isDesignTemperatureLiftAutosized();
728 }
729
730 ✗ boost::optional<double> HeatPumpAirToWaterFuelFiredCooling::autosizedDesignTemperatureLift() {
731 ✗ return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->autosizedDesignTemperatureLift();
732 }
733
734 3 double HeatPumpAirToWaterFuelFiredCooling::sizingFactor() const {
735
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->sizingFactor();
736 }
737
738 3 std::string HeatPumpAirToWaterFuelFiredCooling::flowMode() const {
739
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->flowMode();
740 }
741
742 3 std::string HeatPumpAirToWaterFuelFiredCooling::outdoorAirTemperatureCurveInputVariable() const {
743
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->outdoorAirTemperatureCurveInputVariable();
744 }
745
746 3 std::string HeatPumpAirToWaterFuelFiredCooling::waterTemperatureCurveInputVariable() const {
747
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->waterTemperatureCurveInputVariable();
748 }
749
750 5 Curve HeatPumpAirToWaterFuelFiredCooling::normalizedCapacityFunctionofTemperatureCurve() const {
751
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->normalizedCapacityFunctionofTemperatureCurve();
752 }
753
754 5 Curve HeatPumpAirToWaterFuelFiredCooling::fuelEnergyInputRatioFunctionofTemperatureCurve() const {
755
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->fuelEnergyInputRatioFunctionofTemperatureCurve();
756 }
757
758 5 Curve HeatPumpAirToWaterFuelFiredCooling::fuelEnergyInputRatioFunctionofPLRCurve() const {
759
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->fuelEnergyInputRatioFunctionofPLRCurve();
760 }
761
762 3 double HeatPumpAirToWaterFuelFiredCooling::minimumPartLoadRatio() const {
763
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->minimumPartLoadRatio();
764 }
765
766 3 double HeatPumpAirToWaterFuelFiredCooling::maximumPartLoadRatio() const {
767
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->maximumPartLoadRatio();
768 }
769
770 5 boost::optional<Curve> HeatPumpAirToWaterFuelFiredCooling::cyclingRatioFactorCurve() const {
771
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->cyclingRatioFactorCurve();
772 }
773
774 3 double HeatPumpAirToWaterFuelFiredCooling::nominalAuxiliaryElectricPower() const {
775
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->nominalAuxiliaryElectricPower();
776 }
777
778 5 boost::optional<Curve> HeatPumpAirToWaterFuelFiredCooling::auxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve() const {
779
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->auxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve();
780 }
781
782 5 boost::optional<Curve> HeatPumpAirToWaterFuelFiredCooling::auxiliaryElectricEnergyInputRatioFunctionofPLRCurve() const {
783
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->auxiliaryElectricEnergyInputRatioFunctionofPLRCurve();
784 }
785
786 3 double HeatPumpAirToWaterFuelFiredCooling::standbyElectricPower() const {
787
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->standbyElectricPower();
788 }
789
790 3 double HeatPumpAirToWaterFuelFiredCooling::minimumUnloadingRatio() const {
791
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->minimumUnloadingRatio();
792 }
793
794 6 bool HeatPumpAirToWaterFuelFiredCooling::setCompanionHeatingHeatPump(const HeatPumpAirToWaterFuelFiredHeating& heatPumpAirToWaterFuelFiredHeating) {
795
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->setCompanionHeatingHeatPump(heatPumpAirToWaterFuelFiredHeating);
796 }
797
798 1 void HeatPumpAirToWaterFuelFiredCooling::resetCompanionHeatingHeatPump() {
799
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->resetCompanionHeatingHeatPump();
800 1 }
801
802 13 bool HeatPumpAirToWaterFuelFiredCooling::setFuelType(const std::string& fuelType) {
803
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->setFuelType(fuelType);
804 }
805
806 2 bool HeatPumpAirToWaterFuelFiredCooling::setEndUseSubcategory(const std::string& endUseSubcategory) {
807
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->setEndUseSubcategory(endUseSubcategory);
808 }
809
810 1 void HeatPumpAirToWaterFuelFiredCooling::resetEndUseSubcategory() {
811
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->resetEndUseSubcategory();
812 1 }
813
814 2 bool HeatPumpAirToWaterFuelFiredCooling::setNominalCoolingCapacity(double nominalCoolingCapacity) {
815
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->setNominalCoolingCapacity(nominalCoolingCapacity);
816 }
817
818 1 void HeatPumpAirToWaterFuelFiredCooling::resetNominalCoolingCapacity() {
819
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->resetNominalCoolingCapacity();
820 1 }
821
822 12 void HeatPumpAirToWaterFuelFiredCooling::autosizeNominalCoolingCapacity() {
823
1/1
✓ Branch 3 taken 12 times.
12 getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->autosizeNominalCoolingCapacity();
824 12 }
825
826 13 bool HeatPumpAirToWaterFuelFiredCooling::setNominalCOP(double nominalCOP) {
827
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->setNominalCOP(nominalCOP);
828 }
829
830 2 bool HeatPumpAirToWaterFuelFiredCooling::setDesignFlowRate(double designFlowRate) {
831
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->setDesignFlowRate(designFlowRate);
832 }
833
834 1 void HeatPumpAirToWaterFuelFiredCooling::resetDesignFlowRate() {
835
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->resetDesignFlowRate();
836 1 }
837
838 12 void HeatPumpAirToWaterFuelFiredCooling::autosizeDesignFlowRate() {
839
1/1
✓ Branch 3 taken 12 times.
12 getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->autosizeDesignFlowRate();
840 12 }
841
842 13 bool HeatPumpAirToWaterFuelFiredCooling::setDesignSupplyTemperature(double designSupplyTemperature) {
843
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->setDesignSupplyTemperature(designSupplyTemperature);
844 }
845
846 13 bool HeatPumpAirToWaterFuelFiredCooling::setDesignTemperatureLift(double designTemperatureLift) {
847
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->setDesignTemperatureLift(designTemperatureLift);
848 }
849
850 1 void HeatPumpAirToWaterFuelFiredCooling::autosizeDesignTemperatureLift() {
851
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->autosizeDesignTemperatureLift();
852 1 }
853
854 13 bool HeatPumpAirToWaterFuelFiredCooling::setSizingFactor(double sizingFactor) {
855
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->setSizingFactor(sizingFactor);
856 }
857
858 13 bool HeatPumpAirToWaterFuelFiredCooling::setFlowMode(const std::string& flowMode) {
859
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->setFlowMode(flowMode);
860 }
861
862 13 bool HeatPumpAirToWaterFuelFiredCooling::setOutdoorAirTemperatureCurveInputVariable(const std::string& outdoorAirTemperatureCurveInputVariable) {
863
1/1
✓ Branch 3 taken 13 times.
26 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->setOutdoorAirTemperatureCurveInputVariable(
864 26 outdoorAirTemperatureCurveInputVariable);
865 }
866
867 13 bool HeatPumpAirToWaterFuelFiredCooling::setWaterTemperatureCurveInputVariable(const std::string& waterTemperatureCurveInputVariable) {
868
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->setWaterTemperatureCurveInputVariable(waterTemperatureCurveInputVariable);
869 }
870
871 bool
872 13 HeatPumpAirToWaterFuelFiredCooling::setNormalizedCapacityFunctionofTemperatureCurve(const Curve& normalizedCapacityFunctionofTemperatureCurve) {
873
1/1
✓ Branch 3 taken 13 times.
26 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->setNormalizedCapacityFunctionofTemperatureCurve(
874 26 normalizedCapacityFunctionofTemperatureCurve);
875 }
876
877 13 bool HeatPumpAirToWaterFuelFiredCooling::setFuelEnergyInputRatioFunctionofTemperatureCurve(
878 const Curve& fuelEnergyInputRatioFunctionofTemperatureCurve) {
879
1/1
✓ Branch 3 taken 13 times.
26 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->setFuelEnergyInputRatioFunctionofTemperatureCurve(
880 26 fuelEnergyInputRatioFunctionofTemperatureCurve);
881 }
882
883 13 bool HeatPumpAirToWaterFuelFiredCooling::setFuelEnergyInputRatioFunctionofPLRCurve(const Curve& fuelEnergyInputRatioFunctionofPLRCurve) {
884
1/1
✓ Branch 3 taken 13 times.
26 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->setFuelEnergyInputRatioFunctionofPLRCurve(
885 26 fuelEnergyInputRatioFunctionofPLRCurve);
886 }
887
888 13 bool HeatPumpAirToWaterFuelFiredCooling::setMinimumPartLoadRatio(double minimumPartLoadRatio) {
889
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->setMinimumPartLoadRatio(minimumPartLoadRatio);
890 }
891
892 13 bool HeatPumpAirToWaterFuelFiredCooling::setMaximumPartLoadRatio(double maximumPartLoadRatio) {
893
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->setMaximumPartLoadRatio(maximumPartLoadRatio);
894 }
895
896 2 bool HeatPumpAirToWaterFuelFiredCooling::setCyclingRatioFactorCurve(const Curve& cyclingRatioFactorCurve) {
897
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->setCyclingRatioFactorCurve(cyclingRatioFactorCurve);
898 }
899
900 1 void HeatPumpAirToWaterFuelFiredCooling::resetCyclingRatioFactorCurve() {
901
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->resetCyclingRatioFactorCurve();
902 1 }
903
904 13 bool HeatPumpAirToWaterFuelFiredCooling::setNominalAuxiliaryElectricPower(double nominalAuxiliaryElectricPower) {
905
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->setNominalAuxiliaryElectricPower(nominalAuxiliaryElectricPower);
906 }
907
908 2 bool HeatPumpAirToWaterFuelFiredCooling::setAuxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve(
909 const Curve& auxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve) {
910
1/1
✓ Branch 3 taken 2 times.
4 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->setAuxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve(
911 4 auxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve);
912 }
913
914 1 void HeatPumpAirToWaterFuelFiredCooling::resetAuxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve() {
915
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->resetAuxiliaryElectricEnergyInputRatioFunctionofTemperatureCurve();
916 1 }
917
918 2 bool HeatPumpAirToWaterFuelFiredCooling::setAuxiliaryElectricEnergyInputRatioFunctionofPLRCurve(
919 const Curve& auxiliaryElectricEnergyInputRatioFunctionofPLRCurve) {
920
1/1
✓ Branch 3 taken 2 times.
4 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->setAuxiliaryElectricEnergyInputRatioFunctionofPLRCurve(
921 4 auxiliaryElectricEnergyInputRatioFunctionofPLRCurve);
922 }
923
924 1 void HeatPumpAirToWaterFuelFiredCooling::resetAuxiliaryElectricEnergyInputRatioFunctionofPLRCurve() {
925
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->resetAuxiliaryElectricEnergyInputRatioFunctionofPLRCurve();
926 1 }
927
928 13 bool HeatPumpAirToWaterFuelFiredCooling::setStandbyElectricPower(double standbyElectricPower) {
929
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->setStandbyElectricPower(standbyElectricPower);
930 }
931
932 13 bool HeatPumpAirToWaterFuelFiredCooling::setMinimumUnloadingRatio(double minimumUnloadingRatio) {
933
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpAirToWaterFuelFiredCooling_Impl>()->setMinimumUnloadingRatio(minimumUnloadingRatio);
934 }
935
936 /// @cond
937 8 HeatPumpAirToWaterFuelFiredCooling::HeatPumpAirToWaterFuelFiredCooling(std::shared_ptr<detail::HeatPumpAirToWaterFuelFiredCooling_Impl> impl)
938
1/1
✓ Branch 3 taken 8 times.
8 : StraightComponent(std::move(impl)) {}
939 /// @endcond
940
941 } // namespace model
942 } // namespace openstudio
943