src/model/CoilHeatingDXVariableSpeedSpeedData.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 "CoilHeatingDXVariableSpeedSpeedData.hpp" | ||
| 7 | #include "CoilHeatingDXVariableSpeedSpeedData_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_DX_VariableSpeed_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 | 7 | CoilHeatingDXVariableSpeedSpeedData_Impl::CoilHeatingDXVariableSpeedSpeedData_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 28 | 7 | : ParentObject_Impl(idfObject, model, keepHandle) { | |
| 29 |
4/6✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 7 times.
✗ Branch 13 not taken.
|
7 | OS_ASSERT(idfObject.iddObject().type() == CoilHeatingDXVariableSpeedSpeedData::iddObjectType()); |
| 30 | 7 | } | |
| 31 | |||
| 32 | 1 | CoilHeatingDXVariableSpeedSpeedData_Impl::CoilHeatingDXVariableSpeedSpeedData_Impl(const openstudio::detail::WorkspaceObject_Impl& other, | |
| 33 | 1 | Model_Impl* model, bool keepHandle) | |
| 34 | 1 | : ParentObject_Impl(other, model, keepHandle) { | |
| 35 |
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() == CoilHeatingDXVariableSpeedSpeedData::iddObjectType()); |
| 36 | 1 | } | |
| 37 | |||
| 38 | 2 | CoilHeatingDXVariableSpeedSpeedData_Impl::CoilHeatingDXVariableSpeedSpeedData_Impl(const CoilHeatingDXVariableSpeedSpeedData_Impl& other, | |
| 39 | 2 | Model_Impl* model, bool keepHandle) | |
| 40 | 2 | : ParentObject_Impl(other, model, keepHandle) {} | |
| 41 | |||
| 42 | ✗ | const std::vector<std::string>& CoilHeatingDXVariableSpeedSpeedData_Impl::outputVariableNames() const { | |
| 43 | ✗ | static const std::vector<std::string> result; | |
| 44 | ✗ | return result; | |
| 45 | } | ||
| 46 | |||
| 47 | ✗ | IddObjectType CoilHeatingDXVariableSpeedSpeedData_Impl::iddObjectType() const { | |
| 48 | ✗ | return CoilHeatingDXVariableSpeedSpeedData::iddObjectType(); | |
| 49 | } | ||
| 50 | |||
| 51 | 4 | double CoilHeatingDXVariableSpeedSpeedData_Impl::referenceUnitGrossRatedHeatingCapacity() const { | |
| 52 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Coil_Heating_DX_VariableSpeed_SpeedDataFields::ReferenceUnitGrossRatedHeatingCapacity, true); |
| 53 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 54 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 55 | } | ||
| 56 | |||
| 57 | 4 | double CoilHeatingDXVariableSpeedSpeedData_Impl::referenceUnitGrossRatedHeatingCOP() const { | |
| 58 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Coil_Heating_DX_VariableSpeed_SpeedDataFields::ReferenceUnitGrossRatedHeatingCOP, true); |
| 59 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 60 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 61 | } | ||
| 62 | |||
| 63 | 4 | double CoilHeatingDXVariableSpeedSpeedData_Impl::referenceUnitRatedAirFlowRate() const { | |
| 64 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Coil_Heating_DX_VariableSpeed_SpeedDataFields::ReferenceUnitRatedAirFlowRate, true); |
| 65 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 66 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 67 | } | ||
| 68 | |||
| 69 | 7 | Curve CoilHeatingDXVariableSpeedSpeedData_Impl::heatingCapacityFunctionofTemperatureCurve() const { | |
| 70 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<Curve> value = optionalHeatingCapacityFunctionofTemperatureCurve(); |
| 71 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
|
7 | if (!value) { |
| 72 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Heating Capacity Functionof Temperature Curve attached."); | |
| 73 | } | ||
| 74 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
14 | return value.get(); |
| 75 | 7 | } | |
| 76 | |||
| 77 | 7 | Curve CoilHeatingDXVariableSpeedSpeedData_Impl::totalHeatingCapacityFunctionofAirFlowFractionCurve() const { | |
| 78 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<Curve> value = optionalTotalHeatingCapacityFunctionofAirFlowFractionCurve(); |
| 79 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
|
7 | if (!value) { |
| 80 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Total Heating Capacity Functionof Air Flow Fraction Curve attached."); | |
| 81 | } | ||
| 82 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
14 | return value.get(); |
| 83 | 7 | } | |
| 84 | |||
| 85 | 7 | Curve CoilHeatingDXVariableSpeedSpeedData_Impl::energyInputRatioFunctionofTemperatureCurve() const { | |
| 86 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<Curve> value = optionalEnergyInputRatioFunctionofTemperatureCurve(); |
| 87 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
|
7 | if (!value) { |
| 88 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Energy Input Ratio Functionof Temperature Curve attached."); | |
| 89 | } | ||
| 90 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
14 | return value.get(); |
| 91 | 7 | } | |
| 92 | |||
| 93 | 7 | Curve CoilHeatingDXVariableSpeedSpeedData_Impl::energyInputRatioFunctionofAirFlowFractionCurve() const { | |
| 94 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<Curve> value = optionalEnergyInputRatioFunctionofAirFlowFractionCurve(); |
| 95 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
|
7 | if (!value) { |
| 96 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Energy Input Ratio Functionof Air Flow Fraction Curve attached."); | |
| 97 | } | ||
| 98 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
14 | return value.get(); |
| 99 | 7 | } | |
| 100 | |||
| 101 | 8 | bool CoilHeatingDXVariableSpeedSpeedData_Impl::setReferenceUnitGrossRatedHeatingCapacity(double referenceUnitGrossRatedHeatingCapacity) { | |
| 102 | bool result = | ||
| 103 | 8 | setDouble(OS_Coil_Heating_DX_VariableSpeed_SpeedDataFields::ReferenceUnitGrossRatedHeatingCapacity, referenceUnitGrossRatedHeatingCapacity); | |
| 104 | 8 | return result; | |
| 105 | } | ||
| 106 | |||
| 107 | 8 | bool CoilHeatingDXVariableSpeedSpeedData_Impl::setReferenceUnitGrossRatedHeatingCOP(double referenceUnitGrossRatedHeatingCOP) { | |
| 108 | 8 | bool result = setDouble(OS_Coil_Heating_DX_VariableSpeed_SpeedDataFields::ReferenceUnitGrossRatedHeatingCOP, referenceUnitGrossRatedHeatingCOP); | |
| 109 | 8 | return result; | |
| 110 | } | ||
| 111 | |||
| 112 | 8 | bool CoilHeatingDXVariableSpeedSpeedData_Impl::setReferenceUnitRatedAirFlowRate(double referenceUnitRatedAirFlowRate) { | |
| 113 | 8 | bool result = setDouble(OS_Coil_Heating_DX_VariableSpeed_SpeedDataFields::ReferenceUnitRatedAirFlowRate, referenceUnitRatedAirFlowRate); | |
| 114 | 8 | return result; | |
| 115 | } | ||
| 116 | |||
| 117 | 6 | bool CoilHeatingDXVariableSpeedSpeedData_Impl::setHeatingCapacityFunctionofTemperatureCurve(const Curve& curve) { | |
| 118 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | bool result = setPointer(OS_Coil_Heating_DX_VariableSpeed_SpeedDataFields::HeatingCapacityFunctionofTemperatureCurveName, curve.handle()); |
| 119 | 6 | return result; | |
| 120 | } | ||
| 121 | |||
| 122 | 6 | bool CoilHeatingDXVariableSpeedSpeedData_Impl::setTotalHeatingCapacityFunctionofAirFlowFractionCurve(const Curve& curve) { | |
| 123 | bool result = | ||
| 124 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setPointer(OS_Coil_Heating_DX_VariableSpeed_SpeedDataFields::TotalHeatingCapacityFunctionofAirFlowFractionCurveName, curve.handle()); |
| 125 | 6 | return result; | |
| 126 | } | ||
| 127 | |||
| 128 | 6 | bool CoilHeatingDXVariableSpeedSpeedData_Impl::setEnergyInputRatioFunctionofTemperatureCurve(const Curve& curve) { | |
| 129 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | bool result = setPointer(OS_Coil_Heating_DX_VariableSpeed_SpeedDataFields::EnergyInputRatioFunctionofTemperatureCurveName, curve.handle()); |
| 130 | 6 | return result; | |
| 131 | } | ||
| 132 | |||
| 133 | 6 | bool CoilHeatingDXVariableSpeedSpeedData_Impl::setEnergyInputRatioFunctionofAirFlowFractionCurve(const Curve& curve) { | |
| 134 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | bool result = setPointer(OS_Coil_Heating_DX_VariableSpeed_SpeedDataFields::EnergyInputRatioFunctionofAirFlowFractionCurveName, curve.handle()); |
| 135 | 6 | return result; | |
| 136 | } | ||
| 137 | |||
| 138 | 4 | double CoilHeatingDXVariableSpeedSpeedData_Impl::ratedSupplyFanPowerPerVolumeFlowRate2017() const { | |
| 139 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Coil_Heating_DX_VariableSpeed_SpeedDataFields::RatedSupplyAirFanPowerPerVolumeFlowRate2017, true); |
| 140 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 141 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 142 | } | ||
| 143 | |||
| 144 | 8 | bool CoilHeatingDXVariableSpeedSpeedData_Impl::setRatedSupplyFanPowerPerVolumeFlowRate2017(double ratedSupplyFanPowerPerVolumeFlowRate2017) { | |
| 145 | 8 | const bool result = setDouble(OS_Coil_Heating_DX_VariableSpeed_SpeedDataFields::RatedSupplyAirFanPowerPerVolumeFlowRate2017, | |
| 146 | ratedSupplyFanPowerPerVolumeFlowRate2017); | ||
| 147 | 8 | return result; | |
| 148 | } | ||
| 149 | |||
| 150 | 4 | double CoilHeatingDXVariableSpeedSpeedData_Impl::ratedSupplyFanPowerPerVolumeFlowRate2023() const { | |
| 151 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Coil_Heating_DX_VariableSpeed_SpeedDataFields::RatedSupplyAirFanPowerPerVolumeFlowRate2023, true); |
| 152 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 153 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 154 | } | ||
| 155 | |||
| 156 | 8 | bool CoilHeatingDXVariableSpeedSpeedData_Impl::setRatedSupplyFanPowerPerVolumeFlowRate2023(double ratedSupplyFanPowerPerVolumeFlowRate2023) { | |
| 157 | 8 | const bool result = setDouble(OS_Coil_Heating_DX_VariableSpeed_SpeedDataFields::RatedSupplyAirFanPowerPerVolumeFlowRate2023, | |
| 158 | ratedSupplyFanPowerPerVolumeFlowRate2023); | ||
| 159 | 8 | return result; | |
| 160 | } | ||
| 161 | |||
| 162 | 7 | boost::optional<Curve> CoilHeatingDXVariableSpeedSpeedData_Impl::optionalHeatingCapacityFunctionofTemperatureCurve() const { | |
| 163 |
1/1✓ Branch 1 taken 7 times.
|
14 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 164 |
1/1✓ Branch 1 taken 7 times.
|
14 | OS_Coil_Heating_DX_VariableSpeed_SpeedDataFields::HeatingCapacityFunctionofTemperatureCurveName); |
| 165 | } | ||
| 166 | |||
| 167 | 7 | boost::optional<Curve> CoilHeatingDXVariableSpeedSpeedData_Impl::optionalTotalHeatingCapacityFunctionofAirFlowFractionCurve() const { | |
| 168 |
1/1✓ Branch 1 taken 7 times.
|
14 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 169 |
1/1✓ Branch 1 taken 7 times.
|
14 | OS_Coil_Heating_DX_VariableSpeed_SpeedDataFields::TotalHeatingCapacityFunctionofAirFlowFractionCurveName); |
| 170 | } | ||
| 171 | |||
| 172 | 7 | boost::optional<Curve> CoilHeatingDXVariableSpeedSpeedData_Impl::optionalEnergyInputRatioFunctionofTemperatureCurve() const { | |
| 173 |
1/1✓ Branch 1 taken 7 times.
|
14 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 174 |
1/1✓ Branch 1 taken 7 times.
|
14 | OS_Coil_Heating_DX_VariableSpeed_SpeedDataFields::EnergyInputRatioFunctionofTemperatureCurveName); |
| 175 | } | ||
| 176 | |||
| 177 | 7 | boost::optional<Curve> CoilHeatingDXVariableSpeedSpeedData_Impl::optionalEnergyInputRatioFunctionofAirFlowFractionCurve() const { | |
| 178 |
1/1✓ Branch 1 taken 7 times.
|
14 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 179 |
1/1✓ Branch 1 taken 7 times.
|
14 | OS_Coil_Heating_DX_VariableSpeed_SpeedDataFields::EnergyInputRatioFunctionofAirFlowFractionCurveName); |
| 180 | } | ||
| 181 | |||
| 182 | ✗ | ModelObject CoilHeatingDXVariableSpeedSpeedData_Impl::clone(Model model) const { | |
| 183 | ✗ | auto t_clone = ParentObject_Impl::clone(model).cast<CoilHeatingDXVariableSpeedSpeedData>(); | |
| 184 | |||
| 185 | ✗ | return std::move(t_clone); | |
| 186 | ✗ | } | |
| 187 | |||
| 188 | 1 | std::vector<ModelObject> CoilHeatingDXVariableSpeedSpeedData_Impl::children() const { | |
| 189 | 1 | std::vector<ModelObject> children; | |
| 190 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | children.push_back(heatingCapacityFunctionofTemperatureCurve()); |
| 191 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | children.push_back(totalHeatingCapacityFunctionofAirFlowFractionCurve()); |
| 192 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | children.push_back(energyInputRatioFunctionofTemperatureCurve()); |
| 193 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | children.push_back(energyInputRatioFunctionofAirFlowFractionCurve()); |
| 194 | 1 | return children; | |
| 195 | ✗ | } | |
| 196 | |||
| 197 | } // namespace detail | ||
| 198 | |||
| 199 | 6 | CoilHeatingDXVariableSpeedSpeedData::CoilHeatingDXVariableSpeedSpeedData(const Model& model) | |
| 200 | 6 | : ParentObject(CoilHeatingDXVariableSpeedSpeedData::iddObjectType(), model) { | |
| 201 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 6 times.
✗ Branch 5 not taken.
|
6 | OS_ASSERT(getImpl<detail::CoilHeatingDXVariableSpeedSpeedData_Impl>()); |
| 202 | |||
| 203 |
1/1✓ Branch 1 taken 6 times.
|
6 | CurveBiquadratic heating_curve_1(model); |
| 204 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_1.setCoefficient1Constant(0.8406506803); |
| 205 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_1.setCoefficient2x(-0.000083433); |
| 206 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_1.setCoefficient3xPOW2(-0.0000683822); |
| 207 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_1.setCoefficient4y(0.0234244981); |
| 208 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_1.setCoefficient5yPOW2(0.000176366); |
| 209 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_1.setCoefficient6xTIMESY(-0.0000901777); |
| 210 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_1.setMinimumValueofx(17.78); |
| 211 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_1.setMaximumValueofx(23.33); |
| 212 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_1.setMinimumValueofy(-30.56); |
| 213 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_1.setMaximumValueofy(17.22); |
| 214 | |||
| 215 |
1/1✓ Branch 1 taken 6 times.
|
6 | CurveQuadratic heating_curve_2(model); |
| 216 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_2.setCoefficient1Constant(1.0); |
| 217 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_2.setCoefficient2x(0.0); |
| 218 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_2.setCoefficient3xPOW2(0.0); |
| 219 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_2.setMinimumValueofx(0.5); |
| 220 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_2.setMaximumValueofx(1.5); |
| 221 | |||
| 222 |
1/1✓ Branch 1 taken 6 times.
|
6 | CurveBiquadratic heating_curve_3(model); |
| 223 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_3.setCoefficient1Constant(0.9172082199); |
| 224 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_3.setCoefficient2x(-0.0116036212); |
| 225 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_3.setCoefficient3xPOW2(0.0010074804); |
| 226 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_3.setCoefficient4y(-0.0089288423); |
| 227 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_3.setCoefficient5yPOW2(0.0009349133); |
| 228 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_3.setCoefficient6xTIMESY(-0.0009326244); |
| 229 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_3.setMinimumValueofx(17.78); |
| 230 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_3.setMaximumValueofx(23.33); |
| 231 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_3.setMinimumValueofy(-30.56); |
| 232 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_3.setMaximumValueofy(17.22); |
| 233 | |||
| 234 |
1/1✓ Branch 1 taken 6 times.
|
6 | CurveQuadratic heating_curve_4(model); |
| 235 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_4.setCoefficient1Constant(1.0); |
| 236 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_4.setCoefficient2x(0.0); |
| 237 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_4.setCoefficient3xPOW2(0.0); |
| 238 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_4.setMinimumValueofx(0.5); |
| 239 |
1/1✓ Branch 1 taken 6 times.
|
6 | heating_curve_4.setMaximumValueofx(1.5); |
| 240 | |||
| 241 | 6 | bool ok = true; | |
| 242 |
1/1✓ Branch 1 taken 6 times.
|
6 | ok = setReferenceUnitGrossRatedHeatingCapacity(9124.853458); |
| 243 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
✗ Branch 3 not taken.
|
6 | OS_ASSERT(ok); |
| 244 |
1/1✓ Branch 1 taken 6 times.
|
6 | ok = setReferenceUnitGrossRatedHeatingCOP(4.29731); |
| 245 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
✗ Branch 3 not taken.
|
6 | OS_ASSERT(ok); |
| 246 |
1/1✓ Branch 1 taken 6 times.
|
6 | ok = setReferenceUnitRatedAirFlowRate(0.653); |
| 247 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
✗ Branch 3 not taken.
|
6 | OS_ASSERT(ok); |
| 248 |
1/1✓ Branch 1 taken 6 times.
|
6 | ok = setRatedSupplyFanPowerPerVolumeFlowRate2017(773.3); |
| 249 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
✗ Branch 3 not taken.
|
6 | OS_ASSERT(ok); |
| 250 |
1/1✓ Branch 1 taken 6 times.
|
6 | ok = setRatedSupplyFanPowerPerVolumeFlowRate2023(934.4); |
| 251 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
✗ Branch 3 not taken.
|
6 | OS_ASSERT(ok); |
| 252 |
1/1✓ Branch 1 taken 6 times.
|
6 | ok = setHeatingCapacityFunctionofTemperatureCurve(heating_curve_1); |
| 253 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
✗ Branch 3 not taken.
|
6 | OS_ASSERT(ok); |
| 254 |
1/1✓ Branch 1 taken 6 times.
|
6 | ok = setTotalHeatingCapacityFunctionofAirFlowFractionCurve(heating_curve_2); |
| 255 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
✗ Branch 3 not taken.
|
6 | OS_ASSERT(ok); |
| 256 |
1/1✓ Branch 1 taken 6 times.
|
6 | ok = setEnergyInputRatioFunctionofTemperatureCurve(heating_curve_3); |
| 257 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
✗ Branch 3 not taken.
|
6 | OS_ASSERT(ok); |
| 258 |
1/1✓ Branch 1 taken 6 times.
|
6 | ok = setEnergyInputRatioFunctionofAirFlowFractionCurve(heating_curve_4); |
| 259 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
✗ Branch 3 not taken.
|
6 | OS_ASSERT(ok); |
| 260 | 6 | } | |
| 261 | |||
| 262 | ✗ | CoilHeatingDXVariableSpeedSpeedData::CoilHeatingDXVariableSpeedSpeedData(const Model& model, const Curve& heatingCapacityFunctionofTemperatureCurve, | |
| 263 | const Curve& totalHeatingCapacityFunctionofAirFlowFractionCurve, | ||
| 264 | const Curve& energyInputRatioFunctionofTemperatureCurve, | ||
| 265 | ✗ | const Curve& energyInputRatioFunctionofAirFlowFractionCurve) | |
| 266 | ✗ | : ParentObject(CoilHeatingDXVariableSpeedSpeedData::iddObjectType(), model) { | |
| 267 | ✗ | OS_ASSERT(getImpl<detail::CoilHeatingDXVariableSpeedSpeedData_Impl>()); | |
| 268 | |||
| 269 | ✗ | bool ok = true; | |
| 270 | ✗ | ok = setReferenceUnitGrossRatedHeatingCapacity(9124.853458); | |
| 271 | ✗ | OS_ASSERT(ok); | |
| 272 | ✗ | ok = setReferenceUnitGrossRatedHeatingCOP(4.29731); | |
| 273 | ✗ | OS_ASSERT(ok); | |
| 274 | ✗ | ok = setReferenceUnitRatedAirFlowRate(0.653); | |
| 275 | ✗ | OS_ASSERT(ok); | |
| 276 | ✗ | ok = setRatedSupplyFanPowerPerVolumeFlowRate2017(773.3); | |
| 277 | ✗ | OS_ASSERT(ok); | |
| 278 | ✗ | ok = setRatedSupplyFanPowerPerVolumeFlowRate2023(934.4); | |
| 279 | ✗ | OS_ASSERT(ok); | |
| 280 | ✗ | ok = setHeatingCapacityFunctionofTemperatureCurve(heatingCapacityFunctionofTemperatureCurve); | |
| 281 | ✗ | OS_ASSERT(ok); | |
| 282 | ✗ | ok = setTotalHeatingCapacityFunctionofAirFlowFractionCurve(totalHeatingCapacityFunctionofAirFlowFractionCurve); | |
| 283 | ✗ | OS_ASSERT(ok); | |
| 284 | ✗ | ok = setEnergyInputRatioFunctionofTemperatureCurve(energyInputRatioFunctionofTemperatureCurve); | |
| 285 | ✗ | OS_ASSERT(ok); | |
| 286 | ✗ | ok = setEnergyInputRatioFunctionofAirFlowFractionCurve(energyInputRatioFunctionofAirFlowFractionCurve); | |
| 287 | ✗ | OS_ASSERT(ok); | |
| 288 | ✗ | } | |
| 289 | |||
| 290 | 7612 | IddObjectType CoilHeatingDXVariableSpeedSpeedData::iddObjectType() { | |
| 291 |
1/1✓ Branch 1 taken 7612 times.
|
7612 | return {IddObjectType::OS_Coil_Heating_DX_VariableSpeed_SpeedData}; |
| 292 | } | ||
| 293 | |||
| 294 | 4 | double CoilHeatingDXVariableSpeedSpeedData::referenceUnitGrossRatedHeatingCapacity() const { | |
| 295 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::CoilHeatingDXVariableSpeedSpeedData_Impl>()->referenceUnitGrossRatedHeatingCapacity(); |
| 296 | } | ||
| 297 | |||
| 298 | 4 | double CoilHeatingDXVariableSpeedSpeedData::referenceUnitGrossRatedHeatingCOP() const { | |
| 299 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::CoilHeatingDXVariableSpeedSpeedData_Impl>()->referenceUnitGrossRatedHeatingCOP(); |
| 300 | } | ||
| 301 | |||
| 302 | 4 | double CoilHeatingDXVariableSpeedSpeedData::referenceUnitRatedAirFlowRate() const { | |
| 303 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::CoilHeatingDXVariableSpeedSpeedData_Impl>()->referenceUnitRatedAirFlowRate(); |
| 304 | } | ||
| 305 | |||
| 306 | 6 | Curve CoilHeatingDXVariableSpeedSpeedData::heatingCapacityFunctionofTemperatureCurve() const { | |
| 307 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::CoilHeatingDXVariableSpeedSpeedData_Impl>()->heatingCapacityFunctionofTemperatureCurve(); |
| 308 | } | ||
| 309 | |||
| 310 | 6 | Curve CoilHeatingDXVariableSpeedSpeedData::totalHeatingCapacityFunctionofAirFlowFractionCurve() const { | |
| 311 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::CoilHeatingDXVariableSpeedSpeedData_Impl>()->totalHeatingCapacityFunctionofAirFlowFractionCurve(); |
| 312 | } | ||
| 313 | |||
| 314 | 6 | Curve CoilHeatingDXVariableSpeedSpeedData::energyInputRatioFunctionofTemperatureCurve() const { | |
| 315 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::CoilHeatingDXVariableSpeedSpeedData_Impl>()->energyInputRatioFunctionofTemperatureCurve(); |
| 316 | } | ||
| 317 | |||
| 318 | 6 | Curve CoilHeatingDXVariableSpeedSpeedData::energyInputRatioFunctionofAirFlowFractionCurve() const { | |
| 319 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::CoilHeatingDXVariableSpeedSpeedData_Impl>()->energyInputRatioFunctionofAirFlowFractionCurve(); |
| 320 | } | ||
| 321 | |||
| 322 | 8 | bool CoilHeatingDXVariableSpeedSpeedData::setReferenceUnitGrossRatedHeatingCapacity(double referenceUnitGrossRatedHeatingCapacity) { | |
| 323 |
1/1✓ Branch 3 taken 8 times.
|
16 | return getImpl<detail::CoilHeatingDXVariableSpeedSpeedData_Impl>()->setReferenceUnitGrossRatedHeatingCapacity( |
| 324 | 16 | referenceUnitGrossRatedHeatingCapacity); | |
| 325 | } | ||
| 326 | |||
| 327 | 8 | bool CoilHeatingDXVariableSpeedSpeedData::setReferenceUnitGrossRatedHeatingCOP(double referenceUnitGrossRatedHeatingCOP) { | |
| 328 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::CoilHeatingDXVariableSpeedSpeedData_Impl>()->setReferenceUnitGrossRatedHeatingCOP(referenceUnitGrossRatedHeatingCOP); |
| 329 | } | ||
| 330 | |||
| 331 | 8 | bool CoilHeatingDXVariableSpeedSpeedData::setReferenceUnitRatedAirFlowRate(double referenceUnitRatedAirFlowRate) { | |
| 332 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::CoilHeatingDXVariableSpeedSpeedData_Impl>()->setReferenceUnitRatedAirFlowRate(referenceUnitRatedAirFlowRate); |
| 333 | } | ||
| 334 | |||
| 335 | 6 | bool CoilHeatingDXVariableSpeedSpeedData::setHeatingCapacityFunctionofTemperatureCurve(const Curve& curve) { | |
| 336 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::CoilHeatingDXVariableSpeedSpeedData_Impl>()->setHeatingCapacityFunctionofTemperatureCurve(curve); |
| 337 | } | ||
| 338 | |||
| 339 | 6 | bool CoilHeatingDXVariableSpeedSpeedData::setTotalHeatingCapacityFunctionofAirFlowFractionCurve(const Curve& curve) { | |
| 340 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::CoilHeatingDXVariableSpeedSpeedData_Impl>()->setTotalHeatingCapacityFunctionofAirFlowFractionCurve(curve); |
| 341 | } | ||
| 342 | |||
| 343 | 6 | bool CoilHeatingDXVariableSpeedSpeedData::setEnergyInputRatioFunctionofTemperatureCurve(const Curve& curve) { | |
| 344 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::CoilHeatingDXVariableSpeedSpeedData_Impl>()->setEnergyInputRatioFunctionofTemperatureCurve(curve); |
| 345 | } | ||
| 346 | |||
| 347 | 6 | bool CoilHeatingDXVariableSpeedSpeedData::setEnergyInputRatioFunctionofAirFlowFractionCurve(const Curve& curve) { | |
| 348 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::CoilHeatingDXVariableSpeedSpeedData_Impl>()->setEnergyInputRatioFunctionofAirFlowFractionCurve(curve); |
| 349 | } | ||
| 350 | |||
| 351 | 4 | double CoilHeatingDXVariableSpeedSpeedData::ratedSupplyFanPowerPerVolumeFlowRate2017() const { | |
| 352 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::CoilHeatingDXVariableSpeedSpeedData_Impl>()->ratedSupplyFanPowerPerVolumeFlowRate2017(); |
| 353 | } | ||
| 354 | |||
| 355 | 8 | bool CoilHeatingDXVariableSpeedSpeedData::setRatedSupplyFanPowerPerVolumeFlowRate2017(double ratedSupplyFanPowerPerVolumeFlowRate2017) { | |
| 356 |
1/1✓ Branch 3 taken 8 times.
|
16 | return getImpl<detail::CoilHeatingDXVariableSpeedSpeedData_Impl>()->setRatedSupplyFanPowerPerVolumeFlowRate2017( |
| 357 | 16 | ratedSupplyFanPowerPerVolumeFlowRate2017); | |
| 358 | } | ||
| 359 | |||
| 360 | 4 | double CoilHeatingDXVariableSpeedSpeedData::ratedSupplyFanPowerPerVolumeFlowRate2023() const { | |
| 361 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::CoilHeatingDXVariableSpeedSpeedData_Impl>()->ratedSupplyFanPowerPerVolumeFlowRate2023(); |
| 362 | } | ||
| 363 | |||
| 364 | 8 | bool CoilHeatingDXVariableSpeedSpeedData::setRatedSupplyFanPowerPerVolumeFlowRate2023(double ratedSupplyFanPowerPerVolumeFlowRate2023) { | |
| 365 |
1/1✓ Branch 3 taken 8 times.
|
16 | return getImpl<detail::CoilHeatingDXVariableSpeedSpeedData_Impl>()->setRatedSupplyFanPowerPerVolumeFlowRate2023( |
| 366 | 16 | ratedSupplyFanPowerPerVolumeFlowRate2023); | |
| 367 | } | ||
| 368 | |||
| 369 | /// @cond | ||
| 370 | 12 | CoilHeatingDXVariableSpeedSpeedData::CoilHeatingDXVariableSpeedSpeedData(std::shared_ptr<detail::CoilHeatingDXVariableSpeedSpeedData_Impl> impl) | |
| 371 |
1/1✓ Branch 3 taken 12 times.
|
12 | : ParentObject(std::move(impl)) {} |
| 372 | /// @endcond | ||
| 373 | |||
| 374 | } // namespace model | ||
| 375 | } // namespace openstudio | ||
| 376 |