GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 83.1% 577 / 0 / 694
Functions: 88.1% 140 / 0 / 159
Branches: 49.9% 377 / 0 / 756

src/model/ChillerHeaterPerformanceElectricEIR.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 "ChillerHeaterPerformanceElectricEIR.hpp"
7 #include "ChillerHeaterPerformanceElectricEIR_Impl.hpp"
8
9 // Needed for the convenience functions to return parents
10 #include "CentralHeatPumpSystem.hpp"
11 #include "CentralHeatPumpSystem_Impl.hpp"
12 #include "CentralHeatPumpSystemModule.hpp"
13 #include "CentralHeatPumpSystemModule_Impl.hpp"
14 #include "Model.hpp"
15 //#include "Model_Impl.hpp"
16
17 #include "Curve.hpp"
18 #include "Curve_Impl.hpp"
19 #include "CurveBiquadratic.hpp"
20 #include "CurveBicubic.hpp"
21
22 #include <utilities/idd/IddFactory.hxx>
23 #include <utilities/idd/IddEnums.hxx>
24 #include <utilities/idd/OS_ChillerHeaterPerformance_Electric_EIR_FieldEnums.hxx>
25
26 #include "../utilities/units/Unit.hpp"
27
28 #include "../utilities/core/Assert.hpp"
29 #include "../utilities/core/DeprecatedHelpers.hpp"
30
31 namespace openstudio {
32 namespace model {
33
34 namespace detail {
35
36 20 ChillerHeaterPerformanceElectricEIR_Impl::ChillerHeaterPerformanceElectricEIR_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
37 20 : ParentObject_Impl(idfObject, model, keepHandle) {
38
4/6
✓ Branch 1 taken 20 times.
✓ Branch 4 taken 20 times.
✓ Branch 7 taken 20 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 20 times.
✗ Branch 13 not taken.
20 OS_ASSERT(idfObject.iddObject().type() == ChillerHeaterPerformanceElectricEIR::iddObjectType());
39 20 }
40
41 1 ChillerHeaterPerformanceElectricEIR_Impl::ChillerHeaterPerformanceElectricEIR_Impl(const openstudio::detail::WorkspaceObject_Impl& other,
42 1 Model_Impl* model, bool keepHandle)
43 1 : ParentObject_Impl(other, model, keepHandle) {
44
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() == ChillerHeaterPerformanceElectricEIR::iddObjectType());
45 1 }
46
47 13 ChillerHeaterPerformanceElectricEIR_Impl::ChillerHeaterPerformanceElectricEIR_Impl(const ChillerHeaterPerformanceElectricEIR_Impl& other,
48 13 Model_Impl* model, bool keepHandle)
49 13 : ParentObject_Impl(other, model, keepHandle) {}
50
51 ✗ const std::vector<std::string>& ChillerHeaterPerformanceElectricEIR_Impl::outputVariableNames() const {
52 ✗ static const std::vector<std::string> result;
53 // TODO: Implement? Problem is that the output for this is extremely weird/unusual
54 // You actually have to go to the CentralHeatPumpSystem to find the Number of Chiller Heater Modules XXX
55 // result.push_back("Chiller Heater Operation Mode Unit <x>");
56 ✗ return result;
57 }
58
59 ✗ IddObjectType ChillerHeaterPerformanceElectricEIR_Impl::iddObjectType() const {
60 ✗ return ChillerHeaterPerformanceElectricEIR::iddObjectType();
61 }
62
63 2 boost::optional<double> ChillerHeaterPerformanceElectricEIR_Impl::referenceCoolingModeEvaporatorCapacity() const {
64 2 return getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceCoolingModeEvaporatorCapacity, true);
65 }
66
67 5 bool ChillerHeaterPerformanceElectricEIR_Impl::isReferenceCoolingModeEvaporatorCapacityAutosized() const {
68 5 bool result = false;
69
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<std::string> value = getString(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceCoolingModeEvaporatorCapacity, true);
70
1/2
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
5 if (value) {
71
3/3
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
10 result = openstudio::istringEqual(value.get(), "autosize");
72 }
73 5 return result;
74 5 }
75
76 5 double ChillerHeaterPerformanceElectricEIR_Impl::referenceCoolingModeCOP() const {
77
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<double> value = getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceCoolingModeCOP, true);
78
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
79
1/1
✓ Branch 1 taken 5 times.
10 return value.get();
80 }
81
82 5 double ChillerHeaterPerformanceElectricEIR_Impl::referenceCoolingModeLeavingChilledWaterTemperature() const {
83 boost::optional<double> value =
84
1/1
✓ Branch 1 taken 5 times.
5 getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceCoolingModeLeavingChilledWaterTemperature, true);
85
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
86
1/1
✓ Branch 1 taken 5 times.
10 return value.get();
87 }
88
89 5 double ChillerHeaterPerformanceElectricEIR_Impl::referenceCoolingModeEnteringCondenserFluidTemperature() const {
90 boost::optional<double> value =
91
1/1
✓ Branch 1 taken 5 times.
5 getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceCoolingModeEnteringCondenserFluidTemperature, true);
92
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
93
1/1
✓ Branch 1 taken 5 times.
10 return value.get();
94 }
95
96 5 double ChillerHeaterPerformanceElectricEIR_Impl::referenceCoolingModeLeavingCondenserWaterTemperature() const {
97 boost::optional<double> value =
98
1/1
✓ Branch 1 taken 5 times.
5 getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceCoolingModeLeavingCondenserWaterTemperature, true);
99
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
100
1/1
✓ Branch 1 taken 5 times.
10 return value.get();
101 }
102
103 5 double ChillerHeaterPerformanceElectricEIR_Impl::referenceHeatingModeCoolingCapacityRatio() const {
104
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<double> value = getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceHeatingModeCoolingCapacityRatio, true);
105
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
106
1/1
✓ Branch 1 taken 5 times.
10 return value.get();
107 }
108
109 5 double ChillerHeaterPerformanceElectricEIR_Impl::referenceHeatingModeCoolingPowerInputRatio() const {
110
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<double> value = getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceHeatingModeCoolingPowerInputRatio, true);
111
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
112
1/1
✓ Branch 1 taken 5 times.
10 return value.get();
113 }
114
115 5 double ChillerHeaterPerformanceElectricEIR_Impl::referenceHeatingModeLeavingChilledWaterTemperature() const {
116 boost::optional<double> value =
117
1/1
✓ Branch 1 taken 5 times.
5 getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceHeatingModeLeavingChilledWaterTemperature, true);
118
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
119
1/1
✓ Branch 1 taken 5 times.
10 return value.get();
120 }
121
122 5 double ChillerHeaterPerformanceElectricEIR_Impl::referenceHeatingModeLeavingCondenserWaterTemperature() const {
123 boost::optional<double> value =
124
1/1
✓ Branch 1 taken 5 times.
5 getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceHeatingModeLeavingCondenserWaterTemperature, true);
125
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
126
1/1
✓ Branch 1 taken 5 times.
10 return value.get();
127 }
128
129 5 double ChillerHeaterPerformanceElectricEIR_Impl::referenceHeatingModeEnteringCondenserFluidTemperature() const {
130 boost::optional<double> value =
131
1/1
✓ Branch 1 taken 5 times.
5 getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceHeatingModeEnteringCondenserFluidTemperature, true);
132
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
133
1/1
✓ Branch 1 taken 5 times.
10 return value.get();
134 }
135
136 5 double ChillerHeaterPerformanceElectricEIR_Impl::heatingModeEnteringChilledWaterTemperatureLowLimit() const {
137 boost::optional<double> value =
138
1/1
✓ Branch 1 taken 5 times.
5 getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::HeatingModeEnteringChilledWaterTemperatureLowLimit, true);
139
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
140
1/1
✓ Branch 1 taken 5 times.
10 return value.get();
141 }
142
143 4 std::string ChillerHeaterPerformanceElectricEIR_Impl::chilledWaterFlowModeType() const {
144
1/1
✓ Branch 1 taken 4 times.
4 boost::optional<std::string> value = getString(OS_ChillerHeaterPerformance_Electric_EIRFields::ChilledWaterFlowModeType, true);
145
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
4 OS_ASSERT(value);
146
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
8 return value.get();
147 4 }
148
149 2 boost::optional<double> ChillerHeaterPerformanceElectricEIR_Impl::designChilledWaterFlowRate() const {
150 2 return getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::DesignChilledWaterFlowRate, true);
151 }
152
153 4 bool ChillerHeaterPerformanceElectricEIR_Impl::isDesignChilledWaterFlowRateAutosized() const {
154 4 bool result = false;
155
1/1
✓ Branch 1 taken 4 times.
4 boost::optional<std::string> value = getString(OS_ChillerHeaterPerformance_Electric_EIRFields::DesignChilledWaterFlowRate, true);
156
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 if (value) {
157
3/3
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
8 result = openstudio::istringEqual(value.get(), "autosize");
158 }
159 4 return result;
160 4 }
161
162 2 boost::optional<double> ChillerHeaterPerformanceElectricEIR_Impl::designCondenserWaterFlowRate() const {
163 2 return getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::DesignCondenserWaterFlowRate, true);
164 }
165
166 4 bool ChillerHeaterPerformanceElectricEIR_Impl::isDesignCondenserWaterFlowRateAutosized() const {
167 4 bool result = false;
168
1/1
✓ Branch 1 taken 4 times.
4 boost::optional<std::string> value = getString(OS_ChillerHeaterPerformance_Electric_EIRFields::DesignCondenserWaterFlowRate, true);
169
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 if (value) {
170
3/3
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
8 result = openstudio::istringEqual(value.get(), "autosize");
171 }
172 4 return result;
173 4 }
174
175 5 double ChillerHeaterPerformanceElectricEIR_Impl::designHotWaterFlowRate() const {
176
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<double> value = getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::DesignHotWaterFlowRate, true);
177
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
178
1/1
✓ Branch 1 taken 5 times.
10 return value.get();
179 }
180
181 5 double ChillerHeaterPerformanceElectricEIR_Impl::compressorMotorEfficiency() const {
182
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<double> value = getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::CompressorMotorEfficiency, true);
183
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
184
1/1
✓ Branch 1 taken 5 times.
10 return value.get();
185 }
186
187 4 std::string ChillerHeaterPerformanceElectricEIR_Impl::coolingModeTemperatureCurveCondenserWaterIndependentVariable() const {
188 boost::optional<std::string> value =
189
1/1
✓ Branch 1 taken 4 times.
4 getString(OS_ChillerHeaterPerformance_Electric_EIRFields::CoolingModeTemperatureCurveCondenserWaterIndependentVariable, true);
190
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
4 OS_ASSERT(value);
191
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
8 return value.get();
192 4 }
193
194 10 Curve ChillerHeaterPerformanceElectricEIR_Impl::coolingModeCoolingCapacityFunctionOfTemperatureCurve() const {
195
1/1
✓ Branch 1 taken 10 times.
10 boost::optional<Curve> value = optionalCoolingModeCoolingCapacityFunctionOfTemperatureCurve();
196
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 10 times.
10 if (!value) {
197 ✗ LOG_AND_THROW(briefDescription() << " does not have an Cooling Mode Cooling Capacity Function of Temperature Curve attached.");
198 }
199
2/2
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
20 return value.get();
200 10 }
201
202 4 Curve ChillerHeaterPerformanceElectricEIR_Impl::coolingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve() const {
203
1/1
✓ Branch 1 taken 4 times.
4 boost::optional<Curve> value = optionalCoolingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve();
204
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
4 if (!value) {
205 ✗ LOG_AND_THROW(
206 briefDescription() << " does not have an Cooling Mode Electric Input to Cooling Output Ratio Function of Temperature Curve attached.");
207 }
208
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
8 return value.get();
209 4 }
210
211 4 Curve ChillerHeaterPerformanceElectricEIR_Impl::coolingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve() const {
212
1/1
✓ Branch 1 taken 4 times.
4 boost::optional<Curve> value = optionalCoolingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve();
213
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
4 if (!value) {
214 ✗ LOG_AND_THROW(
215 briefDescription() << " does not have an Cooling Mode Electric Input to Cooling Output Ratio Function of Part Load Ratio Curve attached.");
216 }
217
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
8 return value.get();
218 4 }
219
220 4 double ChillerHeaterPerformanceElectricEIR_Impl::coolingModeCoolingCapacityOptimumPartLoadRatio() const {
221
1/1
✓ Branch 1 taken 4 times.
4 boost::optional<double> value = getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::CoolingModeCoolingCapacityOptimumPartLoadRatio, true);
222
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
4 OS_ASSERT(value);
223
1/1
✓ Branch 1 taken 4 times.
8 return value.get();
224 }
225
226 4 std::string ChillerHeaterPerformanceElectricEIR_Impl::heatingModeTemperatureCurveCondenserWaterIndependentVariable() const {
227 boost::optional<std::string> value =
228
1/1
✓ Branch 1 taken 4 times.
4 getString(OS_ChillerHeaterPerformance_Electric_EIRFields::HeatingModeTemperatureCurveCondenserWaterIndependentVariable, true);
229
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
4 OS_ASSERT(value);
230
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
8 return value.get();
231 4 }
232
233 4 Curve ChillerHeaterPerformanceElectricEIR_Impl::heatingModeCoolingCapacityFunctionOfTemperatureCurve() const {
234
1/1
✓ Branch 1 taken 4 times.
4 boost::optional<Curve> value = optionalHeatingModeCoolingCapacityFunctionOfTemperatureCurve();
235
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
4 if (!value) {
236 ✗ LOG_AND_THROW(briefDescription() << " does not have an Heating Mode Cooling Capacity Function of Temperature Curve attached.");
237 }
238
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
8 return value.get();
239 4 }
240
241 4 Curve ChillerHeaterPerformanceElectricEIR_Impl::heatingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve() const {
242
1/1
✓ Branch 1 taken 4 times.
4 boost::optional<Curve> value = optionalHeatingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve();
243
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
4 if (!value) {
244 ✗ LOG_AND_THROW(
245 briefDescription() << " does not have an Heating Mode Electric Input to Cooling Output Ratio Function of Temperature Curve attached.");
246 }
247
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
8 return value.get();
248 4 }
249
250 4 Curve ChillerHeaterPerformanceElectricEIR_Impl::heatingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve() const {
251
1/1
✓ Branch 1 taken 4 times.
4 boost::optional<Curve> value = optionalHeatingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve();
252
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
4 if (!value) {
253 ✗ LOG_AND_THROW(
254 briefDescription() << " does not have an Heating Mode Electric Input to Cooling Output Ratio Function of Part Load Ratio Curve attached.");
255 }
256
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
8 return value.get();
257 4 }
258
259 4 double ChillerHeaterPerformanceElectricEIR_Impl::heatingModeCoolingCapacityOptimumPartLoadRatio() const {
260
1/1
✓ Branch 1 taken 4 times.
4 boost::optional<double> value = getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::HeatingModeCoolingCapacityOptimumPartLoadRatio, true);
261
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
4 OS_ASSERT(value);
262
1/1
✓ Branch 1 taken 4 times.
8 return value.get();
263 }
264
265 4 double ChillerHeaterPerformanceElectricEIR_Impl::sizingFactor() const {
266
1/1
✓ Branch 1 taken 4 times.
4 boost::optional<double> value = getDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::SizingFactor, true);
267
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
4 OS_ASSERT(value);
268
1/1
✓ Branch 1 taken 4 times.
8 return value.get();
269 }
270
271 1 bool ChillerHeaterPerformanceElectricEIR_Impl::setReferenceCoolingModeEvaporatorCapacity(
272 boost::optional<double> referenceCoolingModeEvaporatorCapacity) {
273 1 bool result(false);
274
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (referenceCoolingModeEvaporatorCapacity) {
275 1 result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceCoolingModeEvaporatorCapacity,
276 1 referenceCoolingModeEvaporatorCapacity.get());
277 }
278 1 return result;
279 }
280
281 20 void ChillerHeaterPerformanceElectricEIR_Impl::autosizeReferenceCoolingModeEvaporatorCapacity() {
282
2/2
✓ Branch 1 taken 20 times.
✓ Branch 4 taken 20 times.
40 bool result = setString(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceCoolingModeEvaporatorCapacity, "autosize");
283
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 20 times.
20 OS_ASSERT(result);
284 20 }
285
286 20 bool ChillerHeaterPerformanceElectricEIR_Impl::setReferenceCoolingModeCOP(double referenceCoolingModeCOP) {
287 20 bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceCoolingModeCOP, referenceCoolingModeCOP);
288 20 return result;
289 }
290
291 20 bool ChillerHeaterPerformanceElectricEIR_Impl::setReferenceCoolingModeLeavingChilledWaterTemperature(
292 double referenceCoolingModeLeavingChilledWaterTemperature) {
293 20 bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceCoolingModeLeavingChilledWaterTemperature,
294 referenceCoolingModeLeavingChilledWaterTemperature);
295
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 20 times.
20 OS_ASSERT(result);
296 20 return result;
297 }
298
299 20 bool ChillerHeaterPerformanceElectricEIR_Impl::setReferenceCoolingModeEnteringCondenserFluidTemperature(
300 double referenceCoolingModeEnteringCondenserFluidTemperature) {
301 20 bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceCoolingModeEnteringCondenserFluidTemperature,
302 referenceCoolingModeEnteringCondenserFluidTemperature);
303
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 20 times.
20 OS_ASSERT(result);
304 20 return result;
305 }
306
307 20 bool ChillerHeaterPerformanceElectricEIR_Impl::setReferenceCoolingModeLeavingCondenserWaterTemperature(
308 double referenceCoolingModeLeavingCondenserWaterTemperature) {
309 20 bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceCoolingModeLeavingCondenserWaterTemperature,
310 referenceCoolingModeLeavingCondenserWaterTemperature);
311
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 20 times.
20 OS_ASSERT(result);
312 20 return result;
313 }
314
315 20 bool ChillerHeaterPerformanceElectricEIR_Impl::setReferenceHeatingModeCoolingCapacityRatio(double referenceHeatingModeCoolingCapacityRatio) {
316 bool result =
317 20 setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceHeatingModeCoolingCapacityRatio, referenceHeatingModeCoolingCapacityRatio);
318
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 20 times.
20 OS_ASSERT(result);
319 20 return result;
320 }
321
322 20 bool ChillerHeaterPerformanceElectricEIR_Impl::setReferenceHeatingModeCoolingPowerInputRatio(double referenceHeatingModeCoolingPowerInputRatio) {
323 20 bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceHeatingModeCoolingPowerInputRatio,
324 referenceHeatingModeCoolingPowerInputRatio);
325 20 return result;
326 }
327
328 20 bool ChillerHeaterPerformanceElectricEIR_Impl::setReferenceHeatingModeLeavingChilledWaterTemperature(
329 double referenceHeatingModeLeavingChilledWaterTemperature) {
330 20 bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceHeatingModeLeavingChilledWaterTemperature,
331 referenceHeatingModeLeavingChilledWaterTemperature);
332
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 20 times.
20 OS_ASSERT(result);
333 20 return result;
334 }
335
336 20 bool ChillerHeaterPerformanceElectricEIR_Impl::setReferenceHeatingModeLeavingCondenserWaterTemperature(
337 double referenceHeatingModeLeavingCondenserWaterTemperature) {
338 20 bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceHeatingModeLeavingCondenserWaterTemperature,
339 referenceHeatingModeLeavingCondenserWaterTemperature);
340
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 20 times.
20 OS_ASSERT(result);
341 20 return result;
342 }
343
344 20 bool ChillerHeaterPerformanceElectricEIR_Impl::setReferenceHeatingModeEnteringCondenserFluidTemperature(
345 double referenceHeatingModeEnteringCondenserFluidTemperature) {
346 20 bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::ReferenceHeatingModeEnteringCondenserFluidTemperature,
347 referenceHeatingModeEnteringCondenserFluidTemperature);
348
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 20 times.
20 OS_ASSERT(result);
349 20 return result;
350 }
351
352 20 bool ChillerHeaterPerformanceElectricEIR_Impl::setHeatingModeEnteringChilledWaterTemperatureLowLimit(
353 double heatingModeEnteringChilledWaterTemperatureLowLimit) {
354 20 bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::HeatingModeEnteringChilledWaterTemperatureLowLimit,
355 heatingModeEnteringChilledWaterTemperatureLowLimit);
356
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 20 times.
20 OS_ASSERT(result);
357 20 return result;
358 }
359
360 20 bool ChillerHeaterPerformanceElectricEIR_Impl::setChilledWaterFlowModeType(const std::string& chilledWaterFlowModeType) {
361 20 bool result = setString(OS_ChillerHeaterPerformance_Electric_EIRFields::ChilledWaterFlowModeType, chilledWaterFlowModeType);
362 20 return result;
363 }
364
365 1 bool ChillerHeaterPerformanceElectricEIR_Impl::setDesignChilledWaterFlowRate(boost::optional<double> designChilledWaterFlowRate) {
366 1 bool result(false);
367
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (designChilledWaterFlowRate) {
368 1 result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::DesignChilledWaterFlowRate, designChilledWaterFlowRate.get());
369 } else {
370 ✗ resetDesignChilledWaterFlowRate();
371 ✗ result = true;
372 }
373 1 return result;
374 }
375
376 1 void ChillerHeaterPerformanceElectricEIR_Impl::resetDesignChilledWaterFlowRate() {
377
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_ChillerHeaterPerformance_Electric_EIRFields::DesignChilledWaterFlowRate, "");
378
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
379 1 }
380
381 20 void ChillerHeaterPerformanceElectricEIR_Impl::autosizeDesignChilledWaterFlowRate() {
382
2/2
✓ Branch 1 taken 20 times.
✓ Branch 4 taken 20 times.
40 bool result = setString(OS_ChillerHeaterPerformance_Electric_EIRFields::DesignChilledWaterFlowRate, "autosize");
383
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 20 times.
20 OS_ASSERT(result);
384 20 }
385
386 1 bool ChillerHeaterPerformanceElectricEIR_Impl::setDesignCondenserWaterFlowRate(boost::optional<double> designCondenserWaterFlowRate) {
387 1 bool result(false);
388
1/2
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
1 if (designCondenserWaterFlowRate) {
389 1 result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::DesignCondenserWaterFlowRate, designCondenserWaterFlowRate.get());
390 } else {
391 ✗ resetDesignCondenserWaterFlowRate();
392 ✗ result = true;
393 }
394 1 return result;
395 }
396
397 1 void ChillerHeaterPerformanceElectricEIR_Impl::resetDesignCondenserWaterFlowRate() {
398
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_ChillerHeaterPerformance_Electric_EIRFields::DesignCondenserWaterFlowRate, "");
399
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
400 1 }
401
402 20 void ChillerHeaterPerformanceElectricEIR_Impl::autosizeDesignCondenserWaterFlowRate() {
403
2/2
✓ Branch 1 taken 20 times.
✓ Branch 4 taken 20 times.
40 bool result = setString(OS_ChillerHeaterPerformance_Electric_EIRFields::DesignCondenserWaterFlowRate, "autosize");
404
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 20 times.
20 OS_ASSERT(result);
405 20 }
406
407 20 bool ChillerHeaterPerformanceElectricEIR_Impl::setDesignHotWaterFlowRate(double designHotWaterFlowRate) {
408 20 bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::DesignHotWaterFlowRate, designHotWaterFlowRate);
409 20 return result;
410 }
411
412 20 bool ChillerHeaterPerformanceElectricEIR_Impl::setCompressorMotorEfficiency(double compressorMotorEfficiency) {
413 20 bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::CompressorMotorEfficiency, compressorMotorEfficiency);
414 20 return result;
415 }
416
417 20 bool ChillerHeaterPerformanceElectricEIR_Impl::setCoolingModeTemperatureCurveCondenserWaterIndependentVariable(
418 const std::string& coolingModeTemperatureCurveCondenserWaterIndependentVariable) {
419 20 bool result = setString(OS_ChillerHeaterPerformance_Electric_EIRFields::CoolingModeTemperatureCurveCondenserWaterIndependentVariable,
420 coolingModeTemperatureCurveCondenserWaterIndependentVariable);
421 20 return result;
422 }
423
424 20 bool ChillerHeaterPerformanceElectricEIR_Impl::setCoolingModeCoolingCapacityFunctionOfTemperatureCurve(const Curve& curve) {
425 bool result =
426
2/2
✓ Branch 1 taken 20 times.
✓ Branch 4 taken 20 times.
20 setPointer(OS_ChillerHeaterPerformance_Electric_EIRFields::CoolingModeCoolingCapacityFunctionofTemperatureCurveName, curve.handle());
427 20 return result;
428 }
429
430 20 bool ChillerHeaterPerformanceElectricEIR_Impl::setCoolingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve(const Curve& curve) {
431
1/1
✓ Branch 1 taken 20 times.
20 bool result = setPointer(
432
1/1
✓ Branch 1 taken 20 times.
20 OS_ChillerHeaterPerformance_Electric_EIRFields::CoolingModeElectricInputtoCoolingOutputRatioFunctionofTemperatureCurveName, curve.handle());
433 20 return result;
434 }
435
436 20 bool ChillerHeaterPerformanceElectricEIR_Impl::setCoolingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve(const Curve& curve) {
437
1/1
✓ Branch 1 taken 20 times.
20 bool result = setPointer(
438
1/1
✓ Branch 1 taken 20 times.
20 OS_ChillerHeaterPerformance_Electric_EIRFields::CoolingModeElectricInputtoCoolingOutputRatioFunctionofPartLoadRatioCurveName, curve.handle());
439 20 return result;
440 }
441
442 20 bool ChillerHeaterPerformanceElectricEIR_Impl::setCoolingModeCoolingCapacityOptimumPartLoadRatio(
443 double coolingModeCoolingCapacityOptimumPartLoadRatio) {
444 20 bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::CoolingModeCoolingCapacityOptimumPartLoadRatio,
445 coolingModeCoolingCapacityOptimumPartLoadRatio);
446 20 return result;
447 }
448
449 20 bool ChillerHeaterPerformanceElectricEIR_Impl::setHeatingModeTemperatureCurveCondenserWaterIndependentVariable(
450 const std::string& heatingModeTemperatureCurveCondenserWaterIndependentVariable) {
451 20 bool result = setString(OS_ChillerHeaterPerformance_Electric_EIRFields::HeatingModeTemperatureCurveCondenserWaterIndependentVariable,
452 heatingModeTemperatureCurveCondenserWaterIndependentVariable);
453 20 return result;
454 }
455
456 20 bool ChillerHeaterPerformanceElectricEIR_Impl::setHeatingModeCoolingCapacityFunctionOfTemperatureCurve(const Curve& curve) {
457 bool result =
458
2/2
✓ Branch 1 taken 20 times.
✓ Branch 4 taken 20 times.
20 setPointer(OS_ChillerHeaterPerformance_Electric_EIRFields::HeatingModeCoolingCapacityFunctionofTemperatureCurveName, curve.handle());
459 20 return result;
460 }
461
462 20 bool ChillerHeaterPerformanceElectricEIR_Impl::setHeatingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve(const Curve& curve) {
463
1/1
✓ Branch 1 taken 20 times.
20 bool result = setPointer(
464
1/1
✓ Branch 1 taken 20 times.
20 OS_ChillerHeaterPerformance_Electric_EIRFields::HeatingModeElectricInputtoCoolingOutputRatioFunctionofTemperatureCurveName, curve.handle());
465 20 return result;
466 }
467
468 20 bool ChillerHeaterPerformanceElectricEIR_Impl::setHeatingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve(const Curve& curve) {
469
1/1
✓ Branch 1 taken 20 times.
20 bool result = setPointer(
470
1/1
✓ Branch 1 taken 20 times.
20 OS_ChillerHeaterPerformance_Electric_EIRFields::HeatingModeElectricInputtoCoolingOutputRatioFunctionofPartLoadRatioCurveName, curve.handle());
471 20 return result;
472 }
473
474 20 bool ChillerHeaterPerformanceElectricEIR_Impl::setHeatingModeCoolingCapacityOptimumPartLoadRatio(
475 double heatingModeCoolingCapacityOptimumPartLoadRatio) {
476 20 bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::HeatingModeCoolingCapacityOptimumPartLoadRatio,
477 heatingModeCoolingCapacityOptimumPartLoadRatio);
478 20 return result;
479 }
480
481 20 bool ChillerHeaterPerformanceElectricEIR_Impl::setSizingFactor(double sizingFactor) {
482 20 bool result = setDouble(OS_ChillerHeaterPerformance_Electric_EIRFields::SizingFactor, sizingFactor);
483 20 return result;
484 }
485
486 10 boost::optional<Curve> ChillerHeaterPerformanceElectricEIR_Impl::optionalCoolingModeCoolingCapacityFunctionOfTemperatureCurve() const {
487
1/1
✓ Branch 1 taken 10 times.
20 return getObject<ModelObject>().getModelObjectTarget<Curve>(
488
1/1
✓ Branch 1 taken 10 times.
20 OS_ChillerHeaterPerformance_Electric_EIRFields::CoolingModeCoolingCapacityFunctionofTemperatureCurveName);
489 }
490
491 boost::optional<Curve>
492 4 ChillerHeaterPerformanceElectricEIR_Impl::optionalCoolingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve() const {
493
1/1
✓ Branch 1 taken 4 times.
8 return getObject<ModelObject>().getModelObjectTarget<Curve>(
494
1/1
✓ Branch 1 taken 4 times.
8 OS_ChillerHeaterPerformance_Electric_EIRFields::CoolingModeElectricInputtoCoolingOutputRatioFunctionofTemperatureCurveName);
495 }
496
497 boost::optional<Curve>
498 4 ChillerHeaterPerformanceElectricEIR_Impl::optionalCoolingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve() const {
499
1/1
✓ Branch 1 taken 4 times.
8 return getObject<ModelObject>().getModelObjectTarget<Curve>(
500
1/1
✓ Branch 1 taken 4 times.
8 OS_ChillerHeaterPerformance_Electric_EIRFields::CoolingModeElectricInputtoCoolingOutputRatioFunctionofPartLoadRatioCurveName);
501 }
502
503 4 boost::optional<Curve> ChillerHeaterPerformanceElectricEIR_Impl::optionalHeatingModeCoolingCapacityFunctionOfTemperatureCurve() const {
504
1/1
✓ Branch 1 taken 4 times.
8 return getObject<ModelObject>().getModelObjectTarget<Curve>(
505
1/1
✓ Branch 1 taken 4 times.
8 OS_ChillerHeaterPerformance_Electric_EIRFields::HeatingModeCoolingCapacityFunctionofTemperatureCurveName);
506 }
507
508 boost::optional<Curve>
509 4 ChillerHeaterPerformanceElectricEIR_Impl::optionalHeatingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve() const {
510
1/1
✓ Branch 1 taken 4 times.
8 return getObject<ModelObject>().getModelObjectTarget<Curve>(
511
1/1
✓ Branch 1 taken 4 times.
8 OS_ChillerHeaterPerformance_Electric_EIRFields::HeatingModeElectricInputtoCoolingOutputRatioFunctionofTemperatureCurveName);
512 }
513
514 boost::optional<Curve>
515 4 ChillerHeaterPerformanceElectricEIR_Impl::optionalHeatingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve() const {
516
1/1
✓ Branch 1 taken 4 times.
8 return getObject<ModelObject>().getModelObjectTarget<Curve>(
517
1/1
✓ Branch 1 taken 4 times.
8 OS_ChillerHeaterPerformance_Electric_EIRFields::HeatingModeElectricInputtoCoolingOutputRatioFunctionofPartLoadRatioCurveName);
518 }
519
520 ✗ boost::optional<double> ChillerHeaterPerformanceElectricEIR_Impl::autosizedReferenceCoolingModeEvaporatorCapacity() const {
521 ✗ return getAutosizedValue("Design Size Reference Cooling Mode Evaporator Capacity", "W");
522 }
523
524 ✗ boost::optional<double> ChillerHeaterPerformanceElectricEIR_Impl::autosizedDesignChilledWaterFlowRate() const {
525 ✗ return getAutosizedValue("Design Size Design Chilled Water Flow Rate", "m3/s");
526 }
527
528 ✗ boost::optional<double> ChillerHeaterPerformanceElectricEIR_Impl::autosizedDesignCondenserWaterFlowRate() const {
529 ✗ return getAutosizedValue("Design Size Design Condenser Water Flow Rate", "m3/s");
530 }
531
532 ✗ void ChillerHeaterPerformanceElectricEIR_Impl::autosize() {
533 ✗ autosizeReferenceCoolingModeEvaporatorCapacity();
534 ✗ autosizeDesignChilledWaterFlowRate();
535 ✗ autosizeDesignCondenserWaterFlowRate();
536 ✗ }
537
538 ✗ void ChillerHeaterPerformanceElectricEIR_Impl::applySizingValues() {
539 ✗ boost::optional<double> val;
540 ✗ val = autosizedReferenceCoolingModeEvaporatorCapacity();
541 ✗ if (val) {
542 ✗ setReferenceCoolingModeEvaporatorCapacity(val.get());
543 }
544
545 ✗ val = autosizedDesignChilledWaterFlowRate();
546 ✗ if (val) {
547 ✗ setDesignChilledWaterFlowRate(val.get());
548 }
549
550 ✗ val = autosizedDesignCondenserWaterFlowRate();
551 ✗ if (val) {
552 ✗ setDesignCondenserWaterFlowRate(val.get());
553 }
554 ✗ }
555
556 // Convenience functions to return parent CentralHeatPumpSystem and CentralHeatPumpSystemModule
557 /*
558 * boost::optional<CentralHeatPumpSystemModule> ChillerHeaterPerformanceElectricEIR_Impl::centralHeatPumpSystemModule() const {
559 *
560 * boost::optional<CentralHeatPumpSystemModule> result;
561 * for ( const CentralHeatPumpSystemModule& central_hp_module : this->model().getConcreteModelObjects<CentralHeatPumpSystemModule>() )
562 * {
563 * ChillerHeaterPerformanceElectricEIR chiller = central_hp_module.chillerHeaterModulesPerformanceComponent();
564 * if (chiller.handle() == this->handle())
565 * {
566 * result = central_hp_module;
567 * }
568 * }
569 * return result;
570 * }
571 */
572
573 /*
574 * boost::optional<CentralHeatPumpSystem> ChillerHeaterPerformanceElectricEIR_Impl::centralHeatPumpSystem() const {
575 *
576 * boost::optional<CentralHeatPumpSystem> result;
577 *
578 * // Check if this chiller has a CentralHeatPumpSystemModule
579 * if ( boost::optional<CentralHeatPumpSystemModule> this_central_hp_module = this->centralHeatPumpSystemModule() )
580 * {
581 * // TODO: use the CentralHeatPumpSystemModule::centralHeatPumpSystem() method instead
582 * if ( boost::optional<CentralHeatPumpSystem> central_hp = this_central_hp_module->centralHeatPumpSystem() )
583 * {
584 * result = central_hp.get();
585 * }
586 *
587 * // loop on all CentralHeatPumpSystems in the model
588 * //for ( const CentralHeatPumpSystem& central_hp : this->model().getConcreteModelObjects<CentralHeatPumpSystem>() )
589 * //{
590 * //// Loop on each CentralHeatPumpSystemModules
591 * //for (const CentralHeatPumpSystemModule& central_hp_module : central_hp.modules() )
592 * //{
593 * //if ( central_hp_module.handle() == this_central_hp_module->handle() )
594 * //{
595 * //result = central_hp;
596 * //}
597 * //}
598 * //}
599 * }
600 * return result;
601 * }
602 */
603
604 // Convenience functions to return a vector of parent CentralHeatPumpSystemModules
605 7 std::vector<CentralHeatPumpSystemModule> ChillerHeaterPerformanceElectricEIR_Impl::centralHeatPumpSystemModules() const {
606
607 7 std::vector<CentralHeatPumpSystemModule> result;
608 // Loop on all CentralHeatPumpSystemModules
609
4/4
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 12 taken 8 times.
✓ Branch 13 taken 7 times.
15 for (const CentralHeatPumpSystemModule& central_hp_module : this->model().getConcreteModelObjects<CentralHeatPumpSystemModule>()) {
610 // If the ChillerHeaterPerformanceElectricEIR is the same as this one, add it to the result
611
1/1
✓ Branch 1 taken 8 times.
8 ChillerHeaterPerformanceElectricEIR chiller = central_hp_module.chillerHeaterModulesPerformanceComponent();
612
4/5
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
✓ Branch 9 taken 8 times.
✗ Branch 10 not taken.
8 if (chiller.handle() == this->handle()) {
613
1/1
✓ Branch 1 taken 8 times.
8 result.push_back(central_hp_module);
614 }
615 15 }
616 7 return result;
617 ✗ }
618
619 6 std::vector<CentralHeatPumpSystem> ChillerHeaterPerformanceElectricEIR_Impl::centralHeatPumpSystems() const {
620
621 6 std::vector<CentralHeatPumpSystem> result;
622
623 // TODO: cleanup
624 //EITHER
625 //
626 // Loop on all parent CentralHeatPumpSystemModules
627 /*
628 *for (const CentralHeatPumpSystemModule& mod : this->centralHeatPumpSystemModules() )
629 *{
630 * // Use the CentralHeatPumpSystemModule::centralHeatPumpSystem() method instead
631 * // If there's one, add that to result vector
632 * if ( boost::optional<CentralHeatPumpSystem> central_hp = mod.centralHeatPumpSystem() )
633 * {
634 * result.push_back(central_hp.get()):
635 * }
636 *}
637 */
638
639 // OR
640 //
641 // loop on all CentralHeatPumpSystems in the model
642
4/4
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 12 taken 5 times.
✓ Branch 13 taken 6 times.
11 for (const CentralHeatPumpSystem& central_hp : this->model().getConcreteModelObjects<CentralHeatPumpSystem>()) {
643 // flag to avoid pushing it several times (a CentralHP can have multiple Mods that reference this chillerPerf)
644 5 bool is_added = false;
645
646 // Loop on each CentralHeatPumpSystemModules
647
3/3
✓ Branch 1 taken 5 times.
✓ Branch 8 taken 6 times.
✓ Branch 9 taken 5 times.
11 for (const CentralHeatPumpSystemModule& central_hp_module : central_hp.modules()) {
648
2/2
✓ Branch 0 taken 5 times.
✓ Branch 1 taken 1 time.
6 if (!is_added) {
649
650
1/1
✓ Branch 1 taken 5 times.
5 ChillerHeaterPerformanceElectricEIR chiller = central_hp_module.chillerHeaterModulesPerformanceComponent();
651
652
4/5
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✓ Branch 9 taken 5 times.
✗ Branch 10 not taken.
5 if (chiller.handle() == this->handle()) {
653
1/1
✓ Branch 1 taken 5 times.
5 result.push_back(central_hp);
654 5 is_added = true;
655 }
656 5 }
657 5 }
658 6 }
659
660 6 return result;
661 ✗ }
662
663 } // namespace detail
664
665 19 ChillerHeaterPerformanceElectricEIR::ChillerHeaterPerformanceElectricEIR(const Model& model)
666 19 : ParentObject(ChillerHeaterPerformanceElectricEIR::iddObjectType(), model) {
667
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 19 times.
✗ Branch 5 not taken.
19 OS_ASSERT(getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>());
668
669
1/1
✓ Branch 1 taken 19 times.
19 CurveBiquadratic chillerHeaterClgCapFT(model);
670
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterClgCapFT.setCoefficient1Constant(0.950829);
671
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterClgCapFT.setCoefficient2x(3.419327E-02);
672
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterClgCapFT.setCoefficient3xPOW2(2.66642E-04);
673
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterClgCapFT.setCoefficient4y(-1.733397E-03);
674
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterClgCapFT.setCoefficient5yPOW2(-1.762417E-04);
675
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterClgCapFT.setCoefficient6xTIMESY(-3.69198E-05);
676
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterClgCapFT.setMinimumValueofx(4.44);
677
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterClgCapFT.setMaximumValueofx(12.78);
678
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterClgCapFT.setMinimumValueofy(12.78);
679
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterClgCapFT.setMaximumValueofy(29.44);
680
2/2
✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
38 chillerHeaterClgCapFT.setInputUnitTypeforX("Temperature");
681
2/2
✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
38 chillerHeaterClgCapFT.setInputUnitTypeforY("Temperature");
682
2/2
✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
19 chillerHeaterClgCapFT.setOutputUnitType("Dimensionless");
683
684
1/1
✓ Branch 1 taken 19 times.
19 CurveBiquadratic chillerHeaterClgEIRFT(model);
685
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterClgEIRFT.setCoefficient1Constant(0.7362431);
686
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterClgEIRFT.setCoefficient2x(2.136491E-02);
687
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterClgEIRFT.setCoefficient3xPOW2(3.638909E-04);
688
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterClgEIRFT.setCoefficient4y(-4.284947E-03);
689
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterClgEIRFT.setCoefficient5yPOW2(3.389817E-04);
690
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterClgEIRFT.setCoefficient6xTIMESY(-3.632396E-04);
691
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterClgEIRFT.setMinimumValueofx(4.44);
692
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterClgEIRFT.setMaximumValueofx(12.78);
693
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterClgEIRFT.setMinimumValueofy(12.78);
694
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterClgEIRFT.setMaximumValueofy(29.44);
695
2/2
✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
38 chillerHeaterClgEIRFT.setInputUnitTypeforX("Temperature");
696
2/2
✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
38 chillerHeaterClgEIRFT.setInputUnitTypeforY("Temperature");
697
2/2
✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
19 chillerHeaterClgEIRFT.setOutputUnitType("Dimensionless");
698
699
1/1
✓ Branch 1 taken 19 times.
19 CurveBiquadratic chillerHeaterHtgCapFT(model);
700
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterHtgCapFT.setCoefficient1Constant(0.9415266);
701
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterHtgCapFT.setCoefficient2x(5.527431E-02);
702
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterHtgCapFT.setCoefficient3xPOW2(3.573558E-04);
703
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterHtgCapFT.setCoefficient4y(1.258391E-03);
704
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterHtgCapFT.setCoefficient5yPOW2(-6.420546E-05);
705
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterHtgCapFT.setCoefficient6xTIMESY(-5.350989E-04);
706
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterHtgCapFT.setMinimumValueofx(4.44);
707
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterHtgCapFT.setMaximumValueofx(15.56);
708
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterHtgCapFT.setMinimumValueofy(25);
709
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterHtgCapFT.setMaximumValueofy(57.22);
710
2/2
✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
38 chillerHeaterHtgCapFT.setInputUnitTypeforX("Temperature");
711
2/2
✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
38 chillerHeaterHtgCapFT.setInputUnitTypeforY("Temperature");
712
2/2
✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
19 chillerHeaterHtgCapFT.setOutputUnitType("Dimensionless");
713
714
1/1
✓ Branch 1 taken 19 times.
19 CurveBiquadratic chillerHeaterHtgEIRFT(model);
715
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterHtgEIRFT.setCoefficient1Constant(0.2286246);
716
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterHtgEIRFT.setCoefficient2x(2.498714E-02);
717
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterHtgEIRFT.setCoefficient3xPOW2(-1.267106E-05);
718
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterHtgEIRFT.setCoefficient4y(9.327184E-03);
719
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterHtgEIRFT.setCoefficient5yPOW2(5.892037E-05);
720
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterHtgEIRFT.setCoefficient6xTIMESY(-3.268512E-04);
721
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterHtgEIRFT.setMinimumValueofx(4.44);
722
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterHtgEIRFT.setMaximumValueofx(15.56);
723
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterHtgEIRFT.setMinimumValueofy(25);
724
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterHtgEIRFT.setMaximumValueofy(57.22);
725
2/2
✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
38 chillerHeaterHtgEIRFT.setInputUnitTypeforX("Temperature");
726
2/2
✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
38 chillerHeaterHtgEIRFT.setInputUnitTypeforY("Temperature");
727
2/2
✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
19 chillerHeaterHtgEIRFT.setOutputUnitType("Dimensionless");
728
729
1/1
✓ Branch 1 taken 19 times.
19 CurveBicubic chillerHeaterClgEIRFPLR(model);
730
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterClgEIRFPLR.setCoefficient1Constant(0.0);
731
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterClgEIRFPLR.setCoefficient2x(1.22895);
732
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterClgEIRFPLR.setCoefficient3xPOW2(-0.751383);
733
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterClgEIRFPLR.setCoefficient7xPOW3(0.517396);
734
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterClgEIRFPLR.setMinimumValueofx(0.2);
735
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterClgEIRFPLR.setMaximumValueofx(1);
736
737
1/1
✓ Branch 1 taken 19 times.
19 CurveBicubic chillerHeaterHtgEIRFPLR(model);
738
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterHtgEIRFPLR.setCoefficient1Constant(0.0);
739
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterHtgEIRFPLR.setCoefficient2x(1.12853);
740
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterHtgEIRFPLR.setCoefficient3xPOW2(-0.0264962);
741
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterHtgEIRFPLR.setCoefficient7xPOW3(-0.103811);
742
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterHtgEIRFPLR.setMinimumValueofx(0.3);
743
1/1
✓ Branch 1 taken 19 times.
19 chillerHeaterHtgEIRFPLR.setMaximumValueofx(1);
744
745 19 bool ok = true;
746
1/1
✓ Branch 1 taken 19 times.
19 autosizeReferenceCoolingModeEvaporatorCapacity();
747
1/1
✓ Branch 1 taken 19 times.
19 autosizeDesignCondenserWaterFlowRate();
748
1/1
✓ Branch 1 taken 19 times.
19 autosizeDesignChilledWaterFlowRate();
749
1/1
✓ Branch 1 taken 19 times.
19 ok = setReferenceCoolingModeCOP(1.5);
750
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 19 times.
✗ Branch 3 not taken.
19 OS_ASSERT(ok);
751
1/1
✓ Branch 1 taken 19 times.
19 setReferenceCoolingModeLeavingChilledWaterTemperature(6.67);
752
1/1
✓ Branch 1 taken 19 times.
19 setReferenceCoolingModeEnteringCondenserFluidTemperature(29.4);
753
1/1
✓ Branch 1 taken 19 times.
19 setReferenceCoolingModeLeavingCondenserWaterTemperature(35.0);
754
1/1
✓ Branch 1 taken 19 times.
19 setReferenceHeatingModeCoolingCapacityRatio(0.74);
755
1/1
✓ Branch 1 taken 19 times.
19 ok = setReferenceHeatingModeCoolingPowerInputRatio(1.38);
756
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 19 times.
✗ Branch 3 not taken.
19 OS_ASSERT(ok);
757
1/1
✓ Branch 1 taken 19 times.
19 setReferenceHeatingModeLeavingChilledWaterTemperature(6.67);
758
1/1
✓ Branch 1 taken 19 times.
19 setReferenceHeatingModeLeavingCondenserWaterTemperature(60);
759
1/1
✓ Branch 1 taken 19 times.
19 setReferenceHeatingModeEnteringCondenserFluidTemperature(29.44);
760
1/1
✓ Branch 1 taken 19 times.
19 setHeatingModeEnteringChilledWaterTemperatureLowLimit(5);
761
2/2
✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
19 ok = setChilledWaterFlowModeType("VariableFlow");
762
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 19 times.
✗ Branch 3 not taken.
19 OS_ASSERT(ok);
763
1/1
✓ Branch 1 taken 19 times.
19 ok = setDesignHotWaterFlowRate(0.0003525);
764
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 19 times.
✗ Branch 3 not taken.
19 OS_ASSERT(ok);
765
1/1
✓ Branch 1 taken 19 times.
19 ok = setCompressorMotorEfficiency(1);
766
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 19 times.
✗ Branch 3 not taken.
19 OS_ASSERT(ok);
767
2/2
✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
19 ok = setCoolingModeTemperatureCurveCondenserWaterIndependentVariable("EnteringCondenser");
768
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 19 times.
✗ Branch 3 not taken.
19 OS_ASSERT(ok);
769
1/1
✓ Branch 1 taken 19 times.
19 ok = setCoolingModeCoolingCapacityFunctionOfTemperatureCurve(chillerHeaterClgCapFT);
770
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 19 times.
✗ Branch 3 not taken.
19 OS_ASSERT(ok);
771
1/1
✓ Branch 1 taken 19 times.
19 ok = setCoolingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve(chillerHeaterClgEIRFT);
772
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 19 times.
✗ Branch 3 not taken.
19 OS_ASSERT(ok);
773
1/1
✓ Branch 1 taken 19 times.
19 ok = setCoolingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve(chillerHeaterClgEIRFPLR);
774
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 19 times.
✗ Branch 3 not taken.
19 OS_ASSERT(ok);
775
1/1
✓ Branch 1 taken 19 times.
19 ok = setCoolingModeCoolingCapacityOptimumPartLoadRatio(1);
776
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 19 times.
✗ Branch 3 not taken.
19 OS_ASSERT(ok);
777
2/2
✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
19 ok = setHeatingModeTemperatureCurveCondenserWaterIndependentVariable("LeavingCondenser");
778
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 19 times.
✗ Branch 3 not taken.
19 OS_ASSERT(ok);
779
1/1
✓ Branch 1 taken 19 times.
19 ok = setHeatingModeCoolingCapacityFunctionOfTemperatureCurve(chillerHeaterHtgCapFT);
780
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 19 times.
✗ Branch 3 not taken.
19 OS_ASSERT(ok);
781
1/1
✓ Branch 1 taken 19 times.
19 ok = setHeatingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve(chillerHeaterHtgEIRFT);
782
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 19 times.
✗ Branch 3 not taken.
19 OS_ASSERT(ok);
783
1/1
✓ Branch 1 taken 19 times.
19 ok = setHeatingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve(chillerHeaterHtgEIRFPLR);
784
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 19 times.
✗ Branch 3 not taken.
19 OS_ASSERT(ok);
785
1/1
✓ Branch 1 taken 19 times.
19 ok = setHeatingModeCoolingCapacityOptimumPartLoadRatio(1);
786
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 19 times.
✗ Branch 3 not taken.
19 OS_ASSERT(ok);
787
1/1
✓ Branch 1 taken 19 times.
19 ok = setSizingFactor(1);
788
1/3
✗ Branch 0 not taken.
✓ Branch 1 taken 19 times.
✗ Branch 3 not taken.
19 OS_ASSERT(ok);
789 19 }
790
791 ✗ ChillerHeaterPerformanceElectricEIR::ChillerHeaterPerformanceElectricEIR(const Model& model, const Curve& chillerHeaterClgCapFT,
792 const Curve& chillerHeaterClgEIRFT, const Curve& chillerHeaterClgEIRFPLR,
793 const Curve& chillerHeaterHtgCapFT, const Curve& chillerHeaterHtgEIRFT,
794 ✗ const Curve& chillerHeaterHtgEIRFPLR)
795 ✗ : ParentObject(ChillerHeaterPerformanceElectricEIR::iddObjectType(), model) {
796 ✗ OS_ASSERT(getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>());
797
798 ✗ bool ok = true;
799 ✗ autosizeReferenceCoolingModeEvaporatorCapacity();
800 ✗ autosizeDesignCondenserWaterFlowRate();
801 ✗ autosizeDesignChilledWaterFlowRate();
802 ✗ ok = setReferenceCoolingModeCOP(1.5);
803 ✗ OS_ASSERT(ok);
804 ✗ setReferenceCoolingModeLeavingChilledWaterTemperature(6.67);
805 ✗ setReferenceCoolingModeEnteringCondenserFluidTemperature(29.4);
806 ✗ setReferenceCoolingModeLeavingCondenserWaterTemperature(35.0);
807 ✗ setReferenceHeatingModeCoolingCapacityRatio(0.74);
808 ✗ ok = setReferenceHeatingModeCoolingPowerInputRatio(1.38);
809 ✗ OS_ASSERT(ok);
810 ✗ setReferenceHeatingModeLeavingChilledWaterTemperature(6.67);
811 ✗ setReferenceHeatingModeLeavingCondenserWaterTemperature(60);
812 ✗ setReferenceHeatingModeEnteringCondenserFluidTemperature(29.44);
813 ✗ setHeatingModeEnteringChilledWaterTemperatureLowLimit(5);
814 ✗ ok = setChilledWaterFlowModeType("VariableFlow");
815 ✗ OS_ASSERT(ok);
816 ✗ ok = setDesignHotWaterFlowRate(0.0003525);
817 ✗ OS_ASSERT(ok);
818 ✗ ok = setCompressorMotorEfficiency(1);
819 ✗ OS_ASSERT(ok);
820 ✗ ok = setCoolingModeTemperatureCurveCondenserWaterIndependentVariable("EnteringCondenser");
821 ✗ OS_ASSERT(ok);
822 ✗ ok = setCoolingModeCoolingCapacityFunctionOfTemperatureCurve(chillerHeaterClgCapFT);
823 ✗ OS_ASSERT(ok);
824 ✗ ok = setCoolingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve(chillerHeaterClgEIRFT);
825 ✗ OS_ASSERT(ok);
826 ✗ ok = setCoolingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve(chillerHeaterClgEIRFPLR);
827 ✗ OS_ASSERT(ok);
828 ✗ ok = setCoolingModeCoolingCapacityOptimumPartLoadRatio(1);
829 ✗ OS_ASSERT(ok);
830 ✗ ok = setHeatingModeTemperatureCurveCondenserWaterIndependentVariable("LeavingCondenser");
831 ✗ OS_ASSERT(ok);
832 ✗ ok = setHeatingModeCoolingCapacityFunctionOfTemperatureCurve(chillerHeaterHtgCapFT);
833 ✗ OS_ASSERT(ok);
834 ✗ ok = setHeatingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve(chillerHeaterHtgEIRFT);
835 ✗ OS_ASSERT(ok);
836 ✗ ok = setHeatingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve(chillerHeaterHtgEIRFPLR);
837 ✗ OS_ASSERT(ok);
838 ✗ ok = setHeatingModeCoolingCapacityOptimumPartLoadRatio(1);
839 ✗ OS_ASSERT(ok);
840 ✗ ok = setSizingFactor(1);
841 ✗ OS_ASSERT(ok);
842 ✗ }
843
844 7647 IddObjectType ChillerHeaterPerformanceElectricEIR::iddObjectType() {
845
1/1
✓ Branch 1 taken 7647 times.
7647 return {IddObjectType::OS_ChillerHeaterPerformance_Electric_EIR};
846 }
847
848 ✗ std::vector<std::string> ChillerHeaterPerformanceElectricEIR::chilledWaterFlowModeTypeValues() {
849 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(),
850 ✗ OS_ChillerHeaterPerformance_Electric_EIRFields::ChilledWaterFlowModeType);
851 }
852
853 ✗ std::vector<std::string> ChillerHeaterPerformanceElectricEIR::coolingModeTemperatureCurveCondenserWaterIndependentVariableValues() {
854 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(),
855 ✗ OS_ChillerHeaterPerformance_Electric_EIRFields::CoolingModeTemperatureCurveCondenserWaterIndependentVariable);
856 }
857
858 ✗ std::vector<std::string> ChillerHeaterPerformanceElectricEIR::heatingModeTemperatureCurveCondenserWaterIndependentVariableValues() {
859 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(),
860 ✗ OS_ChillerHeaterPerformance_Electric_EIRFields::HeatingModeTemperatureCurveCondenserWaterIndependentVariable);
861 }
862
863 2 boost::optional<double> ChillerHeaterPerformanceElectricEIR::referenceCoolingModeEvaporatorCapacity() const {
864
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->referenceCoolingModeEvaporatorCapacity();
865 }
866
867 5 bool ChillerHeaterPerformanceElectricEIR::isReferenceCoolingModeEvaporatorCapacityAutosized() const {
868
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->isReferenceCoolingModeEvaporatorCapacityAutosized();
869 }
870
871 5 double ChillerHeaterPerformanceElectricEIR::referenceCoolingModeCOP() const {
872
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->referenceCoolingModeCOP();
873 }
874
875 5 double ChillerHeaterPerformanceElectricEIR::referenceCoolingModeLeavingChilledWaterTemperature() const {
876
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->referenceCoolingModeLeavingChilledWaterTemperature();
877 }
878
879 5 double ChillerHeaterPerformanceElectricEIR::referenceCoolingModeEnteringCondenserFluidTemperature() const {
880
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->referenceCoolingModeEnteringCondenserFluidTemperature();
881 }
882
883 5 double ChillerHeaterPerformanceElectricEIR::referenceCoolingModeLeavingCondenserWaterTemperature() const {
884
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->referenceCoolingModeLeavingCondenserWaterTemperature();
885 }
886
887 5 double ChillerHeaterPerformanceElectricEIR::referenceHeatingModeCoolingCapacityRatio() const {
888
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->referenceHeatingModeCoolingCapacityRatio();
889 }
890
891 5 double ChillerHeaterPerformanceElectricEIR::referenceHeatingModeCoolingPowerInputRatio() const {
892
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->referenceHeatingModeCoolingPowerInputRatio();
893 }
894
895 5 double ChillerHeaterPerformanceElectricEIR::referenceHeatingModeLeavingChilledWaterTemperature() const {
896
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->referenceHeatingModeLeavingChilledWaterTemperature();
897 }
898
899 5 double ChillerHeaterPerformanceElectricEIR::referenceHeatingModeLeavingCondenserWaterTemperature() const {
900
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->referenceHeatingModeLeavingCondenserWaterTemperature();
901 }
902
903 5 double ChillerHeaterPerformanceElectricEIR::referenceHeatingModeEnteringCondenserFluidTemperature() const {
904
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->referenceHeatingModeEnteringCondenserFluidTemperature();
905 }
906
907 5 double ChillerHeaterPerformanceElectricEIR::heatingModeEnteringChilledWaterTemperatureLowLimit() const {
908
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->heatingModeEnteringChilledWaterTemperatureLowLimit();
909 }
910
911 4 std::string ChillerHeaterPerformanceElectricEIR::chilledWaterFlowModeType() const {
912
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->chilledWaterFlowModeType();
913 }
914
915 2 boost::optional<double> ChillerHeaterPerformanceElectricEIR::designChilledWaterFlowRate() const {
916
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->designChilledWaterFlowRate();
917 }
918
919 4 bool ChillerHeaterPerformanceElectricEIR::isDesignChilledWaterFlowRateAutosized() const {
920
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->isDesignChilledWaterFlowRateAutosized();
921 }
922
923 2 boost::optional<double> ChillerHeaterPerformanceElectricEIR::designCondenserWaterFlowRate() const {
924
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->designCondenserWaterFlowRate();
925 }
926
927 4 bool ChillerHeaterPerformanceElectricEIR::isDesignCondenserWaterFlowRateAutosized() const {
928
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->isDesignCondenserWaterFlowRateAutosized();
929 }
930
931 5 double ChillerHeaterPerformanceElectricEIR::designHotWaterFlowRate() const {
932
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->designHotWaterFlowRate();
933 }
934
935 5 double ChillerHeaterPerformanceElectricEIR::compressorMotorEfficiency() const {
936
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->compressorMotorEfficiency();
937 }
938
939 4 std::string ChillerHeaterPerformanceElectricEIR::coolingModeTemperatureCurveCondenserWaterIndependentVariable() const {
940
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->coolingModeTemperatureCurveCondenserWaterIndependentVariable();
941 }
942
943 10 Curve ChillerHeaterPerformanceElectricEIR::coolingModeCoolingCapacityFunctionOfTemperatureCurve() const {
944
1/1
✓ Branch 3 taken 10 times.
10 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->coolingModeCoolingCapacityFunctionOfTemperatureCurve();
945 }
946
947 4 Curve ChillerHeaterPerformanceElectricEIR::coolingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve() const {
948
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->coolingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve();
949 }
950
951 4 Curve ChillerHeaterPerformanceElectricEIR::coolingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve() const {
952
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->coolingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve();
953 }
954
955 4 double ChillerHeaterPerformanceElectricEIR::coolingModeCoolingCapacityOptimumPartLoadRatio() const {
956
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->coolingModeCoolingCapacityOptimumPartLoadRatio();
957 }
958
959 4 std::string ChillerHeaterPerformanceElectricEIR::heatingModeTemperatureCurveCondenserWaterIndependentVariable() const {
960
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->heatingModeTemperatureCurveCondenserWaterIndependentVariable();
961 }
962
963 4 Curve ChillerHeaterPerformanceElectricEIR::heatingModeCoolingCapacityFunctionOfTemperatureCurve() const {
964
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->heatingModeCoolingCapacityFunctionOfTemperatureCurve();
965 }
966
967 4 Curve ChillerHeaterPerformanceElectricEIR::heatingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve() const {
968
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->heatingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve();
969 }
970
971 4 Curve ChillerHeaterPerformanceElectricEIR::heatingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve() const {
972
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->heatingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve();
973 }
974
975 4 double ChillerHeaterPerformanceElectricEIR::heatingModeCoolingCapacityOptimumPartLoadRatio() const {
976
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->heatingModeCoolingCapacityOptimumPartLoadRatio();
977 }
978
979 4 double ChillerHeaterPerformanceElectricEIR::sizingFactor() const {
980
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->sizingFactor();
981 }
982
983 1 bool ChillerHeaterPerformanceElectricEIR::setReferenceCoolingModeEvaporatorCapacity(double referenceCoolingModeEvaporatorCapacity) {
984
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
2 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setReferenceCoolingModeEvaporatorCapacity(
985 2 referenceCoolingModeEvaporatorCapacity);
986 }
987
988 20 void ChillerHeaterPerformanceElectricEIR::autosizeReferenceCoolingModeEvaporatorCapacity() {
989
1/1
✓ Branch 3 taken 20 times.
20 getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->autosizeReferenceCoolingModeEvaporatorCapacity();
990 20 }
991
992 20 bool ChillerHeaterPerformanceElectricEIR::setReferenceCoolingModeCOP(double referenceCoolingModeCOP) {
993
1/1
✓ Branch 3 taken 20 times.
20 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setReferenceCoolingModeCOP(referenceCoolingModeCOP);
994 }
995
996 20 bool ChillerHeaterPerformanceElectricEIR::setReferenceCoolingModeLeavingChilledWaterTemperature(
997 double referenceCoolingModeLeavingChilledWaterTemperature) {
998
1/1
✓ Branch 3 taken 20 times.
40 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setReferenceCoolingModeLeavingChilledWaterTemperature(
999 40 referenceCoolingModeLeavingChilledWaterTemperature);
1000 }
1001
1002 20 bool ChillerHeaterPerformanceElectricEIR::setReferenceCoolingModeEnteringCondenserFluidTemperature(
1003 double referenceCoolingModeEnteringCondenserFluidTemperature) {
1004
1/1
✓ Branch 3 taken 20 times.
40 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setReferenceCoolingModeEnteringCondenserFluidTemperature(
1005 40 referenceCoolingModeEnteringCondenserFluidTemperature);
1006 }
1007
1008 20 bool ChillerHeaterPerformanceElectricEIR::setReferenceCoolingModeLeavingCondenserWaterTemperature(
1009 double referenceCoolingModeLeavingCondenserWaterTemperature) {
1010
1/1
✓ Branch 3 taken 20 times.
40 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setReferenceCoolingModeLeavingCondenserWaterTemperature(
1011 40 referenceCoolingModeLeavingCondenserWaterTemperature);
1012 }
1013
1014 20 bool ChillerHeaterPerformanceElectricEIR::setReferenceHeatingModeCoolingCapacityRatio(double referenceHeatingModeCoolingCapacityRatio) {
1015
1/1
✓ Branch 3 taken 20 times.
40 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setReferenceHeatingModeCoolingCapacityRatio(
1016 40 referenceHeatingModeCoolingCapacityRatio);
1017 }
1018
1019 20 bool ChillerHeaterPerformanceElectricEIR::setReferenceHeatingModeCoolingPowerInputRatio(double referenceHeatingModeCoolingPowerInputRatio) {
1020
1/1
✓ Branch 3 taken 20 times.
40 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setReferenceHeatingModeCoolingPowerInputRatio(
1021 40 referenceHeatingModeCoolingPowerInputRatio);
1022 }
1023
1024 20 bool ChillerHeaterPerformanceElectricEIR::setReferenceHeatingModeLeavingChilledWaterTemperature(
1025 double referenceHeatingModeLeavingChilledWaterTemperature) {
1026
1/1
✓ Branch 3 taken 20 times.
40 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setReferenceHeatingModeLeavingChilledWaterTemperature(
1027 40 referenceHeatingModeLeavingChilledWaterTemperature);
1028 }
1029
1030 20 bool ChillerHeaterPerformanceElectricEIR::setReferenceHeatingModeLeavingCondenserWaterTemperature(
1031 double referenceHeatingModeLeavingCondenserWaterTemperature) {
1032
1/1
✓ Branch 3 taken 20 times.
40 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setReferenceHeatingModeLeavingCondenserWaterTemperature(
1033 40 referenceHeatingModeLeavingCondenserWaterTemperature);
1034 }
1035
1036 20 bool ChillerHeaterPerformanceElectricEIR::setReferenceHeatingModeEnteringCondenserFluidTemperature(
1037 double referenceHeatingModeEnteringCondenserFluidTemperature) {
1038
1/1
✓ Branch 3 taken 20 times.
40 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setReferenceHeatingModeEnteringCondenserFluidTemperature(
1039 40 referenceHeatingModeEnteringCondenserFluidTemperature);
1040 }
1041
1042 20 bool ChillerHeaterPerformanceElectricEIR::setHeatingModeEnteringChilledWaterTemperatureLowLimit(
1043 double heatingModeEnteringChilledWaterTemperatureLowLimit) {
1044
1/1
✓ Branch 3 taken 20 times.
40 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setHeatingModeEnteringChilledWaterTemperatureLowLimit(
1045 40 heatingModeEnteringChilledWaterTemperatureLowLimit);
1046 }
1047
1048 20 bool ChillerHeaterPerformanceElectricEIR::setChilledWaterFlowModeType(const std::string& chilledWaterFlowModeType) {
1049
1/1
✓ Branch 3 taken 20 times.
20 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setChilledWaterFlowModeType(chilledWaterFlowModeType);
1050 }
1051
1052 1 bool ChillerHeaterPerformanceElectricEIR::setDesignChilledWaterFlowRate(double designChilledWaterFlowRate) {
1053
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setDesignChilledWaterFlowRate(designChilledWaterFlowRate);
1054 }
1055
1056 1 void ChillerHeaterPerformanceElectricEIR::resetDesignChilledWaterFlowRate() {
1057
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->resetDesignChilledWaterFlowRate();
1058 1 }
1059
1060 20 void ChillerHeaterPerformanceElectricEIR::autosizeDesignChilledWaterFlowRate() {
1061
1/1
✓ Branch 3 taken 20 times.
20 getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->autosizeDesignChilledWaterFlowRate();
1062 20 }
1063
1064 1 bool ChillerHeaterPerformanceElectricEIR::setDesignCondenserWaterFlowRate(double designCondenserWaterFlowRate) {
1065
2/2
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
1 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setDesignCondenserWaterFlowRate(designCondenserWaterFlowRate);
1066 }
1067
1068 1 void ChillerHeaterPerformanceElectricEIR::resetDesignCondenserWaterFlowRate() {
1069
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->resetDesignCondenserWaterFlowRate();
1070 1 }
1071
1072 20 void ChillerHeaterPerformanceElectricEIR::autosizeDesignCondenserWaterFlowRate() {
1073
1/1
✓ Branch 3 taken 20 times.
20 getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->autosizeDesignCondenserWaterFlowRate();
1074 20 }
1075
1076 20 bool ChillerHeaterPerformanceElectricEIR::setDesignHotWaterFlowRate(double designHotWaterFlowRate) {
1077
1/1
✓ Branch 3 taken 20 times.
20 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setDesignHotWaterFlowRate(designHotWaterFlowRate);
1078 }
1079
1080 20 bool ChillerHeaterPerformanceElectricEIR::setCompressorMotorEfficiency(double compressorMotorEfficiency) {
1081
1/1
✓ Branch 3 taken 20 times.
20 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setCompressorMotorEfficiency(compressorMotorEfficiency);
1082 }
1083
1084 20 bool ChillerHeaterPerformanceElectricEIR::setCoolingModeTemperatureCurveCondenserWaterIndependentVariable(
1085 const std::string& coolingModeTemperatureCurveCondenserWaterIndependentVariable) {
1086
1/1
✓ Branch 3 taken 20 times.
40 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setCoolingModeTemperatureCurveCondenserWaterIndependentVariable(
1087 40 coolingModeTemperatureCurveCondenserWaterIndependentVariable);
1088 }
1089
1090 20 bool ChillerHeaterPerformanceElectricEIR::setCoolingModeCoolingCapacityFunctionOfTemperatureCurve(const Curve& curve) {
1091
1/1
✓ Branch 3 taken 20 times.
20 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setCoolingModeCoolingCapacityFunctionOfTemperatureCurve(curve);
1092 }
1093
1094 20 bool ChillerHeaterPerformanceElectricEIR::setCoolingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve(const Curve& curve) {
1095
1/1
✓ Branch 3 taken 20 times.
40 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setCoolingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve(
1096 40 curve);
1097 }
1098
1099 20 bool ChillerHeaterPerformanceElectricEIR::setCoolingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve(const Curve& curve) {
1100
1/1
✓ Branch 3 taken 20 times.
40 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setCoolingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve(
1101 40 curve);
1102 }
1103
1104 20 bool ChillerHeaterPerformanceElectricEIR::setCoolingModeCoolingCapacityOptimumPartLoadRatio(double coolingModeCoolingCapacityOptimumPartLoadRatio) {
1105
1/1
✓ Branch 3 taken 20 times.
40 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setCoolingModeCoolingCapacityOptimumPartLoadRatio(
1106 40 coolingModeCoolingCapacityOptimumPartLoadRatio);
1107 }
1108
1109 20 bool ChillerHeaterPerformanceElectricEIR::setHeatingModeTemperatureCurveCondenserWaterIndependentVariable(
1110 const std::string& heatingModeTemperatureCurveCondenserWaterIndependentVariable) {
1111
1/1
✓ Branch 3 taken 20 times.
40 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setHeatingModeTemperatureCurveCondenserWaterIndependentVariable(
1112 40 heatingModeTemperatureCurveCondenserWaterIndependentVariable);
1113 }
1114
1115 20 bool ChillerHeaterPerformanceElectricEIR::setHeatingModeCoolingCapacityFunctionOfTemperatureCurve(const Curve& curve) {
1116
1/1
✓ Branch 3 taken 20 times.
20 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setHeatingModeCoolingCapacityFunctionOfTemperatureCurve(curve);
1117 }
1118
1119 20 bool ChillerHeaterPerformanceElectricEIR::setHeatingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve(const Curve& curve) {
1120
1/1
✓ Branch 3 taken 20 times.
40 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setHeatingModeElectricInputToCoolingOutputRatioFunctionOfTemperatureCurve(
1121 40 curve);
1122 }
1123
1124 20 bool ChillerHeaterPerformanceElectricEIR::setHeatingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve(const Curve& curve) {
1125
1/1
✓ Branch 3 taken 20 times.
40 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setHeatingModeElectricInputToCoolingOutputRatioFunctionOfPartLoadRatioCurve(
1126 40 curve);
1127 }
1128
1129 20 bool ChillerHeaterPerformanceElectricEIR::setHeatingModeCoolingCapacityOptimumPartLoadRatio(double heatingModeCoolingCapacityOptimumPartLoadRatio) {
1130
1/1
✓ Branch 3 taken 20 times.
40 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setHeatingModeCoolingCapacityOptimumPartLoadRatio(
1131 40 heatingModeCoolingCapacityOptimumPartLoadRatio);
1132 }
1133
1134 20 bool ChillerHeaterPerformanceElectricEIR::setSizingFactor(double sizingFactor) {
1135
1/1
✓ Branch 3 taken 20 times.
20 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->setSizingFactor(sizingFactor);
1136 }
1137
1138 // Reverse lookups
1139 7 std::vector<CentralHeatPumpSystemModule> ChillerHeaterPerformanceElectricEIR::centralHeatPumpSystemModules() const {
1140
1/1
✓ Branch 3 taken 7 times.
7 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->centralHeatPumpSystemModules();
1141 }
1142
1143 6 std::vector<CentralHeatPumpSystem> ChillerHeaterPerformanceElectricEIR::centralHeatPumpSystems() const {
1144
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->centralHeatPumpSystems();
1145 }
1146
1147 /// @cond
1148 45 ChillerHeaterPerformanceElectricEIR::ChillerHeaterPerformanceElectricEIR(std::shared_ptr<detail::ChillerHeaterPerformanceElectricEIR_Impl> impl)
1149
1/1
✓ Branch 3 taken 45 times.
45 : ParentObject(std::move(impl)) {}
1150
1151 // DEPRECATED
1152 ✗ std::vector<std::string> ChillerHeaterPerformanceElectricEIR::condenserTypeValues() {
1153 ✗ DEPRECATED_AT_MSG(3, 12, 0, "The Condenser Type field was removed from the ChillerHeaterPerformance:Electric:EIR object in EnergyPlus.");
1154 ✗ return {"AirCooled", "WaterCooled"};
1155 }
1156
1157 ✗ std::string ChillerHeaterPerformanceElectricEIR::condenserType() const {
1158 ✗ DEPRECATED_AT_MSG(3, 12, 0,
1159 "The Condenser Type field was removed from the ChillerHeaterPerformance:Electric:EIR object in EnergyPlus. "
1160 "This now always returns \"WaterCooled\".");
1161 ✗ return "WaterCooled";
1162 }
1163
1164 ✗ bool ChillerHeaterPerformanceElectricEIR::setCondenserType(const std::string& condenserType) {
1165 ✗ DEPRECATED_AT_MSG(3, 12, 0,
1166 "The Condenser Type field was removed from the ChillerHeaterPerformance:Electric:EIR object in EnergyPlus. "
1167 "This is now a no-op that only accepts \"AirCooled\" or \"WaterCooled\".");
1168 ✗ return istringEqual(condenserType, "AirCooled") || istringEqual(condenserType, "WaterCooled");
1169 }
1170 /// @endcond
1171
1172 ✗ boost::optional<double> ChillerHeaterPerformanceElectricEIR::autosizedReferenceCoolingModeEvaporatorCapacity() const {
1173 ✗ return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->autosizedReferenceCoolingModeEvaporatorCapacity();
1174 }
1175
1176 ✗ boost::optional<double> ChillerHeaterPerformanceElectricEIR::autosizedDesignChilledWaterFlowRate() const {
1177 ✗ return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->autosizedDesignChilledWaterFlowRate();
1178 }
1179
1180 ✗ boost::optional<double> ChillerHeaterPerformanceElectricEIR::autosizedDesignCondenserWaterFlowRate() const {
1181 ✗ return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->autosizedDesignCondenserWaterFlowRate();
1182 }
1183
1184 ✗ void ChillerHeaterPerformanceElectricEIR::autosize() {
1185 ✗ return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->autosize();
1186 }
1187
1188 ✗ void ChillerHeaterPerformanceElectricEIR::applySizingValues() {
1189 ✗ return getImpl<detail::ChillerHeaterPerformanceElectricEIR_Impl>()->applySizingValues();
1190 }
1191
1192 } // namespace model
1193 } // namespace openstudio
1194