src/model/GeneratorFuelCellAuxiliaryHeater.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 "GeneratorFuelCellAuxiliaryHeater.hpp" | ||
| 12 | #include "GeneratorFuelCellAuxiliaryHeater_Impl.hpp" | ||
| 13 | |||
| 14 | #include "ThermalZone.hpp" | ||
| 15 | #include "ThermalZone_Impl.hpp" | ||
| 16 | |||
| 17 | #include <utilities/idd/IddFactory.hxx> | ||
| 18 | #include <utilities/idd/IddEnums.hxx> | ||
| 19 | #include <utilities/idd/OS_Generator_FuelCell_AuxiliaryHeater_FieldEnums.hxx> | ||
| 20 | |||
| 21 | #include "../utilities/units/Unit.hpp" | ||
| 22 | |||
| 23 | #include "../utilities/core/Assert.hpp" | ||
| 24 | |||
| 25 | namespace openstudio { | ||
| 26 | namespace model { | ||
| 27 | |||
| 28 | namespace detail { | ||
| 29 | |||
| 30 | 8 | GeneratorFuelCellAuxiliaryHeater_Impl::GeneratorFuelCellAuxiliaryHeater_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 31 | 8 | : ModelObject_Impl(idfObject, model, keepHandle) { | |
| 32 |
4/6✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 8 times.
✗ Branch 13 not taken.
|
8 | OS_ASSERT(idfObject.iddObject().type() == GeneratorFuelCellAuxiliaryHeater::iddObjectType()); |
| 33 | 8 | } | |
| 34 | |||
| 35 | ✗ | GeneratorFuelCellAuxiliaryHeater_Impl::GeneratorFuelCellAuxiliaryHeater_Impl(const openstudio::detail::WorkspaceObject_Impl& other, | |
| 36 | ✗ | Model_Impl* model, bool keepHandle) | |
| 37 | ✗ | : ModelObject_Impl(other, model, keepHandle) { | |
| 38 | ✗ | OS_ASSERT(other.iddObject().type() == GeneratorFuelCellAuxiliaryHeater::iddObjectType()); | |
| 39 | ✗ | } | |
| 40 | |||
| 41 | 6 | GeneratorFuelCellAuxiliaryHeater_Impl::GeneratorFuelCellAuxiliaryHeater_Impl(const GeneratorFuelCellAuxiliaryHeater_Impl& other, | |
| 42 | 6 | Model_Impl* model, bool keepHandle) | |
| 43 | 6 | : ModelObject_Impl(other, model, keepHandle) {} | |
| 44 | |||
| 45 | ✗ | const std::vector<std::string>& GeneratorFuelCellAuxiliaryHeater_Impl::outputVariableNames() const { | |
| 46 | ✗ | static const std::vector<std::string> result; | |
| 47 | ✗ | return result; | |
| 48 | } | ||
| 49 | |||
| 50 | ✗ | IddObjectType GeneratorFuelCellAuxiliaryHeater_Impl::iddObjectType() const { | |
| 51 | ✗ | return GeneratorFuelCellAuxiliaryHeater::iddObjectType(); | |
| 52 | } | ||
| 53 | |||
| 54 | ✗ | std::vector<IddObjectType> GeneratorFuelCellAuxiliaryHeater_Impl::allowableChildTypes() const { | |
| 55 | ✗ | std::vector<IddObjectType> result; | |
| 56 | ✗ | return result; | |
| 57 | } | ||
| 58 | |||
| 59 | // Returns the children object | ||
| 60 | ✗ | std::vector<ModelObject> GeneratorFuelCellAuxiliaryHeater_Impl::children() const { | |
| 61 | ✗ | std::vector<ModelObject> result; | |
| 62 | |||
| 63 | ✗ | return result; | |
| 64 | } | ||
| 65 | |||
| 66 | // Get the parent GeneratorFuelCell | ||
| 67 | ✗ | boost::optional<GeneratorFuelCell> GeneratorFuelCellAuxiliaryHeater_Impl::fuelCell() const { | |
| 68 | |||
| 69 | ✗ | boost::optional<GeneratorFuelCell> fc; | |
| 70 | // We use getModelObjectSources to check if more than one | ||
| 71 | ✗ | std::vector<GeneratorFuelCell> fcs = getObject<ModelObject>().getModelObjectSources<GeneratorFuelCell>(GeneratorFuelCell::iddObjectType()); | |
| 72 | |||
| 73 | ✗ | if (!fcs.empty()) { | |
| 74 | ✗ | if (fcs.size() > 1u) { | |
| 75 | ✗ | LOG(Error, briefDescription() << " is referenced by more than one GeneratorFuelCell, returning the first"); | |
| 76 | } | ||
| 77 | ✗ | fc = fcs[0]; | |
| 78 | } | ||
| 79 | ✗ | return fc; | |
| 80 | ✗ | } | |
| 81 | |||
| 82 | 4 | double GeneratorFuelCellAuxiliaryHeater_Impl::excessAirRatio() const { | |
| 83 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_AuxiliaryHeaterFields::ExcessAirRatio, true); |
| 84 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 85 | ✗ | LOG(Info, " does not have excessAirRatio."); | |
| 86 | ✗ | return 0; | |
| 87 | } | ||
| 88 |
1/1✓ Branch 1 taken 4 times.
|
4 | return value.get(); |
| 89 | } | ||
| 90 | |||
| 91 | 4 | double GeneratorFuelCellAuxiliaryHeater_Impl::ancillaryPowerConstantTerm() const { | |
| 92 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_AuxiliaryHeaterFields::AncillaryPowerConstantTerm, true); |
| 93 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 94 | ✗ | LOG(Info, " does not have ancillaryPowerConstantTerm."); | |
| 95 | ✗ | return 0; | |
| 96 | } | ||
| 97 |
1/1✓ Branch 1 taken 4 times.
|
4 | return value.get(); |
| 98 | } | ||
| 99 | |||
| 100 | 4 | double GeneratorFuelCellAuxiliaryHeater_Impl::ancillaryPowerLinearTerm() const { | |
| 101 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_AuxiliaryHeaterFields::AncillaryPowerLinearTerm, true); |
| 102 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 103 | ✗ | LOG(Info, " does not have ancillaryPowerLinearTerm."); | |
| 104 | ✗ | return 0; | |
| 105 | } | ||
| 106 |
1/1✓ Branch 1 taken 4 times.
|
4 | return value.get(); |
| 107 | } | ||
| 108 | |||
| 109 | 4 | double GeneratorFuelCellAuxiliaryHeater_Impl::skinLossUFactorTimesAreaValue() const { | |
| 110 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_AuxiliaryHeaterFields::SkinLossUFactorTimesAreaValue, true); |
| 111 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 112 | ✗ | LOG(Info, " does not have skinLossUFactorTimesAreaValue."); | |
| 113 | ✗ | return 0; | |
| 114 | } | ||
| 115 |
1/1✓ Branch 1 taken 4 times.
|
4 | return value.get(); |
| 116 | } | ||
| 117 | |||
| 118 | 6 | std::string GeneratorFuelCellAuxiliaryHeater_Impl::skinLossDestination() const { | |
| 119 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<std::string> value = getString(OS_Generator_FuelCell_AuxiliaryHeaterFields::SkinLossDestination, true); |
| 120 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
|
6 | if (!value) { |
| 121 | ✗ | LOG(Info, " does not have skinLossDestination."); | |
| 122 | ✗ | return ""; | |
| 123 | } | ||
| 124 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | return value.get(); |
| 125 | 6 | } | |
| 126 | |||
| 127 | 6 | boost::optional<ThermalZone> GeneratorFuelCellAuxiliaryHeater_Impl::zonetoReceiveSkinLosses() const { | |
| 128 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | return getObject<ModelObject>().getModelObjectTarget<ThermalZone>(OS_Generator_FuelCell_AuxiliaryHeaterFields::ZoneNametoReceiveSkinLosses); |
| 129 | } | ||
| 130 | |||
| 131 | 4 | std::string GeneratorFuelCellAuxiliaryHeater_Impl::heatingCapacityUnits() const { | |
| 132 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<std::string> value = getString(OS_Generator_FuelCell_AuxiliaryHeaterFields::HeatingCapacityUnits, true); |
| 133 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 134 | ✗ | LOG(Info, " does not have heatingCapacityUnits."); | |
| 135 | ✗ | return ""; | |
| 136 | } | ||
| 137 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | return value.get(); |
| 138 | 4 | } | |
| 139 | |||
| 140 | 4 | double GeneratorFuelCellAuxiliaryHeater_Impl::maximumHeatingCapacityinWatts() const { | |
| 141 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_AuxiliaryHeaterFields::MaximumHeatingCapacityinWatts, true); |
| 142 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 143 | ✗ | LOG(Info, " does not have maximumHeatingCapacityinWatts."); | |
| 144 | ✗ | return 0; | |
| 145 | } | ||
| 146 |
1/1✓ Branch 1 taken 4 times.
|
4 | return value.get(); |
| 147 | } | ||
| 148 | |||
| 149 | 4 | double GeneratorFuelCellAuxiliaryHeater_Impl::minimumHeatingCapacityinWatts() const { | |
| 150 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_AuxiliaryHeaterFields::MinimumHeatingCapacityinWatts, true); |
| 151 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
|
4 | if (!value) { |
| 152 | ✗ | LOG(Info, " does not have minimumHeatingCapacityinWatts."); | |
| 153 | ✗ | return 0; | |
| 154 | } | ||
| 155 |
1/1✓ Branch 1 taken 4 times.
|
4 | return value.get(); |
| 156 | } | ||
| 157 | |||
| 158 | 3 | double GeneratorFuelCellAuxiliaryHeater_Impl::minimumHeatingCapacityinKmolperSecond() const { | |
| 159 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_AuxiliaryHeaterFields::MaximumHeatingCapacityinKmolperSecond, true); |
| 160 |
1/2✓ Branch 1 taken 3 times.
✗ Branch 2 not taken.
|
3 | if (!value) { |
| 161 |
5/5✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
✓ Branch 13 taken 3 times.
|
3 | LOG(Info, " does not have minimumHeatingCapacityinKmolperSecond."); |
| 162 | 3 | return 0; | |
| 163 | } | ||
| 164 | ✗ | return value.get(); | |
| 165 | } | ||
| 166 | |||
| 167 | 3 | double GeneratorFuelCellAuxiliaryHeater_Impl::maximumHeatingCapacityinKmolperSecond() const { | |
| 168 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_Generator_FuelCell_AuxiliaryHeaterFields::MinimumHeatingCapacityinKmolperSecond, true); |
| 169 |
1/2✓ Branch 1 taken 3 times.
✗ Branch 2 not taken.
|
3 | if (!value) { |
| 170 |
5/5✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
✓ Branch 13 taken 3 times.
|
3 | LOG(Info, " does not have maximumHeatingCapacityinKmolperSecond."); |
| 171 | 3 | return 0; | |
| 172 | } | ||
| 173 | ✗ | return value.get(); | |
| 174 | } | ||
| 175 | |||
| 176 | 8 | bool GeneratorFuelCellAuxiliaryHeater_Impl::setExcessAirRatio(double excessAirRatio) { | |
| 177 | 8 | bool result = setDouble(OS_Generator_FuelCell_AuxiliaryHeaterFields::ExcessAirRatio, excessAirRatio); | |
| 178 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
|
8 | OS_ASSERT(result); |
| 179 | 8 | return result; | |
| 180 | } | ||
| 181 | |||
| 182 | ✗ | void GeneratorFuelCellAuxiliaryHeater_Impl::resetExcessAirRatio() { | |
| 183 | ✗ | bool result = setDouble(OS_Generator_FuelCell_AuxiliaryHeaterFields::ExcessAirRatio, 0); | |
| 184 | ✗ | OS_ASSERT(result); | |
| 185 | ✗ | } | |
| 186 | |||
| 187 | 8 | bool GeneratorFuelCellAuxiliaryHeater_Impl::setAncillaryPowerConstantTerm(double ancillaryPowerConstantTerm) { | |
| 188 | 8 | bool result = setDouble(OS_Generator_FuelCell_AuxiliaryHeaterFields::AncillaryPowerConstantTerm, ancillaryPowerConstantTerm); | |
| 189 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
|
8 | OS_ASSERT(result); |
| 190 | 8 | return result; | |
| 191 | } | ||
| 192 | |||
| 193 | ✗ | void GeneratorFuelCellAuxiliaryHeater_Impl::resetAncillaryPowerConstantTerm() { | |
| 194 | ✗ | bool result = setDouble(OS_Generator_FuelCell_AuxiliaryHeaterFields::AncillaryPowerConstantTerm, 0); | |
| 195 | ✗ | OS_ASSERT(result); | |
| 196 | ✗ | } | |
| 197 | |||
| 198 | 8 | bool GeneratorFuelCellAuxiliaryHeater_Impl::setAncillaryPowerLinearTerm(double ancillaryPowerLinearTerm) { | |
| 199 | 8 | bool result = setDouble(OS_Generator_FuelCell_AuxiliaryHeaterFields::AncillaryPowerLinearTerm, ancillaryPowerLinearTerm); | |
| 200 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
|
8 | OS_ASSERT(result); |
| 201 | 8 | return result; | |
| 202 | } | ||
| 203 | |||
| 204 | ✗ | void GeneratorFuelCellAuxiliaryHeater_Impl::resetAncillaryPowerLinearTerm() { | |
| 205 | ✗ | bool result = setDouble(OS_Generator_FuelCell_AuxiliaryHeaterFields::AncillaryPowerLinearTerm, 0); | |
| 206 | ✗ | OS_ASSERT(result); | |
| 207 | ✗ | } | |
| 208 | |||
| 209 | 8 | bool GeneratorFuelCellAuxiliaryHeater_Impl::setSkinLossUFactorTimesAreaValue(double skinLossUFactorTimesAreaValue) { | |
| 210 | 8 | bool result = setDouble(OS_Generator_FuelCell_AuxiliaryHeaterFields::SkinLossUFactorTimesAreaValue, skinLossUFactorTimesAreaValue); | |
| 211 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
|
8 | OS_ASSERT(result); |
| 212 | 8 | return result; | |
| 213 | } | ||
| 214 | |||
| 215 | ✗ | void GeneratorFuelCellAuxiliaryHeater_Impl::resetSkinLossUFactorTimesAreaValue() { | |
| 216 | ✗ | bool result = setDouble(OS_Generator_FuelCell_AuxiliaryHeaterFields::SkinLossUFactorTimesAreaValue, 0.5); | |
| 217 | ✗ | OS_ASSERT(result); | |
| 218 | ✗ | } | |
| 219 | |||
| 220 | 10 | bool GeneratorFuelCellAuxiliaryHeater_Impl::setSkinLossDestination(const std::string& skinLossDestination) { | |
| 221 | 10 | bool result = setString(OS_Generator_FuelCell_AuxiliaryHeaterFields::SkinLossDestination, skinLossDestination); | |
| 222 | 10 | return result; | |
| 223 | } | ||
| 224 | |||
| 225 | ✗ | void GeneratorFuelCellAuxiliaryHeater_Impl::resetSkinLossDestination() { | |
| 226 | ✗ | bool result = setString(OS_Generator_FuelCell_AuxiliaryHeaterFields::SkinLossDestination, "AirInletForFuelCell"); | |
| 227 | ✗ | OS_ASSERT(result); | |
| 228 | ✗ | } | |
| 229 | |||
| 230 | 1 | bool GeneratorFuelCellAuxiliaryHeater_Impl::setZonetoReceiveSkinLosses(const ThermalZone& zone) { | |
| 231 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | bool result = setPointer(OS_Generator_FuelCell_AuxiliaryHeaterFields::ZoneNametoReceiveSkinLosses, zone.handle()); |
| 232 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | this->setSkinLossDestination("SurroundingZone"); |
| 233 | 1 | return result; | |
| 234 | } | ||
| 235 | |||
| 236 | 1 | void GeneratorFuelCellAuxiliaryHeater_Impl::resetZonetoReceiveSkinLosses() { | |
| 237 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
3 | bool result = setString(OS_Generator_FuelCell_AuxiliaryHeaterFields::ZoneNametoReceiveSkinLosses, ""); |
| 238 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | this->setSkinLossDestination("AirInletForFuelCell"); |
| 239 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 240 | 1 | } | |
| 241 | |||
| 242 | 8 | bool GeneratorFuelCellAuxiliaryHeater_Impl::setHeatingCapacityUnits(const std::string& heatingCapacityUnits) { | |
| 243 | 8 | bool result = setString(OS_Generator_FuelCell_AuxiliaryHeaterFields::HeatingCapacityUnits, heatingCapacityUnits); | |
| 244 | 8 | return result; | |
| 245 | } | ||
| 246 | |||
| 247 | ✗ | void GeneratorFuelCellAuxiliaryHeater_Impl::resetHeatingCapacityUnits() { | |
| 248 | ✗ | bool result = setString(OS_Generator_FuelCell_AuxiliaryHeaterFields::HeatingCapacityUnits, "Watts"); | |
| 249 | ✗ | OS_ASSERT(result); | |
| 250 | ✗ | } | |
| 251 | |||
| 252 | 8 | bool GeneratorFuelCellAuxiliaryHeater_Impl::setMaximumHeatingCapacityinWatts(double maximumHeatingCapacityinWatts) { | |
| 253 | 8 | bool result = setDouble(OS_Generator_FuelCell_AuxiliaryHeaterFields::MaximumHeatingCapacityinWatts, maximumHeatingCapacityinWatts); | |
| 254 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
|
8 | OS_ASSERT(result); |
| 255 | 8 | return result; | |
| 256 | } | ||
| 257 | |||
| 258 | ✗ | void GeneratorFuelCellAuxiliaryHeater_Impl::resetMaximumHeatingCapacityinWatts() { | |
| 259 | ✗ | bool result = setDouble(OS_Generator_FuelCell_AuxiliaryHeaterFields::MaximumHeatingCapacityinWatts, 0); | |
| 260 | ✗ | OS_ASSERT(result); | |
| 261 | ✗ | } | |
| 262 | |||
| 263 | 8 | bool GeneratorFuelCellAuxiliaryHeater_Impl::setMinimumHeatingCapacityinWatts(double minimumHeatingCapacityinWatts) { | |
| 264 | 8 | bool result = setDouble(OS_Generator_FuelCell_AuxiliaryHeaterFields::MinimumHeatingCapacityinWatts, minimumHeatingCapacityinWatts); | |
| 265 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
|
8 | OS_ASSERT(result); |
| 266 | 8 | return result; | |
| 267 | } | ||
| 268 | |||
| 269 | ✗ | void GeneratorFuelCellAuxiliaryHeater_Impl::resetMinimumHeatingCapacityinWatts() { | |
| 270 | ✗ | bool result = setDouble(OS_Generator_FuelCell_AuxiliaryHeaterFields::MinimumHeatingCapacityinWatts, 0); | |
| 271 | ✗ | OS_ASSERT(result); | |
| 272 | ✗ | } | |
| 273 | |||
| 274 | ✗ | bool GeneratorFuelCellAuxiliaryHeater_Impl::setMaximumHeatingCapacityinKmolperSecond(double maximumHeatingCapacityinKmolperSecond) { | |
| 275 | bool result = | ||
| 276 | ✗ | setDouble(OS_Generator_FuelCell_AuxiliaryHeaterFields::MaximumHeatingCapacityinKmolperSecond, maximumHeatingCapacityinKmolperSecond); | |
| 277 | ✗ | OS_ASSERT(result); | |
| 278 | ✗ | return result; | |
| 279 | } | ||
| 280 | |||
| 281 | ✗ | void GeneratorFuelCellAuxiliaryHeater_Impl::resetMaximumHeatingCapacityinKmolperSecond() { | |
| 282 | ✗ | bool result = setDouble(OS_Generator_FuelCell_AuxiliaryHeaterFields::MaximumHeatingCapacityinKmolperSecond, 0); | |
| 283 | ✗ | OS_ASSERT(result); | |
| 284 | ✗ | } | |
| 285 | |||
| 286 | ✗ | bool GeneratorFuelCellAuxiliaryHeater_Impl::setMinimumHeatingCapacityinKmolperSecond(double minimumHeatingCapacityinKmolperSecond) { | |
| 287 | bool result = | ||
| 288 | ✗ | setDouble(OS_Generator_FuelCell_AuxiliaryHeaterFields::MinimumHeatingCapacityinKmolperSecond, minimumHeatingCapacityinKmolperSecond); | |
| 289 | ✗ | OS_ASSERT(result); | |
| 290 | ✗ | return result; | |
| 291 | } | ||
| 292 | |||
| 293 | ✗ | void GeneratorFuelCellAuxiliaryHeater_Impl::resetMinimumHeatingCapacityinKmolperSecond() { | |
| 294 | ✗ | bool result = setDouble(OS_Generator_FuelCell_AuxiliaryHeaterFields::MinimumHeatingCapacityinKmolperSecond, 0); | |
| 295 | ✗ | OS_ASSERT(result); | |
| 296 | ✗ | } | |
| 297 | |||
| 298 | } // namespace detail | ||
| 299 | |||
| 300 | 8 | GeneratorFuelCellAuxiliaryHeater::GeneratorFuelCellAuxiliaryHeater(const Model& model) | |
| 301 | 8 | : ModelObject(GeneratorFuelCellAuxiliaryHeater::iddObjectType(), model) { | |
| 302 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 8 times.
✗ Branch 5 not taken.
|
8 | OS_ASSERT(getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()); |
| 303 |
1/1✓ Branch 1 taken 8 times.
|
8 | setExcessAirRatio(0.0); |
| 304 |
1/1✓ Branch 1 taken 8 times.
|
8 | setAncillaryPowerConstantTerm(0.0); |
| 305 |
1/1✓ Branch 1 taken 8 times.
|
8 | setAncillaryPowerLinearTerm(0.0); |
| 306 |
1/1✓ Branch 1 taken 8 times.
|
8 | setSkinLossUFactorTimesAreaValue(0.5); |
| 307 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
16 | setSkinLossDestination("AirInletForFuelCell"); |
| 308 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
8 | setHeatingCapacityUnits("Watts"); |
| 309 |
1/1✓ Branch 1 taken 8 times.
|
8 | setMaximumHeatingCapacityinWatts(0.0); |
| 310 |
1/1✓ Branch 1 taken 8 times.
|
8 | setMinimumHeatingCapacityinWatts(0.0); |
| 311 | 8 | } | |
| 312 | |||
| 313 | 7744 | IddObjectType GeneratorFuelCellAuxiliaryHeater::iddObjectType() { | |
| 314 |
1/1✓ Branch 1 taken 7744 times.
|
7744 | return {IddObjectType::OS_Generator_FuelCell_AuxiliaryHeater}; |
| 315 | } | ||
| 316 | |||
| 317 | ✗ | std::vector<std::string> GeneratorFuelCellAuxiliaryHeater::skinLossDestinationValues() { | |
| 318 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Generator_FuelCell_AuxiliaryHeaterFields::SkinLossDestination); | |
| 319 | } | ||
| 320 | |||
| 321 | ✗ | std::vector<std::string> GeneratorFuelCellAuxiliaryHeater::heatingCapacityUnitsValues() { | |
| 322 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Generator_FuelCell_AuxiliaryHeaterFields::HeatingCapacityUnits); | |
| 323 | } | ||
| 324 | |||
| 325 | 4 | double GeneratorFuelCellAuxiliaryHeater::excessAirRatio() const { | |
| 326 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->excessAirRatio(); |
| 327 | } | ||
| 328 | |||
| 329 | 4 | double GeneratorFuelCellAuxiliaryHeater::ancillaryPowerConstantTerm() const { | |
| 330 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->ancillaryPowerConstantTerm(); |
| 331 | } | ||
| 332 | |||
| 333 | 4 | double GeneratorFuelCellAuxiliaryHeater::ancillaryPowerLinearTerm() const { | |
| 334 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->ancillaryPowerLinearTerm(); |
| 335 | } | ||
| 336 | |||
| 337 | 4 | double GeneratorFuelCellAuxiliaryHeater::skinLossUFactorTimesAreaValue() const { | |
| 338 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->skinLossUFactorTimesAreaValue(); |
| 339 | } | ||
| 340 | |||
| 341 | 6 | std::string GeneratorFuelCellAuxiliaryHeater::skinLossDestination() const { | |
| 342 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->skinLossDestination(); |
| 343 | } | ||
| 344 | |||
| 345 | 6 | boost::optional<ThermalZone> GeneratorFuelCellAuxiliaryHeater::zonetoReceiveSkinLosses() const { | |
| 346 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->zonetoReceiveSkinLosses(); |
| 347 | } | ||
| 348 | |||
| 349 | 4 | std::string GeneratorFuelCellAuxiliaryHeater::heatingCapacityUnits() const { | |
| 350 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->heatingCapacityUnits(); |
| 351 | } | ||
| 352 | |||
| 353 | 4 | double GeneratorFuelCellAuxiliaryHeater::maximumHeatingCapacityinWatts() const { | |
| 354 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->maximumHeatingCapacityinWatts(); |
| 355 | } | ||
| 356 | |||
| 357 | 4 | double GeneratorFuelCellAuxiliaryHeater::minimumHeatingCapacityinWatts() const { | |
| 358 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->minimumHeatingCapacityinWatts(); |
| 359 | } | ||
| 360 | |||
| 361 | 3 | double GeneratorFuelCellAuxiliaryHeater::maximumHeatingCapacityinKmolperSecond() const { | |
| 362 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->maximumHeatingCapacityinKmolperSecond(); |
| 363 | } | ||
| 364 | |||
| 365 | 3 | double GeneratorFuelCellAuxiliaryHeater::minimumHeatingCapacityinKmolperSecond() const { | |
| 366 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->minimumHeatingCapacityinKmolperSecond(); |
| 367 | } | ||
| 368 | |||
| 369 | 8 | bool GeneratorFuelCellAuxiliaryHeater::setExcessAirRatio(double excessAirRatio) { | |
| 370 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->setExcessAirRatio(excessAirRatio); |
| 371 | } | ||
| 372 | |||
| 373 | ✗ | void GeneratorFuelCellAuxiliaryHeater::resetExcessAirRatio() { | |
| 374 | ✗ | getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->resetExcessAirRatio(); | |
| 375 | ✗ | } | |
| 376 | |||
| 377 | 8 | bool GeneratorFuelCellAuxiliaryHeater::setAncillaryPowerConstantTerm(double ancillaryPowerConstantTerm) { | |
| 378 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->setAncillaryPowerConstantTerm(ancillaryPowerConstantTerm); |
| 379 | } | ||
| 380 | |||
| 381 | ✗ | void GeneratorFuelCellAuxiliaryHeater::resetAncillaryPowerConstantTerm() { | |
| 382 | ✗ | getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->resetAncillaryPowerConstantTerm(); | |
| 383 | ✗ | } | |
| 384 | |||
| 385 | 8 | bool GeneratorFuelCellAuxiliaryHeater::setAncillaryPowerLinearTerm(double ancillaryPowerLinearTerm) { | |
| 386 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->setAncillaryPowerLinearTerm(ancillaryPowerLinearTerm); |
| 387 | } | ||
| 388 | |||
| 389 | ✗ | void GeneratorFuelCellAuxiliaryHeater::resetAncillaryPowerLinearTerm() { | |
| 390 | ✗ | getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->resetAncillaryPowerLinearTerm(); | |
| 391 | ✗ | } | |
| 392 | |||
| 393 | 8 | bool GeneratorFuelCellAuxiliaryHeater::setSkinLossUFactorTimesAreaValue(double skinLossUFactorTimesAreaValue) { | |
| 394 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->setSkinLossUFactorTimesAreaValue(skinLossUFactorTimesAreaValue); |
| 395 | } | ||
| 396 | |||
| 397 | ✗ | void GeneratorFuelCellAuxiliaryHeater::resetSkinLossUFactorTimesAreaValue() { | |
| 398 | ✗ | getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->resetSkinLossUFactorTimesAreaValue(); | |
| 399 | ✗ | } | |
| 400 | |||
| 401 | 8 | bool GeneratorFuelCellAuxiliaryHeater::setSkinLossDestination(const std::string& skinLossDestination) { | |
| 402 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->setSkinLossDestination(skinLossDestination); |
| 403 | } | ||
| 404 | |||
| 405 | ✗ | void GeneratorFuelCellAuxiliaryHeater::resetSkinLossDestination() { | |
| 406 | ✗ | getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->resetSkinLossDestination(); | |
| 407 | ✗ | } | |
| 408 | |||
| 409 | 1 | bool GeneratorFuelCellAuxiliaryHeater::setZonetoReceiveSkinLosses(const ThermalZone& zone) { | |
| 410 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->setZonetoReceiveSkinLosses(zone); |
| 411 | } | ||
| 412 | |||
| 413 | 1 | void GeneratorFuelCellAuxiliaryHeater::resetZonetoReceiveSkinLosses() { | |
| 414 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->resetZonetoReceiveSkinLosses(); |
| 415 | 1 | } | |
| 416 | |||
| 417 | 8 | bool GeneratorFuelCellAuxiliaryHeater::setHeatingCapacityUnits(const std::string& heatingCapacityUnits) { | |
| 418 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->setHeatingCapacityUnits(heatingCapacityUnits); |
| 419 | } | ||
| 420 | |||
| 421 | ✗ | void GeneratorFuelCellAuxiliaryHeater::resetHeatingCapacityUnits() { | |
| 422 | ✗ | getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->resetHeatingCapacityUnits(); | |
| 423 | ✗ | } | |
| 424 | |||
| 425 | 8 | bool GeneratorFuelCellAuxiliaryHeater::setMaximumHeatingCapacityinWatts(double maximumHeatingCapacityinWatts) { | |
| 426 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->setMaximumHeatingCapacityinWatts(maximumHeatingCapacityinWatts); |
| 427 | } | ||
| 428 | |||
| 429 | ✗ | void GeneratorFuelCellAuxiliaryHeater::resetMaximumHeatingCapacityinWatts() { | |
| 430 | ✗ | getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->resetMaximumHeatingCapacityinWatts(); | |
| 431 | ✗ | } | |
| 432 | |||
| 433 | 8 | bool GeneratorFuelCellAuxiliaryHeater::setMinimumHeatingCapacityinWatts(double minimumHeatingCapacityinWatts) { | |
| 434 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->setMinimumHeatingCapacityinWatts(minimumHeatingCapacityinWatts); |
| 435 | } | ||
| 436 | |||
| 437 | ✗ | void GeneratorFuelCellAuxiliaryHeater::resetMinimumHeatingCapacityinWatts() { | |
| 438 | ✗ | getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->resetMinimumHeatingCapacityinWatts(); | |
| 439 | ✗ | } | |
| 440 | |||
| 441 | ✗ | bool GeneratorFuelCellAuxiliaryHeater::setMaximumHeatingCapacityinKmolperSecond(double maximumHeatingCapacityinKmolperSecond) { | |
| 442 | ✗ | return getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->setMaximumHeatingCapacityinKmolperSecond(maximumHeatingCapacityinKmolperSecond); | |
| 443 | } | ||
| 444 | |||
| 445 | ✗ | void GeneratorFuelCellAuxiliaryHeater::resetMaximumHeatingCapacityinKmolperSecond() { | |
| 446 | ✗ | getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->resetMaximumHeatingCapacityinKmolperSecond(); | |
| 447 | ✗ | } | |
| 448 | |||
| 449 | ✗ | bool GeneratorFuelCellAuxiliaryHeater::setMinimumHeatingCapacityinKmolperSecond(double minimumHeatingCapacityinKmolperSecond) { | |
| 450 | ✗ | return getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->setMinimumHeatingCapacityinKmolperSecond(minimumHeatingCapacityinKmolperSecond); | |
| 451 | } | ||
| 452 | |||
| 453 | ✗ | void GeneratorFuelCellAuxiliaryHeater::resetMinimumHeatingCapacityinKmolperSecond() { | |
| 454 | ✗ | getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->resetMinimumHeatingCapacityinKmolperSecond(); | |
| 455 | ✗ | } | |
| 456 | |||
| 457 | ✗ | boost::optional<GeneratorFuelCell> GeneratorFuelCellAuxiliaryHeater::fuelCell() const { | |
| 458 | ✗ | return getImpl<detail::GeneratorFuelCellAuxiliaryHeater_Impl>()->fuelCell(); | |
| 459 | } | ||
| 460 | |||
| 461 | /// @cond | ||
| 462 | 16 | GeneratorFuelCellAuxiliaryHeater::GeneratorFuelCellAuxiliaryHeater(std::shared_ptr<detail::GeneratorFuelCellAuxiliaryHeater_Impl> impl) | |
| 463 |
1/1✓ Branch 3 taken 16 times.
|
16 | : ModelObject(std::move(impl)) {} |
| 464 | /// @endcond | ||
| 465 | |||
| 466 | } // namespace model | ||
| 467 | } // namespace openstudio | ||
| 468 |