src/energyplus/ForwardTranslator/ForwardTranslateChillerElectricReformulatedEIR.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/ChillerElectricReformulatedEIR.hpp" | ||
| 13 | #include "../../model/ChillerElectricReformulatedEIR_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_ReformulatedEIR_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 | 1 | boost::optional<IdfObject> ForwardTranslator::translateChillerElectricReformulatedEIR(ChillerElectricReformulatedEIR& modelObject) { | |
| 32 | 1 | boost::optional<std::string> s; | |
| 33 | 1 | boost::optional<double> value; | |
| 34 | |||
| 35 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | IdfObject idfObject(IddObjectType::Chiller_Electric_ReformulatedEIR); |
| 36 | |||
| 37 |
1/1✓ Branch 1 taken 1 time.
|
1 | m_idfObjects.push_back(idfObject); |
| 38 | |||
| 39 | // Name | ||
| 40 |
1/1✓ Branch 1 taken 1 time.
|
1 | s = modelObject.name(); |
| 41 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (s) { |
| 42 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setName(*s); |
| 43 | } | ||
| 44 | |||
| 45 | // ReferenceCapacity | ||
| 46 |
2/3✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
|
1 | if (modelObject.isReferenceCapacityAutosized()) { |
| 47 | ✗ | idfObject.setString(Chiller_Electric_ReformulatedEIRFields::ReferenceCapacity, "Autosize"); | |
| 48 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | } else if ((value = modelObject.referenceCapacity())) { |
| 49 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(Chiller_Electric_ReformulatedEIRFields::ReferenceCapacity, value.get()); |
| 50 | } | ||
| 51 | |||
| 52 | // ReferenceCOP | ||
| 53 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
|
2 | if ((value = modelObject.referenceCOP())) { |
| 54 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(Chiller_Electric_ReformulatedEIRFields::ReferenceCOP, value.get()); |
| 55 | } | ||
| 56 | |||
| 57 | // ReferenceLeavingChilledWaterTemperature | ||
| 58 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
|
2 | if ((value = modelObject.referenceLeavingChilledWaterTemperature())) { |
| 59 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(Chiller_Electric_ReformulatedEIRFields::ReferenceLeavingChilledWaterTemperature, value.get()); |
| 60 | } | ||
| 61 | |||
| 62 | // ReferenceLeavingCondenserWaterTemperature | ||
| 63 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
|
2 | if ((value = modelObject.referenceLeavingCondenserWaterTemperature())) { |
| 64 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(Chiller_Electric_ReformulatedEIRFields::ReferenceLeavingCondenserWaterTemperature, value.get()); |
| 65 | } | ||
| 66 | |||
| 67 | // ReferenceChilledWaterFlowRate | ||
| 68 |
2/3✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
|
1 | if (modelObject.isReferenceChilledWaterFlowRateAutosized()) { |
| 69 | ✗ | idfObject.setString(Chiller_Electric_ReformulatedEIRFields::ReferenceChilledWaterFlowRate, "Autosize"); | |
| 70 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | } else if ((value = modelObject.referenceChilledWaterFlowRate())) { |
| 71 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(Chiller_Electric_ReformulatedEIRFields::ReferenceChilledWaterFlowRate, value.get()); |
| 72 | } | ||
| 73 | |||
| 74 | // ReferenceCondenserWaterFlowRate | ||
| 75 |
2/3✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
|
1 | if (modelObject.isReferenceCondenserWaterFlowRateAutosized()) { |
| 76 | ✗ | idfObject.setString(Chiller_Electric_ReformulatedEIRFields::ReferenceCondenserWaterFlowRate, "Autosize"); | |
| 77 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | } else if ((value = modelObject.referenceCondenserWaterFlowRate())) { |
| 78 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(Chiller_Electric_ReformulatedEIRFields::ReferenceCondenserWaterFlowRate, value.get()); |
| 79 | } | ||
| 80 | |||
| 81 | // CoolingCapacityFunctionofTemperatureCurveName | ||
| 82 | { | ||
| 83 |
1/1✓ Branch 1 taken 1 time.
|
1 | auto curve = modelObject.coolingCapacityFunctionOfTemperature(); |
| 84 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (auto _curve = translateAndMapModelObject(curve)) { |
| 85 |
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_ReformulatedEIRFields::CoolingCapacityFunctionofTemperatureCurveName, _curve->name().get()); |
| 86 | 1 | } | |
| 87 | 1 | } | |
| 88 | |||
| 89 | // ElectricInputtoCoolingOutputRatioFunctionofTemperatureCurveName | ||
| 90 | { | ||
| 91 |
1/1✓ Branch 1 taken 1 time.
|
1 | auto curve = modelObject.electricInputToCoolingOutputRatioFunctionOfTemperature(); |
| 92 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (auto _curve = translateAndMapModelObject(curve)) { |
| 93 | 1 | idfObject.setString(Chiller_Electric_ReformulatedEIRFields::ElectricInputtoCoolingOutputRatioFunctionofTemperatureCurveName, | |
| 94 |
4/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
|
1 | _curve->name().get()); |
| 95 | 1 | } | |
| 96 | 1 | } | |
| 97 | |||
| 98 | // ElectricInputtoCoolingOutputRatioFunctionofPartLoadRatioCurveType | ||
| 99 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 8 taken 1 time.
✗ Branch 9 not taken.
|
2 | if ((s = modelObject.electricInputToCoolingOutputRatioFunctionOfPLRType())) { |
| 100 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setString(Chiller_Electric_ReformulatedEIRFields::ElectricInputtoCoolingOutputRatioFunctionofPartLoadRatioCurveType, s.get()); |
| 101 | } | ||
| 102 | |||
| 103 | // ElectricInputtoCoolingOutputRatioFunctionofPartLoadRatioCurveName | ||
| 104 | { | ||
| 105 |
1/1✓ Branch 1 taken 1 time.
|
1 | auto curve = modelObject.electricInputToCoolingOutputRatioFunctionOfPLR(); |
| 106 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (auto _curve = translateAndMapModelObject(curve)) { |
| 107 | 1 | idfObject.setString(Chiller_Electric_ReformulatedEIRFields::ElectricInputtoCoolingOutputRatioFunctionofPartLoadRatioCurveName, | |
| 108 |
4/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
|
1 | _curve->name().get()); |
| 109 | 1 | } | |
| 110 | 1 | } | |
| 111 | |||
| 112 | // MinimumPartLoadRatio | ||
| 113 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
|
2 | if ((value = modelObject.minimumPartLoadRatio())) { |
| 114 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(Chiller_Electric_ReformulatedEIRFields::MinimumPartLoadRatio, value.get()); |
| 115 | } | ||
| 116 | |||
| 117 | // MaximumPartLoadRatio | ||
| 118 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
|
2 | if ((value = modelObject.maximumPartLoadRatio())) { |
| 119 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(Chiller_Electric_ReformulatedEIRFields::MaximumPartLoadRatio, value.get()); |
| 120 | } | ||
| 121 | |||
| 122 | // OptimumPartLoadRatio | ||
| 123 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
|
2 | if ((value = modelObject.optimumPartLoadRatio())) { |
| 124 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(Chiller_Electric_ReformulatedEIRFields::OptimumPartLoadRatio, value.get()); |
| 125 | } | ||
| 126 | |||
| 127 | // MinimumUnloadingRatio | ||
| 128 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
|
2 | if ((value = modelObject.minimumUnloadingRatio())) { |
| 129 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(Chiller_Electric_ReformulatedEIRFields::MinimumUnloadingRatio, value.get()); |
| 130 | } | ||
| 131 | |||
| 132 | // ChilledWaterInletNodeName | ||
| 133 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<ModelObject> mo = modelObject.supplyInletModelObject()) { |
| 134 |
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>()) { |
| 135 |
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_ReformulatedEIRFields::ChilledWaterInletNodeName, node->name().get()); |
| 136 | 1 | } | |
| 137 | 1 | } | |
| 138 | |||
| 139 | // ChilledWaterOutletNodeName | ||
| 140 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<ModelObject> mo = modelObject.supplyOutletModelObject()) { |
| 141 |
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>()) { |
| 142 |
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_ReformulatedEIRFields::ChilledWaterOutletNodeName, node->name().get()); |
| 143 | 1 | } | |
| 144 | 1 | } | |
| 145 | |||
| 146 | // CondenserInletNodeName | ||
| 147 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<ModelObject> mo = modelObject.demandInletModelObject()) { |
| 148 |
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>()) { |
| 149 |
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_ReformulatedEIRFields::CondenserInletNodeName, node->name().get()); |
| 150 | 1 | } | |
| 151 | 1 | } | |
| 152 | |||
| 153 | // CondenserOutletNodeName | ||
| 154 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<ModelObject> mo = modelObject.demandOutletModelObject()) { |
| 155 |
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>()) { |
| 156 |
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_ReformulatedEIRFields::CondenserOutletNodeName, node->name().get()); |
| 157 | 1 | } | |
| 158 | 1 | } | |
| 159 | |||
| 160 | // FractionofCompressorElectricConsumptionRejectedbyCondenser | ||
| 161 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
|
2 | if ((value = modelObject.fractionofCompressorElectricConsumptionRejectedbyCondenser())) { |
| 162 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(Chiller_Electric_ReformulatedEIRFields::FractionofCompressorElectricConsumptionRejectedbyCondenser, value.get()); |
| 163 | } | ||
| 164 | |||
| 165 | // LeavingChilledWaterLowerTemperatureLimit | ||
| 166 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
|
2 | if ((value = modelObject.leavingChilledWaterLowerTemperatureLimit())) { |
| 167 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(Chiller_Electric_ReformulatedEIRFields::LeavingChilledWaterLowerTemperatureLimit, value.get()); |
| 168 | } | ||
| 169 | |||
| 170 | // ChillerFlowModeType | ||
| 171 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 8 taken 1 time.
✗ Branch 9 not taken.
|
2 | if ((s = modelObject.chillerFlowMode())) { |
| 172 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setString(Chiller_Electric_ReformulatedEIRFields::ChillerFlowModeType, s.get()); |
| 173 | } | ||
| 174 | |||
| 175 | // DesignHeatRecoveryWaterFlowRate: If filled, then the Nodes are **required**... | ||
| 176 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✗ Branch 5 not taken.
|
2 | if (modelObject.heatRecoveryLoop()) { |
| 177 |
2/3✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
|
1 | if (modelObject.isDesignHeatRecoveryWaterFlowRateAutosized()) { |
| 178 | ✗ | idfObject.setString(Chiller_Electric_ReformulatedEIRFields::DesignHeatRecoveryWaterFlowRate, "Autosize"); | |
| 179 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | } else if ((value = modelObject.designHeatRecoveryWaterFlowRate())) { |
| 180 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(Chiller_Electric_ReformulatedEIRFields::DesignHeatRecoveryWaterFlowRate, value.get()); |
| 181 | } | ||
| 182 | |||
| 183 | // HeatRecoveryInletNodeName | ||
| 184 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<ModelObject> mo = modelObject.tertiaryInletModelObject()) { |
| 185 |
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>()) { |
| 186 |
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_ReformulatedEIRFields::HeatRecoveryInletNodeName, node->name().get()); |
| 187 | 1 | } | |
| 188 | 1 | } | |
| 189 | |||
| 190 | // HeatRecoveryOutletNodeName | ||
| 191 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<ModelObject> mo = modelObject.tertiaryOutletModelObject()) { |
| 192 |
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>()) { |
| 193 |
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_ReformulatedEIRFields::HeatRecoveryOutletNodeName, node->name().get()); |
| 194 | 1 | } | |
| 195 | 1 | } | |
| 196 | } | ||
| 197 | |||
| 198 | // SizingFactor | ||
| 199 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
|
2 | if ((value = modelObject.sizingFactor())) { |
| 200 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(Chiller_Electric_ReformulatedEIRFields::SizingFactor, value.get()); |
| 201 | } | ||
| 202 | |||
| 203 | // CondenserHeatRecoveryRelativeCapacityFraction | ||
| 204 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(Chiller_Electric_ReformulatedEIRFields::CondenserHeatRecoveryRelativeCapacityFraction, |
| 205 | modelObject.condenserHeatRecoveryRelativeCapacityFraction()); | ||
| 206 | |||
| 207 | // HeatRecoveryInletHighTemperatureLimitSchedule Name | ||
| 208 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (auto _schedule = modelObject.heatRecoveryInletHighTemperatureLimitSchedule()) { |
| 209 |
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_ReformulatedEIRFields::HeatRecoveryInletHighTemperatureLimitScheduleName, _schedule->name().get()); |
| 210 | 1 | } | |
| 211 | |||
| 212 | // HeatRecoveryLeavingTemperatureSetpointNodeName | ||
| 213 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (auto _node = modelObject.heatRecoveryLeavingTemperatureSetpointNode()) { |
| 214 |
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_ReformulatedEIRFields::HeatRecoveryLeavingTemperatureSetpointNodeName, _node->name().get()); |
| 215 | 1 | } | |
| 216 | |||
| 217 | // EndUseSubcategory | ||
| 218 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 8 taken 1 time.
✗ Branch 9 not taken.
|
2 | if ((s = modelObject.endUseSubcategory())) { |
| 219 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setString(Chiller_Electric_ReformulatedEIRFields::EndUseSubcategory, s.get()); |
| 220 | } | ||
| 221 | |||
| 222 | // Condenser Flow Control | ||
| 223 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setString(Chiller_Electric_ReformulatedEIRFields::CondenserFlowControl, modelObject.condenserFlowControl()); |
| 224 | |||
| 225 | // Condenser Loop Flow Rate Fraction Function of Loop Part Load Ratio Curve Name | ||
| 226 | 1 | if (boost::optional<Curve> condenserLoopFlowRateFractionFunctionofLoopPartLoadRatioCurve_ = | |
| 227 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | modelObject.condenserLoopFlowRateFractionFunctionofLoopPartLoadRatioCurve()) { |
| 228 |
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())) { |
| 229 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString(Chiller_Electric_ReformulatedEIRFields::CondenserLoopFlowRateFractionFunctionofLoopPartLoadRatioCurveName, |
| 230 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 231 | 1 | } | |
| 232 | 1 | } | |
| 233 | |||
| 234 | // Temperature Difference Across Condenser Schedule Name | ||
| 235 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (auto _schedule = modelObject.temperatureDifferenceAcrossCondenserSchedule()) { |
| 236 |
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_ReformulatedEIRFields::TemperatureDifferenceAcrossCondenserScheduleName, _schedule->name().get()); |
| 237 | 1 | } | |
| 238 | |||
| 239 | // Condenser Minimum Flow Fraction | ||
| 240 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(Chiller_Electric_ReformulatedEIRFields::CondenserMinimumFlowFraction, modelObject.condenserMinimumFlowFraction()); |
| 241 | |||
| 242 | // Thermosiphon Capacity Fraction Curve Name | ||
| 243 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<Curve> thermosiphonCapacityFractionCurve_ = modelObject.thermosiphonCapacityFractionCurve()) { |
| 244 |
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())) { |
| 245 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | idfObject.setString(Chiller_Electric_ReformulatedEIRFields::ThermosiphonCapacityFractionCurveName, wo_->nameString()); |
| 246 | 1 | } | |
| 247 | 1 | } | |
| 248 | |||
| 249 | // Thermosiphon Minimum Temperature Difference | ||
| 250 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(Chiller_Electric_ReformulatedEIRFields::ThermosiphonMinimumTemperatureDifference, |
| 251 | modelObject.thermosiphonMinimumTemperatureDifference()); | ||
| 252 | |||
| 253 |
1/1✓ Branch 1 taken 1 time.
|
2 | return boost::optional<IdfObject>(idfObject); |
| 254 | 1 | } | |
| 255 | |||
| 256 | } // namespace energyplus | ||
| 257 | |||
| 258 | } // namespace openstudio | ||
| 259 |