GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 83.2% 410 / 0 / 493
Functions: 82.7% 124 / 0 / 150
Branches: 55.5% 183 / 0 / 330

src/model/GeneratorFuelCellExhaustGasToWaterHeatExchanger.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 "Model.hpp"
7 #include "Model_Impl.hpp"
8
9 #include "GeneratorFuelCell.hpp"
10 #include "GeneratorFuelCell_Impl.hpp"
11 #include "GeneratorFuelCellPowerModule.hpp"
12 #include "GeneratorFuelCellPowerModule_Impl.hpp"
13 #include "GeneratorFuelCellAirSupply.hpp"
14 #include "GeneratorFuelCellAirSupply_Impl.hpp"
15 #include "GeneratorFuelCellWaterSupply.hpp"
16 #include "GeneratorFuelCellWaterSupply_Impl.hpp"
17 #include "GeneratorFuelCellAuxiliaryHeater.hpp"
18 #include "GeneratorFuelCellAuxiliaryHeater_Impl.hpp"
19 #include "GeneratorFuelCellExhaustGasToWaterHeatExchanger.hpp"
20 #include "GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl.hpp"
21 #include "GeneratorFuelCellElectricalStorage.hpp"
22 #include "GeneratorFuelCellElectricalStorage_Impl.hpp"
23 #include "GeneratorFuelCellInverter.hpp"
24 #include "GeneratorFuelCellInverter_Impl.hpp"
25 #include "GeneratorFuelCellStackCooler.hpp"
26 #include "GeneratorFuelCellStackCooler_Impl.hpp"
27 #include "GeneratorFuelSupply.hpp"
28 #include "GeneratorFuelSupply_Impl.hpp"
29
30 #include "Connection.hpp"
31 #include "Connection_Impl.hpp"
32 #include "Node.hpp"
33 #include "Node_Impl.hpp"
34
35 #include "../utilities/core/Assert.hpp"
36 #include "../utilities/data/DataEnums.hpp"
37
38 #include <utilities/idd/IddFactory.hxx>
39 #include <utilities/idd/IddEnums.hxx>
40 #include <utilities/idd/OS_Generator_FuelCell_ExhaustGasToWaterHeatExchanger_FieldEnums.hxx>
41
42 namespace openstudio {
43 namespace model {
44
45 namespace detail {
46
47 10 GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl(const IdfObject& idfObject,
48 10 Model_Impl* model, bool keepHandle)
49 10 : StraightComponent_Impl(idfObject, model, keepHandle) {
50
4/6
✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
✓ Branch 7 taken 10 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 10 times.
✗ Branch 13 not taken.
10 OS_ASSERT(idfObject.iddObject().type() == GeneratorFuelCellExhaustGasToWaterHeatExchanger::iddObjectType());
51 10 }
52
53 ✗ GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl(
54 ✗ const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle)
55 ✗ : StraightComponent_Impl(other, model, keepHandle) {
56 ✗ OS_ASSERT(other.iddObject().type() == GeneratorFuelCellExhaustGasToWaterHeatExchanger::iddObjectType());
57 ✗ }
58
59 6 GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl(
60 6 const GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl& other, Model_Impl* model, bool keepHandle)
61 6 : StraightComponent_Impl(other, model, keepHandle) {}
62
63 ✗ const std::vector<std::string>& GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::outputVariableNames() const {
64 ✗ static const std::vector<std::string> result;
65 ✗ return result;
66 }
67
68 ✗ IddObjectType GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::iddObjectType() const {
69 ✗ return GeneratorFuelCellExhaustGasToWaterHeatExchanger::iddObjectType();
70 }
71
72 // This will clone both the GeneratorFuelCellExhaustGasToWaterHeatExchanger and its linked GeneratorFuelCell
73 // and will return a reference to the GeneratorFuelCellExhaustGasToWaterHeatExchanger
74 // TODO: Note JM 2018-10-09 this is only done to allow dragging from library in OpenStudio Application
75 ✗ ModelObject GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::clone(Model model) const {
76
77 ✗ boost::optional<ModelObject> hxClone;
78
79 // We call the parent generator's Clone method which will clone both the fuelCell and its children
80 ✗ if (boost::optional<GeneratorFuelCell> fc = fuelCell()) {
81 ✗ auto fcClone = fc->clone(model).cast<GeneratorFuelCell>();
82
83 // We get the clone of the parent generator's GeneratorFuelCellExhaustGasToWaterHeatExchanger so we can return that
84 ✗ hxClone = fcClone.heatExchanger();
85 ✗ } else {
86 // We only clone this one
87 ✗ hxClone = StraightComponent_Impl::clone(model);
88 ✗ }
89
90 ✗ return hxClone.get();
91 ✗ }
92
93 ✗ std::vector<IddObjectType> GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::allowableChildTypes() const {
94 ✗ std::vector<IddObjectType> result;
95 // Also only for OS App related reasons
96 ✗ result.push_back(IddObjectType::OS_Generator_FuelCell);
97 ✗ return result;
98 ✗ }
99
100 // Returns the children object
101 3 std::vector<ModelObject> GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::children() const {
102 3 std::vector<ModelObject> result;
103 // Also only for OS App related reasons
104
2/3
✓ Branch 1 taken 3 times.
✓ Branch 3 taken 3 times.
✗ Branch 4 not taken.
6 if (boost::optional<GeneratorFuelCell> fc = fuelCell()) {
105
2/2
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
3 result.push_back(fc.get());
106 3 }
107
108 3 return result;
109 ✗ }
110
111 // Get the parent GeneratorFuelCell
112 3 boost::optional<GeneratorFuelCell> GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::fuelCell() const {
113
114 3 boost::optional<GeneratorFuelCell> fc;
115 // We use getModelObjectSources to check if more than one
116
3/3
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
3 std::vector<GeneratorFuelCell> fcs = getObject<ModelObject>().getModelObjectSources<GeneratorFuelCell>(GeneratorFuelCell::iddObjectType());
117
118
1/2
✓ Branch 1 taken 3 times.
✗ Branch 2 not taken.
3 if (!fcs.empty()) {
119
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
3 if (fcs.size() > 1u) {
120 ✗ LOG(Error, briefDescription() << " is referenced by more than one GeneratorFuelCell, returning the first");
121 }
122
1/1
✓ Branch 2 taken 3 times.
3 fc = fcs[0];
123 }
124 6 return fc;
125 3 }
126
127 5 double GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::heatRecoveryWaterMaximumFlowRate() const {
128
1/1
✓ Branch 1 taken 5 times.
5 boost::optional<double> value = getDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::HeatRecoveryWaterMaximumFlowRate, true);
129
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
5 if (!value) {
130 ✗ LOG_AND_THROW(" does not have a heatRecoveryWaterMaximumFlowRate.");
131 }
132
1/1
✓ Branch 1 taken 5 times.
10 return value.get();
133 }
134
135 9 boost::optional<Node> GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::exhaustOutletAirNode() const {
136
1/1
✓ Branch 1 taken 9 times.
18 return getObject<ModelObject>().getModelObjectTarget<Node>(
137
1/1
✓ Branch 1 taken 9 times.
18 OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::ExhaustOutletAirNodeName);
138 }
139
140 6 std::string GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::heatExchangerCalculationMethod() const {
141 boost::optional<std::string> value =
142
1/1
✓ Branch 1 taken 6 times.
6 getString(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::HeatExchangerCalculationMethod, true);
143
1/2
✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
6 if (!value) {
144 ✗ LOG_AND_THROW(" does not have a heatExchangerCalculationMethod.");
145 }
146
2/2
✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
12 return value.get();
147 6 }
148
149 6 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::method1HeatExchangerEffectiveness() const {
150 6 return getDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method1HeatExchangerEffectiveness, true);
151 }
152
153 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::method2Parameterhxs0() const {
154 5 return getDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method2Parameterhxs0, true);
155 }
156
157 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::method2Parameterhxs1() const {
158 5 return getDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method2Parameterhxs1, true);
159 }
160
161 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::method2Parameterhxs2() const {
162 5 return getDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method2Parameterhxs2, true);
163 }
164
165 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::method2Parameterhxs3() const {
166 5 return getDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method2Parameterhxs3, true);
167 }
168
169 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::method2Parameterhxs4() const {
170 5 return getDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method2Parameterhxs4, true);
171 }
172
173 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::method3h0GasCoefficient() const {
174 5 return getDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method3h0GasCoefficient, true);
175 }
176
177 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::method3NdotGasRefCoefficient() const {
178 5 return getDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method3NdotGasRefCoefficient, true);
179 }
180
181 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::method3nCoefficient() const {
182 5 return getDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method3nCoefficient, true);
183 }
184
185 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::method3GasArea() const {
186 5 return getDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method3GasArea, true);
187 }
188
189 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::method3h0WaterCoefficient() const {
190 5 return getDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method3h0WaterCoefficient, true);
191 }
192
193 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::method3NdotWaterrefCoefficient() const {
194 5 return getDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method3NdotWaterrefCoefficient, true);
195 }
196
197 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::method3mCoefficient() const {
198 5 return getDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method3mCoefficient, true);
199 }
200
201 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::method3WaterArea() const {
202 5 return getDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method3WaterArea, true);
203 }
204
205 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::method3FAdjustmentFactor() const {
206 5 return getDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method3FAdjustmentFactor, true);
207 }
208
209 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::method4hxl1Coefficient() const {
210 5 return getDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method4hxl1Coefficient, true);
211 }
212
213 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::method4hxl2Coefficient() const {
214 5 return getDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method4hxl2Coefficient, true);
215 }
216
217 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::method4CondensationThreshold() const {
218 5 return getDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method4CondensationThreshold, true);
219 }
220
221 10 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::setHeatRecoveryWaterMaximumFlowRate(double heatRecoveryWaterMaximumFlowRate) {
222 bool result =
223 10 setDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::HeatRecoveryWaterMaximumFlowRate, heatRecoveryWaterMaximumFlowRate);
224
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
10 OS_ASSERT(result);
225 10 return result;
226 }
227
228 ✗ void GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::resetHeatRecoveryWaterMaximumFlowRate() {
229 ✗ bool result = setDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::HeatRecoveryWaterMaximumFlowRate, 0);
230 ✗ OS_ASSERT(result);
231 ✗ }
232
233 2 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::setExhaustOutletAirNode(const Node& node) {
234
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 bool result = setPointer(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::ExhaustOutletAirNodeName, node.handle());
235 2 return result;
236 }
237
238 2 void GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::resetExhaustOutletAirNode() {
239
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
4 bool result = setString(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::ExhaustOutletAirNodeName, "");
240
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
2 OS_ASSERT(result);
241 2 }
242
243 15 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::setHeatExchangerCalculationMethod(const std::string& heatExchangerCalculationMethod) {
244 bool result =
245 15 setString(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::HeatExchangerCalculationMethod, heatExchangerCalculationMethod);
246
2/2
✓ Branch 1 taken 2 times.
✓ Branch 2 taken 13 times.
15 if (heatExchangerCalculationMethod == "FixedEffectiveness") {
247 2 this->setMethod1HeatExchangerEffectiveness(1.0);
248
2/2
✓ Branch 1 taken 1 time.
✓ Branch 2 taken 12 times.
13 } else if (heatExchangerCalculationMethod == "EmpiricalUAeff") {
249 1 this->setMethod2Parameterhxs0(1.0);
250 1 this->setMethod2Parameterhxs1(0.0);
251 1 this->setMethod2Parameterhxs2(0.0);
252 1 this->setMethod2Parameterhxs3(0.0);
253 1 this->setMethod2Parameterhxs4(0.0);
254
2/2
✓ Branch 1 taken 1 time.
✓ Branch 2 taken 11 times.
12 } else if (heatExchangerCalculationMethod == "FundementalUAeff") {
255 1 this->setMethod3FAdjustmentFactor(0.0);
256 1 this->setMethod3GasArea(1.0);
257 1 this->setMethod3h0GasCoefficient(1.0);
258 1 this->setMethod3h0WaterCoefficient(1.0);
259 1 this->setMethod3mCoefficient(1.0);
260 1 this->setMethod3nCoefficient(1.0);
261 1 this->setMethod3NdotGasRefCoefficient(1.0);
262 1 this->setMethod3NdotWaterrefCoefficient(1.0);
263 1 this->setMethod3WaterArea(1.0);
264
2/2
✓ Branch 1 taken 10 times.
✓ Branch 2 taken 1 time.
11 } else if (heatExchangerCalculationMethod == "Condensing") {
265 10 this->setMethod4CondensationThreshold(35.0);
266 10 this->setMethod4hxl1Coefficient(1.0);
267 10 this->setMethod4hxl2Coefficient(1.0);
268 }
269 15 return result;
270 }
271
272 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::resetHeatExchangerCalculationMethod() {
273
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 bool result = this->setHeatExchangerCalculationMethod("FixedEffectiveness");
274
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
275 1 }
276
277 2 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::setMethod1HeatExchangerEffectiveness(double method1HeatExchangerEffectiveness) {
278 bool result =
279 2 setDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method1HeatExchangerEffectiveness, method1HeatExchangerEffectiveness);
280
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
2 OS_ASSERT(result);
281 2 return result;
282 }
283
284 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::resetMethod1HeatExchangerEffectiveness() {
285
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method1HeatExchangerEffectiveness, "");
286
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
287 1 }
288
289 10 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::setMethod2Parameterhxs0(double method2Parameterhxs0) {
290 10 bool result = setDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method2Parameterhxs0, method2Parameterhxs0);
291
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
10 OS_ASSERT(result);
292 10 return result;
293 }
294
295 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::resetMethod2Parameterhxs0() {
296
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method2Parameterhxs0, "");
297
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
298 1 }
299
300 10 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::setMethod2Parameterhxs1(double method2Parameterhxs1) {
301 10 bool result = setDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method2Parameterhxs1, method2Parameterhxs1);
302
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
10 OS_ASSERT(result);
303 10 return result;
304 }
305
306 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::resetMethod2Parameterhxs1() {
307
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method2Parameterhxs1, "");
308
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
309 1 }
310
311 10 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::setMethod2Parameterhxs2(double method2Parameterhxs2) {
312 10 bool result = setDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method2Parameterhxs2, method2Parameterhxs2);
313
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
10 OS_ASSERT(result);
314 10 return result;
315 }
316
317 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::resetMethod2Parameterhxs2() {
318
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method2Parameterhxs2, "");
319
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
320 1 }
321
322 10 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::setMethod2Parameterhxs3(double method2Parameterhxs3) {
323 10 bool result = setDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method2Parameterhxs3, method2Parameterhxs3);
324
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
10 OS_ASSERT(result);
325 10 return result;
326 }
327
328 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::resetMethod2Parameterhxs3() {
329
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method2Parameterhxs3, "");
330
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
331 1 }
332
333 10 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::setMethod2Parameterhxs4(double method2Parameterhxs4) {
334 10 bool result = setDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method2Parameterhxs4, method2Parameterhxs4);
335
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
10 OS_ASSERT(result);
336 10 return result;
337 }
338
339 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::resetMethod2Parameterhxs4() {
340
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method2Parameterhxs4, "");
341
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
342 1 }
343
344 1 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::setMethod3h0GasCoefficient(double method3h0GasCoefficient) {
345 1 bool result = setDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method3h0GasCoefficient, method3h0GasCoefficient);
346
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
347 1 return result;
348 }
349
350 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::resetMethod3h0GasCoefficient() {
351
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method3h0GasCoefficient, "");
352
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
353 1 }
354
355 1 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::setMethod3NdotGasRefCoefficient(double method3NdotGasRefCoefficient) {
356 1 bool result = setDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method3NdotGasRefCoefficient, method3NdotGasRefCoefficient);
357
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
358 1 return result;
359 }
360
361 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::resetMethod3NdotGasRefCoefficient() {
362
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method3NdotGasRefCoefficient, "");
363
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
364 1 }
365
366 1 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::setMethod3nCoefficient(double method3nCoefficient) {
367 1 bool result = setDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method3nCoefficient, method3nCoefficient);
368
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
369 1 return result;
370 }
371
372 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::resetMethod3nCoefficient() {
373
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method3nCoefficient, "");
374
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
375 1 }
376
377 1 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::setMethod3GasArea(double method3GasArea) {
378 1 bool result = setDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method3GasArea, method3GasArea);
379
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
380 1 return result;
381 }
382
383 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::resetMethod3GasArea() {
384
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method3GasArea, "");
385
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
386 1 }
387
388 1 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::setMethod3h0WaterCoefficient(double method3h0WaterCoefficient) {
389 1 bool result = setDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method3h0WaterCoefficient, method3h0WaterCoefficient);
390
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
391 1 return result;
392 }
393
394 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::resetMethod3h0WaterCoefficient() {
395
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method3h0WaterCoefficient, "");
396
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
397 1 }
398
399 1 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::setMethod3NdotWaterrefCoefficient(double method3NdotWaterrefCoefficient) {
400 bool result =
401 1 setDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method3NdotWaterrefCoefficient, method3NdotWaterrefCoefficient);
402
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
403 1 return result;
404 }
405
406 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::resetMethod3NdotWaterrefCoefficient() {
407
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method3NdotWaterrefCoefficient, "");
408
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
409 1 }
410
411 1 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::setMethod3mCoefficient(double method3mCoefficient) {
412 1 bool result = setDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method3mCoefficient, method3mCoefficient);
413
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
414 1 return result;
415 }
416
417 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::resetMethod3mCoefficient() {
418
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method3mCoefficient, "");
419
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
420 1 }
421
422 1 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::setMethod3WaterArea(double method3WaterArea) {
423 1 bool result = setDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method3WaterArea, method3WaterArea);
424
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
425 1 return result;
426 }
427
428 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::resetMethod3WaterArea() {
429
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method3WaterArea, "");
430
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
431 1 }
432
433 1 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::setMethod3FAdjustmentFactor(double method3FAdjustmentFactor) {
434 1 bool result = setDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method3FAdjustmentFactor, method3FAdjustmentFactor);
435
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
436 1 return result;
437 }
438
439 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::resetMethod3FAdjustmentFactor() {
440
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method3FAdjustmentFactor, "");
441
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
442 1 }
443
444 28 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::setMethod4hxl1Coefficient(double method4hxl1Coefficient) {
445 28 bool result = setDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method4hxl1Coefficient, method4hxl1Coefficient);
446
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 28 times.
28 OS_ASSERT(result);
447 28 return result;
448 }
449
450 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::resetMethod4hxl1Coefficient() {
451
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method4hxl1Coefficient, "");
452
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
453 1 }
454
455 10 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::setMethod4hxl2Coefficient(double method4hxl2Coefficient) {
456 10 bool result = setDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method4hxl2Coefficient, method4hxl2Coefficient);
457
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
10 OS_ASSERT(result);
458 10 return result;
459 }
460
461 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::resetMethod4hxl2Coefficient() {
462
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method4hxl2Coefficient, "");
463
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
464 1 }
465
466 19 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::setMethod4CondensationThreshold(double method4CondensationThreshold) {
467 19 bool result = setDouble(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method4CondensationThreshold, method4CondensationThreshold);
468
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 19 times.
19 OS_ASSERT(result);
469 19 return result;
470 }
471
472 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::resetMethod4CondensationThreshold() {
473
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 bool result = setString(OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::Method4CondensationThreshold, "");
474
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
1 OS_ASSERT(result);
475 1 }
476
477 3 unsigned GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::inletPort() const {
478 3 return OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::HeatRecoveryWaterInletNodeName;
479 }
480
481 3 unsigned GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::outletPort() const {
482 3 return OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::HeatRecoveryWaterOutletNodeName;
483 }
484
485 ✗ bool GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::addToNode(Node& node) {
486 ✗ if (boost::optional<PlantLoop> plant = node.plantLoop()) {
487 ✗ return StraightComponent_Impl::addToNode(node);
488 ✗ }
489
490 ✗ return false;
491 }
492
493 ✗ std::vector<EMSActuatorNames> GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::emsActuatorNames() const {
494 ✗ std::vector<EMSActuatorNames> actuators{{"On-Site Generator Control", "Requested Power"}};
495 ✗ return actuators;
496 ✗ }
497
498 ✗ std::vector<std::string> GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::emsInternalVariableNames() const {
499 ✗ std::vector<std::string> types{"Generator Nominal Maximum Power", "Generator Nominal Thermal To Electric Ratio"};
500 ✗ return types;
501 ✗ }
502
503 1 ComponentType GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::componentType() const {
504
1/1
✓ Branch 1 taken 1 time.
1 return ComponentType::Heating;
505 }
506
507 ✗ std::vector<FuelType> GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::coolingFuelTypes() const {
508 ✗ return {};
509 }
510
511 ✗ std::vector<FuelType> GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::heatingFuelTypes() const {
512 ✗ return {FuelType::Electricity, FuelType::OtherFuel_1}; // TODO: is that right?
513 }
514
515 ✗ std::vector<AppGFuelType> GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl::appGHeatingFuelTypes() const {
516 ✗ return {AppGFuelType::Electric, AppGFuelType::Fuel}; // TODO: is that right?
517 }
518
519 } // namespace detail
520
521 1 GeneratorFuelCellExhaustGasToWaterHeatExchanger::GeneratorFuelCellExhaustGasToWaterHeatExchanger(const Model& model,
522 1 const Node& exhaustOutletAirNode)
523 1 : StraightComponent(GeneratorFuelCellExhaustGasToWaterHeatExchanger::iddObjectType(), model) {
524
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 1 time.
✗ Branch 5 not taken.
1 OS_ASSERT(getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>());
525
526 //note: This field contains the name of the node that connects the heat exchanger s inlet to the plant loop. This water is used for heat recovery.
527 //setHeatRecoveryWaterInletNode(waterInletNode);
528 //note: This field contains the name of the node that connects the heat exchanger s outlet to the plant loop.
529 //setHeatRecoveryWaterOutletNode(waterOutletNode);
530 //note: This field is used to determine which node will receive the exhaust air stream leaving the FC. This node will usually be outside and not be referenced elsewhere.
531 // However, if the exhaust stream is used in a heat recovery ventilator (as described in section 11 of the Annex 42 specification) then the node would be reference in the heat recovery ventilator object.
532
1/1
✓ Branch 1 taken 1 time.
1 setExhaustOutletAirNode(exhaustOutletAirNode);
533
1/1
✓ Branch 1 taken 1 time.
1 setHeatRecoveryWaterMaximumFlowRate(0.0004);
534
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
1 setHeatExchangerCalculationMethod("FixedEffectiveness");
535 1 }
536
537 9 GeneratorFuelCellExhaustGasToWaterHeatExchanger::GeneratorFuelCellExhaustGasToWaterHeatExchanger(const Model& model)
538 9 : StraightComponent(GeneratorFuelCellExhaustGasToWaterHeatExchanger::iddObjectType(), model) {
539
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 9 times.
✗ Branch 5 not taken.
9 OS_ASSERT(getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>());
540
541
1/1
✓ Branch 1 taken 9 times.
9 setHeatRecoveryWaterMaximumFlowRate(0.0004);
542
2/2
✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
9 setHeatExchangerCalculationMethod("Condensing");
543
1/1
✓ Branch 1 taken 9 times.
9 setMethod2Parameterhxs0(83.1);
544
1/1
✓ Branch 1 taken 9 times.
9 setMethod2Parameterhxs1(4798);
545
1/1
✓ Branch 1 taken 9 times.
9 setMethod2Parameterhxs2(-138e3);
546
1/1
✓ Branch 1 taken 9 times.
9 setMethod2Parameterhxs3(-353.8e3);
547
1/1
✓ Branch 1 taken 9 times.
9 setMethod2Parameterhxs4(5.15e8);
548
1/1
✓ Branch 1 taken 9 times.
9 setMethod4hxl1Coefficient(-0.000196);
549
1/1
✓ Branch 1 taken 9 times.
9 setMethod4hxl1Coefficient(0.0031);
550
1/1
✓ Branch 1 taken 9 times.
9 setMethod4CondensationThreshold(35.0);
551 9 }
552
553 7748 IddObjectType GeneratorFuelCellExhaustGasToWaterHeatExchanger::iddObjectType() {
554
1/1
✓ Branch 1 taken 7748 times.
7748 return {IddObjectType::OS_Generator_FuelCell_ExhaustGasToWaterHeatExchanger};
555 }
556
557 ✗ std::vector<std::string> GeneratorFuelCellExhaustGasToWaterHeatExchanger::heatExchangerCalculationMethodValues() {
558 ✗ return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(),
559 ✗ OS_Generator_FuelCell_ExhaustGasToWaterHeatExchangerFields::HeatExchangerCalculationMethod);
560 }
561
562 5 double GeneratorFuelCellExhaustGasToWaterHeatExchanger::heatRecoveryWaterMaximumFlowRate() const {
563
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->heatRecoveryWaterMaximumFlowRate();
564 }
565
566 9 boost::optional<Node> GeneratorFuelCellExhaustGasToWaterHeatExchanger::exhaustOutletAirNode() const {
567
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->exhaustOutletAirNode();
568 }
569
570 6 std::string GeneratorFuelCellExhaustGasToWaterHeatExchanger::heatExchangerCalculationMethod() const {
571
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->heatExchangerCalculationMethod();
572 }
573
574 6 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger::method1HeatExchangerEffectiveness() const {
575
1/1
✓ Branch 3 taken 6 times.
6 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->method1HeatExchangerEffectiveness();
576 }
577
578 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger::method2Parameterhxs0() const {
579
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->method2Parameterhxs0();
580 }
581
582 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger::method2Parameterhxs1() const {
583
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->method2Parameterhxs1();
584 }
585
586 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger::method2Parameterhxs2() const {
587
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->method2Parameterhxs2();
588 }
589
590 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger::method2Parameterhxs3() const {
591
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->method2Parameterhxs3();
592 }
593
594 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger::method2Parameterhxs4() const {
595
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->method2Parameterhxs4();
596 }
597
598 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger::method3h0GasCoefficient() const {
599
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->method3h0GasCoefficient();
600 }
601
602 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger::method3NdotGasRefCoefficient() const {
603
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->method3NdotGasRefCoefficient();
604 }
605
606 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger::method3nCoefficient() const {
607
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->method3nCoefficient();
608 }
609
610 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger::method3GasArea() const {
611
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->method3GasArea();
612 }
613
614 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger::method3h0WaterCoefficient() const {
615
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->method3h0WaterCoefficient();
616 }
617
618 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger::method3NdotWaterrefCoefficient() const {
619
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->method3NdotWaterrefCoefficient();
620 }
621
622 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger::method3mCoefficient() const {
623
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->method3mCoefficient();
624 }
625
626 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger::method3WaterArea() const {
627
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->method3WaterArea();
628 }
629
630 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger::method3FAdjustmentFactor() const {
631
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->method3FAdjustmentFactor();
632 }
633
634 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger::method4hxl1Coefficient() const {
635
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->method4hxl1Coefficient();
636 }
637
638 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger::method4hxl2Coefficient() const {
639
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->method4hxl2Coefficient();
640 }
641
642 5 boost::optional<double> GeneratorFuelCellExhaustGasToWaterHeatExchanger::method4CondensationThreshold() const {
643
1/1
✓ Branch 3 taken 5 times.
5 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->method4CondensationThreshold();
644 }
645
646 10 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger::setHeatRecoveryWaterMaximumFlowRate(double heatRecoveryWaterMaximumFlowRate) {
647
1/1
✓ Branch 3 taken 10 times.
20 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->setHeatRecoveryWaterMaximumFlowRate(
648 20 heatRecoveryWaterMaximumFlowRate);
649 }
650
651 ✗ void GeneratorFuelCellExhaustGasToWaterHeatExchanger::resetHeatRecoveryWaterMaximumFlowRate() {
652 ✗ getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->resetHeatRecoveryWaterMaximumFlowRate();
653 ✗ }
654
655 2 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger::setExhaustOutletAirNode(const Node& node) {
656
1/1
✓ Branch 3 taken 2 times.
2 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->setExhaustOutletAirNode(node);
657 }
658
659 2 void GeneratorFuelCellExhaustGasToWaterHeatExchanger::resetExhaustOutletAirNode() {
660
1/1
✓ Branch 3 taken 2 times.
2 getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->resetExhaustOutletAirNode();
661 2 }
662
663 14 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger::setHeatExchangerCalculationMethod(const std::string& heatExchangerCalculationMethod) {
664
1/1
✓ Branch 3 taken 14 times.
14 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->setHeatExchangerCalculationMethod(heatExchangerCalculationMethod);
665 }
666
667 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger::resetHeatExchangerCalculationMethod() {
668
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->resetHeatExchangerCalculationMethod();
669 1 }
670
671 ✗ bool GeneratorFuelCellExhaustGasToWaterHeatExchanger::setMethod1HeatExchangerEffectiveness(double method1HeatExchangerEffectiveness) {
672 ✗ return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->setMethod1HeatExchangerEffectiveness(
673 ✗ method1HeatExchangerEffectiveness);
674 }
675
676 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger::resetMethod1HeatExchangerEffectiveness() {
677
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->resetMethod1HeatExchangerEffectiveness();
678 1 }
679
680 9 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger::setMethod2Parameterhxs0(double method2Parameterhxs0) {
681
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->setMethod2Parameterhxs0(method2Parameterhxs0);
682 }
683
684 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger::resetMethod2Parameterhxs0() {
685
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->resetMethod2Parameterhxs0();
686 1 }
687
688 9 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger::setMethod2Parameterhxs1(double method2Parameterhxs1) {
689
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->setMethod2Parameterhxs1(method2Parameterhxs1);
690 }
691
692 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger::resetMethod2Parameterhxs1() {
693
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->resetMethod2Parameterhxs1();
694 1 }
695
696 9 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger::setMethod2Parameterhxs2(double method2Parameterhxs2) {
697
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->setMethod2Parameterhxs2(method2Parameterhxs2);
698 }
699
700 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger::resetMethod2Parameterhxs2() {
701
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->resetMethod2Parameterhxs2();
702 1 }
703
704 9 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger::setMethod2Parameterhxs3(double method2Parameterhxs3) {
705
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->setMethod2Parameterhxs3(method2Parameterhxs3);
706 }
707
708 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger::resetMethod2Parameterhxs3() {
709
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->resetMethod2Parameterhxs3();
710 1 }
711
712 9 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger::setMethod2Parameterhxs4(double method2Parameterhxs4) {
713
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->setMethod2Parameterhxs4(method2Parameterhxs4);
714 }
715
716 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger::resetMethod2Parameterhxs4() {
717
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->resetMethod2Parameterhxs4();
718 1 }
719
720 ✗ bool GeneratorFuelCellExhaustGasToWaterHeatExchanger::setMethod3h0GasCoefficient(double method3h0GasCoefficient) {
721 ✗ return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->setMethod3h0GasCoefficient(method3h0GasCoefficient);
722 }
723
724 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger::resetMethod3h0GasCoefficient() {
725
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->resetMethod3h0GasCoefficient();
726 1 }
727
728 ✗ bool GeneratorFuelCellExhaustGasToWaterHeatExchanger::setMethod3NdotGasRefCoefficient(double method3NdotGasRefCoefficient) {
729 ✗ return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->setMethod3NdotGasRefCoefficient(method3NdotGasRefCoefficient);
730 }
731
732 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger::resetMethod3NdotGasRefCoefficient() {
733
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->resetMethod3NdotGasRefCoefficient();
734 1 }
735
736 ✗ bool GeneratorFuelCellExhaustGasToWaterHeatExchanger::setMethod3nCoefficient(double method3nCoefficient) {
737 ✗ return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->setMethod3nCoefficient(method3nCoefficient);
738 }
739
740 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger::resetMethod3nCoefficient() {
741
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->resetMethod3nCoefficient();
742 1 }
743
744 ✗ bool GeneratorFuelCellExhaustGasToWaterHeatExchanger::setMethod3GasArea(double method3GasArea) {
745 ✗ return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->setMethod3GasArea(method3GasArea);
746 }
747
748 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger::resetMethod3GasArea() {
749
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->resetMethod3GasArea();
750 1 }
751
752 ✗ bool GeneratorFuelCellExhaustGasToWaterHeatExchanger::setMethod3h0WaterCoefficient(double method3h0WaterCoefficient) {
753 ✗ return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->setMethod3h0WaterCoefficient(method3h0WaterCoefficient);
754 }
755
756 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger::resetMethod3h0WaterCoefficient() {
757
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->resetMethod3h0WaterCoefficient();
758 1 }
759
760 ✗ bool GeneratorFuelCellExhaustGasToWaterHeatExchanger::setMethod3NdotWaterrefCoefficient(double method3NdotWaterrefCoefficient) {
761 ✗ return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->setMethod3NdotWaterrefCoefficient(method3NdotWaterrefCoefficient);
762 }
763
764 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger::resetMethod3NdotWaterrefCoefficient() {
765
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->resetMethod3NdotWaterrefCoefficient();
766 1 }
767
768 ✗ bool GeneratorFuelCellExhaustGasToWaterHeatExchanger::setMethod3mCoefficient(double method3mCoefficient) {
769 ✗ return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->setMethod3mCoefficient(method3mCoefficient);
770 }
771
772 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger::resetMethod3mCoefficient() {
773
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->resetMethod3mCoefficient();
774 1 }
775
776 ✗ bool GeneratorFuelCellExhaustGasToWaterHeatExchanger::setMethod3WaterArea(double method3WaterArea) {
777 ✗ return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->setMethod3WaterArea(method3WaterArea);
778 }
779
780 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger::resetMethod3WaterArea() {
781
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->resetMethod3WaterArea();
782 1 }
783
784 ✗ bool GeneratorFuelCellExhaustGasToWaterHeatExchanger::setMethod3FAdjustmentFactor(double method3FAdjustmentFactor) {
785 ✗ return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->setMethod3FAdjustmentFactor(method3FAdjustmentFactor);
786 }
787
788 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger::resetMethod3FAdjustmentFactor() {
789
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->resetMethod3FAdjustmentFactor();
790 1 }
791
792 18 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger::setMethod4hxl1Coefficient(double method4hxl1Coefficient) {
793
1/1
✓ Branch 3 taken 18 times.
18 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->setMethod4hxl1Coefficient(method4hxl1Coefficient);
794 }
795
796 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger::resetMethod4hxl1Coefficient() {
797
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->resetMethod4hxl1Coefficient();
798 1 }
799
800 ✗ bool GeneratorFuelCellExhaustGasToWaterHeatExchanger::setMethod4hxl2Coefficient(double method4hxl2Coefficient) {
801 ✗ return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->setMethod4hxl2Coefficient(method4hxl2Coefficient);
802 }
803
804 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger::resetMethod4hxl2Coefficient() {
805
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->resetMethod4hxl2Coefficient();
806 1 }
807
808 9 bool GeneratorFuelCellExhaustGasToWaterHeatExchanger::setMethod4CondensationThreshold(double method4CondensationThreshold) {
809
1/1
✓ Branch 3 taken 9 times.
9 return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->setMethod4CondensationThreshold(method4CondensationThreshold);
810 }
811
812 1 void GeneratorFuelCellExhaustGasToWaterHeatExchanger::resetMethod4CondensationThreshold() {
813
1/1
✓ Branch 3 taken 1 time.
1 getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->resetMethod4CondensationThreshold();
814 1 }
815
816 ✗ boost::optional<GeneratorFuelCell> GeneratorFuelCellExhaustGasToWaterHeatExchanger::fuelCell() const {
817 ✗ return getImpl<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl>()->fuelCell();
818 }
819
820 /// @cond
821 11 GeneratorFuelCellExhaustGasToWaterHeatExchanger::GeneratorFuelCellExhaustGasToWaterHeatExchanger(
822 11 std::shared_ptr<detail::GeneratorFuelCellExhaustGasToWaterHeatExchanger_Impl> impl)
823
1/1
✓ Branch 3 taken 11 times.
11 : StraightComponent(std::move(impl)) {}
824 /// @endcond
825
826 } // namespace model
827 } // namespace openstudio
828