src/model/CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData.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 "CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData.hpp" | ||
| 7 | #include "CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl.hpp" | ||
| 8 | |||
| 9 | #include "Curve.hpp" | ||
| 10 | #include "Curve_Impl.hpp" | ||
| 11 | #include "Model.hpp" | ||
| 12 | #include "Model_Impl.hpp" | ||
| 13 | #include "CurveBiquadratic.hpp" | ||
| 14 | #include "CurveQuadratic.hpp" | ||
| 15 | |||
| 16 | #include <utilities/idd/OS_Coil_Heating_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedData_FieldEnums.hxx> | ||
| 17 | |||
| 18 | #include <utilities/idd/IddEnums.hxx> | ||
| 19 | #include "../utilities/units/Unit.hpp" | ||
| 20 | #include "../utilities/core/Assert.hpp" | ||
| 21 | |||
| 22 | namespace openstudio { | ||
| 23 | namespace model { | ||
| 24 | |||
| 25 | namespace detail { | ||
| 26 | |||
| 27 | 14 | CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl( | |
| 28 | 14 | const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 29 | 14 | : ParentObject_Impl(idfObject, model, keepHandle) { | |
| 30 |
4/6✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
✓ Branch 7 taken 14 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 14 times.
✗ Branch 13 not taken.
|
14 | OS_ASSERT(idfObject.iddObject().type() == CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::iddObjectType()); |
| 31 | 14 | } | |
| 32 | |||
| 33 | ✗ | CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl( | |
| 34 | ✗ | const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle) | |
| 35 | ✗ | : ParentObject_Impl(other, model, keepHandle) { | |
| 36 | ✗ | OS_ASSERT(other.iddObject().type() == CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::iddObjectType()); | |
| 37 | ✗ | } | |
| 38 | |||
| 39 | 12 | CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl( | |
| 40 | 12 | const CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl& other, Model_Impl* model, bool keepHandle) | |
| 41 | 12 | : ParentObject_Impl(other, model, keepHandle) {} | |
| 42 | |||
| 43 | ✗ | const std::vector<std::string>& CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::outputVariableNames() const { | |
| 44 | ✗ | static const std::vector<std::string> result; | |
| 45 | // Not appropriate | ||
| 46 | ✗ | return result; | |
| 47 | } | ||
| 48 | |||
| 49 | ✗ | IddObjectType CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::iddObjectType() const { | |
| 50 | ✗ | return CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::iddObjectType(); | |
| 51 | } | ||
| 52 | |||
| 53 | 14 | double CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::referenceUnitGrossRatedHeatingCapacity() const { | |
| 54 | boost::optional<double> value = | ||
| 55 |
1/1✓ Branch 1 taken 14 times.
|
14 | getDouble(OS_Coil_Heating_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::ReferenceUnitGrossRatedHeatingCapacity, true); |
| 56 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 14 times.
✗ Branch 4 not taken.
|
14 | OS_ASSERT(value); |
| 57 |
1/1✓ Branch 1 taken 14 times.
|
28 | return value.get(); |
| 58 | } | ||
| 59 | |||
| 60 | 14 | double CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::referenceUnitGrossRatedHeatingCOP() const { | |
| 61 | boost::optional<double> value = | ||
| 62 |
1/1✓ Branch 1 taken 14 times.
|
14 | getDouble(OS_Coil_Heating_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::ReferenceUnitGrossRatedHeatingCOP, true); |
| 63 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 14 times.
✗ Branch 4 not taken.
|
14 | OS_ASSERT(value); |
| 64 |
1/1✓ Branch 1 taken 14 times.
|
28 | return value.get(); |
| 65 | } | ||
| 66 | |||
| 67 | 26 | double CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::referenceUnitRatedAirFlow() const { | |
| 68 | boost::optional<double> value = | ||
| 69 |
1/1✓ Branch 1 taken 26 times.
|
26 | getDouble(OS_Coil_Heating_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::ReferenceUnitRatedAirFlow, true); |
| 70 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 26 times.
✗ Branch 4 not taken.
|
26 | OS_ASSERT(value); |
| 71 |
1/1✓ Branch 1 taken 26 times.
|
52 | return value.get(); |
| 72 | } | ||
| 73 | |||
| 74 | 14 | double CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::referenceUnitRatedWaterFlowRate() const { | |
| 75 | boost::optional<double> value = | ||
| 76 |
1/1✓ Branch 1 taken 14 times.
|
14 | getDouble(OS_Coil_Heating_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::ReferenceUnitRatedWaterFlowRate, true); |
| 77 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 14 times.
✗ Branch 4 not taken.
|
14 | OS_ASSERT(value); |
| 78 |
1/1✓ Branch 1 taken 14 times.
|
28 | return value.get(); |
| 79 | } | ||
| 80 | |||
| 81 | 17 | Curve CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::heatingCapacityFunctionofTemperatureCurve() const { | |
| 82 |
1/1✓ Branch 1 taken 17 times.
|
17 | boost::optional<Curve> value = optionalHeatingCapacityFunctionofTemperatureCurve(); |
| 83 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 17 times.
|
17 | if (!value) { |
| 84 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Heating Capacity Functionof Temperature Curve attached."); | |
| 85 | } | ||
| 86 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
34 | return value.get(); |
| 87 | 17 | } | |
| 88 | |||
| 89 | 17 | Curve CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::totalHeatingCapacityFunctionofAirFlowFractionCurve() const { | |
| 90 |
1/1✓ Branch 1 taken 17 times.
|
17 | boost::optional<Curve> value = optionalTotalHeatingCapacityFunctionofAirFlowFractionCurve(); |
| 91 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 17 times.
|
17 | if (!value) { |
| 92 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Total Heating Capacity Functionof Air Flow Fraction Curve attached."); | |
| 93 | } | ||
| 94 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
34 | return value.get(); |
| 95 | 17 | } | |
| 96 | |||
| 97 | 17 | Curve CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::heatingCapacityFunctionofWaterFlowFractionCurve() const { | |
| 98 |
1/1✓ Branch 1 taken 17 times.
|
17 | boost::optional<Curve> value = optionalHeatingCapacityFunctionofWaterFlowFractionCurve(); |
| 99 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 17 times.
|
17 | if (!value) { |
| 100 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Heating Capacity Functionof Water Flow Fraction Curve attached."); | |
| 101 | } | ||
| 102 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
34 | return value.get(); |
| 103 | 17 | } | |
| 104 | |||
| 105 | 17 | Curve CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::energyInputRatioFunctionofTemperatureCurve() const { | |
| 106 |
1/1✓ Branch 1 taken 17 times.
|
17 | boost::optional<Curve> value = optionalEnergyInputRatioFunctionofTemperatureCurve(); |
| 107 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 17 times.
|
17 | if (!value) { |
| 108 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Energy Input Ratio Functionof Temperature Curve attached."); | |
| 109 | } | ||
| 110 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
34 | return value.get(); |
| 111 | 17 | } | |
| 112 | |||
| 113 | 17 | Curve CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::energyInputRatioFunctionofAirFlowFractionCurve() const { | |
| 114 |
1/1✓ Branch 1 taken 17 times.
|
17 | boost::optional<Curve> value = optionalEnergyInputRatioFunctionofAirFlowFractionCurve(); |
| 115 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 17 times.
|
17 | if (!value) { |
| 116 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Energy Input Ratio Functionof Air Flow Fraction Curve attached."); | |
| 117 | } | ||
| 118 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
34 | return value.get(); |
| 119 | 17 | } | |
| 120 | |||
| 121 | 17 | Curve CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::energyInputRatioFunctionofWaterFlowFractionCurve() const { | |
| 122 |
1/1✓ Branch 1 taken 17 times.
|
17 | boost::optional<Curve> value = optionalEnergyInputRatioFunctionofWaterFlowFractionCurve(); |
| 123 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 17 times.
|
17 | if (!value) { |
| 124 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Energy Input Ratio Functionof Water Flow Fraction Curve attached."); | |
| 125 | } | ||
| 126 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
34 | return value.get(); |
| 127 | 17 | } | |
| 128 | |||
| 129 | 14 | double CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::referenceUnitWasteHeatFractionofInputPowerAtRatedConditions() const { | |
| 130 |
1/1✓ Branch 1 taken 14 times.
|
14 | boost::optional<double> value = getDouble( |
| 131 | OS_Coil_Heating_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::ReferenceUnitWasteHeatFractionofInputPowerAtRatedConditions, | ||
| 132 | true); | ||
| 133 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 14 times.
✗ Branch 4 not taken.
|
14 | OS_ASSERT(value); |
| 134 |
1/1✓ Branch 1 taken 14 times.
|
28 | return value.get(); |
| 135 | } | ||
| 136 | |||
| 137 | 17 | Curve CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::wasteHeatFunctionofTemperatureCurve() const { | |
| 138 |
1/1✓ Branch 1 taken 17 times.
|
17 | boost::optional<Curve> value = optionalWasteHeatFunctionofTemperatureCurve(); |
| 139 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 17 times.
|
17 | if (!value) { |
| 140 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Waste Heat Functionof Temperature Curve attached."); | |
| 141 | } | ||
| 142 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
34 | return value.get(); |
| 143 | 17 | } | |
| 144 | |||
| 145 | 16 | bool CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::setReferenceUnitGrossRatedHeatingCapacity( | |
| 146 | double referenceUnitGrossRatedHeatingCapacity) { | ||
| 147 | 16 | bool result = setDouble(OS_Coil_Heating_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::ReferenceUnitGrossRatedHeatingCapacity, | |
| 148 | referenceUnitGrossRatedHeatingCapacity); | ||
| 149 | 16 | return result; | |
| 150 | } | ||
| 151 | |||
| 152 | 16 | bool CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::setReferenceUnitGrossRatedHeatingCOP( | |
| 153 | double referenceUnitGrossRatedHeatingCOP) { | ||
| 154 | 16 | bool result = setDouble(OS_Coil_Heating_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::ReferenceUnitGrossRatedHeatingCOP, | |
| 155 | referenceUnitGrossRatedHeatingCOP); | ||
| 156 | 16 | return result; | |
| 157 | } | ||
| 158 | |||
| 159 | 16 | bool CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::setReferenceUnitRatedAirFlow(double referenceUnitRatedAirFlow) { | |
| 160 | bool result = | ||
| 161 | 16 | setDouble(OS_Coil_Heating_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::ReferenceUnitRatedAirFlow, referenceUnitRatedAirFlow); | |
| 162 | 16 | return result; | |
| 163 | } | ||
| 164 | |||
| 165 | 16 | bool CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::setReferenceUnitRatedWaterFlowRate( | |
| 166 | double referenceUnitRatedWaterFlowRate) { | ||
| 167 | 16 | bool result = setDouble(OS_Coil_Heating_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::ReferenceUnitRatedWaterFlowRate, | |
| 168 | referenceUnitRatedWaterFlowRate); | ||
| 169 | 16 | return result; | |
| 170 | } | ||
| 171 | |||
| 172 | 14 | bool CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::setHeatingCapacityFunctionofTemperatureCurve(const Curve& curve) { | |
| 173 |
1/1✓ Branch 1 taken 14 times.
|
14 | bool result = setPointer( |
| 174 |
1/1✓ Branch 1 taken 14 times.
|
14 | OS_Coil_Heating_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::HeatingCapacityFunctionofTemperatureCurveName, curve.handle()); |
| 175 | 14 | return result; | |
| 176 | } | ||
| 177 | |||
| 178 | bool | ||
| 179 | 14 | CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::setTotalHeatingCapacityFunctionofAirFlowFractionCurve(const Curve& curve) { | |
| 180 |
1/1✓ Branch 1 taken 14 times.
|
14 | bool result = setPointer( |
| 181 | OS_Coil_Heating_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::TotalHeatingCapacityFunctionofAirFlowFractionCurveName, | ||
| 182 |
1/1✓ Branch 1 taken 14 times.
|
14 | curve.handle()); |
| 183 | 14 | return result; | |
| 184 | } | ||
| 185 | |||
| 186 | 14 | bool CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::setHeatingCapacityFunctionofWaterFlowFractionCurve(const Curve& curve) { | |
| 187 | bool result = | ||
| 188 |
1/1✓ Branch 1 taken 14 times.
|
14 | setPointer(OS_Coil_Heating_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::HeatingCapacityFunctionofWaterFlowFractionCurveName, |
| 189 |
1/1✓ Branch 1 taken 14 times.
|
14 | curve.handle()); |
| 190 | 14 | return result; | |
| 191 | } | ||
| 192 | |||
| 193 | 14 | bool CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::setEnergyInputRatioFunctionofTemperatureCurve(const Curve& curve) { | |
| 194 |
1/1✓ Branch 1 taken 14 times.
|
14 | bool result = setPointer( |
| 195 |
1/1✓ Branch 1 taken 14 times.
|
14 | OS_Coil_Heating_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::EnergyInputRatioFunctionofTemperatureCurveName, curve.handle()); |
| 196 | 14 | return result; | |
| 197 | } | ||
| 198 | |||
| 199 | 14 | bool CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::setEnergyInputRatioFunctionofAirFlowFractionCurve(const Curve& curve) { | |
| 200 | bool result = | ||
| 201 |
1/1✓ Branch 1 taken 14 times.
|
14 | setPointer(OS_Coil_Heating_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::EnergyInputRatioFunctionofAirFlowFractionCurveName, |
| 202 |
1/1✓ Branch 1 taken 14 times.
|
14 | curve.handle()); |
| 203 | 14 | return result; | |
| 204 | } | ||
| 205 | |||
| 206 | bool | ||
| 207 | 14 | CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::setEnergyInputRatioFunctionofWaterFlowFractionCurve(const Curve& curve) { | |
| 208 | bool result = | ||
| 209 |
1/1✓ Branch 1 taken 14 times.
|
14 | setPointer(OS_Coil_Heating_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::EnergyInputRatioFunctionofWaterFlowFractionCurveName, |
| 210 |
1/1✓ Branch 1 taken 14 times.
|
14 | curve.handle()); |
| 211 | 14 | return result; | |
| 212 | } | ||
| 213 | |||
| 214 | 16 | bool CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::setReferenceUnitWasteHeatFractionofInputPowerAtRatedConditions( | |
| 215 | double referenceUnitWasteHeatFractionofInputPowerAtRatedConditions) { | ||
| 216 | 16 | bool result = setDouble( | |
| 217 | OS_Coil_Heating_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::ReferenceUnitWasteHeatFractionofInputPowerAtRatedConditions, | ||
| 218 | referenceUnitWasteHeatFractionofInputPowerAtRatedConditions); | ||
| 219 | 16 | return result; | |
| 220 | } | ||
| 221 | |||
| 222 | 14 | bool CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::setWasteHeatFunctionofTemperatureCurve(const Curve& curve) { | |
| 223 |
1/1✓ Branch 1 taken 14 times.
|
14 | bool result = setPointer(OS_Coil_Heating_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::WasteHeatFunctionofTemperatureCurveName, |
| 224 |
1/1✓ Branch 1 taken 14 times.
|
14 | curve.handle()); |
| 225 | 14 | return result; | |
| 226 | } | ||
| 227 | |||
| 228 | boost::optional<Curve> | ||
| 229 | 17 | CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::optionalHeatingCapacityFunctionofTemperatureCurve() const { | |
| 230 |
1/1✓ Branch 1 taken 17 times.
|
34 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 231 |
1/1✓ Branch 1 taken 17 times.
|
34 | OS_Coil_Heating_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::HeatingCapacityFunctionofTemperatureCurveName); |
| 232 | } | ||
| 233 | |||
| 234 | boost::optional<Curve> | ||
| 235 | 17 | CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::optionalTotalHeatingCapacityFunctionofAirFlowFractionCurve() const { | |
| 236 |
1/1✓ Branch 1 taken 17 times.
|
34 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 237 |
1/1✓ Branch 1 taken 17 times.
|
34 | OS_Coil_Heating_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::TotalHeatingCapacityFunctionofAirFlowFractionCurveName); |
| 238 | } | ||
| 239 | |||
| 240 | boost::optional<Curve> | ||
| 241 | 17 | CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::optionalHeatingCapacityFunctionofWaterFlowFractionCurve() const { | |
| 242 |
1/1✓ Branch 1 taken 17 times.
|
34 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 243 |
1/1✓ Branch 1 taken 17 times.
|
34 | OS_Coil_Heating_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::HeatingCapacityFunctionofWaterFlowFractionCurveName); |
| 244 | } | ||
| 245 | |||
| 246 | boost::optional<Curve> | ||
| 247 | 17 | CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::optionalEnergyInputRatioFunctionofTemperatureCurve() const { | |
| 248 |
1/1✓ Branch 1 taken 17 times.
|
34 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 249 |
1/1✓ Branch 1 taken 17 times.
|
34 | OS_Coil_Heating_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::EnergyInputRatioFunctionofTemperatureCurveName); |
| 250 | } | ||
| 251 | |||
| 252 | boost::optional<Curve> | ||
| 253 | 17 | CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::optionalEnergyInputRatioFunctionofAirFlowFractionCurve() const { | |
| 254 |
1/1✓ Branch 1 taken 17 times.
|
34 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 255 |
1/1✓ Branch 1 taken 17 times.
|
34 | OS_Coil_Heating_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::EnergyInputRatioFunctionofAirFlowFractionCurveName); |
| 256 | } | ||
| 257 | |||
| 258 | boost::optional<Curve> | ||
| 259 | 17 | CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::optionalEnergyInputRatioFunctionofWaterFlowFractionCurve() const { | |
| 260 |
1/1✓ Branch 1 taken 17 times.
|
34 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 261 |
1/1✓ Branch 1 taken 17 times.
|
34 | OS_Coil_Heating_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::EnergyInputRatioFunctionofWaterFlowFractionCurveName); |
| 262 | } | ||
| 263 | |||
| 264 | 17 | boost::optional<Curve> CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::optionalWasteHeatFunctionofTemperatureCurve() const { | |
| 265 |
1/1✓ Branch 1 taken 17 times.
|
34 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 266 |
1/1✓ Branch 1 taken 17 times.
|
34 | OS_Coil_Heating_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedDataFields::WasteHeatFunctionofTemperatureCurveName); |
| 267 | } | ||
| 268 | |||
| 269 | ✗ | ModelObject CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::clone(Model model) const { | |
| 270 | ✗ | auto t_clone = ParentObject_Impl::clone(model).cast<CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData>(); | |
| 271 | |||
| 272 | ✗ | return std::move(t_clone); | |
| 273 | ✗ | } | |
| 274 | |||
| 275 | 1 | std::vector<ModelObject> CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl::children() const { | |
| 276 | 1 | std::vector<ModelObject> children; | |
| 277 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | children.push_back(heatingCapacityFunctionofTemperatureCurve()); |
| 278 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | children.push_back(totalHeatingCapacityFunctionofAirFlowFractionCurve()); |
| 279 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | children.push_back(heatingCapacityFunctionofWaterFlowFractionCurve()); |
| 280 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | children.push_back(energyInputRatioFunctionofTemperatureCurve()); |
| 281 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | children.push_back(energyInputRatioFunctionofAirFlowFractionCurve()); |
| 282 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | children.push_back(energyInputRatioFunctionofWaterFlowFractionCurve()); |
| 283 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | children.push_back(wasteHeatFunctionofTemperatureCurve()); |
| 284 | 1 | return children; | |
| 285 | ✗ | } | |
| 286 | |||
| 287 | } // namespace detail | ||
| 288 | |||
| 289 | 14 | CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData(const Model& model) | |
| 290 | 14 | : ParentObject(CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::iddObjectType(), model) { | |
| 291 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 14 times.
✗ Branch 5 not taken.
|
14 | OS_ASSERT(getImpl<detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()); |
| 292 | |||
| 293 |
1/1✓ Branch 1 taken 14 times.
|
14 | CurveBiquadratic heating_curve_1(model); |
| 294 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_1.setCoefficient1Constant(0.617474); |
| 295 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_1.setCoefficient2x(-0.00245669); |
| 296 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_1.setCoefficient3xPOW2(-1.86550E-05); |
| 297 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_1.setCoefficient4y(0.0254921); |
| 298 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_1.setCoefficient5yPOW2(-1.00773E-04); |
| 299 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_1.setCoefficient6xTIMESY(-1.09447E-04); |
| 300 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_1.setMinimumValueofx(7.0); |
| 301 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_1.setMaximumValueofx(27.0); |
| 302 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_1.setMinimumValueofy(10.0); |
| 303 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_1.setMaximumValueofy(30.0); |
| 304 | |||
| 305 |
1/1✓ Branch 1 taken 14 times.
|
14 | CurveQuadratic heating_curve_2(model); |
| 306 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_2.setCoefficient1Constant(1.0); |
| 307 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_2.setCoefficient2x(0.0); |
| 308 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_2.setCoefficient3xPOW2(0.0); |
| 309 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_2.setMinimumValueofx(0.0); |
| 310 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_2.setMaximumValueofx(1.0); |
| 311 | |||
| 312 |
1/1✓ Branch 1 taken 14 times.
|
14 | CurveQuadratic heating_curve_3(model); |
| 313 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_3.setCoefficient1Constant(1.0); |
| 314 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_3.setCoefficient2x(0.0); |
| 315 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_3.setCoefficient3xPOW2(0.0); |
| 316 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_3.setMinimumValueofx(0.0); |
| 317 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_3.setMaximumValueofx(1.0); |
| 318 | |||
| 319 |
1/1✓ Branch 1 taken 14 times.
|
14 | CurveBiquadratic heating_curve_4(model); |
| 320 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_4.setCoefficient1Constant(0.993257); |
| 321 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_4.setCoefficient2x(0.0201512); |
| 322 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_4.setCoefficient3xPOW2(7.72375E-05); |
| 323 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_4.setCoefficient4y(-0.0317207); |
| 324 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_4.setCoefficient5yPOW2(0.000740649); |
| 325 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_4.setCoefficient6xTIMESY(-3.03875E-04); |
| 326 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_4.setMinimumValueofx(7.0); |
| 327 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_4.setMaximumValueofx(27.0); |
| 328 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_4.setMinimumValueofy(10.0); |
| 329 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_4.setMaximumValueofy(30.0); |
| 330 | |||
| 331 |
1/1✓ Branch 1 taken 14 times.
|
14 | CurveQuadratic heating_curve_5(model); |
| 332 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_5.setCoefficient1Constant(1.0); |
| 333 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_5.setCoefficient2x(0.0); |
| 334 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_5.setCoefficient3xPOW2(0.0); |
| 335 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_5.setMinimumValueofx(0.0); |
| 336 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_5.setMaximumValueofx(1.0); |
| 337 | |||
| 338 |
1/1✓ Branch 1 taken 14 times.
|
14 | CurveQuadratic heating_curve_6(model); |
| 339 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_6.setCoefficient1Constant(1.0); |
| 340 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_6.setCoefficient2x(0.0); |
| 341 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_6.setCoefficient3xPOW2(0.0); |
| 342 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_6.setMinimumValueofx(0.0); |
| 343 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_6.setMaximumValueofx(1.0); |
| 344 | |||
| 345 |
1/1✓ Branch 1 taken 14 times.
|
14 | CurveBiquadratic heating_curve_7(model); |
| 346 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_7.setCoefficient1Constant(1.0); |
| 347 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_7.setCoefficient2x(0.0); |
| 348 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_7.setCoefficient3xPOW2(0.0); |
| 349 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_7.setCoefficient4y(0.0); |
| 350 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_7.setCoefficient5yPOW2(0.0); |
| 351 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_7.setCoefficient6xTIMESY(0.0); |
| 352 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_7.setMinimumValueofx(7.0); |
| 353 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_7.setMaximumValueofx(27.0); |
| 354 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_7.setMinimumValueofy(10.0); |
| 355 |
1/1✓ Branch 1 taken 14 times.
|
14 | heating_curve_7.setMaximumValueofy(30.0); |
| 356 | |||
| 357 | 14 | bool ok = true; | |
| 358 |
1/1✓ Branch 1 taken 14 times.
|
14 | ok = setReferenceUnitGrossRatedHeatingCapacity(1838.7); |
| 359 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
|
14 | OS_ASSERT(ok); |
| 360 |
1/1✓ Branch 1 taken 14 times.
|
14 | ok = setReferenceUnitGrossRatedHeatingCOP(5.0); |
| 361 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
|
14 | OS_ASSERT(ok); |
| 362 |
1/1✓ Branch 1 taken 14 times.
|
14 | ok = setReferenceUnitRatedAirFlow(0.1661088); |
| 363 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
|
14 | OS_ASSERT(ok); |
| 364 |
1/1✓ Branch 1 taken 14 times.
|
14 | ok = setReferenceUnitRatedWaterFlowRate(0.000381695); |
| 365 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
|
14 | OS_ASSERT(ok); |
| 366 |
1/1✓ Branch 1 taken 14 times.
|
14 | ok = setReferenceUnitWasteHeatFractionofInputPowerAtRatedConditions(0.1); |
| 367 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
|
14 | OS_ASSERT(ok); |
| 368 |
1/1✓ Branch 1 taken 14 times.
|
14 | ok = setHeatingCapacityFunctionofTemperatureCurve(heating_curve_1); |
| 369 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
|
14 | OS_ASSERT(ok); |
| 370 |
1/1✓ Branch 1 taken 14 times.
|
14 | ok = setTotalHeatingCapacityFunctionofAirFlowFractionCurve(heating_curve_2); |
| 371 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
|
14 | OS_ASSERT(ok); |
| 372 |
1/1✓ Branch 1 taken 14 times.
|
14 | ok = setHeatingCapacityFunctionofWaterFlowFractionCurve(heating_curve_3); |
| 373 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
|
14 | OS_ASSERT(ok); |
| 374 |
1/1✓ Branch 1 taken 14 times.
|
14 | ok = setEnergyInputRatioFunctionofTemperatureCurve(heating_curve_4); |
| 375 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
|
14 | OS_ASSERT(ok); |
| 376 |
1/1✓ Branch 1 taken 14 times.
|
14 | ok = setEnergyInputRatioFunctionofAirFlowFractionCurve(heating_curve_5); |
| 377 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
|
14 | OS_ASSERT(ok); |
| 378 |
1/1✓ Branch 1 taken 14 times.
|
14 | ok = setEnergyInputRatioFunctionofWaterFlowFractionCurve(heating_curve_6); |
| 379 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
|
14 | OS_ASSERT(ok); |
| 380 |
1/1✓ Branch 1 taken 14 times.
|
14 | ok = setWasteHeatFunctionofTemperatureCurve(heating_curve_7); |
| 381 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
|
14 | OS_ASSERT(ok); |
| 382 | 14 | } | |
| 383 | |||
| 384 | ✗ | CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData( | |
| 385 | const Model& model, const Curve& heatingCapacityFunctionofTemperature, const Curve& totalHeatingCapacityFunctionofAirFlowFraction, | ||
| 386 | const Curve& heatingCapacityFunctionofWaterFlowFraction, const Curve& energyInputRatioFunctionofTemperature, | ||
| 387 | const Curve& energyInputRatioFunctionofAirFlowFraction, const Curve& energyInputRatioFunctionofWaterFlowFraction, | ||
| 388 | ✗ | const Curve& wasteHeatFunctionofTemperature) | |
| 389 | ✗ | : ParentObject(CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::iddObjectType(), model) { | |
| 390 | ✗ | OS_ASSERT(getImpl<detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()); | |
| 391 | |||
| 392 | ✗ | bool ok = true; | |
| 393 | ✗ | ok = setReferenceUnitGrossRatedHeatingCapacity(1838.7); | |
| 394 | ✗ | OS_ASSERT(ok); | |
| 395 | ✗ | ok = setReferenceUnitGrossRatedHeatingCOP(5.0); | |
| 396 | ✗ | OS_ASSERT(ok); | |
| 397 | ✗ | ok = setReferenceUnitRatedAirFlow(0.1661088); | |
| 398 | ✗ | OS_ASSERT(ok); | |
| 399 | ✗ | ok = setReferenceUnitRatedWaterFlowRate(0.000381695); | |
| 400 | ✗ | OS_ASSERT(ok); | |
| 401 | ✗ | ok = setReferenceUnitWasteHeatFractionofInputPowerAtRatedConditions(0.1); | |
| 402 | ✗ | OS_ASSERT(ok); | |
| 403 | ✗ | ok = setHeatingCapacityFunctionofTemperatureCurve(heatingCapacityFunctionofTemperature); | |
| 404 | ✗ | OS_ASSERT(ok); | |
| 405 | ✗ | ok = setTotalHeatingCapacityFunctionofAirFlowFractionCurve(totalHeatingCapacityFunctionofAirFlowFraction); | |
| 406 | ✗ | OS_ASSERT(ok); | |
| 407 | ✗ | ok = setHeatingCapacityFunctionofWaterFlowFractionCurve(heatingCapacityFunctionofWaterFlowFraction); | |
| 408 | ✗ | OS_ASSERT(ok); | |
| 409 | ✗ | ok = setEnergyInputRatioFunctionofTemperatureCurve(energyInputRatioFunctionofTemperature); | |
| 410 | ✗ | OS_ASSERT(ok); | |
| 411 | ✗ | ok = setEnergyInputRatioFunctionofAirFlowFractionCurve(energyInputRatioFunctionofAirFlowFraction); | |
| 412 | ✗ | OS_ASSERT(ok); | |
| 413 | ✗ | ok = setEnergyInputRatioFunctionofWaterFlowFractionCurve(energyInputRatioFunctionofWaterFlowFraction); | |
| 414 | ✗ | OS_ASSERT(ok); | |
| 415 | ✗ | ok = setWasteHeatFunctionofTemperatureCurve(wasteHeatFunctionofTemperature); | |
| 416 | ✗ | OS_ASSERT(ok); | |
| 417 | ✗ | } | |
| 418 | |||
| 419 | 7626 | IddObjectType CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::iddObjectType() { | |
| 420 |
1/1✓ Branch 1 taken 7626 times.
|
7626 | return {IddObjectType::OS_Coil_Heating_WaterToAirHeatPump_VariableSpeedEquationFit_SpeedData}; |
| 421 | } | ||
| 422 | |||
| 423 | 14 | double CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::referenceUnitGrossRatedHeatingCapacity() const { | |
| 424 |
1/1✓ Branch 3 taken 14 times.
|
14 | return getImpl<detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->referenceUnitGrossRatedHeatingCapacity(); |
| 425 | } | ||
| 426 | |||
| 427 | 14 | double CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::referenceUnitGrossRatedHeatingCOP() const { | |
| 428 |
1/1✓ Branch 3 taken 14 times.
|
14 | return getImpl<detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->referenceUnitGrossRatedHeatingCOP(); |
| 429 | } | ||
| 430 | |||
| 431 | 26 | double CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::referenceUnitRatedAirFlow() const { | |
| 432 |
1/1✓ Branch 3 taken 26 times.
|
26 | return getImpl<detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->referenceUnitRatedAirFlow(); |
| 433 | } | ||
| 434 | |||
| 435 | 14 | double CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::referenceUnitRatedWaterFlowRate() const { | |
| 436 |
1/1✓ Branch 3 taken 14 times.
|
14 | return getImpl<detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->referenceUnitRatedWaterFlowRate(); |
| 437 | } | ||
| 438 | |||
| 439 | 16 | Curve CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::heatingCapacityFunctionofTemperatureCurve() const { | |
| 440 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->heatingCapacityFunctionofTemperatureCurve(); |
| 441 | } | ||
| 442 | |||
| 443 | 16 | Curve CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::totalHeatingCapacityFunctionofAirFlowFractionCurve() const { | |
| 444 | 32 | return getImpl<detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>() | |
| 445 |
1/1✓ Branch 2 taken 16 times.
|
32 | ->totalHeatingCapacityFunctionofAirFlowFractionCurve(); |
| 446 | } | ||
| 447 | |||
| 448 | 16 | Curve CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::heatingCapacityFunctionofWaterFlowFractionCurve() const { | |
| 449 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->heatingCapacityFunctionofWaterFlowFractionCurve(); |
| 450 | } | ||
| 451 | |||
| 452 | 16 | Curve CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::energyInputRatioFunctionofTemperatureCurve() const { | |
| 453 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->energyInputRatioFunctionofTemperatureCurve(); |
| 454 | } | ||
| 455 | |||
| 456 | 16 | Curve CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::energyInputRatioFunctionofAirFlowFractionCurve() const { | |
| 457 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->energyInputRatioFunctionofAirFlowFractionCurve(); |
| 458 | } | ||
| 459 | |||
| 460 | 16 | Curve CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::energyInputRatioFunctionofWaterFlowFractionCurve() const { | |
| 461 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->energyInputRatioFunctionofWaterFlowFractionCurve(); |
| 462 | } | ||
| 463 | |||
| 464 | 14 | double CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::referenceUnitWasteHeatFractionofInputPowerAtRatedConditions() const { | |
| 465 | 28 | return getImpl<detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>() | |
| 466 |
1/1✓ Branch 2 taken 14 times.
|
28 | ->referenceUnitWasteHeatFractionofInputPowerAtRatedConditions(); |
| 467 | } | ||
| 468 | |||
| 469 | 16 | Curve CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::wasteHeatFunctionofTemperatureCurve() const { | |
| 470 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->wasteHeatFunctionofTemperatureCurve(); |
| 471 | } | ||
| 472 | |||
| 473 | 16 | bool CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::setReferenceUnitGrossRatedHeatingCapacity( | |
| 474 | double referenceUnitGrossRatedHeatingCapacity) { | ||
| 475 |
1/1✓ Branch 3 taken 16 times.
|
32 | return getImpl<detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->setReferenceUnitGrossRatedHeatingCapacity( |
| 476 | 32 | referenceUnitGrossRatedHeatingCapacity); | |
| 477 | } | ||
| 478 | |||
| 479 | bool | ||
| 480 | 16 | CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::setReferenceUnitGrossRatedHeatingCOP(double referenceUnitGrossRatedHeatingCOP) { | |
| 481 |
1/1✓ Branch 3 taken 16 times.
|
32 | return getImpl<detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->setReferenceUnitGrossRatedHeatingCOP( |
| 482 | 32 | referenceUnitGrossRatedHeatingCOP); | |
| 483 | } | ||
| 484 | |||
| 485 | 16 | bool CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::setReferenceUnitRatedAirFlow(double referenceUnitRatedAirFlow) { | |
| 486 |
1/1✓ Branch 3 taken 16 times.
|
32 | return getImpl<detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->setReferenceUnitRatedAirFlow( |
| 487 | 32 | referenceUnitRatedAirFlow); | |
| 488 | } | ||
| 489 | |||
| 490 | 16 | bool CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::setReferenceUnitRatedWaterFlowRate(double referenceUnitRatedWaterFlowRate) { | |
| 491 |
1/1✓ Branch 3 taken 16 times.
|
32 | return getImpl<detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->setReferenceUnitRatedWaterFlowRate( |
| 492 | 32 | referenceUnitRatedWaterFlowRate); | |
| 493 | } | ||
| 494 | |||
| 495 | 14 | bool CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::setHeatingCapacityFunctionofTemperatureCurve(const Curve& curve) { | |
| 496 |
1/1✓ Branch 3 taken 14 times.
|
28 | return getImpl<detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->setHeatingCapacityFunctionofTemperatureCurve( |
| 497 | 28 | curve); | |
| 498 | } | ||
| 499 | |||
| 500 | 14 | bool CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::setTotalHeatingCapacityFunctionofAirFlowFractionCurve(const Curve& curve) { | |
| 501 | 28 | return getImpl<detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>() | |
| 502 |
1/1✓ Branch 2 taken 14 times.
|
28 | ->setTotalHeatingCapacityFunctionofAirFlowFractionCurve(curve); |
| 503 | } | ||
| 504 | |||
| 505 | 14 | bool CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::setHeatingCapacityFunctionofWaterFlowFractionCurve(const Curve& curve) { | |
| 506 |
1/1✓ Branch 3 taken 14 times.
|
28 | return getImpl<detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->setHeatingCapacityFunctionofWaterFlowFractionCurve( |
| 507 | 28 | curve); | |
| 508 | } | ||
| 509 | |||
| 510 | 14 | bool CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::setEnergyInputRatioFunctionofTemperatureCurve(const Curve& curve) { | |
| 511 |
1/1✓ Branch 3 taken 14 times.
|
28 | return getImpl<detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->setEnergyInputRatioFunctionofTemperatureCurve( |
| 512 | 28 | curve); | |
| 513 | } | ||
| 514 | |||
| 515 | 14 | bool CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::setEnergyInputRatioFunctionofAirFlowFractionCurve(const Curve& curve) { | |
| 516 |
1/1✓ Branch 3 taken 14 times.
|
28 | return getImpl<detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->setEnergyInputRatioFunctionofAirFlowFractionCurve( |
| 517 | 28 | curve); | |
| 518 | } | ||
| 519 | |||
| 520 | 14 | bool CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::setEnergyInputRatioFunctionofWaterFlowFractionCurve(const Curve& curve) { | |
| 521 | 28 | return getImpl<detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>() | |
| 522 |
1/1✓ Branch 2 taken 14 times.
|
28 | ->setEnergyInputRatioFunctionofWaterFlowFractionCurve(curve); |
| 523 | } | ||
| 524 | |||
| 525 | 16 | bool CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::setReferenceUnitWasteHeatFractionofInputPowerAtRatedConditions( | |
| 526 | double referenceUnitWasteHeatFractionofInputPowerAtRatedConditions) { | ||
| 527 | 32 | return getImpl<detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>() | |
| 528 |
1/1✓ Branch 2 taken 16 times.
|
32 | ->setReferenceUnitWasteHeatFractionofInputPowerAtRatedConditions(referenceUnitWasteHeatFractionofInputPowerAtRatedConditions); |
| 529 | } | ||
| 530 | |||
| 531 | 14 | bool CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::setWasteHeatFunctionofTemperatureCurve(const Curve& curve) { | |
| 532 |
1/1✓ Branch 3 taken 14 times.
|
14 | return getImpl<detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl>()->setWasteHeatFunctionofTemperatureCurve(curve); |
| 533 | } | ||
| 534 | |||
| 535 | /// @cond | ||
| 536 | 26 | CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData( | |
| 537 | 26 | std::shared_ptr<detail::CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData_Impl> impl) | |
| 538 |
1/1✓ Branch 3 taken 26 times.
|
26 | : ParentObject(std::move(impl)) {} |
| 539 | /// @endcond | ||
| 540 | |||
| 541 | } // namespace model | ||
| 542 | } // namespace openstudio | ||
| 543 |