src/model/GeneratorFuelCellPowerModule.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 | |||
| 14 | #include "CurveQuadratic.hpp" | ||
| 15 | #include "CurveQuadratic_Impl.hpp" | ||
| 16 | #include "ThermalZone.hpp" | ||
| 17 | #include "ThermalZone_Impl.hpp" | ||
| 18 | #include "Node.hpp" | ||
| 19 | #include "Node_Impl.hpp" | ||
| 20 | |||
| 21 | #include <utilities/idd/IddFactory.hxx> | ||
| 22 | #include <utilities/idd/IddEnums.hxx> | ||
| 23 | #include <utilities/idd/OS_Generator_FuelCell_PowerModule_FieldEnums.hxx> | ||
| 24 | |||
| 25 | #include "../utilities/units/Unit.hpp" | ||
| 26 | |||
| 27 | #include "../utilities/core/Assert.hpp" | ||
| 28 | |||
| 29 | namespace openstudio { | ||
| 30 | namespace model { | ||
| 31 | |||
| 32 | namespace detail { | ||
| 33 | |||
| 34 | 11 | GeneratorFuelCellPowerModule_Impl::GeneratorFuelCellPowerModule_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 35 | 11 | : ModelObject_Impl(idfObject, model, keepHandle) { | |
| 36 |
4/6✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
✓ Branch 7 taken 11 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 11 times.
✗ Branch 13 not taken.
|
11 | OS_ASSERT(idfObject.iddObject().type() == GeneratorFuelCellPowerModule::iddObjectType()); |
| 37 | 11 | } | |
| 38 | |||
| 39 | ✗ | GeneratorFuelCellPowerModule_Impl::GeneratorFuelCellPowerModule_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, | |
| 40 | ✗ | bool keepHandle) | |
| 41 | ✗ | : ModelObject_Impl(other, model, keepHandle) { | |
| 42 | ✗ | OS_ASSERT(other.iddObject().type() == GeneratorFuelCellPowerModule::iddObjectType()); | |
| 43 | ✗ | } | |
| 44 | |||
| 45 | 6 | GeneratorFuelCellPowerModule_Impl::GeneratorFuelCellPowerModule_Impl(const GeneratorFuelCellPowerModule_Impl& other, Model_Impl* model, | |
| 46 | 6 | bool keepHandle) | |
| 47 | 6 | : ModelObject_Impl(other, model, keepHandle) {} | |
| 48 | |||
| 49 | ✗ | const std::vector<std::string>& GeneratorFuelCellPowerModule_Impl::outputVariableNames() const { | |
| 50 | ✗ | static const std::vector<std::string> result; | |
| 51 | ✗ | return result; | |
| 52 | } | ||
| 53 | |||
| 54 | ✗ | IddObjectType GeneratorFuelCellPowerModule_Impl::iddObjectType() const { | |
| 55 | ✗ | return GeneratorFuelCellPowerModule::iddObjectType(); | |
| 56 | } | ||
| 57 | |||
| 58 | ✗ | std::vector<IddObjectType> GeneratorFuelCellPowerModule_Impl::allowableChildTypes() const { | |
| 59 | ✗ | std::vector<IddObjectType> result; | |
| 60 | ✗ | result.push_back(IddObjectType::OS_Curve_Quadratic); | |
| 61 | ✗ | return result; | |
| 62 | ✗ | } | |
| 63 | |||
| 64 | // Returns the children object | ||
| 65 | ✗ | std::vector<ModelObject> GeneratorFuelCellPowerModule_Impl::children() const { | |
| 66 | ✗ | std::vector<ModelObject> result; | |
| 67 | ✗ | boost::optional<CurveQuadratic> curveQ; | |
| 68 | |||
| 69 | ✗ | if ((curveQ = efficiencyCurve())) { | |
| 70 | ✗ | result.push_back(curveQ.get()); | |
| 71 | } | ||
| 72 | ✗ | if ((curveQ = skinLossQuadraticCurve())) { | |
| 73 | ✗ | result.push_back(curveQ.get()); | |
| 74 | } | ||
| 75 | |||
| 76 | ✗ | return result; | |
| 77 | ✗ | } | |
| 78 | |||
| 79 | // Get the parent GeneratorFuelCell | ||
| 80 | ✗ | boost::optional<GeneratorFuelCell> GeneratorFuelCellPowerModule_Impl::fuelCell() const { | |
| 81 | |||
| 82 | ✗ | boost::optional<GeneratorFuelCell> fc; | |
| 83 | // We use getModelObjectSources to check if more than one | ||
| 84 | ✗ | std::vector<GeneratorFuelCell> fcs = getObject<ModelObject>().getModelObjectSources<GeneratorFuelCell>(GeneratorFuelCell::iddObjectType()); | |
| 85 | |||
| 86 | ✗ | if (!fcs.empty()) { | |
| 87 | ✗ | if (fcs.size() > 1u) { | |
| 88 | ✗ | LOG(Error, briefDescription() << " is referenced by more than one GeneratorFuelCell, returning the first"); | |
| 89 | } | ||
| 90 | ✗ | fc = fcs[0]; | |
| 91 | } | ||
| 92 | ✗ | return fc; | |
| 93 | ✗ | } | |
| 94 | |||
| 95 | 8 | std::string GeneratorFuelCellPowerModule_Impl::efficiencyCurveMode() const { | |
| 96 |
1/1✓ Branch 1 taken 8 times.
|
8 | boost::optional<std::string> value = getString(OS_Generator_FuelCell_PowerModuleFields::EfficiencyCurveMode, true); |
| 97 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 8 times.
|
8 | if (!value) { |
| 98 | ✗ | LOG_AND_THROW(" does not have an Efficiency Curve Mode defined."); | |
| 99 | } | ||
| 100 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
16 | return value.get(); |
| 101 | 8 | } | |
| 102 | |||
| 103 | 11 | CurveQuadratic GeneratorFuelCellPowerModule_Impl::efficiencyCurve() const { | |
| 104 |
1/1✓ Branch 1 taken 11 times.
|
11 | boost::optional<CurveQuadratic> value = optionalEfficiencyCurve(); |
| 105 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 11 times.
|
11 | if (!value) { |
| 106 | ✗ | LOG_AND_THROW(" does not have an Efficiency Curve attached."); | |
| 107 | } | ||
| 108 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
22 | return value.get(); |
| 109 | 11 | } | |
| 110 | |||
| 111 | 4 | double GeneratorFuelCellPowerModule_Impl::nominalEfficiency() const { | |
| 112 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_PowerModuleFields::NominalEfficiency, true); |
| 113 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 114 | ✗ | LOG_AND_THROW(" does not have an Nominal Efficiency."); | |
| 115 | } | ||
| 116 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 117 | } | ||
| 118 | |||
| 119 | 7 | double GeneratorFuelCellPowerModule_Impl::nominalElectricalPower() const { | |
| 120 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_PowerModuleFields::NominalElectricalPower, true); |
| 121 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
|
7 | if (!value) { |
| 122 | ✗ | LOG_AND_THROW(" does not have an Nominal Electrical Power."); | |
| 123 | } | ||
| 124 |
1/1✓ Branch 1 taken 7 times.
|
14 | return value.get(); |
| 125 | } | ||
| 126 | |||
| 127 | 4 | double GeneratorFuelCellPowerModule_Impl::numberofStopsatStartofSimulation() const { | |
| 128 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_PowerModuleFields::NumberofStopsatStartofSimulation, true); |
| 129 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 130 | ✗ | LOG_AND_THROW(" does not have numberofStopsatStartofSimulation."); | |
| 131 | } | ||
| 132 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 133 | } | ||
| 134 | |||
| 135 | 4 | double GeneratorFuelCellPowerModule_Impl::cyclingPerformanceDegradationCoefficient() const { | |
| 136 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_PowerModuleFields::CyclingPerformanceDegradationCoefficient, true); |
| 137 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 138 | ✗ | LOG_AND_THROW(" does not have cyclingPerformanceDegradationCoefficient."); | |
| 139 | } | ||
| 140 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 141 | } | ||
| 142 | |||
| 143 | 4 | double GeneratorFuelCellPowerModule_Impl::numberofRunHoursatBeginningofSimulation() const { | |
| 144 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_PowerModuleFields::NumberofRunHoursatBeginningofSimulation, true); |
| 145 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 146 | ✗ | LOG_AND_THROW(" does not have numberofRunHoursatBeginningofSimulation."); | |
| 147 | } | ||
| 148 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 149 | } | ||
| 150 | |||
| 151 | 4 | double GeneratorFuelCellPowerModule_Impl::accumulatedRunTimeDegradationCoefficient() const { | |
| 152 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_PowerModuleFields::AccumulatedRunTimeDegradationCoefficient, true); |
| 153 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 154 | ✗ | LOG_AND_THROW(" does not have accumulatedRunTimeDegradationCoefficient."); | |
| 155 | } | ||
| 156 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 157 | } | ||
| 158 | |||
| 159 | 4 | double GeneratorFuelCellPowerModule_Impl::runTimeDegradationInitiationTimeThreshold() const { | |
| 160 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_PowerModuleFields::RunTimeDegradationInitiationTimeThreshold, true); |
| 161 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 162 | ✗ | LOG_AND_THROW(" does not have runTimeDegradationInitiationTimeThreshold."); | |
| 163 | } | ||
| 164 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 165 | } | ||
| 166 | |||
| 167 | 4 | double GeneratorFuelCellPowerModule_Impl::powerUpTransientLimit() const { | |
| 168 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_PowerModuleFields::PowerUpTransientLimit, true); |
| 169 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 170 | ✗ | LOG_AND_THROW(" does not have powerUpTransientLimit."); | |
| 171 | } | ||
| 172 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 173 | } | ||
| 174 | |||
| 175 | 4 | double GeneratorFuelCellPowerModule_Impl::powerDownTransientLimit() const { | |
| 176 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_PowerModuleFields::PowerDownTransientLimit, true); |
| 177 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 178 | ✗ | LOG_AND_THROW(" does not have powerDownTransientLimit."); | |
| 179 | } | ||
| 180 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 181 | } | ||
| 182 | |||
| 183 | 4 | double GeneratorFuelCellPowerModule_Impl::startUpTime() const { | |
| 184 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_PowerModuleFields::StartUpTime, true); |
| 185 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 186 | ✗ | LOG_AND_THROW(" does not have startUpTime."); | |
| 187 | } | ||
| 188 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 189 | } | ||
| 190 | |||
| 191 | 4 | double GeneratorFuelCellPowerModule_Impl::startUpFuel() const { | |
| 192 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_PowerModuleFields::StartUpFuel, true); |
| 193 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 194 | ✗ | LOG_AND_THROW(" does not have startUpFuel."); | |
| 195 | } | ||
| 196 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 197 | } | ||
| 198 | |||
| 199 | 4 | double GeneratorFuelCellPowerModule_Impl::startUpElectricityConsumption() const { | |
| 200 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_PowerModuleFields::StartUpElectricityConsumption, true); |
| 201 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 202 | ✗ | LOG_AND_THROW(" does not have startUpElectricityConsumption."); | |
| 203 | } | ||
| 204 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 205 | } | ||
| 206 | |||
| 207 | 4 | double GeneratorFuelCellPowerModule_Impl::startUpElectricityProduced() const { | |
| 208 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_PowerModuleFields::StartUpElectricityProduced, true); |
| 209 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 210 | ✗ | LOG_AND_THROW(" does not have startUpElectricityProduced."); | |
| 211 | } | ||
| 212 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 213 | } | ||
| 214 | |||
| 215 | 4 | double GeneratorFuelCellPowerModule_Impl::shutDownTime() const { | |
| 216 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_PowerModuleFields::ShutDownTime, true); |
| 217 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 218 | ✗ | LOG_AND_THROW(" does not have shutDownTime."); | |
| 219 | } | ||
| 220 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 221 | } | ||
| 222 | |||
| 223 | 4 | double GeneratorFuelCellPowerModule_Impl::shutDownFuel() const { | |
| 224 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_PowerModuleFields::ShutDownFuel, true); |
| 225 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 226 | ✗ | LOG_AND_THROW(" does not have shutDownFuel."); | |
| 227 | } | ||
| 228 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 229 | } | ||
| 230 | |||
| 231 | 4 | double GeneratorFuelCellPowerModule_Impl::shutDownElectricityConsumption() const { | |
| 232 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_PowerModuleFields::ShutDownElectricityConsumption, true); |
| 233 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 234 | ✗ | LOG_AND_THROW(" does not have shutDownElectricityConsumption."); | |
| 235 | } | ||
| 236 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 237 | } | ||
| 238 | |||
| 239 | 4 | double GeneratorFuelCellPowerModule_Impl::ancillaryElectricityConstantTerm() const { | |
| 240 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_PowerModuleFields::AncillaryElectricityConstantTerm, true); |
| 241 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 242 | ✗ | LOG_AND_THROW(" does not have ancillaryElectricityConstantTerm."); | |
| 243 | } | ||
| 244 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 245 | } | ||
| 246 | |||
| 247 | 4 | double GeneratorFuelCellPowerModule_Impl::ancillaryElectricityLinearTerm() const { | |
| 248 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_PowerModuleFields::AncillaryElectricityLinearTerm, true); |
| 249 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 250 | ✗ | LOG_AND_THROW(" does not have ancillaryElectricityLinearTerm."); | |
| 251 | } | ||
| 252 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 253 | } | ||
| 254 | |||
| 255 | 4 | std::string GeneratorFuelCellPowerModule_Impl::skinLossCalculationMode() const { | |
| 256 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<std::string> value = getString(OS_Generator_FuelCell_PowerModuleFields::SkinLossCalculationMode, true); |
| 257 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 258 | ✗ | LOG_AND_THROW(" does not have skinLossCalculationMode."); | |
| 259 | } | ||
| 260 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | return value.get(); |
| 261 | 4 | } | |
| 262 | |||
| 263 | 6 | boost::optional<ThermalZone> GeneratorFuelCellPowerModule_Impl::zone() const { | |
| 264 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | return getObject<ModelObject>().getModelObjectTarget<ThermalZone>(OS_Generator_FuelCell_PowerModuleFields::ZoneName); |
| 265 | } | ||
| 266 | |||
| 267 | 4 | double GeneratorFuelCellPowerModule_Impl::skinLossRadiativeFraction() const { | |
| 268 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_PowerModuleFields::SkinLossRadiativeFraction, true); |
| 269 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 270 | ✗ | LOG_AND_THROW(" does not have skinLossRadiativeFraction."); | |
| 271 | } | ||
| 272 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 273 | } | ||
| 274 | |||
| 275 | 4 | double GeneratorFuelCellPowerModule_Impl::constantSkinLossRate() const { | |
| 276 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_PowerModuleFields::ConstantSkinLossRate, true); |
| 277 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 278 | ✗ | LOG_AND_THROW(" does not have constantSkinLossRate."); | |
| 279 | } | ||
| 280 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 281 | } | ||
| 282 | |||
| 283 | 4 | double GeneratorFuelCellPowerModule_Impl::skinLossUFactorTimesAreaTerm() const { | |
| 284 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_PowerModuleFields::SkinLossUFactorTimesAreaTerm, true); |
| 285 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 286 | ✗ | LOG_AND_THROW(" does not have skinLossUFactorTimesAreaTerm."); | |
| 287 | } | ||
| 288 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 289 | } | ||
| 290 | |||
| 291 | 10 | boost::optional<CurveQuadratic> GeneratorFuelCellPowerModule_Impl::skinLossQuadraticCurve() const { | |
| 292 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
10 | return getObject<ModelObject>().getModelObjectTarget<CurveQuadratic>(OS_Generator_FuelCell_PowerModuleFields::SkinLossQuadraticCurveName); |
| 293 | } | ||
| 294 | |||
| 295 | 4 | double GeneratorFuelCellPowerModule_Impl::dilutionAirFlowRate() const { | |
| 296 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_PowerModuleFields::DilutionAirFlowRate, true); |
| 297 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 298 | ✗ | LOG_AND_THROW(" does not have dilutionAirFlowRate."); | |
| 299 | } | ||
| 300 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 301 | } | ||
| 302 | |||
| 303 | 4 | double GeneratorFuelCellPowerModule_Impl::stackHeatlosstoDilutionAir() const { | |
| 304 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_PowerModuleFields::StackHeatlosstoDilutionAir, true); |
| 305 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 306 | ✗ | LOG_AND_THROW(" does not have stackHeatlosstoDilutionAir."); | |
| 307 | } | ||
| 308 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 309 | } | ||
| 310 | |||
| 311 | 7 | boost::optional<Node> GeneratorFuelCellPowerModule_Impl::dilutionInletAirNode() const { | |
| 312 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | return getObject<ModelObject>().getModelObjectTarget<Node>(OS_Generator_FuelCell_PowerModuleFields::DilutionInletAirNodeName); |
| 313 | } | ||
| 314 | |||
| 315 | 7 | boost::optional<Node> GeneratorFuelCellPowerModule_Impl::dilutionOutletAirNode() const { | |
| 316 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | return getObject<ModelObject>().getModelObjectTarget<Node>(OS_Generator_FuelCell_PowerModuleFields::DilutionOutletAirNodeName); |
| 317 | } | ||
| 318 | |||
| 319 | 4 | double GeneratorFuelCellPowerModule_Impl::minimumOperatingPoint() const { | |
| 320 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_PowerModuleFields::MinimumOperatingPoint, true); |
| 321 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 322 | ✗ | LOG_AND_THROW(" does not have minimumOperatingPoint."); | |
| 323 | } | ||
| 324 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 325 | } | ||
| 326 | |||
| 327 | 4 | double GeneratorFuelCellPowerModule_Impl::maximumOperatingPoint() const { | |
| 328 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_PowerModuleFields::MaximumOperatingPoint, true); |
| 329 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 330 | ✗ | LOG_AND_THROW(" does not have maximumOperatingPoint."); | |
| 331 | } | ||
| 332 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 333 | } | ||
| 334 | |||
| 335 | 13 | bool GeneratorFuelCellPowerModule_Impl::setEfficiencyCurveMode(const std::string& efficiencyCurveMode) { | |
| 336 | 13 | bool result = setString(OS_Generator_FuelCell_PowerModuleFields::EfficiencyCurveMode, efficiencyCurveMode); | |
| 337 | 13 | return result; | |
| 338 | } | ||
| 339 | |||
| 340 | 1 | void GeneratorFuelCellPowerModule_Impl::resetEfficiencyCurveMode() { | |
| 341 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Generator_FuelCell_PowerModuleFields::EfficiencyCurveMode, "Annex42"); |
| 342 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 343 | 1 | } | |
| 344 | |||
| 345 | 11 | bool GeneratorFuelCellPowerModule_Impl::setEfficiencyCurve(const CurveQuadratic& quadraticCurve) { | |
| 346 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | bool result = setPointer(OS_Generator_FuelCell_PowerModuleFields::EfficiencyCurveName, quadraticCurve.handle()); |
| 347 | 11 | return result; | |
| 348 | } | ||
| 349 | |||
| 350 | 11 | bool GeneratorFuelCellPowerModule_Impl::setNominalEfficiency(double nominalEfficiency) { | |
| 351 | 11 | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::NominalEfficiency, nominalEfficiency); | |
| 352 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
|
11 | OS_ASSERT(result); |
| 353 | 11 | return result; | |
| 354 | } | ||
| 355 | |||
| 356 | ✗ | void GeneratorFuelCellPowerModule_Impl::resetNominalEfficiency() { | |
| 357 | ✗ | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::NominalEfficiency, 1); | |
| 358 | ✗ | OS_ASSERT(result); | |
| 359 | ✗ | } | |
| 360 | |||
| 361 | 11 | bool GeneratorFuelCellPowerModule_Impl::setNominalElectricalPower(double nominalElectricalPower) { | |
| 362 | 11 | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::NominalElectricalPower, nominalElectricalPower); | |
| 363 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
|
11 | OS_ASSERT(result); |
| 364 | 11 | return result; | |
| 365 | } | ||
| 366 | |||
| 367 | ✗ | void GeneratorFuelCellPowerModule_Impl::resetNominalElectricalPower() { | |
| 368 | ✗ | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::NominalElectricalPower, 3400); | |
| 369 | ✗ | OS_ASSERT(result); | |
| 370 | ✗ | } | |
| 371 | |||
| 372 | 11 | bool GeneratorFuelCellPowerModule_Impl::setNumberofStopsatStartofSimulation(double numberofStopsatStartofSimulation) { | |
| 373 | 11 | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::NumberofStopsatStartofSimulation, numberofStopsatStartofSimulation); | |
| 374 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
|
11 | OS_ASSERT(result); |
| 375 | 11 | return result; | |
| 376 | } | ||
| 377 | |||
| 378 | ✗ | void GeneratorFuelCellPowerModule_Impl::resetNumberofStopsatStartofSimulation() { | |
| 379 | ✗ | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::NumberofStopsatStartofSimulation, 0); | |
| 380 | ✗ | OS_ASSERT(result); | |
| 381 | ✗ | } | |
| 382 | |||
| 383 | 11 | bool GeneratorFuelCellPowerModule_Impl::setCyclingPerformanceDegradationCoefficient(double cyclingPerformanceDegradationCoefficient) { | |
| 384 | bool result = | ||
| 385 | 11 | setDouble(OS_Generator_FuelCell_PowerModuleFields::CyclingPerformanceDegradationCoefficient, cyclingPerformanceDegradationCoefficient); | |
| 386 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
|
11 | OS_ASSERT(result); |
| 387 | 11 | return result; | |
| 388 | } | ||
| 389 | |||
| 390 | ✗ | void GeneratorFuelCellPowerModule_Impl::resetCyclingPerformanceDegradationCoefficient() { | |
| 391 | ✗ | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::CyclingPerformanceDegradationCoefficient, 0); | |
| 392 | ✗ | OS_ASSERT(result); | |
| 393 | ✗ | } | |
| 394 | |||
| 395 | 11 | bool GeneratorFuelCellPowerModule_Impl::setNumberofRunHoursatBeginningofSimulation(double numberofRunHoursatBeginningofSimulation) { | |
| 396 | bool result = | ||
| 397 | 11 | setDouble(OS_Generator_FuelCell_PowerModuleFields::NumberofRunHoursatBeginningofSimulation, numberofRunHoursatBeginningofSimulation); | |
| 398 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
|
11 | OS_ASSERT(result); |
| 399 | 11 | return result; | |
| 400 | } | ||
| 401 | |||
| 402 | ✗ | void GeneratorFuelCellPowerModule_Impl::resetNumberofRunHoursatBeginningofSimulation() { | |
| 403 | ✗ | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::NumberofRunHoursatBeginningofSimulation, 0); | |
| 404 | ✗ | OS_ASSERT(result); | |
| 405 | ✗ | } | |
| 406 | |||
| 407 | 11 | bool GeneratorFuelCellPowerModule_Impl::setAccumulatedRunTimeDegradationCoefficient(double accumulatedRunTimeDegradationCoefficient) { | |
| 408 | bool result = | ||
| 409 | 11 | setDouble(OS_Generator_FuelCell_PowerModuleFields::AccumulatedRunTimeDegradationCoefficient, accumulatedRunTimeDegradationCoefficient); | |
| 410 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
|
11 | OS_ASSERT(result); |
| 411 | 11 | return result; | |
| 412 | } | ||
| 413 | |||
| 414 | ✗ | void GeneratorFuelCellPowerModule_Impl::resetAccumulatedRunTimeDegradationCoefficient() { | |
| 415 | ✗ | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::AccumulatedRunTimeDegradationCoefficient, 0); | |
| 416 | ✗ | OS_ASSERT(result); | |
| 417 | ✗ | } | |
| 418 | |||
| 419 | 11 | bool GeneratorFuelCellPowerModule_Impl::setRunTimeDegradationInitiationTimeThreshold(double runTimeDegradationInitiationTimeThreshold) { | |
| 420 | bool result = | ||
| 421 | 11 | setDouble(OS_Generator_FuelCell_PowerModuleFields::RunTimeDegradationInitiationTimeThreshold, runTimeDegradationInitiationTimeThreshold); | |
| 422 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
|
11 | OS_ASSERT(result); |
| 423 | 11 | return result; | |
| 424 | } | ||
| 425 | |||
| 426 | ✗ | void GeneratorFuelCellPowerModule_Impl::resetRunTimeDegradationInitiationTimeThreshold() { | |
| 427 | ✗ | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::RunTimeDegradationInitiationTimeThreshold, 10000); | |
| 428 | ✗ | OS_ASSERT(result); | |
| 429 | ✗ | } | |
| 430 | |||
| 431 | 11 | bool GeneratorFuelCellPowerModule_Impl::setPowerUpTransientLimit(double powerUpTransientLimit) { | |
| 432 | 11 | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::PowerUpTransientLimit, powerUpTransientLimit); | |
| 433 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
|
11 | OS_ASSERT(result); |
| 434 | 11 | return result; | |
| 435 | } | ||
| 436 | |||
| 437 | ✗ | void GeneratorFuelCellPowerModule_Impl::resetPowerUpTransientLimit() { | |
| 438 | ✗ | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::PowerUpTransientLimit, 1.4); | |
| 439 | ✗ | OS_ASSERT(result); | |
| 440 | ✗ | } | |
| 441 | |||
| 442 | 11 | bool GeneratorFuelCellPowerModule_Impl::setPowerDownTransientLimit(double powerDownTransientLimit) { | |
| 443 | 11 | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::PowerDownTransientLimit, powerDownTransientLimit); | |
| 444 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
|
11 | OS_ASSERT(result); |
| 445 | 11 | return result; | |
| 446 | } | ||
| 447 | |||
| 448 | ✗ | void GeneratorFuelCellPowerModule_Impl::resetPowerDownTransientLimit() { | |
| 449 | ✗ | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::PowerDownTransientLimit, 0.2); | |
| 450 | ✗ | OS_ASSERT(result); | |
| 451 | ✗ | } | |
| 452 | |||
| 453 | 11 | bool GeneratorFuelCellPowerModule_Impl::setStartUpTime(double startUpTime) { | |
| 454 | 11 | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::StartUpTime, startUpTime); | |
| 455 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
|
11 | OS_ASSERT(result); |
| 456 | 11 | return result; | |
| 457 | } | ||
| 458 | |||
| 459 | ✗ | void GeneratorFuelCellPowerModule_Impl::resetStartUpTime() { | |
| 460 | ✗ | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::StartUpTime, 0); | |
| 461 | ✗ | OS_ASSERT(result); | |
| 462 | ✗ | } | |
| 463 | |||
| 464 | 11 | bool GeneratorFuelCellPowerModule_Impl::setStartUpFuel(double startUpFuel) { | |
| 465 | 11 | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::StartUpFuel, startUpFuel); | |
| 466 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
|
11 | OS_ASSERT(result); |
| 467 | 11 | return result; | |
| 468 | } | ||
| 469 | |||
| 470 | ✗ | void GeneratorFuelCellPowerModule_Impl::resetStartUpFuel() { | |
| 471 | ✗ | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::StartUpFuel, 0); | |
| 472 | ✗ | OS_ASSERT(result); | |
| 473 | ✗ | } | |
| 474 | |||
| 475 | 11 | bool GeneratorFuelCellPowerModule_Impl::setStartUpElectricityConsumption(double startUpElectricityConsumption) { | |
| 476 | 11 | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::StartUpElectricityConsumption, startUpElectricityConsumption); | |
| 477 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
|
11 | OS_ASSERT(result); |
| 478 | 11 | return result; | |
| 479 | } | ||
| 480 | |||
| 481 | ✗ | void GeneratorFuelCellPowerModule_Impl::resetStartUpElectricityConsumption() { | |
| 482 | ✗ | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::StartUpElectricityConsumption, 0); | |
| 483 | ✗ | OS_ASSERT(result); | |
| 484 | ✗ | } | |
| 485 | |||
| 486 | 11 | bool GeneratorFuelCellPowerModule_Impl::setStartUpElectricityProduced(double startUpElectricityProduced) { | |
| 487 | 11 | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::StartUpElectricityProduced, startUpElectricityProduced); | |
| 488 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
|
11 | OS_ASSERT(result); |
| 489 | 11 | return result; | |
| 490 | } | ||
| 491 | |||
| 492 | ✗ | void GeneratorFuelCellPowerModule_Impl::resetStartUpElectricityProduced() { | |
| 493 | ✗ | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::StartUpElectricityProduced, 0); | |
| 494 | ✗ | OS_ASSERT(result); | |
| 495 | ✗ | } | |
| 496 | |||
| 497 | 11 | bool GeneratorFuelCellPowerModule_Impl::setShutDownTime(double shutDownTime) { | |
| 498 | 11 | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::ShutDownTime, shutDownTime); | |
| 499 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
|
11 | OS_ASSERT(result); |
| 500 | 11 | return result; | |
| 501 | } | ||
| 502 | |||
| 503 | ✗ | void GeneratorFuelCellPowerModule_Impl::resetShutDownTime() { | |
| 504 | ✗ | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::ShutDownTime, 0); | |
| 505 | ✗ | OS_ASSERT(result); | |
| 506 | ✗ | } | |
| 507 | |||
| 508 | 11 | bool GeneratorFuelCellPowerModule_Impl::setShutDownFuel(double shutDownFuel) { | |
| 509 | 11 | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::ShutDownFuel, shutDownFuel); | |
| 510 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
|
11 | OS_ASSERT(result); |
| 511 | 11 | return result; | |
| 512 | } | ||
| 513 | |||
| 514 | ✗ | void GeneratorFuelCellPowerModule_Impl::resetShutDownFuel() { | |
| 515 | ✗ | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::ShutDownFuel, 0); | |
| 516 | ✗ | OS_ASSERT(result); | |
| 517 | ✗ | } | |
| 518 | |||
| 519 | 11 | bool GeneratorFuelCellPowerModule_Impl::setShutDownElectricityConsumption(double shutDownElectricityConsumption) { | |
| 520 | 11 | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::ShutDownElectricityConsumption, shutDownElectricityConsumption); | |
| 521 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
|
11 | OS_ASSERT(result); |
| 522 | 11 | return result; | |
| 523 | } | ||
| 524 | |||
| 525 | ✗ | void GeneratorFuelCellPowerModule_Impl::resetShutDownElectricityConsumption() { | |
| 526 | ✗ | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::ShutDownElectricityConsumption, 0); | |
| 527 | ✗ | OS_ASSERT(result); | |
| 528 | ✗ | } | |
| 529 | |||
| 530 | 11 | bool GeneratorFuelCellPowerModule_Impl::setAncillaryElectricityConstantTerm(double ancillaryElectricityConstantTerm) { | |
| 531 | 11 | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::AncillaryElectricityConstantTerm, ancillaryElectricityConstantTerm); | |
| 532 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
|
11 | OS_ASSERT(result); |
| 533 | 11 | return result; | |
| 534 | } | ||
| 535 | |||
| 536 | ✗ | void GeneratorFuelCellPowerModule_Impl::resetAncillaryElectricityConstantTerm() { | |
| 537 | ✗ | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::AncillaryElectricityConstantTerm, 0); | |
| 538 | ✗ | OS_ASSERT(result); | |
| 539 | ✗ | } | |
| 540 | |||
| 541 | 11 | bool GeneratorFuelCellPowerModule_Impl::setAncillaryElectricityLinearTerm(double ancillaryElectricityLinearTerm) { | |
| 542 | 11 | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::AncillaryElectricityLinearTerm, ancillaryElectricityLinearTerm); | |
| 543 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
|
11 | OS_ASSERT(result); |
| 544 | 11 | return result; | |
| 545 | } | ||
| 546 | |||
| 547 | ✗ | void GeneratorFuelCellPowerModule_Impl::resetAncillaryElectricityLinearTerm() { | |
| 548 | ✗ | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::AncillaryElectricityLinearTerm, 0); | |
| 549 | ✗ | OS_ASSERT(result); | |
| 550 | ✗ | } | |
| 551 | |||
| 552 | 11 | bool GeneratorFuelCellPowerModule_Impl::setSkinLossCalculationMode(const std::string& skinLossCalculationMode) { | |
| 553 | 11 | bool result = setString(OS_Generator_FuelCell_PowerModuleFields::SkinLossCalculationMode, skinLossCalculationMode); | |
| 554 | 11 | return result; | |
| 555 | } | ||
| 556 | |||
| 557 | ✗ | void GeneratorFuelCellPowerModule_Impl::resetSkinLossCalculationMode() { | |
| 558 | ✗ | bool result = setString(OS_Generator_FuelCell_PowerModuleFields::SkinLossCalculationMode, "ConstantRate"); | |
| 559 | ✗ | OS_ASSERT(result); | |
| 560 | ✗ | } | |
| 561 | |||
| 562 | 3 | bool GeneratorFuelCellPowerModule_Impl::setZone(const ThermalZone& zone) { | |
| 563 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | bool result = setPointer(OS_Generator_FuelCell_PowerModuleFields::ZoneName, zone.handle()); |
| 564 | 3 | return result; | |
| 565 | } | ||
| 566 | |||
| 567 | ✗ | void GeneratorFuelCellPowerModule_Impl::resetZone() { | |
| 568 | ✗ | bool result = setString(OS_Generator_FuelCell_PowerModuleFields::ZoneName, ""); | |
| 569 | ✗ | OS_ASSERT(result); | |
| 570 | ✗ | } | |
| 571 | |||
| 572 | 11 | bool GeneratorFuelCellPowerModule_Impl::setSkinLossRadiativeFraction(double skinLossRadiativeFraction) { | |
| 573 | 11 | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::SkinLossRadiativeFraction, skinLossRadiativeFraction); | |
| 574 | 11 | return result; | |
| 575 | } | ||
| 576 | |||
| 577 | ✗ | void GeneratorFuelCellPowerModule_Impl::resetSkinLossRadiativeFraction() { | |
| 578 | ✗ | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::SkinLossRadiativeFraction, 1); | |
| 579 | ✗ | OS_ASSERT(result); | |
| 580 | ✗ | } | |
| 581 | |||
| 582 | 11 | bool GeneratorFuelCellPowerModule_Impl::setConstantSkinLossRate(double constantSkinLossRate) { | |
| 583 | 11 | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::ConstantSkinLossRate, constantSkinLossRate); | |
| 584 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
|
11 | OS_ASSERT(result); |
| 585 | 11 | return result; | |
| 586 | } | ||
| 587 | |||
| 588 | ✗ | void GeneratorFuelCellPowerModule_Impl::resetConstantSkinLossRate() { | |
| 589 | ✗ | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::ConstantSkinLossRate, 0); | |
| 590 | ✗ | OS_ASSERT(result); | |
| 591 | ✗ | } | |
| 592 | |||
| 593 | 11 | bool GeneratorFuelCellPowerModule_Impl::setSkinLossUFactorTimesAreaTerm(double skinLossUFactorTimesAreaTerm) { | |
| 594 | 11 | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::SkinLossUFactorTimesAreaTerm, skinLossUFactorTimesAreaTerm); | |
| 595 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
|
11 | OS_ASSERT(result); |
| 596 | 11 | return result; | |
| 597 | } | ||
| 598 | |||
| 599 | ✗ | void GeneratorFuelCellPowerModule_Impl::resetSkinLossUFactorTimesAreaTerm() { | |
| 600 | ✗ | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::SkinLossUFactorTimesAreaTerm, 1); | |
| 601 | ✗ | OS_ASSERT(result); | |
| 602 | ✗ | } | |
| 603 | |||
| 604 | 9 | bool GeneratorFuelCellPowerModule_Impl::setSkinLossQuadraticCurve(const CurveQuadratic& quadraticCurves) { | |
| 605 |
2/2✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
|
9 | bool result = setPointer(OS_Generator_FuelCell_PowerModuleFields::SkinLossQuadraticCurveName, quadraticCurves.handle()); |
| 606 | 9 | return result; | |
| 607 | } | ||
| 608 | |||
| 609 | 1 | void GeneratorFuelCellPowerModule_Impl::resetSkinLossQuadraticCurve() { | |
| 610 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Generator_FuelCell_PowerModuleFields::SkinLossQuadraticCurveName, ""); |
| 611 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 612 | 1 | } | |
| 613 | |||
| 614 | 11 | bool GeneratorFuelCellPowerModule_Impl::setDilutionAirFlowRate(double dilutionAirFlowRate) { | |
| 615 | 11 | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::DilutionAirFlowRate, dilutionAirFlowRate); | |
| 616 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
|
11 | OS_ASSERT(result); |
| 617 | 11 | return result; | |
| 618 | } | ||
| 619 | |||
| 620 | ✗ | void GeneratorFuelCellPowerModule_Impl::resetDilutionAirFlowRate() { | |
| 621 | ✗ | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::DilutionAirFlowRate, 0); | |
| 622 | ✗ | OS_ASSERT(result); | |
| 623 | ✗ | } | |
| 624 | |||
| 625 | 11 | bool GeneratorFuelCellPowerModule_Impl::setStackHeatlosstoDilutionAir(double stackHeatlosstoDilutionAir) { | |
| 626 | 11 | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::StackHeatlosstoDilutionAir, stackHeatlosstoDilutionAir); | |
| 627 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
|
11 | OS_ASSERT(result); |
| 628 | 11 | return result; | |
| 629 | } | ||
| 630 | |||
| 631 | ✗ | void GeneratorFuelCellPowerModule_Impl::resetStackHeatlosstoDilutionAir() { | |
| 632 | ✗ | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::StackHeatlosstoDilutionAir, 0); | |
| 633 | ✗ | OS_ASSERT(result); | |
| 634 | ✗ | } | |
| 635 | |||
| 636 | 3 | bool GeneratorFuelCellPowerModule_Impl::setDilutionInletAirNode(const Node& node) { | |
| 637 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | bool result = setPointer(OS_Generator_FuelCell_PowerModuleFields::DilutionInletAirNodeName, node.handle()); |
| 638 | 3 | return result; | |
| 639 | } | ||
| 640 | |||
| 641 | 1 | void GeneratorFuelCellPowerModule_Impl::resetDilutionInletAirNode() { | |
| 642 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Generator_FuelCell_PowerModuleFields::DilutionInletAirNodeName, ""); |
| 643 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 644 | 1 | } | |
| 645 | |||
| 646 | 3 | bool GeneratorFuelCellPowerModule_Impl::setDilutionOutletAirNode(const Node& node) { | |
| 647 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | bool result = setPointer(OS_Generator_FuelCell_PowerModuleFields::DilutionOutletAirNodeName, node.handle()); |
| 648 | 3 | return result; | |
| 649 | } | ||
| 650 | |||
| 651 | 1 | void GeneratorFuelCellPowerModule_Impl::resetDilutionOutletAirNode() { | |
| 652 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Generator_FuelCell_PowerModuleFields::DilutionOutletAirNodeName, ""); |
| 653 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 654 | 1 | } | |
| 655 | |||
| 656 | 11 | bool GeneratorFuelCellPowerModule_Impl::setMinimumOperatingPoint(double minimumOperatingPoint) { | |
| 657 | 11 | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::MinimumOperatingPoint, minimumOperatingPoint); | |
| 658 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
|
11 | OS_ASSERT(result); |
| 659 | 11 | return result; | |
| 660 | } | ||
| 661 | |||
| 662 | ✗ | void GeneratorFuelCellPowerModule_Impl::resetMinimumOperatingPoint() { | |
| 663 | ✗ | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::MinimumOperatingPoint, 0); | |
| 664 | ✗ | OS_ASSERT(result); | |
| 665 | ✗ | } | |
| 666 | |||
| 667 | 11 | bool GeneratorFuelCellPowerModule_Impl::setMaximumOperatingPoint(double maximumOperatingPoint) { | |
| 668 | 11 | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::MaximumOperatingPoint, maximumOperatingPoint); | |
| 669 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
|
11 | OS_ASSERT(result); |
| 670 | 11 | return result; | |
| 671 | } | ||
| 672 | |||
| 673 | ✗ | void GeneratorFuelCellPowerModule_Impl::resetMaximumOperatingPoint() { | |
| 674 | ✗ | bool result = setDouble(OS_Generator_FuelCell_PowerModuleFields::MaximumOperatingPoint, 0); | |
| 675 | ✗ | OS_ASSERT(result); | |
| 676 | ✗ | } | |
| 677 | |||
| 678 | 11 | boost::optional<CurveQuadratic> GeneratorFuelCellPowerModule_Impl::optionalEfficiencyCurve() const { | |
| 679 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | return getObject<ModelObject>().getModelObjectTarget<CurveQuadratic>(OS_Generator_FuelCell_PowerModuleFields::EfficiencyCurveName); |
| 680 | } | ||
| 681 | |||
| 682 | } // namespace detail | ||
| 683 | |||
| 684 | 1 | GeneratorFuelCellPowerModule::GeneratorFuelCellPowerModule(const Model& model, const ThermalZone& heatlossZone, const Node& dilutionInletAirNode, | |
| 685 | 1 | const Node& dilutionOutletAirNode) | |
| 686 | 1 | : ModelObject(GeneratorFuelCellPowerModule::iddObjectType(), model) { | |
| 687 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 1 time.
✗ Branch 5 not taken.
|
1 | OS_ASSERT(getImpl<detail::GeneratorFuelCellPowerModule_Impl>()); |
| 688 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | setEfficiencyCurveMode("Annex42"); |
| 689 | //create default curve | ||
| 690 |
1/1✓ Branch 1 taken 1 time.
|
1 | CurveQuadratic curveQuadratic(model); |
| 691 |
1/1✓ Branch 1 taken 1 time.
|
1 | curveQuadratic.setCoefficient1Constant(1); |
| 692 |
1/1✓ Branch 1 taken 1 time.
|
1 | curveQuadratic.setCoefficient2x(0); |
| 693 |
1/1✓ Branch 1 taken 1 time.
|
1 | curveQuadratic.setCoefficient3xPOW2(0); |
| 694 |
1/1✓ Branch 1 taken 1 time.
|
1 | curveQuadratic.setMinimumValueofx(0); |
| 695 |
1/1✓ Branch 1 taken 1 time.
|
1 | curveQuadratic.setMaximumValueofx(1); |
| 696 | |||
| 697 |
1/1✓ Branch 1 taken 1 time.
|
1 | bool ok = setEfficiencyCurve(curveQuadratic); |
| 698 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | if (!ok) { |
| 699 | ✗ | remove(); | |
| 700 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s efficiencyCurve to " << curveQuadratic.briefDescription() << "."); | |
| 701 | } | ||
| 702 |
1/1✓ Branch 1 taken 1 time.
|
1 | setNominalEfficiency(1.0); |
| 703 |
1/1✓ Branch 1 taken 1 time.
|
1 | setNominalElectricalPower(3400); |
| 704 |
1/1✓ Branch 1 taken 1 time.
|
1 | setNumberofStopsatStartofSimulation(0); |
| 705 |
1/1✓ Branch 1 taken 1 time.
|
1 | setCyclingPerformanceDegradationCoefficient(0.0); |
| 706 |
1/1✓ Branch 1 taken 1 time.
|
1 | setNumberofRunHoursatBeginningofSimulation(0); |
| 707 |
1/1✓ Branch 1 taken 1 time.
|
1 | setAccumulatedRunTimeDegradationCoefficient(0.0); |
| 708 |
1/1✓ Branch 1 taken 1 time.
|
1 | setRunTimeDegradationInitiationTimeThreshold(10000); |
| 709 |
1/1✓ Branch 1 taken 1 time.
|
1 | setPowerUpTransientLimit(1.4); |
| 710 |
1/1✓ Branch 1 taken 1 time.
|
1 | setPowerDownTransientLimit(0.2); |
| 711 |
1/1✓ Branch 1 taken 1 time.
|
1 | setStartUpTime(0.0); |
| 712 |
1/1✓ Branch 1 taken 1 time.
|
1 | setStartUpFuel(0.2); |
| 713 |
1/1✓ Branch 1 taken 1 time.
|
1 | setStartUpElectricityConsumption(0); |
| 714 |
1/1✓ Branch 1 taken 1 time.
|
1 | setStartUpElectricityProduced(0.0); |
| 715 |
1/1✓ Branch 1 taken 1 time.
|
1 | setShutDownTime(0.0); |
| 716 |
1/1✓ Branch 1 taken 1 time.
|
1 | setShutDownFuel(0.2); |
| 717 |
1/1✓ Branch 1 taken 1 time.
|
1 | setShutDownElectricityConsumption(0); |
| 718 |
1/1✓ Branch 1 taken 1 time.
|
1 | setAncillaryElectricityConstantTerm(0.0); |
| 719 |
1/1✓ Branch 1 taken 1 time.
|
1 | setAncillaryElectricityLinearTerm(0.0); |
| 720 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setZone(heatlossZone); |
| 721 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | if (!ok) { |
| 722 | ✗ | remove(); | |
| 723 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s heat loss zone to " << heatlossZone.briefDescription() << "."); | |
| 724 | } | ||
| 725 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | setSkinLossCalculationMode("ConstantRate"); |
| 726 |
1/1✓ Branch 1 taken 1 time.
|
1 | setSkinLossRadiativeFraction(0.6392); |
| 727 |
1/1✓ Branch 1 taken 1 time.
|
1 | setConstantSkinLossRate(729); |
| 728 |
1/1✓ Branch 1 taken 1 time.
|
1 | setSkinLossUFactorTimesAreaTerm(0.0); |
| 729 | |||
| 730 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setSkinLossQuadraticCurve(curveQuadratic); |
| 731 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | if (!ok) { |
| 732 | ✗ | remove(); | |
| 733 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s skin Loss Curve to " << curveQuadratic.briefDescription() << "."); | |
| 734 | } | ||
| 735 | |||
| 736 |
1/1✓ Branch 1 taken 1 time.
|
1 | setDilutionAirFlowRate(0.006156); |
| 737 |
1/1✓ Branch 1 taken 1 time.
|
1 | setStackHeatlosstoDilutionAir(2307); |
| 738 | |||
| 739 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setDilutionInletAirNode(dilutionInletAirNode); |
| 740 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | if (!ok) { |
| 741 | ✗ | remove(); | |
| 742 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s dilution inlet air node to " << dilutionInletAirNode.briefDescription() << "."); | |
| 743 | } | ||
| 744 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setDilutionOutletAirNode(dilutionOutletAirNode); |
| 745 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | if (!ok) { |
| 746 | ✗ | remove(); | |
| 747 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s dilution outlet air node to " << dilutionOutletAirNode.briefDescription() << "."); | |
| 748 | } | ||
| 749 |
1/1✓ Branch 1 taken 1 time.
|
1 | setMinimumOperatingPoint(3010); |
| 750 |
1/1✓ Branch 1 taken 1 time.
|
1 | setMaximumOperatingPoint(3728); |
| 751 | 1 | } | |
| 752 | |||
| 753 | 1 | GeneratorFuelCellPowerModule::GeneratorFuelCellPowerModule(const Model& model, const CurveQuadratic& efficiencyCurve, | |
| 754 | const ThermalZone& heatlossZone, const Node& dilutionInletAirNode, | ||
| 755 | 1 | const Node& dilutionOutletAirNode, const CurveQuadratic& skinlossCurve) | |
| 756 | 1 | : ModelObject(GeneratorFuelCellPowerModule::iddObjectType(), model) { | |
| 757 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 1 time.
✗ Branch 5 not taken.
|
1 | OS_ASSERT(getImpl<detail::GeneratorFuelCellPowerModule_Impl>()); |
| 758 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | setEfficiencyCurveMode("Annex42"); |
| 759 |
1/1✓ Branch 1 taken 1 time.
|
1 | bool ok = setEfficiencyCurve(efficiencyCurve); |
| 760 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | if (!ok) { |
| 761 | ✗ | remove(); | |
| 762 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s efficiencyCurve to " << efficiencyCurve.briefDescription() << "."); | |
| 763 | } | ||
| 764 |
1/1✓ Branch 1 taken 1 time.
|
1 | setNominalEfficiency(1.0); |
| 765 |
1/1✓ Branch 1 taken 1 time.
|
1 | setNominalElectricalPower(3400); |
| 766 |
1/1✓ Branch 1 taken 1 time.
|
1 | setNumberofStopsatStartofSimulation(0); |
| 767 |
1/1✓ Branch 1 taken 1 time.
|
1 | setCyclingPerformanceDegradationCoefficient(0.0); |
| 768 |
1/1✓ Branch 1 taken 1 time.
|
1 | setNumberofRunHoursatBeginningofSimulation(0); |
| 769 |
1/1✓ Branch 1 taken 1 time.
|
1 | setAccumulatedRunTimeDegradationCoefficient(0.0); |
| 770 |
1/1✓ Branch 1 taken 1 time.
|
1 | setRunTimeDegradationInitiationTimeThreshold(10000); |
| 771 |
1/1✓ Branch 1 taken 1 time.
|
1 | setPowerUpTransientLimit(1.4); |
| 772 |
1/1✓ Branch 1 taken 1 time.
|
1 | setPowerDownTransientLimit(0.2); |
| 773 |
1/1✓ Branch 1 taken 1 time.
|
1 | setStartUpTime(0.0); |
| 774 |
1/1✓ Branch 1 taken 1 time.
|
1 | setStartUpFuel(0.2); |
| 775 |
1/1✓ Branch 1 taken 1 time.
|
1 | setStartUpElectricityConsumption(0); |
| 776 |
1/1✓ Branch 1 taken 1 time.
|
1 | setStartUpElectricityProduced(0.0); |
| 777 |
1/1✓ Branch 1 taken 1 time.
|
1 | setShutDownTime(0.0); |
| 778 |
1/1✓ Branch 1 taken 1 time.
|
1 | setShutDownFuel(0.2); |
| 779 |
1/1✓ Branch 1 taken 1 time.
|
1 | setShutDownElectricityConsumption(0); |
| 780 |
1/1✓ Branch 1 taken 1 time.
|
1 | setAncillaryElectricityConstantTerm(0.0); |
| 781 |
1/1✓ Branch 1 taken 1 time.
|
1 | setAncillaryElectricityLinearTerm(0.0); |
| 782 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setZone(heatlossZone); |
| 783 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | if (!ok) { |
| 784 | ✗ | remove(); | |
| 785 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s heatloss zone to " << heatlossZone.briefDescription() << "."); | |
| 786 | } | ||
| 787 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | setSkinLossCalculationMode("ConstantRate"); |
| 788 |
1/1✓ Branch 1 taken 1 time.
|
1 | setSkinLossRadiativeFraction(0.6392); |
| 789 |
1/1✓ Branch 1 taken 1 time.
|
1 | setConstantSkinLossRate(729); |
| 790 |
1/1✓ Branch 1 taken 1 time.
|
1 | setSkinLossUFactorTimesAreaTerm(0.0); |
| 791 | |||
| 792 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setSkinLossQuadraticCurve(skinlossCurve); |
| 793 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | if (!ok) { |
| 794 | ✗ | remove(); | |
| 795 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s skin loss curve to " << skinlossCurve.briefDescription() << "."); | |
| 796 | } | ||
| 797 | |||
| 798 |
1/1✓ Branch 1 taken 1 time.
|
1 | setDilutionAirFlowRate(0.006156); |
| 799 |
1/1✓ Branch 1 taken 1 time.
|
1 | setStackHeatlosstoDilutionAir(2307); |
| 800 | |||
| 801 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setDilutionInletAirNode(dilutionInletAirNode); |
| 802 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | if (!ok) { |
| 803 | ✗ | remove(); | |
| 804 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s dilution inlet air node to " << dilutionInletAirNode.briefDescription() << "."); | |
| 805 | } | ||
| 806 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setDilutionOutletAirNode(dilutionOutletAirNode); |
| 807 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | if (!ok) { |
| 808 | ✗ | remove(); | |
| 809 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s dilution outlet air node to " << dilutionOutletAirNode.briefDescription() << "."); | |
| 810 | } | ||
| 811 |
1/1✓ Branch 1 taken 1 time.
|
1 | setMinimumOperatingPoint(3010); |
| 812 |
1/1✓ Branch 1 taken 1 time.
|
1 | setMaximumOperatingPoint(3728); |
| 813 | 1 | } | |
| 814 | |||
| 815 | 1 | GeneratorFuelCellPowerModule::GeneratorFuelCellPowerModule(const Model& model, const CurveQuadratic& efficiencyCurve, | |
| 816 | const ThermalZone& heatlossZone, const Node& dilutionInletAirNode, | ||
| 817 | 1 | const Node& dilutionOutletAirNode) | |
| 818 | 1 | : ModelObject(GeneratorFuelCellPowerModule::iddObjectType(), model) { | |
| 819 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 1 time.
✗ Branch 5 not taken.
|
1 | OS_ASSERT(getImpl<detail::GeneratorFuelCellPowerModule_Impl>()); |
| 820 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | setEfficiencyCurveMode("Annex42"); |
| 821 |
1/1✓ Branch 1 taken 1 time.
|
1 | bool ok = setEfficiencyCurve(efficiencyCurve); |
| 822 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | if (!ok) { |
| 823 | ✗ | remove(); | |
| 824 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s efficiencyCurve to " << efficiencyCurve.briefDescription() << "."); | |
| 825 | } | ||
| 826 |
1/1✓ Branch 1 taken 1 time.
|
1 | setNominalEfficiency(1.0); |
| 827 |
1/1✓ Branch 1 taken 1 time.
|
1 | setNominalElectricalPower(3400); |
| 828 |
1/1✓ Branch 1 taken 1 time.
|
1 | setNumberofStopsatStartofSimulation(0); |
| 829 |
1/1✓ Branch 1 taken 1 time.
|
1 | setCyclingPerformanceDegradationCoefficient(0.0); |
| 830 |
1/1✓ Branch 1 taken 1 time.
|
1 | setNumberofRunHoursatBeginningofSimulation(0); |
| 831 |
1/1✓ Branch 1 taken 1 time.
|
1 | setAccumulatedRunTimeDegradationCoefficient(0.0); |
| 832 |
1/1✓ Branch 1 taken 1 time.
|
1 | setRunTimeDegradationInitiationTimeThreshold(10000); |
| 833 |
1/1✓ Branch 1 taken 1 time.
|
1 | setPowerUpTransientLimit(1.4); |
| 834 |
1/1✓ Branch 1 taken 1 time.
|
1 | setPowerDownTransientLimit(0.2); |
| 835 |
1/1✓ Branch 1 taken 1 time.
|
1 | setStartUpTime(0.0); |
| 836 |
1/1✓ Branch 1 taken 1 time.
|
1 | setStartUpFuel(0.2); |
| 837 |
1/1✓ Branch 1 taken 1 time.
|
1 | setStartUpElectricityConsumption(0); |
| 838 |
1/1✓ Branch 1 taken 1 time.
|
1 | setStartUpElectricityProduced(0.0); |
| 839 |
1/1✓ Branch 1 taken 1 time.
|
1 | setShutDownTime(0.0); |
| 840 |
1/1✓ Branch 1 taken 1 time.
|
1 | setShutDownFuel(0.2); |
| 841 |
1/1✓ Branch 1 taken 1 time.
|
1 | setShutDownElectricityConsumption(0); |
| 842 |
1/1✓ Branch 1 taken 1 time.
|
1 | setAncillaryElectricityConstantTerm(0.0); |
| 843 |
1/1✓ Branch 1 taken 1 time.
|
1 | setAncillaryElectricityLinearTerm(0.0); |
| 844 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setZone(heatlossZone); |
| 845 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | if (!ok) { |
| 846 | ✗ | remove(); | |
| 847 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s heat loss zone to " << heatlossZone.briefDescription() << "."); | |
| 848 | } | ||
| 849 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | setSkinLossCalculationMode("ConstantRate"); |
| 850 |
1/1✓ Branch 1 taken 1 time.
|
1 | setSkinLossRadiativeFraction(0.6392); |
| 851 |
1/1✓ Branch 1 taken 1 time.
|
1 | setConstantSkinLossRate(729); |
| 852 |
1/1✓ Branch 1 taken 1 time.
|
1 | setSkinLossUFactorTimesAreaTerm(0.0); |
| 853 | |||
| 854 |
1/1✓ Branch 1 taken 1 time.
|
1 | setDilutionAirFlowRate(0.006156); |
| 855 |
1/1✓ Branch 1 taken 1 time.
|
1 | setStackHeatlosstoDilutionAir(2307); |
| 856 | |||
| 857 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setDilutionInletAirNode(dilutionInletAirNode); |
| 858 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | if (!ok) { |
| 859 | ✗ | remove(); | |
| 860 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s dilution inlet air node to " << dilutionInletAirNode.briefDescription() << "."); | |
| 861 | } | ||
| 862 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setDilutionOutletAirNode(dilutionOutletAirNode); |
| 863 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | if (!ok) { |
| 864 | ✗ | remove(); | |
| 865 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s dilution outlet air node to " << dilutionOutletAirNode.briefDescription() << "."); | |
| 866 | } | ||
| 867 |
1/1✓ Branch 1 taken 1 time.
|
1 | setMinimumOperatingPoint(3010); |
| 868 |
1/1✓ Branch 1 taken 1 time.
|
1 | setMaximumOperatingPoint(3728); |
| 869 | 1 | } | |
| 870 | |||
| 871 | 1 | GeneratorFuelCellPowerModule::GeneratorFuelCellPowerModule(const Model& model, const CurveQuadratic& efficiencyCurve) | |
| 872 | 1 | : ModelObject(GeneratorFuelCellPowerModule::iddObjectType(), model) { | |
| 873 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 1 time.
✗ Branch 5 not taken.
|
1 | OS_ASSERT(getImpl<detail::GeneratorFuelCellPowerModule_Impl>()); |
| 874 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | setEfficiencyCurveMode("Annex42"); |
| 875 |
1/1✓ Branch 1 taken 1 time.
|
1 | bool ok = setEfficiencyCurve(efficiencyCurve); |
| 876 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | if (!ok) { |
| 877 | ✗ | remove(); | |
| 878 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s efficiencyCurve to " << efficiencyCurve.briefDescription() << "."); | |
| 879 | } | ||
| 880 |
1/1✓ Branch 1 taken 1 time.
|
1 | setNominalEfficiency(1.0); |
| 881 |
1/1✓ Branch 1 taken 1 time.
|
1 | setNominalElectricalPower(3400); |
| 882 |
1/1✓ Branch 1 taken 1 time.
|
1 | setNumberofStopsatStartofSimulation(0); |
| 883 |
1/1✓ Branch 1 taken 1 time.
|
1 | setCyclingPerformanceDegradationCoefficient(0.0); |
| 884 |
1/1✓ Branch 1 taken 1 time.
|
1 | setNumberofRunHoursatBeginningofSimulation(0); |
| 885 |
1/1✓ Branch 1 taken 1 time.
|
1 | setAccumulatedRunTimeDegradationCoefficient(0.0); |
| 886 |
1/1✓ Branch 1 taken 1 time.
|
1 | setRunTimeDegradationInitiationTimeThreshold(10000); |
| 887 |
1/1✓ Branch 1 taken 1 time.
|
1 | setPowerUpTransientLimit(1.4); |
| 888 |
1/1✓ Branch 1 taken 1 time.
|
1 | setPowerDownTransientLimit(0.2); |
| 889 |
1/1✓ Branch 1 taken 1 time.
|
1 | setStartUpTime(0.0); |
| 890 |
1/1✓ Branch 1 taken 1 time.
|
1 | setStartUpFuel(0.2); |
| 891 |
1/1✓ Branch 1 taken 1 time.
|
1 | setStartUpElectricityConsumption(0); |
| 892 |
1/1✓ Branch 1 taken 1 time.
|
1 | setStartUpElectricityProduced(0.0); |
| 893 |
1/1✓ Branch 1 taken 1 time.
|
1 | setShutDownTime(0.0); |
| 894 |
1/1✓ Branch 1 taken 1 time.
|
1 | setShutDownFuel(0.2); |
| 895 |
1/1✓ Branch 1 taken 1 time.
|
1 | setShutDownElectricityConsumption(0); |
| 896 |
1/1✓ Branch 1 taken 1 time.
|
1 | setAncillaryElectricityConstantTerm(0.0); |
| 897 |
1/1✓ Branch 1 taken 1 time.
|
1 | setAncillaryElectricityLinearTerm(0.0); |
| 898 | //TODO | ||
| 899 | //setZone(); | ||
| 900 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | setSkinLossCalculationMode("ConstantRate"); |
| 901 |
1/1✓ Branch 1 taken 1 time.
|
1 | setSkinLossRadiativeFraction(0.6392); |
| 902 |
1/1✓ Branch 1 taken 1 time.
|
1 | setConstantSkinLossRate(729); |
| 903 |
1/1✓ Branch 1 taken 1 time.
|
1 | setSkinLossUFactorTimesAreaTerm(0.0); |
| 904 | |||
| 905 |
1/1✓ Branch 1 taken 1 time.
|
1 | setDilutionAirFlowRate(0.006156); |
| 906 |
1/1✓ Branch 1 taken 1 time.
|
1 | setStackHeatlosstoDilutionAir(2307); |
| 907 | //TODO | ||
| 908 | //setDilutionInletAirNode(); | ||
| 909 | //setDilutionOutletAirNode(); | ||
| 910 |
1/1✓ Branch 1 taken 1 time.
|
1 | setMinimumOperatingPoint(3010); |
| 911 |
1/1✓ Branch 1 taken 1 time.
|
1 | setMaximumOperatingPoint(3728); |
| 912 | 1 | } | |
| 913 | |||
| 914 | 7 | GeneratorFuelCellPowerModule::GeneratorFuelCellPowerModule(const Model& model) : ModelObject(GeneratorFuelCellPowerModule::iddObjectType(), model) { | |
| 915 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 7 times.
✗ Branch 5 not taken.
|
7 | OS_ASSERT(getImpl<detail::GeneratorFuelCellPowerModule_Impl>()); |
| 916 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | setEfficiencyCurveMode("Annex42"); |
| 917 | //create default curve | ||
| 918 |
1/1✓ Branch 1 taken 7 times.
|
7 | CurveQuadratic curveQuadratic(model); |
| 919 |
1/1✓ Branch 1 taken 7 times.
|
7 | curveQuadratic.setCoefficient1Constant(0.642388); |
| 920 |
1/1✓ Branch 1 taken 7 times.
|
7 | curveQuadratic.setCoefficient2x(-0.0001619); |
| 921 |
1/1✓ Branch 1 taken 7 times.
|
7 | curveQuadratic.setCoefficient3xPOW2(0.0000000226); |
| 922 |
1/1✓ Branch 1 taken 7 times.
|
7 | curveQuadratic.setMinimumValueofx(0); |
| 923 |
1/1✓ Branch 1 taken 7 times.
|
7 | curveQuadratic.setMaximumValueofx(10000); |
| 924 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | curveQuadratic.setName("Power Module Efficiency Curve"); |
| 925 |
1/1✓ Branch 1 taken 7 times.
|
7 | bool ok = setEfficiencyCurve(curveQuadratic); |
| 926 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
|
7 | if (!ok) { |
| 927 | ✗ | remove(); | |
| 928 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s efficiencyCurve to " << curveQuadratic.briefDescription() << "."); | |
| 929 | } | ||
| 930 |
1/1✓ Branch 1 taken 7 times.
|
7 | setNominalEfficiency(1.0); |
| 931 |
1/1✓ Branch 1 taken 7 times.
|
7 | setNominalElectricalPower(3400); |
| 932 |
1/1✓ Branch 1 taken 7 times.
|
7 | setNumberofStopsatStartofSimulation(0); |
| 933 |
1/1✓ Branch 1 taken 7 times.
|
7 | setCyclingPerformanceDegradationCoefficient(0.0); |
| 934 |
1/1✓ Branch 1 taken 7 times.
|
7 | setNumberofRunHoursatBeginningofSimulation(0); |
| 935 |
1/1✓ Branch 1 taken 7 times.
|
7 | setAccumulatedRunTimeDegradationCoefficient(0.0); |
| 936 |
1/1✓ Branch 1 taken 7 times.
|
7 | setRunTimeDegradationInitiationTimeThreshold(10000); |
| 937 |
1/1✓ Branch 1 taken 7 times.
|
7 | setPowerUpTransientLimit(1.4); |
| 938 |
1/1✓ Branch 1 taken 7 times.
|
7 | setPowerDownTransientLimit(0.2); |
| 939 |
1/1✓ Branch 1 taken 7 times.
|
7 | setStartUpTime(0.0); |
| 940 |
1/1✓ Branch 1 taken 7 times.
|
7 | setStartUpFuel(0.2); |
| 941 |
1/1✓ Branch 1 taken 7 times.
|
7 | setStartUpElectricityConsumption(0); |
| 942 |
1/1✓ Branch 1 taken 7 times.
|
7 | setStartUpElectricityProduced(0.0); |
| 943 |
1/1✓ Branch 1 taken 7 times.
|
7 | setShutDownTime(0.0); |
| 944 |
1/1✓ Branch 1 taken 7 times.
|
7 | setShutDownFuel(0.2); |
| 945 |
1/1✓ Branch 1 taken 7 times.
|
7 | setShutDownElectricityConsumption(0); |
| 946 |
1/1✓ Branch 1 taken 7 times.
|
7 | setAncillaryElectricityConstantTerm(0.0); |
| 947 |
1/1✓ Branch 1 taken 7 times.
|
7 | setAncillaryElectricityLinearTerm(0.0); |
| 948 | //TODO | ||
| 949 | //setZone(); | ||
| 950 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | setSkinLossCalculationMode("ConstantRate"); |
| 951 |
1/1✓ Branch 1 taken 7 times.
|
7 | setSkinLossRadiativeFraction(0.6392); |
| 952 |
1/1✓ Branch 1 taken 7 times.
|
7 | setConstantSkinLossRate(729); |
| 953 |
1/1✓ Branch 1 taken 7 times.
|
7 | setSkinLossUFactorTimesAreaTerm(0.0); |
| 954 | |||
| 955 |
1/1✓ Branch 1 taken 7 times.
|
7 | setDilutionAirFlowRate(0.006156); |
| 956 |
1/1✓ Branch 1 taken 7 times.
|
7 | setStackHeatlosstoDilutionAir(2307); |
| 957 | //TODO | ||
| 958 | //setDilutionInletAirNode(); | ||
| 959 | //setDilutionOutletAirNode(); | ||
| 960 |
1/1✓ Branch 1 taken 7 times.
|
7 | setMinimumOperatingPoint(3010); |
| 961 |
1/1✓ Branch 1 taken 7 times.
|
7 | setMaximumOperatingPoint(3728); |
| 962 | |||
| 963 |
1/1✓ Branch 1 taken 7 times.
|
7 | CurveQuadratic curveQ2(model); |
| 964 |
1/1✓ Branch 1 taken 7 times.
|
7 | curveQ2.setCoefficient1Constant(0); |
| 965 |
1/1✓ Branch 1 taken 7 times.
|
7 | curveQ2.setCoefficient2x(0); |
| 966 |
1/1✓ Branch 1 taken 7 times.
|
7 | curveQ2.setCoefficient3xPOW2(0); |
| 967 |
1/1✓ Branch 1 taken 7 times.
|
7 | curveQ2.setMinimumValueofx(-1.0e10); |
| 968 |
1/1✓ Branch 1 taken 7 times.
|
7 | curveQ2.setMaximumValueofx(1.0e10); |
| 969 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | curveQ2.setName("Skin Loss Curve"); |
| 970 |
1/1✓ Branch 1 taken 7 times.
|
7 | setSkinLossQuadraticCurve(curveQ2); |
| 971 | 7 | } | |
| 972 | |||
| 973 | 7750 | IddObjectType GeneratorFuelCellPowerModule::iddObjectType() { | |
| 974 |
1/1✓ Branch 1 taken 7750 times.
|
7750 | return {IddObjectType::OS_Generator_FuelCell_PowerModule}; |
| 975 | } | ||
| 976 | |||
| 977 | ✗ | std::vector<std::string> GeneratorFuelCellPowerModule::efficiencyCurveModeValues() { | |
| 978 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Generator_FuelCell_PowerModuleFields::EfficiencyCurveMode); | |
| 979 | } | ||
| 980 | |||
| 981 | ✗ | std::vector<std::string> GeneratorFuelCellPowerModule::skinLossCalculationModeValues() { | |
| 982 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Generator_FuelCell_PowerModuleFields::SkinLossCalculationMode); | |
| 983 | } | ||
| 984 | |||
| 985 | 8 | std::string GeneratorFuelCellPowerModule::efficiencyCurveMode() const { | |
| 986 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->efficiencyCurveMode(); |
| 987 | } | ||
| 988 | |||
| 989 | 11 | CurveQuadratic GeneratorFuelCellPowerModule::efficiencyCurve() const { | |
| 990 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->efficiencyCurve(); |
| 991 | } | ||
| 992 | |||
| 993 | 4 | double GeneratorFuelCellPowerModule::nominalEfficiency() const { | |
| 994 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->nominalEfficiency(); |
| 995 | } | ||
| 996 | |||
| 997 | 7 | double GeneratorFuelCellPowerModule::nominalElectricalPower() const { | |
| 998 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->nominalElectricalPower(); |
| 999 | } | ||
| 1000 | |||
| 1001 | 4 | double GeneratorFuelCellPowerModule::numberofStopsatStartofSimulation() const { | |
| 1002 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->numberofStopsatStartofSimulation(); |
| 1003 | } | ||
| 1004 | |||
| 1005 | 4 | double GeneratorFuelCellPowerModule::cyclingPerformanceDegradationCoefficient() const { | |
| 1006 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->cyclingPerformanceDegradationCoefficient(); |
| 1007 | } | ||
| 1008 | |||
| 1009 | 4 | double GeneratorFuelCellPowerModule::numberofRunHoursatBeginningofSimulation() const { | |
| 1010 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->numberofRunHoursatBeginningofSimulation(); |
| 1011 | } | ||
| 1012 | |||
| 1013 | 4 | double GeneratorFuelCellPowerModule::accumulatedRunTimeDegradationCoefficient() const { | |
| 1014 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->accumulatedRunTimeDegradationCoefficient(); |
| 1015 | } | ||
| 1016 | |||
| 1017 | 4 | double GeneratorFuelCellPowerModule::runTimeDegradationInitiationTimeThreshold() const { | |
| 1018 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->runTimeDegradationInitiationTimeThreshold(); |
| 1019 | } | ||
| 1020 | |||
| 1021 | 4 | double GeneratorFuelCellPowerModule::powerUpTransientLimit() const { | |
| 1022 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->powerUpTransientLimit(); |
| 1023 | } | ||
| 1024 | |||
| 1025 | 4 | double GeneratorFuelCellPowerModule::powerDownTransientLimit() const { | |
| 1026 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->powerDownTransientLimit(); |
| 1027 | } | ||
| 1028 | |||
| 1029 | 4 | double GeneratorFuelCellPowerModule::startUpTime() const { | |
| 1030 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->startUpTime(); |
| 1031 | } | ||
| 1032 | |||
| 1033 | 4 | double GeneratorFuelCellPowerModule::startUpFuel() const { | |
| 1034 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->startUpFuel(); |
| 1035 | } | ||
| 1036 | |||
| 1037 | 4 | double GeneratorFuelCellPowerModule::startUpElectricityConsumption() const { | |
| 1038 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->startUpElectricityConsumption(); |
| 1039 | } | ||
| 1040 | |||
| 1041 | 4 | double GeneratorFuelCellPowerModule::startUpElectricityProduced() const { | |
| 1042 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->startUpElectricityProduced(); |
| 1043 | } | ||
| 1044 | |||
| 1045 | 4 | double GeneratorFuelCellPowerModule::shutDownTime() const { | |
| 1046 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->shutDownTime(); |
| 1047 | } | ||
| 1048 | |||
| 1049 | 4 | double GeneratorFuelCellPowerModule::shutDownFuel() const { | |
| 1050 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->shutDownFuel(); |
| 1051 | } | ||
| 1052 | |||
| 1053 | 4 | double GeneratorFuelCellPowerModule::shutDownElectricityConsumption() const { | |
| 1054 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->shutDownElectricityConsumption(); |
| 1055 | } | ||
| 1056 | |||
| 1057 | 4 | double GeneratorFuelCellPowerModule::ancillaryElectricityConstantTerm() const { | |
| 1058 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->ancillaryElectricityConstantTerm(); |
| 1059 | } | ||
| 1060 | |||
| 1061 | 4 | double GeneratorFuelCellPowerModule::ancillaryElectricityLinearTerm() const { | |
| 1062 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->ancillaryElectricityLinearTerm(); |
| 1063 | } | ||
| 1064 | |||
| 1065 | 4 | std::string GeneratorFuelCellPowerModule::skinLossCalculationMode() const { | |
| 1066 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->skinLossCalculationMode(); |
| 1067 | } | ||
| 1068 | |||
| 1069 | 6 | boost::optional<ThermalZone> GeneratorFuelCellPowerModule::zone() const { | |
| 1070 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->zone(); |
| 1071 | } | ||
| 1072 | |||
| 1073 | 4 | double GeneratorFuelCellPowerModule::skinLossRadiativeFraction() const { | |
| 1074 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->skinLossRadiativeFraction(); |
| 1075 | } | ||
| 1076 | |||
| 1077 | 4 | double GeneratorFuelCellPowerModule::constantSkinLossRate() const { | |
| 1078 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->constantSkinLossRate(); |
| 1079 | } | ||
| 1080 | |||
| 1081 | 4 | double GeneratorFuelCellPowerModule::skinLossUFactorTimesAreaTerm() const { | |
| 1082 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->skinLossUFactorTimesAreaTerm(); |
| 1083 | } | ||
| 1084 | |||
| 1085 | 10 | boost::optional<CurveQuadratic> GeneratorFuelCellPowerModule::skinLossQuadraticCurve() const { | |
| 1086 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->skinLossQuadraticCurve(); |
| 1087 | } | ||
| 1088 | |||
| 1089 | 4 | double GeneratorFuelCellPowerModule::dilutionAirFlowRate() const { | |
| 1090 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->dilutionAirFlowRate(); |
| 1091 | } | ||
| 1092 | |||
| 1093 | 4 | double GeneratorFuelCellPowerModule::stackHeatlosstoDilutionAir() const { | |
| 1094 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->stackHeatlosstoDilutionAir(); |
| 1095 | } | ||
| 1096 | |||
| 1097 | 7 | boost::optional<Node> GeneratorFuelCellPowerModule::dilutionInletAirNode() const { | |
| 1098 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->dilutionInletAirNode(); |
| 1099 | } | ||
| 1100 | |||
| 1101 | 7 | boost::optional<Node> GeneratorFuelCellPowerModule::dilutionOutletAirNode() const { | |
| 1102 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->dilutionOutletAirNode(); |
| 1103 | } | ||
| 1104 | |||
| 1105 | 4 | double GeneratorFuelCellPowerModule::minimumOperatingPoint() const { | |
| 1106 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->minimumOperatingPoint(); |
| 1107 | } | ||
| 1108 | |||
| 1109 | 4 | double GeneratorFuelCellPowerModule::maximumOperatingPoint() const { | |
| 1110 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->maximumOperatingPoint(); |
| 1111 | } | ||
| 1112 | |||
| 1113 | 13 | bool GeneratorFuelCellPowerModule::setEfficiencyCurveMode(const std::string& efficiencyCurveMode) { | |
| 1114 |
1/1✓ Branch 3 taken 13 times.
|
13 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setEfficiencyCurveMode(efficiencyCurveMode); |
| 1115 | } | ||
| 1116 | |||
| 1117 | 1 | void GeneratorFuelCellPowerModule::resetEfficiencyCurveMode() { | |
| 1118 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetEfficiencyCurveMode(); |
| 1119 | 1 | } | |
| 1120 | |||
| 1121 | 11 | bool GeneratorFuelCellPowerModule::setEfficiencyCurve(const CurveQuadratic& quadraticCurve) { | |
| 1122 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setEfficiencyCurve(quadraticCurve); |
| 1123 | } | ||
| 1124 | |||
| 1125 | 11 | bool GeneratorFuelCellPowerModule::setNominalEfficiency(double nominalEfficiency) { | |
| 1126 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setNominalEfficiency(nominalEfficiency); |
| 1127 | } | ||
| 1128 | |||
| 1129 | ✗ | void GeneratorFuelCellPowerModule::resetNominalEfficiency() { | |
| 1130 | ✗ | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetNominalEfficiency(); | |
| 1131 | ✗ | } | |
| 1132 | |||
| 1133 | 11 | bool GeneratorFuelCellPowerModule::setNominalElectricalPower(double nominalElectricalPower) { | |
| 1134 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setNominalElectricalPower(nominalElectricalPower); |
| 1135 | } | ||
| 1136 | |||
| 1137 | ✗ | void GeneratorFuelCellPowerModule::resetNominalElectricalPower() { | |
| 1138 | ✗ | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetNominalElectricalPower(); | |
| 1139 | ✗ | } | |
| 1140 | |||
| 1141 | 11 | bool GeneratorFuelCellPowerModule::setNumberofStopsatStartofSimulation(double numberofStopsatStartofSimulation) { | |
| 1142 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setNumberofStopsatStartofSimulation(numberofStopsatStartofSimulation); |
| 1143 | } | ||
| 1144 | |||
| 1145 | ✗ | void GeneratorFuelCellPowerModule::resetNumberofStopsatStartofSimulation() { | |
| 1146 | ✗ | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetNumberofStopsatStartofSimulation(); | |
| 1147 | ✗ | } | |
| 1148 | |||
| 1149 | 11 | bool GeneratorFuelCellPowerModule::setCyclingPerformanceDegradationCoefficient(double cyclingPerformanceDegradationCoefficient) { | |
| 1150 |
1/1✓ Branch 3 taken 11 times.
|
22 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setCyclingPerformanceDegradationCoefficient( |
| 1151 | 22 | cyclingPerformanceDegradationCoefficient); | |
| 1152 | } | ||
| 1153 | |||
| 1154 | ✗ | void GeneratorFuelCellPowerModule::resetCyclingPerformanceDegradationCoefficient() { | |
| 1155 | ✗ | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetCyclingPerformanceDegradationCoefficient(); | |
| 1156 | ✗ | } | |
| 1157 | |||
| 1158 | 11 | bool GeneratorFuelCellPowerModule::setNumberofRunHoursatBeginningofSimulation(double numberofRunHoursatBeginningofSimulation) { | |
| 1159 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setNumberofRunHoursatBeginningofSimulation(numberofRunHoursatBeginningofSimulation); |
| 1160 | } | ||
| 1161 | |||
| 1162 | ✗ | void GeneratorFuelCellPowerModule::resetNumberofRunHoursatBeginningofSimulation() { | |
| 1163 | ✗ | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetNumberofRunHoursatBeginningofSimulation(); | |
| 1164 | ✗ | } | |
| 1165 | |||
| 1166 | 11 | bool GeneratorFuelCellPowerModule::setAccumulatedRunTimeDegradationCoefficient(double accumulatedRunTimeDegradationCoefficient) { | |
| 1167 |
1/1✓ Branch 3 taken 11 times.
|
22 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setAccumulatedRunTimeDegradationCoefficient( |
| 1168 | 22 | accumulatedRunTimeDegradationCoefficient); | |
| 1169 | } | ||
| 1170 | |||
| 1171 | ✗ | void GeneratorFuelCellPowerModule::resetAccumulatedRunTimeDegradationCoefficient() { | |
| 1172 | ✗ | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetAccumulatedRunTimeDegradationCoefficient(); | |
| 1173 | ✗ | } | |
| 1174 | |||
| 1175 | 11 | bool GeneratorFuelCellPowerModule::setRunTimeDegradationInitiationTimeThreshold(double runTimeDegradationInitiationTimeThreshold) { | |
| 1176 |
1/1✓ Branch 3 taken 11 times.
|
22 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setRunTimeDegradationInitiationTimeThreshold( |
| 1177 | 22 | runTimeDegradationInitiationTimeThreshold); | |
| 1178 | } | ||
| 1179 | |||
| 1180 | ✗ | void GeneratorFuelCellPowerModule::resetRunTimeDegradationInitiationTimeThreshold() { | |
| 1181 | ✗ | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetRunTimeDegradationInitiationTimeThreshold(); | |
| 1182 | ✗ | } | |
| 1183 | |||
| 1184 | 11 | bool GeneratorFuelCellPowerModule::setPowerUpTransientLimit(double powerUpTransientLimit) { | |
| 1185 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setPowerUpTransientLimit(powerUpTransientLimit); |
| 1186 | } | ||
| 1187 | |||
| 1188 | ✗ | void GeneratorFuelCellPowerModule::resetPowerUpTransientLimit() { | |
| 1189 | ✗ | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetPowerUpTransientLimit(); | |
| 1190 | ✗ | } | |
| 1191 | |||
| 1192 | 11 | bool GeneratorFuelCellPowerModule::setPowerDownTransientLimit(double powerDownTransientLimit) { | |
| 1193 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setPowerDownTransientLimit(powerDownTransientLimit); |
| 1194 | } | ||
| 1195 | |||
| 1196 | ✗ | void GeneratorFuelCellPowerModule::resetPowerDownTransientLimit() { | |
| 1197 | ✗ | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetPowerDownTransientLimit(); | |
| 1198 | ✗ | } | |
| 1199 | |||
| 1200 | 11 | bool GeneratorFuelCellPowerModule::setStartUpTime(double startUpTime) { | |
| 1201 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setStartUpTime(startUpTime); |
| 1202 | } | ||
| 1203 | |||
| 1204 | ✗ | void GeneratorFuelCellPowerModule::resetStartUpTime() { | |
| 1205 | ✗ | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetStartUpTime(); | |
| 1206 | ✗ | } | |
| 1207 | |||
| 1208 | 11 | bool GeneratorFuelCellPowerModule::setStartUpFuel(double startUpFuel) { | |
| 1209 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setStartUpFuel(startUpFuel); |
| 1210 | } | ||
| 1211 | |||
| 1212 | ✗ | void GeneratorFuelCellPowerModule::resetStartUpFuel() { | |
| 1213 | ✗ | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetStartUpFuel(); | |
| 1214 | ✗ | } | |
| 1215 | |||
| 1216 | 11 | bool GeneratorFuelCellPowerModule::setStartUpElectricityConsumption(double startUpElectricityConsumption) { | |
| 1217 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setStartUpElectricityConsumption(startUpElectricityConsumption); |
| 1218 | } | ||
| 1219 | |||
| 1220 | ✗ | void GeneratorFuelCellPowerModule::resetStartUpElectricityConsumption() { | |
| 1221 | ✗ | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetStartUpElectricityConsumption(); | |
| 1222 | ✗ | } | |
| 1223 | |||
| 1224 | 11 | bool GeneratorFuelCellPowerModule::setStartUpElectricityProduced(double startUpElectricityProduced) { | |
| 1225 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setStartUpElectricityProduced(startUpElectricityProduced); |
| 1226 | } | ||
| 1227 | |||
| 1228 | ✗ | void GeneratorFuelCellPowerModule::resetStartUpElectricityProduced() { | |
| 1229 | ✗ | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetStartUpElectricityProduced(); | |
| 1230 | ✗ | } | |
| 1231 | |||
| 1232 | 11 | bool GeneratorFuelCellPowerModule::setShutDownTime(double shutDownTime) { | |
| 1233 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setShutDownTime(shutDownTime); |
| 1234 | } | ||
| 1235 | |||
| 1236 | ✗ | void GeneratorFuelCellPowerModule::resetShutDownTime() { | |
| 1237 | ✗ | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetShutDownTime(); | |
| 1238 | ✗ | } | |
| 1239 | |||
| 1240 | 11 | bool GeneratorFuelCellPowerModule::setShutDownFuel(double shutDownFuel) { | |
| 1241 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setShutDownFuel(shutDownFuel); |
| 1242 | } | ||
| 1243 | |||
| 1244 | ✗ | void GeneratorFuelCellPowerModule::resetShutDownFuel() { | |
| 1245 | ✗ | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetShutDownFuel(); | |
| 1246 | ✗ | } | |
| 1247 | |||
| 1248 | 11 | bool GeneratorFuelCellPowerModule::setShutDownElectricityConsumption(double shutDownElectricityConsumption) { | |
| 1249 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setShutDownElectricityConsumption(shutDownElectricityConsumption); |
| 1250 | } | ||
| 1251 | |||
| 1252 | ✗ | void GeneratorFuelCellPowerModule::resetShutDownElectricityConsumption() { | |
| 1253 | ✗ | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetShutDownElectricityConsumption(); | |
| 1254 | ✗ | } | |
| 1255 | |||
| 1256 | 11 | bool GeneratorFuelCellPowerModule::setAncillaryElectricityConstantTerm(double ancillaryElectricityConstantTerm) { | |
| 1257 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setAncillaryElectricityConstantTerm(ancillaryElectricityConstantTerm); |
| 1258 | } | ||
| 1259 | |||
| 1260 | ✗ | void GeneratorFuelCellPowerModule::resetAncillaryElectricityConstantTerm() { | |
| 1261 | ✗ | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetAncillaryElectricityConstantTerm(); | |
| 1262 | ✗ | } | |
| 1263 | |||
| 1264 | 11 | bool GeneratorFuelCellPowerModule::setAncillaryElectricityLinearTerm(double ancillaryElectricityLinearTerm) { | |
| 1265 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setAncillaryElectricityLinearTerm(ancillaryElectricityLinearTerm); |
| 1266 | } | ||
| 1267 | |||
| 1268 | ✗ | void GeneratorFuelCellPowerModule::resetAncillaryElectricityLinearTerm() { | |
| 1269 | ✗ | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetAncillaryElectricityLinearTerm(); | |
| 1270 | ✗ | } | |
| 1271 | |||
| 1272 | 11 | bool GeneratorFuelCellPowerModule::setSkinLossCalculationMode(const std::string& skinLossCalculationMode) { | |
| 1273 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setSkinLossCalculationMode(skinLossCalculationMode); |
| 1274 | } | ||
| 1275 | |||
| 1276 | ✗ | void GeneratorFuelCellPowerModule::resetSkinLossCalculationMode() { | |
| 1277 | ✗ | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetSkinLossCalculationMode(); | |
| 1278 | ✗ | } | |
| 1279 | |||
| 1280 | 3 | bool GeneratorFuelCellPowerModule::setZone(const ThermalZone& zone) { | |
| 1281 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setZone(zone); |
| 1282 | } | ||
| 1283 | |||
| 1284 | ✗ | void GeneratorFuelCellPowerModule::resetZone() { | |
| 1285 | ✗ | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetZone(); | |
| 1286 | ✗ | } | |
| 1287 | |||
| 1288 | 11 | bool GeneratorFuelCellPowerModule::setSkinLossRadiativeFraction(double skinLossRadiativeFraction) { | |
| 1289 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setSkinLossRadiativeFraction(skinLossRadiativeFraction); |
| 1290 | } | ||
| 1291 | |||
| 1292 | ✗ | void GeneratorFuelCellPowerModule::resetSkinLossRadiativeFraction() { | |
| 1293 | ✗ | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetSkinLossRadiativeFraction(); | |
| 1294 | ✗ | } | |
| 1295 | |||
| 1296 | 11 | bool GeneratorFuelCellPowerModule::setConstantSkinLossRate(double constantSkinLossRate) { | |
| 1297 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setConstantSkinLossRate(constantSkinLossRate); |
| 1298 | } | ||
| 1299 | |||
| 1300 | ✗ | void GeneratorFuelCellPowerModule::resetConstantSkinLossRate() { | |
| 1301 | ✗ | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetConstantSkinLossRate(); | |
| 1302 | ✗ | } | |
| 1303 | |||
| 1304 | 11 | bool GeneratorFuelCellPowerModule::setSkinLossUFactorTimesAreaTerm(double skinLossUFactorTimesAreaTerm) { | |
| 1305 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setSkinLossUFactorTimesAreaTerm(skinLossUFactorTimesAreaTerm); |
| 1306 | } | ||
| 1307 | |||
| 1308 | ✗ | void GeneratorFuelCellPowerModule::resetSkinLossUFactorTimesAreaTerm() { | |
| 1309 | ✗ | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetSkinLossUFactorTimesAreaTerm(); | |
| 1310 | ✗ | } | |
| 1311 | |||
| 1312 | 9 | bool GeneratorFuelCellPowerModule::setSkinLossQuadraticCurve(const CurveQuadratic& quadraticCurves) { | |
| 1313 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setSkinLossQuadraticCurve(quadraticCurves); |
| 1314 | } | ||
| 1315 | |||
| 1316 | 1 | void GeneratorFuelCellPowerModule::resetSkinLossQuadraticCurve() { | |
| 1317 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetSkinLossQuadraticCurve(); |
| 1318 | 1 | } | |
| 1319 | |||
| 1320 | 11 | bool GeneratorFuelCellPowerModule::setDilutionAirFlowRate(double dilutionAirFlowRate) { | |
| 1321 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setDilutionAirFlowRate(dilutionAirFlowRate); |
| 1322 | } | ||
| 1323 | |||
| 1324 | ✗ | void GeneratorFuelCellPowerModule::resetDilutionAirFlowRate() { | |
| 1325 | ✗ | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetDilutionAirFlowRate(); | |
| 1326 | ✗ | } | |
| 1327 | |||
| 1328 | 11 | bool GeneratorFuelCellPowerModule::setStackHeatlosstoDilutionAir(double stackHeatlosstoDilutionAir) { | |
| 1329 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setStackHeatlosstoDilutionAir(stackHeatlosstoDilutionAir); |
| 1330 | } | ||
| 1331 | |||
| 1332 | ✗ | void GeneratorFuelCellPowerModule::resetStackHeatlosstoDilutionAir() { | |
| 1333 | ✗ | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetStackHeatlosstoDilutionAir(); | |
| 1334 | ✗ | } | |
| 1335 | |||
| 1336 | 3 | bool GeneratorFuelCellPowerModule::setDilutionInletAirNode(const Node& node) { | |
| 1337 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setDilutionInletAirNode(node); |
| 1338 | } | ||
| 1339 | |||
| 1340 | 1 | void GeneratorFuelCellPowerModule::resetDilutionInletAirNode() { | |
| 1341 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetDilutionInletAirNode(); |
| 1342 | 1 | } | |
| 1343 | |||
| 1344 | 3 | bool GeneratorFuelCellPowerModule::setDilutionOutletAirNode(const Node& node) { | |
| 1345 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setDilutionOutletAirNode(node); |
| 1346 | } | ||
| 1347 | |||
| 1348 | 1 | void GeneratorFuelCellPowerModule::resetDilutionOutletAirNode() { | |
| 1349 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetDilutionOutletAirNode(); |
| 1350 | 1 | } | |
| 1351 | |||
| 1352 | 11 | bool GeneratorFuelCellPowerModule::setMinimumOperatingPoint(double minimumOperatingPoint) { | |
| 1353 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setMinimumOperatingPoint(minimumOperatingPoint); |
| 1354 | } | ||
| 1355 | |||
| 1356 | ✗ | void GeneratorFuelCellPowerModule::resetMinimumOperatingPoint() { | |
| 1357 | ✗ | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetMinimumOperatingPoint(); | |
| 1358 | ✗ | } | |
| 1359 | |||
| 1360 | 11 | bool GeneratorFuelCellPowerModule::setMaximumOperatingPoint(double maximumOperatingPoint) { | |
| 1361 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->setMaximumOperatingPoint(maximumOperatingPoint); |
| 1362 | } | ||
| 1363 | |||
| 1364 | ✗ | void GeneratorFuelCellPowerModule::resetMaximumOperatingPoint() { | |
| 1365 | ✗ | getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->resetMaximumOperatingPoint(); | |
| 1366 | ✗ | } | |
| 1367 | |||
| 1368 | ✗ | boost::optional<GeneratorFuelCell> GeneratorFuelCellPowerModule::fuelCell() const { | |
| 1369 | ✗ | return getImpl<detail::GeneratorFuelCellPowerModule_Impl>()->fuelCell(); | |
| 1370 | } | ||
| 1371 | |||
| 1372 | /// @cond | ||
| 1373 | 29 | GeneratorFuelCellPowerModule::GeneratorFuelCellPowerModule(std::shared_ptr<detail::GeneratorFuelCellPowerModule_Impl> impl) | |
| 1374 |
1/1✓ Branch 3 taken 29 times.
|
29 | : ModelObject(std::move(impl)) {} |
| 1375 | /// @endcond | ||
| 1376 | |||
| 1377 | } // namespace model | ||
| 1378 | } // namespace openstudio | ||
| 1379 |