GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 86.6% 633 / 0 / 731
Functions: 87.1% 183 / 0 / 210
Branches: 66.0% 463 / 0 / 702

src/model/HeatPumpPlantLoopEIRHeating.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 "HeatPumpPlantLoopEIRHeating.hpp"
7 #include "HeatPumpPlantLoopEIRHeating_Impl.hpp"
8 #include "Model.hpp"
9 #include "Curve.hpp"
10 #include "Curve_Impl.hpp"
11 #include "CurveBiquadratic.hpp"
12 #include "CurveBiquadratic_Impl.hpp"
13 #include "CurveQuadratic.hpp"
14 #include "CurveQuadratic_Impl.hpp"
15 #include "Node.hpp"
16 #include "Node_Impl.hpp"
17
18 #include "HeatPumpPlantLoopEIRCooling.hpp"
19 #include "HeatPumpPlantLoopEIRCooling_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_PlantLoop_EIR_Heating_FieldEnums.hxx>
27
28 namespace openstudio {
29
30 namespace model {
31
32 namespace detail {
33
34 14 HeatPumpPlantLoopEIRHeating_Impl::HeatPumpPlantLoopEIRHeating_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
35 14 : WaterToWaterComponent_Impl(idfObject, model, keepHandle) {
36
4/6
✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
✓ Branch 7 taken 14 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 14 times.
✗ Branch 13 not taken.
14 OS_ASSERT(idfObject.iddObject().type() == HeatPumpPlantLoopEIRHeating::iddObjectType());
37 14 }
38
39 2 HeatPumpPlantLoopEIRHeating_Impl::HeatPumpPlantLoopEIRHeating_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model,
40 2 bool keepHandle)
41 2 : WaterToWaterComponent_Impl(other, model, keepHandle) {
42
4/6
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 2 times.
✗ Branch 13 not taken.
2 OS_ASSERT(other.iddObject().type() == HeatPumpPlantLoopEIRHeating::iddObjectType());
43 2 }
44
45 7 HeatPumpPlantLoopEIRHeating_Impl::HeatPumpPlantLoopEIRHeating_Impl(const HeatPumpPlantLoopEIRHeating_Impl& other, Model_Impl* model,
46 7 bool keepHandle)
47 7 : WaterToWaterComponent_Impl(other, model, keepHandle) {}
48
49 ✗ const std::vector<std::string>& HeatPumpPlantLoopEIRHeating_Impl::outputVariableNames() const {
50 static const std::vector<std::string> result{
51 "Heat Pump Part Load Ratio",
52 "Heat Pump Cycling Ratio",
53 "Heat Pump Load Side Heat Transfer Rate",
54 "Heat Pump Load Side Heat Transfer Energy",
55 "Heat Pump Source Side Heat Transfer Rate",
56 "Heat Pump Source Side Heat Transfer Energy",
57 "Heat Pump Load Side Inlet Temperature",
58 "Heat Pump Load Side Outlet Temperature",
59 "Heat Pump Source Side Inlet Temperature",
60 "Heat Pump Source Side Outlet Temperature",
61 "Heat Pump Electricity Rate",
62 "Heat Pump Load Side Mass Flow Rate",
63 "Heat Pump Source Side Mass Flow Rate",
64 "Heat Pump Heat Recovery Heat Transfer Rate",
65 "Heat Pump Heat Recovery Heat Transfer Energy",
66 "Heat Pump Heat Recovery Inlet Temperature",
67 "Heat Pump Heat Recovery Outlet Temperature",
68 "Heat Pump Heat Recovery Mass Flow Rate",
69 "Heat Pump Heat Recovery Operation Status",
70 "Heat Pump Electricity Energy",
71 "Heat Pump Load Due To Defrost",
72 "Heat Pump Fractioal Defrost Time",
73 "Heat Pump Defrost Electricity Rate",
74 "Heat Pump Defrost Electricity Energy",
75 ✗ };
76 ✗ return result;
77 ✗ }
78
79 ✗ IddObjectType HeatPumpPlantLoopEIRHeating_Impl::iddObjectType() const {
80 ✗ return HeatPumpPlantLoopEIRHeating::iddObjectType();
81 }
82
83 83 unsigned HeatPumpPlantLoopEIRHeating_Impl::supplyInletPort() const {
84 83 return OS_HeatPump_PlantLoop_EIR_HeatingFields::LoadSideInletNodeName;
85 }
86
87 58 unsigned HeatPumpPlantLoopEIRHeating_Impl::supplyOutletPort() const {
88 58 return OS_HeatPump_PlantLoop_EIR_HeatingFields::LoadSideOutletNodeName;
89 }
90
91 45 unsigned HeatPumpPlantLoopEIRHeating_Impl::demandInletPort() const {
92 45 return OS_HeatPump_PlantLoop_EIR_HeatingFields::SourceSideInletNodeName;
93 }
94
95 37 unsigned HeatPumpPlantLoopEIRHeating_Impl::demandOutletPort() const {
96 37 return OS_HeatPump_PlantLoop_EIR_HeatingFields::SourceSideOutletNodeName;
97 }
98
99 18 unsigned HeatPumpPlantLoopEIRHeating_Impl::tertiaryInletPort() const {
100 18 return OS_HeatPump_PlantLoop_EIR_HeatingFields::HeatRecoveryInletNodeName;
101 }
102
103 78 unsigned HeatPumpPlantLoopEIRHeating_Impl::tertiaryOutletPort() const {
104 78 return OS_HeatPump_PlantLoop_EIR_HeatingFields::HeatRecoveryOutletNodeName;
105 }
106
107 /** Convenience Function to return the Load Side Water Loop (HeatPump on supply side) **/
108 12 boost::optional<PlantLoop> HeatPumpPlantLoopEIRHeating_Impl::loadSideWaterLoop() const {
109 12 return WaterToWaterComponent_Impl::plantLoop();
110 }
111
112 /** Convenience Function to return the Source Side (Condenser) Water Loop (HeatPump on demand side) **/
113 28 boost::optional<PlantLoop> HeatPumpPlantLoopEIRHeating_Impl::sourceSideWaterLoop() const {
114 28 return WaterToWaterComponent_Impl::secondaryPlantLoop();
115 }
116
117 /** Convenience Function to return the Heat Recovery Loop (HeatPump on demand side - tertiary) **/
118 16 boost::optional<PlantLoop> HeatPumpPlantLoopEIRHeating_Impl::heatRecoveryLoop() const {
119 16 return WaterToWaterComponent_Impl::tertiaryPlantLoop();
120 }
121
122 2 boost::optional<Node> HeatPumpPlantLoopEIRHeating_Impl::sourceSideWaterInletNode() const {
123 2 boost::optional<Node> result;
124
125
3/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
4 if (auto mo = demandInletModelObject()) {
126
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 result = mo->optionalCast<Node>();
127 2 }
128 2 return result;
129 ✗ }
130
131 2 boost::optional<Node> HeatPumpPlantLoopEIRHeating_Impl::sourceSideWaterOutletNode() const {
132 2 boost::optional<Node> result;
133
134
3/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
4 if (auto mo = demandOutletModelObject()) {
135
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 result = mo->optionalCast<Node>();
136 2 }
137 2 return result;
138 ✗ }
139
140 2 boost::optional<Node> HeatPumpPlantLoopEIRHeating_Impl::loadSideWaterInletNode() const {
141 2 boost::optional<Node> result;
142
143
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 if (auto mo = supplyInletModelObject()) {
144
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 result = mo->optionalCast<Node>();
145 2 }
146 2 return result;
147 ✗ }
148
149 2 boost::optional<Node> HeatPumpPlantLoopEIRHeating_Impl::loadSideWaterOutletNode() const {
150 2 boost::optional<Node> result;
151
152
2/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4 if (auto mo = supplyOutletModelObject()) {
153
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 result = mo->optionalCast<Node>();
154 2 }
155 2 return result;
156 ✗ }
157
158 ✗ boost::optional<Node> HeatPumpPlantLoopEIRHeating_Impl::heatRecoveryInletNode() const {
159 ✗ boost::optional<Node> result;
160
161 ✗ if (auto mo = tertiaryInletModelObject()) {
162 ✗ result = mo->optionalCast<Node>();
163 ✗ }
164 ✗ return result;
165 ✗ }
166
167 ✗ boost::optional<Node> HeatPumpPlantLoopEIRHeating_Impl::heatRecoveryOutletNode() const {
168 ✗ boost::optional<Node> result;
169
170 ✗ if (auto mo = tertiaryOutletModelObject()) {
171 ✗ result = mo->optionalCast<Node>();
172 ✗ }
173 ✗ return result;
174 ✗ }
175
176 12 bool HeatPumpPlantLoopEIRHeating_Impl::addToNode(Node& node) {
177
178
1/1
✓ Branch 1 taken 12 times.
12 boost::optional<PlantLoop> t_plantLoop = node.plantLoop();
179
180 // If trying to add to a node that is on the demand side of a plant loop
181
1/2
✓ Branch 0 taken 12 times.
✗ Branch 1 not taken.
12 if (t_plantLoop) {
182
5/5
✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
✓ Branch 7 taken 12 times.
✓ Branch 10 taken 7 times.
✓ Branch 11 taken 5 times.
24 if (t_plantLoop->demandComponent(node.handle())) {
183 // If there is already a source side water Plant Loop
184
3/3
✓ Branch 1 taken 7 times.
✓ Branch 3 taken 3 times.
✓ Branch 4 taken 4 times.
14 if (boost::optional<PlantLoop> ssLoop = this->sourceSideWaterLoop()) {
185 // And it's not the same as the node's loop
186
4/5
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 9 taken 3 times.
✗ Branch 10 not taken.
3 if (t_plantLoop.get() != ssLoop.get()) {
187 // And if there is no generator loop (tertiary)
188
3/3
✓ Branch 1 taken 3 times.
✓ Branch 5 taken 2 times.
✓ Branch 6 taken 1 time.
3 if (!this->heatRecoveryLoop().is_initialized()) {
189 // Then try to add it to the tertiary one
190
7/7
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 14 taken 2 times.
✓ Branch 17 taken 2 times.
✓ Branch 20 taken 2 times.
2 LOG(Warn, "Calling addToTertiaryNode to connect it to the tertiary (=Heat Recovery Loop) loop for " << briefDescription());
191
1/1
✓ Branch 1 taken 2 times.
2 return this->addToTertiaryNode(node);
192 }
193 }
194 7 }
195 }
196 }
197
198 // All other cases, call the base class implementation
199 // call the base class implementation to connect the component
200
1/1
✓ Branch 1 taken 10 times.
10 bool ok = WaterToWaterComponent_Impl::addToNode(node);
201
202 // If there's a secondary plant loop, switch the condenser type to "WaterSource"
203
3/3
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 7 times.
✓ Branch 5 taken 3 times.
20 if (this->sourceSideWaterLoop()) {
204
2/2
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
14 this->setCondenserType("WaterSource");
205 }
206 10 return ok;
207 12 }
208
209 3 bool HeatPumpPlantLoopEIRHeating_Impl::addToTertiaryNode(Node& node) {
210
211
1/1
✓ Branch 1 taken 3 times.
3 auto t_plantLoop = node.plantLoop();
212
213 // Only accept adding to a node that is on a demand side of a plant loop
214 // Since tertiary here = heat recovery loop (cooling)
215
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 if (t_plantLoop) {
216
5/5
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 2 times.
✓ Branch 11 taken 1 time.
6 if (t_plantLoop->demandComponent(node.handle())) {
217 // Call base class method which accepts both supply and demand
218
1/1
✓ Branch 1 taken 2 times.
2 return WaterToWaterComponent_Impl::addToTertiaryNode(node);
219 } else {
220
7/7
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 14 taken 1 time.
✓ Branch 17 taken 1 time.
✓ Branch 20 taken 1 time.
1 LOG(Info,
221 "Tertiary Loop (Heat Recovery Loop) connections can only be placed on the Demand side (of a Cooling Loop), for " << briefDescription());
222 }
223 }
224 1 return false;
225 3 }
226
227 7 bool HeatPumpPlantLoopEIRHeating_Impl::removeFromSecondaryPlantLoop() {
228 // Disconnect the component
229 7 bool ok = WaterToWaterComponent_Impl::removeFromSecondaryPlantLoop();
230
231 // Switch the condenser type back to "AirSource"
232
2/2
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
7 this->setCondenserType("AirSource");
233 7 return ok;
234 }
235
236 12 std::string HeatPumpPlantLoopEIRHeating_Impl::condenserType() const {
237
1/1
✓ Branch 1 taken 12 times.
12 boost::optional<std::string> value = getString(OS_HeatPump_PlantLoop_EIR_HeatingFields::CondenserType, true);
238
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 12 times.
✗ Branch 4 not taken.
12 OS_ASSERT(value);
239
2/2
✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
24 return value.get();
240 12 }
241
242 20 bool HeatPumpPlantLoopEIRHeating_Impl::setCondenserType(const std::string& condenserType) {
243 20 bool ok = false;
244
13/21
✓ Branch 1 taken 20 times.
✓ Branch 4 taken 20 times.
✓ Branch 6 taken 10 times.
✓ Branch 7 taken 10 times.
✓ Branch 9 taken 10 times.
✓ Branch 12 taken 1 time.
✓ Branch 13 taken 9 times.
✓ Branch 14 taken 10 times.
✓ Branch 15 taken 10 times.
✓ Branch 17 taken 20 times.
✗ Branch 18 not taken.
✓ Branch 20 taken 20 times.
✗ Branch 21 not taken.
✓ Branch 22 taken 1 time.
✓ Branch 23 taken 19 times.
✗ Branch 24 not taken.
✗ Branch 25 not taken.
✗ Branch 27 not taken.
✗ Branch 28 not taken.
✗ Branch 30 not taken.
✗ Branch 31 not taken.
70 if (openstudio::istringEqual("AirSource", condenserType) && (this->secondaryPlantLoop())) {
245
8/8
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 17 taken 1 time.
✓ Branch 20 taken 1 time.
✓ Branch 23 taken 1 time.
1 LOG(Warn, "Cannot set condenserType to AirSource, HeatPumpPlantLoopEIRHeating '"
246 << this->name() << "' is connected to a Source Side Loop. Use removeFromSecondaryPlantLoop() instead.");
247
13/21
✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
✓ Branch 6 taken 10 times.
✓ Branch 7 taken 9 times.
✓ Branch 9 taken 10 times.
✓ Branch 12 taken 3 times.
✓ Branch 13 taken 7 times.
✓ Branch 14 taken 10 times.
✓ Branch 15 taken 9 times.
✓ Branch 17 taken 19 times.
✗ Branch 18 not taken.
✓ Branch 20 taken 19 times.
✗ Branch 21 not taken.
✓ Branch 22 taken 3 times.
✓ Branch 23 taken 16 times.
✗ Branch 24 not taken.
✗ Branch 25 not taken.
✗ Branch 27 not taken.
✗ Branch 28 not taken.
✗ Branch 30 not taken.
✗ Branch 31 not taken.
57 } else if (istringEqual("WaterSource", condenserType) && !(this->secondaryPlantLoop())) {
248
8/8
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
✓ Branch 13 taken 3 times.
✓ Branch 17 taken 3 times.
✓ Branch 20 taken 3 times.
✓ Branch 23 taken 3 times.
3 LOG(Warn, "Cannot set condenserType to 'WaterSource', HeatPumpPlantLoopEIRHeating '"
249 << this->name() << "' is not connected to a Source Side Loop. Use addToNode(PlantLoop&) instead.");
250 } else {
251 16 ok = setString(OS_HeatPump_PlantLoop_EIR_HeatingFields::CondenserType, condenserType);
252 }
253
254 20 return ok;
255 }
256
257 6 boost::optional<HeatPumpPlantLoopEIRCooling> HeatPumpPlantLoopEIRHeating_Impl::companionCoolingHeatPump() const {
258
1/1
✓ Branch 1 taken 6 times.
12 return getObject<ModelObject>().getModelObjectTarget<HeatPumpPlantLoopEIRCooling>(
259
1/1
✓ Branch 1 taken 6 times.
12 OS_HeatPump_PlantLoop_EIR_HeatingFields::CompanionHeatPumpName);
260 }
261
262 5 boost::optional<double> HeatPumpPlantLoopEIRHeating_Impl::loadSideReferenceFlowRate() const {
263 5 return getDouble(OS_HeatPump_PlantLoop_EIR_HeatingFields::LoadSideReferenceFlowRate, true);
264 }
265
266 8 bool HeatPumpPlantLoopEIRHeating_Impl::isLoadSideReferenceFlowRateAutosized() const {
267 8 bool result = false;
268
1/1
✓ Branch 1 taken 8 times.
8 boost::optional<std::string> value = getString(OS_HeatPump_PlantLoop_EIR_HeatingFields::LoadSideReferenceFlowRate, true);
269
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 if (value) {
270
3/3
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
16 result = openstudio::istringEqual(value.get(), "Autosize");
271 }
272 8 return result;
273 8 }
274
275 5 boost::optional<double> HeatPumpPlantLoopEIRHeating_Impl::sourceSideReferenceFlowRate() const {
276 5 return getDouble(OS_HeatPump_PlantLoop_EIR_HeatingFields::SourceSideReferenceFlowRate, true);
277 }
278
279 8 bool HeatPumpPlantLoopEIRHeating_Impl::isSourceSideReferenceFlowRateAutosized() const {
280 8 bool result = false;
281
1/1
✓ Branch 1 taken 8 times.
8 boost::optional<std::string> value = getString(OS_HeatPump_PlantLoop_EIR_HeatingFields::SourceSideReferenceFlowRate, true);
282
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 if (value) {
283
3/3
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
16 result = openstudio::istringEqual(value.get(), "Autosize");
284 }
285 8 return result;
286 8 }
287
288 ✗ boost::optional<double> HeatPumpPlantLoopEIRHeating_Impl::heatRecoveryReferenceFlowRate() const {
289 ✗ return getDouble(OS_HeatPump_PlantLoop_EIR_HeatingFields::HeatRecoveryReferenceFlowRate, true);
290 }
291
292 ✗ bool HeatPumpPlantLoopEIRHeating_Impl::isHeatRecoveryReferenceFlowRateAutosized() const {
293 ✗ bool result = false;
294 ✗ boost::optional<std::string> value = getString(OS_HeatPump_PlantLoop_EIR_HeatingFields::HeatRecoveryReferenceFlowRate, true);
295 ✗ if (value) {
296 ✗ result = openstudio::istringEqual(value.get(), "Autosize");
297 }
298 ✗ return result;
299 ✗ }
300
301 5 boost::optional<double> HeatPumpPlantLoopEIRHeating_Impl::referenceCapacity() const {
302 5 return getDouble(OS_HeatPump_PlantLoop_EIR_HeatingFields::ReferenceCapacity, true);
303 }
304
305 8 bool HeatPumpPlantLoopEIRHeating_Impl::isReferenceCapacityAutosized() const {
306 8 bool result = false;
307
1/1
✓ Branch 1 taken 8 times.
8 boost::optional<std::string> value = getString(OS_HeatPump_PlantLoop_EIR_HeatingFields::ReferenceCapacity, true);
308
1/2
✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
8 if (value) {
309
3/3
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
16 result = openstudio::istringEqual(value.get(), "Autosize");
310 }
311 8 return result;
312 8 }
313
314 5 double HeatPumpPlantLoopEIRHeating_Impl::referenceCoefficientofPerformance() const {
315
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<double> value = getDouble(OS_HeatPump_PlantLoop_EIR_HeatingFields::ReferenceCoefficientofPerformance, true);
316
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
317
1/1
✓ Branch 1 taken 5 times.
10 return value.get();
318 }
319
320 5 double HeatPumpPlantLoopEIRHeating_Impl::sizingFactor() const {
321
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<double> value = getDouble(OS_HeatPump_PlantLoop_EIR_HeatingFields::SizingFactor, true);
322
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
323
1/1
✓ Branch 1 taken 5 times.
10 return value.get();
324 }
325
326 7 Curve HeatPumpPlantLoopEIRHeating_Impl::capacityModifierFunctionofTemperatureCurve() const {
327
3/3
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
7 WorkspaceObject wo = getTarget(OS_HeatPump_PlantLoop_EIR_HeatingFields::CapacityModifierFunctionofTemperatureCurveName).get();
328
3/3
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
14 return wo.optionalCast<Curve>().get();
329 7 }
330
331 7 Curve HeatPumpPlantLoopEIRHeating_Impl::electricInputtoOutputRatioModifierFunctionofTemperatureCurve() const {
332
3/3
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
7 WorkspaceObject wo = getTarget(OS_HeatPump_PlantLoop_EIR_HeatingFields::ElectricInputtoOutputRatioModifierFunctionofTemperatureCurveName).get();
333
3/3
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
14 return wo.optionalCast<Curve>().get();
334 7 }
335
336 7 Curve HeatPumpPlantLoopEIRHeating_Impl::electricInputtoOutputRatioModifierFunctionofPartLoadRatioCurve() const {
337 WorkspaceObject wo =
338
3/3
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
7 getTarget(OS_HeatPump_PlantLoop_EIR_HeatingFields::ElectricInputtoOutputRatioModifierFunctionofPartLoadRatioCurveName).get();
339
3/3
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
14 return wo.optionalCast<Curve>().get();
340 7 }
341
342 5 double HeatPumpPlantLoopEIRHeating_Impl::heatingToCoolingCapacitySizingRatio() const {
343
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<double> value = getDouble(OS_HeatPump_PlantLoop_EIR_HeatingFields::HeatingToCoolingCapacitySizingRatio, true);
344
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
345
1/1
✓ Branch 1 taken 5 times.
10 return value.get();
346 }
347
348 5 std::string HeatPumpPlantLoopEIRHeating_Impl::heatPumpSizingMethod() const {
349
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<std::string> value = getString(OS_HeatPump_PlantLoop_EIR_HeatingFields::HeatPumpSizingMethod, true);
350
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
351
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
10 return value.get();
352 5 }
353
354 5 std::string HeatPumpPlantLoopEIRHeating_Impl::controlType() const {
355
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<std::string> value = getString(OS_HeatPump_PlantLoop_EIR_HeatingFields::ControlType, true);
356
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
357
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
10 return value.get();
358 5 }
359
360 5 std::string HeatPumpPlantLoopEIRHeating_Impl::flowMode() const {
361
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<std::string> value = getString(OS_HeatPump_PlantLoop_EIR_HeatingFields::FlowMode, true);
362
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
363
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
10 return value.get();
364 5 }
365
366 5 double HeatPumpPlantLoopEIRHeating_Impl::minimumPartLoadRatio() const {
367
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<double> value = getDouble(OS_HeatPump_PlantLoop_EIR_HeatingFields::MinimumPartLoadRatio, true);
368
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
369
1/1
✓ Branch 1 taken 5 times.
10 return value.get();
370 }
371
372 5 double HeatPumpPlantLoopEIRHeating_Impl::minimumSourceInletTemperature() const {
373
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<double> value = getDouble(OS_HeatPump_PlantLoop_EIR_HeatingFields::MinimumSourceInletTemperature, true);
374
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
375
1/1
✓ Branch 1 taken 5 times.
10 return value.get();
376 }
377
378 5 double HeatPumpPlantLoopEIRHeating_Impl::maximumSourceInletTemperature() const {
379
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<double> value = getDouble(OS_HeatPump_PlantLoop_EIR_HeatingFields::MaximumSourceInletTemperature, true);
380
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
381
1/1
✓ Branch 1 taken 5 times.
10 return value.get();
382 }
383
384 7 boost::optional<Curve> HeatPumpPlantLoopEIRHeating_Impl::minimumSupplyWaterTemperatureCurve() const {
385
2/2
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
7 return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_HeatPump_PlantLoop_EIR_HeatingFields::MinimumSupplyWaterTemperatureCurveName);
386 }
387
388 7 boost::optional<Curve> HeatPumpPlantLoopEIRHeating_Impl::maximumSupplyWaterTemperatureCurve() const {
389
2/2
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
7 return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_HeatPump_PlantLoop_EIR_HeatingFields::MaximumSupplyWaterTemperatureCurveName);
390 }
391
392 7 boost::optional<Curve> HeatPumpPlantLoopEIRHeating_Impl::dryOutdoorCorrectionFactorCurve() const {
393
2/2
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
7 return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_HeatPump_PlantLoop_EIR_HeatingFields::DryOutdoorCorrectionFactorCurveName);
394 }
395
396 5 double HeatPumpPlantLoopEIRHeating_Impl::maximumOutdoorDryBulbTemperatureForDefrostOperation() const {
397
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<double> value = getDouble(OS_HeatPump_PlantLoop_EIR_HeatingFields::MaximumOutdoorDryBulbTemperatureForDefrostOperation, true);
398
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
399
1/1
✓ Branch 1 taken 5 times.
10 return value.get();
400 }
401
402 5 std::string HeatPumpPlantLoopEIRHeating_Impl::heatPumpDefrostControl() const {
403
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<std::string> value = getString(OS_HeatPump_PlantLoop_EIR_HeatingFields::HeatPumpDefrostControl, true);
404
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
405
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
10 return value.get();
406 5 }
407
408 5 double HeatPumpPlantLoopEIRHeating_Impl::heatPumpDefrostTimePeriodFraction() const {
409
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<double> value = getDouble(OS_HeatPump_PlantLoop_EIR_HeatingFields::HeatPumpDefrostTimePeriodFraction, true);
410
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
411
1/1
✓ Branch 1 taken 5 times.
10 return value.get();
412 }
413
414 7 boost::optional<Curve> HeatPumpPlantLoopEIRHeating_Impl::defrostEnergyInputRatioFunctionofTemperatureCurve() const {
415
1/1
✓ Branch 1 taken 7 times.
14 return getObject<ModelObject>().getModelObjectTarget<Curve>(
416
1/1
✓ Branch 1 taken 7 times.
14 OS_HeatPump_PlantLoop_EIR_HeatingFields::DefrostEnergyInputRatioFunctionofTemperatureCurveName);
417 }
418
419 7 boost::optional<Curve> HeatPumpPlantLoopEIRHeating_Impl::timedEmpiricalDefrostFrequencyCurve() const {
420
2/2
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
7 return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_HeatPump_PlantLoop_EIR_HeatingFields::TimedEmpiricalDefrostFrequencyCurveName);
421 }
422
423 7 boost::optional<Curve> HeatPumpPlantLoopEIRHeating_Impl::timedEmpiricalDefrostHeatLoadPenaltyCurve() const {
424
1/1
✓ Branch 1 taken 7 times.
14 return getObject<ModelObject>().getModelObjectTarget<Curve>(
425
1/1
✓ Branch 1 taken 7 times.
14 OS_HeatPump_PlantLoop_EIR_HeatingFields::TimedEmpiricalDefrostHeatLoadPenaltyCurveName);
426 }
427
428 7 boost::optional<Curve> HeatPumpPlantLoopEIRHeating_Impl::timedEmpiricalDefrostHeatInputEnergyFractionCurve() const {
429
1/1
✓ Branch 1 taken 7 times.
14 return getObject<ModelObject>().getModelObjectTarget<Curve>(
430
1/1
✓ Branch 1 taken 7 times.
14 OS_HeatPump_PlantLoop_EIR_HeatingFields::TimedEmpiricalDefrostHeatInputEnergyFractionCurveName);
431 }
432
433 5 double HeatPumpPlantLoopEIRHeating_Impl::minimumHeatRecoveryOutletTemperature() const {
434
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<double> value = getDouble(OS_HeatPump_PlantLoop_EIR_HeatingFields::MinimumHeatRecoveryOutletTemperature, true);
435
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
436
1/1
✓ Branch 1 taken 5 times.
10 return value.get();
437 }
438
439 7 boost::optional<Curve> HeatPumpPlantLoopEIRHeating_Impl::heatRecoveryCapacityModifierFunctionofTemperatureCurve() const {
440
1/1
✓ Branch 1 taken 7 times.
14 return getObject<ModelObject>().getModelObjectTarget<Curve>(
441
1/1
✓ Branch 1 taken 7 times.
14 OS_HeatPump_PlantLoop_EIR_HeatingFields::HeatRecoveryCapacityModifierFunctionofTemperatureCurveName);
442 }
443
444 7 boost::optional<Curve> HeatPumpPlantLoopEIRHeating_Impl::heatRecoveryElectricInputtoOutputRatioModifierFunctionofTemperatureCurve() const {
445
1/1
✓ Branch 1 taken 7 times.
14 return getObject<ModelObject>().getModelObjectTarget<Curve>(
446
1/1
✓ Branch 1 taken 7 times.
14 OS_HeatPump_PlantLoop_EIR_HeatingFields::HeatRecoveryElectricInputtoOutputRatioModifierFunctionofTemperatureCurveName);
447 }
448
449 4 bool HeatPumpPlantLoopEIRHeating_Impl::setCompanionCoolingHeatPump(const HeatPumpPlantLoopEIRCooling& companionHP) {
450
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
4 return this->setPointer(OS_HeatPump_PlantLoop_EIR_HeatingFields::CompanionHeatPumpName, companionHP.handle());
451 }
452
453 3 bool HeatPumpPlantLoopEIRHeating_Impl::setLoadSideReferenceFlowRate(double loadSideReferenceFlowRate) {
454 3 return setDouble(OS_HeatPump_PlantLoop_EIR_HeatingFields::LoadSideReferenceFlowRate, loadSideReferenceFlowRate);
455 }
456
457 13 void HeatPumpPlantLoopEIRHeating_Impl::autosizeLoadSideReferenceFlowRate() {
458
2/2
✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
26 bool result = setString(OS_HeatPump_PlantLoop_EIR_HeatingFields::LoadSideReferenceFlowRate, "Autosize");
459
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 13 times.
13 OS_ASSERT(result);
460 13 }
461
462 3 bool HeatPumpPlantLoopEIRHeating_Impl::setSourceSideReferenceFlowRate(double sourceSideReferenceFlowRate) {
463 3 return setDouble(OS_HeatPump_PlantLoop_EIR_HeatingFields::SourceSideReferenceFlowRate, sourceSideReferenceFlowRate);
464 }
465
466 13 void HeatPumpPlantLoopEIRHeating_Impl::autosizeSourceSideReferenceFlowRate() {
467
2/2
✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
26 bool result = setString(OS_HeatPump_PlantLoop_EIR_HeatingFields::SourceSideReferenceFlowRate, "Autosize");
468
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 13 times.
13 OS_ASSERT(result);
469 13 }
470
471 ✗ bool HeatPumpPlantLoopEIRHeating_Impl::setHeatRecoveryReferenceFlowRate(double heatRecoveryReferenceFlowRate) {
472 ✗ return setDouble(OS_HeatPump_PlantLoop_EIR_HeatingFields::HeatRecoveryReferenceFlowRate, heatRecoveryReferenceFlowRate);
473 }
474
475 12 void HeatPumpPlantLoopEIRHeating_Impl::autosizeHeatRecoveryReferenceFlowRate() {
476
2/2
✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
24 bool result = setString(OS_HeatPump_PlantLoop_EIR_HeatingFields::HeatRecoveryReferenceFlowRate, "Autosize");
477
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
12 OS_ASSERT(result);
478 12 }
479
480 3 bool HeatPumpPlantLoopEIRHeating_Impl::setReferenceCapacity(double referenceCapacity) {
481 3 return setDouble(OS_HeatPump_PlantLoop_EIR_HeatingFields::ReferenceCapacity, referenceCapacity);
482 }
483
484 13 void HeatPumpPlantLoopEIRHeating_Impl::autosizeReferenceCapacity() {
485
2/2
✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
26 bool result = setString(OS_HeatPump_PlantLoop_EIR_HeatingFields::ReferenceCapacity, "Autosize");
486
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 13 times.
13 OS_ASSERT(result);
487 13 }
488
489 15 bool HeatPumpPlantLoopEIRHeating_Impl::setReferenceCoefficientofPerformance(double referenceCoefficientofPerformance) {
490 15 return setDouble(OS_HeatPump_PlantLoop_EIR_HeatingFields::ReferenceCoefficientofPerformance, referenceCoefficientofPerformance);
491 }
492
493 15 bool HeatPumpPlantLoopEIRHeating_Impl::setSizingFactor(double sizingFactor) {
494 15 return setDouble(OS_HeatPump_PlantLoop_EIR_HeatingFields::SizingFactor, sizingFactor);
495 }
496
497 15 bool HeatPumpPlantLoopEIRHeating_Impl::setCapacityModifierFunctionofTemperatureCurve(const Curve& capacityModifierFunctionofTemperatureCurve) {
498
1/1
✓ Branch 1 taken 15 times.
15 bool result = setPointer(OS_HeatPump_PlantLoop_EIR_HeatingFields::CapacityModifierFunctionofTemperatureCurveName,
499
1/1
✓ Branch 1 taken 15 times.
15 capacityModifierFunctionofTemperatureCurve.handle());
500 15 return result;
501 }
502
503 15 bool HeatPumpPlantLoopEIRHeating_Impl::setElectricInputtoOutputRatioModifierFunctionofTemperatureCurve(
504 const Curve& electricInputtoOutputRatioModifierFunctionofTemperatureCurve) {
505
1/1
✓ Branch 1 taken 15 times.
15 bool result = setPointer(OS_HeatPump_PlantLoop_EIR_HeatingFields::ElectricInputtoOutputRatioModifierFunctionofTemperatureCurveName,
506
1/1
✓ Branch 1 taken 15 times.
15 electricInputtoOutputRatioModifierFunctionofTemperatureCurve.handle());
507 15 return result;
508 }
509
510 15 bool HeatPumpPlantLoopEIRHeating_Impl::setElectricInputtoOutputRatioModifierFunctionofPartLoadRatioCurve(
511 const Curve& electricInputtoOutputRatioModifierFunctionofPartLoadRatioCurve) {
512
1/1
✓ Branch 1 taken 15 times.
15 bool result = setPointer(OS_HeatPump_PlantLoop_EIR_HeatingFields::ElectricInputtoOutputRatioModifierFunctionofPartLoadRatioCurveName,
513
1/1
✓ Branch 1 taken 15 times.
15 electricInputtoOutputRatioModifierFunctionofPartLoadRatioCurve.handle());
514 15 return result;
515 }
516
517 14 bool HeatPumpPlantLoopEIRHeating_Impl::setHeatingToCoolingCapacitySizingRatio(double heatingToCoolingCapacitySizingRatio) {
518 14 return setDouble(OS_HeatPump_PlantLoop_EIR_HeatingFields::HeatingToCoolingCapacitySizingRatio, heatingToCoolingCapacitySizingRatio);
519 }
520
521 14 bool HeatPumpPlantLoopEIRHeating_Impl::setHeatPumpSizingMethod(const std::string& heatPumpSizingMethod) {
522 14 bool result = setString(OS_HeatPump_PlantLoop_EIR_HeatingFields::HeatPumpSizingMethod, heatPumpSizingMethod);
523 14 return result;
524 }
525
526 14 bool HeatPumpPlantLoopEIRHeating_Impl::setControlType(const std::string& controlType) {
527 14 bool result = setString(OS_HeatPump_PlantLoop_EIR_HeatingFields::ControlType, controlType);
528 14 return result;
529 }
530
531 14 bool HeatPumpPlantLoopEIRHeating_Impl::setFlowMode(const std::string& flowMode) {
532 14 bool result = setString(OS_HeatPump_PlantLoop_EIR_HeatingFields::FlowMode, flowMode);
533 14 return result;
534 }
535
536 14 bool HeatPumpPlantLoopEIRHeating_Impl::setMinimumPartLoadRatio(double minimumPartLoadRatio) {
537 14 return setDouble(OS_HeatPump_PlantLoop_EIR_HeatingFields::MinimumPartLoadRatio, minimumPartLoadRatio);
538 }
539
540 14 bool HeatPumpPlantLoopEIRHeating_Impl::setMinimumSourceInletTemperature(double minimumSourceInletTemperature) {
541 14 return setDouble(OS_HeatPump_PlantLoop_EIR_HeatingFields::MinimumSourceInletTemperature, minimumSourceInletTemperature);
542 }
543
544 14 bool HeatPumpPlantLoopEIRHeating_Impl::setMaximumSourceInletTemperature(double maximumSourceInletTemperature) {
545 14 return setDouble(OS_HeatPump_PlantLoop_EIR_HeatingFields::MaximumSourceInletTemperature, maximumSourceInletTemperature);
546 }
547
548 2 bool HeatPumpPlantLoopEIRHeating_Impl::setMinimumSupplyWaterTemperatureCurve(const Curve& minimumSupplyWaterTemperatureCurve) {
549 bool result =
550
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 setPointer(OS_HeatPump_PlantLoop_EIR_HeatingFields::MinimumSupplyWaterTemperatureCurveName, minimumSupplyWaterTemperatureCurve.handle());
551 2 return result;
552 }
553
554 1 void HeatPumpPlantLoopEIRHeating_Impl::resetMinimumSupplyWaterTemperatureCurve() {
555
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_HeatPump_PlantLoop_EIR_HeatingFields::MinimumSupplyWaterTemperatureCurveName, "");
556
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
557 1 }
558
559 2 bool HeatPumpPlantLoopEIRHeating_Impl::setMaximumSupplyWaterTemperatureCurve(const Curve& maximumSupplyWaterTemperatureCurve) {
560 bool result =
561
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 setPointer(OS_HeatPump_PlantLoop_EIR_HeatingFields::MaximumSupplyWaterTemperatureCurveName, maximumSupplyWaterTemperatureCurve.handle());
562 2 return result;
563 }
564
565 1 void HeatPumpPlantLoopEIRHeating_Impl::resetMaximumSupplyWaterTemperatureCurve() {
566
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_HeatPump_PlantLoop_EIR_HeatingFields::MaximumSupplyWaterTemperatureCurveName, "");
567
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
568 1 }
569
570 2 bool HeatPumpPlantLoopEIRHeating_Impl::setDryOutdoorCorrectionFactorCurve(const Curve& dryOutdoorCorrectionFactorCurve) {
571 bool result =
572
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 setPointer(OS_HeatPump_PlantLoop_EIR_HeatingFields::DryOutdoorCorrectionFactorCurveName, dryOutdoorCorrectionFactorCurve.handle());
573 2 return result;
574 }
575
576 1 void HeatPumpPlantLoopEIRHeating_Impl::resetDryOutdoorCorrectionFactorCurve() {
577
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_HeatPump_PlantLoop_EIR_HeatingFields::DryOutdoorCorrectionFactorCurveName, "");
578
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
579 1 }
580
581 14 bool HeatPumpPlantLoopEIRHeating_Impl::setMaximumOutdoorDryBulbTemperatureForDefrostOperation(
582 double maximumOutdoorDryBulbTemperatureForDefrostOperation) {
583 14 return setDouble(OS_HeatPump_PlantLoop_EIR_HeatingFields::MaximumOutdoorDryBulbTemperatureForDefrostOperation,
584 14 maximumOutdoorDryBulbTemperatureForDefrostOperation);
585 }
586
587 14 bool HeatPumpPlantLoopEIRHeating_Impl::setHeatPumpDefrostControl(const std::string& heatPumpDefrostControl) {
588 14 bool result = setString(OS_HeatPump_PlantLoop_EIR_HeatingFields::HeatPumpDefrostControl, heatPumpDefrostControl);
589 14 return result;
590 }
591
592 14 bool HeatPumpPlantLoopEIRHeating_Impl::setHeatPumpDefrostTimePeriodFraction(double heatPumpDefrostTimePeriodFraction) {
593 14 return setDouble(OS_HeatPump_PlantLoop_EIR_HeatingFields::HeatPumpDefrostTimePeriodFraction, heatPumpDefrostTimePeriodFraction);
594 }
595
596 2 bool HeatPumpPlantLoopEIRHeating_Impl::setDefrostEnergyInputRatioFunctionofTemperatureCurve(
597 const Curve& defrostEnergyInputRatioFunctionofTemperatureCurve) {
598
1/1
✓ Branch 1 taken 2 times.
2 bool result = setPointer(OS_HeatPump_PlantLoop_EIR_HeatingFields::DefrostEnergyInputRatioFunctionofTemperatureCurveName,
599
1/1
✓ Branch 1 taken 2 times.
2 defrostEnergyInputRatioFunctionofTemperatureCurve.handle());
600 2 return result;
601 }
602
603 1 void HeatPumpPlantLoopEIRHeating_Impl::resetDefrostEnergyInputRatioFunctionofTemperatureCurve() {
604
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_HeatPump_PlantLoop_EIR_HeatingFields::DefrostEnergyInputRatioFunctionofTemperatureCurveName, "");
605
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
606 1 }
607
608 2 bool HeatPumpPlantLoopEIRHeating_Impl::setTimedEmpiricalDefrostFrequencyCurve(const Curve& timedEmpiricalDefrostFrequencyCurve) {
609 bool result =
610
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 setPointer(OS_HeatPump_PlantLoop_EIR_HeatingFields::TimedEmpiricalDefrostFrequencyCurveName, timedEmpiricalDefrostFrequencyCurve.handle());
611 2 return result;
612 }
613
614 1 void HeatPumpPlantLoopEIRHeating_Impl::resetTimedEmpiricalDefrostFrequencyCurve() {
615
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_HeatPump_PlantLoop_EIR_HeatingFields::TimedEmpiricalDefrostFrequencyCurveName, "");
616
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
617 1 }
618
619 2 bool HeatPumpPlantLoopEIRHeating_Impl::setTimedEmpiricalDefrostHeatLoadPenaltyCurve(const Curve& timedEmpiricalDefrostHeatLoadPenaltyCurve) {
620
1/1
✓ Branch 1 taken 2 times.
2 bool result = setPointer(OS_HeatPump_PlantLoop_EIR_HeatingFields::TimedEmpiricalDefrostHeatLoadPenaltyCurveName,
621
1/1
✓ Branch 1 taken 2 times.
2 timedEmpiricalDefrostHeatLoadPenaltyCurve.handle());
622 2 return result;
623 }
624
625 1 void HeatPumpPlantLoopEIRHeating_Impl::resetTimedEmpiricalDefrostHeatLoadPenaltyCurve() {
626
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_HeatPump_PlantLoop_EIR_HeatingFields::TimedEmpiricalDefrostHeatLoadPenaltyCurveName, "");
627
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
628 1 }
629
630 2 bool HeatPumpPlantLoopEIRHeating_Impl::setTimedEmpiricalDefrostHeatInputEnergyFractionCurve(
631 const Curve& timedEmpiricalDefrostHeatInputEnergyFractionCurve) {
632
1/1
✓ Branch 1 taken 2 times.
2 bool result = setPointer(OS_HeatPump_PlantLoop_EIR_HeatingFields::TimedEmpiricalDefrostHeatInputEnergyFractionCurveName,
633
1/1
✓ Branch 1 taken 2 times.
2 timedEmpiricalDefrostHeatInputEnergyFractionCurve.handle());
634 2 return result;
635 }
636
637 1 void HeatPumpPlantLoopEIRHeating_Impl::resetTimedEmpiricalDefrostHeatInputEnergyFractionCurve() {
638
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_HeatPump_PlantLoop_EIR_HeatingFields::TimedEmpiricalDefrostHeatInputEnergyFractionCurveName, "");
639
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
640 1 }
641
642 14 bool HeatPumpPlantLoopEIRHeating_Impl::setMinimumHeatRecoveryOutletTemperature(double minimumHeatRecoveryOutletTemperature) {
643 14 return setDouble(OS_HeatPump_PlantLoop_EIR_HeatingFields::MinimumHeatRecoveryOutletTemperature, minimumHeatRecoveryOutletTemperature);
644 }
645
646 2 bool HeatPumpPlantLoopEIRHeating_Impl::setHeatRecoveryCapacityModifierFunctionofTemperatureCurve(
647 const Curve& heatRecoveryCapacityModifierFunctionofTemperatureCurve) {
648
1/1
✓ Branch 1 taken 2 times.
2 bool result = setPointer(OS_HeatPump_PlantLoop_EIR_HeatingFields::HeatRecoveryCapacityModifierFunctionofTemperatureCurveName,
649
1/1
✓ Branch 1 taken 2 times.
2 heatRecoveryCapacityModifierFunctionofTemperatureCurve.handle());
650 2 return result;
651 }
652
653 1 void HeatPumpPlantLoopEIRHeating_Impl::resetHeatRecoveryCapacityModifierFunctionofTemperatureCurve() {
654
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_HeatPump_PlantLoop_EIR_HeatingFields::HeatRecoveryCapacityModifierFunctionofTemperatureCurveName, "");
655
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
656 1 }
657
658 2 bool HeatPumpPlantLoopEIRHeating_Impl::setHeatRecoveryElectricInputtoOutputRatioModifierFunctionofTemperatureCurve(
659 const Curve& heatRecoveryElectricInputtoOutputRatioModifierFunctionofTemperatureCurve) {
660
1/1
✓ Branch 1 taken 2 times.
2 bool result = setPointer(OS_HeatPump_PlantLoop_EIR_HeatingFields::HeatRecoveryElectricInputtoOutputRatioModifierFunctionofTemperatureCurveName,
661
1/1
✓ Branch 1 taken 2 times.
2 heatRecoveryElectricInputtoOutputRatioModifierFunctionofTemperatureCurve.handle());
662 2 return result;
663 }
664
665 1 void HeatPumpPlantLoopEIRHeating_Impl::resetHeatRecoveryElectricInputtoOutputRatioModifierFunctionofTemperatureCurve() {
666 bool result =
667
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 setString(OS_HeatPump_PlantLoop_EIR_HeatingFields::HeatRecoveryElectricInputtoOutputRatioModifierFunctionofTemperatureCurveName, "");
668
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
669 1 }
670
671 ✗ boost::optional<double> HeatPumpPlantLoopEIRHeating_Impl::autosizedLoadSideReferenceFlowRate() const {
672 ✗ return getAutosizedValue("Design Size Load Side Volume Flow Rate", "m3/s");
673 }
674
675 ✗ boost::optional<double> HeatPumpPlantLoopEIRHeating_Impl::autosizedSourceSideReferenceFlowRate() const {
676 ✗ return getAutosizedValue("Design Size Source Side Volume Flow Rate", "m3/s");
677 }
678
679 ✗ boost::optional<double> HeatPumpPlantLoopEIRHeating_Impl::autosizedHeatRecoveryReferenceFlowRate() const {
680 ✗ return getAutosizedValue("Design Size Heat Recovery Side Volume Flow Rate", "m3/s");
681 }
682
683 ✗ boost::optional<double> HeatPumpPlantLoopEIRHeating_Impl::autosizedReferenceCapacity() const {
684 ✗ return getAutosizedValue("Design Size Nominal Capacity", "W");
685 }
686
687 ✗ void HeatPumpPlantLoopEIRHeating_Impl::autosize() {
688 ✗ autosizeLoadSideReferenceFlowRate();
689 ✗ autosizeSourceSideReferenceFlowRate();
690 ✗ autosizeHeatRecoveryReferenceFlowRate();
691 ✗ autosizeReferenceCapacity();
692 ✗ }
693
694 ✗ void HeatPumpPlantLoopEIRHeating_Impl::applySizingValues() {
695 ✗ boost::optional<double> val;
696 ✗ val = autosizedLoadSideReferenceFlowRate();
697 ✗ if (val) {
698 ✗ setLoadSideReferenceFlowRate(val.get());
699 }
700
701 ✗ val = autosizedSourceSideReferenceFlowRate();
702 ✗ if (val) {
703 ✗ setSourceSideReferenceFlowRate(val.get());
704 }
705
706 ✗ val = autosizedHeatRecoveryReferenceFlowRate();
707 ✗ if (val) {
708 ✗ setHeatRecoveryReferenceFlowRate(val.get());
709 }
710
711 ✗ val = autosizedReferenceCapacity();
712 ✗ if (val) {
713 ✗ setReferenceCapacity(val.get());
714 }
715 ✗ }
716
717 10 ComponentType HeatPumpPlantLoopEIRHeating_Impl::componentType() const {
718
1/1
✓ Branch 1 taken 10 times.
10 return ComponentType::Heating;
719 }
720
721 ✗ std::vector<FuelType> HeatPumpPlantLoopEIRHeating_Impl::coolingFuelTypes() const {
722 ✗ return {};
723 }
724
725 ✗ std::vector<FuelType> HeatPumpPlantLoopEIRHeating_Impl::heatingFuelTypes() const {
726 ✗ return {FuelType::Electricity};
727 }
728
729 ✗ std::vector<AppGFuelType> HeatPumpPlantLoopEIRHeating_Impl::appGHeatingFuelTypes() const {
730 ✗ return {AppGFuelType::HeatPump};
731 }
732
733 } // namespace detail
734
735 1 HeatPumpPlantLoopEIRHeating::HeatPumpPlantLoopEIRHeating(const Model& model, const Curve& capacityModifierFunctionofTemperatureCurve,
736 const Curve& electricInputtoOutputRatioModifierFunctionofTemperatureCurve,
737 1 const Curve& electricInputtoOutputRatioModifierFunctionofPartLoadRatioCurve)
738 1 : WaterToWaterComponent(HeatPumpPlantLoopEIRHeating::iddObjectType(), model) {
739
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 1 time.
✗ Branch 5 not taken.
1 OS_ASSERT(getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>());
740
741
1/1
✓ Branch 1 taken 1 time.
1 autosizeLoadSideReferenceFlowRate();
742
1/1
✓ Branch 1 taken 1 time.
1 autosizeSourceSideReferenceFlowRate();
743
1/1
✓ Branch 1 taken 1 time.
1 autosizeHeatRecoveryReferenceFlowRate();
744
1/1
✓ Branch 1 taken 1 time.
1 autosizeReferenceCapacity();
745
746
1/1
✓ Branch 1 taken 1 time.
1 bool ok = setCapacityModifierFunctionofTemperatureCurve(capacityModifierFunctionofTemperatureCurve);
747
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 if (!ok) {
748 ✗ remove();
749 ✗ LOG_AND_THROW("Unable to set " << briefDescription() << "'s capacity modifier function of temperature curve to "
750 << capacityModifierFunctionofTemperatureCurve.briefDescription() << ".");
751 }
752
753
1/1
✓ Branch 1 taken 1 time.
1 ok = setElectricInputtoOutputRatioModifierFunctionofTemperatureCurve(electricInputtoOutputRatioModifierFunctionofTemperatureCurve);
754
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 if (!ok) {
755 ✗ remove();
756 ✗ LOG_AND_THROW("Unable to set " << briefDescription() << "'s electric input to output ratio modifier function of temperature curve to "
757 << electricInputtoOutputRatioModifierFunctionofTemperatureCurve.briefDescription() << ".");
758 }
759
760
1/1
✓ Branch 1 taken 1 time.
1 ok = setElectricInputtoOutputRatioModifierFunctionofPartLoadRatioCurve(electricInputtoOutputRatioModifierFunctionofPartLoadRatioCurve);
761
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 if (!ok) {
762 ✗ remove();
763 ✗ LOG_AND_THROW("Unable to set " << briefDescription() << "'s electric input to output ratio modifier function of part load ratio curve to "
764 << electricInputtoOutputRatioModifierFunctionofPartLoadRatioCurve.briefDescription() << ".");
765 }
766
767 // Bypass the check by calling setString directly
768
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 setString(OS_HeatPump_PlantLoop_EIR_HeatingFields::CondenserType, "AirSource");
769
770
1/1
✓ Branch 1 taken 1 time.
1 setReferenceCoefficientofPerformance(7.5); // IDD default
771
1/1
✓ Branch 1 taken 1 time.
1 setSizingFactor(1.0);
772
1/1
✓ Branch 1 taken 1 time.
1 setHeatingToCoolingCapacitySizingRatio(1.0);
773
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 setHeatPumpSizingMethod("CoolingCapacity");
774
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 setControlType("Load");
775
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 setFlowMode("ConstantFlow");
776
1/1
✓ Branch 1 taken 1 time.
1 setMinimumPartLoadRatio(0.0);
777
1/1
✓ Branch 1 taken 1 time.
1 setMinimumSourceInletTemperature(-100.0);
778
1/1
✓ Branch 1 taken 1 time.
1 setMaximumSourceInletTemperature(100.0);
779
1/1
✓ Branch 1 taken 1 time.
1 setMaximumOutdoorDryBulbTemperatureForDefrostOperation(10.0);
780
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 setHeatPumpDefrostControl("None");
781
1/1
✓ Branch 1 taken 1 time.
1 setHeatPumpDefrostTimePeriodFraction(0.058333);
782
1/1
✓ Branch 1 taken 1 time.
1 setMinimumHeatRecoveryOutletTemperature(4.5);
783 1 }
784
785 11 HeatPumpPlantLoopEIRHeating::HeatPumpPlantLoopEIRHeating(const Model& model)
786 11 : WaterToWaterComponent(HeatPumpPlantLoopEIRHeating::iddObjectType(), model) {
787
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 11 times.
✗ Branch 5 not taken.
11 OS_ASSERT(getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>());
788
789
1/1
✓ Branch 1 taken 11 times.
11 autosizeLoadSideReferenceFlowRate();
790
1/1
✓ Branch 1 taken 11 times.
11 autosizeSourceSideReferenceFlowRate();
791
1/1
✓ Branch 1 taken 11 times.
11 autosizeHeatRecoveryReferenceFlowRate();
792
1/1
✓ Branch 1 taken 11 times.
11 autosizeReferenceCapacity();
793
794 // Note: The default HAS to be AirSource (since it's not connected to a plantLoop...)
795 // But in both PlantLoopHeatPump_EIR_WaterSource.idf and PlantLoopHeatPump_EIR_AirSource.idf, the curves are flatlines
796 // The only difference is the Source Side Flow Rate (m3/s), but here it's autosized anyways
797
798
1/1
✓ Branch 1 taken 11 times.
11 CurveBiquadratic capacityModifierFunctionofTemperatureCurve(model);
799
1/1
✓ Branch 1 taken 11 times.
11 capacityModifierFunctionofTemperatureCurve.setCoefficient1Constant(1);
800
1/1
✓ Branch 1 taken 11 times.
11 capacityModifierFunctionofTemperatureCurve.setCoefficient2x(0);
801
1/1
✓ Branch 1 taken 11 times.
11 capacityModifierFunctionofTemperatureCurve.setCoefficient3xPOW2(0);
802
1/1
✓ Branch 1 taken 11 times.
11 capacityModifierFunctionofTemperatureCurve.setCoefficient4y(0);
803
1/1
✓ Branch 1 taken 11 times.
11 capacityModifierFunctionofTemperatureCurve.setCoefficient5yPOW2(0);
804
1/1
✓ Branch 1 taken 11 times.
11 capacityModifierFunctionofTemperatureCurve.setCoefficient6xTIMESY(0);
805
1/1
✓ Branch 1 taken 11 times.
11 capacityModifierFunctionofTemperatureCurve.setMinimumValueofx(5);
806
1/1
✓ Branch 1 taken 11 times.
11 capacityModifierFunctionofTemperatureCurve.setMaximumValueofx(10);
807
1/1
✓ Branch 1 taken 11 times.
11 capacityModifierFunctionofTemperatureCurve.setMinimumValueofy(24);
808
1/1
✓ Branch 1 taken 11 times.
11 capacityModifierFunctionofTemperatureCurve.setMaximumValueofy(35);
809
2/2
✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
22 capacityModifierFunctionofTemperatureCurve.setInputUnitTypeforX("Temperature");
810
2/2
✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
11 capacityModifierFunctionofTemperatureCurve.setInputUnitTypeforY("Temperature");
811
1/1
✓ Branch 1 taken 11 times.
11 bool ok = setCapacityModifierFunctionofTemperatureCurve(capacityModifierFunctionofTemperatureCurve);
812
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
✗ Branch 3 not taken.
11 OS_ASSERT(ok);
813
814
1/1
✓ Branch 1 taken 11 times.
11 CurveBiquadratic electricInputtoOutputRatioModifierFunctionofTemperatureCurve(model); // PlantLoopHeatPump_EIR_WaterSource.idf
815
1/1
✓ Branch 1 taken 11 times.
11 electricInputtoOutputRatioModifierFunctionofTemperatureCurve.setCoefficient1Constant(1);
816
1/1
✓ Branch 1 taken 11 times.
11 electricInputtoOutputRatioModifierFunctionofTemperatureCurve.setCoefficient2x(0);
817
1/1
✓ Branch 1 taken 11 times.
11 electricInputtoOutputRatioModifierFunctionofTemperatureCurve.setCoefficient3xPOW2(0);
818
1/1
✓ Branch 1 taken 11 times.
11 electricInputtoOutputRatioModifierFunctionofTemperatureCurve.setCoefficient4y(0);
819
1/1
✓ Branch 1 taken 11 times.
11 electricInputtoOutputRatioModifierFunctionofTemperatureCurve.setCoefficient5yPOW2(0);
820
1/1
✓ Branch 1 taken 11 times.
11 electricInputtoOutputRatioModifierFunctionofTemperatureCurve.setCoefficient6xTIMESY(0);
821
1/1
✓ Branch 1 taken 11 times.
11 electricInputtoOutputRatioModifierFunctionofTemperatureCurve.setMinimumValueofx(5);
822
1/1
✓ Branch 1 taken 11 times.
11 electricInputtoOutputRatioModifierFunctionofTemperatureCurve.setMaximumValueofx(10);
823
1/1
✓ Branch 1 taken 11 times.
11 electricInputtoOutputRatioModifierFunctionofTemperatureCurve.setMinimumValueofy(24);
824
1/1
✓ Branch 1 taken 11 times.
11 electricInputtoOutputRatioModifierFunctionofTemperatureCurve.setMaximumValueofy(35);
825
2/2
✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
22 electricInputtoOutputRatioModifierFunctionofTemperatureCurve.setInputUnitTypeforX("Temperature");
826
2/2
✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
11 electricInputtoOutputRatioModifierFunctionofTemperatureCurve.setInputUnitTypeforY("Temperature");
827
1/1
✓ Branch 1 taken 11 times.
11 ok = setElectricInputtoOutputRatioModifierFunctionofTemperatureCurve(electricInputtoOutputRatioModifierFunctionofTemperatureCurve);
828
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
✗ Branch 3 not taken.
11 OS_ASSERT(ok);
829
830
1/1
✓ Branch 1 taken 11 times.
11 CurveQuadratic electricInputtoOutputRatioModifierFunctionofPartLoadRatioCurve(model); // PlantLoopHeatPump_EIR_WaterSource.idf
831
1/1
✓ Branch 1 taken 11 times.
11 electricInputtoOutputRatioModifierFunctionofPartLoadRatioCurve.setCoefficient1Constant(1);
832
1/1
✓ Branch 1 taken 11 times.
11 electricInputtoOutputRatioModifierFunctionofPartLoadRatioCurve.setCoefficient2x(0);
833
1/1
✓ Branch 1 taken 11 times.
11 electricInputtoOutputRatioModifierFunctionofPartLoadRatioCurve.setCoefficient3xPOW2(0);
834
1/1
✓ Branch 1 taken 11 times.
11 electricInputtoOutputRatioModifierFunctionofPartLoadRatioCurve.setMinimumValueofx(0);
835
1/1
✓ Branch 1 taken 11 times.
11 electricInputtoOutputRatioModifierFunctionofPartLoadRatioCurve.setMaximumValueofx(1);
836
1/1
✓ Branch 1 taken 11 times.
11 ok = setElectricInputtoOutputRatioModifierFunctionofPartLoadRatioCurve(electricInputtoOutputRatioModifierFunctionofPartLoadRatioCurve);
837
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
✗ Branch 3 not taken.
11 OS_ASSERT(ok);
838
839 // Bypass the check by calling setString directly
840
2/2
✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
22 setString(OS_HeatPump_PlantLoop_EIR_HeatingFields::CondenserType, "AirSource");
841
842
1/1
✓ Branch 1 taken 11 times.
11 setReferenceCoefficientofPerformance(7.5);
843
1/1
✓ Branch 1 taken 11 times.
11 setSizingFactor(1.0);
844
1/1
✓ Branch 1 taken 11 times.
11 setHeatingToCoolingCapacitySizingRatio(1.0);
845
2/2
✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
22 setHeatPumpSizingMethod("CoolingCapacity");
846
2/2
✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
22 setControlType("Load");
847
2/2
✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
11 setFlowMode("ConstantFlow");
848
1/1
✓ Branch 1 taken 11 times.
11 setMinimumPartLoadRatio(0.0);
849
1/1
✓ Branch 1 taken 11 times.
11 setMinimumSourceInletTemperature(-100.0);
850
1/1
✓ Branch 1 taken 11 times.
11 setMaximumSourceInletTemperature(100.0);
851
1/1
✓ Branch 1 taken 11 times.
11 setMaximumOutdoorDryBulbTemperatureForDefrostOperation(10.0);
852
2/2
✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
11 setHeatPumpDefrostControl("None");
853
1/1
✓ Branch 1 taken 11 times.
11 setHeatPumpDefrostTimePeriodFraction(0.058333);
854
1/1
✓ Branch 1 taken 11 times.
11 setMinimumHeatRecoveryOutletTemperature(4.5);
855 11 }
856
857 7757 IddObjectType HeatPumpPlantLoopEIRHeating::iddObjectType() {
858
1/1
✓ Branch 1 taken 7757 times.
7757 return {IddObjectType::OS_HeatPump_PlantLoop_EIR_Heating};
859 }
860
861 ✗ std::vector<std::string> HeatPumpPlantLoopEIRHeating::condenserTypeValues() {
862 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_HeatPump_PlantLoop_EIR_HeatingFields::CondenserType);
863 }
864
865 ✗ std::vector<std::string> HeatPumpPlantLoopEIRHeating::validCondenserTypeValues() {
866 ✗ return HeatPumpPlantLoopEIRHeating::condenserTypeValues();
867 }
868
869 12 std::string HeatPumpPlantLoopEIRHeating::condenserType() const {
870
1/1
✓ Branch 3 taken 12 times.
12 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->condenserType();
871 }
872
873 6 boost::optional<HeatPumpPlantLoopEIRCooling> HeatPumpPlantLoopEIRHeating::companionCoolingHeatPump() const {
874
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->companionCoolingHeatPump();
875 }
876
877 5 boost::optional<double> HeatPumpPlantLoopEIRHeating::loadSideReferenceFlowRate() const {
878
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->loadSideReferenceFlowRate();
879 }
880
881 8 bool HeatPumpPlantLoopEIRHeating::isLoadSideReferenceFlowRateAutosized() const {
882
1/1
✓ Branch 3 taken 8 times.
8 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->isLoadSideReferenceFlowRateAutosized();
883 }
884
885 5 boost::optional<double> HeatPumpPlantLoopEIRHeating::sourceSideReferenceFlowRate() const {
886
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->sourceSideReferenceFlowRate();
887 }
888
889 8 bool HeatPumpPlantLoopEIRHeating::isSourceSideReferenceFlowRateAutosized() const {
890
1/1
✓ Branch 3 taken 8 times.
8 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->isSourceSideReferenceFlowRateAutosized();
891 }
892
893 ✗ boost::optional<double> HeatPumpPlantLoopEIRHeating::heatRecoveryReferenceFlowRate() const {
894 ✗ return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->heatRecoveryReferenceFlowRate();
895 }
896
897 ✗ bool HeatPumpPlantLoopEIRHeating::isHeatRecoveryReferenceFlowRateAutosized() const {
898 ✗ return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->isHeatRecoveryReferenceFlowRateAutosized();
899 }
900
901 5 boost::optional<double> HeatPumpPlantLoopEIRHeating::referenceCapacity() const {
902
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->referenceCapacity();
903 }
904
905 8 bool HeatPumpPlantLoopEIRHeating::isReferenceCapacityAutosized() const {
906
1/1
✓ Branch 3 taken 8 times.
8 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->isReferenceCapacityAutosized();
907 }
908
909 5 double HeatPumpPlantLoopEIRHeating::referenceCoefficientofPerformance() const {
910
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->referenceCoefficientofPerformance();
911 }
912
913 5 double HeatPumpPlantLoopEIRHeating::sizingFactor() const {
914
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->sizingFactor();
915 }
916
917 7 Curve HeatPumpPlantLoopEIRHeating::capacityModifierFunctionofTemperatureCurve() const {
918
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->capacityModifierFunctionofTemperatureCurve();
919 }
920
921 7 Curve HeatPumpPlantLoopEIRHeating::electricInputtoOutputRatioModifierFunctionofTemperatureCurve() const {
922
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->electricInputtoOutputRatioModifierFunctionofTemperatureCurve();
923 }
924
925 7 Curve HeatPumpPlantLoopEIRHeating::electricInputtoOutputRatioModifierFunctionofPartLoadRatioCurve() const {
926
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->electricInputtoOutputRatioModifierFunctionofPartLoadRatioCurve();
927 }
928
929 5 double HeatPumpPlantLoopEIRHeating::heatingToCoolingCapacitySizingRatio() const {
930
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->heatingToCoolingCapacitySizingRatio();
931 }
932
933 5 std::string HeatPumpPlantLoopEIRHeating::heatPumpSizingMethod() const {
934
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->heatPumpSizingMethod();
935 }
936
937 5 std::string HeatPumpPlantLoopEIRHeating::controlType() const {
938
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->controlType();
939 }
940
941 5 std::string HeatPumpPlantLoopEIRHeating::flowMode() const {
942
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->flowMode();
943 }
944
945 5 double HeatPumpPlantLoopEIRHeating::minimumPartLoadRatio() const {
946
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->minimumPartLoadRatio();
947 }
948
949 5 double HeatPumpPlantLoopEIRHeating::minimumSourceInletTemperature() const {
950
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->minimumSourceInletTemperature();
951 }
952
953 5 double HeatPumpPlantLoopEIRHeating::maximumSourceInletTemperature() const {
954
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->maximumSourceInletTemperature();
955 }
956
957 7 boost::optional<Curve> HeatPumpPlantLoopEIRHeating::minimumSupplyWaterTemperatureCurve() const {
958
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->minimumSupplyWaterTemperatureCurve();
959 }
960
961 7 boost::optional<Curve> HeatPumpPlantLoopEIRHeating::maximumSupplyWaterTemperatureCurve() const {
962
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->maximumSupplyWaterTemperatureCurve();
963 }
964
965 7 boost::optional<Curve> HeatPumpPlantLoopEIRHeating::dryOutdoorCorrectionFactorCurve() const {
966
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->dryOutdoorCorrectionFactorCurve();
967 }
968
969 5 double HeatPumpPlantLoopEIRHeating::maximumOutdoorDryBulbTemperatureForDefrostOperation() const {
970
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->maximumOutdoorDryBulbTemperatureForDefrostOperation();
971 }
972
973 5 std::string HeatPumpPlantLoopEIRHeating::heatPumpDefrostControl() const {
974
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->heatPumpDefrostControl();
975 }
976
977 5 double HeatPumpPlantLoopEIRHeating::heatPumpDefrostTimePeriodFraction() const {
978
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->heatPumpDefrostTimePeriodFraction();
979 }
980
981 7 boost::optional<Curve> HeatPumpPlantLoopEIRHeating::defrostEnergyInputRatioFunctionofTemperatureCurve() const {
982
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->defrostEnergyInputRatioFunctionofTemperatureCurve();
983 }
984
985 7 boost::optional<Curve> HeatPumpPlantLoopEIRHeating::timedEmpiricalDefrostFrequencyCurve() const {
986
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->timedEmpiricalDefrostFrequencyCurve();
987 }
988
989 7 boost::optional<Curve> HeatPumpPlantLoopEIRHeating::timedEmpiricalDefrostHeatLoadPenaltyCurve() const {
990
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->timedEmpiricalDefrostHeatLoadPenaltyCurve();
991 }
992
993 7 boost::optional<Curve> HeatPumpPlantLoopEIRHeating::timedEmpiricalDefrostHeatInputEnergyFractionCurve() const {
994
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->timedEmpiricalDefrostHeatInputEnergyFractionCurve();
995 }
996
997 5 double HeatPumpPlantLoopEIRHeating::minimumHeatRecoveryOutletTemperature() const {
998
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->minimumHeatRecoveryOutletTemperature();
999 }
1000
1001 7 boost::optional<Curve> HeatPumpPlantLoopEIRHeating::heatRecoveryCapacityModifierFunctionofTemperatureCurve() const {
1002
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->heatRecoveryCapacityModifierFunctionofTemperatureCurve();
1003 }
1004
1005 7 boost::optional<Curve> HeatPumpPlantLoopEIRHeating::heatRecoveryElectricInputtoOutputRatioModifierFunctionofTemperatureCurve() const {
1006
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->heatRecoveryElectricInputtoOutputRatioModifierFunctionofTemperatureCurve();
1007 }
1008
1009 6 bool HeatPumpPlantLoopEIRHeating::setCondenserType(const std::string& condenserType) {
1010
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setCondenserType(condenserType);
1011 }
1012
1013 4 bool HeatPumpPlantLoopEIRHeating::setCompanionCoolingHeatPump(const HeatPumpPlantLoopEIRCooling& companionHP) {
1014
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setCompanionCoolingHeatPump(companionHP);
1015 }
1016
1017 3 bool HeatPumpPlantLoopEIRHeating::setLoadSideReferenceFlowRate(double loadSideReferenceFlowRate) {
1018
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setLoadSideReferenceFlowRate(loadSideReferenceFlowRate);
1019 }
1020
1021 13 void HeatPumpPlantLoopEIRHeating::autosizeLoadSideReferenceFlowRate() {
1022
1/1
✓ Branch 3 taken 13 times.
13 getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->autosizeLoadSideReferenceFlowRate();
1023 13 }
1024
1025 3 bool HeatPumpPlantLoopEIRHeating::setSourceSideReferenceFlowRate(double sourceSideReferenceFlowRate) {
1026
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setSourceSideReferenceFlowRate(sourceSideReferenceFlowRate);
1027 }
1028
1029 13 void HeatPumpPlantLoopEIRHeating::autosizeSourceSideReferenceFlowRate() {
1030
1/1
✓ Branch 3 taken 13 times.
13 getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->autosizeSourceSideReferenceFlowRate();
1031 13 }
1032
1033 ✗ bool HeatPumpPlantLoopEIRHeating::setHeatRecoveryReferenceFlowRate(double heatRecoveryReferenceFlowRate) {
1034 ✗ return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setHeatRecoveryReferenceFlowRate(heatRecoveryReferenceFlowRate);
1035 }
1036
1037 12 void HeatPumpPlantLoopEIRHeating::autosizeHeatRecoveryReferenceFlowRate() {
1038
1/1
✓ Branch 3 taken 12 times.
12 getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->autosizeHeatRecoveryReferenceFlowRate();
1039 12 }
1040
1041 3 bool HeatPumpPlantLoopEIRHeating::setReferenceCapacity(double referenceCapacity) {
1042
1/1
✓ Branch 3 taken 3 times.
3 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setReferenceCapacity(referenceCapacity);
1043 }
1044
1045 13 void HeatPumpPlantLoopEIRHeating::autosizeReferenceCapacity() {
1046
1/1
✓ Branch 3 taken 13 times.
13 getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->autosizeReferenceCapacity();
1047 13 }
1048
1049 15 bool HeatPumpPlantLoopEIRHeating::setReferenceCoefficientofPerformance(double referenceCoefficientofPerformance) {
1050
1/1
✓ Branch 3 taken 15 times.
15 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setReferenceCoefficientofPerformance(referenceCoefficientofPerformance);
1051 }
1052
1053 15 bool HeatPumpPlantLoopEIRHeating::setSizingFactor(double sizingFactor) {
1054
1/1
✓ Branch 3 taken 15 times.
15 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setSizingFactor(sizingFactor);
1055 }
1056
1057 15 bool HeatPumpPlantLoopEIRHeating::setCapacityModifierFunctionofTemperatureCurve(const Curve& capacityModifierFunctionofTemperatureCurve) {
1058
1/1
✓ Branch 3 taken 15 times.
30 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setCapacityModifierFunctionofTemperatureCurve(
1059 30 capacityModifierFunctionofTemperatureCurve);
1060 }
1061
1062 15 bool HeatPumpPlantLoopEIRHeating::setElectricInputtoOutputRatioModifierFunctionofTemperatureCurve(
1063 const Curve& electricInputtoOutputRatioModifierFunctionofTemperatureCurve) {
1064
1/1
✓ Branch 3 taken 15 times.
30 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setElectricInputtoOutputRatioModifierFunctionofTemperatureCurve(
1065 30 electricInputtoOutputRatioModifierFunctionofTemperatureCurve);
1066 }
1067
1068 15 bool HeatPumpPlantLoopEIRHeating::setElectricInputtoOutputRatioModifierFunctionofPartLoadRatioCurve(
1069 const Curve& electricInputtoOutputRatioModifierFunctionofPartLoadRatioCurve) {
1070
1/1
✓ Branch 3 taken 15 times.
30 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setElectricInputtoOutputRatioModifierFunctionofPartLoadRatioCurve(
1071 30 electricInputtoOutputRatioModifierFunctionofPartLoadRatioCurve);
1072 }
1073
1074 14 bool HeatPumpPlantLoopEIRHeating::setHeatingToCoolingCapacitySizingRatio(double heatingToCoolingCapacitySizingRatio) {
1075
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setHeatingToCoolingCapacitySizingRatio(heatingToCoolingCapacitySizingRatio);
1076 }
1077
1078 14 bool HeatPumpPlantLoopEIRHeating::setHeatPumpSizingMethod(const std::string& heatPumpSizingMethod) {
1079
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setHeatPumpSizingMethod(heatPumpSizingMethod);
1080 }
1081
1082 14 bool HeatPumpPlantLoopEIRHeating::setControlType(const std::string& controlType) {
1083
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setControlType(controlType);
1084 }
1085
1086 14 bool HeatPumpPlantLoopEIRHeating::setFlowMode(const std::string& flowMode) {
1087
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setFlowMode(flowMode);
1088 }
1089
1090 14 bool HeatPumpPlantLoopEIRHeating::setMinimumPartLoadRatio(double minimumPartLoadRatio) {
1091
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setMinimumPartLoadRatio(minimumPartLoadRatio);
1092 }
1093
1094 14 bool HeatPumpPlantLoopEIRHeating::setMinimumSourceInletTemperature(double minimumSourceInletTemperature) {
1095
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setMinimumSourceInletTemperature(minimumSourceInletTemperature);
1096 }
1097
1098 14 bool HeatPumpPlantLoopEIRHeating::setMaximumSourceInletTemperature(double maximumSourceInletTemperature) {
1099
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setMaximumSourceInletTemperature(maximumSourceInletTemperature);
1100 }
1101
1102 2 bool HeatPumpPlantLoopEIRHeating::setMinimumSupplyWaterTemperatureCurve(const Curve& minimumSupplyWaterTemperatureCurve) {
1103
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setMinimumSupplyWaterTemperatureCurve(minimumSupplyWaterTemperatureCurve);
1104 }
1105
1106 1 void HeatPumpPlantLoopEIRHeating::resetMinimumSupplyWaterTemperatureCurve() {
1107
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->resetMinimumSupplyWaterTemperatureCurve();
1108 1 }
1109
1110 2 bool HeatPumpPlantLoopEIRHeating::setMaximumSupplyWaterTemperatureCurve(const Curve& maximumSupplyWaterTemperatureCurve) {
1111
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setMaximumSupplyWaterTemperatureCurve(maximumSupplyWaterTemperatureCurve);
1112 }
1113
1114 1 void HeatPumpPlantLoopEIRHeating::resetMaximumSupplyWaterTemperatureCurve() {
1115
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->resetMaximumSupplyWaterTemperatureCurve();
1116 1 }
1117
1118 2 bool HeatPumpPlantLoopEIRHeating::setDryOutdoorCorrectionFactorCurve(const Curve& dryOutdoorCorrectionFactorCurve) {
1119
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setDryOutdoorCorrectionFactorCurve(dryOutdoorCorrectionFactorCurve);
1120 }
1121
1122 1 void HeatPumpPlantLoopEIRHeating::resetDryOutdoorCorrectionFactorCurve() {
1123
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->resetDryOutdoorCorrectionFactorCurve();
1124 1 }
1125
1126 bool
1127 14 HeatPumpPlantLoopEIRHeating::setMaximumOutdoorDryBulbTemperatureForDefrostOperation(double maximumOutdoorDryBulbTemperatureForDefrostOperation) {
1128
1/1
✓ Branch 3 taken 14 times.
28 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setMaximumOutdoorDryBulbTemperatureForDefrostOperation(
1129 28 maximumOutdoorDryBulbTemperatureForDefrostOperation);
1130 }
1131
1132 14 bool HeatPumpPlantLoopEIRHeating::setHeatPumpDefrostControl(const std::string& heatPumpDefrostControl) {
1133
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setHeatPumpDefrostControl(heatPumpDefrostControl);
1134 }
1135
1136 14 bool HeatPumpPlantLoopEIRHeating::setHeatPumpDefrostTimePeriodFraction(double heatPumpDefrostTimePeriodFraction) {
1137
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setHeatPumpDefrostTimePeriodFraction(heatPumpDefrostTimePeriodFraction);
1138 }
1139
1140 2 bool HeatPumpPlantLoopEIRHeating::setDefrostEnergyInputRatioFunctionofTemperatureCurve(
1141 const Curve& defrostEnergyInputRatioFunctionofTemperatureCurve) {
1142
1/1
✓ Branch 3 taken 2 times.
4 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setDefrostEnergyInputRatioFunctionofTemperatureCurve(
1143 4 defrostEnergyInputRatioFunctionofTemperatureCurve);
1144 }
1145
1146 1 void HeatPumpPlantLoopEIRHeating::resetDefrostEnergyInputRatioFunctionofTemperatureCurve() {
1147
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->resetDefrostEnergyInputRatioFunctionofTemperatureCurve();
1148 1 }
1149
1150 2 bool HeatPumpPlantLoopEIRHeating::setTimedEmpiricalDefrostFrequencyCurve(const Curve& timedEmpiricalDefrostFrequencyCurve) {
1151
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setTimedEmpiricalDefrostFrequencyCurve(timedEmpiricalDefrostFrequencyCurve);
1152 }
1153
1154 1 void HeatPumpPlantLoopEIRHeating::resetTimedEmpiricalDefrostFrequencyCurve() {
1155
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->resetTimedEmpiricalDefrostFrequencyCurve();
1156 1 }
1157
1158 2 bool HeatPumpPlantLoopEIRHeating::setTimedEmpiricalDefrostHeatLoadPenaltyCurve(const Curve& timedEmpiricalDefrostHeatLoadPenaltyCurve) {
1159
1/1
✓ Branch 3 taken 2 times.
4 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setTimedEmpiricalDefrostHeatLoadPenaltyCurve(
1160 4 timedEmpiricalDefrostHeatLoadPenaltyCurve);
1161 }
1162
1163 1 void HeatPumpPlantLoopEIRHeating::resetTimedEmpiricalDefrostHeatLoadPenaltyCurve() {
1164
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->resetTimedEmpiricalDefrostHeatLoadPenaltyCurve();
1165 1 }
1166
1167 2 bool HeatPumpPlantLoopEIRHeating::setTimedEmpiricalDefrostHeatInputEnergyFractionCurve(
1168 const Curve& timedEmpiricalDefrostHeatInputEnergyFractionCurve) {
1169
1/1
✓ Branch 3 taken 2 times.
4 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setTimedEmpiricalDefrostHeatInputEnergyFractionCurve(
1170 4 timedEmpiricalDefrostHeatInputEnergyFractionCurve);
1171 }
1172
1173 1 void HeatPumpPlantLoopEIRHeating::resetTimedEmpiricalDefrostHeatInputEnergyFractionCurve() {
1174
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->resetTimedEmpiricalDefrostHeatInputEnergyFractionCurve();
1175 1 }
1176
1177 14 bool HeatPumpPlantLoopEIRHeating::setMinimumHeatRecoveryOutletTemperature(double minimumHeatRecoveryOutletTemperature) {
1178
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setMinimumHeatRecoveryOutletTemperature(minimumHeatRecoveryOutletTemperature);
1179 }
1180
1181 2 bool HeatPumpPlantLoopEIRHeating::setHeatRecoveryCapacityModifierFunctionofTemperatureCurve(
1182 const Curve& heatRecoveryCapacityModifierFunctionofTemperatureCurve) {
1183
1/1
✓ Branch 3 taken 2 times.
4 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setHeatRecoveryCapacityModifierFunctionofTemperatureCurve(
1184 4 heatRecoveryCapacityModifierFunctionofTemperatureCurve);
1185 }
1186
1187 1 void HeatPumpPlantLoopEIRHeating::resetHeatRecoveryCapacityModifierFunctionofTemperatureCurve() {
1188
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->resetHeatRecoveryCapacityModifierFunctionofTemperatureCurve();
1189 1 }
1190
1191 2 bool HeatPumpPlantLoopEIRHeating::setHeatRecoveryElectricInputtoOutputRatioModifierFunctionofTemperatureCurve(
1192 const Curve& heatRecoveryElectricInputtoOutputRatioModifierFunctionofTemperatureCurve) {
1193
1/1
✓ Branch 3 taken 2 times.
4 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->setHeatRecoveryElectricInputtoOutputRatioModifierFunctionofTemperatureCurve(
1194 4 heatRecoveryElectricInputtoOutputRatioModifierFunctionofTemperatureCurve);
1195 }
1196
1197 1 void HeatPumpPlantLoopEIRHeating::resetHeatRecoveryElectricInputtoOutputRatioModifierFunctionofTemperatureCurve() {
1198
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->resetHeatRecoveryElectricInputtoOutputRatioModifierFunctionofTemperatureCurve();
1199 1 }
1200
1201 ✗ boost::optional<double> HeatPumpPlantLoopEIRHeating::autosizedLoadSideReferenceFlowRate() const {
1202 ✗ return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->autosizedLoadSideReferenceFlowRate();
1203 }
1204
1205 ✗ boost::optional<double> HeatPumpPlantLoopEIRHeating::autosizedSourceSideReferenceFlowRate() const {
1206 ✗ return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->autosizedSourceSideReferenceFlowRate();
1207 }
1208
1209 ✗ boost::optional<double> HeatPumpPlantLoopEIRHeating::autosizedHeatRecoveryReferenceFlowRate() const {
1210 ✗ return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->autosizedHeatRecoveryReferenceFlowRate();
1211 }
1212
1213 ✗ boost::optional<double> HeatPumpPlantLoopEIRHeating::autosizedReferenceCapacity() const {
1214 ✗ return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->autosizedReferenceCapacity();
1215 }
1216
1217 // Convenience functions
1218 12 boost::optional<PlantLoop> HeatPumpPlantLoopEIRHeating::loadSideWaterLoop() const {
1219
1/1
✓ Branch 3 taken 12 times.
12 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->loadSideWaterLoop();
1220 }
1221
1222 11 boost::optional<PlantLoop> HeatPumpPlantLoopEIRHeating::sourceSideWaterLoop() const {
1223
1/1
✓ Branch 3 taken 11 times.
11 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->sourceSideWaterLoop();
1224 }
1225
1226 13 boost::optional<PlantLoop> HeatPumpPlantLoopEIRHeating::heatRecoveryLoop() const {
1227
1/1
✓ Branch 3 taken 13 times.
13 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->heatRecoveryLoop();
1228 }
1229
1230 2 boost::optional<Node> HeatPumpPlantLoopEIRHeating::sourceSideWaterInletNode() const {
1231
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->sourceSideWaterInletNode();
1232 }
1233
1234 2 boost::optional<Node> HeatPumpPlantLoopEIRHeating::sourceSideWaterOutletNode() const {
1235
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->sourceSideWaterOutletNode();
1236 }
1237
1238 2 boost::optional<Node> HeatPumpPlantLoopEIRHeating::loadSideWaterInletNode() const {
1239
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->loadSideWaterInletNode();
1240 }
1241
1242 2 boost::optional<Node> HeatPumpPlantLoopEIRHeating::loadSideWaterOutletNode() const {
1243
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->loadSideWaterOutletNode();
1244 }
1245
1246 ✗ boost::optional<Node> HeatPumpPlantLoopEIRHeating::heatRecoveryInletNode() const {
1247 ✗ return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->heatRecoveryInletNode();
1248 }
1249
1250 ✗ boost::optional<Node> HeatPumpPlantLoopEIRHeating::heatRecoveryOutletNode() const {
1251 ✗ return getImpl<detail::HeatPumpPlantLoopEIRHeating_Impl>()->heatRecoveryOutletNode();
1252 }
1253
1254 /// @cond
1255 10 HeatPumpPlantLoopEIRHeating::HeatPumpPlantLoopEIRHeating(std::shared_ptr<detail::HeatPumpPlantLoopEIRHeating_Impl> impl)
1256
1/1
✓ Branch 3 taken 10 times.
10 : WaterToWaterComponent(std::move(impl)) {}
1257 /// @endcond
1258
1259 } // namespace model
1260 } // namespace openstudio
1261