src/energyplus/ForwardTranslator/ForwardTranslateCoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit.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/Node.hpp" | ||
| 9 | #include "../../model/CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit.hpp" | ||
| 10 | #include "../../model/CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData.hpp" | ||
| 11 | #include "../../model/Schedule.hpp" | ||
| 12 | #include "../../model/Schedule_Impl.hpp" | ||
| 13 | |||
| 14 | #include <utilities/idd/Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit_FieldEnums.hxx> | ||
| 15 | #include "../../model/Curve.hpp" | ||
| 16 | #include "../../utilities/core/Logger.hpp" | ||
| 17 | #include "../../utilities/core/Assert.hpp" | ||
| 18 | #include "../../utilities/idf/IdfExtensibleGroup.hpp" | ||
| 19 | |||
| 20 | #include "../../utilities/idd/IddEnums.hpp" | ||
| 21 | #include <utilities/idd/IddEnums.hxx> | ||
| 22 | #include <utilities/idd/IddFactory.hxx> | ||
| 23 | |||
| 24 | using namespace openstudio::model; | ||
| 25 | |||
| 26 | namespace openstudio { | ||
| 27 | |||
| 28 | namespace energyplus { | ||
| 29 | |||
| 30 | 4 | boost::optional<IdfObject> ForwardTranslator::translateCoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit( | |
| 31 | CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit& modelObject) { | ||
| 32 | //setup boost optionals to use to store get method returns | ||
| 33 | 4 | boost::optional<std::string> s; | |
| 34 | 4 | boost::optional<double> value; | |
| 35 | 4 | boost::optional<Node> node; | |
| 36 | |||
| 37 | // Name | ||
| 38 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | IdfObject idfObject = createRegisterAndNameIdfObject(IddObjectType::Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFit, modelObject); |
| 39 | |||
| 40 | // AvailabilityScheduleName | ||
| 41 | { | ||
| 42 |
1/1✓ Branch 1 taken 4 times.
|
4 | auto schedule = modelObject.availabilitySchedule(); |
| 43 |
2/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 4 times.
✗ Branch 4 not taken.
|
8 | if (boost::optional<IdfObject> _schedule = translateAndMapModelObject(schedule)) { |
| 44 |
4/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
|
4 | idfObject.setString(Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitFields::AvailabilityScheduleName, _schedule->name().get()); |
| 45 | 4 | } | |
| 46 | 4 | } | |
| 47 | |||
| 48 | // WatertoRefrigerantHXWaterInletNodeName | ||
| 49 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 3 times.
|
8 | if (auto node = modelObject.waterInletModelObject()) { |
| 50 |
4/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
|
1 | idfObject.setString(Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitFields::WatertoRefrigerantHXWaterInletNodeName, node->name().get()); |
| 51 | 4 | } | |
| 52 | |||
| 53 | // WatertoRefrigerantHXWaterOutletNodeName | ||
| 54 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 3 times.
|
8 | if (auto node = modelObject.waterOutletModelObject()) { |
| 55 | 1 | idfObject.setString(Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitFields::WatertoRefrigerantHXWaterOutletNodeName, | |
| 56 |
4/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
|
1 | node->name().get()); |
| 57 | 4 | } | |
| 58 | |||
| 59 | // IndoorAirInletNodeName | ||
| 60 |
2/3✓ Branch 1 taken 4 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 4 times.
|
8 | if (auto node = modelObject.airInletModelObject()) { |
| 61 | ✗ | idfObject.setString(Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitFields::IndoorAirInletNodeName, node->name().get()); | |
| 62 | 4 | } | |
| 63 | |||
| 64 | // IndoorAirOutletNodeName | ||
| 65 |
2/3✓ Branch 1 taken 4 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 4 times.
|
8 | if (auto node = modelObject.airOutletModelObject()) { |
| 66 | ✗ | idfObject.setString(Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitFields::IndoorAirOutletNodeName, node->name().get()); | |
| 67 | 4 | } | |
| 68 | |||
| 69 | // NominalSpeedLevel | ||
| 70 |
2/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 4 times.
✗ Branch 4 not taken.
|
4 | if (auto speedLevel = modelObject.nominalSpeedLevel()) { |
| 71 |
1/1✓ Branch 1 taken 4 times.
|
4 | idfObject.setInt(Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitFields::NominalSpeedLevel, speedLevel); |
| 72 | } | ||
| 73 | |||
| 74 | // GrossRatedTotalCoolingCapacityAtSelectedNominalSpeedLevel | ||
| 75 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 3 times.
✓ Branch 4 taken 1 time.
|
4 | if (modelObject.isGrossRatedTotalCoolingCapacityAtSelectedNominalSpeedLevelAutosized()) { |
| 76 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | idfObject.setString(Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitFields::GrossRatedTotalCoolingCapacityAtSelectedNominalSpeedLevel, |
| 77 | "AutoSize"); | ||
| 78 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | } else if ((value = modelObject.grossRatedTotalCoolingCapacityAtSelectedNominalSpeedLevel())) { |
| 79 | 1 | idfObject.setDouble(Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitFields::GrossRatedTotalCoolingCapacityAtSelectedNominalSpeedLevel, | |
| 80 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | value.get()); |
| 81 | } | ||
| 82 | |||
| 83 | // RatedAirFlowRateAtSelectedNominalSpeedLevel | ||
| 84 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 3 times.
✓ Branch 4 taken 1 time.
|
4 | if (modelObject.isRatedAirFlowRateAtSelectedNominalSpeedLevelAutosized()) { |
| 85 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | idfObject.setString(Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitFields::RatedAirFlowRateAtSelectedNominalSpeedLevel, "AutoSize"); |
| 86 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | } else if ((value = modelObject.ratedAirFlowRateAtSelectedNominalSpeedLevel())) { |
| 87 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitFields::RatedAirFlowRateAtSelectedNominalSpeedLevel, value.get()); |
| 88 | } | ||
| 89 | |||
| 90 | // RatedWaterFlowRateAtSelectedNominalSpeedLevel | ||
| 91 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 3 times.
✓ Branch 4 taken 1 time.
|
4 | if (modelObject.isRatedWaterFlowRateAtSelectedNominalSpeedLevelAutosized()) { |
| 92 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | idfObject.setString(Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitFields::RatedWaterFlowRateAtSelectedNominalSpeedLevel, "AutoSize"); |
| 93 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | } else if ((value = modelObject.ratedWaterFlowRateAtSelectedNominalSpeedLevel())) { |
| 94 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitFields::RatedWaterFlowRateAtSelectedNominalSpeedLevel, value.get()); |
| 95 | } | ||
| 96 | |||
| 97 | // NominalTimeforCondensatetoBeginLeavingtheCoil | ||
| 98 |
3/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 8 not taken.
|
8 | if ((value = modelObject.nominalTimeforCondensatetoBeginLeavingtheCoil())) { |
| 99 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | idfObject.setDouble(Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitFields::NominalTimeforCondensatetoBeginLeavingtheCoil, value.get()); |
| 100 | } | ||
| 101 | |||
| 102 | // InitialMoistureEvaporationRateDividedbySteadyStateACLatentCapacity | ||
| 103 |
3/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 8 not taken.
|
8 | if ((value = modelObject.initialMoistureEvaporationRateDividedbySteadyStateACLatentCapacity())) { |
| 104 | 4 | idfObject.setDouble( | |
| 105 | Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitFields::InitialMoistureEvaporationRateDividedbySteadyStateACLatentCapacity, | ||
| 106 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | value.get()); |
| 107 | } | ||
| 108 | |||
| 109 | // Maximum Cycling Rate | ||
| 110 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | idfObject.setDouble(Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitFields::MaximumCyclingRate, modelObject.maximumCyclingRate()); |
| 111 | |||
| 112 | // Latent Capacity Time Constnat | ||
| 113 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | idfObject.setDouble(Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitFields::LatentCapacityTimeConstant, |
| 114 | modelObject.latentCapacityTimeConstant()); | ||
| 115 | |||
| 116 | // Fan Delay Time | ||
| 117 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | idfObject.setDouble(Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitFields::FanDelayTime, modelObject.fanDelayTime()); |
| 118 | |||
| 119 | // FlagforUsingHotGasReheat0or1 | ||
| 120 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 3 times.
|
4 | if (modelObject.useHotGasReheat()) { |
| 121 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setInt(Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitFields::FlagforUsingHotGasReheat0or1, 1); |
| 122 | } else { | ||
| 123 |
1/1✓ Branch 1 taken 3 times.
|
3 | idfObject.setInt(Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitFields::FlagforUsingHotGasReheat0or1, 0); |
| 124 | } | ||
| 125 | |||
| 126 | // EnergyPartLoadFractionCurveName | ||
| 127 | { | ||
| 128 |
1/1✓ Branch 1 taken 4 times.
|
4 | auto curve = modelObject.energyPartLoadFractionCurve(); |
| 129 |
2/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 4 times.
✗ Branch 4 not taken.
|
8 | if (auto _curve = translateAndMapModelObject(curve)) { |
| 130 |
4/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
|
4 | idfObject.setString(Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitFields::EnergyPartLoadFractionCurveName, _curve->name().get()); |
| 131 | 4 | } | |
| 132 | 4 | } | |
| 133 | |||
| 134 |
1/1✓ Branch 1 taken 4 times.
|
4 | auto const speeds = modelObject.speeds(); |
| 135 | |||
| 136 | // NumberofSpeeds | ||
| 137 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 2 taken 1 time.
|
4 | if (auto num = speeds.size()) { |
| 138 |
1/1✓ Branch 1 taken 3 times.
|
3 | idfObject.setInt(Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitFields::NumberofSpeeds, num); |
| 139 | } | ||
| 140 | |||
| 141 |
2/2✓ Branch 5 taken 12 times.
✓ Branch 6 taken 4 times.
|
16 | for (auto const& speed : speeds) { |
| 142 |
1/1✓ Branch 1 taken 12 times.
|
12 | auto eg = idfObject.pushExtensibleGroup(); |
| 143 | |||
| 144 | // SpeedReferenceUnitGrossRatedTotalCoolingCapacity | ||
| 145 |
3/4✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
✓ Branch 7 taken 12 times.
✗ Branch 8 not taken.
|
24 | if ((value = speed.referenceUnitGrossRatedTotalCoolingCapacity())) { |
| 146 | 12 | eg.setDouble(Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitExtensibleFields::SpeedReferenceUnitGrossRatedTotalCoolingCapacity, | |
| 147 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
12 | value.get()); |
| 148 | } | ||
| 149 | |||
| 150 | // SpeedReferenceUnitGrossRatedSensibleHeatRatio | ||
| 151 |
3/4✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
✓ Branch 7 taken 12 times.
✗ Branch 8 not taken.
|
24 | if ((value = speed.referenceUnitGrossRatedSensibleHeatRatio())) { |
| 152 | 12 | eg.setDouble(Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitExtensibleFields::SpeedReferenceUnitGrossRatedSensibleHeatRatio, | |
| 153 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
12 | value.get()); |
| 154 | } | ||
| 155 | |||
| 156 | // SpeedReferenceUnitGrossRatedCoolingCOP | ||
| 157 |
3/4✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
✓ Branch 7 taken 12 times.
✗ Branch 8 not taken.
|
24 | if ((value = speed.referenceUnitGrossRatedCoolingCOP())) { |
| 158 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
12 | eg.setDouble(Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitExtensibleFields::SpeedReferenceUnitGrossRatedCoolingCOP, value.get()); |
| 159 | } | ||
| 160 | |||
| 161 | // SpeedReferenceUnitRatedAirFlowRate | ||
| 162 |
3/4✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
✓ Branch 7 taken 12 times.
✗ Branch 8 not taken.
|
24 | if ((value = speed.referenceUnitRatedAirFlowRate())) { |
| 163 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
12 | eg.setDouble(Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitExtensibleFields::SpeedReferenceUnitRatedAirFlowRate, value.get()); |
| 164 | } | ||
| 165 | |||
| 166 | // SpeedReferenceUnitRatedWaterFlowRate | ||
| 167 |
3/4✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
✓ Branch 7 taken 12 times.
✗ Branch 8 not taken.
|
24 | if ((value = speed.referenceUnitRatedWaterFlowRate())) { |
| 168 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
12 | eg.setDouble(Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitExtensibleFields::SpeedReferenceUnitRatedWaterFlowRate, value.get()); |
| 169 | } | ||
| 170 | |||
| 171 | // SpeedTotalCoolingCapacityFunctionofTemperatureCurveName | ||
| 172 | { | ||
| 173 |
1/1✓ Branch 1 taken 12 times.
|
12 | auto curve = speed.totalCoolingCapacityFunctionofTemperatureCurve(); |
| 174 |
2/3✓ Branch 1 taken 12 times.
✓ Branch 3 taken 12 times.
✗ Branch 4 not taken.
|
24 | if (auto _curve = translateAndMapModelObject(curve)) { |
| 175 | 12 | eg.setString( | |
| 176 | Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitExtensibleFields::SpeedTotalCoolingCapacityFunctionofTemperatureCurveName, | ||
| 177 |
4/4✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
✓ Branch 7 taken 12 times.
✓ Branch 10 taken 12 times.
|
12 | _curve->name().get()); |
| 178 | 12 | } | |
| 179 | 12 | } | |
| 180 | |||
| 181 | // SpeedTotalCoolingCapacityFunctionofAirFlowFractionCurveName | ||
| 182 | { | ||
| 183 |
1/1✓ Branch 1 taken 12 times.
|
12 | auto curve = speed.totalCoolingCapacityFunctionofAirFlowFractionCurve(); |
| 184 |
2/3✓ Branch 1 taken 12 times.
✓ Branch 3 taken 12 times.
✗ Branch 4 not taken.
|
24 | if (auto _curve = translateAndMapModelObject(curve)) { |
| 185 | 12 | eg.setString( | |
| 186 | Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitExtensibleFields::SpeedTotalCoolingCapacityFunctionofAirFlowFractionCurveName, | ||
| 187 |
4/4✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
✓ Branch 7 taken 12 times.
✓ Branch 10 taken 12 times.
|
12 | _curve->name().get()); |
| 188 | 12 | } | |
| 189 | 12 | } | |
| 190 | |||
| 191 | // SpeedTotalCoolingCapacityFunctionofWaterFlowFractionCurveName | ||
| 192 | { | ||
| 193 |
1/1✓ Branch 1 taken 12 times.
|
12 | auto curve = speed.totalCoolingCapacityFunctionofWaterFlowFractionCurve(); |
| 194 |
2/3✓ Branch 1 taken 12 times.
✓ Branch 3 taken 12 times.
✗ Branch 4 not taken.
|
24 | if (auto _curve = translateAndMapModelObject(curve)) { |
| 195 | 12 | eg.setString( | |
| 196 | Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitExtensibleFields::SpeedTotalCoolingCapacityFunctionofWaterFlowFractionCurveName, | ||
| 197 |
4/4✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
✓ Branch 7 taken 12 times.
✓ Branch 10 taken 12 times.
|
12 | _curve->name().get()); |
| 198 | 12 | } | |
| 199 | 12 | } | |
| 200 | |||
| 201 | // SpeedEnergyInputRatioFunctionofTemperatureCurveName | ||
| 202 | { | ||
| 203 |
1/1✓ Branch 1 taken 12 times.
|
12 | auto curve = speed.energyInputRatioFunctionofTemperatureCurve(); |
| 204 |
2/3✓ Branch 1 taken 12 times.
✓ Branch 3 taken 12 times.
✗ Branch 4 not taken.
|
24 | if (auto _curve = translateAndMapModelObject(curve)) { |
| 205 | 12 | eg.setString(Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitExtensibleFields::SpeedEnergyInputRatioFunctionofTemperatureCurveName, | |
| 206 |
4/4✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
✓ Branch 7 taken 12 times.
✓ Branch 10 taken 12 times.
|
12 | _curve->name().get()); |
| 207 | 12 | } | |
| 208 | 12 | } | |
| 209 | |||
| 210 | // SpeedEnergyInputRatioFunctionofAirFlowFractionCurveName | ||
| 211 | { | ||
| 212 |
1/1✓ Branch 1 taken 12 times.
|
12 | auto curve = speed.energyInputRatioFunctionofAirFlowFractionCurve(); |
| 213 |
2/3✓ Branch 1 taken 12 times.
✓ Branch 3 taken 12 times.
✗ Branch 4 not taken.
|
24 | if (auto _curve = translateAndMapModelObject(curve)) { |
| 214 | 12 | eg.setString( | |
| 215 | Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitExtensibleFields::SpeedEnergyInputRatioFunctionofAirFlowFractionCurveName, | ||
| 216 |
4/4✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
✓ Branch 7 taken 12 times.
✓ Branch 10 taken 12 times.
|
12 | _curve->name().get()); |
| 217 | 12 | } | |
| 218 | 12 | } | |
| 219 | |||
| 220 | // SpeedEnergyInputRatioFunctionofWaterFlowFractionCurveName | ||
| 221 | { | ||
| 222 |
1/1✓ Branch 1 taken 12 times.
|
12 | auto curve = speed.energyInputRatioFunctionofWaterFlowFractionCurve(); |
| 223 |
2/3✓ Branch 1 taken 12 times.
✓ Branch 3 taken 12 times.
✗ Branch 4 not taken.
|
24 | if (auto _curve = translateAndMapModelObject(curve)) { |
| 224 | 12 | eg.setString( | |
| 225 | Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitExtensibleFields::SpeedEnergyInputRatioFunctionofWaterFlowFractionCurveName, | ||
| 226 |
4/4✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
✓ Branch 7 taken 12 times.
✓ Branch 10 taken 12 times.
|
12 | _curve->name().get()); |
| 227 | 12 | } | |
| 228 | 12 | } | |
| 229 | |||
| 230 | // SpeedReferenceUnitWasteHeatFractionofInputPowerAtRatedConditions | ||
| 231 |
3/4✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
✓ Branch 7 taken 12 times.
✗ Branch 8 not taken.
|
24 | if ((value = speed.referenceUnitWasteHeatFractionofInputPowerAtRatedConditions())) { |
| 232 | 12 | eg.setDouble( | |
| 233 | Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitExtensibleFields::SpeedReferenceUnitWasteHeatFractionofInputPowerAtRatedConditions, | ||
| 234 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
12 | value.get()); |
| 235 | } | ||
| 236 | |||
| 237 | // SpeedWasteHeatFunctionofTemperatureCurveName | ||
| 238 | { | ||
| 239 |
1/1✓ Branch 1 taken 12 times.
|
12 | auto curve = speed.wasteHeatFunctionofTemperatureCurve(); |
| 240 |
2/3✓ Branch 1 taken 12 times.
✓ Branch 3 taken 12 times.
✗ Branch 4 not taken.
|
24 | if (auto _curve = translateAndMapModelObject(curve)) { |
| 241 | 12 | eg.setString(Coil_Cooling_WaterToAirHeatPump_VariableSpeedEquationFitExtensibleFields::SpeedWasteHeatFunctionofTemperatureCurveName, | |
| 242 |
4/4✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
✓ Branch 7 taken 12 times.
✓ Branch 10 taken 12 times.
|
12 | _curve->name().get()); |
| 243 | 12 | } | |
| 244 | 12 | } | |
| 245 | 12 | } | |
| 246 | |||
| 247 |
1/1✓ Branch 1 taken 4 times.
|
8 | return idfObject; |
| 248 | 4 | } | |
| 249 | |||
| 250 | } // namespace energyplus | ||
| 251 | |||
| 252 | } // namespace openstudio | ||
| 253 |