GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 46.3% 220 / 0 / 475
Functions: 43.3% 61 / 0 / 141
Branches: 38.0% 158 / 0 / 416

src/model/ChillerAbsorption.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 "ChillerAbsorption.hpp"
7 #include "Model.hpp"
8 #include "Model_Impl.hpp"
9 #include "ChillerAbsorption_Impl.hpp"
10 #include "Node.hpp"
11 #include "PlantLoop.hpp"
12
13 #include "../utilities/core/Assert.hpp"
14 #include "../utilities/data/DataEnums.hpp"
15
16 #include <utilities/idd/IddFactory.hxx>
17 #include <utilities/idd/OS_Chiller_Absorption_FieldEnums.hxx>
18
19 namespace openstudio {
20 namespace model {
21
22 namespace detail {
23
24 4 ChillerAbsorption_Impl::ChillerAbsorption_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
25 4 : WaterToWaterComponent_Impl(idfObject, model, keepHandle) {
26
4/6
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 4 times.
✗ Branch 13 not taken.
4 OS_ASSERT(idfObject.iddObject().type() == ChillerAbsorption::iddObjectType());
27 4 }
28
29 ✗ ChillerAbsorption_Impl::ChillerAbsorption_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle)
30 ✗ : WaterToWaterComponent_Impl(other, model, keepHandle) {
31 ✗ OS_ASSERT(other.iddObject().type() == ChillerAbsorption::iddObjectType());
32 ✗ }
33
34 ✗ ChillerAbsorption_Impl::ChillerAbsorption_Impl(const ChillerAbsorption_Impl& other, Model_Impl* model, bool keepHandle)
35 ✗ : WaterToWaterComponent_Impl(other, model, keepHandle) {}
36
37 ✗ const std::vector<std::string>& ChillerAbsorption_Impl::outputVariableNames() const {
38 ✗ static const std::vector<std::string> result;
39 ✗ return result;
40 }
41
42 ✗ IddObjectType ChillerAbsorption_Impl::iddObjectType() const {
43 ✗ return ChillerAbsorption::iddObjectType();
44 }
45
46 ✗ boost::optional<double> ChillerAbsorption_Impl::nominalCapacity() const {
47 ✗ return getDouble(OS_Chiller_AbsorptionFields::NominalCapacity, true);
48 }
49
50 ✗ bool ChillerAbsorption_Impl::isNominalCapacityAutosized() const {
51 ✗ bool result = false;
52 ✗ boost::optional<std::string> value = getString(OS_Chiller_AbsorptionFields::NominalCapacity, true);
53 ✗ if (value) {
54 ✗ result = openstudio::istringEqual(value.get(), "autosize");
55 }
56 ✗ return result;
57 ✗ }
58
59 ✗ boost::optional<double> ChillerAbsorption_Impl::nominalPumpingPower() const {
60 ✗ return getDouble(OS_Chiller_AbsorptionFields::NominalPumpingPower, true);
61 }
62
63 ✗ bool ChillerAbsorption_Impl::isNominalPumpingPowerAutosized() const {
64 ✗ bool result = false;
65 ✗ boost::optional<std::string> value = getString(OS_Chiller_AbsorptionFields::NominalPumpingPower, true);
66 ✗ if (value) {
67 ✗ result = openstudio::istringEqual(value.get(), "autosize");
68 }
69 ✗ return result;
70 ✗ }
71
72 ✗ double ChillerAbsorption_Impl::minimumPartLoadRatio() const {
73 ✗ boost::optional<double> value = getDouble(OS_Chiller_AbsorptionFields::MinimumPartLoadRatio, true);
74 ✗ OS_ASSERT(value);
75 ✗ return value.get();
76 }
77
78 ✗ double ChillerAbsorption_Impl::maximumPartLoadRatio() const {
79 ✗ boost::optional<double> value = getDouble(OS_Chiller_AbsorptionFields::MaximumPartLoadRatio, true);
80 ✗ OS_ASSERT(value);
81 ✗ return value.get();
82 }
83
84 ✗ double ChillerAbsorption_Impl::optimumPartLoadRatio() const {
85 ✗ boost::optional<double> value = getDouble(OS_Chiller_AbsorptionFields::OptimumPartLoadRatio, true);
86 ✗ OS_ASSERT(value);
87 ✗ return value.get();
88 }
89
90 ✗ double ChillerAbsorption_Impl::designCondenserInletTemperature() const {
91 ✗ boost::optional<double> value = getDouble(OS_Chiller_AbsorptionFields::DesignCondenserInletTemperature, true);
92 ✗ OS_ASSERT(value);
93 ✗ return value.get();
94 }
95
96 ✗ boost::optional<double> ChillerAbsorption_Impl::designChilledWaterFlowRate() const {
97 ✗ return getDouble(OS_Chiller_AbsorptionFields::DesignChilledWaterFlowRate, true);
98 }
99
100 ✗ bool ChillerAbsorption_Impl::isDesignChilledWaterFlowRateAutosized() const {
101 ✗ bool result = false;
102 ✗ boost::optional<std::string> value = getString(OS_Chiller_AbsorptionFields::DesignChilledWaterFlowRate, true);
103 ✗ if (value) {
104 ✗ result = openstudio::istringEqual(value.get(), "autosize");
105 }
106 ✗ return result;
107 ✗ }
108
109 ✗ boost::optional<double> ChillerAbsorption_Impl::designCondenserWaterFlowRate() const {
110 ✗ return getDouble(OS_Chiller_AbsorptionFields::DesignCondenserWaterFlowRate, true);
111 }
112
113 ✗ bool ChillerAbsorption_Impl::isDesignCondenserWaterFlowRateAutosized() const {
114 ✗ bool result = false;
115 ✗ boost::optional<std::string> value = getString(OS_Chiller_AbsorptionFields::DesignCondenserWaterFlowRate, true);
116 ✗ if (value) {
117 ✗ result = openstudio::istringEqual(value.get(), "autosize");
118 }
119 ✗ return result;
120 ✗ }
121
122 ✗ double ChillerAbsorption_Impl::coefficient1oftheHotWaterorSteamUsePartLoadRatioCurve() const {
123 ✗ boost::optional<double> value = getDouble(OS_Chiller_AbsorptionFields::Coefficient1oftheHotWaterorSteamUsePartLoadRatioCurve, true);
124 ✗ OS_ASSERT(value);
125 ✗ return value.get();
126 }
127
128 ✗ double ChillerAbsorption_Impl::coefficient2oftheHotWaterorSteamUsePartLoadRatioCurve() const {
129 ✗ boost::optional<double> value = getDouble(OS_Chiller_AbsorptionFields::Coefficient2oftheHotWaterorSteamUsePartLoadRatioCurve, true);
130 ✗ OS_ASSERT(value);
131 ✗ return value.get();
132 }
133
134 ✗ double ChillerAbsorption_Impl::coefficient3oftheHotWaterorSteamUsePartLoadRatioCurve() const {
135 ✗ boost::optional<double> value = getDouble(OS_Chiller_AbsorptionFields::Coefficient3oftheHotWaterorSteamUsePartLoadRatioCurve, true);
136 ✗ OS_ASSERT(value);
137 ✗ return value.get();
138 }
139
140 ✗ double ChillerAbsorption_Impl::coefficient1ofthePumpElectricUsePartLoadRatioCurve() const {
141 ✗ boost::optional<double> value = getDouble(OS_Chiller_AbsorptionFields::Coefficient1ofthePumpElectricUsePartLoadRatioCurve, true);
142 ✗ OS_ASSERT(value);
143 ✗ return value.get();
144 }
145
146 ✗ double ChillerAbsorption_Impl::coefficient2ofthePumpElectricUsePartLoadRatioCurve() const {
147 ✗ boost::optional<double> value = getDouble(OS_Chiller_AbsorptionFields::Coefficient2ofthePumpElectricUsePartLoadRatioCurve, true);
148 ✗ OS_ASSERT(value);
149 ✗ return value.get();
150 }
151
152 ✗ double ChillerAbsorption_Impl::coefficient3ofthePumpElectricUsePartLoadRatioCurve() const {
153 ✗ boost::optional<double> value = getDouble(OS_Chiller_AbsorptionFields::Coefficient3ofthePumpElectricUsePartLoadRatioCurve, true);
154 ✗ OS_ASSERT(value);
155 ✗ return value.get();
156 }
157
158 ✗ double ChillerAbsorption_Impl::chilledWaterOutletTemperatureLowerLimit() const {
159 ✗ boost::optional<double> value = getDouble(OS_Chiller_AbsorptionFields::ChilledWaterOutletTemperatureLowerLimit, true);
160 ✗ OS_ASSERT(value);
161 ✗ return value.get();
162 }
163
164 ✗ std::string ChillerAbsorption_Impl::chillerFlowMode() const {
165 ✗ boost::optional<std::string> value = getString(OS_Chiller_AbsorptionFields::ChillerFlowMode, true);
166 ✗ OS_ASSERT(value);
167 ✗ return value.get();
168 ✗ }
169
170 5 std::string ChillerAbsorption_Impl::generatorHeatSourceType() const {
171
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<std::string> value = getString(OS_Chiller_AbsorptionFields::GeneratorHeatSourceType, true);
172
1/3
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
5 OS_ASSERT(value);
173
2/2
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
10 return value.get();
174 5 }
175
176 ✗ boost::optional<double> ChillerAbsorption_Impl::designGeneratorFluidFlowRate() const {
177 ✗ return getDouble(OS_Chiller_AbsorptionFields::DesignGeneratorFluidFlowRate, true);
178 }
179
180 ✗ bool ChillerAbsorption_Impl::isDesignGeneratorFluidFlowRateAutosized() const {
181 ✗ bool result = false;
182 ✗ boost::optional<std::string> value = getString(OS_Chiller_AbsorptionFields::DesignGeneratorFluidFlowRate, true);
183 ✗ if (value) {
184 ✗ result = openstudio::istringEqual(value.get(), "autosize");
185 }
186 ✗ return result;
187 ✗ }
188
189 ✗ double ChillerAbsorption_Impl::degreeofSubcoolinginSteamGenerator() const {
190 ✗ boost::optional<double> value = getDouble(OS_Chiller_AbsorptionFields::DegreeofSubcoolinginSteamGenerator, true);
191 ✗ OS_ASSERT(value);
192 ✗ return value.get();
193 }
194
195 ✗ double ChillerAbsorption_Impl::sizingFactor() const {
196 ✗ boost::optional<double> value = getDouble(OS_Chiller_AbsorptionFields::SizingFactor, true);
197 ✗ OS_ASSERT(value);
198 ✗ return value.get();
199 }
200
201 ✗ bool ChillerAbsorption_Impl::setNominalCapacity(boost::optional<double> nominalCapacity) {
202 ✗ bool result(false);
203 ✗ if (nominalCapacity) {
204 ✗ result = setDouble(OS_Chiller_AbsorptionFields::NominalCapacity, nominalCapacity.get());
205 }
206 ✗ return result;
207 }
208
209 4 void ChillerAbsorption_Impl::autosizeNominalCapacity() {
210
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
8 bool result = setString(OS_Chiller_AbsorptionFields::NominalCapacity, "autosize");
211
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
4 OS_ASSERT(result);
212 4 }
213
214 ✗ bool ChillerAbsorption_Impl::setNominalPumpingPower(boost::optional<double> nominalPumpingPower) {
215 ✗ bool result(false);
216 ✗ if (nominalPumpingPower) {
217 ✗ result = setDouble(OS_Chiller_AbsorptionFields::NominalPumpingPower, nominalPumpingPower.get());
218 }
219 ✗ return result;
220 }
221
222 4 void ChillerAbsorption_Impl::autosizeNominalPumpingPower() {
223
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
8 bool result = setString(OS_Chiller_AbsorptionFields::NominalPumpingPower, "autosize");
224
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
4 OS_ASSERT(result);
225 4 }
226
227 4 bool ChillerAbsorption_Impl::setMinimumPartLoadRatio(double minimumPartLoadRatio) {
228 4 bool result = setDouble(OS_Chiller_AbsorptionFields::MinimumPartLoadRatio, minimumPartLoadRatio);
229 4 return result;
230 }
231
232 4 bool ChillerAbsorption_Impl::setMaximumPartLoadRatio(double maximumPartLoadRatio) {
233 4 bool result = setDouble(OS_Chiller_AbsorptionFields::MaximumPartLoadRatio, maximumPartLoadRatio);
234 4 return result;
235 }
236
237 4 bool ChillerAbsorption_Impl::setOptimumPartLoadRatio(double optimumPartLoadRatio) {
238 4 bool result = setDouble(OS_Chiller_AbsorptionFields::OptimumPartLoadRatio, optimumPartLoadRatio);
239 4 return result;
240 }
241
242 4 bool ChillerAbsorption_Impl::setDesignCondenserInletTemperature(double designCondenserInletTemperature) {
243 4 bool result = setDouble(OS_Chiller_AbsorptionFields::DesignCondenserInletTemperature, designCondenserInletTemperature);
244
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
4 OS_ASSERT(result);
245 4 return result;
246 }
247
248 ✗ bool ChillerAbsorption_Impl::setDesignChilledWaterFlowRate(boost::optional<double> designChilledWaterFlowRate) {
249 ✗ bool result(false);
250 ✗ if (designChilledWaterFlowRate) {
251 ✗ result = setDouble(OS_Chiller_AbsorptionFields::DesignChilledWaterFlowRate, designChilledWaterFlowRate.get());
252 }
253 ✗ return result;
254 }
255
256 4 void ChillerAbsorption_Impl::autosizeDesignChilledWaterFlowRate() {
257
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
8 bool result = setString(OS_Chiller_AbsorptionFields::DesignChilledWaterFlowRate, "autosize");
258
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
4 OS_ASSERT(result);
259 4 }
260
261 ✗ bool ChillerAbsorption_Impl::setDesignCondenserWaterFlowRate(boost::optional<double> designCondenserWaterFlowRate) {
262 ✗ bool result(false);
263 ✗ if (designCondenserWaterFlowRate) {
264 ✗ result = setDouble(OS_Chiller_AbsorptionFields::DesignCondenserWaterFlowRate, designCondenserWaterFlowRate.get());
265 }
266 ✗ return result;
267 }
268
269 4 void ChillerAbsorption_Impl::autosizeDesignCondenserWaterFlowRate() {
270
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
8 bool result = setString(OS_Chiller_AbsorptionFields::DesignCondenserWaterFlowRate, "autosize");
271
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
4 OS_ASSERT(result);
272 4 }
273
274 bool
275 4 ChillerAbsorption_Impl::setCoefficient1oftheHotWaterorSteamUsePartLoadRatioCurve(double coefficient1oftheHotWaterorSteamUsePartLoadRatioCurve) {
276 4 bool result = setDouble(OS_Chiller_AbsorptionFields::Coefficient1oftheHotWaterorSteamUsePartLoadRatioCurve,
277 coefficient1oftheHotWaterorSteamUsePartLoadRatioCurve);
278
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
4 OS_ASSERT(result);
279 4 return result;
280 }
281
282 bool
283 4 ChillerAbsorption_Impl::setCoefficient2oftheHotWaterorSteamUsePartLoadRatioCurve(double coefficient2oftheHotWaterorSteamUsePartLoadRatioCurve) {
284 4 bool result = setDouble(OS_Chiller_AbsorptionFields::Coefficient2oftheHotWaterorSteamUsePartLoadRatioCurve,
285 coefficient2oftheHotWaterorSteamUsePartLoadRatioCurve);
286
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
4 OS_ASSERT(result);
287 4 return result;
288 }
289
290 bool
291 4 ChillerAbsorption_Impl::setCoefficient3oftheHotWaterorSteamUsePartLoadRatioCurve(double coefficient3oftheHotWaterorSteamUsePartLoadRatioCurve) {
292 4 bool result = setDouble(OS_Chiller_AbsorptionFields::Coefficient3oftheHotWaterorSteamUsePartLoadRatioCurve,
293 coefficient3oftheHotWaterorSteamUsePartLoadRatioCurve);
294
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
4 OS_ASSERT(result);
295 4 return result;
296 }
297
298 4 bool ChillerAbsorption_Impl::setCoefficient1ofthePumpElectricUsePartLoadRatioCurve(double coefficient1ofthePumpElectricUsePartLoadRatioCurve) {
299 4 bool result = setDouble(OS_Chiller_AbsorptionFields::Coefficient1ofthePumpElectricUsePartLoadRatioCurve,
300 coefficient1ofthePumpElectricUsePartLoadRatioCurve);
301
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
4 OS_ASSERT(result);
302 4 return result;
303 }
304
305 4 bool ChillerAbsorption_Impl::setCoefficient2ofthePumpElectricUsePartLoadRatioCurve(double coefficient2ofthePumpElectricUsePartLoadRatioCurve) {
306 4 bool result = setDouble(OS_Chiller_AbsorptionFields::Coefficient2ofthePumpElectricUsePartLoadRatioCurve,
307 coefficient2ofthePumpElectricUsePartLoadRatioCurve);
308
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
4 OS_ASSERT(result);
309 4 return result;
310 }
311
312 4 bool ChillerAbsorption_Impl::setCoefficient3ofthePumpElectricUsePartLoadRatioCurve(double coefficient3ofthePumpElectricUsePartLoadRatioCurve) {
313 4 bool result = setDouble(OS_Chiller_AbsorptionFields::Coefficient3ofthePumpElectricUsePartLoadRatioCurve,
314 coefficient3ofthePumpElectricUsePartLoadRatioCurve);
315
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
4 OS_ASSERT(result);
316 4 return result;
317 }
318
319 4 bool ChillerAbsorption_Impl::setChilledWaterOutletTemperatureLowerLimit(double chilledWaterOutletTemperatureLowerLimit) {
320 4 bool result = setDouble(OS_Chiller_AbsorptionFields::ChilledWaterOutletTemperatureLowerLimit, chilledWaterOutletTemperatureLowerLimit);
321
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
4 OS_ASSERT(result);
322 4 return result;
323 }
324
325 4 bool ChillerAbsorption_Impl::setChillerFlowMode(const std::string& chillerFlowMode) {
326 4 bool result = setString(OS_Chiller_AbsorptionFields::ChillerFlowMode, chillerFlowMode);
327 4 return result;
328 }
329
330 11 bool ChillerAbsorption_Impl::setGeneratorHeatSourceType(const std::string& generatorHeatSourceType) {
331 11 bool ok = false;
332
13/21
✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
✓ Branch 6 taken 8 times.
✓ Branch 7 taken 3 times.
✓ Branch 9 taken 8 times.
✓ Branch 12 taken 1 time.
✓ Branch 13 taken 7 times.
✓ Branch 14 taken 8 times.
✓ Branch 15 taken 3 times.
✓ Branch 17 taken 11 times.
✗ Branch 18 not taken.
✓ Branch 20 taken 11 times.
✗ Branch 21 not taken.
✓ Branch 22 taken 1 time.
✓ Branch 23 taken 10 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.
41 if (istringEqual("Steam", generatorHeatSourceType) && (this->generatorLoop())) {
333 // We don't support Steam loops in OS right now
334
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 generatorHeatSourceType to 'Steam' as chiller '" << this->name() << "' is connected to a generatorLoop");
335 } else {
336 10 ok = setString(OS_Chiller_AbsorptionFields::GeneratorHeatSourceType, generatorHeatSourceType);
337 }
338 11 return ok;
339 }
340
341 ✗ bool ChillerAbsorption_Impl::setDesignGeneratorFluidFlowRate(boost::optional<double> designGeneratorFluidFlowRate) {
342 ✗ bool result(false);
343 ✗ if (designGeneratorFluidFlowRate) {
344 ✗ result = setDouble(OS_Chiller_AbsorptionFields::DesignGeneratorFluidFlowRate, designGeneratorFluidFlowRate.get());
345 }
346 ✗ return result;
347 }
348
349 4 void ChillerAbsorption_Impl::autosizeDesignGeneratorFluidFlowRate() {
350
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
8 bool result = setString(OS_Chiller_AbsorptionFields::DesignGeneratorFluidFlowRate, "autosize");
351
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
4 OS_ASSERT(result);
352 4 }
353
354 4 bool ChillerAbsorption_Impl::setDegreeofSubcoolinginSteamGenerator(double degreeofSubcoolinginSteamGenerator) {
355 4 bool result = setDouble(OS_Chiller_AbsorptionFields::DegreeofSubcoolinginSteamGenerator, degreeofSubcoolinginSteamGenerator);
356
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
4 OS_ASSERT(result);
357 4 return result;
358 }
359
360 4 bool ChillerAbsorption_Impl::setSizingFactor(double sizingFactor) {
361 4 bool result = setDouble(OS_Chiller_AbsorptionFields::SizingFactor, sizingFactor);
362 4 return result;
363 }
364
365 39 unsigned ChillerAbsorption_Impl::supplyInletPort() const {
366 39 return OS_Chiller_AbsorptionFields::ChilledWaterInletNodeName;
367 }
368
369 18 unsigned ChillerAbsorption_Impl::supplyOutletPort() const {
370 18 return OS_Chiller_AbsorptionFields::ChilledWaterOutletNodeName;
371 }
372
373 25 unsigned ChillerAbsorption_Impl::demandInletPort() const {
374 25 return OS_Chiller_AbsorptionFields::CondenserInletNodeName;
375 }
376
377 14 unsigned ChillerAbsorption_Impl::demandOutletPort() const {
378 14 return OS_Chiller_AbsorptionFields::CondenserOutletNodeName;
379 }
380
381 16 unsigned ChillerAbsorption_Impl::tertiaryInletPort() const {
382 16 return OS_Chiller_AbsorptionFields::GeneratorInletNodeName;
383 }
384
385 50 unsigned ChillerAbsorption_Impl::tertiaryOutletPort() const {
386 50 return OS_Chiller_AbsorptionFields::GeneratorOutletNodeName;
387 }
388
389 7 bool ChillerAbsorption_Impl::addToNode(Node& node) {
390
391
1/1
✓ Branch 1 taken 7 times.
7 boost::optional<PlantLoop> t_plantLoop = node.plantLoop();
392
393 // If trying to add to a node that is on the demand side of a plant loop
394
1/2
✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
7 if (t_plantLoop) {
395
5/5
✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
✓ Branch 10 taken 5 times.
✓ Branch 11 taken 2 times.
14 if (t_plantLoop->demandComponent(node.handle())) {
396 // If there is already a condenser water Plant Loop
397
3/3
✓ Branch 1 taken 5 times.
✓ Branch 3 taken 3 times.
✓ Branch 4 taken 2 times.
10 if (boost::optional<PlantLoop> cndLoop = this->condenserWaterLoop()) {
398 // And it's not the same as the node's loop
399
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() != cndLoop.get()) {
400 // And if there is no generator loop (tertiary)
401
3/3
✓ Branch 1 taken 3 times.
✓ Branch 5 taken 2 times.
✓ Branch 6 taken 1 time.
3 if (!this->generatorLoop().is_initialized()) {
402 // Then try to add it to the tertiary one
403
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 (=Generator Loop) loop for " << briefDescription());
404
1/1
✓ Branch 1 taken 2 times.
2 return this->addToTertiaryNode(node);
405 }
406 }
407 5 }
408 }
409 }
410
411 // All other cases, call the base class implementation
412
1/1
✓ Branch 1 taken 5 times.
5 return WaterToWaterComponent_Impl::addToNode(node);
413 7 }
414
415 4 bool ChillerAbsorption_Impl::addToTertiaryNode(Node& node) {
416
1/1
✓ Branch 1 taken 4 times.
4 auto _model = node.model();
417
1/1
✓ Branch 1 taken 4 times.
4 auto t_plantLoop = node.plantLoop();
418
419 // Only accept adding to a node that is on a demand side of a plant loop
420 // Since tertiary here = generator loop (heating)
421
1/2
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
4 if (t_plantLoop) {
422
5/5
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 3 times.
✓ Branch 11 taken 1 time.
8 if (t_plantLoop->demandComponent(node.handle())) {
423 // Call base class method which accepts both supply and demand
424
1/1
✓ Branch 1 taken 3 times.
3 bool ok = WaterToWaterComponent_Impl::addToTertiaryNode(node);
425
1/2
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
3 if (ok) {
426
7/7
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
✓ Branch 14 taken 3 times.
✓ Branch 17 taken 3 times.
✓ Branch 20 taken 3 times.
3 LOG(Info, "Setting Generator Heat Source Type to 'HotWater' for " << briefDescription());
427
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 this->setGeneratorHeatSourceType("HotWater");
428 3 return true;
429 }
430 } else {
431
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,
432 "Tertiary Loop (Generator Loop) connections can only be placed on the Demand side (of a Heating Loop), for " << briefDescription());
433 }
434 }
435 1 return false;
436 4 }
437
438 5 bool ChillerAbsorption_Impl::removeFromTertiaryPlantLoop() {
439 // Disconnect the component
440 5 bool ok = WaterToWaterComponent_Impl::removeFromTertiaryPlantLoop();
441
2/2
✓ Branch 0 taken 2 times.
✓ Branch 1 taken 3 times.
5 if (ok) {
442 // Switch the Generator Heat Source Type to "Steam"
443
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
4 this->setGeneratorHeatSourceType("Steam");
444 }
445 5 return ok;
446 }
447
448 /** Convenience Function to return the Chilled Water Loop (chiller on supply) **/
449 11 boost::optional<PlantLoop> ChillerAbsorption_Impl::chilledWaterLoop() const {
450 11 return WaterToWaterComponent_Impl::plantLoop();
451 }
452
453 /** Convenience Function to return the Condenser Water Loop (chiller on demand side) **/
454 15 boost::optional<PlantLoop> ChillerAbsorption_Impl::condenserWaterLoop() const {
455 15 return WaterToWaterComponent_Impl::secondaryPlantLoop();
456 }
457
458 /** Convenience Function to return the Heat Recovery Loop (chiller on demand side) **/
459 22 boost::optional<PlantLoop> ChillerAbsorption_Impl::generatorLoop() const {
460 22 return WaterToWaterComponent_Impl::tertiaryPlantLoop();
461 }
462
463 ✗ boost::optional<double> ChillerAbsorption_Impl::autosizedNominalCapacity() const {
464 ✗ return getAutosizedValue("Design Size Nominal Capacity", "W");
465 }
466
467 ✗ boost::optional<double> ChillerAbsorption_Impl::autosizedNominalPumpingPower() const {
468 ✗ return getAutosizedValue("Design Size Nominal Pumping Power", "W");
469 }
470
471 ✗ boost::optional<double> ChillerAbsorption_Impl::autosizedDesignChilledWaterFlowRate() const {
472 ✗ return getAutosizedValue("Design Size Design Chilled Water Flow Rate", "m3/s");
473 }
474
475 ✗ boost::optional<double> ChillerAbsorption_Impl::autosizedDesignCondenserWaterFlowRate() const {
476 ✗ return getAutosizedValue("Design Size Design Condenser Water Flow Rate", "m3/s");
477 }
478
479 ✗ boost::optional<double> ChillerAbsorption_Impl::autosizedDesignGeneratorFluidFlowRate() const {
480 ✗ return getAutosizedValue("Design Size Design Generator Fluid Flow Rate", "m3/s");
481 }
482
483 ✗ void ChillerAbsorption_Impl::autosize() {
484 ✗ autosizeNominalCapacity();
485 ✗ autosizeNominalPumpingPower();
486 ✗ autosizeDesignChilledWaterFlowRate();
487 ✗ autosizeDesignCondenserWaterFlowRate();
488 ✗ autosizeDesignGeneratorFluidFlowRate();
489 ✗ }
490
491 ✗ void ChillerAbsorption_Impl::applySizingValues() {
492 ✗ boost::optional<double> val;
493 ✗ val = autosizedNominalCapacity();
494 ✗ if (val) {
495 ✗ setNominalCapacity(val.get());
496 }
497
498 ✗ val = autosizedNominalPumpingPower();
499 ✗ if (val) {
500 ✗ setNominalPumpingPower(val.get());
501 }
502
503 ✗ val = autosizedDesignChilledWaterFlowRate();
504 ✗ if (val) {
505 ✗ setDesignChilledWaterFlowRate(val.get());
506 }
507
508 ✗ val = autosizedDesignCondenserWaterFlowRate();
509 ✗ if (val) {
510 ✗ setDesignCondenserWaterFlowRate(val.get());
511 }
512
513 ✗ val = autosizedDesignGeneratorFluidFlowRate();
514 ✗ if (val) {
515 ✗ setDesignGeneratorFluidFlowRate(val.get());
516 }
517 ✗ }
518
519 1 ComponentType ChillerAbsorption_Impl::componentType() const {
520
1/1
✓ Branch 1 taken 1 time.
1 return ComponentType::Cooling;
521 }
522
523 ✗ std::vector<FuelType> ChillerAbsorption_Impl::coolingFuelTypes() const {
524 ✗ if (auto generatorLoop_ = generatorLoop()) {
525 ✗ return generatorLoop_->heatingFuelTypes(); // This is done on purpose. We use heat to produce chilled water here!
526 ✗ }
527 ✗ return {};
528 }
529
530 ✗ std::vector<FuelType> ChillerAbsorption_Impl::heatingFuelTypes() const {
531 ✗ return {};
532 }
533
534 ✗ std::vector<AppGFuelType> ChillerAbsorption_Impl::appGHeatingFuelTypes() const {
535 ✗ return {};
536 }
537
538 } // namespace detail
539
540 4 ChillerAbsorption::ChillerAbsorption(const Model& model) : WaterToWaterComponent(ChillerAbsorption::iddObjectType(), model) {
541
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 4 times.
✗ Branch 5 not taken.
4 OS_ASSERT(getImpl<detail::ChillerAbsorption_Impl>());
542
1/1
✓ Branch 1 taken 4 times.
4 autosizeNominalCapacity();
543
1/1
✓ Branch 1 taken 4 times.
4 autosizeNominalPumpingPower();
544
1/1
✓ Branch 1 taken 4 times.
4 setMinimumPartLoadRatio(0.15);
545
1/1
✓ Branch 1 taken 4 times.
4 setMaximumPartLoadRatio(1.0);
546
1/1
✓ Branch 1 taken 4 times.
4 setOptimumPartLoadRatio(0.65);
547
1/1
✓ Branch 1 taken 4 times.
4 setDesignCondenserInletTemperature(35.0);
548
1/1
✓ Branch 1 taken 4 times.
4 autosizeDesignChilledWaterFlowRate();
549
1/1
✓ Branch 1 taken 4 times.
4 autosizeDesignCondenserWaterFlowRate();
550
1/1
✓ Branch 1 taken 4 times.
4 setCoefficient1oftheHotWaterorSteamUsePartLoadRatioCurve(0.03303);
551
1/1
✓ Branch 1 taken 4 times.
4 setCoefficient2oftheHotWaterorSteamUsePartLoadRatioCurve(0.6852);
552
1/1
✓ Branch 1 taken 4 times.
4 setCoefficient3oftheHotWaterorSteamUsePartLoadRatioCurve(0.2818);
553
1/1
✓ Branch 1 taken 4 times.
4 setCoefficient1ofthePumpElectricUsePartLoadRatioCurve(1.0);
554
1/1
✓ Branch 1 taken 4 times.
4 setCoefficient2ofthePumpElectricUsePartLoadRatioCurve(0);
555
1/1
✓ Branch 1 taken 4 times.
4 setCoefficient3ofthePumpElectricUsePartLoadRatioCurve(0);
556
1/1
✓ Branch 1 taken 4 times.
4 setChilledWaterOutletTemperatureLowerLimit(5);
557
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
8 setChillerFlowMode("NotModulated");
558
2/2
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
4 setGeneratorHeatSourceType("Steam");
559
1/1
✓ Branch 1 taken 4 times.
4 autosizeDesignGeneratorFluidFlowRate();
560
1/1
✓ Branch 1 taken 4 times.
4 setDegreeofSubcoolinginSteamGenerator(1.0);
561
1/1
✓ Branch 1 taken 4 times.
4 setSizingFactor(1.0);
562 4 }
563
564 7736 IddObjectType ChillerAbsorption::iddObjectType() {
565
1/1
✓ Branch 1 taken 7736 times.
7736 return {IddObjectType::OS_Chiller_Absorption};
566 }
567
568 ✗ std::vector<std::string> ChillerAbsorption::chillerFlowModeValues() {
569 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Chiller_AbsorptionFields::ChillerFlowMode);
570 }
571
572 ✗ std::vector<std::string> ChillerAbsorption::generatorHeatSourceTypeValues() {
573 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Chiller_AbsorptionFields::GeneratorHeatSourceType);
574 }
575
576 ✗ boost::optional<double> ChillerAbsorption::nominalCapacity() const {
577 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->nominalCapacity();
578 }
579
580 ✗ bool ChillerAbsorption::isNominalCapacityAutosized() const {
581 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->isNominalCapacityAutosized();
582 }
583
584 ✗ boost::optional<double> ChillerAbsorption::nominalPumpingPower() const {
585 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->nominalPumpingPower();
586 }
587
588 ✗ bool ChillerAbsorption::isNominalPumpingPowerAutosized() const {
589 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->isNominalPumpingPowerAutosized();
590 }
591
592 ✗ double ChillerAbsorption::minimumPartLoadRatio() const {
593 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->minimumPartLoadRatio();
594 }
595
596 ✗ double ChillerAbsorption::maximumPartLoadRatio() const {
597 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->maximumPartLoadRatio();
598 }
599
600 ✗ double ChillerAbsorption::optimumPartLoadRatio() const {
601 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->optimumPartLoadRatio();
602 }
603
604 ✗ double ChillerAbsorption::designCondenserInletTemperature() const {
605 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->designCondenserInletTemperature();
606 }
607
608 ✗ boost::optional<double> ChillerAbsorption::designChilledWaterFlowRate() const {
609 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->designChilledWaterFlowRate();
610 }
611
612 ✗ bool ChillerAbsorption::isDesignChilledWaterFlowRateAutosized() const {
613 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->isDesignChilledWaterFlowRateAutosized();
614 }
615
616 ✗ boost::optional<double> ChillerAbsorption::designCondenserWaterFlowRate() const {
617 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->designCondenserWaterFlowRate();
618 }
619
620 ✗ bool ChillerAbsorption::isDesignCondenserWaterFlowRateAutosized() const {
621 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->isDesignCondenserWaterFlowRateAutosized();
622 }
623
624 ✗ double ChillerAbsorption::coefficient1oftheHotWaterorSteamUsePartLoadRatioCurve() const {
625 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->coefficient1oftheHotWaterorSteamUsePartLoadRatioCurve();
626 }
627
628 ✗ double ChillerAbsorption::coefficient2oftheHotWaterorSteamUsePartLoadRatioCurve() const {
629 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->coefficient2oftheHotWaterorSteamUsePartLoadRatioCurve();
630 }
631
632 ✗ double ChillerAbsorption::coefficient3oftheHotWaterorSteamUsePartLoadRatioCurve() const {
633 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->coefficient3oftheHotWaterorSteamUsePartLoadRatioCurve();
634 }
635
636 ✗ double ChillerAbsorption::coefficient1ofthePumpElectricUsePartLoadRatioCurve() const {
637 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->coefficient1ofthePumpElectricUsePartLoadRatioCurve();
638 }
639
640 ✗ double ChillerAbsorption::coefficient2ofthePumpElectricUsePartLoadRatioCurve() const {
641 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->coefficient2ofthePumpElectricUsePartLoadRatioCurve();
642 }
643
644 ✗ double ChillerAbsorption::coefficient3ofthePumpElectricUsePartLoadRatioCurve() const {
645 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->coefficient3ofthePumpElectricUsePartLoadRatioCurve();
646 }
647
648 ✗ double ChillerAbsorption::chilledWaterOutletTemperatureLowerLimit() const {
649 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->chilledWaterOutletTemperatureLowerLimit();
650 }
651
652 ✗ std::string ChillerAbsorption::chillerFlowMode() const {
653 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->chillerFlowMode();
654 }
655
656 5 std::string ChillerAbsorption::generatorHeatSourceType() const {
657
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::ChillerAbsorption_Impl>()->generatorHeatSourceType();
658 }
659
660 ✗ boost::optional<double> ChillerAbsorption::designGeneratorFluidFlowRate() const {
661 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->designGeneratorFluidFlowRate();
662 }
663
664 ✗ bool ChillerAbsorption::isDesignGeneratorFluidFlowRateAutosized() const {
665 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->isDesignGeneratorFluidFlowRateAutosized();
666 }
667
668 ✗ double ChillerAbsorption::degreeofSubcoolinginSteamGenerator() const {
669 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->degreeofSubcoolinginSteamGenerator();
670 }
671
672 ✗ double ChillerAbsorption::sizingFactor() const {
673 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->sizingFactor();
674 }
675
676 ✗ bool ChillerAbsorption::setNominalCapacity(double nominalCapacity) {
677 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->setNominalCapacity(nominalCapacity);
678 }
679
680 4 void ChillerAbsorption::autosizeNominalCapacity() {
681
1/1
✓ Branch 3 taken 4 times.
4 getImpl<detail::ChillerAbsorption_Impl>()->autosizeNominalCapacity();
682 4 }
683
684 ✗ bool ChillerAbsorption::setNominalPumpingPower(double nominalPumpingPower) {
685 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->setNominalPumpingPower(nominalPumpingPower);
686 }
687
688 4 void ChillerAbsorption::autosizeNominalPumpingPower() {
689
1/1
✓ Branch 3 taken 4 times.
4 getImpl<detail::ChillerAbsorption_Impl>()->autosizeNominalPumpingPower();
690 4 }
691
692 4 bool ChillerAbsorption::setMinimumPartLoadRatio(double minimumPartLoadRatio) {
693
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::ChillerAbsorption_Impl>()->setMinimumPartLoadRatio(minimumPartLoadRatio);
694 }
695
696 4 bool ChillerAbsorption::setMaximumPartLoadRatio(double maximumPartLoadRatio) {
697
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::ChillerAbsorption_Impl>()->setMaximumPartLoadRatio(maximumPartLoadRatio);
698 }
699
700 4 bool ChillerAbsorption::setOptimumPartLoadRatio(double optimumPartLoadRatio) {
701
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::ChillerAbsorption_Impl>()->setOptimumPartLoadRatio(optimumPartLoadRatio);
702 }
703
704 4 bool ChillerAbsorption::setDesignCondenserInletTemperature(double designCondenserInletTemperature) {
705
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::ChillerAbsorption_Impl>()->setDesignCondenserInletTemperature(designCondenserInletTemperature);
706 }
707
708 ✗ bool ChillerAbsorption::setDesignChilledWaterFlowRate(double designChilledWaterFlowRate) {
709 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->setDesignChilledWaterFlowRate(designChilledWaterFlowRate);
710 }
711
712 4 void ChillerAbsorption::autosizeDesignChilledWaterFlowRate() {
713
1/1
✓ Branch 3 taken 4 times.
4 getImpl<detail::ChillerAbsorption_Impl>()->autosizeDesignChilledWaterFlowRate();
714 4 }
715
716 ✗ bool ChillerAbsorption::setDesignCondenserWaterFlowRate(double designCondenserWaterFlowRate) {
717 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->setDesignCondenserWaterFlowRate(designCondenserWaterFlowRate);
718 }
719
720 4 void ChillerAbsorption::autosizeDesignCondenserWaterFlowRate() {
721
1/1
✓ Branch 3 taken 4 times.
4 getImpl<detail::ChillerAbsorption_Impl>()->autosizeDesignCondenserWaterFlowRate();
722 4 }
723
724 4 bool ChillerAbsorption::setCoefficient1oftheHotWaterorSteamUsePartLoadRatioCurve(double coefficient1oftheHotWaterorSteamUsePartLoadRatioCurve) {
725
1/1
✓ Branch 3 taken 4 times.
8 return getImpl<detail::ChillerAbsorption_Impl>()->setCoefficient1oftheHotWaterorSteamUsePartLoadRatioCurve(
726 8 coefficient1oftheHotWaterorSteamUsePartLoadRatioCurve);
727 }
728
729 4 bool ChillerAbsorption::setCoefficient2oftheHotWaterorSteamUsePartLoadRatioCurve(double coefficient2oftheHotWaterorSteamUsePartLoadRatioCurve) {
730
1/1
✓ Branch 3 taken 4 times.
8 return getImpl<detail::ChillerAbsorption_Impl>()->setCoefficient2oftheHotWaterorSteamUsePartLoadRatioCurve(
731 8 coefficient2oftheHotWaterorSteamUsePartLoadRatioCurve);
732 }
733
734 4 bool ChillerAbsorption::setCoefficient3oftheHotWaterorSteamUsePartLoadRatioCurve(double coefficient3oftheHotWaterorSteamUsePartLoadRatioCurve) {
735
1/1
✓ Branch 3 taken 4 times.
8 return getImpl<detail::ChillerAbsorption_Impl>()->setCoefficient3oftheHotWaterorSteamUsePartLoadRatioCurve(
736 8 coefficient3oftheHotWaterorSteamUsePartLoadRatioCurve);
737 }
738
739 4 bool ChillerAbsorption::setCoefficient1ofthePumpElectricUsePartLoadRatioCurve(double coefficient1ofthePumpElectricUsePartLoadRatioCurve) {
740
1/1
✓ Branch 3 taken 4 times.
8 return getImpl<detail::ChillerAbsorption_Impl>()->setCoefficient1ofthePumpElectricUsePartLoadRatioCurve(
741 8 coefficient1ofthePumpElectricUsePartLoadRatioCurve);
742 }
743
744 4 bool ChillerAbsorption::setCoefficient2ofthePumpElectricUsePartLoadRatioCurve(double coefficient2ofthePumpElectricUsePartLoadRatioCurve) {
745
1/1
✓ Branch 3 taken 4 times.
8 return getImpl<detail::ChillerAbsorption_Impl>()->setCoefficient2ofthePumpElectricUsePartLoadRatioCurve(
746 8 coefficient2ofthePumpElectricUsePartLoadRatioCurve);
747 }
748
749 4 bool ChillerAbsorption::setCoefficient3ofthePumpElectricUsePartLoadRatioCurve(double coefficient3ofthePumpElectricUsePartLoadRatioCurve) {
750
1/1
✓ Branch 3 taken 4 times.
8 return getImpl<detail::ChillerAbsorption_Impl>()->setCoefficient3ofthePumpElectricUsePartLoadRatioCurve(
751 8 coefficient3ofthePumpElectricUsePartLoadRatioCurve);
752 }
753
754 4 bool ChillerAbsorption::setChilledWaterOutletTemperatureLowerLimit(double chilledWaterOutletTemperatureLowerLimit) {
755
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::ChillerAbsorption_Impl>()->setChilledWaterOutletTemperatureLowerLimit(chilledWaterOutletTemperatureLowerLimit);
756 }
757
758 4 bool ChillerAbsorption::setChillerFlowMode(const std::string& chillerFlowMode) {
759
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::ChillerAbsorption_Impl>()->setChillerFlowMode(chillerFlowMode);
760 }
761
762 6 bool ChillerAbsorption::setGeneratorHeatSourceType(const std::string& generatorHeatSourceType) {
763
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::ChillerAbsorption_Impl>()->setGeneratorHeatSourceType(generatorHeatSourceType);
764 }
765
766 ✗ bool ChillerAbsorption::setDesignGeneratorFluidFlowRate(double designGeneratorFluidFlowRate) {
767 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->setDesignGeneratorFluidFlowRate(designGeneratorFluidFlowRate);
768 }
769
770 4 void ChillerAbsorption::autosizeDesignGeneratorFluidFlowRate() {
771
1/1
✓ Branch 3 taken 4 times.
4 getImpl<detail::ChillerAbsorption_Impl>()->autosizeDesignGeneratorFluidFlowRate();
772 4 }
773
774 4 bool ChillerAbsorption::setDegreeofSubcoolinginSteamGenerator(double degreeofSubcoolinginSteamGenerator) {
775
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::ChillerAbsorption_Impl>()->setDegreeofSubcoolinginSteamGenerator(degreeofSubcoolinginSteamGenerator);
776 }
777
778 4 bool ChillerAbsorption::setSizingFactor(double sizingFactor) {
779
1/1
✓ Branch 3 taken 4 times.
4 return getImpl<detail::ChillerAbsorption_Impl>()->setSizingFactor(sizingFactor);
780 }
781
782 // Convenience functions
783 11 boost::optional<PlantLoop> ChillerAbsorption::chilledWaterLoop() const {
784
1/1
✓ Branch 3 taken 11 times.
11 return getImpl<detail::ChillerAbsorption_Impl>()->chilledWaterLoop();
785 }
786
787 10 boost::optional<PlantLoop> ChillerAbsorption::condenserWaterLoop() const {
788
1/1
✓ Branch 3 taken 10 times.
10 return getImpl<detail::ChillerAbsorption_Impl>()->condenserWaterLoop();
789 }
790
791 11 boost::optional<PlantLoop> ChillerAbsorption::generatorLoop() const {
792
1/1
✓ Branch 3 taken 11 times.
11 return getImpl<detail::ChillerAbsorption_Impl>()->generatorLoop();
793 }
794
795 /// @cond
796 ✗ ChillerAbsorption::ChillerAbsorption(std::shared_ptr<detail::ChillerAbsorption_Impl> impl) : WaterToWaterComponent(std::move(impl)) {}
797 /// @endcond
798
799 ✗ boost::optional<double> ChillerAbsorption::autosizedNominalCapacity() const {
800 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->autosizedNominalCapacity();
801 }
802
803 ✗ boost::optional<double> ChillerAbsorption::autosizedNominalPumpingPower() const {
804 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->autosizedNominalPumpingPower();
805 }
806
807 ✗ boost::optional<double> ChillerAbsorption::autosizedDesignChilledWaterFlowRate() const {
808 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->autosizedDesignChilledWaterFlowRate();
809 }
810
811 ✗ boost::optional<double> ChillerAbsorption::autosizedDesignCondenserWaterFlowRate() const {
812 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->autosizedDesignCondenserWaterFlowRate();
813 }
814
815 ✗ boost::optional<double> ChillerAbsorption::autosizedDesignGeneratorFluidFlowRate() const {
816 ✗ return getImpl<detail::ChillerAbsorption_Impl>()->autosizedDesignGeneratorFluidFlowRate();
817 }
818
819 } // namespace model
820 } // namespace openstudio
821