src/energyplus/ForwardTranslator/ForwardTranslateHeatPumpPlantLoopEIRHeating.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/HeatPumpPlantLoopEIRCooling.hpp" | ||
| 13 | #include "../../model/HeatPumpPlantLoopEIRCooling_Impl.hpp" | ||
| 14 | #include "../../model/HeatPumpPlantLoopEIRHeating.hpp" | ||
| 15 | #include "../../model/HeatPumpPlantLoopEIRHeating_Impl.hpp" | ||
| 16 | #include "../../model/CurveBiquadratic.hpp" | ||
| 17 | #include "../../model/CurveQuadratic.hpp" | ||
| 18 | |||
| 19 | #include "../../utilities/core/Logger.hpp" | ||
| 20 | #include "../../utilities/core/Assert.hpp" | ||
| 21 | #include <utilities/idd/HeatPump_PlantLoop_EIR_Heating_FieldEnums.hxx> | ||
| 22 | #include "../../utilities/idd/IddEnums.hpp" | ||
| 23 | #include <utilities/idd/IddEnums.hxx> | ||
| 24 | #include <utilities/idd/IddFactory.hxx> | ||
| 25 | |||
| 26 | using namespace openstudio::model; | ||
| 27 | |||
| 28 | using namespace std; | ||
| 29 | |||
| 30 | namespace openstudio { | ||
| 31 | |||
| 32 | namespace energyplus { | ||
| 33 | |||
| 34 | 3 | boost::optional<IdfObject> ForwardTranslator::translateHeatPumpPlantLoopEIRHeating(HeatPumpPlantLoopEIRHeating& modelObject) { | |
| 35 | // createRegisterAndNameIdfObject will add it to m_map, m_idfObjects, and name it | ||
| 36 | // The fact that it is added to m_map will avoid a recursion issue when it has a companion cooling coil (both FT methods call each other) | ||
| 37 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | IdfObject idfObject = createRegisterAndNameIdfObject(openstudio::IddObjectType::HeatPump_PlantLoop_EIR_Heating, modelObject); |
| 38 | |||
| 39 | 3 | boost::optional<double> optvalue; | |
| 40 | |||
| 41 |
2/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 3 times.
✗ Branch 4 not taken.
|
6 | if (auto value = modelObject.supplyOutletModelObject()) { |
| 42 |
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(HeatPump_PlantLoop_EIR_HeatingFields::LoadSideOutletNodeName, value->name().get()); |
| 43 | 3 | } | |
| 44 | |||
| 45 |
2/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 3 times.
✗ Branch 4 not taken.
|
6 | if (auto value = modelObject.supplyInletModelObject()) { |
| 46 |
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(HeatPump_PlantLoop_EIR_HeatingFields::LoadSideInletNodeName, value->name().get()); |
| 47 | 3 | } | |
| 48 | |||
| 49 |
1/1✓ Branch 1 taken 3 times.
|
3 | std::string condenserType = modelObject.condenserType(); |
| 50 |
1/1✓ Branch 1 taken 3 times.
|
3 | idfObject.setString(HeatPump_PlantLoop_EIR_HeatingFields::CondenserType, condenserType); |
| 51 | |||
| 52 |
4/4✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 2 times.
✓ Branch 8 taken 1 time.
|
6 | if (openstudio::istringEqual(condenserType, "WaterSource")) { |
| 53 | |||
| 54 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (auto value = modelObject.demandOutletModelObject()) { |
| 55 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
|
2 | idfObject.setString(HeatPump_PlantLoop_EIR_HeatingFields::SourceSideOutletNodeName, value->name().get()); |
| 56 | 2 | } | |
| 57 | |||
| 58 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (auto value = modelObject.demandInletModelObject()) { |
| 59 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
|
2 | idfObject.setString(HeatPump_PlantLoop_EIR_HeatingFields::SourceSideInletNodeName, value->name().get()); |
| 60 | 2 | } | |
| 61 | |||
| 62 | } else { | ||
| 63 | // AirSource | ||
| 64 | { | ||
| 65 | // Name the source side outlet node | ||
| 66 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | auto name = modelObject.nameString() + " Outlet Node For Source Side"; |
| 67 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString(HeatPump_PlantLoop_EIR_HeatingFields::SourceSideOutletNodeName, name); |
| 68 | 1 | } | |
| 69 | |||
| 70 | { | ||
| 71 | // Create an OutdoorAir:NodeList for the source side inlet conditions to be set directly from weather file | ||
| 72 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | IdfObject oaNodeListIdf(openstudio::IddObjectType::OutdoorAir_NodeList); |
| 73 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | auto name = modelObject.nameString() + " Inlet Node For Source Side"; |
| 74 |
1/1✓ Branch 1 taken 1 time.
|
1 | oaNodeListIdf.setString(0, name); |
| 75 |
1/1✓ Branch 1 taken 1 time.
|
1 | m_idfObjects.push_back(oaNodeListIdf); |
| 76 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString(HeatPump_PlantLoop_EIR_HeatingFields::SourceSideInletNodeName, name); |
| 77 | 1 | } | |
| 78 | } | ||
| 79 | |||
| 80 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<HeatPumpPlantLoopEIRCooling> companion = modelObject.companionCoolingHeatPump(); |
| 81 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | if (companion) { |
| 82 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | boost::optional<IdfObject> _companion = translateAndMapModelObject(companion.get()); |
| 83 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | if (_companion) { |
| 84 |
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(HeatPump_PlantLoop_EIR_HeatingFields::CompanionHeatPumpName, _companion->name().get()); |
| 85 | } | ||
| 86 | 3 | } | |
| 87 | |||
| 88 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 2 times.
|
3 | if (modelObject.isLoadSideReferenceFlowRateAutosized()) { |
| 89 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | idfObject.setString(HeatPump_PlantLoop_EIR_HeatingFields::LoadSideReferenceFlowRate, "Autosize"); |
| 90 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | } else if ((optvalue = modelObject.loadSideReferenceFlowRate())) { |
| 91 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | idfObject.setDouble(HeatPump_PlantLoop_EIR_HeatingFields::LoadSideReferenceFlowRate, optvalue.get()); |
| 92 | } | ||
| 93 | |||
| 94 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 2 times.
|
3 | if (modelObject.isSourceSideReferenceFlowRateAutosized()) { |
| 95 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | idfObject.setString(HeatPump_PlantLoop_EIR_HeatingFields::SourceSideReferenceFlowRate, "Autosize"); |
| 96 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | } else if ((optvalue = modelObject.sourceSideReferenceFlowRate())) { |
| 97 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | idfObject.setDouble(HeatPump_PlantLoop_EIR_HeatingFields::SourceSideReferenceFlowRate, optvalue.get()); |
| 98 | } | ||
| 99 | |||
| 100 |
2/3✓ Branch 1 taken 3 times.
✗ Branch 4 not taken.
✓ Branch 5 taken 3 times.
|
6 | if (modelObject.heatRecoveryLoop()) { |
| 101 | ✗ | if (modelObject.isHeatRecoveryReferenceFlowRateAutosized()) { | |
| 102 | ✗ | idfObject.setString(HeatPump_PlantLoop_EIR_HeatingFields::HeatRecoveryReferenceFlowRate, "Autosize"); | |
| 103 | ✗ | } else if ((optvalue = modelObject.heatRecoveryReferenceFlowRate())) { | |
| 104 | ✗ | idfObject.setDouble(HeatPump_PlantLoop_EIR_HeatingFields::HeatRecoveryReferenceFlowRate, optvalue.get()); | |
| 105 | } | ||
| 106 | |||
| 107 | ✗ | if (boost::optional<ModelObject> mo = modelObject.tertiaryInletModelObject()) { | |
| 108 | ✗ | if (boost::optional<Node> node = mo->optionalCast<Node>()) { | |
| 109 | ✗ | idfObject.setString(HeatPump_PlantLoop_EIR_HeatingFields::HeatRecoveryInletNodeName, node->name().get()); | |
| 110 | ✗ | } | |
| 111 | ✗ | } | |
| 112 | |||
| 113 | ✗ | if (boost::optional<ModelObject> mo = modelObject.tertiaryOutletModelObject()) { | |
| 114 | ✗ | if (boost::optional<Node> node = mo->optionalCast<Node>()) { | |
| 115 | ✗ | idfObject.setString(HeatPump_PlantLoop_EIR_HeatingFields::HeatRecoveryOutletNodeName, node->name().get()); | |
| 116 | ✗ | } | |
| 117 | ✗ | } | |
| 118 | } | ||
| 119 | |||
| 120 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 2 times.
|
3 | if (modelObject.isReferenceCapacityAutosized()) { |
| 121 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | idfObject.setString(HeatPump_PlantLoop_EIR_HeatingFields::ReferenceCapacity, "Autosize"); |
| 122 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | } else if ((optvalue = modelObject.referenceCapacity())) { |
| 123 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | idfObject.setDouble(HeatPump_PlantLoop_EIR_HeatingFields::ReferenceCapacity, optvalue.get()); |
| 124 | } | ||
| 125 | |||
| 126 | { | ||
| 127 |
1/1✓ Branch 1 taken 3 times.
|
3 | auto value = modelObject.referenceCoefficientofPerformance(); |
| 128 |
1/1✓ Branch 1 taken 3 times.
|
3 | idfObject.setDouble(HeatPump_PlantLoop_EIR_HeatingFields::ReferenceCoefficientofPerformance, value); |
| 129 | } | ||
| 130 | |||
| 131 | { | ||
| 132 |
1/1✓ Branch 1 taken 3 times.
|
3 | auto value = modelObject.sizingFactor(); |
| 133 |
1/1✓ Branch 1 taken 3 times.
|
3 | idfObject.setDouble(HeatPump_PlantLoop_EIR_HeatingFields::SizingFactor, value); |
| 134 | } | ||
| 135 | |||
| 136 | { | ||
| 137 |
1/1✓ Branch 1 taken 3 times.
|
3 | auto curve = modelObject.capacityModifierFunctionofTemperatureCurve(); |
| 138 |
2/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 3 times.
✗ Branch 4 not taken.
|
6 | if (auto _curve = translateAndMapModelObject(curve)) { |
| 139 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
3 | idfObject.setString(HeatPump_PlantLoop_EIR_HeatingFields::CapacityModifierFunctionofTemperatureCurveName, _curve->nameString()); |
| 140 | 3 | } | |
| 141 | 3 | } | |
| 142 | |||
| 143 | { | ||
| 144 |
1/1✓ Branch 1 taken 3 times.
|
3 | auto curve = modelObject.electricInputtoOutputRatioModifierFunctionofTemperatureCurve(); |
| 145 |
2/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 3 times.
✗ Branch 4 not taken.
|
6 | if (auto _curve = translateAndMapModelObject(curve)) { |
| 146 |
1/1✓ Branch 1 taken 3 times.
|
3 | idfObject.setString(HeatPump_PlantLoop_EIR_HeatingFields::ElectricInputtoOutputRatioModifierFunctionofTemperatureCurveName, |
| 147 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | _curve->nameString()); |
| 148 | 3 | } | |
| 149 | 3 | } | |
| 150 | |||
| 151 | { | ||
| 152 |
1/1✓ Branch 1 taken 3 times.
|
3 | auto curve = modelObject.electricInputtoOutputRatioModifierFunctionofPartLoadRatioCurve(); |
| 153 |
2/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 3 times.
✗ Branch 4 not taken.
|
6 | if (auto _curve = translateAndMapModelObject(curve)) { |
| 154 |
1/1✓ Branch 1 taken 3 times.
|
3 | idfObject.setString(HeatPump_PlantLoop_EIR_HeatingFields::ElectricInputtoOutputRatioModifierFunctionofPartLoadRatioCurveName, |
| 155 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | _curve->nameString()); |
| 156 | 3 | } | |
| 157 | 3 | } | |
| 158 | |||
| 159 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setDouble(HeatPump_PlantLoop_EIR_HeatingFields::HeatingToCoolingCapacitySizingRatio, modelObject.heatingToCoolingCapacitySizingRatio()); |
| 160 | |||
| 161 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setString(HeatPump_PlantLoop_EIR_HeatingFields::HeatPumpSizingMethod, modelObject.heatPumpSizingMethod()); |
| 162 | |||
| 163 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setString(HeatPump_PlantLoop_EIR_HeatingFields::ControlType, modelObject.controlType()); |
| 164 | |||
| 165 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setString(HeatPump_PlantLoop_EIR_HeatingFields::FlowMode, modelObject.flowMode()); |
| 166 | |||
| 167 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setDouble(HeatPump_PlantLoop_EIR_HeatingFields::MinimumPartLoadRatio, modelObject.minimumPartLoadRatio()); |
| 168 | |||
| 169 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setDouble(HeatPump_PlantLoop_EIR_HeatingFields::MinimumSourceInletTemperature, modelObject.minimumSourceInletTemperature()); |
| 170 | |||
| 171 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setDouble(HeatPump_PlantLoop_EIR_HeatingFields::MaximumSourceInletTemperature, modelObject.maximumSourceInletTemperature()); |
| 172 | |||
| 173 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 2 times.
|
6 | if (boost::optional<model::Curve> curve = modelObject.minimumSupplyWaterTemperatureCurve()) { |
| 174 |
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> _curve = translateAndMapModelObject(curve.get())) { |
| 175 |
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(HeatPump_PlantLoop_EIR_HeatingFields::MinimumSupplyWaterTemperatureCurveName, _curve->name().get()); |
| 176 | 1 | } | |
| 177 | 3 | } | |
| 178 | |||
| 179 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 2 times.
|
6 | if (boost::optional<model::Curve> curve = modelObject.maximumSupplyWaterTemperatureCurve()) { |
| 180 |
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> _curve = translateAndMapModelObject(curve.get())) { |
| 181 |
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(HeatPump_PlantLoop_EIR_HeatingFields::MaximumSupplyWaterTemperatureCurveName, _curve->name().get()); |
| 182 | 1 | } | |
| 183 | 3 | } | |
| 184 | |||
| 185 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 2 times.
|
6 | if (boost::optional<model::Curve> curve = modelObject.dryOutdoorCorrectionFactorCurve()) { |
| 186 |
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> _curve = translateAndMapModelObject(curve.get())) { |
| 187 |
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(HeatPump_PlantLoop_EIR_HeatingFields::DryOutdoorCorrectionFactorCurveName, _curve->name().get()); |
| 188 | 1 | } | |
| 189 | 3 | } | |
| 190 | |||
| 191 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setDouble(HeatPump_PlantLoop_EIR_HeatingFields::MaximumOutdoorDryBulbTemperatureForDefrostOperation, |
| 192 | modelObject.maximumOutdoorDryBulbTemperatureForDefrostOperation()); | ||
| 193 | |||
| 194 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setString(HeatPump_PlantLoop_EIR_HeatingFields::HeatPumpDefrostControl, modelObject.heatPumpDefrostControl()); |
| 195 | |||
| 196 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setDouble(HeatPump_PlantLoop_EIR_HeatingFields::HeatPumpDefrostTimePeriodFraction, modelObject.heatPumpDefrostTimePeriodFraction()); |
| 197 | |||
| 198 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 2 times.
|
6 | if (boost::optional<model::Curve> curve = modelObject.defrostEnergyInputRatioFunctionofTemperatureCurve()) { |
| 199 |
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> _curve = translateAndMapModelObject(curve.get())) { |
| 200 |
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(HeatPump_PlantLoop_EIR_HeatingFields::DefrostEnergyInputRatioFunctionofTemperatureCurveName, _curve->name().get()); |
| 201 | 1 | } | |
| 202 | 3 | } | |
| 203 | |||
| 204 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 2 times.
|
6 | if (boost::optional<model::Curve> curve = modelObject.timedEmpiricalDefrostFrequencyCurve()) { |
| 205 |
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> _curve = translateAndMapModelObject(curve.get())) { |
| 206 |
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(HeatPump_PlantLoop_EIR_HeatingFields::TimedEmpiricalDefrostFrequencyCurveName, _curve->name().get()); |
| 207 | 1 | } | |
| 208 | 3 | } | |
| 209 | |||
| 210 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 2 times.
|
6 | if (boost::optional<model::Curve> curve = modelObject.timedEmpiricalDefrostHeatLoadPenaltyCurve()) { |
| 211 |
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> _curve = translateAndMapModelObject(curve.get())) { |
| 212 |
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(HeatPump_PlantLoop_EIR_HeatingFields::TimedEmpiricalDefrostHeatLoadPenaltyCurveName, _curve->name().get()); |
| 213 | 1 | } | |
| 214 | 3 | } | |
| 215 | |||
| 216 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 2 times.
|
6 | if (boost::optional<model::Curve> curve = modelObject.timedEmpiricalDefrostHeatInputEnergyFractionCurve()) { |
| 217 |
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> _curve = translateAndMapModelObject(curve.get())) { |
| 218 |
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(HeatPump_PlantLoop_EIR_HeatingFields::TimedEmpiricalDefrostHeatInputEnergyFractionCurveName, _curve->name().get()); |
| 219 | 1 | } | |
| 220 | 3 | } | |
| 221 | |||
| 222 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | idfObject.setDouble(HeatPump_PlantLoop_EIR_HeatingFields::MinimumHeatRecoveryOutletTemperature, |
| 223 | modelObject.minimumHeatRecoveryOutletTemperature()); | ||
| 224 | |||
| 225 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 2 times.
|
6 | if (boost::optional<model::Curve> curve = modelObject.heatRecoveryCapacityModifierFunctionofTemperatureCurve()) { |
| 226 |
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> _curve = translateAndMapModelObject(curve.get())) { |
| 227 |
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(HeatPump_PlantLoop_EIR_HeatingFields::HeatRecoveryCapacityModifierFunctionofTemperatureCurveName, _curve->name().get()); |
| 228 | 1 | } | |
| 229 | 3 | } | |
| 230 | |||
| 231 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 2 times.
|
6 | if (boost::optional<model::Curve> curve = modelObject.heatRecoveryElectricInputtoOutputRatioModifierFunctionofTemperatureCurve()) { |
| 232 |
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> _curve = translateAndMapModelObject(curve.get())) { |
| 233 | 1 | idfObject.setString(HeatPump_PlantLoop_EIR_HeatingFields::HeatRecoveryElectricInputtoOutputRatioModifierFunctionofTemperatureCurveName, | |
| 234 |
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()); |
| 235 | 1 | } | |
| 236 | 3 | } | |
| 237 | |||
| 238 |
1/1✓ Branch 1 taken 3 times.
|
6 | return idfObject; |
| 239 | 3 | } | |
| 240 | |||
| 241 | } // namespace energyplus | ||
| 242 | |||
| 243 | } // namespace openstudio | ||
| 244 |