src/model/HeatPumpWaterToWaterEquationFitCooling.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 "HeatPumpWaterToWaterEquationFitCooling.hpp" | ||
| 7 | #include "HeatPumpWaterToWaterEquationFitCooling_Impl.hpp" | ||
| 8 | #include "Model.hpp" | ||
| 9 | #include "CurveQuadLinear.hpp" | ||
| 10 | #include "CurveQuadLinear_Impl.hpp" | ||
| 11 | |||
| 12 | #include "HeatPumpWaterToWaterEquationFitHeating.hpp" | ||
| 13 | #include "HeatPumpWaterToWaterEquationFitHeating_Impl.hpp" | ||
| 14 | |||
| 15 | #include "../utilities/core/Assert.hpp" | ||
| 16 | #include "../utilities/data/DataEnums.hpp" | ||
| 17 | |||
| 18 | #include <utilities/idd/IddEnums.hxx> | ||
| 19 | #include <utilities/idd/OS_HeatPump_WaterToWater_EquationFit_Cooling_FieldEnums.hxx> | ||
| 20 | |||
| 21 | #include "../utilities/core/DeprecatedHelpers.hpp" | ||
| 22 | |||
| 23 | namespace openstudio { | ||
| 24 | namespace model { | ||
| 25 | |||
| 26 | namespace detail { | ||
| 27 | |||
| 28 | 4 | HeatPumpWaterToWaterEquationFitCooling_Impl::HeatPumpWaterToWaterEquationFitCooling_Impl(const IdfObject& idfObject, Model_Impl* model, | |
| 29 | 4 | bool keepHandle) | |
| 30 | 4 | : WaterToWaterComponent_Impl(idfObject, model, keepHandle) { | |
| 31 |
4/6✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 4 times.
✗ Branch 13 not taken.
|
4 | OS_ASSERT(idfObject.iddObject().type() == HeatPumpWaterToWaterEquationFitCooling::iddObjectType()); |
| 32 | 4 | } | |
| 33 | |||
| 34 | 1 | HeatPumpWaterToWaterEquationFitCooling_Impl::HeatPumpWaterToWaterEquationFitCooling_Impl(const openstudio::detail::WorkspaceObject_Impl& other, | |
| 35 | 1 | Model_Impl* model, bool keepHandle) | |
| 36 | 1 | : WaterToWaterComponent_Impl(other, model, keepHandle) { | |
| 37 |
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() == HeatPumpWaterToWaterEquationFitCooling::iddObjectType()); |
| 38 | 1 | } | |
| 39 | |||
| 40 | 1 | HeatPumpWaterToWaterEquationFitCooling_Impl::HeatPumpWaterToWaterEquationFitCooling_Impl(const HeatPumpWaterToWaterEquationFitCooling_Impl& other, | |
| 41 | 1 | Model_Impl* model, bool keepHandle) | |
| 42 | 1 | : WaterToWaterComponent_Impl(other, model, keepHandle) {} | |
| 43 | |||
| 44 | ✗ | const std::vector<std::string>& HeatPumpWaterToWaterEquationFitCooling_Impl::outputVariableNames() const { | |
| 45 | static const std::vector<std::string> result{"Water to Water Heat Pump Electricity Energy", | ||
| 46 | "Water to Water Heat Pump Load Side Heat Transfer Energy", | ||
| 47 | "Water to Water Heat Pump Source Side Heat Transfer Energy", | ||
| 48 | "Water to Water Heat Pump Electricity Rate", | ||
| 49 | "Water to Water Heat Pump Load Side Heat Transfer Rate", | ||
| 50 | "Water to Water Heat Pump Source Side Heat Transfer Rate", | ||
| 51 | "Water to Water Heat Pump Load Side Outlet Temperature", | ||
| 52 | "Water to Water Heat Pump Load Side Inlet Temperature", | ||
| 53 | "Water to Water Heat Pump Source Side Outlet Temperature", | ||
| 54 | "Water to Water Heat Pump Source Side Inlet Temperature", | ||
| 55 | "Water to Water Heat Pump Load Side Mass Flow Rate", | ||
| 56 | ✗ | "Water to Water Heat Pump Source Side Mass Flow Rate"}; | |
| 57 | ✗ | return result; | |
| 58 | ✗ | } | |
| 59 | |||
| 60 | ✗ | IddObjectType HeatPumpWaterToWaterEquationFitCooling_Impl::iddObjectType() const { | |
| 61 | ✗ | return HeatPumpWaterToWaterEquationFitCooling::iddObjectType(); | |
| 62 | } | ||
| 63 | |||
| 64 | ✗ | boost::optional<double> HeatPumpWaterToWaterEquationFitCooling_Impl::referenceLoadSideFlowRate() const { | |
| 65 | ✗ | return getDouble(OS_HeatPump_WaterToWater_EquationFit_CoolingFields::ReferenceLoadSideFlowRate, true); | |
| 66 | } | ||
| 67 | |||
| 68 | ✗ | double HeatPumpWaterToWaterEquationFitCooling_Impl::ratedLoadSideFlowRate() const { | |
| 69 | ✗ | if (auto value = getDouble(OS_HeatPump_WaterToWater_EquationFit_CoolingFields::ReferenceLoadSideFlowRate, true)) { | |
| 70 | ✗ | return value.get(); | |
| 71 | } else { | ||
| 72 | ✗ | return -999.0; | |
| 73 | } | ||
| 74 | } | ||
| 75 | |||
| 76 | 1 | bool HeatPumpWaterToWaterEquationFitCooling_Impl::isReferenceLoadSideFlowRateAutosized() const { | |
| 77 | 1 | bool result = false; | |
| 78 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<std::string> value = getString(OS_HeatPump_WaterToWater_EquationFit_CoolingFields::ReferenceLoadSideFlowRate, true); |
| 79 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (value) { |
| 80 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
2 | result = openstudio::istringEqual(value.get(), "Autosize"); |
| 81 | } | ||
| 82 | 1 | return result; | |
| 83 | 1 | } | |
| 84 | |||
| 85 | ✗ | boost::optional<double> HeatPumpWaterToWaterEquationFitCooling_Impl::referenceSourceSideFlowRate() const { | |
| 86 | ✗ | return getDouble(OS_HeatPump_WaterToWater_EquationFit_CoolingFields::ReferenceSourceSideFlowRate, true); | |
| 87 | } | ||
| 88 | |||
| 89 | ✗ | double HeatPumpWaterToWaterEquationFitCooling_Impl::ratedSourceSideFlowRate() const { | |
| 90 | ✗ | if (auto value = getDouble(OS_HeatPump_WaterToWater_EquationFit_CoolingFields::ReferenceSourceSideFlowRate, true)) { | |
| 91 | ✗ | return value.get(); | |
| 92 | } else { | ||
| 93 | ✗ | return -999.0; | |
| 94 | } | ||
| 95 | } | ||
| 96 | |||
| 97 | 1 | bool HeatPumpWaterToWaterEquationFitCooling_Impl::isReferenceSourceSideFlowRateAutosized() const { | |
| 98 | 1 | bool result = false; | |
| 99 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<std::string> value = getString(OS_HeatPump_WaterToWater_EquationFit_CoolingFields::ReferenceSourceSideFlowRate, true); |
| 100 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (value) { |
| 101 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
2 | result = openstudio::istringEqual(value.get(), "Autosize"); |
| 102 | } | ||
| 103 | 1 | return result; | |
| 104 | 1 | } | |
| 105 | |||
| 106 | ✗ | boost::optional<double> HeatPumpWaterToWaterEquationFitCooling_Impl::ratedCoolingCapacity() const { | |
| 107 | ✗ | return getDouble(OS_HeatPump_WaterToWater_EquationFit_CoolingFields::ReferenceCoolingCapacity, true); | |
| 108 | } | ||
| 109 | |||
| 110 | 1 | bool HeatPumpWaterToWaterEquationFitCooling_Impl::isRatedCoolingCapacityAutosized() const { | |
| 111 | 1 | bool result = false; | |
| 112 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<std::string> value = getString(OS_HeatPump_WaterToWater_EquationFit_CoolingFields::ReferenceCoolingCapacity, true); |
| 113 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (value) { |
| 114 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
2 | result = openstudio::istringEqual(value.get(), "Autosize"); |
| 115 | } | ||
| 116 | 1 | return result; | |
| 117 | 1 | } | |
| 118 | |||
| 119 | ✗ | boost::optional<double> HeatPumpWaterToWaterEquationFitCooling_Impl::ratedCoolingPowerConsumption() const { | |
| 120 | ✗ | return getDouble(OS_HeatPump_WaterToWater_EquationFit_CoolingFields::ReferenceCoolingPowerConsumption, true); | |
| 121 | } | ||
| 122 | |||
| 123 | 1 | bool HeatPumpWaterToWaterEquationFitCooling_Impl::isRatedCoolingPowerConsumptionAutosized() const { | |
| 124 | 1 | bool result = false; | |
| 125 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<std::string> value = getString(OS_HeatPump_WaterToWater_EquationFit_CoolingFields::ReferenceCoolingPowerConsumption, true); |
| 126 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (value) { |
| 127 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
2 | result = openstudio::istringEqual(value.get(), "Autosize"); |
| 128 | } | ||
| 129 | 1 | return result; | |
| 130 | 1 | } | |
| 131 | |||
| 132 | 1 | double HeatPumpWaterToWaterEquationFitCooling_Impl::referenceCoefficientofPerformance() const { | |
| 133 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_HeatPump_WaterToWater_EquationFit_CoolingFields::ReferenceCoefficientofPerformance, true); |
| 134 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 135 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 136 | } | ||
| 137 | |||
| 138 | 1 | double HeatPumpWaterToWaterEquationFitCooling_Impl::sizingFactor() const { | |
| 139 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_HeatPump_WaterToWater_EquationFit_CoolingFields::SizingFactor, true); |
| 140 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 141 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 142 | } | ||
| 143 | |||
| 144 | 1 | boost::optional<HeatPumpWaterToWaterEquationFitHeating> HeatPumpWaterToWaterEquationFitCooling_Impl::companionHeatingHeatPump() const { | |
| 145 |
1/1✓ Branch 1 taken 1 time.
|
2 | return getObject<ModelObject>().getModelObjectTarget<HeatPumpWaterToWaterEquationFitHeating>( |
| 146 |
1/1✓ Branch 1 taken 1 time.
|
2 | OS_HeatPump_WaterToWater_EquationFit_CoolingFields::CompanionHeatingHeatPumpName); |
| 147 | } | ||
| 148 | |||
| 149 | ✗ | bool HeatPumpWaterToWaterEquationFitCooling_Impl::setReferenceLoadSideFlowRate(double referenceLoadSideFlowRate) { | |
| 150 | ✗ | bool result = setDouble(OS_HeatPump_WaterToWater_EquationFit_CoolingFields::ReferenceLoadSideFlowRate, referenceLoadSideFlowRate); | |
| 151 | ✗ | return result; | |
| 152 | } | ||
| 153 | |||
| 154 | 3 | void HeatPumpWaterToWaterEquationFitCooling_Impl::autosizeReferenceLoadSideFlowRate() { | |
| 155 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | bool result = setString(OS_HeatPump_WaterToWater_EquationFit_CoolingFields::ReferenceLoadSideFlowRate, "Autosize"); |
| 156 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
|
3 | OS_ASSERT(result); |
| 157 | 3 | } | |
| 158 | |||
| 159 | ✗ | bool HeatPumpWaterToWaterEquationFitCooling_Impl::setReferenceSourceSideFlowRate(double referenceSourceSideFlowRate) { | |
| 160 | ✗ | bool result = setDouble(OS_HeatPump_WaterToWater_EquationFit_CoolingFields::ReferenceSourceSideFlowRate, referenceSourceSideFlowRate); | |
| 161 | ✗ | return result; | |
| 162 | } | ||
| 163 | |||
| 164 | 3 | void HeatPumpWaterToWaterEquationFitCooling_Impl::autosizeReferenceSourceSideFlowRate() { | |
| 165 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | bool result = setString(OS_HeatPump_WaterToWater_EquationFit_CoolingFields::ReferenceSourceSideFlowRate, "Autosize"); |
| 166 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
|
3 | OS_ASSERT(result); |
| 167 | 3 | } | |
| 168 | |||
| 169 | ✗ | bool HeatPumpWaterToWaterEquationFitCooling_Impl::setRatedCoolingCapacity(double ratedCoolingCapacity) { | |
| 170 | ✗ | bool result = setDouble(OS_HeatPump_WaterToWater_EquationFit_CoolingFields::ReferenceCoolingCapacity, ratedCoolingCapacity); | |
| 171 | ✗ | return result; | |
| 172 | } | ||
| 173 | |||
| 174 | 3 | void HeatPumpWaterToWaterEquationFitCooling_Impl::autosizeRatedCoolingCapacity() { | |
| 175 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | bool result = setString(OS_HeatPump_WaterToWater_EquationFit_CoolingFields::ReferenceCoolingCapacity, "Autosize"); |
| 176 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
|
3 | OS_ASSERT(result); |
| 177 | 3 | } | |
| 178 | |||
| 179 | ✗ | bool HeatPumpWaterToWaterEquationFitCooling_Impl::setRatedCoolingPowerConsumption(double ratedCoolingPowerConsumption) { | |
| 180 | ✗ | bool result = setDouble(OS_HeatPump_WaterToWater_EquationFit_CoolingFields::ReferenceCoolingPowerConsumption, ratedCoolingPowerConsumption); | |
| 181 | ✗ | return result; | |
| 182 | } | ||
| 183 | |||
| 184 | 3 | void HeatPumpWaterToWaterEquationFitCooling_Impl::autosizeRatedCoolingPowerConsumption() { | |
| 185 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | bool result = setString(OS_HeatPump_WaterToWater_EquationFit_CoolingFields::ReferenceCoolingPowerConsumption, "Autosize"); |
| 186 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
|
3 | OS_ASSERT(result); |
| 187 | 3 | } | |
| 188 | |||
| 189 | 3 | bool HeatPumpWaterToWaterEquationFitCooling_Impl::setReferenceCoefficientofPerformance(double referenceCoefficientofPerformance) { | |
| 190 | bool result = | ||
| 191 | 3 | setDouble(OS_HeatPump_WaterToWater_EquationFit_CoolingFields::ReferenceCoefficientofPerformance, referenceCoefficientofPerformance); | |
| 192 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
|
3 | OS_ASSERT(result); |
| 193 | 3 | return result; | |
| 194 | } | ||
| 195 | |||
| 196 | 3 | bool HeatPumpWaterToWaterEquationFitCooling_Impl::setSizingFactor(double sizingFactor) { | |
| 197 | 3 | bool result = setDouble(OS_HeatPump_WaterToWater_EquationFit_CoolingFields::SizingFactor, sizingFactor); | |
| 198 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
|
3 | OS_ASSERT(result); |
| 199 | 3 | return result; | |
| 200 | } | ||
| 201 | |||
| 202 | 1 | CurveQuadLinear HeatPumpWaterToWaterEquationFitCooling_Impl::coolingCapacityCurve() const { | |
| 203 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | WorkspaceObject wo = getTarget(OS_HeatPump_WaterToWater_EquationFit_CoolingFields::CoolingCapacityCurveName).get(); |
| 204 |
1/1✓ Branch 1 taken 1 time.
|
2 | return wo.cast<CurveQuadLinear>(); |
| 205 | 1 | } | |
| 206 | |||
| 207 | 3 | bool HeatPumpWaterToWaterEquationFitCooling_Impl::setCoolingCapacityCurve(const CurveQuadLinear& coolingCapacityCurve) { | |
| 208 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | bool result = setPointer(OS_HeatPump_WaterToWater_EquationFit_CoolingFields::CoolingCapacityCurveName, coolingCapacityCurve.handle()); |
| 209 | 3 | return result; | |
| 210 | } | ||
| 211 | |||
| 212 | 1 | CurveQuadLinear HeatPumpWaterToWaterEquationFitCooling_Impl::coolingCompressorPowerCurve() const { | |
| 213 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | WorkspaceObject wo = getTarget(OS_HeatPump_WaterToWater_EquationFit_CoolingFields::CoolingCompressorPowerCurveName).get(); |
| 214 |
1/1✓ Branch 1 taken 1 time.
|
2 | return wo.cast<CurveQuadLinear>(); |
| 215 | 1 | } | |
| 216 | |||
| 217 | 3 | bool HeatPumpWaterToWaterEquationFitCooling_Impl::setCoolingCompressorPowerCurve(const CurveQuadLinear& coolingCompressorPowerCurve) { | |
| 218 | bool result = | ||
| 219 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | setPointer(OS_HeatPump_WaterToWater_EquationFit_CoolingFields::CoolingCompressorPowerCurveName, coolingCompressorPowerCurve.handle()); |
| 220 | 3 | return result; | |
| 221 | } | ||
| 222 | |||
| 223 | 1 | bool HeatPumpWaterToWaterEquationFitCooling_Impl::setCompanionHeatingHeatPump(const HeatPumpWaterToWaterEquationFitHeating& companionHP) { | |
| 224 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | return this->setPointer(OS_HeatPump_WaterToWater_EquationFit_CoolingFields::CompanionHeatingHeatPumpName, companionHP.handle()); |
| 225 | } | ||
| 226 | |||
| 227 | 15 | unsigned HeatPumpWaterToWaterEquationFitCooling_Impl::supplyInletPort() const { | |
| 228 | 15 | return OS_HeatPump_WaterToWater_EquationFit_CoolingFields::SourceSideInletNodeName; | |
| 229 | } | ||
| 230 | |||
| 231 | 13 | unsigned HeatPumpWaterToWaterEquationFitCooling_Impl::supplyOutletPort() const { | |
| 232 | 13 | return OS_HeatPump_WaterToWater_EquationFit_CoolingFields::SourceSideOutletNodeName; | |
| 233 | } | ||
| 234 | |||
| 235 | 6 | unsigned HeatPumpWaterToWaterEquationFitCooling_Impl::demandInletPort() const { | |
| 236 | 6 | return OS_HeatPump_WaterToWater_EquationFit_CoolingFields::LoadSideInletNodeName; | |
| 237 | } | ||
| 238 | |||
| 239 | 7 | unsigned HeatPumpWaterToWaterEquationFitCooling_Impl::demandOutletPort() const { | |
| 240 | 7 | return OS_HeatPump_WaterToWater_EquationFit_CoolingFields::LoadSideOutletNodeName; | |
| 241 | } | ||
| 242 | |||
| 243 | ✗ | boost::optional<double> HeatPumpWaterToWaterEquationFitCooling_Impl::autosizedReferenceLoadSideFlowRate() const { | |
| 244 | ✗ | return getAutosizedValue("Design Size Load Side Volume Flow Rate", "m3/s"); | |
| 245 | } | ||
| 246 | |||
| 247 | ✗ | boost::optional<double> HeatPumpWaterToWaterEquationFitCooling_Impl::autosizedReferenceSourceSideFlowRate() const { | |
| 248 | ✗ | return getAutosizedValue("Design Size Source Side Volume Flow Rate", "m3/s"); | |
| 249 | } | ||
| 250 | |||
| 251 | ✗ | boost::optional<double> HeatPumpWaterToWaterEquationFitCooling_Impl::autosizedRatedCoolingCapacity() const { | |
| 252 | ✗ | return getAutosizedValue("Design Size Nominal Capacity", "W"); | |
| 253 | } | ||
| 254 | |||
| 255 | ✗ | boost::optional<double> HeatPumpWaterToWaterEquationFitCooling_Impl::autosizedRatedCoolingPowerConsumption() const { | |
| 256 | ✗ | return getAutosizedValue("Design Size Cooling Power Consumption", "W"); | |
| 257 | } | ||
| 258 | |||
| 259 | ✗ | void HeatPumpWaterToWaterEquationFitCooling_Impl::autosize() { | |
| 260 | ✗ | autosizeReferenceLoadSideFlowRate(); | |
| 261 | ✗ | autosizeReferenceSourceSideFlowRate(); | |
| 262 | ✗ | autosizeRatedCoolingCapacity(); | |
| 263 | ✗ | autosizeRatedCoolingPowerConsumption(); | |
| 264 | ✗ | } | |
| 265 | |||
| 266 | ✗ | void HeatPumpWaterToWaterEquationFitCooling_Impl::applySizingValues() { | |
| 267 | ✗ | boost::optional<double> val; | |
| 268 | ✗ | val = autosizedReferenceLoadSideFlowRate(); | |
| 269 | ✗ | if (val) { | |
| 270 | ✗ | setReferenceLoadSideFlowRate(val.get()); | |
| 271 | } | ||
| 272 | |||
| 273 | ✗ | val = autosizedReferenceSourceSideFlowRate(); | |
| 274 | ✗ | if (val) { | |
| 275 | ✗ | setReferenceSourceSideFlowRate(val.get()); | |
| 276 | } | ||
| 277 | |||
| 278 | ✗ | val = autosizedRatedCoolingCapacity(); | |
| 279 | ✗ | if (val) { | |
| 280 | ✗ | setRatedCoolingCapacity(val.get()); | |
| 281 | } | ||
| 282 | |||
| 283 | ✗ | val = autosizedRatedCoolingPowerConsumption(); | |
| 284 | ✗ | if (val) { | |
| 285 | ✗ | setRatedCoolingPowerConsumption(val.get()); | |
| 286 | } | ||
| 287 | ✗ | } | |
| 288 | |||
| 289 | 4 | ComponentType HeatPumpWaterToWaterEquationFitCooling_Impl::componentType() const { | |
| 290 |
1/1✓ Branch 1 taken 4 times.
|
4 | return ComponentType::Cooling; |
| 291 | } | ||
| 292 | |||
| 293 | ✗ | std::vector<FuelType> HeatPumpWaterToWaterEquationFitCooling_Impl::coolingFuelTypes() const { | |
| 294 | ✗ | std::set<FuelType> result; | |
| 295 | ✗ | result.insert(FuelType::Electricity); | |
| 296 | ✗ | if (auto p_ = secondaryPlantLoop()) { | |
| 297 | ✗ | for (auto& ft : p_->coolingFuelTypes()) { | |
| 298 | ✗ | result.insert(ft); | |
| 299 | ✗ | } | |
| 300 | ✗ | } | |
| 301 | ✗ | return {result.begin(), result.end()}; | |
| 302 | ✗ | } | |
| 303 | |||
| 304 | ✗ | std::vector<FuelType> HeatPumpWaterToWaterEquationFitCooling_Impl::heatingFuelTypes() const { | |
| 305 | ✗ | return {}; | |
| 306 | } | ||
| 307 | |||
| 308 | ✗ | std::vector<AppGFuelType> HeatPumpWaterToWaterEquationFitCooling_Impl::appGHeatingFuelTypes() const { | |
| 309 | ✗ | return {}; | |
| 310 | } | ||
| 311 | |||
| 312 | } // namespace detail | ||
| 313 | |||
| 314 | ✗ | HeatPumpWaterToWaterEquationFitCooling::HeatPumpWaterToWaterEquationFitCooling(const Model& model, const CurveQuadLinear& coolingCapacityCurve, | |
| 315 | ✗ | const CurveQuadLinear& coolingCompressorPowerCurve) | |
| 316 | ✗ | : WaterToWaterComponent(HeatPumpWaterToWaterEquationFitCooling::iddObjectType(), model) { | |
| 317 | ✗ | OS_ASSERT(getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()); | |
| 318 | |||
| 319 | ✗ | autosizeReferenceLoadSideFlowRate(); | |
| 320 | ✗ | autosizeReferenceSourceSideFlowRate(); | |
| 321 | ✗ | autosizeRatedCoolingCapacity(); | |
| 322 | ✗ | autosizeRatedCoolingPowerConsumption(); | |
| 323 | |||
| 324 | ✗ | bool ok = setCoolingCapacityCurve(coolingCapacityCurve); | |
| 325 | ✗ | OS_ASSERT(ok); | |
| 326 | |||
| 327 | ✗ | ok = setCoolingCompressorPowerCurve(coolingCompressorPowerCurve); | |
| 328 | ✗ | OS_ASSERT(ok); | |
| 329 | |||
| 330 | ✗ | setReferenceCoefficientofPerformance(8.0); | |
| 331 | ✗ | setSizingFactor(1.0); | |
| 332 | // Trick to make IG not do weird things | ||
| 333 | ✗ | setString(22, ""); | |
| 334 | ✗ | } | |
| 335 | |||
| 336 | 3 | HeatPumpWaterToWaterEquationFitCooling::HeatPumpWaterToWaterEquationFitCooling(const Model& model) | |
| 337 | 3 | : WaterToWaterComponent(HeatPumpWaterToWaterEquationFitCooling::iddObjectType(), model) { | |
| 338 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 3 times.
✗ Branch 5 not taken.
|
3 | OS_ASSERT(getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()); |
| 339 | |||
| 340 |
1/1✓ Branch 1 taken 3 times.
|
3 | autosizeReferenceLoadSideFlowRate(); |
| 341 |
1/1✓ Branch 1 taken 3 times.
|
3 | autosizeReferenceSourceSideFlowRate(); |
| 342 |
1/1✓ Branch 1 taken 3 times.
|
3 | autosizeRatedCoolingCapacity(); |
| 343 |
1/1✓ Branch 1 taken 3 times.
|
3 | autosizeRatedCoolingPowerConsumption(); |
| 344 | |||
| 345 |
1/1✓ Branch 1 taken 3 times.
|
3 | CurveQuadLinear coolingCapacityCurve(model); |
| 346 |
1/1✓ Branch 1 taken 3 times.
|
3 | coolingCapacityCurve.setCoefficient1Constant(-1.52030596); |
| 347 |
1/1✓ Branch 1 taken 3 times.
|
3 | coolingCapacityCurve.setCoefficient2w(3.46625667); |
| 348 |
1/1✓ Branch 1 taken 3 times.
|
3 | coolingCapacityCurve.setCoefficient3x(-1.32267797); |
| 349 |
1/1✓ Branch 1 taken 3 times.
|
3 | coolingCapacityCurve.setCoefficient4y(0.09395678); |
| 350 |
1/1✓ Branch 1 taken 3 times.
|
3 | coolingCapacityCurve.setCoefficient5z(0.038975504); |
| 351 |
1/1✓ Branch 1 taken 3 times.
|
3 | bool ok = setCoolingCapacityCurve(coolingCapacityCurve); |
| 352 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
|
3 | OS_ASSERT(ok); |
| 353 | |||
| 354 |
1/1✓ Branch 1 taken 3 times.
|
3 | CurveQuadLinear coolingCompressorPowerCurve(model); |
| 355 |
1/1✓ Branch 1 taken 3 times.
|
3 | coolingCompressorPowerCurve.setCoefficient1Constant(-8.59564386); |
| 356 |
1/1✓ Branch 1 taken 3 times.
|
3 | coolingCompressorPowerCurve.setCoefficient2w(0.96265085); |
| 357 |
1/1✓ Branch 1 taken 3 times.
|
3 | coolingCompressorPowerCurve.setCoefficient3x(8.69489229); |
| 358 |
1/1✓ Branch 1 taken 3 times.
|
3 | coolingCompressorPowerCurve.setCoefficient4y(0.02501669); |
| 359 |
1/1✓ Branch 1 taken 3 times.
|
3 | coolingCompressorPowerCurve.setCoefficient5z(-0.20132665); |
| 360 |
1/1✓ Branch 1 taken 3 times.
|
3 | ok = setCoolingCompressorPowerCurve(coolingCompressorPowerCurve); |
| 361 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
|
3 | OS_ASSERT(ok); |
| 362 | |||
| 363 |
1/1✓ Branch 1 taken 3 times.
|
3 | setReferenceCoefficientofPerformance(8.0); |
| 364 |
1/1✓ Branch 1 taken 3 times.
|
3 | setSizingFactor(1.0); |
| 365 | // Trick to make IG not do weird things | ||
| 366 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | setString(22, ""); |
| 367 | 3 | } | |
| 368 | |||
| 369 | 7736 | IddObjectType HeatPumpWaterToWaterEquationFitCooling::iddObjectType() { | |
| 370 |
1/1✓ Branch 1 taken 7736 times.
|
7736 | return {IddObjectType::OS_HeatPump_WaterToWater_EquationFit_Cooling}; |
| 371 | } | ||
| 372 | |||
| 373 | ✗ | boost::optional<double> HeatPumpWaterToWaterEquationFitCooling::referenceLoadSideFlowRate() const { | |
| 374 | ✗ | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->referenceLoadSideFlowRate(); | |
| 375 | } | ||
| 376 | |||
| 377 | ✗ | double HeatPumpWaterToWaterEquationFitCooling::ratedLoadSideFlowRate() const { | |
| 378 | ✗ | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->ratedLoadSideFlowRate(); | |
| 379 | } | ||
| 380 | |||
| 381 | 1 | bool HeatPumpWaterToWaterEquationFitCooling::isReferenceLoadSideFlowRateAutosized() const { | |
| 382 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->isReferenceLoadSideFlowRateAutosized(); |
| 383 | } | ||
| 384 | |||
| 385 | ✗ | boost::optional<double> HeatPumpWaterToWaterEquationFitCooling::referenceSourceSideFlowRate() const { | |
| 386 | ✗ | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->referenceSourceSideFlowRate(); | |
| 387 | } | ||
| 388 | |||
| 389 | ✗ | double HeatPumpWaterToWaterEquationFitCooling::ratedSourceSideFlowRate() const { | |
| 390 | ✗ | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->ratedSourceSideFlowRate(); | |
| 391 | } | ||
| 392 | |||
| 393 | 1 | bool HeatPumpWaterToWaterEquationFitCooling::isReferenceSourceSideFlowRateAutosized() const { | |
| 394 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->isReferenceSourceSideFlowRateAutosized(); |
| 395 | } | ||
| 396 | |||
| 397 | ✗ | boost::optional<double> HeatPumpWaterToWaterEquationFitCooling::ratedCoolingCapacity() const { | |
| 398 | ✗ | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->ratedCoolingCapacity(); | |
| 399 | } | ||
| 400 | |||
| 401 | 1 | bool HeatPumpWaterToWaterEquationFitCooling::isRatedCoolingCapacityAutosized() const { | |
| 402 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->isRatedCoolingCapacityAutosized(); |
| 403 | } | ||
| 404 | |||
| 405 | ✗ | boost::optional<double> HeatPumpWaterToWaterEquationFitCooling::ratedCoolingPowerConsumption() const { | |
| 406 | ✗ | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->ratedCoolingPowerConsumption(); | |
| 407 | } | ||
| 408 | |||
| 409 | 1 | bool HeatPumpWaterToWaterEquationFitCooling::isRatedCoolingPowerConsumptionAutosized() const { | |
| 410 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->isRatedCoolingPowerConsumptionAutosized(); |
| 411 | } | ||
| 412 | |||
| 413 | 1 | double HeatPumpWaterToWaterEquationFitCooling::referenceCoefficientofPerformance() const { | |
| 414 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->referenceCoefficientofPerformance(); |
| 415 | } | ||
| 416 | |||
| 417 | 1 | double HeatPumpWaterToWaterEquationFitCooling::sizingFactor() const { | |
| 418 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->sizingFactor(); |
| 419 | } | ||
| 420 | |||
| 421 | 1 | boost::optional<HeatPumpWaterToWaterEquationFitHeating> HeatPumpWaterToWaterEquationFitCooling::companionHeatingHeatPump() const { | |
| 422 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->companionHeatingHeatPump(); |
| 423 | } | ||
| 424 | |||
| 425 | ✗ | bool HeatPumpWaterToWaterEquationFitCooling::setReferenceLoadSideFlowRate(double referenceLoadSideFlowRate) { | |
| 426 | ✗ | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->setReferenceLoadSideFlowRate(referenceLoadSideFlowRate); | |
| 427 | } | ||
| 428 | |||
| 429 | ✗ | bool HeatPumpWaterToWaterEquationFitCooling::setRatedLoadSideFlowRate(double ratedLoadSideFlowRate) { | |
| 430 | ✗ | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->setReferenceLoadSideFlowRate(ratedLoadSideFlowRate); | |
| 431 | } | ||
| 432 | |||
| 433 | 3 | void HeatPumpWaterToWaterEquationFitCooling::autosizeReferenceLoadSideFlowRate() { | |
| 434 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->autosizeReferenceLoadSideFlowRate(); |
| 435 | } | ||
| 436 | |||
| 437 | ✗ | bool HeatPumpWaterToWaterEquationFitCooling::setReferenceSourceSideFlowRate(double referenceSourceSideFlowRate) { | |
| 438 | ✗ | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->setReferenceSourceSideFlowRate(referenceSourceSideFlowRate); | |
| 439 | } | ||
| 440 | |||
| 441 | ✗ | bool HeatPumpWaterToWaterEquationFitCooling::setRatedSourceSideFlowRate(double ratedSourceSideFlowRate) { | |
| 442 | ✗ | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->setReferenceSourceSideFlowRate(ratedSourceSideFlowRate); | |
| 443 | } | ||
| 444 | |||
| 445 | 3 | void HeatPumpWaterToWaterEquationFitCooling::autosizeReferenceSourceSideFlowRate() { | |
| 446 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->autosizeReferenceSourceSideFlowRate(); |
| 447 | } | ||
| 448 | |||
| 449 | ✗ | bool HeatPumpWaterToWaterEquationFitCooling::setRatedCoolingCapacity(double ratedCoolingCapacity) { | |
| 450 | ✗ | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->setRatedCoolingCapacity(ratedCoolingCapacity); | |
| 451 | } | ||
| 452 | |||
| 453 | 3 | void HeatPumpWaterToWaterEquationFitCooling::autosizeRatedCoolingCapacity() { | |
| 454 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->autosizeRatedCoolingCapacity(); |
| 455 | } | ||
| 456 | |||
| 457 | ✗ | bool HeatPumpWaterToWaterEquationFitCooling::setRatedCoolingPowerConsumption(double ratedCoolingPowerConsumption) { | |
| 458 | ✗ | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->setRatedCoolingPowerConsumption(ratedCoolingPowerConsumption); | |
| 459 | } | ||
| 460 | |||
| 461 | 3 | void HeatPumpWaterToWaterEquationFitCooling::autosizeRatedCoolingPowerConsumption() { | |
| 462 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->autosizeRatedCoolingPowerConsumption(); |
| 463 | } | ||
| 464 | |||
| 465 | 3 | bool HeatPumpWaterToWaterEquationFitCooling::setReferenceCoefficientofPerformance(double referenceCoefficientofPerformance) { | |
| 466 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->setReferenceCoefficientofPerformance(referenceCoefficientofPerformance); |
| 467 | } | ||
| 468 | |||
| 469 | 3 | bool HeatPumpWaterToWaterEquationFitCooling::setSizingFactor(double sizingFactor) { | |
| 470 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->setSizingFactor(sizingFactor); |
| 471 | } | ||
| 472 | |||
| 473 | 1 | bool HeatPumpWaterToWaterEquationFitCooling::setCompanionHeatingHeatPump(const HeatPumpWaterToWaterEquationFitHeating& companionHP) { | |
| 474 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->setCompanionHeatingHeatPump(companionHP); |
| 475 | } | ||
| 476 | |||
| 477 | ✗ | boost::optional<double> HeatPumpWaterToWaterEquationFitCooling::autosizedReferenceLoadSideFlowRate() const { | |
| 478 | ✗ | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->autosizedReferenceLoadSideFlowRate(); | |
| 479 | } | ||
| 480 | |||
| 481 | ✗ | boost::optional<double> HeatPumpWaterToWaterEquationFitCooling::autosizedReferenceSourceSideFlowRate() const { | |
| 482 | ✗ | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->autosizedReferenceSourceSideFlowRate(); | |
| 483 | } | ||
| 484 | |||
| 485 | ✗ | boost::optional<double> HeatPumpWaterToWaterEquationFitCooling::autosizedRatedCoolingCapacity() const { | |
| 486 | ✗ | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->autosizedRatedCoolingCapacity(); | |
| 487 | } | ||
| 488 | |||
| 489 | ✗ | boost::optional<double> HeatPumpWaterToWaterEquationFitCooling::autosizedRatedCoolingPowerConsumption() const { | |
| 490 | ✗ | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->autosizedRatedCoolingPowerConsumption(); | |
| 491 | } | ||
| 492 | |||
| 493 | 1 | CurveQuadLinear HeatPumpWaterToWaterEquationFitCooling::coolingCapacityCurve() const { | |
| 494 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->coolingCapacityCurve(); |
| 495 | } | ||
| 496 | |||
| 497 | 3 | bool HeatPumpWaterToWaterEquationFitCooling::setCoolingCapacityCurve(const CurveQuadLinear& coolingCapacityCurve) { | |
| 498 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->setCoolingCapacityCurve(coolingCapacityCurve); |
| 499 | } | ||
| 500 | |||
| 501 | 1 | CurveQuadLinear HeatPumpWaterToWaterEquationFitCooling::coolingCompressorPowerCurve() const { | |
| 502 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->coolingCompressorPowerCurve(); |
| 503 | } | ||
| 504 | |||
| 505 | 3 | bool HeatPumpWaterToWaterEquationFitCooling::setCoolingCompressorPowerCurve(const CurveQuadLinear& coolingCompressorPowerCurve) { | |
| 506 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->setCoolingCompressorPowerCurve(coolingCompressorPowerCurve); |
| 507 | } | ||
| 508 | |||
| 509 | /// @cond | ||
| 510 | 2 | HeatPumpWaterToWaterEquationFitCooling::HeatPumpWaterToWaterEquationFitCooling( | |
| 511 | 2 | std::shared_ptr<detail::HeatPumpWaterToWaterEquationFitCooling_Impl> impl) | |
| 512 |
1/1✓ Branch 3 taken 2 times.
|
2 | : WaterToWaterComponent(std::move(impl)) {} |
| 513 | |||
| 514 | // DEPRECATED | ||
| 515 | ✗ | double HeatPumpWaterToWaterEquationFitCooling::coolingCapacityCoefficient1() const { | |
| 516 | ✗ | DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitCooling::coolingCapacityCurve().coefficient1Constant() instead."); | |
| 517 | ✗ | CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->coolingCapacityCurve(); | |
| 518 | ✗ | return curve.coefficient1Constant(); | |
| 519 | ✗ | } | |
| 520 | |||
| 521 | ✗ | bool HeatPumpWaterToWaterEquationFitCooling::setCoolingCapacityCoefficient1(double coolingCapacityCoefficient1) { | |
| 522 | ✗ | DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitCooling::coolingCapacityCurve().setCoefficient1Constant(double) instead."); | |
| 523 | ✗ | CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->coolingCapacityCurve(); | |
| 524 | ✗ | return curve.setCoefficient1Constant(coolingCapacityCoefficient1); | |
| 525 | ✗ | } | |
| 526 | |||
| 527 | ✗ | double HeatPumpWaterToWaterEquationFitCooling::coolingCapacityCoefficient2() const { | |
| 528 | ✗ | DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitCooling::coolingCapacityCurve().coefficient2w() instead."); | |
| 529 | ✗ | CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->coolingCapacityCurve(); | |
| 530 | ✗ | return curve.coefficient2w(); | |
| 531 | ✗ | } | |
| 532 | |||
| 533 | ✗ | bool HeatPumpWaterToWaterEquationFitCooling::setCoolingCapacityCoefficient2(double coolingCapacityCoefficient2) { | |
| 534 | ✗ | DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitCooling::coolingCapacityCurve().setCoefficient2w(double) instead."); | |
| 535 | ✗ | CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->coolingCapacityCurve(); | |
| 536 | ✗ | return curve.setCoefficient2w(coolingCapacityCoefficient2); | |
| 537 | ✗ | } | |
| 538 | |||
| 539 | ✗ | double HeatPumpWaterToWaterEquationFitCooling::coolingCapacityCoefficient3() const { | |
| 540 | ✗ | DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitCooling::coolingCapacityCurve().coefficient3x() instead."); | |
| 541 | ✗ | CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->coolingCapacityCurve(); | |
| 542 | ✗ | return curve.coefficient3x(); | |
| 543 | ✗ | } | |
| 544 | |||
| 545 | ✗ | bool HeatPumpWaterToWaterEquationFitCooling::setCoolingCapacityCoefficient3(double coolingCapacityCoefficient3) { | |
| 546 | ✗ | DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitCooling::coolingCapacityCurve().setCoefficient3x(double) instead."); | |
| 547 | ✗ | CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->coolingCapacityCurve(); | |
| 548 | ✗ | return curve.setCoefficient3x(coolingCapacityCoefficient3); | |
| 549 | ✗ | } | |
| 550 | |||
| 551 | ✗ | double HeatPumpWaterToWaterEquationFitCooling::coolingCapacityCoefficient4() const { | |
| 552 | ✗ | DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitCooling::coolingCapacityCurve().coefficient4y() instead."); | |
| 553 | ✗ | CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->coolingCapacityCurve(); | |
| 554 | ✗ | return curve.coefficient4y(); | |
| 555 | ✗ | } | |
| 556 | |||
| 557 | ✗ | bool HeatPumpWaterToWaterEquationFitCooling::setCoolingCapacityCoefficient4(double coolingCapacityCoefficient4) { | |
| 558 | ✗ | DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitCooling::coolingCapacityCurve().setCoefficient4y(double) instead."); | |
| 559 | ✗ | CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->coolingCapacityCurve(); | |
| 560 | ✗ | return curve.setCoefficient4y(coolingCapacityCoefficient4); | |
| 561 | ✗ | } | |
| 562 | |||
| 563 | ✗ | double HeatPumpWaterToWaterEquationFitCooling::coolingCapacityCoefficient5() const { | |
| 564 | ✗ | DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitCooling::coolingCapacityCurve().coefficient5z() instead."); | |
| 565 | ✗ | CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->coolingCapacityCurve(); | |
| 566 | ✗ | return curve.coefficient5z(); | |
| 567 | ✗ | } | |
| 568 | |||
| 569 | ✗ | bool HeatPumpWaterToWaterEquationFitCooling::setCoolingCapacityCoefficient5(double coolingCapacityCoefficient5) { | |
| 570 | ✗ | DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitCooling::coolingCapacityCurve().setCoefficient5z(double) instead."); | |
| 571 | ✗ | CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->coolingCapacityCurve(); | |
| 572 | ✗ | return curve.setCoefficient5z(coolingCapacityCoefficient5); | |
| 573 | ✗ | } | |
| 574 | |||
| 575 | ✗ | double HeatPumpWaterToWaterEquationFitCooling::coolingCompressorPowerCoefficient1() const { | |
| 576 | ✗ | DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitCooling::coolingCompressorPowerCurve().coefficient1Constant() instead."); | |
| 577 | ✗ | CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->coolingCompressorPowerCurve(); | |
| 578 | ✗ | return curve.coefficient1Constant(); | |
| 579 | ✗ | } | |
| 580 | |||
| 581 | ✗ | bool HeatPumpWaterToWaterEquationFitCooling::setCoolingCompressorPowerCoefficient1(double coolingCompressorPowerCoefficient1) { | |
| 582 | ✗ | DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitCooling::coolingCompressorPowerCurve().setCoefficient1Constant(double) instead."); | |
| 583 | ✗ | CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->coolingCompressorPowerCurve(); | |
| 584 | ✗ | return curve.setCoefficient1Constant(coolingCompressorPowerCoefficient1); | |
| 585 | ✗ | } | |
| 586 | |||
| 587 | ✗ | double HeatPumpWaterToWaterEquationFitCooling::coolingCompressorPowerCoefficient2() const { | |
| 588 | ✗ | DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitCooling::coolingCompressorPowerCurve().coefficient2w() instead."); | |
| 589 | ✗ | CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->coolingCompressorPowerCurve(); | |
| 590 | ✗ | return curve.coefficient2w(); | |
| 591 | ✗ | } | |
| 592 | |||
| 593 | ✗ | bool HeatPumpWaterToWaterEquationFitCooling::setCoolingCompressorPowerCoefficient2(double coolingCompressorPowerCoefficient2) { | |
| 594 | ✗ | DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitCooling::coolingCompressorPowerCurve().setCoefficient2w(double) instead."); | |
| 595 | ✗ | CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->coolingCompressorPowerCurve(); | |
| 596 | ✗ | return curve.setCoefficient2w(coolingCompressorPowerCoefficient2); | |
| 597 | ✗ | } | |
| 598 | |||
| 599 | ✗ | double HeatPumpWaterToWaterEquationFitCooling::coolingCompressorPowerCoefficient3() const { | |
| 600 | ✗ | DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitCooling::coolingCompressorPowerCurve().coefficient3x() instead."); | |
| 601 | ✗ | CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->coolingCompressorPowerCurve(); | |
| 602 | ✗ | return curve.coefficient3x(); | |
| 603 | ✗ | } | |
| 604 | |||
| 605 | ✗ | bool HeatPumpWaterToWaterEquationFitCooling::setCoolingCompressorPowerCoefficient3(double coolingCompressorPowerCoefficient3) { | |
| 606 | ✗ | DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitCooling::coolingCompressorPowerCurve().setCoefficient3x(double) instead."); | |
| 607 | ✗ | CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->coolingCompressorPowerCurve(); | |
| 608 | ✗ | return curve.setCoefficient3x(coolingCompressorPowerCoefficient3); | |
| 609 | ✗ | } | |
| 610 | |||
| 611 | ✗ | double HeatPumpWaterToWaterEquationFitCooling::coolingCompressorPowerCoefficient4() const { | |
| 612 | ✗ | DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitCooling::coolingCompressorPowerCurve().coefficient4y() instead."); | |
| 613 | ✗ | CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->coolingCompressorPowerCurve(); | |
| 614 | ✗ | return curve.coefficient4y(); | |
| 615 | ✗ | } | |
| 616 | |||
| 617 | ✗ | bool HeatPumpWaterToWaterEquationFitCooling::setCoolingCompressorPowerCoefficient4(double coolingCompressorPowerCoefficient4) { | |
| 618 | ✗ | LOG(Warn, | |
| 619 | "This method is deprecated. Use HeatPumpWaterToWaterEquationFitCooling::coolingCompressorPowerCurve().setCoefficient4y(double) instead."); | ||
| 620 | ✗ | CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->coolingCompressorPowerCurve(); | |
| 621 | ✗ | return curve.setCoefficient4y(coolingCompressorPowerCoefficient4); | |
| 622 | ✗ | } | |
| 623 | |||
| 624 | ✗ | double HeatPumpWaterToWaterEquationFitCooling::coolingCompressorPowerCoefficient5() const { | |
| 625 | ✗ | DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitCooling::coolingCompressorPowerCurve().coefficient5z() instead."); | |
| 626 | ✗ | CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->coolingCompressorPowerCurve(); | |
| 627 | ✗ | return curve.coefficient5z(); | |
| 628 | ✗ | } | |
| 629 | |||
| 630 | ✗ | bool HeatPumpWaterToWaterEquationFitCooling::setCoolingCompressorPowerCoefficient5(double coolingCompressorPowerCoefficient5) { | |
| 631 | ✗ | DEPRECATED_AT_MSG(3, 2, 0, "Use HeatPumpWaterToWaterEquationFitCooling::coolingCompressorPowerCurve().setCoefficient5z(double) instead."); | |
| 632 | ✗ | CurveQuadLinear curve = getImpl<detail::HeatPumpWaterToWaterEquationFitCooling_Impl>()->coolingCompressorPowerCurve(); | |
| 633 | ✗ | return curve.setCoefficient5z(coolingCompressorPowerCoefficient5); | |
| 634 | ✗ | } | |
| 635 | |||
| 636 | /// @endcond | ||
| 637 | |||
| 638 | } // namespace model | ||
| 639 | } // namespace openstudio | ||
| 640 |