src/model/CoilPerformanceDXCooling.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 "CoilPerformanceDXCooling.hpp" | ||
| 7 | #include "CoilPerformanceDXCooling_Impl.hpp" | ||
| 8 | #include "Model.hpp" | ||
| 9 | #include "Model_Impl.hpp" | ||
| 10 | #include "Curve.hpp" | ||
| 11 | #include "Curve_Impl.hpp" | ||
| 12 | #include "CurveBiquadratic.hpp" | ||
| 13 | #include "CurveBiquadratic_Impl.hpp" | ||
| 14 | #include "CurveQuadratic.hpp" | ||
| 15 | #include "CurveQuadratic_Impl.hpp" | ||
| 16 | #include "Node.hpp" | ||
| 17 | #include "Node_Impl.hpp" | ||
| 18 | #include "CoilCoolingDXTwoStageWithHumidityControlMode.hpp" | ||
| 19 | #include "CoilCoolingDXTwoStageWithHumidityControlMode_Impl.hpp" | ||
| 20 | |||
| 21 | #include "../utilities/units/Unit.hpp" | ||
| 22 | #include "../utilities/core/Assert.hpp" | ||
| 23 | #include "../utilities/sql/SqlFile.hpp" | ||
| 24 | |||
| 25 | #include <utilities/idd/IddFactory.hxx> | ||
| 26 | #include <utilities/idd/OS_CoilPerformance_DX_Cooling_FieldEnums.hxx> | ||
| 27 | |||
| 28 | #include <fmt/core.h> | ||
| 29 | |||
| 30 | namespace openstudio { | ||
| 31 | namespace model { | ||
| 32 | |||
| 33 | namespace detail { | ||
| 34 | |||
| 35 | 41 | CoilPerformanceDXCooling_Impl::CoilPerformanceDXCooling_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 36 | 41 | : ParentObject_Impl(idfObject, model, keepHandle) { | |
| 37 |
4/6✓ Branch 1 taken 41 times.
✓ Branch 4 taken 41 times.
✓ Branch 7 taken 41 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 41 times.
✗ Branch 13 not taken.
|
41 | OS_ASSERT(idfObject.iddObject().type() == CoilPerformanceDXCooling::iddObjectType()); |
| 38 | 41 | } | |
| 39 | |||
| 40 | 8 | CoilPerformanceDXCooling_Impl::CoilPerformanceDXCooling_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, | |
| 41 | 8 | bool keepHandle) | |
| 42 | 8 | : ParentObject_Impl(other, model, keepHandle) { | |
| 43 |
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(other.iddObject().type() == CoilPerformanceDXCooling::iddObjectType()); |
| 44 | 8 | } | |
| 45 | |||
| 46 | 44 | CoilPerformanceDXCooling_Impl::CoilPerformanceDXCooling_Impl(const CoilPerformanceDXCooling_Impl& other, Model_Impl* model, bool keepHandle) | |
| 47 | 44 | : ParentObject_Impl(other, model, keepHandle) {} | |
| 48 | |||
| 49 | ✗ | const std::vector<std::string>& CoilPerformanceDXCooling_Impl::outputVariableNames() const { | |
| 50 | ✗ | static const std::vector<std::string> result; | |
| 51 | ✗ | return result; | |
| 52 | } | ||
| 53 | |||
| 54 | ✗ | IddObjectType CoilPerformanceDXCooling_Impl::iddObjectType() const { | |
| 55 | ✗ | return CoilPerformanceDXCooling::iddObjectType(); | |
| 56 | } | ||
| 57 | |||
| 58 | ✗ | boost::optional<double> CoilPerformanceDXCooling_Impl::grossRatedTotalCoolingCapacity() const { | |
| 59 | ✗ | return getDouble(OS_CoilPerformance_DX_CoolingFields::GrossRatedTotalCoolingCapacity, true); | |
| 60 | } | ||
| 61 | |||
| 62 | 16 | bool CoilPerformanceDXCooling_Impl::isGrossRatedTotalCoolingCapacityAutosized() const { | |
| 63 | 16 | bool result = false; | |
| 64 |
1/1✓ Branch 1 taken 16 times.
|
16 | boost::optional<std::string> value = getString(OS_CoilPerformance_DX_CoolingFields::GrossRatedTotalCoolingCapacity, true); |
| 65 |
1/2✓ Branch 0 taken 16 times.
✗ Branch 1 not taken.
|
16 | if (value) { |
| 66 |
3/3✓ Branch 1 taken 16 times.
✓ Branch 4 taken 16 times.
✓ Branch 7 taken 16 times.
|
32 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 67 | } | ||
| 68 | 16 | return result; | |
| 69 | 16 | } | |
| 70 | |||
| 71 | ✗ | boost::optional<double> CoilPerformanceDXCooling_Impl::grossRatedSensibleHeatRatio() const { | |
| 72 | ✗ | return getDouble(OS_CoilPerformance_DX_CoolingFields::GrossRatedSensibleHeatRatio, true); | |
| 73 | } | ||
| 74 | |||
| 75 | 16 | bool CoilPerformanceDXCooling_Impl::isGrossRatedSensibleHeatRatioAutosized() const { | |
| 76 | 16 | bool result = false; | |
| 77 |
1/1✓ Branch 1 taken 16 times.
|
16 | boost::optional<std::string> value = getString(OS_CoilPerformance_DX_CoolingFields::GrossRatedSensibleHeatRatio, true); |
| 78 |
1/2✓ Branch 0 taken 16 times.
✗ Branch 1 not taken.
|
16 | if (value) { |
| 79 |
3/3✓ Branch 1 taken 16 times.
✓ Branch 4 taken 16 times.
✓ Branch 7 taken 16 times.
|
32 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 80 | } | ||
| 81 | 16 | return result; | |
| 82 | 16 | } | |
| 83 | |||
| 84 | 16 | double CoilPerformanceDXCooling_Impl::grossRatedCoolingCOP() const { | |
| 85 |
1/1✓ Branch 1 taken 16 times.
|
16 | boost::optional<double> value = getDouble(OS_CoilPerformance_DX_CoolingFields::GrossRatedCoolingCOP, true); |
| 86 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 16 times.
✗ Branch 4 not taken.
|
16 | OS_ASSERT(value); |
| 87 |
1/1✓ Branch 1 taken 16 times.
|
32 | return value.get(); |
| 88 | } | ||
| 89 | |||
| 90 | ✗ | boost::optional<double> CoilPerformanceDXCooling_Impl::ratedAirFlowRate() const { | |
| 91 | ✗ | return getDouble(OS_CoilPerformance_DX_CoolingFields::RatedAirFlowRate, true); | |
| 92 | } | ||
| 93 | |||
| 94 | 16 | bool CoilPerformanceDXCooling_Impl::isRatedAirFlowRateAutosized() const { | |
| 95 | 16 | bool result = false; | |
| 96 |
1/1✓ Branch 1 taken 16 times.
|
16 | boost::optional<std::string> value = getString(OS_CoilPerformance_DX_CoolingFields::RatedAirFlowRate, true); |
| 97 |
1/2✓ Branch 0 taken 16 times.
✗ Branch 1 not taken.
|
16 | if (value) { |
| 98 |
3/3✓ Branch 1 taken 16 times.
✓ Branch 4 taken 16 times.
✓ Branch 7 taken 16 times.
|
32 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 99 | } | ||
| 100 | 16 | return result; | |
| 101 | 16 | } | |
| 102 | |||
| 103 | 16 | double CoilPerformanceDXCooling_Impl::fractionofAirFlowBypassedAroundCoil() const { | |
| 104 |
1/1✓ Branch 1 taken 16 times.
|
16 | boost::optional<double> value = getDouble(OS_CoilPerformance_DX_CoolingFields::FractionofAirFlowBypassedAroundCoil, true); |
| 105 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 16 times.
✗ Branch 4 not taken.
|
16 | OS_ASSERT(value); |
| 106 |
1/1✓ Branch 1 taken 16 times.
|
32 | return value.get(); |
| 107 | } | ||
| 108 | |||
| 109 | 32 | Curve CoilPerformanceDXCooling_Impl::totalCoolingCapacityFunctionofTemperatureCurve() const { | |
| 110 |
1/1✓ Branch 1 taken 32 times.
|
32 | boost::optional<Curve> value = optionalTotalCoolingCapacityFunctionofTemperatureCurve(); |
| 111 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 32 times.
|
32 | if (!value) { |
| 112 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Total Cooling Capacity Functionof Temperature Curve attached."); | |
| 113 | } | ||
| 114 |
2/2✓ Branch 1 taken 32 times.
✓ Branch 4 taken 32 times.
|
64 | return value.get(); |
| 115 | 32 | } | |
| 116 | |||
| 117 | 32 | Curve CoilPerformanceDXCooling_Impl::totalCoolingCapacityFunctionofFlowFractionCurve() const { | |
| 118 |
1/1✓ Branch 1 taken 32 times.
|
32 | boost::optional<Curve> value = optionalTotalCoolingCapacityFunctionofFlowFractionCurve(); |
| 119 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 32 times.
|
32 | if (!value) { |
| 120 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Total Cooling Capacity Functionof Flow Fraction Curve attached."); | |
| 121 | } | ||
| 122 |
2/2✓ Branch 1 taken 32 times.
✓ Branch 4 taken 32 times.
|
64 | return value.get(); |
| 123 | 32 | } | |
| 124 | |||
| 125 | 32 | Curve CoilPerformanceDXCooling_Impl::energyInputRatioFunctionofTemperatureCurve() const { | |
| 126 |
1/1✓ Branch 1 taken 32 times.
|
32 | boost::optional<Curve> value = optionalEnergyInputRatioFunctionofTemperatureCurve(); |
| 127 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 32 times.
|
32 | if (!value) { |
| 128 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Energy Input Ratio Functionof Temperature Curve attached."); | |
| 129 | } | ||
| 130 |
2/2✓ Branch 1 taken 32 times.
✓ Branch 4 taken 32 times.
|
64 | return value.get(); |
| 131 | 32 | } | |
| 132 | |||
| 133 | 32 | Curve CoilPerformanceDXCooling_Impl::energyInputRatioFunctionofFlowFractionCurve() const { | |
| 134 |
1/1✓ Branch 1 taken 32 times.
|
32 | boost::optional<Curve> value = optionalEnergyInputRatioFunctionofFlowFractionCurve(); |
| 135 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 32 times.
|
32 | if (!value) { |
| 136 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Energy Input Ratio Functionof Flow Fraction Curve attached."); | |
| 137 | } | ||
| 138 |
2/2✓ Branch 1 taken 32 times.
✓ Branch 4 taken 32 times.
|
64 | return value.get(); |
| 139 | 32 | } | |
| 140 | |||
| 141 | 32 | Curve CoilPerformanceDXCooling_Impl::partLoadFractionCorrelationCurve() const { | |
| 142 |
1/1✓ Branch 1 taken 32 times.
|
32 | boost::optional<Curve> value = optionalPartLoadFractionCorrelationCurve(); |
| 143 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 32 times.
|
32 | if (!value) { |
| 144 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Part Load Fraction Correlation Curve attached."); | |
| 145 | } | ||
| 146 |
2/2✓ Branch 1 taken 32 times.
✓ Branch 4 taken 32 times.
|
64 | return value.get(); |
| 147 | 32 | } | |
| 148 | |||
| 149 | 16 | double CoilPerformanceDXCooling_Impl::nominalTimeforCondensateRemovaltoBegin() const { | |
| 150 |
1/1✓ Branch 1 taken 16 times.
|
16 | boost::optional<double> value = getDouble(OS_CoilPerformance_DX_CoolingFields::NominalTimeforCondensateRemovaltoBegin, true); |
| 151 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 16 times.
✗ Branch 4 not taken.
|
16 | OS_ASSERT(value); |
| 152 |
1/1✓ Branch 1 taken 16 times.
|
32 | return value.get(); |
| 153 | } | ||
| 154 | |||
| 155 | 16 | double CoilPerformanceDXCooling_Impl::ratioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity() const { | |
| 156 | boost::optional<double> value = | ||
| 157 |
1/1✓ Branch 1 taken 16 times.
|
16 | getDouble(OS_CoilPerformance_DX_CoolingFields::RatioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity, true); |
| 158 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 16 times.
✗ Branch 4 not taken.
|
16 | OS_ASSERT(value); |
| 159 |
1/1✓ Branch 1 taken 16 times.
|
32 | return value.get(); |
| 160 | } | ||
| 161 | |||
| 162 | 16 | double CoilPerformanceDXCooling_Impl::maximumCyclingRate() const { | |
| 163 |
1/1✓ Branch 1 taken 16 times.
|
16 | boost::optional<double> value = getDouble(OS_CoilPerformance_DX_CoolingFields::MaximumCyclingRate, true); |
| 164 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 16 times.
✗ Branch 4 not taken.
|
16 | OS_ASSERT(value); |
| 165 |
1/1✓ Branch 1 taken 16 times.
|
32 | return value.get(); |
| 166 | } | ||
| 167 | |||
| 168 | 16 | double CoilPerformanceDXCooling_Impl::latentCapacityTimeConstant() const { | |
| 169 |
1/1✓ Branch 1 taken 16 times.
|
16 | boost::optional<double> value = getDouble(OS_CoilPerformance_DX_CoolingFields::LatentCapacityTimeConstant, true); |
| 170 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 16 times.
✗ Branch 4 not taken.
|
16 | OS_ASSERT(value); |
| 171 |
1/1✓ Branch 1 taken 16 times.
|
32 | return value.get(); |
| 172 | } | ||
| 173 | |||
| 174 | 16 | boost::optional<Node> CoilPerformanceDXCooling_Impl::condenserAirInletNode() const { | |
| 175 |
2/2✓ Branch 1 taken 16 times.
✓ Branch 4 taken 16 times.
|
16 | return getObject<ModelObject>().getModelObjectTarget<Node>(OS_CoilPerformance_DX_CoolingFields::CondenserAirInletNode); |
| 176 | } | ||
| 177 | |||
| 178 | 16 | std::string CoilPerformanceDXCooling_Impl::condenserType() const { | |
| 179 |
1/1✓ Branch 1 taken 16 times.
|
16 | boost::optional<std::string> value = getString(OS_CoilPerformance_DX_CoolingFields::CondenserType, true); |
| 180 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 16 times.
✗ Branch 4 not taken.
|
16 | OS_ASSERT(value); |
| 181 |
2/2✓ Branch 1 taken 16 times.
✓ Branch 4 taken 16 times.
|
32 | return value.get(); |
| 182 | 16 | } | |
| 183 | |||
| 184 | 16 | double CoilPerformanceDXCooling_Impl::evaporativeCondenserEffectiveness() const { | |
| 185 |
1/1✓ Branch 1 taken 16 times.
|
16 | boost::optional<double> value = getDouble(OS_CoilPerformance_DX_CoolingFields::EvaporativeCondenserEffectiveness, true); |
| 186 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 16 times.
✗ Branch 4 not taken.
|
16 | OS_ASSERT(value); |
| 187 |
1/1✓ Branch 1 taken 16 times.
|
32 | return value.get(); |
| 188 | } | ||
| 189 | |||
| 190 | ✗ | boost::optional<double> CoilPerformanceDXCooling_Impl::evaporativeCondenserAirFlowRate() const { | |
| 191 | ✗ | return getDouble(OS_CoilPerformance_DX_CoolingFields::EvaporativeCondenserAirFlowRate, true); | |
| 192 | } | ||
| 193 | |||
| 194 | 16 | bool CoilPerformanceDXCooling_Impl::isEvaporativeCondenserAirFlowRateAutosized() const { | |
| 195 | 16 | bool result = false; | |
| 196 |
1/1✓ Branch 1 taken 16 times.
|
16 | boost::optional<std::string> value = getString(OS_CoilPerformance_DX_CoolingFields::EvaporativeCondenserAirFlowRate, true); |
| 197 |
1/2✓ Branch 0 taken 16 times.
✗ Branch 1 not taken.
|
16 | if (value) { |
| 198 |
3/3✓ Branch 1 taken 16 times.
✓ Branch 4 taken 16 times.
✓ Branch 7 taken 16 times.
|
32 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 199 | } | ||
| 200 | 16 | return result; | |
| 201 | 16 | } | |
| 202 | |||
| 203 | ✗ | boost::optional<double> CoilPerformanceDXCooling_Impl::evaporativeCondenserPumpRatedPowerConsumption() const { | |
| 204 | ✗ | return getDouble(OS_CoilPerformance_DX_CoolingFields::EvaporativeCondenserPumpRatedPowerConsumption, true); | |
| 205 | } | ||
| 206 | |||
| 207 | 16 | bool CoilPerformanceDXCooling_Impl::isEvaporativeCondenserPumpRatedPowerConsumptionAutosized() const { | |
| 208 | 16 | bool result = false; | |
| 209 |
1/1✓ Branch 1 taken 16 times.
|
16 | boost::optional<std::string> value = getString(OS_CoilPerformance_DX_CoolingFields::EvaporativeCondenserPumpRatedPowerConsumption, true); |
| 210 |
1/2✓ Branch 0 taken 16 times.
✗ Branch 1 not taken.
|
16 | if (value) { |
| 211 |
3/3✓ Branch 1 taken 16 times.
✓ Branch 4 taken 16 times.
✓ Branch 7 taken 16 times.
|
32 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 212 | } | ||
| 213 | 16 | return result; | |
| 214 | 16 | } | |
| 215 | |||
| 216 | 32 | boost::optional<Curve> CoilPerformanceDXCooling_Impl::sensibleHeatRatioFunctionofTemperatureCurve() const { | |
| 217 |
2/2✓ Branch 1 taken 32 times.
✓ Branch 4 taken 32 times.
|
32 | return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_CoilPerformance_DX_CoolingFields::SensibleHeatRatioFunctionofTemperatureCurve); |
| 218 | } | ||
| 219 | |||
| 220 | 32 | boost::optional<Curve> CoilPerformanceDXCooling_Impl::sensibleHeatRatioFunctionofFlowFractionCurve() const { | |
| 221 |
2/2✓ Branch 1 taken 32 times.
✓ Branch 4 taken 32 times.
|
32 | return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_CoilPerformance_DX_CoolingFields::SensibleHeatRatioFunctionofFlowFractionCurve); |
| 222 | } | ||
| 223 | |||
| 224 | ✗ | bool CoilPerformanceDXCooling_Impl::setGrossRatedTotalCoolingCapacity(boost::optional<double> grossRatedTotalCoolingCapacity) { | |
| 225 | ✗ | bool result(false); | |
| 226 | ✗ | if (grossRatedTotalCoolingCapacity) { | |
| 227 | ✗ | result = setDouble(OS_CoilPerformance_DX_CoolingFields::GrossRatedTotalCoolingCapacity, grossRatedTotalCoolingCapacity.get()); | |
| 228 | } | ||
| 229 | ✗ | return result; | |
| 230 | } | ||
| 231 | |||
| 232 | 33 | void CoilPerformanceDXCooling_Impl::autosizeGrossRatedTotalCoolingCapacity() { | |
| 233 |
2/2✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
|
66 | bool result = setString(OS_CoilPerformance_DX_CoolingFields::GrossRatedTotalCoolingCapacity, "autosize"); |
| 234 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 33 times.
|
33 | OS_ASSERT(result); |
| 235 | 33 | } | |
| 236 | |||
| 237 | ✗ | bool CoilPerformanceDXCooling_Impl::setGrossRatedSensibleHeatRatio(boost::optional<double> grossRatedSensibleHeatRatio) { | |
| 238 | ✗ | bool result(false); | |
| 239 | ✗ | if (grossRatedSensibleHeatRatio) { | |
| 240 | ✗ | result = setDouble(OS_CoilPerformance_DX_CoolingFields::GrossRatedSensibleHeatRatio, grossRatedSensibleHeatRatio.get()); | |
| 241 | } | ||
| 242 | ✗ | return result; | |
| 243 | } | ||
| 244 | |||
| 245 | 33 | void CoilPerformanceDXCooling_Impl::autosizeGrossRatedSensibleHeatRatio() { | |
| 246 |
2/2✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
|
66 | bool result = setString(OS_CoilPerformance_DX_CoolingFields::GrossRatedSensibleHeatRatio, "autosize"); |
| 247 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 33 times.
|
33 | OS_ASSERT(result); |
| 248 | 33 | } | |
| 249 | |||
| 250 | 65 | bool CoilPerformanceDXCooling_Impl::setGrossRatedCoolingCOP(double grossRatedCoolingCOP) { | |
| 251 | 65 | bool result = setDouble(OS_CoilPerformance_DX_CoolingFields::GrossRatedCoolingCOP, grossRatedCoolingCOP); | |
| 252 | 65 | return result; | |
| 253 | } | ||
| 254 | |||
| 255 | ✗ | bool CoilPerformanceDXCooling_Impl::setRatedAirFlowRate(boost::optional<double> ratedAirFlowRate) { | |
| 256 | ✗ | bool result(false); | |
| 257 | ✗ | if (ratedAirFlowRate) { | |
| 258 | ✗ | result = setDouble(OS_CoilPerformance_DX_CoolingFields::RatedAirFlowRate, ratedAirFlowRate.get()); | |
| 259 | } | ||
| 260 | ✗ | return result; | |
| 261 | } | ||
| 262 | |||
| 263 | 33 | void CoilPerformanceDXCooling_Impl::autosizeRatedAirFlowRate() { | |
| 264 |
2/2✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
|
66 | bool result = setString(OS_CoilPerformance_DX_CoolingFields::RatedAirFlowRate, "autosize"); |
| 265 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 33 times.
|
33 | OS_ASSERT(result); |
| 266 | 33 | } | |
| 267 | |||
| 268 | 65 | bool CoilPerformanceDXCooling_Impl::setFractionofAirFlowBypassedAroundCoil(double fractionofAirFlowBypassedAroundCoil) { | |
| 269 | 65 | bool result = setDouble(OS_CoilPerformance_DX_CoolingFields::FractionofAirFlowBypassedAroundCoil, fractionofAirFlowBypassedAroundCoil); | |
| 270 | 65 | return result; | |
| 271 | } | ||
| 272 | |||
| 273 | 33 | bool CoilPerformanceDXCooling_Impl::setTotalCoolingCapacityFunctionofTemperatureCurve(const Curve& curve) { | |
| 274 |
2/2✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
|
33 | bool result = setPointer(OS_CoilPerformance_DX_CoolingFields::TotalCoolingCapacityFunctionofTemperatureCurve, curve.handle()); |
| 275 | 33 | return result; | |
| 276 | } | ||
| 277 | |||
| 278 | 33 | bool CoilPerformanceDXCooling_Impl::setTotalCoolingCapacityFunctionofFlowFractionCurve(const Curve& curve) { | |
| 279 |
2/2✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
|
33 | bool result = setPointer(OS_CoilPerformance_DX_CoolingFields::TotalCoolingCapacityFunctionofFlowFractionCurve, curve.handle()); |
| 280 | 33 | return result; | |
| 281 | } | ||
| 282 | |||
| 283 | 33 | bool CoilPerformanceDXCooling_Impl::setEnergyInputRatioFunctionofTemperatureCurve(const Curve& curve) { | |
| 284 |
2/2✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
|
33 | bool result = setPointer(OS_CoilPerformance_DX_CoolingFields::EnergyInputRatioFunctionofTemperatureCurve, curve.handle()); |
| 285 | 33 | return result; | |
| 286 | } | ||
| 287 | |||
| 288 | 33 | bool CoilPerformanceDXCooling_Impl::setEnergyInputRatioFunctionofFlowFractionCurve(const Curve& curve) { | |
| 289 |
2/2✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
|
33 | bool result = setPointer(OS_CoilPerformance_DX_CoolingFields::EnergyInputRatioFunctionofFlowFractionCurve, curve.handle()); |
| 290 | 33 | return result; | |
| 291 | } | ||
| 292 | |||
| 293 | 33 | bool CoilPerformanceDXCooling_Impl::setPartLoadFractionCorrelationCurve(const Curve& curve) { | |
| 294 |
2/2✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
|
33 | bool result = setPointer(OS_CoilPerformance_DX_CoolingFields::PartLoadFractionCorrelationCurve, curve.handle()); |
| 295 | 33 | return result; | |
| 296 | } | ||
| 297 | |||
| 298 | 33 | bool CoilPerformanceDXCooling_Impl::setNominalTimeforCondensateRemovaltoBegin(double nominalTimeforCondensateRemovaltoBegin) { | |
| 299 | 33 | bool result = setDouble(OS_CoilPerformance_DX_CoolingFields::NominalTimeforCondensateRemovaltoBegin, nominalTimeforCondensateRemovaltoBegin); | |
| 300 | 33 | return result; | |
| 301 | } | ||
| 302 | |||
| 303 | 33 | bool CoilPerformanceDXCooling_Impl::setRatioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity( | |
| 304 | double ratioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity) { | ||
| 305 | 33 | bool result = setDouble(OS_CoilPerformance_DX_CoolingFields::RatioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity, | |
| 306 | ratioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity); | ||
| 307 | 33 | return result; | |
| 308 | } | ||
| 309 | |||
| 310 | 33 | bool CoilPerformanceDXCooling_Impl::setMaximumCyclingRate(double maximumCyclingRate) { | |
| 311 | 33 | bool result = setDouble(OS_CoilPerformance_DX_CoolingFields::MaximumCyclingRate, maximumCyclingRate); | |
| 312 | 33 | return result; | |
| 313 | } | ||
| 314 | |||
| 315 | 33 | bool CoilPerformanceDXCooling_Impl::setLatentCapacityTimeConstant(double latentCapacityTimeConstant) { | |
| 316 | 33 | bool result = setDouble(OS_CoilPerformance_DX_CoolingFields::LatentCapacityTimeConstant, latentCapacityTimeConstant); | |
| 317 | 33 | return result; | |
| 318 | } | ||
| 319 | |||
| 320 | ✗ | bool CoilPerformanceDXCooling_Impl::setCondenserAirInletNode(const boost::optional<Node>& node) { | |
| 321 | ✗ | bool result(false); | |
| 322 | ✗ | if (node) { | |
| 323 | ✗ | result = setPointer(OS_CoilPerformance_DX_CoolingFields::CondenserAirInletNode, node.get().handle()); | |
| 324 | } else { | ||
| 325 | ✗ | resetCondenserAirInletNode(); | |
| 326 | ✗ | result = true; | |
| 327 | } | ||
| 328 | ✗ | return result; | |
| 329 | } | ||
| 330 | |||
| 331 | ✗ | void CoilPerformanceDXCooling_Impl::resetCondenserAirInletNode() { | |
| 332 | ✗ | bool result = setString(OS_CoilPerformance_DX_CoolingFields::CondenserAirInletNode, ""); | |
| 333 | ✗ | OS_ASSERT(result); | |
| 334 | ✗ | } | |
| 335 | |||
| 336 | 33 | bool CoilPerformanceDXCooling_Impl::setCondenserType(const std::string& condenserType) { | |
| 337 | 33 | bool result = setString(OS_CoilPerformance_DX_CoolingFields::CondenserType, condenserType); | |
| 338 | 33 | return result; | |
| 339 | } | ||
| 340 | |||
| 341 | 33 | bool CoilPerformanceDXCooling_Impl::setEvaporativeCondenserEffectiveness(double evaporativeCondenserEffectiveness) { | |
| 342 | 33 | bool result = setDouble(OS_CoilPerformance_DX_CoolingFields::EvaporativeCondenserEffectiveness, evaporativeCondenserEffectiveness); | |
| 343 | 33 | return result; | |
| 344 | } | ||
| 345 | |||
| 346 | ✗ | bool CoilPerformanceDXCooling_Impl::setEvaporativeCondenserAirFlowRate(boost::optional<double> evaporativeCondenserAirFlowRate) { | |
| 347 | ✗ | bool result(false); | |
| 348 | ✗ | if (evaporativeCondenserAirFlowRate) { | |
| 349 | ✗ | result = setDouble(OS_CoilPerformance_DX_CoolingFields::EvaporativeCondenserAirFlowRate, evaporativeCondenserAirFlowRate.get()); | |
| 350 | } | ||
| 351 | ✗ | return result; | |
| 352 | } | ||
| 353 | |||
| 354 | 33 | void CoilPerformanceDXCooling_Impl::autosizeEvaporativeCondenserAirFlowRate() { | |
| 355 |
2/2✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
|
66 | bool result = setString(OS_CoilPerformance_DX_CoolingFields::EvaporativeCondenserAirFlowRate, "autosize"); |
| 356 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 33 times.
|
33 | OS_ASSERT(result); |
| 357 | 33 | } | |
| 358 | |||
| 359 | ✗ | bool CoilPerformanceDXCooling_Impl::setEvaporativeCondenserPumpRatedPowerConsumption( | |
| 360 | boost::optional<double> evaporativeCondenserPumpRatedPowerConsumption) { | ||
| 361 | ✗ | bool result(false); | |
| 362 | ✗ | if (evaporativeCondenserPumpRatedPowerConsumption) { | |
| 363 | ✗ | result = setDouble(OS_CoilPerformance_DX_CoolingFields::EvaporativeCondenserPumpRatedPowerConsumption, | |
| 364 | ✗ | evaporativeCondenserPumpRatedPowerConsumption.get()); | |
| 365 | } | ||
| 366 | ✗ | return result; | |
| 367 | } | ||
| 368 | |||
| 369 | 33 | void CoilPerformanceDXCooling_Impl::autosizeEvaporativeCondenserPumpRatedPowerConsumption() { | |
| 370 |
2/2✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
|
66 | bool result = setString(OS_CoilPerformance_DX_CoolingFields::EvaporativeCondenserPumpRatedPowerConsumption, "autosize"); |
| 371 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 33 times.
|
33 | OS_ASSERT(result); |
| 372 | 33 | } | |
| 373 | |||
| 374 | ✗ | bool CoilPerformanceDXCooling_Impl::setSensibleHeatRatioFunctionofTemperatureCurve(const boost::optional<Curve>& curve) { | |
| 375 | ✗ | bool result(false); | |
| 376 | ✗ | if (curve) { | |
| 377 | ✗ | result = setPointer(OS_CoilPerformance_DX_CoolingFields::SensibleHeatRatioFunctionofTemperatureCurve, curve.get().handle()); | |
| 378 | } else { | ||
| 379 | ✗ | resetSensibleHeatRatioFunctionofTemperatureCurve(); | |
| 380 | ✗ | result = true; | |
| 381 | } | ||
| 382 | ✗ | return result; | |
| 383 | } | ||
| 384 | |||
| 385 | ✗ | void CoilPerformanceDXCooling_Impl::resetSensibleHeatRatioFunctionofTemperatureCurve() { | |
| 386 | ✗ | bool result = setString(OS_CoilPerformance_DX_CoolingFields::SensibleHeatRatioFunctionofTemperatureCurve, ""); | |
| 387 | ✗ | OS_ASSERT(result); | |
| 388 | ✗ | } | |
| 389 | |||
| 390 | ✗ | bool CoilPerformanceDXCooling_Impl::setSensibleHeatRatioFunctionofFlowFractionCurve(const boost::optional<Curve>& curve) { | |
| 391 | ✗ | bool result(false); | |
| 392 | ✗ | if (curve) { | |
| 393 | ✗ | result = setPointer(OS_CoilPerformance_DX_CoolingFields::SensibleHeatRatioFunctionofFlowFractionCurve, curve.get().handle()); | |
| 394 | } else { | ||
| 395 | ✗ | resetSensibleHeatRatioFunctionofFlowFractionCurve(); | |
| 396 | ✗ | result = true; | |
| 397 | } | ||
| 398 | ✗ | return result; | |
| 399 | } | ||
| 400 | |||
| 401 | ✗ | void CoilPerformanceDXCooling_Impl::resetSensibleHeatRatioFunctionofFlowFractionCurve() { | |
| 402 | ✗ | bool result = setString(OS_CoilPerformance_DX_CoolingFields::SensibleHeatRatioFunctionofFlowFractionCurve, ""); | |
| 403 | ✗ | OS_ASSERT(result); | |
| 404 | ✗ | } | |
| 405 | |||
| 406 | 32 | boost::optional<Curve> CoilPerformanceDXCooling_Impl::optionalTotalCoolingCapacityFunctionofTemperatureCurve() const { | |
| 407 |
1/1✓ Branch 1 taken 32 times.
|
64 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 408 |
1/1✓ Branch 1 taken 32 times.
|
64 | OS_CoilPerformance_DX_CoolingFields::TotalCoolingCapacityFunctionofTemperatureCurve); |
| 409 | } | ||
| 410 | |||
| 411 | 32 | boost::optional<Curve> CoilPerformanceDXCooling_Impl::optionalTotalCoolingCapacityFunctionofFlowFractionCurve() const { | |
| 412 |
1/1✓ Branch 1 taken 32 times.
|
64 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 413 |
1/1✓ Branch 1 taken 32 times.
|
64 | OS_CoilPerformance_DX_CoolingFields::TotalCoolingCapacityFunctionofFlowFractionCurve); |
| 414 | } | ||
| 415 | |||
| 416 | 32 | boost::optional<Curve> CoilPerformanceDXCooling_Impl::optionalEnergyInputRatioFunctionofTemperatureCurve() const { | |
| 417 |
2/2✓ Branch 1 taken 32 times.
✓ Branch 4 taken 32 times.
|
32 | return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_CoilPerformance_DX_CoolingFields::EnergyInputRatioFunctionofTemperatureCurve); |
| 418 | } | ||
| 419 | |||
| 420 | 32 | boost::optional<Curve> CoilPerformanceDXCooling_Impl::optionalEnergyInputRatioFunctionofFlowFractionCurve() const { | |
| 421 |
2/2✓ Branch 1 taken 32 times.
✓ Branch 4 taken 32 times.
|
32 | return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_CoilPerformance_DX_CoolingFields::EnergyInputRatioFunctionofFlowFractionCurve); |
| 422 | } | ||
| 423 | |||
| 424 | 32 | boost::optional<Curve> CoilPerformanceDXCooling_Impl::optionalPartLoadFractionCorrelationCurve() const { | |
| 425 |
2/2✓ Branch 1 taken 32 times.
✓ Branch 4 taken 32 times.
|
32 | return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_CoilPerformance_DX_CoolingFields::PartLoadFractionCorrelationCurve); |
| 426 | } | ||
| 427 | |||
| 428 | 16 | std::vector<ModelObject> CoilPerformanceDXCooling_Impl::children() const { | |
| 429 | 16 | std::vector<ModelObject> result; | |
| 430 | { | ||
| 431 |
1/1✓ Branch 1 taken 16 times.
|
16 | auto mo = totalCoolingCapacityFunctionofTemperatureCurve(); |
| 432 |
1/1✓ Branch 1 taken 16 times.
|
16 | result.push_back(mo); |
| 433 | 16 | } | |
| 434 | { | ||
| 435 |
1/1✓ Branch 1 taken 16 times.
|
16 | auto mo = totalCoolingCapacityFunctionofFlowFractionCurve(); |
| 436 |
1/1✓ Branch 1 taken 16 times.
|
16 | result.push_back(mo); |
| 437 | 16 | } | |
| 438 | { | ||
| 439 |
1/1✓ Branch 1 taken 16 times.
|
16 | auto mo = energyInputRatioFunctionofTemperatureCurve(); |
| 440 |
1/1✓ Branch 1 taken 16 times.
|
16 | result.push_back(mo); |
| 441 | 16 | } | |
| 442 | { | ||
| 443 |
1/1✓ Branch 1 taken 16 times.
|
16 | auto mo = energyInputRatioFunctionofFlowFractionCurve(); |
| 444 |
1/1✓ Branch 1 taken 16 times.
|
16 | result.push_back(mo); |
| 445 | 16 | } | |
| 446 | { | ||
| 447 |
1/1✓ Branch 1 taken 16 times.
|
16 | auto mo = partLoadFractionCorrelationCurve(); |
| 448 |
1/1✓ Branch 1 taken 16 times.
|
16 | result.push_back(mo); |
| 449 | 16 | } | |
| 450 | |||
| 451 |
2/3✓ Branch 1 taken 16 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 16 times.
|
32 | if (auto mo = sensibleHeatRatioFunctionofTemperatureCurve()) { |
| 452 | ✗ | result.push_back(mo.get()); | |
| 453 | 16 | } | |
| 454 |
2/3✓ Branch 1 taken 16 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 16 times.
|
32 | if (auto mo = sensibleHeatRatioFunctionofFlowFractionCurve()) { |
| 455 | ✗ | result.push_back(mo.get()); | |
| 456 | 16 | } | |
| 457 | 16 | return result; | |
| 458 | ✗ | } | |
| 459 | |||
| 460 | 4 | ModelObject CoilPerformanceDXCooling_Impl::clone(Model model) const { | |
| 461 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
|
4 | auto newObject = ModelObject_Impl::clone(model).cast<CoilPerformanceDXCooling>(); |
| 462 | |||
| 463 | 8 | return std::move(newObject); | |
| 464 | 4 | } | |
| 465 | |||
| 466 | ✗ | boost::optional<double> CoilPerformanceDXCooling_Impl::getAutosizedValueCustom(std::string valueName, std::string units) const { | |
| 467 | // Check that the model has a sql file | ||
| 468 | ✗ | if (!model().sqlFile()) { | |
| 469 | ✗ | LOG(Warn, "This model has no sql file, cannot retrieve the autosized value '" << valueName << "'."); | |
| 470 | ✗ | return boost::none; | |
| 471 | } | ||
| 472 | |||
| 473 | ✗ | auto parentCoils = getObject<CoilPerformanceDXCooling>().getModelObjectSources<CoilCoolingDXTwoStageWithHumidityControlMode>(); | |
| 474 | ✗ | if (parentCoils.empty()) { | |
| 475 | ✗ | LOG(Warn, briefDescription() << " does not have a parent CoilCoolingDXTwoStageWithHumidityControlMode, cannot retrieve the autosized value."); | |
| 476 | ✗ | return boost::none; | |
| 477 | } | ||
| 478 | ✗ | if (parentCoils.size() > 1) { | |
| 479 | ✗ | LOG(Warn, "For " << briefDescription() << ", more than one CoilCoolingDXTwoStageWithHumidityControlMode are using it, returning the first"); | |
| 480 | } | ||
| 481 | |||
| 482 | // Get the object name and transform to the way it is recorded | ||
| 483 | // in the sql file | ||
| 484 | ✗ | std::string sqlName = name().get(); | |
| 485 | ✗ | boost::to_upper(sqlName); | |
| 486 | |||
| 487 | ✗ | std::string parSqlName = parentCoils.front().nameString(); | |
| 488 | ✗ | boost::to_upper(parSqlName); | |
| 489 | // Join the parent and child object names, like: | ||
| 490 | // COIL COOLING DX TWO STAGE WITH HUMIDITY CONTROL MODE 1:COIL PERFORMANCE DX COOLING 1 | ||
| 491 | ✗ | sqlName = parSqlName + std::string(":") + sqlName; | |
| 492 | |||
| 493 | ✗ | const std::string sqlObjectType = "Coil:Cooling:DX:TwoStageWithHumidityControlMode"; | |
| 494 | |||
| 495 | ✗ | const std::string directQuery = R"sql( | |
| 496 | SELECT Value FROM ComponentSizes | ||
| 497 | WHERE CompType = ? | ||
| 498 | AND CompName = ? | ||
| 499 | AND Description = ? | ||
| 500 | AND Units = ?; | ||
| 501 | )sql"; | ||
| 502 | ✗ | boost::optional<double> val = model().sqlFile().get().execAndReturnFirstDouble(directQuery, | |
| 503 | // bindArgs | ||
| 504 | sqlObjectType, sqlName, valueName, units); | ||
| 505 | ✗ | if (!val) { | |
| 506 | ✗ | LOG(Debug, fmt::format(R"sql(The direct query failed: | |
| 507 | SELECT Value FROM ComponentSizes | ||
| 508 | WHERE CompType = '{}' | ||
| 509 | AND CompName = '{}' | ||
| 510 | AND Description = '{}' | ||
| 511 | AND Units = '{}';)sql", | ||
| 512 | sqlObjectType, sqlName, valueName, units)); | ||
| 513 | } | ||
| 514 | ✗ | return val; | |
| 515 | ✗ | } | |
| 516 | |||
| 517 | ✗ | boost::optional<double> CoilPerformanceDXCooling_Impl::autosizedGrossRatedTotalCoolingCapacity() const { | |
| 518 | ✗ | return getAutosizedValueCustom("Design Size Gross Rated Total Cooling Capacity", "W"); | |
| 519 | } | ||
| 520 | |||
| 521 | ✗ | boost::optional<double> CoilPerformanceDXCooling_Impl::autosizedGrossRatedSensibleHeatRatio() const { | |
| 522 | ✗ | return getAutosizedValueCustom("Design Size Gross Rated Sensible Heat Ratio", ""); | |
| 523 | } | ||
| 524 | |||
| 525 | ✗ | boost::optional<double> CoilPerformanceDXCooling_Impl::autosizedRatedAirFlowRate() const { | |
| 526 | ✗ | return getAutosizedValueCustom("Design Size Rated Air Flow Rate", "m3/s"); | |
| 527 | } | ||
| 528 | |||
| 529 | ✗ | boost::optional<double> CoilPerformanceDXCooling_Impl::autosizedEvaporativeCondenserAirFlowRate() const { | |
| 530 | ✗ | return getAutosizedValueCustom("Design Size Evaporative Condenser Air Flow Rate", "m3/s"); | |
| 531 | } | ||
| 532 | |||
| 533 | ✗ | boost::optional<double> CoilPerformanceDXCooling_Impl::autosizedEvaporativeCondenserPumpRatedPowerConsumption() const { | |
| 534 | ✗ | return getAutosizedValueCustom("Design Size Evaporative Condenser Pump Rated Power Consumption", "W"); | |
| 535 | } | ||
| 536 | |||
| 537 | ✗ | void CoilPerformanceDXCooling_Impl::autosize() { | |
| 538 | ✗ | autosizeGrossRatedTotalCoolingCapacity(); | |
| 539 | ✗ | autosizeGrossRatedSensibleHeatRatio(); | |
| 540 | ✗ | autosizeRatedAirFlowRate(); | |
| 541 | ✗ | autosizeEvaporativeCondenserAirFlowRate(); | |
| 542 | ✗ | autosizeEvaporativeCondenserPumpRatedPowerConsumption(); | |
| 543 | ✗ | } | |
| 544 | |||
| 545 | ✗ | void CoilPerformanceDXCooling_Impl::applySizingValues() { | |
| 546 | ✗ | boost::optional<double> val; | |
| 547 | ✗ | val = autosizedGrossRatedTotalCoolingCapacity(); | |
| 548 | ✗ | if (val) { | |
| 549 | ✗ | setGrossRatedTotalCoolingCapacity(val.get()); | |
| 550 | } | ||
| 551 | |||
| 552 | ✗ | val = autosizedGrossRatedSensibleHeatRatio(); | |
| 553 | ✗ | if (val) { | |
| 554 | ✗ | setGrossRatedSensibleHeatRatio(val.get()); | |
| 555 | } | ||
| 556 | |||
| 557 | ✗ | val = autosizedRatedAirFlowRate(); | |
| 558 | ✗ | if (val) { | |
| 559 | ✗ | setRatedAirFlowRate(val.get()); | |
| 560 | } | ||
| 561 | |||
| 562 | ✗ | val = autosizedEvaporativeCondenserAirFlowRate(); | |
| 563 | ✗ | if (val) { | |
| 564 | ✗ | setEvaporativeCondenserAirFlowRate(val.get()); | |
| 565 | } | ||
| 566 | |||
| 567 | ✗ | val = autosizedEvaporativeCondenserPumpRatedPowerConsumption(); | |
| 568 | ✗ | if (val) { | |
| 569 | ✗ | setEvaporativeCondenserPumpRatedPowerConsumption(val.get()); | |
| 570 | } | ||
| 571 | ✗ | } | |
| 572 | |||
| 573 | } // namespace detail | ||
| 574 | |||
| 575 | 32 | CoilPerformanceDXCooling::CoilPerformanceDXCooling(const Model& model, const Curve& coolingCapacityFunctionofTemperature, | |
| 576 | const Curve& coolingCapacityFunctionofFlowFraction, | ||
| 577 | const Curve& energyInputRatioFunctionofTemperature, | ||
| 578 | 32 | const Curve& energyInputRatioFunctionofFlowFraction, const Curve& partLoadFractionCorrelation) | |
| 579 | 32 | : ParentObject(CoilPerformanceDXCooling::iddObjectType(), model) { | |
| 580 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 32 times.
✗ Branch 5 not taken.
|
32 | OS_ASSERT(getImpl<detail::CoilPerformanceDXCooling_Impl>()); |
| 581 | |||
| 582 |
1/1✓ Branch 1 taken 32 times.
|
32 | autosizeGrossRatedTotalCoolingCapacity(); |
| 583 |
1/1✓ Branch 1 taken 32 times.
|
32 | autosizeGrossRatedSensibleHeatRatio(); |
| 584 |
1/1✓ Branch 1 taken 32 times.
|
32 | setGrossRatedCoolingCOP(3.0); |
| 585 |
1/1✓ Branch 1 taken 32 times.
|
32 | autosizeRatedAirFlowRate(); |
| 586 |
1/1✓ Branch 1 taken 32 times.
|
32 | setFractionofAirFlowBypassedAroundCoil(0.0); |
| 587 |
1/1✓ Branch 1 taken 32 times.
|
32 | setNominalTimeforCondensateRemovaltoBegin(1000.0); |
| 588 |
1/1✓ Branch 1 taken 32 times.
|
32 | setRatioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity(1.5); |
| 589 |
1/1✓ Branch 1 taken 32 times.
|
32 | setMaximumCyclingRate(3.0); |
| 590 |
1/1✓ Branch 1 taken 32 times.
|
32 | setLatentCapacityTimeConstant(45); |
| 591 |
2/2✓ Branch 1 taken 32 times.
✓ Branch 4 taken 32 times.
|
32 | setCondenserType("AirCooled"); |
| 592 |
1/1✓ Branch 1 taken 32 times.
|
32 | setEvaporativeCondenserEffectiveness(0.9); |
| 593 |
1/1✓ Branch 1 taken 32 times.
|
32 | autosizeEvaporativeCondenserAirFlowRate(); |
| 594 |
1/1✓ Branch 1 taken 32 times.
|
32 | autosizeEvaporativeCondenserPumpRatedPowerConsumption(); |
| 595 | |||
| 596 |
1/1✓ Branch 1 taken 32 times.
|
32 | setTotalCoolingCapacityFunctionofTemperatureCurve(coolingCapacityFunctionofTemperature); |
| 597 |
1/1✓ Branch 1 taken 32 times.
|
32 | setTotalCoolingCapacityFunctionofFlowFractionCurve(coolingCapacityFunctionofFlowFraction); |
| 598 |
1/1✓ Branch 1 taken 32 times.
|
32 | setEnergyInputRatioFunctionofTemperatureCurve(energyInputRatioFunctionofTemperature); |
| 599 |
1/1✓ Branch 1 taken 32 times.
|
32 | setEnergyInputRatioFunctionofFlowFractionCurve(energyInputRatioFunctionofFlowFraction); |
| 600 |
1/1✓ Branch 1 taken 32 times.
|
32 | setPartLoadFractionCorrelationCurve(partLoadFractionCorrelation); |
| 601 | 32 | } | |
| 602 | |||
| 603 | 1 | CoilPerformanceDXCooling::CoilPerformanceDXCooling(const Model& model) : ParentObject(CoilPerformanceDXCooling::iddObjectType(), model) { | |
| 604 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 1 time.
✗ Branch 5 not taken.
|
1 | OS_ASSERT(getImpl<detail::CoilPerformanceDXCooling_Impl>()); |
| 605 | |||
| 606 |
1/1✓ Branch 1 taken 1 time.
|
1 | autosizeGrossRatedTotalCoolingCapacity(); |
| 607 |
1/1✓ Branch 1 taken 1 time.
|
1 | autosizeGrossRatedSensibleHeatRatio(); |
| 608 |
1/1✓ Branch 1 taken 1 time.
|
1 | setGrossRatedCoolingCOP(3.0); |
| 609 |
1/1✓ Branch 1 taken 1 time.
|
1 | autosizeRatedAirFlowRate(); |
| 610 |
1/1✓ Branch 1 taken 1 time.
|
1 | setFractionofAirFlowBypassedAroundCoil(0.0); |
| 611 |
1/1✓ Branch 1 taken 1 time.
|
1 | setNominalTimeforCondensateRemovaltoBegin(1000.0); |
| 612 |
1/1✓ Branch 1 taken 1 time.
|
1 | setRatioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity(1.5); |
| 613 |
1/1✓ Branch 1 taken 1 time.
|
1 | setMaximumCyclingRate(3.0); |
| 614 |
1/1✓ Branch 1 taken 1 time.
|
1 | setLatentCapacityTimeConstant(45); |
| 615 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | setCondenserType("AirCooled"); |
| 616 |
1/1✓ Branch 1 taken 1 time.
|
1 | setEvaporativeCondenserEffectiveness(0.9); |
| 617 |
1/1✓ Branch 1 taken 1 time.
|
1 | autosizeEvaporativeCondenserAirFlowRate(); |
| 618 |
1/1✓ Branch 1 taken 1 time.
|
1 | autosizeEvaporativeCondenserPumpRatedPowerConsumption(); |
| 619 | |||
| 620 | { | ||
| 621 |
1/1✓ Branch 1 taken 1 time.
|
1 | CurveBiquadratic curve(model); |
| 622 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setCoefficient1Constant(1.067939449); |
| 623 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setCoefficient2x(-0.031261829); |
| 624 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setCoefficient3xPOW2(0.001974308); |
| 625 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setCoefficient4y(-0.002726426); |
| 626 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setCoefficient5yPOW2(-5.52654E-05); |
| 627 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setCoefficient6xTIMESY(-6.31169E-05); |
| 628 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setMinimumValueofx(-100); |
| 629 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setMaximumValueofx(100); |
| 630 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setMinimumValueofy(-100); |
| 631 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setMaximumValueofy(100); |
| 632 |
1/1✓ Branch 1 taken 1 time.
|
1 | setTotalCoolingCapacityFunctionofTemperatureCurve(curve); |
| 633 | 1 | } | |
| 634 | |||
| 635 | { | ||
| 636 |
1/1✓ Branch 1 taken 1 time.
|
1 | CurveQuadratic curve(model); |
| 637 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setCoefficient1Constant(0.8); |
| 638 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setCoefficient2x(0.2); |
| 639 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setCoefficient3xPOW2(0.0); |
| 640 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setMinimumValueofx(0.5); |
| 641 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setMaximumValueofx(1.5); |
| 642 |
1/1✓ Branch 1 taken 1 time.
|
1 | setTotalCoolingCapacityFunctionofFlowFractionCurve(curve); |
| 643 | 1 | } | |
| 644 | |||
| 645 | { | ||
| 646 |
1/1✓ Branch 1 taken 1 time.
|
1 | CurveBiquadratic curve(model); |
| 647 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setCoefficient1Constant(0.174059889); |
| 648 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setCoefficient2x(0.022281508); |
| 649 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setCoefficient3xPOW2(-0.000134077); |
| 650 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setCoefficient4y(0.028298025); |
| 651 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setCoefficient5yPOW2(0.000485106); |
| 652 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setCoefficient6xTIMESY(-0.001677095); |
| 653 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setMinimumValueofx(-100); |
| 654 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setMaximumValueofx(100); |
| 655 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setMinimumValueofy(-100); |
| 656 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setMaximumValueofy(100); |
| 657 |
1/1✓ Branch 1 taken 1 time.
|
1 | setEnergyInputRatioFunctionofTemperatureCurve(curve); |
| 658 | 1 | } | |
| 659 | |||
| 660 | { | ||
| 661 |
1/1✓ Branch 1 taken 1 time.
|
1 | CurveQuadratic curve(model); |
| 662 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setCoefficient1Constant(1552); |
| 663 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setCoefficient2x(0.1808); |
| 664 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setCoefficient3xPOW2(.0256); |
| 665 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setMinimumValueofx(.5); |
| 666 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setMaximumValueofx(1.5); |
| 667 |
1/1✓ Branch 1 taken 1 time.
|
1 | setEnergyInputRatioFunctionofFlowFractionCurve(curve); |
| 668 | 1 | } | |
| 669 | |||
| 670 | { | ||
| 671 |
1/1✓ Branch 1 taken 1 time.
|
1 | CurveQuadratic curve(model); |
| 672 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setCoefficient1Constant(0.85); |
| 673 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setCoefficient2x(0.15); |
| 674 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setCoefficient3xPOW2(0.0); |
| 675 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setMinimumValueofx(0.0); |
| 676 |
1/1✓ Branch 1 taken 1 time.
|
1 | curve.setMaximumValueofx(1.0); |
| 677 |
1/1✓ Branch 1 taken 1 time.
|
1 | setPartLoadFractionCorrelationCurve(curve); |
| 678 | 1 | } | |
| 679 | 1 | } | |
| 680 | |||
| 681 | 7683 | IddObjectType CoilPerformanceDXCooling::iddObjectType() { | |
| 682 |
1/1✓ Branch 1 taken 7683 times.
|
7683 | return {IddObjectType::OS_CoilPerformance_DX_Cooling}; |
| 683 | } | ||
| 684 | |||
| 685 | ✗ | std::vector<std::string> CoilPerformanceDXCooling::condenserTypeValues() { | |
| 686 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_CoilPerformance_DX_CoolingFields::CondenserType); | |
| 687 | } | ||
| 688 | |||
| 689 | ✗ | boost::optional<double> CoilPerformanceDXCooling::grossRatedTotalCoolingCapacity() const { | |
| 690 | ✗ | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->grossRatedTotalCoolingCapacity(); | |
| 691 | } | ||
| 692 | |||
| 693 | 16 | bool CoilPerformanceDXCooling::isGrossRatedTotalCoolingCapacityAutosized() const { | |
| 694 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->isGrossRatedTotalCoolingCapacityAutosized(); |
| 695 | } | ||
| 696 | |||
| 697 | ✗ | boost::optional<double> CoilPerformanceDXCooling::grossRatedSensibleHeatRatio() const { | |
| 698 | ✗ | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->grossRatedSensibleHeatRatio(); | |
| 699 | } | ||
| 700 | |||
| 701 | 16 | bool CoilPerformanceDXCooling::isGrossRatedSensibleHeatRatioAutosized() const { | |
| 702 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->isGrossRatedSensibleHeatRatioAutosized(); |
| 703 | } | ||
| 704 | |||
| 705 | 16 | double CoilPerformanceDXCooling::grossRatedCoolingCOP() const { | |
| 706 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->grossRatedCoolingCOP(); |
| 707 | } | ||
| 708 | |||
| 709 | ✗ | boost::optional<double> CoilPerformanceDXCooling::ratedAirFlowRate() const { | |
| 710 | ✗ | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->ratedAirFlowRate(); | |
| 711 | } | ||
| 712 | |||
| 713 | 16 | bool CoilPerformanceDXCooling::isRatedAirFlowRateAutosized() const { | |
| 714 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->isRatedAirFlowRateAutosized(); |
| 715 | } | ||
| 716 | |||
| 717 | 16 | double CoilPerformanceDXCooling::fractionofAirFlowBypassedAroundCoil() const { | |
| 718 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->fractionofAirFlowBypassedAroundCoil(); |
| 719 | } | ||
| 720 | |||
| 721 | 16 | Curve CoilPerformanceDXCooling::totalCoolingCapacityFunctionofTemperatureCurve() const { | |
| 722 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->totalCoolingCapacityFunctionofTemperatureCurve(); |
| 723 | } | ||
| 724 | |||
| 725 | 16 | Curve CoilPerformanceDXCooling::totalCoolingCapacityFunctionofFlowFractionCurve() const { | |
| 726 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->totalCoolingCapacityFunctionofFlowFractionCurve(); |
| 727 | } | ||
| 728 | |||
| 729 | 16 | Curve CoilPerformanceDXCooling::energyInputRatioFunctionofTemperatureCurve() const { | |
| 730 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->energyInputRatioFunctionofTemperatureCurve(); |
| 731 | } | ||
| 732 | |||
| 733 | 16 | Curve CoilPerformanceDXCooling::energyInputRatioFunctionofFlowFractionCurve() const { | |
| 734 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->energyInputRatioFunctionofFlowFractionCurve(); |
| 735 | } | ||
| 736 | |||
| 737 | 16 | Curve CoilPerformanceDXCooling::partLoadFractionCorrelationCurve() const { | |
| 738 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->partLoadFractionCorrelationCurve(); |
| 739 | } | ||
| 740 | |||
| 741 | 16 | double CoilPerformanceDXCooling::nominalTimeforCondensateRemovaltoBegin() const { | |
| 742 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->nominalTimeforCondensateRemovaltoBegin(); |
| 743 | } | ||
| 744 | |||
| 745 | 16 | double CoilPerformanceDXCooling::ratioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity() const { | |
| 746 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->ratioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity(); |
| 747 | } | ||
| 748 | |||
| 749 | 16 | double CoilPerformanceDXCooling::maximumCyclingRate() const { | |
| 750 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->maximumCyclingRate(); |
| 751 | } | ||
| 752 | |||
| 753 | 16 | double CoilPerformanceDXCooling::latentCapacityTimeConstant() const { | |
| 754 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->latentCapacityTimeConstant(); |
| 755 | } | ||
| 756 | |||
| 757 | 16 | boost::optional<Node> CoilPerformanceDXCooling::condenserAirInletNode() const { | |
| 758 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->condenserAirInletNode(); |
| 759 | } | ||
| 760 | |||
| 761 | 16 | std::string CoilPerformanceDXCooling::condenserType() const { | |
| 762 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->condenserType(); |
| 763 | } | ||
| 764 | |||
| 765 | 16 | double CoilPerformanceDXCooling::evaporativeCondenserEffectiveness() const { | |
| 766 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->evaporativeCondenserEffectiveness(); |
| 767 | } | ||
| 768 | |||
| 769 | ✗ | boost::optional<double> CoilPerformanceDXCooling::evaporativeCondenserAirFlowRate() const { | |
| 770 | ✗ | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->evaporativeCondenserAirFlowRate(); | |
| 771 | } | ||
| 772 | |||
| 773 | 16 | bool CoilPerformanceDXCooling::isEvaporativeCondenserAirFlowRateAutosized() const { | |
| 774 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->isEvaporativeCondenserAirFlowRateAutosized(); |
| 775 | } | ||
| 776 | |||
| 777 | ✗ | boost::optional<double> CoilPerformanceDXCooling::evaporativeCondenserPumpRatedPowerConsumption() const { | |
| 778 | ✗ | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->evaporativeCondenserPumpRatedPowerConsumption(); | |
| 779 | } | ||
| 780 | |||
| 781 | 16 | bool CoilPerformanceDXCooling::isEvaporativeCondenserPumpRatedPowerConsumptionAutosized() const { | |
| 782 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->isEvaporativeCondenserPumpRatedPowerConsumptionAutosized(); |
| 783 | } | ||
| 784 | |||
| 785 | 16 | boost::optional<Curve> CoilPerformanceDXCooling::sensibleHeatRatioFunctionofTemperatureCurve() const { | |
| 786 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->sensibleHeatRatioFunctionofTemperatureCurve(); |
| 787 | } | ||
| 788 | |||
| 789 | 16 | boost::optional<Curve> CoilPerformanceDXCooling::sensibleHeatRatioFunctionofFlowFractionCurve() const { | |
| 790 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->sensibleHeatRatioFunctionofFlowFractionCurve(); |
| 791 | } | ||
| 792 | |||
| 793 | ✗ | bool CoilPerformanceDXCooling::setGrossRatedTotalCoolingCapacity(double grossRatedTotalCoolingCapacity) { | |
| 794 | ✗ | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->setGrossRatedTotalCoolingCapacity(grossRatedTotalCoolingCapacity); | |
| 795 | } | ||
| 796 | |||
| 797 | 33 | void CoilPerformanceDXCooling::autosizeGrossRatedTotalCoolingCapacity() { | |
| 798 |
1/1✓ Branch 3 taken 33 times.
|
33 | getImpl<detail::CoilPerformanceDXCooling_Impl>()->autosizeGrossRatedTotalCoolingCapacity(); |
| 799 | 33 | } | |
| 800 | |||
| 801 | ✗ | bool CoilPerformanceDXCooling::setGrossRatedSensibleHeatRatio(double grossRatedSensibleHeatRatio) { | |
| 802 | ✗ | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->setGrossRatedSensibleHeatRatio(grossRatedSensibleHeatRatio); | |
| 803 | } | ||
| 804 | |||
| 805 | 33 | void CoilPerformanceDXCooling::autosizeGrossRatedSensibleHeatRatio() { | |
| 806 |
1/1✓ Branch 3 taken 33 times.
|
33 | getImpl<detail::CoilPerformanceDXCooling_Impl>()->autosizeGrossRatedSensibleHeatRatio(); |
| 807 | 33 | } | |
| 808 | |||
| 809 | 65 | bool CoilPerformanceDXCooling::setGrossRatedCoolingCOP(double grossRatedCoolingCOP) { | |
| 810 |
1/1✓ Branch 3 taken 65 times.
|
65 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->setGrossRatedCoolingCOP(grossRatedCoolingCOP); |
| 811 | } | ||
| 812 | |||
| 813 | ✗ | bool CoilPerformanceDXCooling::setRatedAirFlowRate(double ratedAirFlowRate) { | |
| 814 | ✗ | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->setRatedAirFlowRate(ratedAirFlowRate); | |
| 815 | } | ||
| 816 | |||
| 817 | 33 | void CoilPerformanceDXCooling::autosizeRatedAirFlowRate() { | |
| 818 |
1/1✓ Branch 3 taken 33 times.
|
33 | getImpl<detail::CoilPerformanceDXCooling_Impl>()->autosizeRatedAirFlowRate(); |
| 819 | 33 | } | |
| 820 | |||
| 821 | 65 | bool CoilPerformanceDXCooling::setFractionofAirFlowBypassedAroundCoil(double fractionofAirFlowBypassedAroundCoil) { | |
| 822 |
1/1✓ Branch 3 taken 65 times.
|
65 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->setFractionofAirFlowBypassedAroundCoil(fractionofAirFlowBypassedAroundCoil); |
| 823 | } | ||
| 824 | |||
| 825 | 33 | bool CoilPerformanceDXCooling::setTotalCoolingCapacityFunctionofTemperatureCurve(const Curve& curve) { | |
| 826 |
1/1✓ Branch 3 taken 33 times.
|
33 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->setTotalCoolingCapacityFunctionofTemperatureCurve(curve); |
| 827 | } | ||
| 828 | |||
| 829 | 33 | bool CoilPerformanceDXCooling::setTotalCoolingCapacityFunctionofFlowFractionCurve(const Curve& curve) { | |
| 830 |
1/1✓ Branch 3 taken 33 times.
|
33 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->setTotalCoolingCapacityFunctionofFlowFractionCurve(curve); |
| 831 | } | ||
| 832 | |||
| 833 | 33 | bool CoilPerformanceDXCooling::setEnergyInputRatioFunctionofTemperatureCurve(const Curve& curve) { | |
| 834 |
1/1✓ Branch 3 taken 33 times.
|
33 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->setEnergyInputRatioFunctionofTemperatureCurve(curve); |
| 835 | } | ||
| 836 | |||
| 837 | 33 | bool CoilPerformanceDXCooling::setEnergyInputRatioFunctionofFlowFractionCurve(const Curve& curve) { | |
| 838 |
1/1✓ Branch 3 taken 33 times.
|
33 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->setEnergyInputRatioFunctionofFlowFractionCurve(curve); |
| 839 | } | ||
| 840 | |||
| 841 | 33 | bool CoilPerformanceDXCooling::setPartLoadFractionCorrelationCurve(const Curve& curve) { | |
| 842 |
1/1✓ Branch 3 taken 33 times.
|
33 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->setPartLoadFractionCorrelationCurve(curve); |
| 843 | } | ||
| 844 | |||
| 845 | 33 | bool CoilPerformanceDXCooling::setNominalTimeforCondensateRemovaltoBegin(double nominalTimeforCondensateRemovaltoBegin) { | |
| 846 |
1/1✓ Branch 3 taken 33 times.
|
33 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->setNominalTimeforCondensateRemovaltoBegin(nominalTimeforCondensateRemovaltoBegin); |
| 847 | } | ||
| 848 | |||
| 849 | 33 | bool CoilPerformanceDXCooling::setRatioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity( | |
| 850 | double ratioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity) { | ||
| 851 |
1/1✓ Branch 3 taken 33 times.
|
66 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->setRatioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity( |
| 852 | 66 | ratioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity); | |
| 853 | } | ||
| 854 | |||
| 855 | 33 | bool CoilPerformanceDXCooling::setMaximumCyclingRate(double maximumCyclingRate) { | |
| 856 |
1/1✓ Branch 3 taken 33 times.
|
33 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->setMaximumCyclingRate(maximumCyclingRate); |
| 857 | } | ||
| 858 | |||
| 859 | 33 | bool CoilPerformanceDXCooling::setLatentCapacityTimeConstant(double latentCapacityTimeConstant) { | |
| 860 |
1/1✓ Branch 3 taken 33 times.
|
33 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->setLatentCapacityTimeConstant(latentCapacityTimeConstant); |
| 861 | } | ||
| 862 | |||
| 863 | ✗ | bool CoilPerformanceDXCooling::setCondenserAirInletNode(const Node& node) { | |
| 864 | ✗ | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->setCondenserAirInletNode(node); | |
| 865 | } | ||
| 866 | |||
| 867 | ✗ | void CoilPerformanceDXCooling::resetCondenserAirInletNode() { | |
| 868 | ✗ | getImpl<detail::CoilPerformanceDXCooling_Impl>()->resetCondenserAirInletNode(); | |
| 869 | ✗ | } | |
| 870 | |||
| 871 | 33 | bool CoilPerformanceDXCooling::setCondenserType(const std::string& condenserType) { | |
| 872 |
1/1✓ Branch 3 taken 33 times.
|
33 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->setCondenserType(condenserType); |
| 873 | } | ||
| 874 | |||
| 875 | 33 | bool CoilPerformanceDXCooling::setEvaporativeCondenserEffectiveness(double evaporativeCondenserEffectiveness) { | |
| 876 |
1/1✓ Branch 3 taken 33 times.
|
33 | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->setEvaporativeCondenserEffectiveness(evaporativeCondenserEffectiveness); |
| 877 | } | ||
| 878 | |||
| 879 | ✗ | bool CoilPerformanceDXCooling::setEvaporativeCondenserAirFlowRate(double evaporativeCondenserAirFlowRate) { | |
| 880 | ✗ | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->setEvaporativeCondenserAirFlowRate(evaporativeCondenserAirFlowRate); | |
| 881 | } | ||
| 882 | |||
| 883 | 33 | void CoilPerformanceDXCooling::autosizeEvaporativeCondenserAirFlowRate() { | |
| 884 |
1/1✓ Branch 3 taken 33 times.
|
33 | getImpl<detail::CoilPerformanceDXCooling_Impl>()->autosizeEvaporativeCondenserAirFlowRate(); |
| 885 | 33 | } | |
| 886 | |||
| 887 | ✗ | bool CoilPerformanceDXCooling::setEvaporativeCondenserPumpRatedPowerConsumption(double evaporativeCondenserPumpRatedPowerConsumption) { | |
| 888 | ✗ | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->setEvaporativeCondenserPumpRatedPowerConsumption( | |
| 889 | ✗ | evaporativeCondenserPumpRatedPowerConsumption); | |
| 890 | } | ||
| 891 | |||
| 892 | 33 | void CoilPerformanceDXCooling::autosizeEvaporativeCondenserPumpRatedPowerConsumption() { | |
| 893 |
1/1✓ Branch 3 taken 33 times.
|
33 | getImpl<detail::CoilPerformanceDXCooling_Impl>()->autosizeEvaporativeCondenserPumpRatedPowerConsumption(); |
| 894 | 33 | } | |
| 895 | |||
| 896 | ✗ | bool CoilPerformanceDXCooling::setSensibleHeatRatioFunctionofTemperatureCurve(const Curve& curve) { | |
| 897 | ✗ | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->setSensibleHeatRatioFunctionofTemperatureCurve(curve); | |
| 898 | } | ||
| 899 | |||
| 900 | ✗ | void CoilPerformanceDXCooling::resetSensibleHeatRatioFunctionofTemperatureCurve() { | |
| 901 | ✗ | getImpl<detail::CoilPerformanceDXCooling_Impl>()->resetSensibleHeatRatioFunctionofTemperatureCurve(); | |
| 902 | ✗ | } | |
| 903 | |||
| 904 | ✗ | bool CoilPerformanceDXCooling::setSensibleHeatRatioFunctionofFlowFractionCurve(const Curve& curve) { | |
| 905 | ✗ | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->setSensibleHeatRatioFunctionofFlowFractionCurve(curve); | |
| 906 | } | ||
| 907 | |||
| 908 | ✗ | void CoilPerformanceDXCooling::resetSensibleHeatRatioFunctionofFlowFractionCurve() { | |
| 909 | ✗ | getImpl<detail::CoilPerformanceDXCooling_Impl>()->resetSensibleHeatRatioFunctionofFlowFractionCurve(); | |
| 910 | ✗ | } | |
| 911 | |||
| 912 | /// @cond | ||
| 913 |
1/1✓ Branch 3 taken 100 times.
|
100 | CoilPerformanceDXCooling::CoilPerformanceDXCooling(std::shared_ptr<detail::CoilPerformanceDXCooling_Impl> impl) : ParentObject(std::move(impl)) {} |
| 914 | /// @endcond | ||
| 915 | |||
| 916 | ✗ | boost::optional<double> CoilPerformanceDXCooling::autosizedGrossRatedTotalCoolingCapacity() const { | |
| 917 | ✗ | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->autosizedGrossRatedTotalCoolingCapacity(); | |
| 918 | } | ||
| 919 | |||
| 920 | ✗ | boost::optional<double> CoilPerformanceDXCooling::autosizedGrossRatedSensibleHeatRatio() const { | |
| 921 | ✗ | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->autosizedGrossRatedSensibleHeatRatio(); | |
| 922 | } | ||
| 923 | |||
| 924 | ✗ | boost::optional<double> CoilPerformanceDXCooling::autosizedRatedAirFlowRate() const { | |
| 925 | ✗ | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->autosizedRatedAirFlowRate(); | |
| 926 | } | ||
| 927 | |||
| 928 | ✗ | boost::optional<double> CoilPerformanceDXCooling::autosizedEvaporativeCondenserAirFlowRate() const { | |
| 929 | ✗ | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->autosizedEvaporativeCondenserAirFlowRate(); | |
| 930 | } | ||
| 931 | |||
| 932 | ✗ | boost::optional<double> CoilPerformanceDXCooling::autosizedEvaporativeCondenserPumpRatedPowerConsumption() const { | |
| 933 | ✗ | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->autosizedEvaporativeCondenserPumpRatedPowerConsumption(); | |
| 934 | } | ||
| 935 | |||
| 936 | ✗ | void CoilPerformanceDXCooling::autosize() { | |
| 937 | ✗ | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->autosize(); | |
| 938 | } | ||
| 939 | |||
| 940 | ✗ | void CoilPerformanceDXCooling::applySizingValues() { | |
| 941 | ✗ | return getImpl<detail::CoilPerformanceDXCooling_Impl>()->applySizingValues(); | |
| 942 | } | ||
| 943 | |||
| 944 | } // namespace model | ||
| 945 | } // namespace openstudio | ||
| 946 |