src/model/ChillerAbsorptionIndirect.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 "ChillerAbsorptionIndirect.hpp" | ||
| 7 | #include "ChillerAbsorptionIndirect_Impl.hpp" | ||
| 8 | #include "Model.hpp" | ||
| 9 | #include "Model_Impl.hpp" | ||
| 10 | #include "Curve.hpp" | ||
| 11 | #include "Curve_Impl.hpp" | ||
| 12 | #include "CurveCubic.hpp" | ||
| 13 | #include "CurveCubic_Impl.hpp" | ||
| 14 | #include "CurveQuadratic.hpp" | ||
| 15 | #include "CurveQuadratic_Impl.hpp" | ||
| 16 | #include "Node.hpp" | ||
| 17 | #include "PlantLoop.hpp" | ||
| 18 | |||
| 19 | #include "../utilities/core/Assert.hpp" | ||
| 20 | #include "../utilities/data/DataEnums.hpp" | ||
| 21 | |||
| 22 | #include <utilities/idd/IddFactory.hxx> | ||
| 23 | #include <utilities/idd/OS_Chiller_Absorption_Indirect_FieldEnums.hxx> | ||
| 24 | |||
| 25 | namespace openstudio { | ||
| 26 | namespace model { | ||
| 27 | |||
| 28 | namespace detail { | ||
| 29 | |||
| 30 | 4 | ChillerAbsorptionIndirect_Impl::ChillerAbsorptionIndirect_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 31 | 4 | : WaterToWaterComponent_Impl(idfObject, model, keepHandle) { | |
| 32 |
4/6✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 4 times.
✗ Branch 13 not taken.
|
4 | OS_ASSERT(idfObject.iddObject().type() == ChillerAbsorptionIndirect::iddObjectType()); |
| 33 | 4 | } | |
| 34 | |||
| 35 | ✗ | ChillerAbsorptionIndirect_Impl::ChillerAbsorptionIndirect_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, | |
| 36 | ✗ | bool keepHandle) | |
| 37 | ✗ | : WaterToWaterComponent_Impl(other, model, keepHandle) { | |
| 38 | ✗ | OS_ASSERT(other.iddObject().type() == ChillerAbsorptionIndirect::iddObjectType()); | |
| 39 | ✗ | } | |
| 40 | |||
| 41 | ✗ | ChillerAbsorptionIndirect_Impl::ChillerAbsorptionIndirect_Impl(const ChillerAbsorptionIndirect_Impl& other, Model_Impl* model, bool keepHandle) | |
| 42 | ✗ | : WaterToWaterComponent_Impl(other, model, keepHandle) {} | |
| 43 | |||
| 44 | ✗ | const std::vector<std::string>& ChillerAbsorptionIndirect_Impl::outputVariableNames() const { | |
| 45 | // static until ModelObject return type is changed for outputvariableNames | ||
| 46 | static const std::vector<std::string> result{ | ||
| 47 | |||
| 48 | // Common variables | ||
| 49 | "Chiller Electricity Rate", "Chiller Electricity Energy", "Chiller Evaporator Cooling Rate", "Chiller Evaporator Cooling Energy", | ||
| 50 | "Chiller Evaporator Inlet Temperature", "Chiller Evaporator Outlet Temperature", "Chiller Evaporator Mass Flow Rate", | ||
| 51 | "Chiller Condenser Heat Transfer Rate", "Chiller Condenser Heat Transfer Energy", "Chiller Condenser Inlet Temperature", | ||
| 52 | "Chiller Condenser Outlet Temperature", "Chiller Condenser Mass Flow Rate", "Chiller COP", "Chiller Part-Load Ratio", "Chiller Cycling Ratio", | ||
| 53 | |||
| 54 | // TODO: add proper tests once the ModelObject return type is changed. | ||
| 55 | // Generator = Hot Water | ||
| 56 | //if (this->generatorHeatSourceType() == "HotWater") | ||
| 57 | //{ | ||
| 58 | "Chiller Source Hot Water Rate", "Chiller Source Hot Water Energy", "Chiller Hot Water Mass Flow Rate", | ||
| 59 | //} | ||
| 60 | // | ||
| 61 | // Generator = Steam | ||
| 62 | // generatorHeatSourceType == 'Steam' | ||
| 63 | //if (this->generatorHeatSourceType() == "Steam") | ||
| 64 | //{ | ||
| 65 | "Chiller Source Steam Rate", "Chiller Source Steam Energy", "Chiller Steam Mass Flow Rate", "Chiller Steam Heat Loss Rate" | ||
| 66 | |||
| 67 | ✗ | }; | |
| 68 | ✗ | return result; | |
| 69 | ✗ | } | |
| 70 | |||
| 71 | ✗ | IddObjectType ChillerAbsorptionIndirect_Impl::iddObjectType() const { | |
| 72 | ✗ | return ChillerAbsorptionIndirect::iddObjectType(); | |
| 73 | } | ||
| 74 | |||
| 75 | ✗ | boost::optional<double> ChillerAbsorptionIndirect_Impl::nominalCapacity() const { | |
| 76 | ✗ | return getDouble(OS_Chiller_Absorption_IndirectFields::NominalCapacity, true); | |
| 77 | } | ||
| 78 | |||
| 79 | ✗ | bool ChillerAbsorptionIndirect_Impl::isNominalCapacityAutosized() const { | |
| 80 | ✗ | bool result = false; | |
| 81 | ✗ | boost::optional<std::string> value = getString(OS_Chiller_Absorption_IndirectFields::NominalCapacity, true); | |
| 82 | ✗ | if (value) { | |
| 83 | ✗ | result = openstudio::istringEqual(value.get(), "autosize"); | |
| 84 | } | ||
| 85 | ✗ | return result; | |
| 86 | ✗ | } | |
| 87 | |||
| 88 | ✗ | boost::optional<double> ChillerAbsorptionIndirect_Impl::nominalPumpingPower() const { | |
| 89 | ✗ | return getDouble(OS_Chiller_Absorption_IndirectFields::NominalPumpingPower, true); | |
| 90 | } | ||
| 91 | |||
| 92 | ✗ | bool ChillerAbsorptionIndirect_Impl::isNominalPumpingPowerAutosized() const { | |
| 93 | ✗ | bool result = false; | |
| 94 | ✗ | boost::optional<std::string> value = getString(OS_Chiller_Absorption_IndirectFields::NominalPumpingPower, true); | |
| 95 | ✗ | if (value) { | |
| 96 | ✗ | result = openstudio::istringEqual(value.get(), "autosize"); | |
| 97 | } | ||
| 98 | ✗ | return result; | |
| 99 | ✗ | } | |
| 100 | |||
| 101 | ✗ | double ChillerAbsorptionIndirect_Impl::minimumPartLoadRatio() const { | |
| 102 | ✗ | boost::optional<double> value = getDouble(OS_Chiller_Absorption_IndirectFields::MinimumPartLoadRatio, true); | |
| 103 | ✗ | OS_ASSERT(value); | |
| 104 | ✗ | return value.get(); | |
| 105 | } | ||
| 106 | |||
| 107 | ✗ | double ChillerAbsorptionIndirect_Impl::maximumPartLoadRatio() const { | |
| 108 | ✗ | boost::optional<double> value = getDouble(OS_Chiller_Absorption_IndirectFields::MaximumPartLoadRatio, true); | |
| 109 | ✗ | OS_ASSERT(value); | |
| 110 | ✗ | return value.get(); | |
| 111 | } | ||
| 112 | |||
| 113 | ✗ | double ChillerAbsorptionIndirect_Impl::optimumPartLoadRatio() const { | |
| 114 | ✗ | boost::optional<double> value = getDouble(OS_Chiller_Absorption_IndirectFields::OptimumPartLoadRatio, true); | |
| 115 | ✗ | OS_ASSERT(value); | |
| 116 | ✗ | return value.get(); | |
| 117 | } | ||
| 118 | |||
| 119 | ✗ | double ChillerAbsorptionIndirect_Impl::designCondenserInletTemperature() const { | |
| 120 | ✗ | boost::optional<double> value = getDouble(OS_Chiller_Absorption_IndirectFields::DesignCondenserInletTemperature, true); | |
| 121 | ✗ | OS_ASSERT(value); | |
| 122 | ✗ | return value.get(); | |
| 123 | } | ||
| 124 | |||
| 125 | ✗ | double ChillerAbsorptionIndirect_Impl::condenserInletTemperatureLowerLimit() const { | |
| 126 | ✗ | boost::optional<double> value = getDouble(OS_Chiller_Absorption_IndirectFields::CondenserInletTemperatureLowerLimit, true); | |
| 127 | ✗ | OS_ASSERT(value); | |
| 128 | ✗ | return value.get(); | |
| 129 | } | ||
| 130 | |||
| 131 | ✗ | double ChillerAbsorptionIndirect_Impl::chilledWaterOutletTemperatureLowerLimit() const { | |
| 132 | ✗ | boost::optional<double> value = getDouble(OS_Chiller_Absorption_IndirectFields::ChilledWaterOutletTemperatureLowerLimit, true); | |
| 133 | ✗ | OS_ASSERT(value); | |
| 134 | ✗ | return value.get(); | |
| 135 | } | ||
| 136 | |||
| 137 | ✗ | boost::optional<double> ChillerAbsorptionIndirect_Impl::designChilledWaterFlowRate() const { | |
| 138 | ✗ | return getDouble(OS_Chiller_Absorption_IndirectFields::DesignChilledWaterFlowRate, true); | |
| 139 | } | ||
| 140 | |||
| 141 | ✗ | bool ChillerAbsorptionIndirect_Impl::isDesignChilledWaterFlowRateAutosized() const { | |
| 142 | ✗ | bool result = false; | |
| 143 | ✗ | boost::optional<std::string> value = getString(OS_Chiller_Absorption_IndirectFields::DesignChilledWaterFlowRate, true); | |
| 144 | ✗ | if (value) { | |
| 145 | ✗ | result = openstudio::istringEqual(value.get(), "autosize"); | |
| 146 | } | ||
| 147 | ✗ | return result; | |
| 148 | ✗ | } | |
| 149 | |||
| 150 | ✗ | boost::optional<double> ChillerAbsorptionIndirect_Impl::designCondenserWaterFlowRate() const { | |
| 151 | ✗ | return getDouble(OS_Chiller_Absorption_IndirectFields::DesignCondenserWaterFlowRate, true); | |
| 152 | } | ||
| 153 | |||
| 154 | ✗ | bool ChillerAbsorptionIndirect_Impl::isDesignCondenserWaterFlowRateAutosized() const { | |
| 155 | ✗ | bool result = false; | |
| 156 | ✗ | boost::optional<std::string> value = getString(OS_Chiller_Absorption_IndirectFields::DesignCondenserWaterFlowRate, true); | |
| 157 | ✗ | if (value) { | |
| 158 | ✗ | result = openstudio::istringEqual(value.get(), "autosize"); | |
| 159 | } | ||
| 160 | ✗ | return result; | |
| 161 | ✗ | } | |
| 162 | |||
| 163 | ✗ | std::string ChillerAbsorptionIndirect_Impl::chillerFlowMode() const { | |
| 164 | ✗ | boost::optional<std::string> value = getString(OS_Chiller_Absorption_IndirectFields::ChillerFlowMode, true); | |
| 165 | ✗ | OS_ASSERT(value); | |
| 166 | ✗ | return value.get(); | |
| 167 | ✗ | } | |
| 168 | |||
| 169 | ✗ | Curve ChillerAbsorptionIndirect_Impl::generatorHeatInputFunctionofPartLoadRatioCurve() const { | |
| 170 | ✗ | boost::optional<Curve> value = optionalGeneratorHeatInputFunctionofPartLoadRatioCurve(); | |
| 171 | ✗ | if (!value) { | |
| 172 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Generator Heat Input Functionof Part Load Ratio Curve attached."); | |
| 173 | } | ||
| 174 | ✗ | return value.get(); | |
| 175 | ✗ | } | |
| 176 | |||
| 177 | ✗ | Curve ChillerAbsorptionIndirect_Impl::pumpElectricInputFunctionofPartLoadRatioCurve() const { | |
| 178 | ✗ | boost::optional<Curve> value = optionalPumpElectricInputFunctionofPartLoadRatioCurve(); | |
| 179 | ✗ | if (!value) { | |
| 180 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Pump Electric Input Functionof Part Load Ratio Curve attached."); | |
| 181 | } | ||
| 182 | ✗ | return value.get(); | |
| 183 | ✗ | } | |
| 184 | |||
| 185 | ✗ | Curve ChillerAbsorptionIndirect_Impl::capacityCorrectionFunctionofCondenserTemperatureCurve() const { | |
| 186 | ✗ | boost::optional<Curve> value = optionalCapacityCorrectionFunctionofCondenserTemperatureCurve(); | |
| 187 | ✗ | if (!value) { | |
| 188 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Capacity Correction Functionof Condenser Temperature Curve attached."); | |
| 189 | } | ||
| 190 | ✗ | return value.get(); | |
| 191 | ✗ | } | |
| 192 | |||
| 193 | ✗ | Curve ChillerAbsorptionIndirect_Impl::capacityCorrectionFunctionofChilledWaterTemperatureCurve() const { | |
| 194 | ✗ | boost::optional<Curve> value = optionalCapacityCorrectionFunctionofChilledWaterTemperatureCurve(); | |
| 195 | ✗ | if (!value) { | |
| 196 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Capacity Correction Functionof Chilled Water Temperature Curve attached."); | |
| 197 | } | ||
| 198 | ✗ | return value.get(); | |
| 199 | ✗ | } | |
| 200 | |||
| 201 | ✗ | Curve ChillerAbsorptionIndirect_Impl::capacityCorrectionFunctionofGeneratorTemperatureCurve() const { | |
| 202 | ✗ | boost::optional<Curve> value = optionalCapacityCorrectionFunctionofGeneratorTemperatureCurve(); | |
| 203 | ✗ | if (!value) { | |
| 204 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Capacity Correction Functionof Generator Temperature Curve attached."); | |
| 205 | } | ||
| 206 | ✗ | return value.get(); | |
| 207 | ✗ | } | |
| 208 | |||
| 209 | ✗ | Curve ChillerAbsorptionIndirect_Impl::generatorHeatInputCorrectionFunctionofCondenserTemperatureCurve() const { | |
| 210 | ✗ | boost::optional<Curve> value = optionalGeneratorHeatInputCorrectionFunctionofCondenserTemperatureCurve(); | |
| 211 | ✗ | if (!value) { | |
| 212 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Generator Heat Input Correction Functionof Condenser Temperature Curve attached."); | |
| 213 | } | ||
| 214 | ✗ | return value.get(); | |
| 215 | ✗ | } | |
| 216 | |||
| 217 | ✗ | Curve ChillerAbsorptionIndirect_Impl::generatorHeatInputCorrectionFunctionofChilledWaterTemperatureCurve() const { | |
| 218 | ✗ | boost::optional<Curve> value = optionalGeneratorHeatInputCorrectionFunctionofChilledWaterTemperatureCurve(); | |
| 219 | ✗ | if (!value) { | |
| 220 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Generator Heat Input Correction Functionof Chilled Water Temperature Curve attached."); | |
| 221 | } | ||
| 222 | ✗ | return value.get(); | |
| 223 | ✗ | } | |
| 224 | |||
| 225 | 5 | std::string ChillerAbsorptionIndirect_Impl::generatorHeatSourceType() const { | |
| 226 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<std::string> value = getString(OS_Chiller_Absorption_IndirectFields::GeneratorHeatSourceType, true); |
| 227 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 228 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
10 | return value.get(); |
| 229 | 5 | } | |
| 230 | |||
| 231 | ✗ | boost::optional<double> ChillerAbsorptionIndirect_Impl::designGeneratorFluidFlowRate() const { | |
| 232 | ✗ | return getDouble(OS_Chiller_Absorption_IndirectFields::DesignGeneratorFluidFlowRate, true); | |
| 233 | } | ||
| 234 | |||
| 235 | ✗ | bool ChillerAbsorptionIndirect_Impl::isDesignGeneratorFluidFlowRateAutosized() const { | |
| 236 | ✗ | bool result = false; | |
| 237 | ✗ | boost::optional<std::string> value = getString(OS_Chiller_Absorption_IndirectFields::DesignGeneratorFluidFlowRate, true); | |
| 238 | ✗ | if (value) { | |
| 239 | ✗ | result = openstudio::istringEqual(value.get(), "autosize"); | |
| 240 | } | ||
| 241 | ✗ | return result; | |
| 242 | ✗ | } | |
| 243 | |||
| 244 | ✗ | double ChillerAbsorptionIndirect_Impl::temperatureLowerLimitGeneratorInlet() const { | |
| 245 | ✗ | boost::optional<double> value = getDouble(OS_Chiller_Absorption_IndirectFields::TemperatureLowerLimitGeneratorInlet, true); | |
| 246 | ✗ | OS_ASSERT(value); | |
| 247 | ✗ | return value.get(); | |
| 248 | } | ||
| 249 | |||
| 250 | ✗ | double ChillerAbsorptionIndirect_Impl::degreeofSubcoolinginSteamGenerator() const { | |
| 251 | ✗ | boost::optional<double> value = getDouble(OS_Chiller_Absorption_IndirectFields::DegreeofSubcoolinginSteamGenerator, true); | |
| 252 | ✗ | OS_ASSERT(value); | |
| 253 | ✗ | return value.get(); | |
| 254 | } | ||
| 255 | |||
| 256 | ✗ | double ChillerAbsorptionIndirect_Impl::degreeofSubcoolinginSteamCondensateLoop() const { | |
| 257 | ✗ | boost::optional<double> value = getDouble(OS_Chiller_Absorption_IndirectFields::DegreeofSubcoolinginSteamCondensateLoop, true); | |
| 258 | ✗ | OS_ASSERT(value); | |
| 259 | ✗ | return value.get(); | |
| 260 | } | ||
| 261 | |||
| 262 | ✗ | double ChillerAbsorptionIndirect_Impl::sizingFactor() const { | |
| 263 | ✗ | boost::optional<double> value = getDouble(OS_Chiller_Absorption_IndirectFields::SizingFactor, true); | |
| 264 | ✗ | OS_ASSERT(value); | |
| 265 | ✗ | return value.get(); | |
| 266 | } | ||
| 267 | |||
| 268 | ✗ | bool ChillerAbsorptionIndirect_Impl::setNominalCapacity(boost::optional<double> nominalCapacity) { | |
| 269 | ✗ | bool result(false); | |
| 270 | ✗ | if (nominalCapacity) { | |
| 271 | ✗ | result = setDouble(OS_Chiller_Absorption_IndirectFields::NominalCapacity, nominalCapacity.get()); | |
| 272 | } | ||
| 273 | ✗ | return result; | |
| 274 | } | ||
| 275 | |||
| 276 | 4 | void ChillerAbsorptionIndirect_Impl::autosizeNominalCapacity() { | |
| 277 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | bool result = setString(OS_Chiller_Absorption_IndirectFields::NominalCapacity, "autosize"); |
| 278 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 279 | 4 | } | |
| 280 | |||
| 281 | ✗ | bool ChillerAbsorptionIndirect_Impl::setNominalPumpingPower(boost::optional<double> nominalPumpingPower) { | |
| 282 | ✗ | bool result(false); | |
| 283 | ✗ | if (nominalPumpingPower) { | |
| 284 | ✗ | result = setDouble(OS_Chiller_Absorption_IndirectFields::NominalPumpingPower, nominalPumpingPower.get()); | |
| 285 | } | ||
| 286 | ✗ | return result; | |
| 287 | } | ||
| 288 | |||
| 289 | 4 | void ChillerAbsorptionIndirect_Impl::autosizeNominalPumpingPower() { | |
| 290 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | bool result = setString(OS_Chiller_Absorption_IndirectFields::NominalPumpingPower, "autosize"); |
| 291 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 292 | 4 | } | |
| 293 | |||
| 294 | 4 | bool ChillerAbsorptionIndirect_Impl::setMinimumPartLoadRatio(double minimumPartLoadRatio) { | |
| 295 | 4 | bool result = setDouble(OS_Chiller_Absorption_IndirectFields::MinimumPartLoadRatio, minimumPartLoadRatio); | |
| 296 | 4 | return result; | |
| 297 | } | ||
| 298 | |||
| 299 | 4 | bool ChillerAbsorptionIndirect_Impl::setMaximumPartLoadRatio(double maximumPartLoadRatio) { | |
| 300 | 4 | bool result = setDouble(OS_Chiller_Absorption_IndirectFields::MaximumPartLoadRatio, maximumPartLoadRatio); | |
| 301 | 4 | return result; | |
| 302 | } | ||
| 303 | |||
| 304 | 4 | bool ChillerAbsorptionIndirect_Impl::setOptimumPartLoadRatio(double optimumPartLoadRatio) { | |
| 305 | 4 | bool result = setDouble(OS_Chiller_Absorption_IndirectFields::OptimumPartLoadRatio, optimumPartLoadRatio); | |
| 306 | 4 | return result; | |
| 307 | } | ||
| 308 | |||
| 309 | 4 | bool ChillerAbsorptionIndirect_Impl::setDesignCondenserInletTemperature(double designCondenserInletTemperature) { | |
| 310 | 4 | bool result = setDouble(OS_Chiller_Absorption_IndirectFields::DesignCondenserInletTemperature, designCondenserInletTemperature); | |
| 311 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 312 | 4 | return result; | |
| 313 | } | ||
| 314 | |||
| 315 | 4 | bool ChillerAbsorptionIndirect_Impl::setCondenserInletTemperatureLowerLimit(double condenserInletTemperatureLowerLimit) { | |
| 316 | 4 | bool result = setDouble(OS_Chiller_Absorption_IndirectFields::CondenserInletTemperatureLowerLimit, condenserInletTemperatureLowerLimit); | |
| 317 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 318 | 4 | return result; | |
| 319 | } | ||
| 320 | |||
| 321 | 4 | bool ChillerAbsorptionIndirect_Impl::setChilledWaterOutletTemperatureLowerLimit(double chilledWaterOutletTemperatureLowerLimit) { | |
| 322 | 4 | bool result = setDouble(OS_Chiller_Absorption_IndirectFields::ChilledWaterOutletTemperatureLowerLimit, chilledWaterOutletTemperatureLowerLimit); | |
| 323 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 324 | 4 | return result; | |
| 325 | } | ||
| 326 | |||
| 327 | ✗ | bool ChillerAbsorptionIndirect_Impl::setDesignChilledWaterFlowRate(boost::optional<double> designChilledWaterFlowRate) { | |
| 328 | ✗ | bool result(false); | |
| 329 | ✗ | if (designChilledWaterFlowRate) { | |
| 330 | ✗ | result = setDouble(OS_Chiller_Absorption_IndirectFields::DesignChilledWaterFlowRate, designChilledWaterFlowRate.get()); | |
| 331 | } | ||
| 332 | ✗ | return result; | |
| 333 | } | ||
| 334 | |||
| 335 | 4 | void ChillerAbsorptionIndirect_Impl::autosizeDesignChilledWaterFlowRate() { | |
| 336 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | bool result = setString(OS_Chiller_Absorption_IndirectFields::DesignChilledWaterFlowRate, "autosize"); |
| 337 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 338 | 4 | } | |
| 339 | |||
| 340 | ✗ | bool ChillerAbsorptionIndirect_Impl::setDesignCondenserWaterFlowRate(boost::optional<double> designCondenserWaterFlowRate) { | |
| 341 | ✗ | bool result(false); | |
| 342 | ✗ | if (designCondenserWaterFlowRate) { | |
| 343 | ✗ | result = setDouble(OS_Chiller_Absorption_IndirectFields::DesignCondenserWaterFlowRate, designCondenserWaterFlowRate.get()); | |
| 344 | } | ||
| 345 | ✗ | return result; | |
| 346 | } | ||
| 347 | |||
| 348 | 4 | void ChillerAbsorptionIndirect_Impl::autosizeDesignCondenserWaterFlowRate() { | |
| 349 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | bool result = setString(OS_Chiller_Absorption_IndirectFields::DesignCondenserWaterFlowRate, "autosize"); |
| 350 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 351 | 4 | } | |
| 352 | |||
| 353 | 4 | bool ChillerAbsorptionIndirect_Impl::setChillerFlowMode(const std::string& chillerFlowMode) { | |
| 354 | 4 | bool result = setString(OS_Chiller_Absorption_IndirectFields::ChillerFlowMode, chillerFlowMode); | |
| 355 | 4 | return result; | |
| 356 | } | ||
| 357 | |||
| 358 | 4 | bool ChillerAbsorptionIndirect_Impl::setGeneratorHeatInputFunctionofPartLoadRatioCurve(const Curve& curve) { | |
| 359 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | bool result = setPointer(OS_Chiller_Absorption_IndirectFields::GeneratorHeatInputFunctionofPartLoadRatioCurve, curve.handle()); |
| 360 | 4 | return result; | |
| 361 | } | ||
| 362 | |||
| 363 | 4 | bool ChillerAbsorptionIndirect_Impl::setPumpElectricInputFunctionofPartLoadRatioCurve(const Curve& curve) { | |
| 364 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | bool result = setPointer(OS_Chiller_Absorption_IndirectFields::PumpElectricInputFunctionofPartLoadRatioCurve, curve.handle()); |
| 365 | 4 | return result; | |
| 366 | } | ||
| 367 | |||
| 368 | 4 | bool ChillerAbsorptionIndirect_Impl::setCapacityCorrectionFunctionofCondenserTemperatureCurve(const Curve& curve) { | |
| 369 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | bool result = setPointer(OS_Chiller_Absorption_IndirectFields::CapacityCorrectionFunctionofCondenserTemperatureCurve, curve.handle()); |
| 370 | 4 | return result; | |
| 371 | } | ||
| 372 | |||
| 373 | 4 | bool ChillerAbsorptionIndirect_Impl::setCapacityCorrectionFunctionofChilledWaterTemperatureCurve(const Curve& curve) { | |
| 374 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | bool result = setPointer(OS_Chiller_Absorption_IndirectFields::CapacityCorrectionFunctionofChilledWaterTemperatureCurve, curve.handle()); |
| 375 | 4 | return result; | |
| 376 | } | ||
| 377 | |||
| 378 | 4 | bool ChillerAbsorptionIndirect_Impl::setCapacityCorrectionFunctionofGeneratorTemperatureCurve(const Curve& curve) { | |
| 379 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | bool result = setPointer(OS_Chiller_Absorption_IndirectFields::CapacityCorrectionFunctionofGeneratorTemperatureCurve, curve.handle()); |
| 380 | 4 | return result; | |
| 381 | } | ||
| 382 | |||
| 383 | 4 | bool ChillerAbsorptionIndirect_Impl::setGeneratorHeatInputCorrectionFunctionofCondenserTemperatureCurve(const Curve& curve) { | |
| 384 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | bool result = setPointer(OS_Chiller_Absorption_IndirectFields::GeneratorHeatInputCorrectionFunctionofCondenserTemperatureCurve, curve.handle()); |
| 385 | 4 | return result; | |
| 386 | } | ||
| 387 | |||
| 388 | 4 | bool ChillerAbsorptionIndirect_Impl::setGeneratorHeatInputCorrectionFunctionofChilledWaterTemperatureCurve(const Curve& curve) { | |
| 389 | bool result = | ||
| 390 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | setPointer(OS_Chiller_Absorption_IndirectFields::GeneratorHeatInputCorrectionFunctionofChilledWaterTemperatureCurve, curve.handle()); |
| 391 | 4 | return result; | |
| 392 | } | ||
| 393 | |||
| 394 | 11 | bool ChillerAbsorptionIndirect_Impl::setGeneratorHeatSourceType(const std::string& generatorHeatSourceType) { | |
| 395 | 11 | bool ok = false; | |
| 396 |
13/21✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
✓ Branch 6 taken 8 times.
✓ Branch 7 taken 3 times.
✓ Branch 9 taken 8 times.
✓ Branch 12 taken 1 time.
✓ Branch 13 taken 7 times.
✓ Branch 14 taken 8 times.
✓ Branch 15 taken 3 times.
✓ Branch 17 taken 11 times.
✗ Branch 18 not taken.
✓ Branch 20 taken 11 times.
✗ Branch 21 not taken.
✓ Branch 22 taken 1 time.
✓ Branch 23 taken 10 times.
✗ Branch 24 not taken.
✗ Branch 25 not taken.
✗ Branch 27 not taken.
✗ Branch 28 not taken.
✗ Branch 30 not taken.
✗ Branch 31 not taken.
|
41 | if (istringEqual("Steam", generatorHeatSourceType) && (this->generatorLoop())) { |
| 397 | // We don't support Steam loops in OS right now | ||
| 398 |
8/8✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 17 taken 1 time.
✓ Branch 20 taken 1 time.
✓ Branch 23 taken 1 time.
|
1 | LOG(Warn, "Cannot set generatorHeatSourceType to 'Steam' as chiller '" << this->name() << "' is connected to a generatorLoop"); |
| 399 | } else { | ||
| 400 | 10 | ok = setString(OS_Chiller_Absorption_IndirectFields::GeneratorHeatSourceType, generatorHeatSourceType); | |
| 401 | } | ||
| 402 | 11 | return ok; | |
| 403 | } | ||
| 404 | |||
| 405 | ✗ | bool ChillerAbsorptionIndirect_Impl::setDesignGeneratorFluidFlowRate(boost::optional<double> designGeneratorFluidFlowRate) { | |
| 406 | ✗ | bool result(false); | |
| 407 | ✗ | if (designGeneratorFluidFlowRate) { | |
| 408 | ✗ | result = setDouble(OS_Chiller_Absorption_IndirectFields::DesignGeneratorFluidFlowRate, designGeneratorFluidFlowRate.get()); | |
| 409 | } | ||
| 410 | ✗ | OS_ASSERT(result); | |
| 411 | ✗ | return result; | |
| 412 | } | ||
| 413 | |||
| 414 | 4 | void ChillerAbsorptionIndirect_Impl::autosizeDesignGeneratorFluidFlowRate() { | |
| 415 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | bool result = setString(OS_Chiller_Absorption_IndirectFields::DesignGeneratorFluidFlowRate, "autosize"); |
| 416 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 417 | 4 | } | |
| 418 | |||
| 419 | 4 | bool ChillerAbsorptionIndirect_Impl::setTemperatureLowerLimitGeneratorInlet(double temperatureLowerLimitGeneratorInlet) { | |
| 420 | 4 | bool result = setDouble(OS_Chiller_Absorption_IndirectFields::TemperatureLowerLimitGeneratorInlet, temperatureLowerLimitGeneratorInlet); | |
| 421 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 422 | 4 | return result; | |
| 423 | } | ||
| 424 | |||
| 425 | 4 | bool ChillerAbsorptionIndirect_Impl::setDegreeofSubcoolinginSteamGenerator(double degreeofSubcoolinginSteamGenerator) { | |
| 426 | 4 | bool result = setDouble(OS_Chiller_Absorption_IndirectFields::DegreeofSubcoolinginSteamGenerator, degreeofSubcoolinginSteamGenerator); | |
| 427 | 4 | return result; | |
| 428 | } | ||
| 429 | |||
| 430 | 4 | bool ChillerAbsorptionIndirect_Impl::setDegreeofSubcoolinginSteamCondensateLoop(double degreeofSubcoolinginSteamCondensateLoop) { | |
| 431 | 4 | bool result = setDouble(OS_Chiller_Absorption_IndirectFields::DegreeofSubcoolinginSteamCondensateLoop, degreeofSubcoolinginSteamCondensateLoop); | |
| 432 | 4 | return result; | |
| 433 | } | ||
| 434 | |||
| 435 | 4 | bool ChillerAbsorptionIndirect_Impl::setSizingFactor(double sizingFactor) { | |
| 436 | 4 | bool result = setDouble(OS_Chiller_Absorption_IndirectFields::SizingFactor, sizingFactor); | |
| 437 | 4 | return result; | |
| 438 | } | ||
| 439 | |||
| 440 | ✗ | boost::optional<Curve> ChillerAbsorptionIndirect_Impl::optionalGeneratorHeatInputFunctionofPartLoadRatioCurve() const { | |
| 441 | ✗ | return getObject<ModelObject>().getModelObjectTarget<Curve>( | |
| 442 | ✗ | OS_Chiller_Absorption_IndirectFields::GeneratorHeatInputFunctionofPartLoadRatioCurve); | |
| 443 | } | ||
| 444 | |||
| 445 | ✗ | boost::optional<Curve> ChillerAbsorptionIndirect_Impl::optionalPumpElectricInputFunctionofPartLoadRatioCurve() const { | |
| 446 | ✗ | return getObject<ModelObject>().getModelObjectTarget<Curve>( | |
| 447 | ✗ | OS_Chiller_Absorption_IndirectFields::PumpElectricInputFunctionofPartLoadRatioCurve); | |
| 448 | } | ||
| 449 | |||
| 450 | ✗ | boost::optional<Curve> ChillerAbsorptionIndirect_Impl::optionalCapacityCorrectionFunctionofCondenserTemperatureCurve() const { | |
| 451 | ✗ | return getObject<ModelObject>().getModelObjectTarget<Curve>( | |
| 452 | ✗ | OS_Chiller_Absorption_IndirectFields::CapacityCorrectionFunctionofCondenserTemperatureCurve); | |
| 453 | } | ||
| 454 | |||
| 455 | ✗ | boost::optional<Curve> ChillerAbsorptionIndirect_Impl::optionalCapacityCorrectionFunctionofChilledWaterTemperatureCurve() const { | |
| 456 | ✗ | return getObject<ModelObject>().getModelObjectTarget<Curve>( | |
| 457 | ✗ | OS_Chiller_Absorption_IndirectFields::CapacityCorrectionFunctionofChilledWaterTemperatureCurve); | |
| 458 | } | ||
| 459 | |||
| 460 | ✗ | boost::optional<Curve> ChillerAbsorptionIndirect_Impl::optionalCapacityCorrectionFunctionofGeneratorTemperatureCurve() const { | |
| 461 | ✗ | return getObject<ModelObject>().getModelObjectTarget<Curve>( | |
| 462 | ✗ | OS_Chiller_Absorption_IndirectFields::CapacityCorrectionFunctionofGeneratorTemperatureCurve); | |
| 463 | } | ||
| 464 | |||
| 465 | ✗ | boost::optional<Curve> ChillerAbsorptionIndirect_Impl::optionalGeneratorHeatInputCorrectionFunctionofCondenserTemperatureCurve() const { | |
| 466 | ✗ | return getObject<ModelObject>().getModelObjectTarget<Curve>( | |
| 467 | ✗ | OS_Chiller_Absorption_IndirectFields::GeneratorHeatInputCorrectionFunctionofCondenserTemperatureCurve); | |
| 468 | } | ||
| 469 | |||
| 470 | ✗ | boost::optional<Curve> ChillerAbsorptionIndirect_Impl::optionalGeneratorHeatInputCorrectionFunctionofChilledWaterTemperatureCurve() const { | |
| 471 | ✗ | return getObject<ModelObject>().getModelObjectTarget<Curve>( | |
| 472 | ✗ | OS_Chiller_Absorption_IndirectFields::GeneratorHeatInputCorrectionFunctionofChilledWaterTemperatureCurve); | |
| 473 | } | ||
| 474 | |||
| 475 | 40 | unsigned ChillerAbsorptionIndirect_Impl::supplyInletPort() const { | |
| 476 | 40 | return OS_Chiller_Absorption_IndirectFields::ChilledWaterInletNodeName; | |
| 477 | } | ||
| 478 | |||
| 479 | 18 | unsigned ChillerAbsorptionIndirect_Impl::supplyOutletPort() const { | |
| 480 | 18 | return OS_Chiller_Absorption_IndirectFields::ChilledWaterOutletNodeName; | |
| 481 | } | ||
| 482 | |||
| 483 | 26 | unsigned ChillerAbsorptionIndirect_Impl::demandInletPort() const { | |
| 484 | 26 | return OS_Chiller_Absorption_IndirectFields::CondenserInletNodeName; | |
| 485 | } | ||
| 486 | |||
| 487 | 18 | unsigned ChillerAbsorptionIndirect_Impl::demandOutletPort() const { | |
| 488 | 18 | return OS_Chiller_Absorption_IndirectFields::CondenserOutletNodeName; | |
| 489 | } | ||
| 490 | |||
| 491 | ✗ | ModelObject ChillerAbsorptionIndirect_Impl::clone(Model model) const { | |
| 492 | ✗ | auto newMo = WaterToWaterComponent_Impl::clone(model).cast<ChillerAbsorptionIndirect>(); | |
| 493 | |||
| 494 | ✗ | return std::move(newMo); | |
| 495 | ✗ | } | |
| 496 | |||
| 497 | ✗ | std::vector<ModelObject> ChillerAbsorptionIndirect_Impl::children() const { | |
| 498 | ✗ | std::vector<ModelObject> result; | |
| 499 | |||
| 500 | ✗ | result.push_back(generatorHeatInputFunctionofPartLoadRatioCurve()); | |
| 501 | ✗ | result.push_back(pumpElectricInputFunctionofPartLoadRatioCurve()); | |
| 502 | ✗ | result.push_back(capacityCorrectionFunctionofCondenserTemperatureCurve()); | |
| 503 | ✗ | result.push_back(capacityCorrectionFunctionofChilledWaterTemperatureCurve()); | |
| 504 | ✗ | result.push_back(capacityCorrectionFunctionofGeneratorTemperatureCurve()); | |
| 505 | ✗ | result.push_back(generatorHeatInputCorrectionFunctionofCondenserTemperatureCurve()); | |
| 506 | ✗ | result.push_back(generatorHeatInputCorrectionFunctionofChilledWaterTemperatureCurve()); | |
| 507 | |||
| 508 | ✗ | return result; | |
| 509 | ✗ | } | |
| 510 | |||
| 511 | 13 | unsigned ChillerAbsorptionIndirect_Impl::tertiaryInletPort() const { | |
| 512 | 13 | return OS_Chiller_Absorption_IndirectFields::GeneratorInletNode; | |
| 513 | } | ||
| 514 | |||
| 515 | 47 | unsigned ChillerAbsorptionIndirect_Impl::tertiaryOutletPort() const { | |
| 516 | 47 | return OS_Chiller_Absorption_IndirectFields::GeneratorOutletNode; | |
| 517 | } | ||
| 518 | |||
| 519 | /** Convenience Function to return the Chilled Water Loop (chiller on supply) **/ | ||
| 520 | 11 | boost::optional<PlantLoop> ChillerAbsorptionIndirect_Impl::chilledWaterLoop() const { | |
| 521 | 11 | return WaterToWaterComponent_Impl::plantLoop(); | |
| 522 | } | ||
| 523 | |||
| 524 | /** Convenience Function to return the Condenser Water Loop (chiller on demand side) **/ | ||
| 525 | 15 | boost::optional<PlantLoop> ChillerAbsorptionIndirect_Impl::condenserWaterLoop() const { | |
| 526 | 15 | return WaterToWaterComponent_Impl::secondaryPlantLoop(); | |
| 527 | } | ||
| 528 | |||
| 529 | /** Convenience Function to return the Heat Recovery Loop **/ | ||
| 530 | 22 | boost::optional<PlantLoop> ChillerAbsorptionIndirect_Impl::generatorLoop() const { | |
| 531 | 22 | return WaterToWaterComponent_Impl::tertiaryPlantLoop(); | |
| 532 | } | ||
| 533 | |||
| 534 | 7 | bool ChillerAbsorptionIndirect_Impl::addToNode(Node& node) { | |
| 535 | |||
| 536 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<PlantLoop> t_plantLoop = node.plantLoop(); |
| 537 | |||
| 538 | // If trying to add to a node that is on the demand side of a plant loop | ||
| 539 |
1/2✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
|
7 | if (t_plantLoop) { |
| 540 |
5/5✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
✓ Branch 10 taken 5 times.
✓ Branch 11 taken 2 times.
|
14 | if (t_plantLoop->demandComponent(node.handle())) { |
| 541 | // If there is already a condenser water Plant Loop | ||
| 542 |
3/3✓ Branch 1 taken 5 times.
✓ Branch 3 taken 3 times.
✓ Branch 4 taken 2 times.
|
10 | if (boost::optional<PlantLoop> cndLoop = this->condenserWaterLoop()) { |
| 543 | // And it's not the same as the node's loop | ||
| 544 |
4/5✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 9 taken 3 times.
✗ Branch 10 not taken.
|
3 | if (t_plantLoop.get() != cndLoop.get()) { |
| 545 | // And if there is no generator loop (tertiary) | ||
| 546 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 5 taken 2 times.
✓ Branch 6 taken 1 time.
|
3 | if (!this->generatorLoop().is_initialized()) { |
| 547 | // Then try to add it to the tertiary one | ||
| 548 |
7/7✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 14 taken 2 times.
✓ Branch 17 taken 2 times.
✓ Branch 20 taken 2 times.
|
2 | LOG(Warn, "Calling addToTertiaryNode to connect it to the tertiary (=Generator Loop) loop for " << briefDescription()); |
| 549 |
1/1✓ Branch 1 taken 2 times.
|
2 | return this->addToTertiaryNode(node); |
| 550 | } | ||
| 551 | } | ||
| 552 | 5 | } | |
| 553 | } | ||
| 554 | } | ||
| 555 | |||
| 556 | // All other cases, call the base class implementation | ||
| 557 |
1/1✓ Branch 1 taken 5 times.
|
5 | return WaterToWaterComponent_Impl::addToNode(node); |
| 558 | 7 | } | |
| 559 | |||
| 560 | 4 | bool ChillerAbsorptionIndirect_Impl::addToTertiaryNode(Node& node) { | |
| 561 |
1/1✓ Branch 1 taken 4 times.
|
4 | auto _model = node.model(); |
| 562 |
1/1✓ Branch 1 taken 4 times.
|
4 | auto t_plantLoop = node.plantLoop(); |
| 563 | |||
| 564 | // Only accept adding to a node that is on a demand side of a plant loop | ||
| 565 | // Since tertiary here = generator loop (heating) | ||
| 566 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | if (t_plantLoop) { |
| 567 |
5/5✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 3 times.
✓ Branch 11 taken 1 time.
|
8 | if (t_plantLoop->demandComponent(node.handle())) { |
| 568 | // Call base class method which accepts both supply and demand | ||
| 569 |
1/1✓ Branch 1 taken 3 times.
|
3 | bool ok = WaterToWaterComponent_Impl::addToTertiaryNode(node); |
| 570 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | if (ok) { |
| 571 |
7/7✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
✓ Branch 14 taken 3 times.
✓ Branch 17 taken 3 times.
✓ Branch 20 taken 3 times.
|
3 | LOG(Info, "Setting Generator Heat Source Type to 'HotWater' for " << briefDescription()); |
| 572 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | this->setGeneratorHeatSourceType("HotWater"); |
| 573 | 3 | return true; | |
| 574 | } | ||
| 575 | } else { | ||
| 576 |
7/7✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 14 taken 1 time.
✓ Branch 17 taken 1 time.
✓ Branch 20 taken 1 time.
|
1 | LOG(Info, |
| 577 | "Tertiary Loop (Generator Loop) connections can only be placed on the Demand side (of a Heating Loop), for " << briefDescription()); | ||
| 578 | } | ||
| 579 | } | ||
| 580 | 1 | return false; | |
| 581 | 4 | } | |
| 582 | |||
| 583 | 5 | bool ChillerAbsorptionIndirect_Impl::removeFromTertiaryPlantLoop() { | |
| 584 | // Disconnect the component | ||
| 585 | 5 | bool ok = WaterToWaterComponent_Impl::removeFromTertiaryPlantLoop(); | |
| 586 |
2/2✓ Branch 0 taken 2 times.
✓ Branch 1 taken 3 times.
|
5 | if (ok) { |
| 587 | // Switch the Generator Heat Source Type to "Steam" | ||
| 588 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
4 | this->setGeneratorHeatSourceType("Steam"); |
| 589 | } | ||
| 590 | 5 | return ok; | |
| 591 | } | ||
| 592 | |||
| 593 | ✗ | boost::optional<double> ChillerAbsorptionIndirect_Impl::autosizedNominalCapacity() const { | |
| 594 | ✗ | return getAutosizedValue("Design Size Nominal Capacity", "W"); | |
| 595 | } | ||
| 596 | |||
| 597 | ✗ | boost::optional<double> ChillerAbsorptionIndirect_Impl::autosizedNominalPumpingPower() const { | |
| 598 | ✗ | return getAutosizedValue("Design Size Nominal Pumping Power", "W"); | |
| 599 | } | ||
| 600 | |||
| 601 | ✗ | boost::optional<double> ChillerAbsorptionIndirect_Impl::autosizedDesignChilledWaterFlowRate() const { | |
| 602 | ✗ | return getAutosizedValue("Design Size Design Chilled Water Flow Rate", "m3/s"); | |
| 603 | } | ||
| 604 | |||
| 605 | ✗ | boost::optional<double> ChillerAbsorptionIndirect_Impl::autosizedDesignCondenserWaterFlowRate() const { | |
| 606 | ✗ | return getAutosizedValue("Design Size Design Condenser Water Flow Rate", "m3/s"); | |
| 607 | } | ||
| 608 | |||
| 609 | ✗ | boost::optional<double> ChillerAbsorptionIndirect_Impl::autosizedDesignGeneratorFluidFlowRate() const { | |
| 610 | ✗ | return getAutosizedValue("Design Size Design Generator Fluid Flow Rate", "m3/s"); | |
| 611 | } | ||
| 612 | |||
| 613 | ✗ | void ChillerAbsorptionIndirect_Impl::autosize() { | |
| 614 | ✗ | autosizeNominalCapacity(); | |
| 615 | ✗ | autosizeNominalPumpingPower(); | |
| 616 | ✗ | autosizeDesignChilledWaterFlowRate(); | |
| 617 | ✗ | autosizeDesignCondenserWaterFlowRate(); | |
| 618 | ✗ | autosizeDesignGeneratorFluidFlowRate(); | |
| 619 | ✗ | } | |
| 620 | |||
| 621 | ✗ | void ChillerAbsorptionIndirect_Impl::applySizingValues() { | |
| 622 | ✗ | boost::optional<double> val; | |
| 623 | ✗ | val = autosizedNominalCapacity(); | |
| 624 | ✗ | if (val) { | |
| 625 | ✗ | setNominalCapacity(val.get()); | |
| 626 | } | ||
| 627 | |||
| 628 | ✗ | val = autosizedNominalPumpingPower(); | |
| 629 | ✗ | if (val) { | |
| 630 | ✗ | setNominalPumpingPower(val.get()); | |
| 631 | } | ||
| 632 | |||
| 633 | ✗ | val = autosizedDesignChilledWaterFlowRate(); | |
| 634 | ✗ | if (val) { | |
| 635 | ✗ | setDesignChilledWaterFlowRate(val.get()); | |
| 636 | } | ||
| 637 | |||
| 638 | ✗ | val = autosizedDesignCondenserWaterFlowRate(); | |
| 639 | ✗ | if (val) { | |
| 640 | ✗ | setDesignCondenserWaterFlowRate(val.get()); | |
| 641 | } | ||
| 642 | |||
| 643 | ✗ | val = autosizedDesignGeneratorFluidFlowRate(); | |
| 644 | ✗ | if (val) { | |
| 645 | ✗ | setDesignGeneratorFluidFlowRate(val.get()); | |
| 646 | } | ||
| 647 | ✗ | } | |
| 648 | |||
| 649 | 1 | ComponentType ChillerAbsorptionIndirect_Impl::componentType() const { | |
| 650 |
1/1✓ Branch 1 taken 1 time.
|
1 | return ComponentType::Cooling; |
| 651 | } | ||
| 652 | |||
| 653 | ✗ | std::vector<FuelType> ChillerAbsorptionIndirect_Impl::coolingFuelTypes() const { | |
| 654 | ✗ | if (auto generatorLoop_ = generatorLoop()) { | |
| 655 | ✗ | return generatorLoop_->heatingFuelTypes(); // This is done on purpose. We use heat to produce chilled water here! | |
| 656 | ✗ | } | |
| 657 | ✗ | return {}; | |
| 658 | } | ||
| 659 | |||
| 660 | ✗ | std::vector<FuelType> ChillerAbsorptionIndirect_Impl::heatingFuelTypes() const { | |
| 661 | ✗ | return {}; | |
| 662 | } | ||
| 663 | |||
| 664 | ✗ | std::vector<AppGFuelType> ChillerAbsorptionIndirect_Impl::appGHeatingFuelTypes() const { | |
| 665 | ✗ | return {}; | |
| 666 | } | ||
| 667 | |||
| 668 | } // namespace detail | ||
| 669 | |||
| 670 | 4 | ChillerAbsorptionIndirect::ChillerAbsorptionIndirect(const Model& model) | |
| 671 | 4 | : WaterToWaterComponent(ChillerAbsorptionIndirect::iddObjectType(), model) { | |
| 672 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 4 times.
✗ Branch 5 not taken.
|
4 | OS_ASSERT(getImpl<detail::ChillerAbsorptionIndirect_Impl>()); |
| 673 | |||
| 674 |
1/1✓ Branch 1 taken 4 times.
|
4 | autosizeNominalCapacity(); |
| 675 |
1/1✓ Branch 1 taken 4 times.
|
4 | autosizeNominalPumpingPower(); |
| 676 |
1/1✓ Branch 1 taken 4 times.
|
4 | setMinimumPartLoadRatio(0.15); |
| 677 |
1/1✓ Branch 1 taken 4 times.
|
4 | setMaximumPartLoadRatio(1.0); |
| 678 |
1/1✓ Branch 1 taken 4 times.
|
4 | setOptimumPartLoadRatio(0.65); |
| 679 |
1/1✓ Branch 1 taken 4 times.
|
4 | setDesignCondenserInletTemperature(35.0); |
| 680 |
1/1✓ Branch 1 taken 4 times.
|
4 | setCondenserInletTemperatureLowerLimit(10.0); |
| 681 |
1/1✓ Branch 1 taken 4 times.
|
4 | setChilledWaterOutletTemperatureLowerLimit(5.0); |
| 682 |
1/1✓ Branch 1 taken 4 times.
|
4 | autosizeDesignChilledWaterFlowRate(); |
| 683 |
1/1✓ Branch 1 taken 4 times.
|
4 | autosizeDesignCondenserWaterFlowRate(); |
| 684 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | setChillerFlowMode("NotModulated"); |
| 685 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | setGeneratorHeatSourceType("Steam"); |
| 686 |
1/1✓ Branch 1 taken 4 times.
|
4 | autosizeDesignGeneratorFluidFlowRate(); |
| 687 |
1/1✓ Branch 1 taken 4 times.
|
4 | setTemperatureLowerLimitGeneratorInlet(30.0); |
| 688 |
1/1✓ Branch 1 taken 4 times.
|
4 | setDegreeofSubcoolinginSteamGenerator(2.0); |
| 689 |
1/1✓ Branch 1 taken 4 times.
|
4 | setDegreeofSubcoolinginSteamCondensateLoop(12.0); |
| 690 |
1/1✓ Branch 1 taken 4 times.
|
4 | setSizingFactor(1.0); |
| 691 | |||
| 692 | { | ||
| 693 |
1/1✓ Branch 1 taken 4 times.
|
4 | CurveCubic curve(model); |
| 694 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setCoefficient1Constant(0.18892); |
| 695 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setCoefficient2x(0.968044); |
| 696 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setCoefficient3xPOW2(1.119202); |
| 697 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setCoefficient4xPOW3(-0.5034); |
| 698 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setMinimumValueofx(0.15); |
| 699 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setMaximumValueofx(1.0); |
| 700 |
1/1✓ Branch 1 taken 4 times.
|
4 | setGeneratorHeatInputFunctionofPartLoadRatioCurve(curve); |
| 701 | 4 | } | |
| 702 | |||
| 703 | { | ||
| 704 |
1/1✓ Branch 1 taken 4 times.
|
4 | CurveQuadratic curve(model); |
| 705 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setCoefficient1Constant(1.0); |
| 706 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setCoefficient2x(0.0); |
| 707 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setCoefficient3xPOW2(0.0); |
| 708 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setMinimumValueofx(0.15); |
| 709 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setMaximumValueofx(1.0); |
| 710 |
1/1✓ Branch 1 taken 4 times.
|
4 | setPumpElectricInputFunctionofPartLoadRatioCurve(curve); |
| 711 | 4 | } | |
| 712 | |||
| 713 | { | ||
| 714 |
1/1✓ Branch 1 taken 4 times.
|
4 | CurveCubic curve(model); |
| 715 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setCoefficient1Constant(0.245507); |
| 716 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setCoefficient2x(0.023614); |
| 717 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setCoefficient3xPOW2(0.0000278); |
| 718 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setCoefficient4xPOW3(0.000013); |
| 719 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setMinimumValueofx(7.0); |
| 720 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setMaximumValueofx(25.0); |
| 721 |
1/1✓ Branch 1 taken 4 times.
|
4 | setCapacityCorrectionFunctionofCondenserTemperatureCurve(curve); |
| 722 | 4 | } | |
| 723 | |||
| 724 | { | ||
| 725 |
1/1✓ Branch 1 taken 4 times.
|
4 | CurveCubic curve(model); |
| 726 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setCoefficient1Constant(1.0); |
| 727 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setCoefficient2x(0.0); |
| 728 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setCoefficient3xPOW2(0.0); |
| 729 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setCoefficient4xPOW3(0.0); |
| 730 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setMinimumValueofx(0.0); |
| 731 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setMaximumValueofx(100.0); |
| 732 |
1/1✓ Branch 1 taken 4 times.
|
4 | setCapacityCorrectionFunctionofGeneratorTemperatureCurve(curve); |
| 733 | 4 | } | |
| 734 | |||
| 735 | { | ||
| 736 |
1/1✓ Branch 1 taken 4 times.
|
4 | CurveCubic curve(model); |
| 737 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setCoefficient1Constant(0.690571); |
| 738 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setCoefficient2x(0.065571); |
| 739 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setCoefficient3xPOW2(-0.00289); |
| 740 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setCoefficient4xPOW3(0.0); |
| 741 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setMinimumValueofx(4.0); |
| 742 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setMaximumValueofx(10.0); |
| 743 |
1/1✓ Branch 1 taken 4 times.
|
4 | setCapacityCorrectionFunctionofChilledWaterTemperatureCurve(curve); |
| 744 | 4 | } | |
| 745 | |||
| 746 | { | ||
| 747 |
1/1✓ Branch 1 taken 4 times.
|
4 | CurveCubic curve(model); |
| 748 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setCoefficient1Constant(0.712019); |
| 749 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setCoefficient2x(-0.00478); |
| 750 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setCoefficient3xPOW2(0.000864); |
| 751 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setCoefficient4xPOW3(-0.000013); |
| 752 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setMinimumValueofx(7.0); |
| 753 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setMaximumValueofx(30.0); |
| 754 |
1/1✓ Branch 1 taken 4 times.
|
4 | setGeneratorHeatInputCorrectionFunctionofCondenserTemperatureCurve(curve); |
| 755 | 4 | } | |
| 756 | |||
| 757 | { | ||
| 758 |
1/1✓ Branch 1 taken 4 times.
|
4 | CurveCubic curve(model); |
| 759 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setCoefficient1Constant(0.995571); |
| 760 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setCoefficient2x(0.046821); |
| 761 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setCoefficient3xPOW2(-0.01099); |
| 762 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setCoefficient4xPOW3(0.000608); |
| 763 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setMinimumValueofx(4.0); |
| 764 |
1/1✓ Branch 1 taken 4 times.
|
4 | curve.setMaximumValueofx(10.0); |
| 765 |
1/1✓ Branch 1 taken 4 times.
|
4 | setGeneratorHeatInputCorrectionFunctionofChilledWaterTemperatureCurve(curve); |
| 766 | 4 | } | |
| 767 | 4 | } | |
| 768 | |||
| 769 | 7736 | IddObjectType ChillerAbsorptionIndirect::iddObjectType() { | |
| 770 |
1/1✓ Branch 1 taken 7736 times.
|
7736 | return {IddObjectType::OS_Chiller_Absorption_Indirect}; |
| 771 | } | ||
| 772 | |||
| 773 | ✗ | std::vector<std::string> ChillerAbsorptionIndirect::chillerFlowModeValues() { | |
| 774 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Chiller_Absorption_IndirectFields::ChillerFlowMode); | |
| 775 | } | ||
| 776 | |||
| 777 | ✗ | std::vector<std::string> ChillerAbsorptionIndirect::generatorHeatSourceTypeValues() { | |
| 778 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Chiller_Absorption_IndirectFields::GeneratorHeatSourceType); | |
| 779 | } | ||
| 780 | |||
| 781 | ✗ | boost::optional<double> ChillerAbsorptionIndirect::nominalCapacity() const { | |
| 782 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->nominalCapacity(); | |
| 783 | } | ||
| 784 | |||
| 785 | ✗ | bool ChillerAbsorptionIndirect::isNominalCapacityAutosized() const { | |
| 786 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->isNominalCapacityAutosized(); | |
| 787 | } | ||
| 788 | |||
| 789 | ✗ | boost::optional<double> ChillerAbsorptionIndirect::nominalPumpingPower() const { | |
| 790 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->nominalPumpingPower(); | |
| 791 | } | ||
| 792 | |||
| 793 | ✗ | bool ChillerAbsorptionIndirect::isNominalPumpingPowerAutosized() const { | |
| 794 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->isNominalPumpingPowerAutosized(); | |
| 795 | } | ||
| 796 | |||
| 797 | ✗ | double ChillerAbsorptionIndirect::minimumPartLoadRatio() const { | |
| 798 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->minimumPartLoadRatio(); | |
| 799 | } | ||
| 800 | |||
| 801 | ✗ | double ChillerAbsorptionIndirect::maximumPartLoadRatio() const { | |
| 802 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->maximumPartLoadRatio(); | |
| 803 | } | ||
| 804 | |||
| 805 | ✗ | double ChillerAbsorptionIndirect::optimumPartLoadRatio() const { | |
| 806 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->optimumPartLoadRatio(); | |
| 807 | } | ||
| 808 | |||
| 809 | ✗ | double ChillerAbsorptionIndirect::designCondenserInletTemperature() const { | |
| 810 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->designCondenserInletTemperature(); | |
| 811 | } | ||
| 812 | |||
| 813 | ✗ | double ChillerAbsorptionIndirect::condenserInletTemperatureLowerLimit() const { | |
| 814 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->condenserInletTemperatureLowerLimit(); | |
| 815 | } | ||
| 816 | |||
| 817 | ✗ | double ChillerAbsorptionIndirect::chilledWaterOutletTemperatureLowerLimit() const { | |
| 818 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->chilledWaterOutletTemperatureLowerLimit(); | |
| 819 | } | ||
| 820 | |||
| 821 | ✗ | boost::optional<double> ChillerAbsorptionIndirect::designChilledWaterFlowRate() const { | |
| 822 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->designChilledWaterFlowRate(); | |
| 823 | } | ||
| 824 | |||
| 825 | ✗ | bool ChillerAbsorptionIndirect::isDesignChilledWaterFlowRateAutosized() const { | |
| 826 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->isDesignChilledWaterFlowRateAutosized(); | |
| 827 | } | ||
| 828 | |||
| 829 | ✗ | boost::optional<double> ChillerAbsorptionIndirect::designCondenserWaterFlowRate() const { | |
| 830 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->designCondenserWaterFlowRate(); | |
| 831 | } | ||
| 832 | |||
| 833 | ✗ | bool ChillerAbsorptionIndirect::isDesignCondenserWaterFlowRateAutosized() const { | |
| 834 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->isDesignCondenserWaterFlowRateAutosized(); | |
| 835 | } | ||
| 836 | |||
| 837 | ✗ | std::string ChillerAbsorptionIndirect::chillerFlowMode() const { | |
| 838 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->chillerFlowMode(); | |
| 839 | } | ||
| 840 | |||
| 841 | ✗ | Curve ChillerAbsorptionIndirect::generatorHeatInputFunctionofPartLoadRatioCurve() const { | |
| 842 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->generatorHeatInputFunctionofPartLoadRatioCurve(); | |
| 843 | } | ||
| 844 | |||
| 845 | ✗ | Curve ChillerAbsorptionIndirect::pumpElectricInputFunctionofPartLoadRatioCurve() const { | |
| 846 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->pumpElectricInputFunctionofPartLoadRatioCurve(); | |
| 847 | } | ||
| 848 | |||
| 849 | ✗ | Curve ChillerAbsorptionIndirect::capacityCorrectionFunctionofCondenserTemperatureCurve() const { | |
| 850 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->capacityCorrectionFunctionofCondenserTemperatureCurve(); | |
| 851 | } | ||
| 852 | |||
| 853 | ✗ | Curve ChillerAbsorptionIndirect::capacityCorrectionFunctionofChilledWaterTemperatureCurve() const { | |
| 854 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->capacityCorrectionFunctionofChilledWaterTemperatureCurve(); | |
| 855 | } | ||
| 856 | |||
| 857 | ✗ | Curve ChillerAbsorptionIndirect::capacityCorrectionFunctionofGeneratorTemperatureCurve() const { | |
| 858 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->capacityCorrectionFunctionofGeneratorTemperatureCurve(); | |
| 859 | } | ||
| 860 | |||
| 861 | ✗ | Curve ChillerAbsorptionIndirect::generatorHeatInputCorrectionFunctionofCondenserTemperatureCurve() const { | |
| 862 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->generatorHeatInputCorrectionFunctionofCondenserTemperatureCurve(); | |
| 863 | } | ||
| 864 | |||
| 865 | ✗ | Curve ChillerAbsorptionIndirect::generatorHeatInputCorrectionFunctionofChilledWaterTemperatureCurve() const { | |
| 866 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->generatorHeatInputCorrectionFunctionofChilledWaterTemperatureCurve(); | |
| 867 | } | ||
| 868 | |||
| 869 | 5 | std::string ChillerAbsorptionIndirect::generatorHeatSourceType() const { | |
| 870 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->generatorHeatSourceType(); |
| 871 | } | ||
| 872 | |||
| 873 | ✗ | boost::optional<double> ChillerAbsorptionIndirect::designGeneratorFluidFlowRate() const { | |
| 874 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->designGeneratorFluidFlowRate(); | |
| 875 | } | ||
| 876 | |||
| 877 | ✗ | bool ChillerAbsorptionIndirect::isDesignGeneratorFluidFlowRateAutosized() const { | |
| 878 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->isDesignGeneratorFluidFlowRateAutosized(); | |
| 879 | } | ||
| 880 | |||
| 881 | ✗ | double ChillerAbsorptionIndirect::temperatureLowerLimitGeneratorInlet() const { | |
| 882 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->temperatureLowerLimitGeneratorInlet(); | |
| 883 | } | ||
| 884 | |||
| 885 | ✗ | double ChillerAbsorptionIndirect::degreeofSubcoolinginSteamGenerator() const { | |
| 886 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->degreeofSubcoolinginSteamGenerator(); | |
| 887 | } | ||
| 888 | |||
| 889 | ✗ | double ChillerAbsorptionIndirect::degreeofSubcoolinginSteamCondensateLoop() const { | |
| 890 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->degreeofSubcoolinginSteamCondensateLoop(); | |
| 891 | } | ||
| 892 | |||
| 893 | ✗ | double ChillerAbsorptionIndirect::sizingFactor() const { | |
| 894 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->sizingFactor(); | |
| 895 | } | ||
| 896 | |||
| 897 | ✗ | bool ChillerAbsorptionIndirect::setNominalCapacity(double nominalCapacity) { | |
| 898 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->setNominalCapacity(nominalCapacity); | |
| 899 | } | ||
| 900 | |||
| 901 | 4 | void ChillerAbsorptionIndirect::autosizeNominalCapacity() { | |
| 902 |
1/1✓ Branch 3 taken 4 times.
|
4 | getImpl<detail::ChillerAbsorptionIndirect_Impl>()->autosizeNominalCapacity(); |
| 903 | 4 | } | |
| 904 | |||
| 905 | ✗ | bool ChillerAbsorptionIndirect::setNominalPumpingPower(double nominalPumpingPower) { | |
| 906 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->setNominalPumpingPower(nominalPumpingPower); | |
| 907 | } | ||
| 908 | |||
| 909 | 4 | void ChillerAbsorptionIndirect::autosizeNominalPumpingPower() { | |
| 910 |
1/1✓ Branch 3 taken 4 times.
|
4 | getImpl<detail::ChillerAbsorptionIndirect_Impl>()->autosizeNominalPumpingPower(); |
| 911 | 4 | } | |
| 912 | |||
| 913 | 4 | bool ChillerAbsorptionIndirect::setMinimumPartLoadRatio(double minimumPartLoadRatio) { | |
| 914 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->setMinimumPartLoadRatio(minimumPartLoadRatio); |
| 915 | } | ||
| 916 | |||
| 917 | 4 | bool ChillerAbsorptionIndirect::setMaximumPartLoadRatio(double maximumPartLoadRatio) { | |
| 918 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->setMaximumPartLoadRatio(maximumPartLoadRatio); |
| 919 | } | ||
| 920 | |||
| 921 | 4 | bool ChillerAbsorptionIndirect::setOptimumPartLoadRatio(double optimumPartLoadRatio) { | |
| 922 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->setOptimumPartLoadRatio(optimumPartLoadRatio); |
| 923 | } | ||
| 924 | |||
| 925 | 4 | bool ChillerAbsorptionIndirect::setDesignCondenserInletTemperature(double designCondenserInletTemperature) { | |
| 926 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->setDesignCondenserInletTemperature(designCondenserInletTemperature); |
| 927 | } | ||
| 928 | |||
| 929 | 4 | bool ChillerAbsorptionIndirect::setCondenserInletTemperatureLowerLimit(double condenserInletTemperatureLowerLimit) { | |
| 930 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->setCondenserInletTemperatureLowerLimit(condenserInletTemperatureLowerLimit); |
| 931 | } | ||
| 932 | |||
| 933 | 4 | bool ChillerAbsorptionIndirect::setChilledWaterOutletTemperatureLowerLimit(double chilledWaterOutletTemperatureLowerLimit) { | |
| 934 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->setChilledWaterOutletTemperatureLowerLimit(chilledWaterOutletTemperatureLowerLimit); |
| 935 | } | ||
| 936 | |||
| 937 | ✗ | bool ChillerAbsorptionIndirect::setDesignChilledWaterFlowRate(double designChilledWaterFlowRate) { | |
| 938 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->setDesignChilledWaterFlowRate(designChilledWaterFlowRate); | |
| 939 | } | ||
| 940 | |||
| 941 | 4 | void ChillerAbsorptionIndirect::autosizeDesignChilledWaterFlowRate() { | |
| 942 |
1/1✓ Branch 3 taken 4 times.
|
4 | getImpl<detail::ChillerAbsorptionIndirect_Impl>()->autosizeDesignChilledWaterFlowRate(); |
| 943 | 4 | } | |
| 944 | |||
| 945 | ✗ | bool ChillerAbsorptionIndirect::setDesignCondenserWaterFlowRate(double designCondenserWaterFlowRate) { | |
| 946 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->setDesignCondenserWaterFlowRate(designCondenserWaterFlowRate); | |
| 947 | } | ||
| 948 | |||
| 949 | 4 | void ChillerAbsorptionIndirect::autosizeDesignCondenserWaterFlowRate() { | |
| 950 |
1/1✓ Branch 3 taken 4 times.
|
4 | getImpl<detail::ChillerAbsorptionIndirect_Impl>()->autosizeDesignCondenserWaterFlowRate(); |
| 951 | 4 | } | |
| 952 | |||
| 953 | 4 | bool ChillerAbsorptionIndirect::setChillerFlowMode(const std::string& chillerFlowMode) { | |
| 954 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->setChillerFlowMode(chillerFlowMode); |
| 955 | } | ||
| 956 | |||
| 957 | 4 | bool ChillerAbsorptionIndirect::setGeneratorHeatInputFunctionofPartLoadRatioCurve(const Curve& curve) { | |
| 958 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->setGeneratorHeatInputFunctionofPartLoadRatioCurve(curve); |
| 959 | } | ||
| 960 | |||
| 961 | 4 | bool ChillerAbsorptionIndirect::setPumpElectricInputFunctionofPartLoadRatioCurve(const Curve& curve) { | |
| 962 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->setPumpElectricInputFunctionofPartLoadRatioCurve(curve); |
| 963 | } | ||
| 964 | |||
| 965 | 4 | bool ChillerAbsorptionIndirect::setCapacityCorrectionFunctionofCondenserTemperatureCurve(const Curve& curve) { | |
| 966 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->setCapacityCorrectionFunctionofCondenserTemperatureCurve(curve); |
| 967 | } | ||
| 968 | |||
| 969 | 4 | bool ChillerAbsorptionIndirect::setCapacityCorrectionFunctionofChilledWaterTemperatureCurve(const Curve& curve) { | |
| 970 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->setCapacityCorrectionFunctionofChilledWaterTemperatureCurve(curve); |
| 971 | } | ||
| 972 | |||
| 973 | 4 | bool ChillerAbsorptionIndirect::setCapacityCorrectionFunctionofGeneratorTemperatureCurve(const Curve& curve) { | |
| 974 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->setCapacityCorrectionFunctionofGeneratorTemperatureCurve(curve); |
| 975 | } | ||
| 976 | |||
| 977 | 4 | bool ChillerAbsorptionIndirect::setGeneratorHeatInputCorrectionFunctionofCondenserTemperatureCurve(const Curve& curve) { | |
| 978 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->setGeneratorHeatInputCorrectionFunctionofCondenserTemperatureCurve(curve); |
| 979 | } | ||
| 980 | |||
| 981 | 4 | bool ChillerAbsorptionIndirect::setGeneratorHeatInputCorrectionFunctionofChilledWaterTemperatureCurve(const Curve& curve) { | |
| 982 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->setGeneratorHeatInputCorrectionFunctionofChilledWaterTemperatureCurve(curve); |
| 983 | } | ||
| 984 | |||
| 985 | 6 | bool ChillerAbsorptionIndirect::setGeneratorHeatSourceType(const std::string& generatorHeatSourceType) { | |
| 986 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->setGeneratorHeatSourceType(generatorHeatSourceType); |
| 987 | } | ||
| 988 | |||
| 989 | ✗ | bool ChillerAbsorptionIndirect::setDesignGeneratorFluidFlowRate(double designGeneratorFluidFlowRate) { | |
| 990 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->setDesignGeneratorFluidFlowRate(designGeneratorFluidFlowRate); | |
| 991 | } | ||
| 992 | |||
| 993 | 4 | void ChillerAbsorptionIndirect::autosizeDesignGeneratorFluidFlowRate() { | |
| 994 |
1/1✓ Branch 3 taken 4 times.
|
4 | getImpl<detail::ChillerAbsorptionIndirect_Impl>()->autosizeDesignGeneratorFluidFlowRate(); |
| 995 | 4 | } | |
| 996 | |||
| 997 | 4 | bool ChillerAbsorptionIndirect::setTemperatureLowerLimitGeneratorInlet(double temperatureLowerLimitGeneratorInlet) { | |
| 998 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->setTemperatureLowerLimitGeneratorInlet(temperatureLowerLimitGeneratorInlet); |
| 999 | } | ||
| 1000 | |||
| 1001 | 4 | bool ChillerAbsorptionIndirect::setDegreeofSubcoolinginSteamGenerator(double degreeofSubcoolinginSteamGenerator) { | |
| 1002 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->setDegreeofSubcoolinginSteamGenerator(degreeofSubcoolinginSteamGenerator); |
| 1003 | } | ||
| 1004 | |||
| 1005 | 4 | bool ChillerAbsorptionIndirect::setDegreeofSubcoolinginSteamCondensateLoop(double degreeofSubcoolinginSteamCondensateLoop) { | |
| 1006 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->setDegreeofSubcoolinginSteamCondensateLoop(degreeofSubcoolinginSteamCondensateLoop); |
| 1007 | } | ||
| 1008 | |||
| 1009 | 4 | bool ChillerAbsorptionIndirect::setSizingFactor(double sizingFactor) { | |
| 1010 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->setSizingFactor(sizingFactor); |
| 1011 | } | ||
| 1012 | |||
| 1013 | // Convenience functions | ||
| 1014 | 11 | boost::optional<PlantLoop> ChillerAbsorptionIndirect::chilledWaterLoop() const { | |
| 1015 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->chilledWaterLoop(); |
| 1016 | } | ||
| 1017 | |||
| 1018 | 10 | boost::optional<PlantLoop> ChillerAbsorptionIndirect::condenserWaterLoop() const { | |
| 1019 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->condenserWaterLoop(); |
| 1020 | } | ||
| 1021 | |||
| 1022 | 11 | boost::optional<PlantLoop> ChillerAbsorptionIndirect::generatorLoop() const { | |
| 1023 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->generatorLoop(); |
| 1024 | } | ||
| 1025 | |||
| 1026 | /// @cond | ||
| 1027 | ✗ | ChillerAbsorptionIndirect::ChillerAbsorptionIndirect(std::shared_ptr<detail::ChillerAbsorptionIndirect_Impl> impl) | |
| 1028 | ✗ | : WaterToWaterComponent(std::move(impl)) {} | |
| 1029 | /// @endcond | ||
| 1030 | |||
| 1031 | ✗ | boost::optional<double> ChillerAbsorptionIndirect::autosizedNominalCapacity() const { | |
| 1032 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->autosizedNominalCapacity(); | |
| 1033 | } | ||
| 1034 | |||
| 1035 | ✗ | boost::optional<double> ChillerAbsorptionIndirect::autosizedNominalPumpingPower() const { | |
| 1036 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->autosizedNominalPumpingPower(); | |
| 1037 | } | ||
| 1038 | |||
| 1039 | ✗ | boost::optional<double> ChillerAbsorptionIndirect::autosizedDesignChilledWaterFlowRate() const { | |
| 1040 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->autosizedDesignChilledWaterFlowRate(); | |
| 1041 | } | ||
| 1042 | |||
| 1043 | ✗ | boost::optional<double> ChillerAbsorptionIndirect::autosizedDesignCondenserWaterFlowRate() const { | |
| 1044 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->autosizedDesignCondenserWaterFlowRate(); | |
| 1045 | } | ||
| 1046 | |||
| 1047 | ✗ | boost::optional<double> ChillerAbsorptionIndirect::autosizedDesignGeneratorFluidFlowRate() const { | |
| 1048 | ✗ | return getImpl<detail::ChillerAbsorptionIndirect_Impl>()->autosizedDesignGeneratorFluidFlowRate(); | |
| 1049 | } | ||
| 1050 | |||
| 1051 | } // namespace model | ||
| 1052 | } // namespace openstudio | ||
| 1053 |