src/energyplus/ForwardTranslator/ForwardTranslateChillerElectricEIR.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/Schedule.hpp" | ||
| 9 | #include "../../model/Schedule_Impl.hpp" | ||
| 10 | #include "../../model/Node.hpp" | ||
| 11 | #include "../../model/Node_Impl.hpp" | ||
| 12 | #include "../../model/ChillerElectricEIR.hpp" | ||
| 13 | #include "../../model/ChillerElectricEIR_Impl.hpp" | ||
| 14 | #include "../../model/Curve.hpp" | ||
| 15 | #include "../../model/Curve_Impl.hpp" | ||
| 16 | #include "../../utilities/core/Logger.hpp" | ||
| 17 | #include "../../utilities/core/Assert.hpp" | ||
| 18 | #include <utilities/idd/Chiller_Electric_EIR_FieldEnums.hxx> | ||
| 19 | #include "../../utilities/idd/IddEnums.hpp" | ||
| 20 | #include <utilities/idd/IddEnums.hxx> | ||
| 21 | #include <utilities/idd/IddFactory.hxx> | ||
| 22 | |||
| 23 | using namespace openstudio::model; | ||
| 24 | |||
| 25 | using namespace std; | ||
| 26 | |||
| 27 | namespace openstudio { | ||
| 28 | |||
| 29 | namespace energyplus { | ||
| 30 | |||
| 31 | 3 | boost::optional<IdfObject> ForwardTranslator::translateChillerElectricEIR(ChillerElectricEIR& modelObject) { | |
| 32 | 3 | boost::optional<std::string> s; | |
| 33 | 3 | boost::optional<double> value; | |
| 34 | |||
| 35 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | IdfObject idfObject(IddObjectType::Chiller_Electric_EIR); |
| 36 | |||
| 37 |
1/1✓ Branch 1 taken 3 times.
|
3 | m_idfObjects.push_back(idfObject); |
| 38 | |||
| 39 | // Name | ||
| 40 | |||
| 41 |
1/1✓ Branch 1 taken 3 times.
|
3 | s = modelObject.name(); |
| 42 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | if (s) { |
| 43 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setName(*s); |
| 44 | } | ||
| 45 | |||
| 46 | // ReferenceCapacity | ||
| 47 | |||
| 48 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 1 time.
|
3 | if (modelObject.isReferenceCapacityAutosized()) { |
| 49 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
4 | idfObject.setString(Chiller_Electric_EIRFields::ReferenceCapacity, "Autosize"); |
| 50 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | } else if ((value = modelObject.referenceCapacity())) { |
| 51 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(Chiller_Electric_EIRFields::ReferenceCapacity, value.get()); |
| 52 | } | ||
| 53 | |||
| 54 | // ReferenceCOP | ||
| 55 | |||
| 56 |
3/4✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✗ Branch 8 not taken.
|
6 | if ((value = modelObject.referenceCOP())) { |
| 57 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setDouble(Chiller_Electric_EIRFields::ReferenceCOP, value.get()); |
| 58 | } | ||
| 59 | |||
| 60 | // ReferenceLeavingChilledWaterTemperature | ||
| 61 | |||
| 62 |
3/4✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✗ Branch 8 not taken.
|
6 | if ((value = modelObject.referenceLeavingChilledWaterTemperature())) { |
| 63 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setDouble(Chiller_Electric_EIRFields::ReferenceLeavingChilledWaterTemperature, value.get()); |
| 64 | } | ||
| 65 | |||
| 66 | // ReferenceEnteringCondenserFluidTemperature | ||
| 67 | |||
| 68 |
3/4✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✗ Branch 8 not taken.
|
6 | if ((value = modelObject.referenceEnteringCondenserFluidTemperature())) { |
| 69 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setDouble(Chiller_Electric_EIRFields::ReferenceEnteringCondenserFluidTemperature, value.get()); |
| 70 | } | ||
| 71 | |||
| 72 | // ReferenceChilledWaterFlowRate | ||
| 73 | |||
| 74 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 1 time.
|
3 | if (modelObject.isReferenceChilledWaterFlowRateAutosized()) { |
| 75 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
4 | idfObject.setString(Chiller_Electric_EIRFields::ReferenceChilledWaterFlowRate, "Autosize"); |
| 76 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | } else if ((value = modelObject.referenceChilledWaterFlowRate())) { |
| 77 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(Chiller_Electric_EIRFields::ReferenceChilledWaterFlowRate, value.get()); |
| 78 | } | ||
| 79 | |||
| 80 | // ReferenceCondenserFluidFlowRate | ||
| 81 | |||
| 82 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 1 time.
|
3 | if (modelObject.isReferenceCondenserFluidFlowRateAutosized()) { |
| 83 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
4 | idfObject.setString(Chiller_Electric_EIRFields::ReferenceCondenserFluidFlowRate, "Autosize"); |
| 84 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | } else if ((value = modelObject.referenceCondenserFluidFlowRate())) { |
| 85 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(Chiller_Electric_EIRFields::ReferenceCondenserFluidFlowRate, value.get()); |
| 86 | } | ||
| 87 | |||
| 88 | // MinimumPartLoadRatio | ||
| 89 | |||
| 90 |
3/4✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✗ Branch 8 not taken.
|
6 | if ((value = modelObject.minimumPartLoadRatio())) { |
| 91 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setDouble(Chiller_Electric_EIRFields::MinimumPartLoadRatio, value.get()); |
| 92 | } | ||
| 93 | |||
| 94 | // MaximumPartLoadRatio | ||
| 95 | |||
| 96 |
3/4✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✗ Branch 8 not taken.
|
6 | if ((value = modelObject.maximumPartLoadRatio())) { |
| 97 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setDouble(Chiller_Electric_EIRFields::MaximumPartLoadRatio, value.get()); |
| 98 | } | ||
| 99 | |||
| 100 | // OptimumPartLoadRatio | ||
| 101 | |||
| 102 |
3/4✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✗ Branch 8 not taken.
|
6 | if ((value = modelObject.optimumPartLoadRatio())) { |
| 103 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setDouble(Chiller_Electric_EIRFields::OptimumPartLoadRatio, value.get()); |
| 104 | } | ||
| 105 | |||
| 106 | // MinimumUnloadingRatio | ||
| 107 | |||
| 108 |
3/4✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✗ Branch 8 not taken.
|
6 | if ((value = modelObject.minimumUnloadingRatio())) { |
| 109 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setDouble(Chiller_Electric_EIRFields::MinimumUnloadingRatio, value.get()); |
| 110 | } | ||
| 111 | |||
| 112 | // ChilledWaterInletNodeName | ||
| 113 | |||
| 114 |
2/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 3 times.
✗ Branch 4 not taken.
|
6 | if (boost::optional<ModelObject> mo = modelObject.supplyInletModelObject()) { |
| 115 |
3/4✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 6 taken 3 times.
✗ Branch 7 not taken.
|
6 | if (boost::optional<Node> node = mo->optionalCast<Node>()) { |
| 116 |
4/4✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
|
3 | idfObject.setString(Chiller_Electric_EIRFields::ChilledWaterInletNodeName, node->name().get()); |
| 117 | 3 | } | |
| 118 | 3 | } | |
| 119 | |||
| 120 | // ChilledWaterOutletNodeName | ||
| 121 | |||
| 122 |
2/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 3 times.
✗ Branch 4 not taken.
|
6 | if (boost::optional<ModelObject> mo = modelObject.supplyOutletModelObject()) { |
| 123 |
3/4✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 6 taken 3 times.
✗ Branch 7 not taken.
|
6 | if (boost::optional<Node> node = mo->optionalCast<Node>()) { |
| 124 |
4/4✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
|
3 | idfObject.setString(Chiller_Electric_EIRFields::ChilledWaterOutletNodeName, node->name().get()); |
| 125 | 3 | } | |
| 126 | 3 | } | |
| 127 | |||
| 128 | // CondenserInletNodeName | ||
| 129 | |||
| 130 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 2 times.
|
6 | if (boost::optional<ModelObject> mo = modelObject.demandInletModelObject()) { |
| 131 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | if (boost::optional<Node> node = mo->optionalCast<Node>()) { |
| 132 |
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(Chiller_Electric_EIRFields::CondenserInletNodeName, node->name().get()); |
| 133 | 1 | } | |
| 134 | 3 | } | |
| 135 | |||
| 136 | // CondenserOutletNodeName | ||
| 137 | |||
| 138 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 2 times.
|
6 | if (boost::optional<ModelObject> mo = modelObject.demandOutletModelObject()) { |
| 139 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | if (boost::optional<Node> node = mo->optionalCast<Node>()) { |
| 140 |
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(Chiller_Electric_EIRFields::CondenserOutletNodeName, node->name().get()); |
| 141 | 1 | } | |
| 142 | 3 | } | |
| 143 | |||
| 144 | // CondenserType | ||
| 145 | // The "smart" logic is now handled in model itself | ||
| 146 | // (eg: if you connect the chiller to a secondaryPlantLoop, it switches automatically to "WaterCooled") | ||
| 147 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setString(Chiller_Electric_EIRFields::CondenserType, modelObject.condenserType()); |
| 148 | |||
| 149 |
5/5✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 11 taken 2 times.
✓ Branch 12 taken 1 time.
|
6 | if (!openstudio::istringEqual(modelObject.condenserType(), "WaterCooled")) { |
| 150 | { | ||
| 151 | // Create an OutdoorAir:NodeList for the condenser inlet conditions to be set directly from weather file | ||
| 152 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | IdfObject oaNodeListIdf(openstudio::IddObjectType::OutdoorAir_NodeList); |
| 153 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | auto name = modelObject.nameString() + " Inlet Node For Condenser"; |
| 154 |
1/1✓ Branch 1 taken 2 times.
|
2 | oaNodeListIdf.setString(0, name); |
| 155 |
1/1✓ Branch 1 taken 2 times.
|
2 | m_idfObjects.push_back(oaNodeListIdf); |
| 156 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setString(Chiller_Electric_EIRFields::CondenserInletNodeName, name); |
| 157 | 2 | } | |
| 158 | |||
| 159 | { | ||
| 160 | // Name the condenser outlet node | ||
| 161 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | auto name = modelObject.nameString() + " Outlet Node For Condenser"; |
| 162 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setString(Chiller_Electric_EIRFields::CondenserOutletNodeName, name); |
| 163 | 2 | } | |
| 164 | } | ||
| 165 | |||
| 166 | // CondenserFanPowerRatio | ||
| 167 | |||
| 168 |
3/4✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✗ Branch 8 not taken.
|
6 | if ((value = modelObject.condenserFanPowerRatio())) { |
| 169 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setDouble(Chiller_Electric_EIRFields::CondenserFanPowerRatio, value.get()); |
| 170 | } | ||
| 171 | |||
| 172 | // CompressorMotorEfficiency | ||
| 173 | // Changed to Fraction of Compressor Electric Consumption Rejected by Condenser in E+ version 8.0 | ||
| 174 | |||
| 175 |
3/4✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✗ Branch 8 not taken.
|
6 | if ((value = modelObject.fractionofCompressorElectricConsumptionRejectedbyCondenser())) { |
| 176 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setDouble(Chiller_Electric_EIRFields::FractionofCompressorElectricConsumptionRejectedbyCondenser, value.get()); |
| 177 | } | ||
| 178 | |||
| 179 | // LeavingChilledWaterLowerTemperatureLimit | ||
| 180 | |||
| 181 |
3/4✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✗ Branch 8 not taken.
|
6 | if ((value = modelObject.leavingChilledWaterLowerTemperatureLimit())) { |
| 182 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setDouble(Chiller_Electric_EIRFields::LeavingChilledWaterLowerTemperatureLimit, value.get()); |
| 183 | } | ||
| 184 | |||
| 185 | // ChillerFlowMode | ||
| 186 | |||
| 187 |
3/4✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 8 taken 3 times.
✗ Branch 9 not taken.
|
6 | if ((s = modelObject.chillerFlowMode())) { |
| 188 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setString(Chiller_Electric_EIRFields::ChillerFlowMode, s.get()); |
| 189 | } | ||
| 190 | |||
| 191 | // CoolingCapacityFunctionofTemperatureCurveName | ||
| 192 | |||
| 193 |
1/1✓ Branch 1 taken 3 times.
|
3 | Curve curve = modelObject.coolingCapacityFunctionOfTemperature(); |
| 194 | |||
| 195 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<IdfObject> _curve = translateAndMapModelObject(curve); |
| 196 | |||
| 197 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | if (_curve) { |
| 198 |
4/4✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
|
3 | idfObject.setString(Chiller_Electric_EIRFields::CoolingCapacityFunctionofTemperatureCurveName, _curve->name().get()); |
| 199 | } | ||
| 200 | |||
| 201 | // ElectricInputtoCoolingOutputRatioFunctionofTemperatureCurveName | ||
| 202 | |||
| 203 |
1/1✓ Branch 1 taken 3 times.
|
3 | curve = modelObject.electricInputToCoolingOutputRatioFunctionOfTemperature(); |
| 204 | |||
| 205 |
1/1✓ Branch 1 taken 3 times.
|
3 | _curve = translateAndMapModelObject(curve); |
| 206 | |||
| 207 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | if (_curve) { |
| 208 |
4/4✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
|
3 | idfObject.setString(Chiller_Electric_EIRFields::ElectricInputtoCoolingOutputRatioFunctionofTemperatureCurveName, _curve->name().get()); |
| 209 | } | ||
| 210 | |||
| 211 | // ElectricInputtoCoolingOutputRatioFunctionofPartLoadRatioCurveName | ||
| 212 | |||
| 213 |
1/1✓ Branch 1 taken 3 times.
|
3 | Curve quadcurve = modelObject.electricInputToCoolingOutputRatioFunctionOfPLR(); |
| 214 | |||
| 215 |
1/1✓ Branch 1 taken 3 times.
|
3 | _curve = translateAndMapModelObject(quadcurve); |
| 216 | |||
| 217 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | if (_curve) { |
| 218 |
4/4✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
|
3 | idfObject.setString(Chiller_Electric_EIRFields::ElectricInputtoCoolingOutputRatioFunctionofPartLoadRatioCurveName, _curve->name().get()); |
| 219 | } | ||
| 220 | |||
| 221 | // DesignHeatRecoveryWaterFlowRate: If filled, then the Nodes are **required**... | ||
| 222 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 1 time.
✓ Branch 5 taken 2 times.
|
6 | if (modelObject.heatRecoveryLoop()) { |
| 223 |
2/3✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
|
1 | if (modelObject.isDesignHeatRecoveryWaterFlowRateAutosized()) { |
| 224 | ✗ | idfObject.setString(Chiller_Electric_EIRFields::DesignHeatRecoveryWaterFlowRate, "Autosize"); | |
| 225 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | } else if ((value = modelObject.designHeatRecoveryWaterFlowRate())) { |
| 226 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(Chiller_Electric_EIRFields::DesignHeatRecoveryWaterFlowRate, value.get()); |
| 227 | } | ||
| 228 | |||
| 229 | // HeatRecoveryInletNodeName | ||
| 230 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<ModelObject> mo = modelObject.tertiaryInletModelObject()) { |
| 231 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | if (boost::optional<Node> node = mo->optionalCast<Node>()) { |
| 232 |
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(Chiller_Electric_EIRFields::HeatRecoveryInletNodeName, node->name().get()); |
| 233 | 1 | } | |
| 234 | 1 | } | |
| 235 | |||
| 236 | // HeatRecoveryOutletNodeName | ||
| 237 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<ModelObject> mo = modelObject.tertiaryOutletModelObject()) { |
| 238 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | if (boost::optional<Node> node = mo->optionalCast<Node>()) { |
| 239 |
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(Chiller_Electric_EIRFields::HeatRecoveryOutletNodeName, node->name().get()); |
| 240 | 1 | } | |
| 241 | 1 | } | |
| 242 | } | ||
| 243 | |||
| 244 | // Sizing Factor | ||
| 245 |
3/4✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✗ Branch 8 not taken.
|
6 | if ((value = modelObject.sizingFactor())) { |
| 246 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setDouble(Chiller_Electric_EIRFields::SizingFactor, value.get()); |
| 247 | } | ||
| 248 | |||
| 249 | // Basin Heater Capacity | ||
| 250 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setDouble(Chiller_Electric_EIRFields::BasinHeaterCapacity, modelObject.basinHeaterCapacity()); |
| 251 | |||
| 252 | // Basin Heater Setpoint Temperature | ||
| 253 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setDouble(Chiller_Electric_EIRFields::BasinHeaterSetpointTemperature, modelObject.basinHeaterSetpointTemperature()); |
| 254 | |||
| 255 | // Basin Heater Operating Schedule Name | ||
| 256 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 2 times.
|
6 | if (auto _schedule = modelObject.basinHeaterSchedule()) { |
| 257 |
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(Chiller_Electric_EIRFields::BasinHeaterOperatingScheduleName, _schedule->name().get()); |
| 258 | 3 | } | |
| 259 | |||
| 260 | // Condenser Heat Recovery Relative Capacity Fraction | ||
| 261 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setDouble(Chiller_Electric_EIRFields::CondenserHeatRecoveryRelativeCapacityFraction, |
| 262 | modelObject.condenserHeatRecoveryRelativeCapacityFraction()); | ||
| 263 | |||
| 264 | // Heat Recovery Inlet High Temperature Limit Schedule Name | ||
| 265 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 2 times.
|
6 | if (auto _schedule = modelObject.heatRecoveryInletHighTemperatureLimitSchedule()) { |
| 266 |
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(Chiller_Electric_EIRFields::HeatRecoveryInletHighTemperatureLimitScheduleName, _schedule->name().get()); |
| 267 | 3 | } | |
| 268 | |||
| 269 | // Heat Recovery Leaving Temperature Setpoint Node Name | ||
| 270 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 2 times.
|
6 | if (auto _node = modelObject.heatRecoveryLeavingTemperatureSetpointNode()) { |
| 271 |
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(Chiller_Electric_EIRFields::HeatRecoveryLeavingTemperatureSetpointNodeName, _node->name().get()); |
| 272 | 3 | } | |
| 273 | |||
| 274 | // End Use Subcategory | ||
| 275 |
3/4✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 8 taken 3 times.
✗ Branch 9 not taken.
|
6 | if ((s = modelObject.endUseSubcategory())) { |
| 276 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setString(Chiller_Electric_EIRFields::EndUseSubcategory, s.get()); |
| 277 | } | ||
| 278 | |||
| 279 | // Condenser Flow Control | ||
| 280 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setString(Chiller_Electric_EIRFields::CondenserFlowControl, modelObject.condenserFlowControl()); |
| 281 | |||
| 282 | // Condenser Loop Flow Rate Fraction Function of Loop Part Load Ratio Curve Name | ||
| 283 | 3 | if (boost::optional<Curve> condenserLoopFlowRateFractionFunctionofLoopPartLoadRatioCurve_ = | |
| 284 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 2 times.
|
6 | modelObject.condenserLoopFlowRateFractionFunctionofLoopPartLoadRatioCurve()) { |
| 285 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | if (boost::optional<IdfObject> wo_ = translateAndMapModelObject(condenserLoopFlowRateFractionFunctionofLoopPartLoadRatioCurve_.get())) { |
| 286 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | idfObject.setString(Chiller_Electric_EIRFields::CondenserLoopFlowRateFractionFunctionofLoopPartLoadRatioCurveName, wo_->nameString()); |
| 287 | 1 | } | |
| 288 | 3 | } | |
| 289 | |||
| 290 | // Temperature Difference Across Condenser Schedule Name | ||
| 291 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 2 times.
|
6 | if (auto _schedule = modelObject.temperatureDifferenceAcrossCondenserSchedule()) { |
| 292 |
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(Chiller_Electric_EIRFields::TemperatureDifferenceAcrossCondenserScheduleName, _schedule->name().get()); |
| 293 | 3 | } | |
| 294 | |||
| 295 | // Condenser Minimum Flow Fraction | ||
| 296 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setDouble(Chiller_Electric_EIRFields::CondenserMinimumFlowFraction, modelObject.condenserMinimumFlowFraction()); |
| 297 | |||
| 298 | // Thermosiphon Capacity Fraction Curve Name | ||
| 299 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 2 times.
|
6 | if (boost::optional<Curve> thermosiphonCapacityFractionCurve_ = modelObject.thermosiphonCapacityFractionCurve()) { |
| 300 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | if (boost::optional<IdfObject> wo_ = translateAndMapModelObject(thermosiphonCapacityFractionCurve_.get())) { |
| 301 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | idfObject.setString(Chiller_Electric_EIRFields::ThermosiphonCapacityFractionCurveName, wo_->nameString()); |
| 302 | 1 | } | |
| 303 | 3 | } | |
| 304 | |||
| 305 | // Thermosiphon Minimum Temperature Difference | ||
| 306 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setDouble(Chiller_Electric_EIRFields::ThermosiphonMinimumTemperatureDifference, modelObject.thermosiphonMinimumTemperatureDifference()); |
| 307 | |||
| 308 |
1/1✓ Branch 1 taken 3 times.
|
6 | return boost::optional<IdfObject>(idfObject); |
| 309 | 3 | } | |
| 310 | |||
| 311 | } // namespace energyplus | ||
| 312 | |||
| 313 | } // namespace openstudio | ||
| 314 |