GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 1 / 1 / 2
Functions: 100.0% 1 / 1 / 2
Branches: -% 0 / 1 / 1

src/model/GeneratorFuelCellPowerModule_Impl.hpp
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 #ifndef MODEL_GENERATORFUELCELLPOWERMODULE_IMPL_HPP
7 #define MODEL_GENERATORFUELCELLPOWERMODULE_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ModelObject_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class CurveQuadratic;
16 class ThermalZone;
17 class Node;
18 class GeneratorFuelCell;
19
20 namespace detail {
21
22 /** GeneratorFuelCellPowerModule_Impl is a ModelObject_Impl that is the implementation class for GeneratorFuelCellPowerModule.*/
23 class MODEL_API GeneratorFuelCellPowerModule_Impl : public ModelObject_Impl
24 {
25 public:
26 /** @name Constructors and Destructors */
27 //@{
28
29 GeneratorFuelCellPowerModule_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
30
31 GeneratorFuelCellPowerModule_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
32
33 GeneratorFuelCellPowerModule_Impl(const GeneratorFuelCellPowerModule_Impl& other, Model_Impl* model, bool keepHandle);
34
35 17 virtual ~GeneratorFuelCellPowerModule_Impl() override = default;
36
37 //@}
38 /** @name Virtual Methods */
39 //@{
40
41 virtual const std::vector<std::string>& outputVariableNames() const override;
42
43 virtual IddObjectType iddObjectType() const override;
44
45 virtual std::vector<IddObjectType> allowableChildTypes() const;
46
47 virtual std::vector<ModelObject> children() const;
48
49 //@}
50 /** @name Getters */
51 //@{
52
53 std::string efficiencyCurveMode() const;
54
55 CurveQuadratic efficiencyCurve() const;
56
57 double nominalEfficiency() const;
58
59 double nominalElectricalPower() const;
60
61 double numberofStopsatStartofSimulation() const;
62
63 double cyclingPerformanceDegradationCoefficient() const;
64
65 double numberofRunHoursatBeginningofSimulation() const;
66
67 double accumulatedRunTimeDegradationCoefficient() const;
68
69 double runTimeDegradationInitiationTimeThreshold() const;
70
71 double powerUpTransientLimit() const;
72
73 double powerDownTransientLimit() const;
74
75 double startUpTime() const;
76
77 double startUpFuel() const;
78
79 double startUpElectricityConsumption() const;
80
81 double startUpElectricityProduced() const;
82
83 double shutDownTime() const;
84
85 double shutDownFuel() const;
86
87 double shutDownElectricityConsumption() const;
88
89 double ancillaryElectricityConstantTerm() const;
90
91 double ancillaryElectricityLinearTerm() const;
92
93 std::string skinLossCalculationMode() const;
94
95 boost::optional<ThermalZone> zone() const;
96
97 double skinLossRadiativeFraction() const;
98
99 double constantSkinLossRate() const;
100
101 double skinLossUFactorTimesAreaTerm() const;
102
103 boost::optional<CurveQuadratic> skinLossQuadraticCurve() const;
104
105 double dilutionAirFlowRate() const;
106
107 double stackHeatlosstoDilutionAir() const;
108
109 boost::optional<Node> dilutionInletAirNode() const;
110
111 boost::optional<Node> dilutionOutletAirNode() const;
112
113 double minimumOperatingPoint() const;
114
115 double maximumOperatingPoint() const;
116
117 // Return optional parent generator
118 boost::optional<GeneratorFuelCell> fuelCell() const;
119
120 //@}
121 /** @name Setters */
122 //@{
123
124 bool setEfficiencyCurveMode(const std::string& efficiencyCurveMode);
125
126 void resetEfficiencyCurveMode();
127
128 bool setEfficiencyCurve(const CurveQuadratic& quadraticCurve);
129
130 bool setNominalEfficiency(double nominalEfficiency);
131
132 void resetNominalEfficiency();
133
134 bool setNominalElectricalPower(double nominalElectricalPower);
135
136 void resetNominalElectricalPower();
137
138 bool setNumberofStopsatStartofSimulation(double numberofStopsatStartofSimulation);
139
140 void resetNumberofStopsatStartofSimulation();
141
142 bool setCyclingPerformanceDegradationCoefficient(double cyclingPerformanceDegradationCoefficient);
143
144 void resetCyclingPerformanceDegradationCoefficient();
145
146 bool setNumberofRunHoursatBeginningofSimulation(double numberofRunHoursatBeginningofSimulation);
147
148 void resetNumberofRunHoursatBeginningofSimulation();
149
150 bool setAccumulatedRunTimeDegradationCoefficient(double accumulatedRunTimeDegradationCoefficient);
151
152 void resetAccumulatedRunTimeDegradationCoefficient();
153
154 bool setRunTimeDegradationInitiationTimeThreshold(double runTimeDegradationInitiationTimeThreshold);
155
156 void resetRunTimeDegradationInitiationTimeThreshold();
157
158 bool setPowerUpTransientLimit(double powerUpTransientLimit);
159
160 void resetPowerUpTransientLimit();
161
162 bool setPowerDownTransientLimit(double powerDownTransientLimit);
163
164 void resetPowerDownTransientLimit();
165
166 bool setStartUpTime(double startUpTime);
167
168 void resetStartUpTime();
169
170 bool setStartUpFuel(double startUpFuel);
171
172 void resetStartUpFuel();
173
174 bool setStartUpElectricityConsumption(double startUpElectricityConsumption);
175
176 void resetStartUpElectricityConsumption();
177
178 bool setStartUpElectricityProduced(double startUpElectricityProduced);
179
180 void resetStartUpElectricityProduced();
181
182 bool setShutDownTime(double shutDownTime);
183
184 void resetShutDownTime();
185
186 bool setShutDownFuel(double shutDownFuel);
187
188 void resetShutDownFuel();
189
190 bool setShutDownElectricityConsumption(double shutDownElectricityConsumption);
191
192 void resetShutDownElectricityConsumption();
193
194 bool setAncillaryElectricityConstantTerm(double ancillaryElectricityConstantTerm);
195
196 void resetAncillaryElectricityConstantTerm();
197
198 bool setAncillaryElectricityLinearTerm(double ancillaryElectricityLinearTerm);
199
200 void resetAncillaryElectricityLinearTerm();
201
202 bool setSkinLossCalculationMode(const std::string& skinLossCalculationMode);
203
204 void resetSkinLossCalculationMode();
205
206 bool setZone(const ThermalZone& zone);
207
208 void resetZone();
209
210 bool setSkinLossRadiativeFraction(double skinLossRadiativeFraction);
211
212 void resetSkinLossRadiativeFraction();
213
214 bool setConstantSkinLossRate(double constantSkinLossRate);
215
216 void resetConstantSkinLossRate();
217
218 bool setSkinLossUFactorTimesAreaTerm(double skinLossUFactorTimesAreaTerm);
219
220 void resetSkinLossUFactorTimesAreaTerm();
221
222 bool setSkinLossQuadraticCurve(const CurveQuadratic& quadraticCurves);
223
224 void resetSkinLossQuadraticCurve();
225
226 bool setDilutionAirFlowRate(double dilutionAirFlowRate);
227
228 void resetDilutionAirFlowRate();
229
230 bool setStackHeatlosstoDilutionAir(double stackHeatlosstoDilutionAir);
231
232 void resetStackHeatlosstoDilutionAir();
233
234 bool setDilutionInletAirNode(const Node& connection);
235
236 void resetDilutionInletAirNode();
237
238 bool setDilutionOutletAirNode(const Node& connection);
239
240 void resetDilutionOutletAirNode();
241
242 bool setMinimumOperatingPoint(double minimumOperatingPoint);
243
244 void resetMinimumOperatingPoint();
245
246 bool setMaximumOperatingPoint(double maximumOperatingPoint);
247
248 void resetMaximumOperatingPoint();
249
250 //@}
251 /** @name Other */
252 //@{
253
254 //@}
255 protected:
256 private:
257 − REGISTER_LOGGER("openstudio.model.GeneratorFuelCellPowerModule");
258
259 boost::optional<CurveQuadratic> optionalEfficiencyCurve() const;
260 };
261
262 } // namespace detail
263
264 } // namespace model
265 } // namespace openstudio
266
267 #endif // MODEL_GENERATORFUELCELLPOWERMODULE_IMPL_HPP
268