src/energyplus/ForwardTranslator/ForwardTranslateCoilWaterHeatingAirToWaterHeatPumpVariableSpeed.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 "../ForwardTranslator.hpp" | ||
| 7 | #include "../../model/Model.hpp" | ||
| 8 | #include "../../model/CoilWaterHeatingAirToWaterHeatPumpVariableSpeed.hpp" | ||
| 9 | #include "../../model/CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData.hpp" | ||
| 10 | #include "../../model/Curve.hpp" | ||
| 11 | #include "../../model/Schedule.hpp" | ||
| 12 | #include "../../model/Schedule_Impl.hpp" | ||
| 13 | |||
| 14 | #include <utilities/idd/Coil_WaterHeating_AirToWaterHeatPump_VariableSpeed_FieldEnums.hxx> | ||
| 15 | #include "../../utilities/idd/IddEnums.hpp" | ||
| 16 | #include <utilities/idd/IddEnums.hxx> | ||
| 17 | #include <utilities/idd/IddFactory.hxx> | ||
| 18 | #include "../../utilities/idf/IdfExtensibleGroup.hpp" | ||
| 19 | |||
| 20 | using namespace openstudio::model; | ||
| 21 | using namespace std; | ||
| 22 | |||
| 23 | namespace openstudio { | ||
| 24 | |||
| 25 | namespace energyplus { | ||
| 26 | |||
| 27 | boost::optional<IdfObject> | ||
| 28 | 5 | ForwardTranslator::translateCoilWaterHeatingAirToWaterHeatPumpVariableSpeed(CoilWaterHeatingAirToWaterHeatPumpVariableSpeed& modelObject) { | |
| 29 | |||
| 30 | 5 | boost::optional<std::string> s; | |
| 31 | 5 | boost::optional<double> value; | |
| 32 | |||
| 33 |
1/1✓ Branch 1 taken 5 times.
|
5 | auto const speeds = modelObject.speeds(); |
| 34 | 5 | auto numSpeeds = speeds.size(); | |
| 35 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 5 times.
|
5 | if (numSpeeds == 0) { |
| 36 | ✗ | LOG(Warn, "CoilWaterHeatingAirToWaterHeatPumpVariableSpeed " << modelObject.name().get() << " has no speeds, it will not be translated."); | |
| 37 | ✗ | return boost::none; | |
| 38 | } | ||
| 39 | |||
| 40 | // Name and register | ||
| 41 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | IdfObject idfObject = createRegisterAndNameIdfObject(openstudio::IddObjectType::Coil_WaterHeating_AirToWaterHeatPump_VariableSpeed, modelObject); |
| 42 | |||
| 43 | // AvailabilityScheduleName | ||
| 44 | { | ||
| 45 |
1/1✓ Branch 1 taken 5 times.
|
5 | auto schedule = modelObject.availabilitySchedule(); |
| 46 |
2/3✓ Branch 1 taken 5 times.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
|
10 | if (boost::optional<IdfObject> _schedule = translateAndMapModelObject(schedule)) { |
| 47 |
4/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✓ Branch 10 taken 5 times.
|
5 | idfObject.setString(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedFields::AvailabilityScheduleName, _schedule->name().get()); |
| 48 | 5 | } | |
| 49 | 5 | } | |
| 50 | |||
| 51 | // Nominal Speed Level | ||
| 52 |
2/3✓ Branch 1 taken 5 times.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
|
5 | if (auto speedLevel = modelObject.nominalSpeedLevel()) { |
| 53 |
1/1✓ Branch 1 taken 5 times.
|
5 | idfObject.setInt(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedFields::NominalSpeedLevel, speedLevel); |
| 54 | } | ||
| 55 | |||
| 56 | // Rated Water Heating Capacity | ||
| 57 |
3/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✗ Branch 8 not taken.
|
10 | if ((value = modelObject.ratedWaterHeatingCapacity())) { |
| 58 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | idfObject.setDouble(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedFields::RatedWaterHeatingCapacity, value.get()); |
| 59 | } | ||
| 60 | |||
| 61 | // Rated Evaporator Inlet Air Dry-Bulb Temperatur | ||
| 62 |
3/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✗ Branch 8 not taken.
|
10 | if ((value = modelObject.ratedEvaporatorInletAirDryBulbTemperature())) { |
| 63 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | idfObject.setDouble(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedFields::RatedEvaporatorInletAirDryBulbTemperature, value.get()); |
| 64 | } | ||
| 65 | |||
| 66 | // Rated Evaporator Inlet Air Wet-Bulb Temperature | ||
| 67 |
3/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✗ Branch 8 not taken.
|
10 | if ((value = modelObject.ratedEvaporatorInletAirWetBulbTemperature())) { |
| 68 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | idfObject.setDouble(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedFields::RatedEvaporatorInletAirWetBulbTemperature, value.get()); |
| 69 | } | ||
| 70 | |||
| 71 | // Rated Condenser Inlet Water Temperature | ||
| 72 |
3/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✗ Branch 8 not taken.
|
10 | if ((value = modelObject.ratedCondenserInletWaterTemperature())) { |
| 73 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | idfObject.setDouble(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedFields::RatedCondenserInletWaterTemperature, value.get()); |
| 74 | } | ||
| 75 | |||
| 76 | // Rated Evaporator Air Flow Rate | ||
| 77 |
2/3✓ Branch 1 taken 5 times.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
|
5 | if (modelObject.isRatedEvaporatorAirFlowRateAutocalculated()) { |
| 78 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
10 | idfObject.setString(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedFields::RatedEvaporatorAirFlowRate, "autocalculate"); |
| 79 | ✗ | } else if ((value = modelObject.ratedEvaporatorAirFlowRate())) { | |
| 80 | ✗ | idfObject.setDouble(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedFields::RatedEvaporatorAirFlowRate, value.get()); | |
| 81 | } | ||
| 82 | |||
| 83 | // Rated Condenser Water Flow Rate | ||
| 84 |
2/3✓ Branch 1 taken 5 times.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
|
5 | if (modelObject.isRatedCondenserWaterFlowRateAutocalculated()) { |
| 85 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
10 | idfObject.setString(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedFields::RatedCondenserWaterFlowRate, "autocalculate"); |
| 86 | ✗ | } else if ((value = modelObject.ratedCondenserWaterFlowRate())) { | |
| 87 | ✗ | idfObject.setDouble(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedFields::RatedCondenserWaterFlowRate, value.get()); | |
| 88 | } | ||
| 89 | |||
| 90 | // Evaporator Fan Power Included in Rated COP | ||
| 91 |
3/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 8 taken 5 times.
✗ Branch 9 not taken.
|
10 | if ((s = modelObject.evaporatorFanPowerIncludedinRatedCOP())) { |
| 92 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | idfObject.setString(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedFields::EvaporatorFanPowerIncludedinRatedCOP, s.get()); |
| 93 | } | ||
| 94 | |||
| 95 | // Condenser Pump Power Included in Rated COP | ||
| 96 |
3/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 8 taken 5 times.
✗ Branch 9 not taken.
|
10 | if ((s = modelObject.condenserPumpPowerIncludedinRatedCOP())) { |
| 97 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | idfObject.setString(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedFields::CondenserPumpPowerIncludedinRatedCOP, s.get()); |
| 98 | } | ||
| 99 | |||
| 100 | // Condenser Pump Heat Included in Rated Heating Capacity and Rated COP | ||
| 101 |
3/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 8 taken 5 times.
✗ Branch 9 not taken.
|
10 | if ((s = modelObject.condenserPumpHeatIncludedinRatedHeatingCapacityandRatedCOP())) { |
| 102 | 5 | idfObject.setString(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedFields::CondenserPumpHeatIncludedinRatedHeatingCapacityandRatedCOP, | |
| 103 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | s.get()); |
| 104 | } | ||
| 105 | |||
| 106 | // Fraction of Condenser Pump Heat to Water | ||
| 107 |
3/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✗ Branch 8 not taken.
|
10 | if ((value = modelObject.fractionofCondenserPumpHeattoWater())) { |
| 108 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | idfObject.setDouble(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedFields::FractionofCondenserPumpHeattoWater, value.get()); |
| 109 | } | ||
| 110 | |||
| 111 | // Crankcase Heater Capacity | ||
| 112 |
3/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✗ Branch 8 not taken.
|
10 | if ((value = modelObject.crankcaseHeaterCapacity())) { |
| 113 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | idfObject.setDouble(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedFields::CrankcaseHeaterCapacity, value.get()); |
| 114 | } | ||
| 115 | |||
| 116 | // CrankcaseHeaterCapacityFunctionofTemperatureCurveName | ||
| 117 |
3/3✓ Branch 1 taken 5 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 4 times.
|
10 | if (auto crankCurve_ = modelObject.crankcaseHeaterCapacityFunctionofTemperatureCurve()) { |
| 118 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | if (auto curve_ = translateAndMapModelObject(*crankCurve_)) { |
| 119 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedFields::CrankcaseHeaterCapacityFunctionofTemperatureCurveName, |
| 120 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | curve_->nameString()); |
| 121 | 1 | } | |
| 122 | 5 | } | |
| 123 | |||
| 124 | // Maximum Ambient Temperature for Crankcase Heater Operation | ||
| 125 |
3/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✗ Branch 8 not taken.
|
10 | if ((value = modelObject.maximumAmbientTemperatureforCrankcaseHeaterOperation())) { |
| 126 | 5 | idfObject.setDouble(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedFields::MaximumAmbientTemperatureforCrankcaseHeaterOperation, | |
| 127 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | value.get()); |
| 128 | } | ||
| 129 | |||
| 130 | // Evaporator Air Temperature Type for Curve Objects | ||
| 131 |
3/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 8 taken 5 times.
✗ Branch 9 not taken.
|
10 | if ((s = modelObject.evaporatorAirTemperatureTypeforCurveObjects())) { |
| 132 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | idfObject.setString(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedFields::EvaporatorAirTemperatureTypeforCurveObjects, s.get()); |
| 133 | } | ||
| 134 | |||
| 135 | // Part Load Fraction Correlation Curve Name | ||
| 136 |
1/1✓ Branch 1 taken 5 times.
|
5 | auto plrCurve = modelObject.partLoadFractionCorrelationCurve(); |
| 137 |
2/3✓ Branch 1 taken 5 times.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
|
10 | if (boost::optional<IdfObject> _curve = translateAndMapModelObject(plrCurve)) { |
| 138 |
4/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✓ Branch 10 taken 5 times.
|
5 | idfObject.setString(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedFields::PartLoadFractionCorrelationCurveName, _curve->name().get()); |
| 139 | 5 | } | |
| 140 | |||
| 141 | // Number of Speeds | ||
| 142 |
1/1✓ Branch 1 taken 5 times.
|
5 | idfObject.setInt(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedFields::NumberofSpeeds, numSpeeds); |
| 143 | |||
| 144 |
2/2✓ Branch 5 taken 5 times.
✓ Branch 6 taken 5 times.
|
10 | for (auto const& speed : speeds) { |
| 145 |
1/1✓ Branch 1 taken 5 times.
|
5 | auto eg = idfObject.pushExtensibleGroup(); |
| 146 | |||
| 147 | // Rated Water Heating Capacity at Speed | ||
| 148 |
3/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✗ Branch 8 not taken.
|
10 | if ((value = speed.ratedWaterHeatingCapacity())) { |
| 149 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | eg.setDouble(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedExtensibleFields::SpeedRatedWaterHeatingCapacity, value.get()); |
| 150 | } | ||
| 151 | |||
| 152 | // Rated Water Heating COP at Speed | ||
| 153 |
3/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✗ Branch 8 not taken.
|
10 | if ((value = speed.ratedWaterHeatingCOP())) { |
| 154 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | eg.setDouble(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedExtensibleFields::SpeedRatedWaterHeatingCOP, value.get()); |
| 155 | } | ||
| 156 | |||
| 157 | // Rated Sensible Heat Ratio at Speed | ||
| 158 |
3/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✗ Branch 8 not taken.
|
10 | if ((value = speed.ratedSensibleHeatRatio())) { |
| 159 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | eg.setDouble(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedExtensibleFields::SpeedRatedSensibleHeatRatio, value.get()); |
| 160 | } | ||
| 161 | |||
| 162 | // Speed Reference Unit Rated Air Flow Rate | ||
| 163 |
3/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✗ Branch 8 not taken.
|
10 | if ((value = speed.referenceUnitRatedAirFlowRate())) { |
| 164 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | eg.setDouble(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedExtensibleFields::SpeedReferenceUnitRatedAirFlowRate, value.get()); |
| 165 | } | ||
| 166 | |||
| 167 | // Speed Reference Unit Rated Water Flow Rate | ||
| 168 |
3/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✗ Branch 8 not taken.
|
10 | if ((value = speed.referenceUnitRatedWaterFlowRate())) { |
| 169 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | eg.setDouble(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedExtensibleFields::SpeedReferenceUnitRatedWaterFlowRate, value.get()); |
| 170 | } | ||
| 171 | |||
| 172 | // Speed Reference Unit Water Pump Input Power At Rated Conditions | ||
| 173 |
3/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✗ Branch 8 not taken.
|
10 | if ((value = speed.referenceUnitWaterPumpInputPowerAtRatedConditions())) { |
| 174 | 5 | eg.setDouble(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedExtensibleFields::SpeedReferenceUnitWaterPumpInputPowerAtRatedConditions, | |
| 175 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | value.get()); |
| 176 | } | ||
| 177 | |||
| 178 | // Speed Total WH Capacity Function of Temperature Curve Name | ||
| 179 | { | ||
| 180 |
1/1✓ Branch 1 taken 5 times.
|
5 | auto curve = speed.totalWaterHeatingCapacityFunctionofTemperatureCurve(); |
| 181 |
2/3✓ Branch 1 taken 5 times.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
|
10 | if (auto _curve = translateAndMapModelObject(curve)) { |
| 182 | 5 | eg.setString(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedExtensibleFields::SpeedTotalWHCapacityFunctionofTemperatureCurveName, | |
| 183 |
4/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✓ Branch 10 taken 5 times.
|
5 | _curve->name().get()); |
| 184 | 5 | } | |
| 185 | 5 | } | |
| 186 | |||
| 187 | // Speed Total WH Capacity Function of Air Flow Fraction Curve Name | ||
| 188 | { | ||
| 189 |
1/1✓ Branch 1 taken 5 times.
|
5 | auto curve = speed.totalWaterHeatingCapacityFunctionofAirFlowFractionCurve(); |
| 190 |
2/3✓ Branch 1 taken 5 times.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
|
10 | if (auto _curve = translateAndMapModelObject(curve)) { |
| 191 | 5 | eg.setString(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedExtensibleFields::SpeedTotalWHCapacityFunctionofAirFlowFractionCurveName, | |
| 192 |
4/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✓ Branch 10 taken 5 times.
|
5 | _curve->name().get()); |
| 193 | 5 | } | |
| 194 | 5 | } | |
| 195 | |||
| 196 | // Speed Total WH Capacity Function of Water Flow Fraction Curve Name | ||
| 197 | { | ||
| 198 |
1/1✓ Branch 1 taken 5 times.
|
5 | auto curve = speed.totalWaterHeatingCapacityFunctionofWaterFlowFractionCurve(); |
| 199 |
2/3✓ Branch 1 taken 5 times.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
|
10 | if (auto _curve = translateAndMapModelObject(curve)) { |
| 200 | 5 | eg.setString(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedExtensibleFields::SpeedTotalWHCapacityFunctionofWaterFlowFractionCurveName, | |
| 201 |
4/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✓ Branch 10 taken 5 times.
|
5 | _curve->name().get()); |
| 202 | 5 | } | |
| 203 | 5 | } | |
| 204 | |||
| 205 | // Speed COP Function of Temperature Curve Name | ||
| 206 | { | ||
| 207 |
1/1✓ Branch 1 taken 5 times.
|
5 | auto curve = speed.copFunctionofTemperatureCurve(); |
| 208 |
2/3✓ Branch 1 taken 5 times.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
|
10 | if (auto _curve = translateAndMapModelObject(curve)) { |
| 209 | 5 | eg.setString(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedExtensibleFields::SpeedCOPFunctionofTemperatureCurveName, | |
| 210 |
4/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✓ Branch 10 taken 5 times.
|
5 | _curve->name().get()); |
| 211 | 5 | } | |
| 212 | 5 | } | |
| 213 | |||
| 214 | // Speed COP Function of Air Flow Fraction Curve Name | ||
| 215 | { | ||
| 216 |
1/1✓ Branch 1 taken 5 times.
|
5 | auto curve = speed.copFunctionofAirFlowFractionCurve(); |
| 217 |
2/3✓ Branch 1 taken 5 times.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
|
10 | if (auto _curve = translateAndMapModelObject(curve)) { |
| 218 | 5 | eg.setString(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedExtensibleFields::SpeedCOPFunctionofAirFlowFractionCurveName, | |
| 219 |
4/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✓ Branch 10 taken 5 times.
|
5 | _curve->name().get()); |
| 220 | 5 | } | |
| 221 | 5 | } | |
| 222 | |||
| 223 | // Speed COP Function of Water Flow Fraction Curve Name | ||
| 224 | { | ||
| 225 |
1/1✓ Branch 1 taken 5 times.
|
5 | auto curve = speed.copFunctionofWaterFlowFractionCurve(); |
| 226 |
2/3✓ Branch 1 taken 5 times.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
|
10 | if (auto _curve = translateAndMapModelObject(curve)) { |
| 227 | 5 | eg.setString(Coil_WaterHeating_AirToWaterHeatPump_VariableSpeedExtensibleFields::SpeedCOPFunctionofWaterFlowFractionCurveName, | |
| 228 |
4/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✓ Branch 10 taken 5 times.
|
5 | _curve->name().get()); |
| 229 | 5 | } | |
| 230 | 5 | } | |
| 231 | 5 | } | |
| 232 | |||
| 233 |
1/1✓ Branch 1 taken 5 times.
|
5 | return idfObject; |
| 234 | 5 | } | |
| 235 | |||
| 236 | } // namespace energyplus | ||
| 237 | } // namespace openstudio | ||
| 238 |