src/model/ChillerElectricReformulatedEIR.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /*********************************************************************************************************************** | ||
| 2 | * OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC. | ||
| 3 | * See also https://openstudio.net/license | ||
| 4 | ***********************************************************************************************************************/ | ||
| 5 | |||
| 6 | #include "Model.hpp" | ||
| 7 | #include "ChillerElectricReformulatedEIR.hpp" | ||
| 8 | #include "ChillerElectricReformulatedEIR_Impl.hpp" | ||
| 9 | #include "Curve.hpp" | ||
| 10 | #include "Curve_Impl.hpp" | ||
| 11 | #include "CurveBiquadratic.hpp" | ||
| 12 | #include "CurveBiquadratic_Impl.hpp" | ||
| 13 | #include "CurveBicubic.hpp" | ||
| 14 | #include "CurveBicubic_Impl.hpp" | ||
| 15 | #include "Schedule.hpp" | ||
| 16 | #include "Schedule_Impl.hpp" | ||
| 17 | #include "Node.hpp" | ||
| 18 | #include "Node_Impl.hpp" | ||
| 19 | #include "PlantLoop.hpp" | ||
| 20 | |||
| 21 | #include "../utilities/core/Assert.hpp" | ||
| 22 | #include "../utilities/data/DataEnums.hpp" | ||
| 23 | |||
| 24 | #include <utilities/idd/IddFactory.hxx> | ||
| 25 | #include <utilities/idd/OS_Chiller_Electric_ReformulatedEIR_FieldEnums.hxx> | ||
| 26 | #include <utilities/idd/IddEnums.hxx> | ||
| 27 | |||
| 28 | namespace openstudio { | ||
| 29 | namespace model { | ||
| 30 | |||
| 31 | namespace detail { | ||
| 32 | |||
| 33 | 16 | ChillerElectricReformulatedEIR_Impl::ChillerElectricReformulatedEIR_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 34 | 16 | : WaterToWaterComponent_Impl(idfObject, model, keepHandle) { | |
| 35 |
4/6✓ Branch 1 taken 16 times.
✓ Branch 4 taken 16 times.
✓ Branch 7 taken 16 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 16 times.
✗ Branch 13 not taken.
|
16 | OS_ASSERT(idfObject.iddObject().type() == ChillerElectricReformulatedEIR::iddObjectType()); |
| 36 | 16 | } | |
| 37 | |||
| 38 | 1 | ChillerElectricReformulatedEIR_Impl::ChillerElectricReformulatedEIR_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, | |
| 39 | 1 | bool keepHandle) | |
| 40 | 1 | : WaterToWaterComponent_Impl(other, model, keepHandle) { | |
| 41 |
4/6✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 10 not taken.
✓ Branch 11 taken 1 time.
✗ Branch 13 not taken.
|
1 | OS_ASSERT(other.iddObject().type() == ChillerElectricReformulatedEIR::iddObjectType()); |
| 42 | 1 | } | |
| 43 | |||
| 44 | 1 | ChillerElectricReformulatedEIR_Impl::ChillerElectricReformulatedEIR_Impl(const ChillerElectricReformulatedEIR_Impl& other, Model_Impl* model, | |
| 45 | 1 | bool keepHandle) | |
| 46 | 1 | : WaterToWaterComponent_Impl(other, model, keepHandle) {} | |
| 47 | |||
| 48 | ✗ | const std::vector<std::string>& ChillerElectricReformulatedEIR_Impl::outputVariableNames() const { | |
| 49 | static const std::vector<std::string> result{ | ||
| 50 | "Chiller Part Load Ratio", | ||
| 51 | "Chiller Cycling Ratio", | ||
| 52 | "Chiller Electricity Rate", | ||
| 53 | "Chiller Electricity Energy", | ||
| 54 | "Chiller Evaporator Cooling Rate", | ||
| 55 | "Chiller Evaporator Cooling Energy", | ||
| 56 | "Chiller False Load Heat Transfer Rate", | ||
| 57 | "Chiller False Load Heat Transfer Energy", | ||
| 58 | "Chiller Evaporator Inlet Temperature", | ||
| 59 | "Chiller Evaporator Outlet Temperature", | ||
| 60 | "Chiller Evaporator Mass Flow Rate", | ||
| 61 | "Chiller Condenser Heat Transfer Rate", | ||
| 62 | "Chiller Condenser Heat Transfer Energy", | ||
| 63 | "Chiller COP", | ||
| 64 | "Chiller Capacity Temperature Modifier Multiplier", | ||
| 65 | "Chiller EIR Temperature Modifier Multiplier", | ||
| 66 | "Chiller EIR Part Load Modifier Multiplier", | ||
| 67 | "Chiller Condenser Inlet Temperature", | ||
| 68 | "Chiller Condenser Outlet Temperature", | ||
| 69 | "Chiller Condenser Mass Flow Rate", | ||
| 70 | "Chiller Effective Heat Rejection Temperature", | ||
| 71 | "Chiller Heat Recovery Inlet Temperature", | ||
| 72 | "Chiller Heat Recovery Mass Flow Rate", | ||
| 73 | "Chiller Heat Recovery Outlet Temperature", | ||
| 74 | "Chiller Total Recovered Heat Energy", | ||
| 75 | "Chiller Total Recovered Heat Rate", | ||
| 76 | "Thermosiphon Status", | ||
| 77 | ✗ | }; | |
| 78 | ✗ | return result; | |
| 79 | ✗ | } | |
| 80 | |||
| 81 | ✗ | IddObjectType ChillerElectricReformulatedEIR_Impl::iddObjectType() const { | |
| 82 | ✗ | return ChillerElectricReformulatedEIR::iddObjectType(); | |
| 83 | } | ||
| 84 | |||
| 85 | ✗ | std::vector<ScheduleTypeKey> ChillerElectricReformulatedEIR_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 86 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 87 | ✗ | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 88 | ✗ | UnsignedVector::const_iterator b(fieldIndices.begin()); | |
| 89 | ✗ | UnsignedVector::const_iterator e(fieldIndices.end()); | |
| 90 | ✗ | if (std::find(b, e, OS_Chiller_Electric_ReformulatedEIRFields::HeatRecoveryInletHighTemperatureLimitScheduleName) != e) { | |
| 91 | ✗ | result.emplace_back("ChillerElectricReformulatedEIR", "Heat Recovery Inlet High Temperature Limit"); | |
| 92 | ✗ | } else if (std::find(b, e, OS_Chiller_Electric_ReformulatedEIRFields::TemperatureDifferenceAcrossCondenserScheduleName) != e) { | |
| 93 | ✗ | result.emplace_back("ChillerElectricReformulatedEIR", "Temperature Difference Across Condenser"); | |
| 94 | } | ||
| 95 | |||
| 96 | ✗ | return result; | |
| 97 | ✗ | } | |
| 98 | |||
| 99 | 5 | boost::optional<double> ChillerElectricReformulatedEIR_Impl::referenceCapacity() const { | |
| 100 | 5 | return getDouble(OS_Chiller_Electric_ReformulatedEIRFields::ReferenceCapacity, true); | |
| 101 | } | ||
| 102 | |||
| 103 | 3 | bool ChillerElectricReformulatedEIR_Impl::isReferenceCapacityAutosized() const { | |
| 104 | 3 | bool result = false; | |
| 105 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<std::string> value = getString(OS_Chiller_Electric_ReformulatedEIRFields::ReferenceCapacity, true); |
| 106 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | if (value) { |
| 107 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
6 | result = openstudio::istringEqual(value.get(), "Autosize"); |
| 108 | } | ||
| 109 | 3 | return result; | |
| 110 | 3 | } | |
| 111 | |||
| 112 | 3 | double ChillerElectricReformulatedEIR_Impl::referenceCOP() const { | |
| 113 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_Chiller_Electric_ReformulatedEIRFields::ReferenceCOP, true); |
| 114 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 115 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 116 | } | ||
| 117 | |||
| 118 | 2 | double ChillerElectricReformulatedEIR_Impl::referenceLeavingChilledWaterTemperature() const { | |
| 119 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<double> value = getDouble(OS_Chiller_Electric_ReformulatedEIRFields::ReferenceLeavingChilledWaterTemperature, true); |
| 120 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(value); |
| 121 |
1/1✓ Branch 1 taken 2 times.
|
4 | return value.get(); |
| 122 | } | ||
| 123 | |||
| 124 | 3 | bool ChillerElectricReformulatedEIR_Impl::isReferenceLeavingChilledWaterTemperatureDefaulted() const { | |
| 125 | 3 | return isEmpty(OS_Chiller_Electric_ReformulatedEIRFields::ReferenceLeavingChilledWaterTemperature); | |
| 126 | } | ||
| 127 | |||
| 128 | 2 | double ChillerElectricReformulatedEIR_Impl::referenceLeavingCondenserWaterTemperature() const { | |
| 129 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<double> value = getDouble(OS_Chiller_Electric_ReformulatedEIRFields::ReferenceLeavingCondenserWaterTemperature, true); |
| 130 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(value); |
| 131 |
1/1✓ Branch 1 taken 2 times.
|
4 | return value.get(); |
| 132 | } | ||
| 133 | |||
| 134 | 3 | bool ChillerElectricReformulatedEIR_Impl::isReferenceLeavingCondenserWaterTemperatureDefaulted() const { | |
| 135 | 3 | return isEmpty(OS_Chiller_Electric_ReformulatedEIRFields::ReferenceLeavingCondenserWaterTemperature); | |
| 136 | } | ||
| 137 | |||
| 138 | 5 | boost::optional<double> ChillerElectricReformulatedEIR_Impl::referenceChilledWaterFlowRate() const { | |
| 139 | 5 | return getDouble(OS_Chiller_Electric_ReformulatedEIRFields::ReferenceChilledWaterFlowRate, true); | |
| 140 | } | ||
| 141 | |||
| 142 | 3 | bool ChillerElectricReformulatedEIR_Impl::isReferenceChilledWaterFlowRateAutosized() const { | |
| 143 | 3 | bool result = false; | |
| 144 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<std::string> value = getString(OS_Chiller_Electric_ReformulatedEIRFields::ReferenceChilledWaterFlowRate, true); |
| 145 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | if (value) { |
| 146 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
6 | result = openstudio::istringEqual(value.get(), "Autosize"); |
| 147 | } | ||
| 148 | 3 | return result; | |
| 149 | 3 | } | |
| 150 | |||
| 151 | 5 | boost::optional<double> ChillerElectricReformulatedEIR_Impl::referenceCondenserWaterFlowRate() const { | |
| 152 | 5 | return getDouble(OS_Chiller_Electric_ReformulatedEIRFields::ReferenceCondenserWaterFlowRate, true); | |
| 153 | } | ||
| 154 | |||
| 155 | 4 | bool ChillerElectricReformulatedEIR_Impl::isReferenceCondenserWaterFlowRateAutosized() const { | |
| 156 | 4 | bool result = false; | |
| 157 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<std::string> value = getString(OS_Chiller_Electric_ReformulatedEIRFields::ReferenceCondenserWaterFlowRate, true); |
| 158 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | if (value) { |
| 159 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
|
8 | result = openstudio::istringEqual(value.get(), "Autosize"); |
| 160 | } | ||
| 161 | 4 | return result; | |
| 162 | 4 | } | |
| 163 | |||
| 164 | 8 | Curve ChillerElectricReformulatedEIR_Impl::coolingCapacityFunctionOfTemperature() const { | |
| 165 |
3/3✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
|
8 | WorkspaceObject wo = getTarget(OS_Chiller_Electric_ReformulatedEIRFields::CoolingCapacityFunctionofTemperatureCurveName).get(); |
| 166 |
3/3✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
|
16 | return wo.optionalCast<Curve>().get(); |
| 167 | 8 | } | |
| 168 | |||
| 169 | 8 | Curve ChillerElectricReformulatedEIR_Impl::electricInputToCoolingOutputRatioFunctionOfTemperature() const { | |
| 170 | WorkspaceObject wo = | ||
| 171 |
3/3✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
|
8 | getTarget(OS_Chiller_Electric_ReformulatedEIRFields::ElectricInputtoCoolingOutputRatioFunctionofTemperatureCurveName).get(); |
| 172 |
3/3✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
|
16 | return wo.optionalCast<Curve>().get(); |
| 173 | 8 | } | |
| 174 | |||
| 175 | 5 | std::string ChillerElectricReformulatedEIR_Impl::electricInputToCoolingOutputRatioFunctionOfPLRType() const { | |
| 176 | boost::optional<std::string> value = | ||
| 177 |
1/1✓ Branch 1 taken 5 times.
|
5 | getString(OS_Chiller_Electric_ReformulatedEIRFields::ElectricInputtoCoolingOutputRatioFunctionofPartLoadRatioCurveType, true); |
| 178 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 179 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
10 | return value.get(); |
| 180 | 5 | } | |
| 181 | |||
| 182 | 8 | Curve ChillerElectricReformulatedEIR_Impl::electricInputToCoolingOutputRatioFunctionOfPLR() const { | |
| 183 | WorkspaceObject wo = | ||
| 184 |
3/3✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
|
8 | getTarget(OS_Chiller_Electric_ReformulatedEIRFields::ElectricInputtoCoolingOutputRatioFunctionofPartLoadRatioCurveName).get(); |
| 185 |
3/3✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
|
16 | return wo.optionalCast<Curve>().get(); |
| 186 | 8 | } | |
| 187 | |||
| 188 | 3 | double ChillerElectricReformulatedEIR_Impl::minimumPartLoadRatio() const { | |
| 189 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_Chiller_Electric_ReformulatedEIRFields::MinimumPartLoadRatio, true); |
| 190 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 191 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 192 | } | ||
| 193 | |||
| 194 | 3 | bool ChillerElectricReformulatedEIR_Impl::isMinimumPartLoadRatioDefaulted() const { | |
| 195 | 3 | return isEmpty(OS_Chiller_Electric_ReformulatedEIRFields::MinimumPartLoadRatio); | |
| 196 | } | ||
| 197 | |||
| 198 | 3 | double ChillerElectricReformulatedEIR_Impl::maximumPartLoadRatio() const { | |
| 199 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_Chiller_Electric_ReformulatedEIRFields::MaximumPartLoadRatio, true); |
| 200 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 201 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 202 | } | ||
| 203 | |||
| 204 | 3 | bool ChillerElectricReformulatedEIR_Impl::isMaximumPartLoadRatioDefaulted() const { | |
| 205 | 3 | return isEmpty(OS_Chiller_Electric_ReformulatedEIRFields::MaximumPartLoadRatio); | |
| 206 | } | ||
| 207 | |||
| 208 | 3 | double ChillerElectricReformulatedEIR_Impl::optimumPartLoadRatio() const { | |
| 209 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_Chiller_Electric_ReformulatedEIRFields::OptimumPartLoadRatio, true); |
| 210 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 211 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 212 | } | ||
| 213 | |||
| 214 | 3 | bool ChillerElectricReformulatedEIR_Impl::isOptimumPartLoadRatioDefaulted() const { | |
| 215 | 3 | return isEmpty(OS_Chiller_Electric_ReformulatedEIRFields::OptimumPartLoadRatio); | |
| 216 | } | ||
| 217 | |||
| 218 | 3 | double ChillerElectricReformulatedEIR_Impl::minimumUnloadingRatio() const { | |
| 219 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_Chiller_Electric_ReformulatedEIRFields::MinimumUnloadingRatio, true); |
| 220 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 221 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 222 | } | ||
| 223 | |||
| 224 | 3 | bool ChillerElectricReformulatedEIR_Impl::isMinimumUnloadingRatioDefaulted() const { | |
| 225 | 3 | return isEmpty(OS_Chiller_Electric_ReformulatedEIRFields::MinimumUnloadingRatio); | |
| 226 | } | ||
| 227 | |||
| 228 | 3 | double ChillerElectricReformulatedEIR_Impl::fractionofCompressorElectricConsumptionRejectedbyCondenser() const { | |
| 229 | boost::optional<double> value = | ||
| 230 |
1/1✓ Branch 1 taken 3 times.
|
3 | getDouble(OS_Chiller_Electric_ReformulatedEIRFields::FractionofCompressorElectricConsumptionRejectedbyCondenser, true); |
| 231 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 232 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 233 | } | ||
| 234 | |||
| 235 | 3 | bool ChillerElectricReformulatedEIR_Impl::isFractionofCompressorElectricConsumptionRejectedbyCondenserDefaulted() const { | |
| 236 | 3 | return isEmpty(OS_Chiller_Electric_ReformulatedEIRFields::FractionofCompressorElectricConsumptionRejectedbyCondenser); | |
| 237 | } | ||
| 238 | |||
| 239 | 3 | double ChillerElectricReformulatedEIR_Impl::leavingChilledWaterLowerTemperatureLimit() const { | |
| 240 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_Chiller_Electric_ReformulatedEIRFields::LeavingChilledWaterLowerTemperatureLimit, true); |
| 241 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 242 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 243 | } | ||
| 244 | |||
| 245 | 3 | bool ChillerElectricReformulatedEIR_Impl::isLeavingChilledWaterLowerTemperatureLimitDefaulted() const { | |
| 246 | 3 | return isEmpty(OS_Chiller_Electric_ReformulatedEIRFields::LeavingChilledWaterLowerTemperatureLimit); | |
| 247 | } | ||
| 248 | |||
| 249 | 4 | std::string ChillerElectricReformulatedEIR_Impl::chillerFlowMode() const { | |
| 250 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<std::string> value = getString(OS_Chiller_Electric_ReformulatedEIRFields::ChillerFlowMode, true); |
| 251 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 252 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | return value.get(); |
| 253 | 4 | } | |
| 254 | |||
| 255 | 3 | bool ChillerElectricReformulatedEIR_Impl::isChillerFlowModeDefaulted() const { | |
| 256 | 3 | return isEmpty(OS_Chiller_Electric_ReformulatedEIRFields::ChillerFlowMode); | |
| 257 | } | ||
| 258 | |||
| 259 | 5 | boost::optional<double> ChillerElectricReformulatedEIR_Impl::designHeatRecoveryWaterFlowRate() const { | |
| 260 | 5 | return getDouble(OS_Chiller_Electric_ReformulatedEIRFields::DesignHeatRecoveryWaterFlowRate, true); | |
| 261 | } | ||
| 262 | |||
| 263 | 3 | bool ChillerElectricReformulatedEIR_Impl::isDesignHeatRecoveryWaterFlowRateAutosized() const { | |
| 264 | 3 | bool result = false; | |
| 265 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<std::string> value = getString(OS_Chiller_Electric_ReformulatedEIRFields::DesignHeatRecoveryWaterFlowRate, true); |
| 266 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | if (value) { |
| 267 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
6 | result = openstudio::istringEqual(value.get(), "Autosize"); |
| 268 | } | ||
| 269 | 3 | return result; | |
| 270 | 3 | } | |
| 271 | |||
| 272 | 3 | double ChillerElectricReformulatedEIR_Impl::sizingFactor() const { | |
| 273 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_Chiller_Electric_ReformulatedEIRFields::SizingFactor, true); |
| 274 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 275 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 276 | } | ||
| 277 | |||
| 278 | 3 | bool ChillerElectricReformulatedEIR_Impl::isSizingFactorDefaulted() const { | |
| 279 | 3 | return isEmpty(OS_Chiller_Electric_ReformulatedEIRFields::SizingFactor); | |
| 280 | } | ||
| 281 | |||
| 282 | ✗ | bool ChillerElectricReformulatedEIR_Impl::setReferenceCapacity(boost::optional<double> referenceCapacity) { | |
| 283 | ✗ | bool result = false; | |
| 284 | ✗ | if (referenceCapacity) { | |
| 285 | ✗ | result = setDouble(OS_Chiller_Electric_ReformulatedEIRFields::ReferenceCapacity, referenceCapacity.get()); | |
| 286 | } | ||
| 287 | ✗ | return result; | |
| 288 | } | ||
| 289 | |||
| 290 | 16 | void ChillerElectricReformulatedEIR_Impl::autosizeReferenceCapacity() { | |
| 291 |
2/2✓ Branch 1 taken 16 times.
✓ Branch 4 taken 16 times.
|
32 | bool result = setString(OS_Chiller_Electric_ReformulatedEIRFields::ReferenceCapacity, "Autosize"); |
| 292 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 16 times.
|
16 | OS_ASSERT(result); |
| 293 | 16 | } | |
| 294 | |||
| 295 | 3 | bool ChillerElectricReformulatedEIR_Impl::setReferenceCapacity(double referenceCapacity) { | |
| 296 | 3 | return setDouble(OS_Chiller_Electric_ReformulatedEIRFields::ReferenceCapacity, referenceCapacity); | |
| 297 | } | ||
| 298 | |||
| 299 | 18 | bool ChillerElectricReformulatedEIR_Impl::setReferenceCOP(double referenceCOP) { | |
| 300 | 18 | return setDouble(OS_Chiller_Electric_ReformulatedEIRFields::ReferenceCOP, referenceCOP); | |
| 301 | } | ||
| 302 | |||
| 303 | 2 | bool ChillerElectricReformulatedEIR_Impl::setReferenceLeavingChilledWaterTemperature(double referenceLeavingChilledWaterTemperature) { | |
| 304 | bool result = | ||
| 305 | 2 | setDouble(OS_Chiller_Electric_ReformulatedEIRFields::ReferenceLeavingChilledWaterTemperature, referenceLeavingChilledWaterTemperature); | |
| 306 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
|
2 | OS_ASSERT(result); |
| 307 | 2 | return result; | |
| 308 | } | ||
| 309 | |||
| 310 | 1 | void ChillerElectricReformulatedEIR_Impl::resetReferenceLeavingChilledWaterTemperature() { | |
| 311 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Chiller_Electric_ReformulatedEIRFields::ReferenceLeavingChilledWaterTemperature, ""); |
| 312 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 313 | 1 | } | |
| 314 | |||
| 315 | 2 | bool ChillerElectricReformulatedEIR_Impl::setReferenceLeavingCondenserWaterTemperature(double referenceLeavingCondenserWaterTemperature) { | |
| 316 | bool result = | ||
| 317 | 2 | setDouble(OS_Chiller_Electric_ReformulatedEIRFields::ReferenceLeavingCondenserWaterTemperature, referenceLeavingCondenserWaterTemperature); | |
| 318 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
|
2 | OS_ASSERT(result); |
| 319 | 2 | return result; | |
| 320 | } | ||
| 321 | |||
| 322 | 1 | void ChillerElectricReformulatedEIR_Impl::resetReferenceLeavingCondenserWaterTemperature() { | |
| 323 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Chiller_Electric_ReformulatedEIRFields::ReferenceLeavingCondenserWaterTemperature, ""); |
| 324 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 325 | 1 | } | |
| 326 | |||
| 327 | ✗ | bool ChillerElectricReformulatedEIR_Impl::setReferenceChilledWaterFlowRate(boost::optional<double> referenceChilledWaterFlowRate) { | |
| 328 | ✗ | bool result = false; | |
| 329 | ✗ | if (referenceChilledWaterFlowRate) { | |
| 330 | ✗ | result = setDouble(OS_Chiller_Electric_ReformulatedEIRFields::ReferenceChilledWaterFlowRate, referenceChilledWaterFlowRate.get()); | |
| 331 | } | ||
| 332 | ✗ | return result; | |
| 333 | } | ||
| 334 | |||
| 335 | ✗ | void ChillerElectricReformulatedEIR_Impl::resetReferenceChilledWaterFlowRate() { | |
| 336 | ✗ | bool result = setString(OS_Chiller_Electric_ReformulatedEIRFields::ReferenceChilledWaterFlowRate, ""); | |
| 337 | ✗ | OS_ASSERT(result); | |
| 338 | ✗ | } | |
| 339 | |||
| 340 | 16 | void ChillerElectricReformulatedEIR_Impl::autosizeReferenceChilledWaterFlowRate() { | |
| 341 |
2/2✓ Branch 1 taken 16 times.
✓ Branch 4 taken 16 times.
|
32 | bool result = setString(OS_Chiller_Electric_ReformulatedEIRFields::ReferenceChilledWaterFlowRate, "Autosize"); |
| 342 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 16 times.
|
16 | OS_ASSERT(result); |
| 343 | 16 | } | |
| 344 | |||
| 345 | 3 | bool ChillerElectricReformulatedEIR_Impl::setReferenceChilledWaterFlowRate(double referenceChilledWaterFlowRate) { | |
| 346 | 3 | bool result = setDouble(OS_Chiller_Electric_ReformulatedEIRFields::ReferenceChilledWaterFlowRate, referenceChilledWaterFlowRate); | |
| 347 | 3 | return result; | |
| 348 | } | ||
| 349 | |||
| 350 | ✗ | bool ChillerElectricReformulatedEIR_Impl::setReferenceCondenserWaterFlowRate(boost::optional<double> referenceCondenserWaterFlowRate) { | |
| 351 | ✗ | bool result = false; | |
| 352 | ✗ | if (referenceCondenserWaterFlowRate) { | |
| 353 | ✗ | result = setDouble(OS_Chiller_Electric_ReformulatedEIRFields::ReferenceCondenserWaterFlowRate, referenceCondenserWaterFlowRate.get()); | |
| 354 | } | ||
| 355 | ✗ | return result; | |
| 356 | } | ||
| 357 | |||
| 358 | 1 | void ChillerElectricReformulatedEIR_Impl::resetReferenceCondenserWaterFlowRate() { | |
| 359 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Chiller_Electric_ReformulatedEIRFields::ReferenceCondenserWaterFlowRate, ""); |
| 360 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 361 | 1 | } | |
| 362 | |||
| 363 | 1 | void ChillerElectricReformulatedEIR_Impl::autosizeReferenceCondenserWaterFlowRate() { | |
| 364 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Chiller_Electric_ReformulatedEIRFields::ReferenceCondenserWaterFlowRate, "Autosize"); |
| 365 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 366 | 1 | } | |
| 367 | |||
| 368 | 4 | bool ChillerElectricReformulatedEIR_Impl::setReferenceCondenserWaterFlowRate(double referenceCondenserWaterFlowRate) { | |
| 369 | 4 | bool result = setDouble(OS_Chiller_Electric_ReformulatedEIRFields::ReferenceCondenserWaterFlowRate, referenceCondenserWaterFlowRate); | |
| 370 | 4 | return result; | |
| 371 | } | ||
| 372 | |||
| 373 | 16 | bool ChillerElectricReformulatedEIR_Impl::setCoolingCapacityFunctionOfTemperature(const Curve& curve) { | |
| 374 |
4/5✓ Branch 1 taken 16 times.
✓ Branch 4 taken 16 times.
✓ Branch 7 taken 16 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 16 times.
|
16 | if (model() != curve.model()) { |
| 375 | ✗ | return false; | |
| 376 | } | ||
| 377 |
2/2✓ Branch 1 taken 16 times.
✓ Branch 4 taken 16 times.
|
16 | return this->setPointer(OS_Chiller_Electric_ReformulatedEIRFields::CoolingCapacityFunctionofTemperatureCurveName, curve.handle()); |
| 378 | } | ||
| 379 | |||
| 380 | 16 | bool ChillerElectricReformulatedEIR_Impl::setElectricInputToCoolingOutputRatioFunctionOfTemperature(const Curve& curve) { | |
| 381 |
4/5✓ Branch 1 taken 16 times.
✓ Branch 4 taken 16 times.
✓ Branch 7 taken 16 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 16 times.
|
16 | if (model() != curve.model()) { |
| 382 | ✗ | return false; | |
| 383 | } | ||
| 384 |
1/1✓ Branch 1 taken 16 times.
|
16 | return this->setPointer(OS_Chiller_Electric_ReformulatedEIRFields::ElectricInputtoCoolingOutputRatioFunctionofTemperatureCurveName, |
| 385 |
1/1✓ Branch 1 taken 16 times.
|
32 | curve.handle()); |
| 386 | } | ||
| 387 | |||
| 388 | 3 | bool ChillerElectricReformulatedEIR_Impl::setElectricInputToCoolingOutputRatioFunctionOfPLRType( | |
| 389 | const std::string& electricInputToCoolingOutputRatioFunctionOfPLRType) { | ||
| 390 | 3 | return setString(OS_Chiller_Electric_ReformulatedEIRFields::ElectricInputtoCoolingOutputRatioFunctionofPartLoadRatioCurveType, | |
| 391 | 3 | electricInputToCoolingOutputRatioFunctionOfPLRType); | |
| 392 | } | ||
| 393 | |||
| 394 | 1 | void ChillerElectricReformulatedEIR_Impl::resetElectricInputToCoolingOutputRatioFunctionOfPLRType() { | |
| 395 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Chiller_Electric_ReformulatedEIRFields::ElectricInputtoCoolingOutputRatioFunctionofPartLoadRatioCurveType, ""); |
| 396 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 397 | 1 | } | |
| 398 | |||
| 399 | 16 | bool ChillerElectricReformulatedEIR_Impl::setElectricInputToCoolingOutputRatioFunctionOfPLR(const Curve& curve) { | |
| 400 |
4/5✓ Branch 1 taken 16 times.
✓ Branch 4 taken 16 times.
✓ Branch 7 taken 16 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 16 times.
|
16 | if (model() != curve.model()) { |
| 401 | ✗ | return false; | |
| 402 | } | ||
| 403 |
1/1✓ Branch 1 taken 16 times.
|
16 | return this->setPointer(OS_Chiller_Electric_ReformulatedEIRFields::ElectricInputtoCoolingOutputRatioFunctionofPartLoadRatioCurveName, |
| 404 |
1/1✓ Branch 1 taken 16 times.
|
32 | curve.handle()); |
| 405 | } | ||
| 406 | |||
| 407 | 3 | bool ChillerElectricReformulatedEIR_Impl::setMinimumPartLoadRatio(double minimumPartLoadRatio) { | |
| 408 | 3 | return setDouble(OS_Chiller_Electric_ReformulatedEIRFields::MinimumPartLoadRatio, minimumPartLoadRatio); | |
| 409 | } | ||
| 410 | |||
| 411 | 1 | void ChillerElectricReformulatedEIR_Impl::resetMinimumPartLoadRatio() { | |
| 412 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Chiller_Electric_ReformulatedEIRFields::MinimumPartLoadRatio, ""); |
| 413 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 414 | 1 | } | |
| 415 | |||
| 416 | 3 | bool ChillerElectricReformulatedEIR_Impl::setMaximumPartLoadRatio(double maximumPartLoadRatio) { | |
| 417 | 3 | return setDouble(OS_Chiller_Electric_ReformulatedEIRFields::MaximumPartLoadRatio, maximumPartLoadRatio); | |
| 418 | } | ||
| 419 | |||
| 420 | 1 | void ChillerElectricReformulatedEIR_Impl::resetMaximumPartLoadRatio() { | |
| 421 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Chiller_Electric_ReformulatedEIRFields::MaximumPartLoadRatio, ""); |
| 422 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 423 | 1 | } | |
| 424 | |||
| 425 | 3 | bool ChillerElectricReformulatedEIR_Impl::setOptimumPartLoadRatio(double optimumPartLoadRatio) { | |
| 426 | 3 | return setDouble(OS_Chiller_Electric_ReformulatedEIRFields::OptimumPartLoadRatio, optimumPartLoadRatio); | |
| 427 | } | ||
| 428 | |||
| 429 | 1 | void ChillerElectricReformulatedEIR_Impl::resetOptimumPartLoadRatio() { | |
| 430 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Chiller_Electric_ReformulatedEIRFields::OptimumPartLoadRatio, ""); |
| 431 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 432 | 1 | } | |
| 433 | |||
| 434 | 3 | bool ChillerElectricReformulatedEIR_Impl::setMinimumUnloadingRatio(double minimumUnloadingRatio) { | |
| 435 | 3 | return setDouble(OS_Chiller_Electric_ReformulatedEIRFields::MinimumUnloadingRatio, minimumUnloadingRatio); | |
| 436 | } | ||
| 437 | |||
| 438 | 1 | void ChillerElectricReformulatedEIR_Impl::resetMinimumUnloadingRatio() { | |
| 439 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Chiller_Electric_ReformulatedEIRFields::MinimumUnloadingRatio, ""); |
| 440 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 441 | 1 | } | |
| 442 | |||
| 443 | 3 | bool ChillerElectricReformulatedEIR_Impl::setFractionofCompressorElectricConsumptionRejectedbyCondenser( | |
| 444 | double fractionofCompressorElectricConsumptionRejectedbyCondenser) { | ||
| 445 | 3 | return setDouble(OS_Chiller_Electric_ReformulatedEIRFields::FractionofCompressorElectricConsumptionRejectedbyCondenser, | |
| 446 | 3 | fractionofCompressorElectricConsumptionRejectedbyCondenser); | |
| 447 | } | ||
| 448 | |||
| 449 | 1 | void ChillerElectricReformulatedEIR_Impl::resetFractionofCompressorElectricConsumptionRejectedbyCondenser() { | |
| 450 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Chiller_Electric_ReformulatedEIRFields::FractionofCompressorElectricConsumptionRejectedbyCondenser, ""); |
| 451 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 452 | 1 | } | |
| 453 | |||
| 454 | 2 | bool ChillerElectricReformulatedEIR_Impl::setLeavingChilledWaterLowerTemperatureLimit(double leavingChilledWaterLowerTemperatureLimit) { | |
| 455 | bool result = | ||
| 456 | 2 | setDouble(OS_Chiller_Electric_ReformulatedEIRFields::LeavingChilledWaterLowerTemperatureLimit, leavingChilledWaterLowerTemperatureLimit); | |
| 457 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
|
2 | OS_ASSERT(result); |
| 458 | 2 | return result; | |
| 459 | } | ||
| 460 | |||
| 461 | 1 | void ChillerElectricReformulatedEIR_Impl::resetLeavingChilledWaterLowerTemperatureLimit() { | |
| 462 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Chiller_Electric_ReformulatedEIRFields::LeavingChilledWaterLowerTemperatureLimit, ""); |
| 463 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 464 | 1 | } | |
| 465 | |||
| 466 | 3 | bool ChillerElectricReformulatedEIR_Impl::setChillerFlowMode(const std::string& chillerFlowMode) { | |
| 467 | 3 | bool result = false; | |
| 468 |
3/4✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 3 times.
|
6 | if (istringEqual(chillerFlowMode, "VariableFlow")) { |
| 469 | // Support legacy key | ||
| 470 | ✗ | result = setString(OS_Chiller_Electric_ReformulatedEIRFields::ChillerFlowMode, "LeavingSetpointModulated"); | |
| 471 | } else { | ||
| 472 | 3 | result = setString(OS_Chiller_Electric_ReformulatedEIRFields::ChillerFlowMode, chillerFlowMode); | |
| 473 | } | ||
| 474 | |||
| 475 | 3 | return result; | |
| 476 | } | ||
| 477 | |||
| 478 | 1 | void ChillerElectricReformulatedEIR_Impl::resetChillerFlowMode() { | |
| 479 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Chiller_Electric_ReformulatedEIRFields::ChillerFlowMode, ""); |
| 480 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 481 | 1 | } | |
| 482 | |||
| 483 | 3 | bool ChillerElectricReformulatedEIR_Impl::setDesignHeatRecoveryWaterFlowRate(double designHeatRecoveryWaterFlowRate) { | |
| 484 | 3 | return setDouble(OS_Chiller_Electric_ReformulatedEIRFields::DesignHeatRecoveryWaterFlowRate, designHeatRecoveryWaterFlowRate); | |
| 485 | } | ||
| 486 | |||
| 487 | 16 | void ChillerElectricReformulatedEIR_Impl::autosizeDesignHeatRecoveryWaterFlowRate() { | |
| 488 |
2/2✓ Branch 1 taken 16 times.
✓ Branch 4 taken 16 times.
|
32 | bool result = setString(OS_Chiller_Electric_ReformulatedEIRFields::DesignHeatRecoveryWaterFlowRate, "Autosize"); |
| 489 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 16 times.
|
16 | OS_ASSERT(result); |
| 490 | 16 | } | |
| 491 | |||
| 492 | 3 | bool ChillerElectricReformulatedEIR_Impl::setSizingFactor(double sizingFactor) { | |
| 493 | 3 | return setDouble(OS_Chiller_Electric_ReformulatedEIRFields::SizingFactor, sizingFactor); | |
| 494 | } | ||
| 495 | |||
| 496 | 1 | void ChillerElectricReformulatedEIR_Impl::resetSizingFactor() { | |
| 497 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Chiller_Electric_ReformulatedEIRFields::SizingFactor, ""); |
| 498 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 499 | 1 | } | |
| 500 | |||
| 501 | 94 | unsigned ChillerElectricReformulatedEIR_Impl::supplyInletPort() const { | |
| 502 | 94 | return OS_Chiller_Electric_ReformulatedEIRFields::ChilledWaterInletNodeName; | |
| 503 | } | ||
| 504 | |||
| 505 | 50 | unsigned ChillerElectricReformulatedEIR_Impl::supplyOutletPort() const { | |
| 506 | 50 | return OS_Chiller_Electric_ReformulatedEIRFields::ChilledWaterOutletNodeName; | |
| 507 | } | ||
| 508 | |||
| 509 | 70 | unsigned ChillerElectricReformulatedEIR_Impl::demandInletPort() const { | |
| 510 | 70 | return OS_Chiller_Electric_ReformulatedEIRFields::CondenserInletNodeName; | |
| 511 | } | ||
| 512 | |||
| 513 | 58 | unsigned ChillerElectricReformulatedEIR_Impl::demandOutletPort() const { | |
| 514 | 58 | return OS_Chiller_Electric_ReformulatedEIRFields::CondenserOutletNodeName; | |
| 515 | } | ||
| 516 | |||
| 517 | 28 | unsigned ChillerElectricReformulatedEIR_Impl::tertiaryInletPort() const { | |
| 518 | 28 | return OS_Chiller_Electric_ReformulatedEIRFields::HeatRecoveryInletNodeName; | |
| 519 | } | ||
| 520 | |||
| 521 | 95 | unsigned ChillerElectricReformulatedEIR_Impl::tertiaryOutletPort() const { | |
| 522 | 95 | return OS_Chiller_Electric_ReformulatedEIRFields::HeatRecoveryOutletNodeName; | |
| 523 | } | ||
| 524 | |||
| 525 | ✗ | ModelObject ChillerElectricReformulatedEIR_Impl::clone(Model model) const { | |
| 526 | ✗ | auto chiller = WaterToWaterComponent_Impl::clone(model).cast<ChillerElectricReformulatedEIR>(); | |
| 527 | |||
| 528 | ✗ | return std::move(chiller); | |
| 529 | ✗ | } | |
| 530 | |||
| 531 | 5 | std::vector<ModelObject> ChillerElectricReformulatedEIR_Impl::children() const { | |
| 532 | 5 | std::vector<ModelObject> result; | |
| 533 |
1/1✓ Branch 1 taken 5 times.
|
5 | result.reserve(5); |
| 534 | |||
| 535 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | result.emplace_back(coolingCapacityFunctionOfTemperature()); |
| 536 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | result.emplace_back(electricInputToCoolingOutputRatioFunctionOfTemperature()); |
| 537 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | result.emplace_back(electricInputToCoolingOutputRatioFunctionOfPLR()); |
| 538 |
3/3✓ Branch 1 taken 5 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 4 times.
|
10 | if (auto curve_ = condenserLoopFlowRateFractionFunctionofLoopPartLoadRatioCurve()) { |
| 539 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 5 taken 1 time.
|
1 | result.emplace_back(std::move(*curve_)); |
| 540 | 5 | } | |
| 541 |
3/3✓ Branch 1 taken 5 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 4 times.
|
10 | if (auto curve_ = thermosiphonCapacityFractionCurve()) { |
| 542 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 5 taken 1 time.
|
1 | result.emplace_back(std::move(*curve_)); |
| 543 | 5 | } | |
| 544 | 5 | return result; | |
| 545 | ✗ | } | |
| 546 | |||
| 547 | /** Convenience Function to return the Chilled Water Loop (chiller on supply) **/ | ||
| 548 | 12 | boost::optional<PlantLoop> ChillerElectricReformulatedEIR_Impl::chilledWaterLoop() const { | |
| 549 | 12 | return WaterToWaterComponent_Impl::plantLoop(); | |
| 550 | } | ||
| 551 | |||
| 552 | /** Convenience Function to return the Condenser Water Loop (chiller on demand side) **/ | ||
| 553 | 26 | boost::optional<PlantLoop> ChillerElectricReformulatedEIR_Impl::condenserWaterLoop() const { | |
| 554 | 26 | return WaterToWaterComponent_Impl::secondaryPlantLoop(); | |
| 555 | } | ||
| 556 | |||
| 557 | /** Convenience Function to return the Heat Recovery Loop **/ | ||
| 558 | 17 | boost::optional<PlantLoop> ChillerElectricReformulatedEIR_Impl::heatRecoveryLoop() const { | |
| 559 | 17 | return WaterToWaterComponent_Impl::tertiaryPlantLoop(); | |
| 560 | } | ||
| 561 | |||
| 562 | ✗ | boost::optional<Node> ChillerElectricReformulatedEIR_Impl::chilledWaterInletNode() const { | |
| 563 | ✗ | if (auto mo_ = supplyInletModelObject()) { | |
| 564 | ✗ | return mo_->optionalCast<Node>(); | |
| 565 | ✗ | } | |
| 566 | ✗ | return boost::none; | |
| 567 | } | ||
| 568 | |||
| 569 | ✗ | boost::optional<Node> ChillerElectricReformulatedEIR_Impl::chilledWaterOutletNode() const { | |
| 570 | ✗ | if (auto mo_ = supplyOutletModelObject()) { | |
| 571 | ✗ | return mo_->optionalCast<Node>(); | |
| 572 | ✗ | } | |
| 573 | ✗ | return boost::none; | |
| 574 | } | ||
| 575 | |||
| 576 | ✗ | boost::optional<Node> ChillerElectricReformulatedEIR_Impl::condenserInletNode() const { | |
| 577 | ✗ | if (auto mo_ = demandInletModelObject()) { | |
| 578 | ✗ | return mo_->optionalCast<Node>(); | |
| 579 | ✗ | } | |
| 580 | ✗ | return boost::none; | |
| 581 | } | ||
| 582 | |||
| 583 | ✗ | boost::optional<Node> ChillerElectricReformulatedEIR_Impl::condenserOutletNode() const { | |
| 584 | ✗ | if (auto mo_ = demandOutletModelObject()) { | |
| 585 | ✗ | return mo_->optionalCast<Node>(); | |
| 586 | ✗ | } | |
| 587 | ✗ | return boost::none; | |
| 588 | } | ||
| 589 | |||
| 590 | ✗ | boost::optional<Node> ChillerElectricReformulatedEIR_Impl::heatRecoveryInletNode() const { | |
| 591 | ✗ | if (auto mo_ = tertiaryInletModelObject()) { | |
| 592 | ✗ | return mo_->optionalCast<Node>(); | |
| 593 | ✗ | } | |
| 594 | ✗ | return boost::none; | |
| 595 | } | ||
| 596 | |||
| 597 | ✗ | boost::optional<Node> ChillerElectricReformulatedEIR_Impl::heatRecoveryOutletNode() const { | |
| 598 | ✗ | if (auto mo_ = tertiaryOutletModelObject()) { | |
| 599 | ✗ | return mo_->optionalCast<Node>(); | |
| 600 | ✗ | } | |
| 601 | ✗ | return boost::none; | |
| 602 | } | ||
| 603 | |||
| 604 | 19 | bool ChillerElectricReformulatedEIR_Impl::addToNode(Node& node) { | |
| 605 | |||
| 606 |
1/1✓ Branch 1 taken 19 times.
|
19 | boost::optional<PlantLoop> t_plantLoop = node.plantLoop(); |
| 607 | |||
| 608 | // If trying to add to a node that is on the demand side of a plant loop | ||
| 609 |
1/2✓ Branch 0 taken 19 times.
✗ Branch 1 not taken.
|
19 | if (t_plantLoop) { |
| 610 |
5/5✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
✓ Branch 7 taken 19 times.
✓ Branch 10 taken 12 times.
✓ Branch 11 taken 7 times.
|
38 | if (t_plantLoop->demandComponent(node.handle())) { |
| 611 | // If there is already a condenser water Plant Loop | ||
| 612 |
3/3✓ Branch 1 taken 12 times.
✓ Branch 3 taken 4 times.
✓ Branch 4 taken 8 times.
|
24 | if (boost::optional<PlantLoop> cndLoop = this->condenserWaterLoop()) { |
| 613 | // And it's not the same as the node's loop | ||
| 614 |
4/5✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 9 taken 4 times.
✗ Branch 10 not taken.
|
4 | if (t_plantLoop.get() != cndLoop.get()) { |
| 615 | // And if there is no generator loop (tertiary) | ||
| 616 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 5 taken 3 times.
✓ Branch 6 taken 1 time.
|
4 | if (!this->heatRecoveryLoop().is_initialized()) { |
| 617 | // Then try to add it to the tertiary one | ||
| 618 |
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(Warn, "Calling addToTertiaryNode to connect it to the tertiary (=Heat Recovery Loop) loop for " << briefDescription()); |
| 619 |
1/1✓ Branch 1 taken 3 times.
|
3 | return this->addToTertiaryNode(node); |
| 620 | } | ||
| 621 | } | ||
| 622 | 12 | } | |
| 623 | } | ||
| 624 | } | ||
| 625 | |||
| 626 | // All other cases, call the base class implementation | ||
| 627 | // Connect the component | ||
| 628 |
1/1✓ Branch 1 taken 16 times.
|
16 | bool ok = WaterToWaterComponent_Impl::addToNode(node); |
| 629 | |||
| 630 | 16 | return ok; | |
| 631 | 19 | } | |
| 632 | |||
| 633 | 5 | bool ChillerElectricReformulatedEIR_Impl::addToTertiaryNode(Node& node) { | |
| 634 |
1/1✓ Branch 1 taken 5 times.
|
5 | auto _model = node.model(); |
| 635 |
1/1✓ Branch 1 taken 5 times.
|
5 | auto t_plantLoop = node.plantLoop(); |
| 636 | |||
| 637 | // Only accept adding to a node that is on a demand side of a plant loop | ||
| 638 | // Since tertiary here = heat recovery loop (heating) | ||
| 639 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | if (t_plantLoop) { |
| 640 |
5/5✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✓ Branch 10 taken 4 times.
✓ Branch 11 taken 1 time.
|
10 | if (t_plantLoop->demandComponent(node.handle())) { |
| 641 | // Call base class method which accepts both supply and demand | ||
| 642 |
1/1✓ Branch 1 taken 4 times.
|
4 | return WaterToWaterComponent_Impl::addToTertiaryNode(node); |
| 643 | } else { | ||
| 644 |
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, |
| 645 | "Tertiary Loop (Heat Recovery Loop) connections can only be placed on the Demand side (of a Heating Loop), for " << briefDescription()); | ||
| 646 | } | ||
| 647 | } | ||
| 648 | 1 | return false; | |
| 649 | 5 | } | |
| 650 | |||
| 651 | 14 | bool ChillerElectricReformulatedEIR_Impl::removeFromSecondaryPlantLoop() { | |
| 652 | // Disconnect the component | ||
| 653 | 14 | bool ok = WaterToWaterComponent_Impl::removeFromSecondaryPlantLoop(); | |
| 654 | |||
| 655 | 14 | return ok; | |
| 656 | } | ||
| 657 | |||
| 658 | ✗ | boost::optional<double> ChillerElectricReformulatedEIR_Impl::autosizedReferenceCapacity() const { | |
| 659 | ✗ | return getAutosizedValue("Design Size Reference Capacity", "W"); | |
| 660 | } | ||
| 661 | |||
| 662 | ✗ | boost::optional<double> ChillerElectricReformulatedEIR_Impl::autosizedReferenceChilledWaterFlowRate() const { | |
| 663 | ✗ | return getAutosizedValue("Design Size Reference Chilled Water Flow Rate", "m3/s"); | |
| 664 | } | ||
| 665 | |||
| 666 | ✗ | boost::optional<double> ChillerElectricReformulatedEIR_Impl::autosizedReferenceCondenserWaterFlowRate() const { | |
| 667 | ✗ | return getAutosizedValue("Design Size Reference Condenser Water Flow Rate", "m3/s"); | |
| 668 | } | ||
| 669 | |||
| 670 | ✗ | boost::optional<double> ChillerElectricReformulatedEIR_Impl::autosizedDesignHeatRecoveryWaterFlowRate() const { | |
| 671 | ✗ | return getAutosizedValue("Design Size Design Heat Recovery Fluid Flow Rate", "m3/s"); | |
| 672 | } | ||
| 673 | |||
| 674 | ✗ | void ChillerElectricReformulatedEIR_Impl::autosize() { | |
| 675 | ✗ | autosizeReferenceCapacity(); | |
| 676 | ✗ | autosizeReferenceChilledWaterFlowRate(); | |
| 677 | ✗ | autosizeReferenceCondenserWaterFlowRate(); | |
| 678 | ✗ | autosizeDesignHeatRecoveryWaterFlowRate(); | |
| 679 | ✗ | } | |
| 680 | |||
| 681 | ✗ | void ChillerElectricReformulatedEIR_Impl::applySizingValues() { | |
| 682 | ✗ | boost::optional<double> val; | |
| 683 | ✗ | val = autosizedReferenceCapacity(); | |
| 684 | ✗ | if (val) { | |
| 685 | ✗ | setReferenceCapacity(val.get()); | |
| 686 | } | ||
| 687 | |||
| 688 | ✗ | val = autosizedReferenceChilledWaterFlowRate(); | |
| 689 | ✗ | if (val) { | |
| 690 | ✗ | setReferenceChilledWaterFlowRate(val.get()); | |
| 691 | } | ||
| 692 | |||
| 693 | ✗ | val = autosizedReferenceCondenserWaterFlowRate(); | |
| 694 | ✗ | if (val) { | |
| 695 | ✗ | setReferenceCondenserWaterFlowRate(val.get()); | |
| 696 | } | ||
| 697 | |||
| 698 | ✗ | val = autosizedDesignHeatRecoveryWaterFlowRate(); | |
| 699 | ✗ | if (val) { | |
| 700 | ✗ | setDesignHeatRecoveryWaterFlowRate(val.get()); | |
| 701 | } | ||
| 702 | ✗ | } | |
| 703 | |||
| 704 | 3 | std::string ChillerElectricReformulatedEIR_Impl::endUseSubcategory() const { | |
| 705 |
1/1✓ Branch 1 taken 3 times.
|
3 | auto value = getString(OS_Chiller_Electric_ReformulatedEIRFields::EndUseSubcategory, true); |
| 706 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 707 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | return value.get(); |
| 708 | 3 | } | |
| 709 | |||
| 710 | 17 | bool ChillerElectricReformulatedEIR_Impl::setEndUseSubcategory(const std::string& endUseSubcategory) { | |
| 711 | 17 | return setString(OS_Chiller_Electric_ReformulatedEIRFields::EndUseSubcategory, endUseSubcategory); | |
| 712 | } | ||
| 713 | |||
| 714 | 3 | double ChillerElectricReformulatedEIR_Impl::condenserHeatRecoveryRelativeCapacityFraction() const { | |
| 715 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_Chiller_Electric_ReformulatedEIRFields::CondenserHeatRecoveryRelativeCapacityFraction, true); |
| 716 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 717 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 718 | } | ||
| 719 | |||
| 720 | 18 | bool ChillerElectricReformulatedEIR_Impl::setCondenserHeatRecoveryRelativeCapacityFraction(double condenserHeatRecoveryRelativeCapacityFraction) { | |
| 721 | 18 | bool result = setDouble(OS_Chiller_Electric_ReformulatedEIRFields::CondenserHeatRecoveryRelativeCapacityFraction, | |
| 722 | condenserHeatRecoveryRelativeCapacityFraction); | ||
| 723 | // OS_ASSERT(result); | ||
| 724 | 18 | return result; | |
| 725 | } | ||
| 726 | |||
| 727 | 4 | boost::optional<Schedule> ChillerElectricReformulatedEIR_Impl::heatRecoveryInletHighTemperatureLimitSchedule() const { | |
| 728 |
1/1✓ Branch 1 taken 4 times.
|
8 | return getObject<ModelObject>().getModelObjectTarget<Schedule>( |
| 729 |
1/1✓ Branch 1 taken 4 times.
|
8 | OS_Chiller_Electric_ReformulatedEIRFields::HeatRecoveryInletHighTemperatureLimitScheduleName); |
| 730 | } | ||
| 731 | |||
| 732 | 2 | bool ChillerElectricReformulatedEIR_Impl::setHeatRecoveryInletHighTemperatureLimitSchedule(Schedule& schedule) { | |
| 733 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
|
8 | bool result = setSchedule(OS_Chiller_Electric_ReformulatedEIRFields::HeatRecoveryInletHighTemperatureLimitScheduleName, |
| 734 | "ChillerElectricReformulatedEIR", "Heat Recovery Inlet High Temperature Limit", schedule); | ||
| 735 | 2 | return result; | |
| 736 | } | ||
| 737 | |||
| 738 | 16 | void ChillerElectricReformulatedEIR_Impl::resetHeatRecoveryInletHighTemperatureLimitSchedule() { | |
| 739 |
2/2✓ Branch 1 taken 16 times.
✓ Branch 4 taken 16 times.
|
32 | bool result = setString(OS_Chiller_Electric_ReformulatedEIRFields::HeatRecoveryInletHighTemperatureLimitScheduleName, ""); |
| 740 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 16 times.
|
16 | OS_ASSERT(result); |
| 741 | 16 | } | |
| 742 | |||
| 743 | 1 | boost::optional<Node> ChillerElectricReformulatedEIR_Impl::heatRecoveryLeavingTemperatureSetpointNode() const { | |
| 744 |
1/1✓ Branch 1 taken 1 time.
|
2 | return getObject<ModelObject>().getModelObjectTarget<Node>( |
| 745 |
1/1✓ Branch 1 taken 1 time.
|
2 | OS_Chiller_Electric_ReformulatedEIRFields::HeatRecoveryLeavingTemperatureSetpointNodeName); |
| 746 | } | ||
| 747 | |||
| 748 | 1 | bool ChillerElectricReformulatedEIR_Impl::setHeatRecoveryLeavingTemperatureSetpointNode(const Node& node) { | |
| 749 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | return setPointer(OS_Chiller_Electric_ReformulatedEIRFields::HeatRecoveryLeavingTemperatureSetpointNodeName, node.handle()); |
| 750 | } | ||
| 751 | |||
| 752 | 15 | void ChillerElectricReformulatedEIR_Impl::resetHeatRecoveryLeavingTemperatureSetpointNode() { | |
| 753 |
2/2✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
|
30 | bool result = setString(OS_Chiller_Electric_ReformulatedEIRFields::HeatRecoveryLeavingTemperatureSetpointNodeName, ""); |
| 754 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 15 times.
|
15 | OS_ASSERT(result); |
| 755 | 15 | } | |
| 756 | |||
| 757 | 3 | std::string ChillerElectricReformulatedEIR_Impl::condenserFlowControl() const { | |
| 758 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<std::string> value = getString(OS_Chiller_Electric_ReformulatedEIRFields::CondenserFlowControl, true); |
| 759 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 760 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | return value.get(); |
| 761 | 3 | } | |
| 762 | |||
| 763 | 9 | boost::optional<Curve> ChillerElectricReformulatedEIR_Impl::condenserLoopFlowRateFractionFunctionofLoopPartLoadRatioCurve() const { | |
| 764 |
1/1✓ Branch 1 taken 9 times.
|
18 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 765 |
1/1✓ Branch 1 taken 9 times.
|
18 | OS_Chiller_Electric_ReformulatedEIRFields::CondenserLoopFlowRateFractionFunctionofLoopPartLoadRatioCurveName); |
| 766 | } | ||
| 767 | |||
| 768 | 4 | boost::optional<Schedule> ChillerElectricReformulatedEIR_Impl::temperatureDifferenceAcrossCondenserSchedule() const { | |
| 769 |
1/1✓ Branch 1 taken 4 times.
|
8 | return getObject<ModelObject>().getModelObjectTarget<Schedule>( |
| 770 |
1/1✓ Branch 1 taken 4 times.
|
8 | OS_Chiller_Electric_ReformulatedEIRFields::TemperatureDifferenceAcrossCondenserScheduleName); |
| 771 | } | ||
| 772 | |||
| 773 | 3 | double ChillerElectricReformulatedEIR_Impl::condenserMinimumFlowFraction() const { | |
| 774 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_Chiller_Electric_ReformulatedEIRFields::CondenserMinimumFlowFraction, true); |
| 775 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 776 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 777 | } | ||
| 778 | |||
| 779 | 9 | boost::optional<Curve> ChillerElectricReformulatedEIR_Impl::thermosiphonCapacityFractionCurve() const { | |
| 780 |
2/2✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
|
9 | return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_Chiller_Electric_ReformulatedEIRFields::ThermosiphonCapacityFractionCurveName); |
| 781 | } | ||
| 782 | |||
| 783 | 3 | double ChillerElectricReformulatedEIR_Impl::thermosiphonMinimumTemperatureDifference() const { | |
| 784 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_Chiller_Electric_ReformulatedEIRFields::ThermosiphonMinimumTemperatureDifference, true); |
| 785 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 786 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 787 | } | ||
| 788 | |||
| 789 | 18 | bool ChillerElectricReformulatedEIR_Impl::setCondenserFlowControl(const std::string& condenserFlowControl) { | |
| 790 | 18 | return setString(OS_Chiller_Electric_ReformulatedEIRFields::CondenserFlowControl, condenserFlowControl); | |
| 791 | } | ||
| 792 | |||
| 793 | 2 | bool ChillerElectricReformulatedEIR_Impl::setCondenserLoopFlowRateFractionFunctionofLoopPartLoadRatioCurve( | |
| 794 | const Curve& condenserLoopFlowRateFractionFunctionofLoopPartLoadRatioCurve) { | ||
| 795 |
1/1✓ Branch 1 taken 2 times.
|
2 | bool result = setPointer(OS_Chiller_Electric_ReformulatedEIRFields::CondenserLoopFlowRateFractionFunctionofLoopPartLoadRatioCurveName, |
| 796 |
1/1✓ Branch 1 taken 2 times.
|
2 | condenserLoopFlowRateFractionFunctionofLoopPartLoadRatioCurve.handle()); |
| 797 | 2 | return result; | |
| 798 | } | ||
| 799 | |||
| 800 | 1 | void ChillerElectricReformulatedEIR_Impl::resetCondenserLoopFlowRateFractionFunctionofLoopPartLoadRatioCurve() { | |
| 801 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Chiller_Electric_ReformulatedEIRFields::CondenserLoopFlowRateFractionFunctionofLoopPartLoadRatioCurveName, ""); |
| 802 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 803 | 1 | } | |
| 804 | |||
| 805 | bool | ||
| 806 | 2 | ChillerElectricReformulatedEIR_Impl::setTemperatureDifferenceAcrossCondenserSchedule(Schedule& temperatureDifferenceAcrossCondenserSchedule) { | |
| 807 | bool result = | ||
| 808 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
|
8 | setSchedule(OS_Chiller_Electric_ReformulatedEIRFields::TemperatureDifferenceAcrossCondenserScheduleName, "ChillerElectricReformulatedEIR", |
| 809 | "Temperature Difference Across Condenser", temperatureDifferenceAcrossCondenserSchedule); | ||
| 810 | 2 | return result; | |
| 811 | } | ||
| 812 | |||
| 813 | 1 | void ChillerElectricReformulatedEIR_Impl::resetTemperatureDifferenceAcrossCondenserSchedule() { | |
| 814 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Chiller_Electric_ReformulatedEIRFields::TemperatureDifferenceAcrossCondenserScheduleName, ""); |
| 815 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 816 | 1 | } | |
| 817 | |||
| 818 | 17 | bool ChillerElectricReformulatedEIR_Impl::setCondenserMinimumFlowFraction(double condenserMinimumFlowFraction) { | |
| 819 | 17 | bool result = setDouble(OS_Chiller_Electric_ReformulatedEIRFields::CondenserMinimumFlowFraction, condenserMinimumFlowFraction); | |
| 820 | 17 | return result; | |
| 821 | } | ||
| 822 | |||
| 823 | 2 | bool ChillerElectricReformulatedEIR_Impl::setThermosiphonCapacityFractionCurve(const Curve& thermosiphonCapacityFractionCurve) { | |
| 824 | bool result = | ||
| 825 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | setPointer(OS_Chiller_Electric_ReformulatedEIRFields::ThermosiphonCapacityFractionCurveName, thermosiphonCapacityFractionCurve.handle()); |
| 826 | 2 | return result; | |
| 827 | } | ||
| 828 | |||
| 829 | 1 | void ChillerElectricReformulatedEIR_Impl::resetThermosiphonCapacityFractionCurve() { | |
| 830 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Chiller_Electric_ReformulatedEIRFields::ThermosiphonCapacityFractionCurveName, ""); |
| 831 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 832 | 1 | } | |
| 833 | |||
| 834 | 18 | bool ChillerElectricReformulatedEIR_Impl::setThermosiphonMinimumTemperatureDifference(double thermosiphonMinimumTemperatureDifference) { | |
| 835 | bool result = | ||
| 836 | 18 | setDouble(OS_Chiller_Electric_ReformulatedEIRFields::ThermosiphonMinimumTemperatureDifference, thermosiphonMinimumTemperatureDifference); | |
| 837 | 18 | return result; | |
| 838 | } | ||
| 839 | |||
| 840 | 5 | ComponentType ChillerElectricReformulatedEIR_Impl::componentType() const { | |
| 841 |
1/1✓ Branch 1 taken 5 times.
|
5 | return ComponentType::Cooling; |
| 842 | } | ||
| 843 | |||
| 844 | 3 | std::vector<FuelType> ChillerElectricReformulatedEIR_Impl::coolingFuelTypes() const { | |
| 845 | 3 | std::set<FuelType> result; | |
| 846 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | result.insert(FuelType::Electricity); |
| 847 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 1 time.
|
6 | if (auto p_ = condenserWaterLoop()) { |
| 848 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 11 taken 1 time.
✓ Branch 12 taken 2 times.
|
3 | for (auto ft : p_->coolingFuelTypes()) { |
| 849 |
1/1✓ Branch 1 taken 1 time.
|
1 | result.insert(ft); |
| 850 | 2 | } | |
| 851 | 3 | } | |
| 852 |
1/1✓ Branch 3 taken 3 times.
|
9 | return {result.begin(), result.end()}; |
| 853 | 3 | } | |
| 854 | |||
| 855 | 1 | std::vector<FuelType> ChillerElectricReformulatedEIR_Impl::heatingFuelTypes() const { | |
| 856 | 1 | return {}; | |
| 857 | } | ||
| 858 | |||
| 859 | 1 | std::vector<AppGFuelType> ChillerElectricReformulatedEIR_Impl::appGHeatingFuelTypes() const { | |
| 860 | 1 | return {}; | |
| 861 | } | ||
| 862 | |||
| 863 | } // namespace detail | ||
| 864 | |||
| 865 | 9 | ChillerElectricReformulatedEIR::ChillerElectricReformulatedEIR(const Model& model, const Curve& CCFofT, const Curve& EItoCORFofT, | |
| 866 | 9 | const Curve& EItoCORFofPLR) | |
| 867 | 9 | : WaterToWaterComponent(ChillerElectricReformulatedEIR::iddObjectType(), model) { | |
| 868 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 9 times.
✗ Branch 5 not taken.
|
9 | OS_ASSERT(getImpl<detail::ChillerElectricReformulatedEIR_Impl>()); |
| 869 | |||
| 870 |
2/4✓ Branch 1 taken 9 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 9 times.
✗ Branch 6 not taken.
|
9 | OS_ASSERT(setCoolingCapacityFunctionOfTemperature(CCFofT)); |
| 871 |
2/4✓ Branch 1 taken 9 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 9 times.
✗ Branch 6 not taken.
|
9 | OS_ASSERT(setElectricInputToCoolingOutputRatioFunctionOfTemperature(EItoCORFofT)); |
| 872 |
2/4✓ Branch 1 taken 9 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 9 times.
✗ Branch 6 not taken.
|
9 | OS_ASSERT(setElectricInputToCoolingOutputRatioFunctionOfPLR(EItoCORFofPLR)); |
| 873 |
2/4✓ Branch 1 taken 9 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 9 times.
✗ Branch 6 not taken.
|
9 | OS_ASSERT(setReferenceCOP(3.99)); |
| 874 | |||
| 875 |
1/1✓ Branch 1 taken 9 times.
|
9 | autosizeReferenceCapacity(); |
| 876 |
1/1✓ Branch 1 taken 9 times.
|
9 | autosizeReferenceChilledWaterFlowRate(); |
| 877 | // autosizeReferenceCondenserWaterFlowRate(); | ||
| 878 |
1/1✓ Branch 1 taken 9 times.
|
9 | autosizeDesignHeatRecoveryWaterFlowRate(); |
| 879 | |||
| 880 | // setSizingFactor(1.0); | ||
| 881 | |||
| 882 |
1/1✓ Branch 1 taken 9 times.
|
9 | setCondenserHeatRecoveryRelativeCapacityFraction(1.0); |
| 883 |
1/1✓ Branch 1 taken 9 times.
|
9 | resetHeatRecoveryLeavingTemperatureSetpointNode(); |
| 884 |
1/1✓ Branch 1 taken 9 times.
|
9 | resetHeatRecoveryInletHighTemperatureLimitSchedule(); |
| 885 |
2/2✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
|
18 | setEndUseSubcategory("General"); |
| 886 |
2/2✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
|
9 | setCondenserFlowControl("ConstantFlow"); |
| 887 |
1/1✓ Branch 1 taken 9 times.
|
9 | setCondenserMinimumFlowFraction(0.2); |
| 888 |
1/1✓ Branch 1 taken 9 times.
|
9 | setThermosiphonMinimumTemperatureDifference(0.0); |
| 889 | 9 | } | |
| 890 | |||
| 891 | 6 | ChillerElectricReformulatedEIR::ChillerElectricReformulatedEIR(const Model& model) | |
| 892 | 6 | : WaterToWaterComponent(ChillerElectricReformulatedEIR::iddObjectType(), model) { | |
| 893 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 6 times.
✗ Branch 5 not taken.
|
6 | OS_ASSERT(getImpl<detail::ChillerElectricReformulatedEIR_Impl>()); |
| 894 | |||
| 895 |
1/1✓ Branch 1 taken 6 times.
|
6 | CurveBiquadratic ccFofT(model); |
| 896 |
1/1✓ Branch 1 taken 6 times.
|
6 | ccFofT.setCoefficient1Constant(0.958546443); |
| 897 |
1/1✓ Branch 1 taken 6 times.
|
6 | ccFofT.setCoefficient2x(0.035168695); |
| 898 |
1/1✓ Branch 1 taken 6 times.
|
6 | ccFofT.setCoefficient3xPOW2(0.000124662); |
| 899 |
1/1✓ Branch 1 taken 6 times.
|
6 | ccFofT.setCoefficient4y(-0.00274551); |
| 900 |
1/1✓ Branch 1 taken 6 times.
|
6 | ccFofT.setCoefficient5yPOW2(-0.00005000); |
| 901 |
1/1✓ Branch 1 taken 6 times.
|
6 | ccFofT.setCoefficient6xTIMESY(-0.00017234); |
| 902 |
1/1✓ Branch 1 taken 6 times.
|
6 | ccFofT.setMinimumValueofx(5.0); |
| 903 |
1/1✓ Branch 1 taken 6 times.
|
6 | ccFofT.setMaximumValueofx(10.0); |
| 904 |
1/1✓ Branch 1 taken 6 times.
|
6 | ccFofT.setMinimumValueofy(20.0); |
| 905 |
1/1✓ Branch 1 taken 6 times.
|
6 | ccFofT.setMaximumValueofy(40.94); |
| 906 | |||
| 907 |
1/1✓ Branch 1 taken 6 times.
|
6 | CurveBiquadratic eirToCorfOfT(model); |
| 908 |
1/1✓ Branch 1 taken 6 times.
|
6 | eirToCorfOfT.setCoefficient1Constant(0.732700123); |
| 909 |
1/1✓ Branch 1 taken 6 times.
|
6 | eirToCorfOfT.setCoefficient2x(-0.00834360); |
| 910 |
1/1✓ Branch 1 taken 6 times.
|
6 | eirToCorfOfT.setCoefficient3xPOW2(0.000638530); |
| 911 |
1/1✓ Branch 1 taken 6 times.
|
6 | eirToCorfOfT.setCoefficient4y(-0.00303753); |
| 912 |
1/1✓ Branch 1 taken 6 times.
|
6 | eirToCorfOfT.setCoefficient5yPOW2(0.000484952); |
| 913 |
1/1✓ Branch 1 taken 6 times.
|
6 | eirToCorfOfT.setCoefficient6xTIMESY(-0.00083584); |
| 914 |
1/1✓ Branch 1 taken 6 times.
|
6 | eirToCorfOfT.setMinimumValueofx(5.0); |
| 915 |
1/1✓ Branch 1 taken 6 times.
|
6 | eirToCorfOfT.setMaximumValueofx(10.0); |
| 916 |
1/1✓ Branch 1 taken 6 times.
|
6 | eirToCorfOfT.setMinimumValueofy(20.0); |
| 917 |
1/1✓ Branch 1 taken 6 times.
|
6 | eirToCorfOfT.setMaximumValueofy(40.94); |
| 918 | |||
| 919 |
1/1✓ Branch 1 taken 6 times.
|
6 | CurveBicubic eirToCorfOfPlr(model); |
| 920 |
1/1✓ Branch 1 taken 6 times.
|
6 | eirToCorfOfPlr.setCoefficient1Constant(0.070862846); |
| 921 |
1/1✓ Branch 1 taken 6 times.
|
6 | eirToCorfOfPlr.setCoefficient2x(0.002787560); |
| 922 |
1/1✓ Branch 1 taken 6 times.
|
6 | eirToCorfOfPlr.setCoefficient3xPOW2(-0.00000891); |
| 923 |
1/1✓ Branch 1 taken 6 times.
|
6 | eirToCorfOfPlr.setCoefficient4y(0.230973399); |
| 924 |
1/1✓ Branch 1 taken 6 times.
|
6 | eirToCorfOfPlr.setCoefficient5yPOW2(1.250442176); |
| 925 |
1/1✓ Branch 1 taken 6 times.
|
6 | eirToCorfOfPlr.setCoefficient6xTIMESY(-0.00216102); |
| 926 |
1/1✓ Branch 1 taken 6 times.
|
6 | eirToCorfOfPlr.setCoefficient7xPOW3(0.000000); |
| 927 |
1/1✓ Branch 1 taken 6 times.
|
6 | eirToCorfOfPlr.setCoefficient8yPOW3(-0.56300936); |
| 928 |
1/1✓ Branch 1 taken 6 times.
|
6 | eirToCorfOfPlr.setCoefficient9xPOW2TIMESY(0.000000); |
| 929 |
1/1✓ Branch 1 taken 6 times.
|
6 | eirToCorfOfPlr.setCoefficient10xTIMESYPOW2(0.000000); |
| 930 |
1/1✓ Branch 1 taken 6 times.
|
6 | eirToCorfOfPlr.setMinimumValueofx(20.0); |
| 931 |
1/1✓ Branch 1 taken 6 times.
|
6 | eirToCorfOfPlr.setMaximumValueofx(40.94); |
| 932 |
1/1✓ Branch 1 taken 6 times.
|
6 | eirToCorfOfPlr.setMinimumValueofy(0.01); |
| 933 |
1/1✓ Branch 1 taken 6 times.
|
6 | eirToCorfOfPlr.setMaximumValueofy(1.0); |
| 934 | |||
| 935 |
1/1✓ Branch 1 taken 6 times.
|
6 | setCoolingCapacityFunctionOfTemperature(ccFofT); |
| 936 |
1/1✓ Branch 1 taken 6 times.
|
6 | setElectricInputToCoolingOutputRatioFunctionOfTemperature(eirToCorfOfT); |
| 937 |
1/1✓ Branch 1 taken 6 times.
|
6 | setElectricInputToCoolingOutputRatioFunctionOfPLR(eirToCorfOfPlr); |
| 938 |
2/4✓ Branch 1 taken 6 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 6 times.
✗ Branch 6 not taken.
|
6 | OS_ASSERT(setReferenceCOP(3.99)); |
| 939 | |||
| 940 |
1/1✓ Branch 1 taken 6 times.
|
6 | autosizeReferenceCapacity(); |
| 941 |
1/1✓ Branch 1 taken 6 times.
|
6 | autosizeReferenceChilledWaterFlowRate(); |
| 942 | // autosizeReferenceCondenserWaterFlowRate(); | ||
| 943 |
1/1✓ Branch 1 taken 6 times.
|
6 | autosizeDesignHeatRecoveryWaterFlowRate(); |
| 944 | |||
| 945 | // setSizingFactor(1.0); | ||
| 946 | |||
| 947 |
1/1✓ Branch 1 taken 6 times.
|
6 | setCondenserHeatRecoveryRelativeCapacityFraction(1.0); |
| 948 |
1/1✓ Branch 1 taken 6 times.
|
6 | resetHeatRecoveryLeavingTemperatureSetpointNode(); |
| 949 |
1/1✓ Branch 1 taken 6 times.
|
6 | resetHeatRecoveryInletHighTemperatureLimitSchedule(); |
| 950 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
12 | setEndUseSubcategory("General"); |
| 951 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setCondenserFlowControl("ConstantFlow"); |
| 952 |
1/1✓ Branch 1 taken 6 times.
|
6 | setCondenserMinimumFlowFraction(0.2); |
| 953 |
1/1✓ Branch 1 taken 6 times.
|
6 | setThermosiphonMinimumTemperatureDifference(0.0); |
| 954 | 6 | } | |
| 955 | |||
| 956 | 7630 | IddObjectType ChillerElectricReformulatedEIR::iddObjectType() { | |
| 957 |
1/1✓ Branch 1 taken 7630 times.
|
7630 | IddObjectType result(IddObjectType::OS_Chiller_Electric_ReformulatedEIR); |
| 958 | 7630 | return result; | |
| 959 | } | ||
| 960 | |||
| 961 | ✗ | std::vector<std::string> ChillerElectricReformulatedEIR::validChillerFlowModeValues() { | |
| 962 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Chiller_Electric_ReformulatedEIRFields::ChillerFlowMode); | |
| 963 | } | ||
| 964 | |||
| 965 | ✗ | std::vector<std::string> ChillerElectricReformulatedEIR::validCondenserFlowControlValues() { | |
| 966 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Chiller_Electric_ReformulatedEIRFields::CondenserFlowControl); | |
| 967 | } | ||
| 968 | |||
| 969 | ✗ | std::vector<std::string> ChillerElectricReformulatedEIR::validElectricInputToCoolingOutputRatioFunctionOfPLRTypeValues() { | |
| 970 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), | |
| 971 | ✗ | OS_Chiller_Electric_ReformulatedEIRFields::ElectricInputtoCoolingOutputRatioFunctionofPartLoadRatioCurveType); | |
| 972 | } | ||
| 973 | |||
| 974 | 5 | boost::optional<double> ChillerElectricReformulatedEIR::referenceCapacity() const { | |
| 975 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->referenceCapacity(); |
| 976 | } | ||
| 977 | |||
| 978 | 3 | bool ChillerElectricReformulatedEIR::isReferenceCapacityAutosized() const { | |
| 979 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->isReferenceCapacityAutosized(); |
| 980 | } | ||
| 981 | |||
| 982 | 3 | double ChillerElectricReformulatedEIR::referenceCOP() const { | |
| 983 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->referenceCOP(); |
| 984 | } | ||
| 985 | |||
| 986 | 2 | double ChillerElectricReformulatedEIR::referenceLeavingChilledWaterTemperature() const { | |
| 987 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->referenceLeavingChilledWaterTemperature(); |
| 988 | } | ||
| 989 | |||
| 990 | 3 | bool ChillerElectricReformulatedEIR::isReferenceLeavingChilledWaterTemperatureDefaulted() const { | |
| 991 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->isReferenceLeavingChilledWaterTemperatureDefaulted(); |
| 992 | } | ||
| 993 | |||
| 994 | 2 | double ChillerElectricReformulatedEIR::referenceLeavingCondenserWaterTemperature() const { | |
| 995 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->referenceLeavingCondenserWaterTemperature(); |
| 996 | } | ||
| 997 | |||
| 998 | 3 | bool ChillerElectricReformulatedEIR::isReferenceLeavingCondenserWaterTemperatureDefaulted() const { | |
| 999 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->isReferenceLeavingCondenserWaterTemperatureDefaulted(); |
| 1000 | } | ||
| 1001 | |||
| 1002 | 5 | boost::optional<double> ChillerElectricReformulatedEIR::referenceChilledWaterFlowRate() const { | |
| 1003 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->referenceChilledWaterFlowRate(); |
| 1004 | } | ||
| 1005 | |||
| 1006 | 3 | bool ChillerElectricReformulatedEIR::isReferenceChilledWaterFlowRateAutosized() const { | |
| 1007 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->isReferenceChilledWaterFlowRateAutosized(); |
| 1008 | } | ||
| 1009 | |||
| 1010 | 5 | boost::optional<double> ChillerElectricReformulatedEIR::referenceCondenserWaterFlowRate() const { | |
| 1011 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->referenceCondenserWaterFlowRate(); |
| 1012 | } | ||
| 1013 | |||
| 1014 | 4 | bool ChillerElectricReformulatedEIR::isReferenceCondenserWaterFlowRateAutosized() const { | |
| 1015 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->isReferenceCondenserWaterFlowRateAutosized(); |
| 1016 | } | ||
| 1017 | |||
| 1018 | 16 | bool ChillerElectricReformulatedEIR::setCoolingCapacityFunctionOfTemperature(const Curve& curve) { | |
| 1019 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setCoolingCapacityFunctionOfTemperature(curve); |
| 1020 | } | ||
| 1021 | |||
| 1022 | 16 | bool ChillerElectricReformulatedEIR::setElectricInputToCoolingOutputRatioFunctionOfTemperature(const Curve& curve) { | |
| 1023 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setElectricInputToCoolingOutputRatioFunctionOfTemperature(curve); |
| 1024 | } | ||
| 1025 | |||
| 1026 | 3 | bool ChillerElectricReformulatedEIR::setElectricInputToCoolingOutputRatioFunctionOfPLRType( | |
| 1027 | const std::string& electricInputToCoolingOutputRatioFunctionOfPLRType) { | ||
| 1028 |
1/1✓ Branch 3 taken 3 times.
|
6 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setElectricInputToCoolingOutputRatioFunctionOfPLRType( |
| 1029 | 6 | electricInputToCoolingOutputRatioFunctionOfPLRType); | |
| 1030 | } | ||
| 1031 | |||
| 1032 | 1 | void ChillerElectricReformulatedEIR::resetElectricInputToCoolingOutputRatioFunctionOfPLRType() { | |
| 1033 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->resetElectricInputToCoolingOutputRatioFunctionOfPLRType(); |
| 1034 | 1 | } | |
| 1035 | |||
| 1036 | 16 | bool ChillerElectricReformulatedEIR::setElectricInputToCoolingOutputRatioFunctionOfPLR(const Curve& curve) { | |
| 1037 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setElectricInputToCoolingOutputRatioFunctionOfPLR(curve); |
| 1038 | } | ||
| 1039 | |||
| 1040 | 3 | Curve ChillerElectricReformulatedEIR::coolingCapacityFunctionOfTemperature() const { | |
| 1041 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->coolingCapacityFunctionOfTemperature(); |
| 1042 | } | ||
| 1043 | |||
| 1044 | 3 | Curve ChillerElectricReformulatedEIR::electricInputToCoolingOutputRatioFunctionOfTemperature() const { | |
| 1045 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->electricInputToCoolingOutputRatioFunctionOfTemperature(); |
| 1046 | } | ||
| 1047 | |||
| 1048 | 5 | std::string ChillerElectricReformulatedEIR::electricInputToCoolingOutputRatioFunctionOfPLRType() const { | |
| 1049 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->electricInputToCoolingOutputRatioFunctionOfPLRType(); |
| 1050 | } | ||
| 1051 | |||
| 1052 | 3 | Curve ChillerElectricReformulatedEIR::electricInputToCoolingOutputRatioFunctionOfPLR() const { | |
| 1053 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->electricInputToCoolingOutputRatioFunctionOfPLR(); |
| 1054 | } | ||
| 1055 | |||
| 1056 | 3 | double ChillerElectricReformulatedEIR::minimumPartLoadRatio() const { | |
| 1057 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->minimumPartLoadRatio(); |
| 1058 | } | ||
| 1059 | |||
| 1060 | 3 | bool ChillerElectricReformulatedEIR::isMinimumPartLoadRatioDefaulted() const { | |
| 1061 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->isMinimumPartLoadRatioDefaulted(); |
| 1062 | } | ||
| 1063 | |||
| 1064 | 3 | double ChillerElectricReformulatedEIR::maximumPartLoadRatio() const { | |
| 1065 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->maximumPartLoadRatio(); |
| 1066 | } | ||
| 1067 | |||
| 1068 | 3 | bool ChillerElectricReformulatedEIR::isMaximumPartLoadRatioDefaulted() const { | |
| 1069 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->isMaximumPartLoadRatioDefaulted(); |
| 1070 | } | ||
| 1071 | |||
| 1072 | 3 | double ChillerElectricReformulatedEIR::optimumPartLoadRatio() const { | |
| 1073 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->optimumPartLoadRatio(); |
| 1074 | } | ||
| 1075 | |||
| 1076 | 3 | bool ChillerElectricReformulatedEIR::isOptimumPartLoadRatioDefaulted() const { | |
| 1077 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->isOptimumPartLoadRatioDefaulted(); |
| 1078 | } | ||
| 1079 | |||
| 1080 | 3 | double ChillerElectricReformulatedEIR::minimumUnloadingRatio() const { | |
| 1081 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->minimumUnloadingRatio(); |
| 1082 | } | ||
| 1083 | |||
| 1084 | 3 | bool ChillerElectricReformulatedEIR::isMinimumUnloadingRatioDefaulted() const { | |
| 1085 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->isMinimumUnloadingRatioDefaulted(); |
| 1086 | } | ||
| 1087 | |||
| 1088 | 3 | double ChillerElectricReformulatedEIR::fractionofCompressorElectricConsumptionRejectedbyCondenser() const { | |
| 1089 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->fractionofCompressorElectricConsumptionRejectedbyCondenser(); |
| 1090 | } | ||
| 1091 | |||
| 1092 | 3 | bool ChillerElectricReformulatedEIR::isFractionofCompressorElectricConsumptionRejectedbyCondenserDefaulted() const { | |
| 1093 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->isFractionofCompressorElectricConsumptionRejectedbyCondenserDefaulted(); |
| 1094 | } | ||
| 1095 | |||
| 1096 | 3 | double ChillerElectricReformulatedEIR::leavingChilledWaterLowerTemperatureLimit() const { | |
| 1097 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->leavingChilledWaterLowerTemperatureLimit(); |
| 1098 | } | ||
| 1099 | |||
| 1100 | 3 | bool ChillerElectricReformulatedEIR::isLeavingChilledWaterLowerTemperatureLimitDefaulted() const { | |
| 1101 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->isLeavingChilledWaterLowerTemperatureLimitDefaulted(); |
| 1102 | } | ||
| 1103 | |||
| 1104 | 4 | std::string ChillerElectricReformulatedEIR::chillerFlowMode() const { | |
| 1105 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->chillerFlowMode(); |
| 1106 | } | ||
| 1107 | |||
| 1108 | 3 | bool ChillerElectricReformulatedEIR::isChillerFlowModeDefaulted() const { | |
| 1109 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->isChillerFlowModeDefaulted(); |
| 1110 | } | ||
| 1111 | |||
| 1112 | 5 | boost::optional<double> ChillerElectricReformulatedEIR::designHeatRecoveryWaterFlowRate() const { | |
| 1113 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->designHeatRecoveryWaterFlowRate(); |
| 1114 | } | ||
| 1115 | |||
| 1116 | 3 | bool ChillerElectricReformulatedEIR::isDesignHeatRecoveryWaterFlowRateAutosized() const { | |
| 1117 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->isDesignHeatRecoveryWaterFlowRateAutosized(); |
| 1118 | } | ||
| 1119 | |||
| 1120 | 3 | double ChillerElectricReformulatedEIR::sizingFactor() const { | |
| 1121 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->sizingFactor(); |
| 1122 | } | ||
| 1123 | |||
| 1124 | 3 | bool ChillerElectricReformulatedEIR::isSizingFactorDefaulted() const { | |
| 1125 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->isSizingFactorDefaulted(); |
| 1126 | } | ||
| 1127 | |||
| 1128 | ✗ | bool ChillerElectricReformulatedEIR::setReferenceCapacity(boost::optional<double> referenceCapacity) { | |
| 1129 | ✗ | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setReferenceCapacity(referenceCapacity); | |
| 1130 | } | ||
| 1131 | |||
| 1132 | 3 | bool ChillerElectricReformulatedEIR::setReferenceCapacity(double referenceCapacity) { | |
| 1133 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setReferenceCapacity(referenceCapacity); |
| 1134 | } | ||
| 1135 | |||
| 1136 | 16 | void ChillerElectricReformulatedEIR::autosizeReferenceCapacity() { | |
| 1137 |
1/1✓ Branch 3 taken 16 times.
|
16 | getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->autosizeReferenceCapacity(); |
| 1138 | 16 | } | |
| 1139 | |||
| 1140 | 18 | bool ChillerElectricReformulatedEIR::setReferenceCOP(double referenceCOP) { | |
| 1141 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setReferenceCOP(referenceCOP); |
| 1142 | } | ||
| 1143 | |||
| 1144 | 2 | bool ChillerElectricReformulatedEIR::setReferenceLeavingChilledWaterTemperature(double referenceLeavingChilledWaterTemperature) { | |
| 1145 |
1/1✓ Branch 3 taken 2 times.
|
4 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setReferenceLeavingChilledWaterTemperature( |
| 1146 | 4 | referenceLeavingChilledWaterTemperature); | |
| 1147 | } | ||
| 1148 | |||
| 1149 | 1 | void ChillerElectricReformulatedEIR::resetReferenceLeavingChilledWaterTemperature() { | |
| 1150 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->resetReferenceLeavingChilledWaterTemperature(); |
| 1151 | 1 | } | |
| 1152 | |||
| 1153 | 2 | bool ChillerElectricReformulatedEIR::setReferenceLeavingCondenserWaterTemperature(double referenceLeavingCondenserWaterTemperature) { | |
| 1154 |
1/1✓ Branch 3 taken 2 times.
|
4 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setReferenceLeavingCondenserWaterTemperature( |
| 1155 | 4 | referenceLeavingCondenserWaterTemperature); | |
| 1156 | } | ||
| 1157 | |||
| 1158 | 1 | void ChillerElectricReformulatedEIR::resetReferenceLeavingCondenserWaterTemperature() { | |
| 1159 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->resetReferenceLeavingCondenserWaterTemperature(); |
| 1160 | 1 | } | |
| 1161 | |||
| 1162 | ✗ | bool ChillerElectricReformulatedEIR::setReferenceChilledWaterFlowRate(boost::optional<double> referenceChilledWaterFlowRate) { | |
| 1163 | ✗ | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setReferenceChilledWaterFlowRate(referenceChilledWaterFlowRate); | |
| 1164 | } | ||
| 1165 | |||
| 1166 | 3 | bool ChillerElectricReformulatedEIR::setReferenceChilledWaterFlowRate(double referenceChilledWaterFlowRate) { | |
| 1167 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setReferenceChilledWaterFlowRate(referenceChilledWaterFlowRate); |
| 1168 | } | ||
| 1169 | |||
| 1170 | ✗ | void ChillerElectricReformulatedEIR::resetReferenceChilledWaterFlowRate() { | |
| 1171 | ✗ | getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->resetReferenceChilledWaterFlowRate(); | |
| 1172 | ✗ | } | |
| 1173 | |||
| 1174 | 16 | void ChillerElectricReformulatedEIR::autosizeReferenceChilledWaterFlowRate() { | |
| 1175 |
1/1✓ Branch 3 taken 16 times.
|
16 | getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->autosizeReferenceChilledWaterFlowRate(); |
| 1176 | 16 | } | |
| 1177 | |||
| 1178 | ✗ | bool ChillerElectricReformulatedEIR::setReferenceCondenserWaterFlowRate(boost::optional<double> referenceCondenserWaterFlowRate) { | |
| 1179 | ✗ | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setReferenceCondenserWaterFlowRate(referenceCondenserWaterFlowRate); | |
| 1180 | } | ||
| 1181 | |||
| 1182 | 4 | bool ChillerElectricReformulatedEIR::setReferenceCondenserWaterFlowRate(double referenceCondenserWaterFlowRate) { | |
| 1183 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setReferenceCondenserWaterFlowRate(referenceCondenserWaterFlowRate); |
| 1184 | } | ||
| 1185 | |||
| 1186 | 1 | void ChillerElectricReformulatedEIR::resetReferenceCondenserWaterFlowRate() { | |
| 1187 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->resetReferenceCondenserWaterFlowRate(); |
| 1188 | 1 | } | |
| 1189 | |||
| 1190 | 1 | void ChillerElectricReformulatedEIR::autosizeReferenceCondenserWaterFlowRate() { | |
| 1191 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->autosizeReferenceCondenserWaterFlowRate(); |
| 1192 | 1 | } | |
| 1193 | |||
| 1194 | 3 | bool ChillerElectricReformulatedEIR::setMinimumPartLoadRatio(double minimumPartLoadRatio) { | |
| 1195 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setMinimumPartLoadRatio(minimumPartLoadRatio); |
| 1196 | } | ||
| 1197 | |||
| 1198 | 1 | void ChillerElectricReformulatedEIR::resetMinimumPartLoadRatio() { | |
| 1199 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->resetMinimumPartLoadRatio(); |
| 1200 | 1 | } | |
| 1201 | |||
| 1202 | 3 | bool ChillerElectricReformulatedEIR::setMaximumPartLoadRatio(double maximumPartLoadRatio) { | |
| 1203 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setMaximumPartLoadRatio(maximumPartLoadRatio); |
| 1204 | } | ||
| 1205 | |||
| 1206 | 1 | void ChillerElectricReformulatedEIR::resetMaximumPartLoadRatio() { | |
| 1207 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->resetMaximumPartLoadRatio(); |
| 1208 | 1 | } | |
| 1209 | |||
| 1210 | 3 | bool ChillerElectricReformulatedEIR::setOptimumPartLoadRatio(double optimumPartLoadRatio) { | |
| 1211 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setOptimumPartLoadRatio(optimumPartLoadRatio); |
| 1212 | } | ||
| 1213 | |||
| 1214 | 1 | void ChillerElectricReformulatedEIR::resetOptimumPartLoadRatio() { | |
| 1215 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->resetOptimumPartLoadRatio(); |
| 1216 | 1 | } | |
| 1217 | |||
| 1218 | 3 | bool ChillerElectricReformulatedEIR::setMinimumUnloadingRatio(double minimumUnloadingRatio) { | |
| 1219 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setMinimumUnloadingRatio(minimumUnloadingRatio); |
| 1220 | } | ||
| 1221 | |||
| 1222 | 1 | void ChillerElectricReformulatedEIR::resetMinimumUnloadingRatio() { | |
| 1223 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->resetMinimumUnloadingRatio(); |
| 1224 | 1 | } | |
| 1225 | |||
| 1226 | 3 | bool ChillerElectricReformulatedEIR::setFractionofCompressorElectricConsumptionRejectedbyCondenser( | |
| 1227 | double fractionofCompressorElectricConsumptionRejectedbyCondenser) { | ||
| 1228 |
1/1✓ Branch 3 taken 3 times.
|
6 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setFractionofCompressorElectricConsumptionRejectedbyCondenser( |
| 1229 | 6 | fractionofCompressorElectricConsumptionRejectedbyCondenser); | |
| 1230 | } | ||
| 1231 | |||
| 1232 | 1 | void ChillerElectricReformulatedEIR::resetFractionofCompressorElectricConsumptionRejectedbyCondenser() { | |
| 1233 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->resetFractionofCompressorElectricConsumptionRejectedbyCondenser(); |
| 1234 | 1 | } | |
| 1235 | |||
| 1236 | 2 | bool ChillerElectricReformulatedEIR::setLeavingChilledWaterLowerTemperatureLimit(double leavingChilledWaterLowerTemperatureLimit) { | |
| 1237 |
1/1✓ Branch 3 taken 2 times.
|
4 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setLeavingChilledWaterLowerTemperatureLimit( |
| 1238 | 4 | leavingChilledWaterLowerTemperatureLimit); | |
| 1239 | } | ||
| 1240 | |||
| 1241 | 1 | void ChillerElectricReformulatedEIR::resetLeavingChilledWaterLowerTemperatureLimit() { | |
| 1242 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->resetLeavingChilledWaterLowerTemperatureLimit(); |
| 1243 | 1 | } | |
| 1244 | |||
| 1245 | 3 | bool ChillerElectricReformulatedEIR::setChillerFlowMode(const std::string& chillerFlowMode) { | |
| 1246 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setChillerFlowMode(chillerFlowMode); |
| 1247 | } | ||
| 1248 | |||
| 1249 | 1 | void ChillerElectricReformulatedEIR::resetChillerFlowMode() { | |
| 1250 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->resetChillerFlowMode(); |
| 1251 | 1 | } | |
| 1252 | |||
| 1253 | 3 | bool ChillerElectricReformulatedEIR::setDesignHeatRecoveryWaterFlowRate(double designHeatRecoveryWaterFlowRate) { | |
| 1254 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setDesignHeatRecoveryWaterFlowRate(designHeatRecoveryWaterFlowRate); |
| 1255 | } | ||
| 1256 | |||
| 1257 | 16 | void ChillerElectricReformulatedEIR::autosizeDesignHeatRecoveryWaterFlowRate() { | |
| 1258 |
1/1✓ Branch 3 taken 16 times.
|
16 | getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->autosizeDesignHeatRecoveryWaterFlowRate(); |
| 1259 | 16 | } | |
| 1260 | |||
| 1261 | 3 | bool ChillerElectricReformulatedEIR::setSizingFactor(double sizingFactor) { | |
| 1262 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setSizingFactor(sizingFactor); |
| 1263 | } | ||
| 1264 | |||
| 1265 | 1 | void ChillerElectricReformulatedEIR::resetSizingFactor() { | |
| 1266 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->resetSizingFactor(); |
| 1267 | 1 | } | |
| 1268 | |||
| 1269 | 3 | std::string ChillerElectricReformulatedEIR::endUseSubcategory() const { | |
| 1270 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->endUseSubcategory(); |
| 1271 | } | ||
| 1272 | |||
| 1273 | 17 | bool ChillerElectricReformulatedEIR::setEndUseSubcategory(const std::string& endUseSubcategory) { | |
| 1274 |
1/1✓ Branch 3 taken 17 times.
|
17 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setEndUseSubcategory(endUseSubcategory); |
| 1275 | } | ||
| 1276 | |||
| 1277 | 3 | double ChillerElectricReformulatedEIR::condenserHeatRecoveryRelativeCapacityFraction() const { | |
| 1278 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->condenserHeatRecoveryRelativeCapacityFraction(); |
| 1279 | } | ||
| 1280 | |||
| 1281 | 18 | bool ChillerElectricReformulatedEIR::setCondenserHeatRecoveryRelativeCapacityFraction(double condenserHeatRecoveryRelativeCapacityFraction) { | |
| 1282 |
1/1✓ Branch 3 taken 18 times.
|
36 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setCondenserHeatRecoveryRelativeCapacityFraction( |
| 1283 | 36 | condenserHeatRecoveryRelativeCapacityFraction); | |
| 1284 | } | ||
| 1285 | |||
| 1286 | 4 | boost::optional<Schedule> ChillerElectricReformulatedEIR::heatRecoveryInletHighTemperatureLimitSchedule() const { | |
| 1287 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->heatRecoveryInletHighTemperatureLimitSchedule(); |
| 1288 | } | ||
| 1289 | |||
| 1290 | 2 | bool ChillerElectricReformulatedEIR::setHeatRecoveryInletHighTemperatureLimitSchedule(Schedule& s) { | |
| 1291 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setHeatRecoveryInletHighTemperatureLimitSchedule(s); |
| 1292 | } | ||
| 1293 | |||
| 1294 | 16 | void ChillerElectricReformulatedEIR::resetHeatRecoveryInletHighTemperatureLimitSchedule() { | |
| 1295 |
1/1✓ Branch 3 taken 16 times.
|
16 | getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->resetHeatRecoveryInletHighTemperatureLimitSchedule(); |
| 1296 | 16 | } | |
| 1297 | |||
| 1298 | 1 | boost::optional<Node> ChillerElectricReformulatedEIR::heatRecoveryLeavingTemperatureSetpointNode() const { | |
| 1299 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->heatRecoveryLeavingTemperatureSetpointNode(); |
| 1300 | } | ||
| 1301 | |||
| 1302 | 1 | bool ChillerElectricReformulatedEIR::setHeatRecoveryLeavingTemperatureSetpointNode(const Node& node) { | |
| 1303 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setHeatRecoveryLeavingTemperatureSetpointNode(node); |
| 1304 | } | ||
| 1305 | 15 | void ChillerElectricReformulatedEIR::resetHeatRecoveryLeavingTemperatureSetpointNode() { | |
| 1306 |
1/1✓ Branch 3 taken 15 times.
|
15 | getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->resetHeatRecoveryLeavingTemperatureSetpointNode(); |
| 1307 | 15 | } | |
| 1308 | |||
| 1309 | 3 | std::string ChillerElectricReformulatedEIR::condenserFlowControl() const { | |
| 1310 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->condenserFlowControl(); |
| 1311 | } | ||
| 1312 | |||
| 1313 | 4 | boost::optional<Curve> ChillerElectricReformulatedEIR::condenserLoopFlowRateFractionFunctionofLoopPartLoadRatioCurve() const { | |
| 1314 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->condenserLoopFlowRateFractionFunctionofLoopPartLoadRatioCurve(); |
| 1315 | } | ||
| 1316 | |||
| 1317 | 4 | boost::optional<Schedule> ChillerElectricReformulatedEIR::temperatureDifferenceAcrossCondenserSchedule() const { | |
| 1318 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->temperatureDifferenceAcrossCondenserSchedule(); |
| 1319 | } | ||
| 1320 | |||
| 1321 | 3 | double ChillerElectricReformulatedEIR::condenserMinimumFlowFraction() const { | |
| 1322 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->condenserMinimumFlowFraction(); |
| 1323 | } | ||
| 1324 | |||
| 1325 | 4 | boost::optional<Curve> ChillerElectricReformulatedEIR::thermosiphonCapacityFractionCurve() const { | |
| 1326 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->thermosiphonCapacityFractionCurve(); |
| 1327 | } | ||
| 1328 | |||
| 1329 | 3 | double ChillerElectricReformulatedEIR::thermosiphonMinimumTemperatureDifference() const { | |
| 1330 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->thermosiphonMinimumTemperatureDifference(); |
| 1331 | } | ||
| 1332 | |||
| 1333 | 18 | bool ChillerElectricReformulatedEIR::setCondenserFlowControl(const std::string& condenserFlowControl) { | |
| 1334 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setCondenserFlowControl(condenserFlowControl); |
| 1335 | } | ||
| 1336 | |||
| 1337 | 2 | bool ChillerElectricReformulatedEIR::setCondenserLoopFlowRateFractionFunctionofLoopPartLoadRatioCurve( | |
| 1338 | const Curve& condenserLoopFlowRateFractionFunctionofLoopPartLoadRatioCurve) { | ||
| 1339 |
1/1✓ Branch 3 taken 2 times.
|
4 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setCondenserLoopFlowRateFractionFunctionofLoopPartLoadRatioCurve( |
| 1340 | 4 | condenserLoopFlowRateFractionFunctionofLoopPartLoadRatioCurve); | |
| 1341 | } | ||
| 1342 | |||
| 1343 | 1 | void ChillerElectricReformulatedEIR::resetCondenserLoopFlowRateFractionFunctionofLoopPartLoadRatioCurve() { | |
| 1344 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->resetCondenserLoopFlowRateFractionFunctionofLoopPartLoadRatioCurve(); |
| 1345 | 1 | } | |
| 1346 | |||
| 1347 | 2 | bool ChillerElectricReformulatedEIR::setTemperatureDifferenceAcrossCondenserSchedule(Schedule& temperatureDifferenceAcrossCondenserSchedule) { | |
| 1348 |
1/1✓ Branch 3 taken 2 times.
|
4 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setTemperatureDifferenceAcrossCondenserSchedule( |
| 1349 | 4 | temperatureDifferenceAcrossCondenserSchedule); | |
| 1350 | } | ||
| 1351 | |||
| 1352 | 1 | void ChillerElectricReformulatedEIR::resetTemperatureDifferenceAcrossCondenserSchedule() { | |
| 1353 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->resetTemperatureDifferenceAcrossCondenserSchedule(); |
| 1354 | 1 | } | |
| 1355 | |||
| 1356 | 17 | bool ChillerElectricReformulatedEIR::setCondenserMinimumFlowFraction(double condenserMinimumFlowFraction) { | |
| 1357 |
1/1✓ Branch 3 taken 17 times.
|
17 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setCondenserMinimumFlowFraction(condenserMinimumFlowFraction); |
| 1358 | } | ||
| 1359 | |||
| 1360 | 2 | bool ChillerElectricReformulatedEIR::setThermosiphonCapacityFractionCurve(const Curve& thermosiphonCapacityFractionCurve) { | |
| 1361 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setThermosiphonCapacityFractionCurve(thermosiphonCapacityFractionCurve); |
| 1362 | } | ||
| 1363 | |||
| 1364 | 1 | void ChillerElectricReformulatedEIR::resetThermosiphonCapacityFractionCurve() { | |
| 1365 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->resetThermosiphonCapacityFractionCurve(); |
| 1366 | 1 | } | |
| 1367 | |||
| 1368 | 18 | bool ChillerElectricReformulatedEIR::setThermosiphonMinimumTemperatureDifference(double thermosiphonMinimumTemperatureDifference) { | |
| 1369 |
1/1✓ Branch 3 taken 18 times.
|
36 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->setThermosiphonMinimumTemperatureDifference( |
| 1370 | 36 | thermosiphonMinimumTemperatureDifference); | |
| 1371 | } | ||
| 1372 | |||
| 1373 | /// @cond | ||
| 1374 | 1 | ChillerElectricReformulatedEIR::ChillerElectricReformulatedEIR(std::shared_ptr<detail::ChillerElectricReformulatedEIR_Impl> impl) | |
| 1375 |
1/1✓ Branch 3 taken 1 time.
|
1 | : WaterToWaterComponent(std::move(impl)) {} |
| 1376 | |||
| 1377 | /// @endcond | ||
| 1378 | |||
| 1379 | // Convenience functions | ||
| 1380 | 12 | boost::optional<PlantLoop> ChillerElectricReformulatedEIR::chilledWaterLoop() const { | |
| 1381 |
1/1✓ Branch 3 taken 12 times.
|
12 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->chilledWaterLoop(); |
| 1382 | } | ||
| 1383 | |||
| 1384 | ✗ | boost::optional<Node> ChillerElectricReformulatedEIR::chilledWaterInletNode() const { | |
| 1385 | ✗ | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->chilledWaterInletNode(); | |
| 1386 | } | ||
| 1387 | |||
| 1388 | ✗ | boost::optional<Node> ChillerElectricReformulatedEIR::chilledWaterOutletNode() const { | |
| 1389 | ✗ | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->chilledWaterOutletNode(); | |
| 1390 | } | ||
| 1391 | |||
| 1392 | 11 | boost::optional<PlantLoop> ChillerElectricReformulatedEIR::condenserWaterLoop() const { | |
| 1393 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->condenserWaterLoop(); |
| 1394 | } | ||
| 1395 | |||
| 1396 | ✗ | boost::optional<Node> ChillerElectricReformulatedEIR::condenserInletNode() const { | |
| 1397 | ✗ | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->condenserInletNode(); | |
| 1398 | } | ||
| 1399 | |||
| 1400 | ✗ | boost::optional<Node> ChillerElectricReformulatedEIR::condenserOutletNode() const { | |
| 1401 | ✗ | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->condenserOutletNode(); | |
| 1402 | } | ||
| 1403 | |||
| 1404 | 13 | boost::optional<PlantLoop> ChillerElectricReformulatedEIR::heatRecoveryLoop() const { | |
| 1405 |
1/1✓ Branch 3 taken 13 times.
|
13 | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->heatRecoveryLoop(); |
| 1406 | } | ||
| 1407 | |||
| 1408 | ✗ | boost::optional<Node> ChillerElectricReformulatedEIR::heatRecoveryInletNode() const { | |
| 1409 | ✗ | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->heatRecoveryInletNode(); | |
| 1410 | } | ||
| 1411 | |||
| 1412 | ✗ | boost::optional<Node> ChillerElectricReformulatedEIR::heatRecoveryOutletNode() const { | |
| 1413 | ✗ | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->heatRecoveryOutletNode(); | |
| 1414 | } | ||
| 1415 | |||
| 1416 | ✗ | boost::optional<double> ChillerElectricReformulatedEIR::autosizedReferenceCapacity() const { | |
| 1417 | ✗ | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->autosizedReferenceCapacity(); | |
| 1418 | } | ||
| 1419 | |||
| 1420 | ✗ | boost::optional<double> ChillerElectricReformulatedEIR::autosizedReferenceChilledWaterFlowRate() const { | |
| 1421 | ✗ | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->autosizedReferenceChilledWaterFlowRate(); | |
| 1422 | } | ||
| 1423 | |||
| 1424 | ✗ | boost::optional<double> ChillerElectricReformulatedEIR::autosizedReferenceCondenserWaterFlowRate() const { | |
| 1425 | ✗ | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->autosizedReferenceCondenserWaterFlowRate(); | |
| 1426 | } | ||
| 1427 | |||
| 1428 | ✗ | boost::optional<double> ChillerElectricReformulatedEIR::autosizedDesignHeatRecoveryWaterFlowRate() const { | |
| 1429 | ✗ | return getImpl<detail::ChillerElectricReformulatedEIR_Impl>()->autosizedDesignHeatRecoveryWaterFlowRate(); | |
| 1430 | } | ||
| 1431 | |||
| 1432 | } // namespace model | ||
| 1433 | } // namespace openstudio | ||
| 1434 |