src/energyplus/ForwardTranslator/ForwardTranslateCoilCoolingDXSingleSpeedThermalStorage.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 | |||
| 9 | #include "../../model/CoilCoolingDXSingleSpeedThermalStorage.hpp" | ||
| 10 | |||
| 11 | #include "../../model/Schedule.hpp" | ||
| 12 | #include "../../model/Schedule_Impl.hpp" | ||
| 13 | #include "../../model/Node.hpp" | ||
| 14 | #include "../../model/Node_Impl.hpp" | ||
| 15 | #include "../../model/Curve.hpp" | ||
| 16 | #include "../../model/Curve_Impl.hpp" | ||
| 17 | // #include "../../model/WaterStorageTank.hpp" | ||
| 18 | // #include "../../model/WaterStorageTank_Impl.hpp" | ||
| 19 | |||
| 20 | #include <utilities/idd/CoilSystem_Cooling_DX_FieldEnums.hxx> | ||
| 21 | #include <utilities/idd/Coil_Cooling_DX_SingleSpeed_ThermalStorage_FieldEnums.hxx> | ||
| 22 | #include <utilities/idd/FluidProperties_Name_FieldEnums.hxx> | ||
| 23 | #include <utilities/idd/IddEnums.hxx> | ||
| 24 | |||
| 25 | using namespace openstudio::model; | ||
| 26 | |||
| 27 | namespace openstudio { | ||
| 28 | |||
| 29 | namespace energyplus { | ||
| 30 | |||
| 31 | boost::optional<IdfObject> | ||
| 32 | 2 | ForwardTranslator::translateCoilCoolingDXSingleSpeedThermalStorageWithoutUnitary(model::CoilCoolingDXSingleSpeedThermalStorage& modelObject) { | |
| 33 | // Instantiate an IdfObject of the class to store the values | ||
| 34 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | IdfObject idfObject = createRegisterAndNameIdfObject(openstudio::IddObjectType::Coil_Cooling_DX_SingleSpeed_ThermalStorage, modelObject); |
| 35 | |||
| 36 | // Availability Schedule Name: Required Object | ||
| 37 |
1/1✓ Branch 1 taken 2 times.
|
2 | Schedule availabilitySchedule = modelObject.availabilitySchedule(); |
| 38 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (boost::optional<IdfObject> wo_ = translateAndMapModelObject(availabilitySchedule)) { |
| 39 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::AvailabilityScheduleName, wo_->nameString()); |
| 40 | 2 | } | |
| 41 | |||
| 42 | // Operating Mode Control Method: Required String | ||
| 43 |
1/1✓ Branch 1 taken 2 times.
|
2 | const std::string operatingModeControlMethod = modelObject.operatingModeControlMethod(); |
| 44 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::OperatingModeControlMethod, operatingModeControlMethod); |
| 45 | |||
| 46 | // Operation Mode Control Schedule Name: Optional Object | ||
| 47 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | if (boost::optional<Schedule> operationModeControlSchedule_ = modelObject.operationModeControlSchedule()) { |
| 48 |
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(operationModeControlSchedule_.get())) { |
| 49 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::OperationModeControlScheduleName, wo_->nameString()); |
| 50 | 1 | } | |
| 51 | 2 | } | |
| 52 | |||
| 53 | // Storage Type: Required String | ||
| 54 |
1/1✓ Branch 1 taken 2 times.
|
2 | const std::string storageType = modelObject.storageType(); |
| 55 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::StorageType, storageType); |
| 56 | |||
| 57 |
3/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 8 taken 2 times.
✗ Branch 9 not taken.
|
4 | if (boost::optional<std::string> s_ = modelObject.storageType()) { |
| 58 |
17/28✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 9 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 12 taken 1 time.
✓ Branch 15 taken 1 time.
✓ Branch 18 taken 1 time.
✗ Branch 20 not taken.
✓ Branch 21 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 23 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 26 taken 1 time.
✓ Branch 27 taken 2 times.
✗ Branch 28 not taken.
✓ Branch 30 taken 2 times.
✗ Branch 31 not taken.
✓ Branch 32 taken 1 time.
✓ Branch 33 taken 1 time.
✗ Branch 34 not taken.
✗ Branch 35 not taken.
✗ Branch 37 not taken.
✗ Branch 38 not taken.
✗ Branch 39 not taken.
✗ Branch 40 not taken.
✗ Branch 42 not taken.
✗ Branch 43 not taken.
|
8 | if (istringEqual(s_.get(), "PropyleneGlycol") || istringEqual(s_.get(), "EthyleneGlycol")) { |
| 59 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::StorageType, "UserDefinedFluidType"); |
| 60 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | boost::optional<int> gc = modelObject.glycolConcentration(); |
| 61 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (gc) { |
| 62 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | boost::optional<IdfObject> fluidProperties = createFluidProperties(s_.get(), gc.get()); |
| 63 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (fluidProperties) { |
| 64 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | boost::optional<std::string> fluidPropertiesName = fluidProperties->getString(FluidProperties_NameFields::FluidName, true); |
| 65 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (fluidPropertiesName) { |
| 66 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::UserDefinedFluidType, fluidPropertiesName.get()); |
| 67 | } | ||
| 68 | 1 | } | |
| 69 | 1 | } | |
| 70 | } else { | ||
| 71 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::StorageType, s_.get()); |
| 72 | } | ||
| 73 | 2 | } | |
| 74 | |||
| 75 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | if (modelObject.isFluidStorageVolumeAutosized()) { |
| 76 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::FluidStorageVolume, "Autosize"); |
| 77 | } else { | ||
| 78 | // Fluid Storage Volume: boost::optional<double> | ||
| 79 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<double> fluidStorageVolume_ = modelObject.fluidStorageVolume()) { |
| 80 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::FluidStorageVolume, fluidStorageVolume_.get()); |
| 81 | } | ||
| 82 | } | ||
| 83 | |||
| 84 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | if (modelObject.isIceStorageCapacityAutosized()) { |
| 85 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::IceStorageCapacity, "Autosize"); |
| 86 | } else { | ||
| 87 | // Ice Storage Capacity: boost::optional<double> | ||
| 88 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<double> iceStorageCapacity_ = modelObject.iceStorageCapacity()) { |
| 89 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::IceStorageCapacity, iceStorageCapacity_.get()); |
| 90 | } | ||
| 91 | } | ||
| 92 | |||
| 93 | // Storage Capacity Sizing Factor: boost::optional<double> | ||
| 94 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (boost::optional<double> storageCapacitySizingFactor_ = modelObject.storageCapacitySizingFactor()) { |
| 95 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::StorageCapacitySizingFactor, storageCapacitySizingFactor_.get()); |
| 96 | } | ||
| 97 | |||
| 98 | // Storage Tank Ambient Temperature Node Name: Required Node | ||
| 99 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | std::string storageTankAmbientTemperatureNodeName(modelObject.nameString() + " Storage Tank Ambient Temperature Node"); |
| 100 | // Create an OutdoorAir:NodeList for the storage tank conditions to be set directly from weather file | ||
| 101 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | IdfObject oaNodeListIdf(openstudio::IddObjectType::OutdoorAir_NodeList); |
| 102 |
1/1✓ Branch 1 taken 2 times.
|
2 | oaNodeListIdf.setString(0, storageTankAmbientTemperatureNodeName); |
| 103 |
1/1✓ Branch 1 taken 2 times.
|
2 | m_idfObjects.push_back(oaNodeListIdf); |
| 104 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::StorageTankAmbientTemperatureNodeName, |
| 105 | storageTankAmbientTemperatureNodeName); | ||
| 106 | |||
| 107 | // Storage Tank to Ambient U-value Times Area Heat Transfer Coefficient: Required Double | ||
| 108 | const double storageTanktoAmbientUvalueTimesAreaHeatTransferCoefficient = | ||
| 109 |
1/1✓ Branch 1 taken 2 times.
|
2 | modelObject.storageTanktoAmbientUvalueTimesAreaHeatTransferCoefficient(); |
| 110 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::StorageTanktoAmbientUvalueTimesAreaHeatTransferCoefficient, |
| 111 | storageTanktoAmbientUvalueTimesAreaHeatTransferCoefficient); | ||
| 112 | |||
| 113 | // Fluid Storage Tank Rating Temperature: Required Double | ||
| 114 |
1/1✓ Branch 1 taken 2 times.
|
2 | const double fluidStorageTankRatingTemperature = modelObject.fluidStorageTankRatingTemperature(); |
| 115 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::FluidStorageTankRatingTemperature, fluidStorageTankRatingTemperature); |
| 116 | |||
| 117 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | if (modelObject.isRatedEvaporatorAirFlowRateAutosized()) { |
| 118 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::RatedEvaporatorAirFlowRate, "Autosize"); |
| 119 | } else { | ||
| 120 | // Rated Evaporator Air Flow Rate: boost::optional<double> | ||
| 121 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<double> ratedEvaporatorAirFlowRate_ = modelObject.ratedEvaporatorAirFlowRate()) { |
| 122 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::RatedEvaporatorAirFlowRate, ratedEvaporatorAirFlowRate_.get()); |
| 123 | } | ||
| 124 | } | ||
| 125 | |||
| 126 | // Evaporator Air Inlet Node Name: Required Node | ||
| 127 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | if (auto mo = modelObject.inletModelObject()) { |
| 128 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | if (auto node = mo->optionalCast<Node>()) { |
| 129 |
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_DX_SingleSpeed_ThermalStorageFields::EvaporatorAirInletNodeName, node->name().get()); |
| 130 | 1 | } | |
| 131 | 2 | } | |
| 132 | |||
| 133 | // Evaporator Air Outlet Node Name: Required Node | ||
| 134 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | if (auto mo = modelObject.outletModelObject()) { |
| 135 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | if (auto node = mo->optionalCast<Node>()) { |
| 136 |
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_DX_SingleSpeed_ThermalStorageFields::EvaporatorAirOutletNodeName, node->name().get()); |
| 137 | 1 | } | |
| 138 | 2 | } | |
| 139 | |||
| 140 |
1/1✓ Branch 1 taken 2 times.
|
2 | bool coolingOnlyModeAvailable = modelObject.coolingOnlyModeAvailable(); |
| 141 |
1/1✓ Branch 1 taken 2 times.
|
2 | bool coolingAndChargeModeAvailable = modelObject.coolingAndChargeModeAvailable(); |
| 142 |
1/1✓ Branch 1 taken 2 times.
|
2 | bool coolingAndDischargeModeAvailable = modelObject.coolingAndDischargeModeAvailable(); |
| 143 |
1/1✓ Branch 1 taken 2 times.
|
2 | bool chargeOnlyModeAvailable = modelObject.chargeOnlyModeAvailable(); |
| 144 |
1/1✓ Branch 1 taken 2 times.
|
2 | bool dischargeOnlyModeAvailable = modelObject.dischargeOnlyModeAvailable(); |
| 145 | |||
| 146 | // Cooling Only Mode Available: Required Boolean | ||
| 147 |
2/2✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
|
2 | if (coolingOnlyModeAvailable) { |
| 148 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingOnlyModeAvailable, "Yes"); |
| 149 | } else { | ||
| 150 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingOnlyModeAvailable, "No"); |
| 151 | } | ||
| 152 | |||
| 153 | // Cooling Only Mode Rated Total Evaporator Cooling Capacity | ||
| 154 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | if (modelObject.isCoolingOnlyModeRatedTotalEvaporatorCoolingCapacityAutosized()) { |
| 155 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingOnlyModeRatedTotalEvaporatorCoolingCapacity, "Autosize"); |
| 156 | } else { | ||
| 157 | 1 | if (boost::optional<double> coolingOnlyModeRatedTotalEvaporatorCoolingCapacity_ = | |
| 158 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | modelObject.coolingOnlyModeRatedTotalEvaporatorCoolingCapacity()) { |
| 159 | 1 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingOnlyModeRatedTotalEvaporatorCoolingCapacity, | |
| 160 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | coolingOnlyModeRatedTotalEvaporatorCoolingCapacity_.get()); |
| 161 | } | ||
| 162 | } | ||
| 163 | |||
| 164 | // Cooling Only Mode Rated Sensible Heat Ratio: Required Double | ||
| 165 |
1/1✓ Branch 1 taken 2 times.
|
2 | const double coolingOnlyModeRatedSensibleHeatRatio = modelObject.coolingOnlyModeRatedSensibleHeatRatio(); |
| 166 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingOnlyModeRatedSensibleHeatRatio, |
| 167 | coolingOnlyModeRatedSensibleHeatRatio); | ||
| 168 | |||
| 169 | // Cooling Only Mode Rated COP: Required Double | ||
| 170 |
1/1✓ Branch 1 taken 2 times.
|
2 | const double coolingOnlyModeRatedCOP = modelObject.coolingOnlyModeRatedCOP(); |
| 171 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingOnlyModeRatedCOP, coolingOnlyModeRatedCOP); |
| 172 | |||
| 173 | // Cooling Only Mode Total Evaporator Cooling Capacity Function of Temperature Curve Name: Optional Object | ||
| 174 | 2 | if (boost::optional<Curve> coolingOnlyModeTotalEvaporatorCoolingCapacityFunctionofTemperatureCurve_ = | |
| 175 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingOnlyModeTotalEvaporatorCoolingCapacityFunctionofTemperatureCurve()) { |
| 176 | 1 | if (boost::optional<IdfObject> wo_ = | |
| 177 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | translateAndMapModelObject(coolingOnlyModeTotalEvaporatorCoolingCapacityFunctionofTemperatureCurve_.get())) { |
| 178 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString( |
| 179 | Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingOnlyModeTotalEvaporatorCoolingCapacityFunctionofTemperatureCurveName, | ||
| 180 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 181 | 1 | } | |
| 182 | 2 | } | |
| 183 | |||
| 184 | // Cooling Only Mode Total Evaporator Cooling Capacity Function of Flow Fraction Curve Name: Optional Object | ||
| 185 | 2 | if (boost::optional<Curve> coolingOnlyModeTotalEvaporatorCoolingCapacityFunctionofFlowFractionCurve_ = | |
| 186 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingOnlyModeTotalEvaporatorCoolingCapacityFunctionofFlowFractionCurve()) { |
| 187 | 1 | if (boost::optional<IdfObject> wo_ = | |
| 188 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | translateAndMapModelObject(coolingOnlyModeTotalEvaporatorCoolingCapacityFunctionofFlowFractionCurve_.get())) { |
| 189 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString( |
| 190 | Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingOnlyModeTotalEvaporatorCoolingCapacityFunctionofFlowFractionCurveName, | ||
| 191 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 192 | 1 | } | |
| 193 | 2 | } | |
| 194 | |||
| 195 | // Cooling Only Mode Energy Input Ratio Function of Temperature Curve Name: Optional Object | ||
| 196 | 2 | if (boost::optional<Curve> coolingOnlyModeEnergyInputRatioFunctionofTemperatureCurve_ = | |
| 197 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingOnlyModeEnergyInputRatioFunctionofTemperatureCurve()) { |
| 198 |
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(coolingOnlyModeEnergyInputRatioFunctionofTemperatureCurve_.get())) { |
| 199 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingOnlyModeEnergyInputRatioFunctionofTemperatureCurveName, |
| 200 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 201 | 1 | } | |
| 202 | 2 | } | |
| 203 | |||
| 204 | // Cooling Only Mode Energy Input Ratio Function of Flow Fraction Curve Name: Optional Object | ||
| 205 | 2 | if (boost::optional<Curve> coolingOnlyModeEnergyInputRatioFunctionofFlowFractionCurve_ = | |
| 206 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingOnlyModeEnergyInputRatioFunctionofFlowFractionCurve()) { |
| 207 |
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(coolingOnlyModeEnergyInputRatioFunctionofFlowFractionCurve_.get())) { |
| 208 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingOnlyModeEnergyInputRatioFunctionofFlowFractionCurveName, |
| 209 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 210 | 1 | } | |
| 211 | 2 | } | |
| 212 | |||
| 213 | // Cooling Only Mode Part Load Fraction Correlation Curve Name: Optional Object | ||
| 214 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | if (boost::optional<Curve> coolingOnlyModePartLoadFractionCorrelationCurve_ = modelObject.coolingOnlyModePartLoadFractionCorrelationCurve()) { |
| 215 |
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(coolingOnlyModePartLoadFractionCorrelationCurve_.get())) { |
| 216 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingOnlyModePartLoadFractionCorrelationCurveName, wo_->nameString()); |
| 217 | 1 | } | |
| 218 | 2 | } | |
| 219 | |||
| 220 | // Cooling Only Mode Sensible Heat Ratio Function of Temperature Curve Name: Optional Object | ||
| 221 | 2 | if (boost::optional<Curve> coolingOnlyModeSensibleHeatRatioFunctionofTemperatureCurve_ = | |
| 222 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingOnlyModeSensibleHeatRatioFunctionofTemperatureCurve()) { |
| 223 |
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(coolingOnlyModeSensibleHeatRatioFunctionofTemperatureCurve_.get())) { |
| 224 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingOnlyModeSensibleHeatRatioFunctionofTemperatureCurveName, |
| 225 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 226 | 1 | } | |
| 227 | 2 | } | |
| 228 | |||
| 229 | // Cooling Only Mode Sensible Heat Ratio Function of Flow Fraction Curve Name: Optional Object | ||
| 230 | 2 | if (boost::optional<Curve> coolingOnlyModeSensibleHeatRatioFunctionofFlowFractionCurve_ = | |
| 231 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingOnlyModeSensibleHeatRatioFunctionofFlowFractionCurve()) { |
| 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> wo_ = translateAndMapModelObject(coolingOnlyModeSensibleHeatRatioFunctionofFlowFractionCurve_.get())) { |
| 233 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingOnlyModeSensibleHeatRatioFunctionofFlowFractionCurveName, |
| 234 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 235 | 1 | } | |
| 236 | 2 | } | |
| 237 | |||
| 238 | // Cooling And Charge Mode Available: Required Boolean | ||
| 239 |
2/2✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
|
2 | if (coolingAndChargeModeAvailable) { |
| 240 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndChargeModeAvailable, "Yes"); |
| 241 | } else { | ||
| 242 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndChargeModeAvailable, "No"); |
| 243 | } | ||
| 244 | |||
| 245 | // Cooling And Charge Mode Rated Total Evaporator Cooling Capacity | ||
| 246 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | if (modelObject.isCoolingAndChargeModeRatedTotalEvaporatorCoolingCapacityAutosized()) { |
| 247 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndChargeModeRatedTotalEvaporatorCoolingCapacity, "Autosize"); |
| 248 | } else { | ||
| 249 | 1 | if (boost::optional<double> coolingAndChargeModeRatedTotalEvaporatorCoolingCapacity_ = | |
| 250 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | modelObject.coolingAndChargeModeRatedTotalEvaporatorCoolingCapacity()) { |
| 251 | 1 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndChargeModeRatedTotalEvaporatorCoolingCapacity, | |
| 252 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | coolingAndChargeModeRatedTotalEvaporatorCoolingCapacity_.get()); |
| 253 | } | ||
| 254 | } | ||
| 255 | |||
| 256 | // Cooling And Charge Mode Capacity Sizing Factor: Required Double | ||
| 257 |
1/1✓ Branch 1 taken 2 times.
|
2 | const double coolingAndChargeModeCapacitySizingFactor = modelObject.coolingAndChargeModeCapacitySizingFactor(); |
| 258 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndChargeModeCapacitySizingFactor, |
| 259 | coolingAndChargeModeCapacitySizingFactor); | ||
| 260 | |||
| 261 | // Cooling And Charge Mode Rated Storage Charging Capacity | ||
| 262 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | if (modelObject.isCoolingAndChargeModeRatedStorageChargingCapacityAutosized()) { |
| 263 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndChargeModeRatedStorageChargingCapacity, "Autosize"); |
| 264 | } else { | ||
| 265 | 1 | if (boost::optional<double> coolingAndChargeModeRatedStorageChargingCapacity_ = | |
| 266 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | modelObject.coolingAndChargeModeRatedStorageChargingCapacity()) { |
| 267 | 1 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndChargeModeRatedStorageChargingCapacity, | |
| 268 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | coolingAndChargeModeRatedStorageChargingCapacity_.get()); |
| 269 | } | ||
| 270 | } | ||
| 271 | |||
| 272 | // Cooling And Charge Mode Storage Capacity Sizing Factor: Required Double | ||
| 273 |
1/1✓ Branch 1 taken 2 times.
|
2 | const double coolingAndChargeModeStorageCapacitySizingFactor = modelObject.coolingAndChargeModeStorageCapacitySizingFactor(); |
| 274 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndChargeModeStorageCapacitySizingFactor, |
| 275 | coolingAndChargeModeStorageCapacitySizingFactor); | ||
| 276 | |||
| 277 | // Cooling And Charge Mode Rated Sensible Heat Ratio: Required Double | ||
| 278 |
1/1✓ Branch 1 taken 2 times.
|
2 | const double coolingAndChargeModeRatedSensibleHeatRatio = modelObject.coolingAndChargeModeRatedSensibleHeatRatio(); |
| 279 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndChargeModeRatedSensibleHeatRatio, |
| 280 | coolingAndChargeModeRatedSensibleHeatRatio); | ||
| 281 | |||
| 282 | // Cooling And Charge Mode Cooling Rated COP: Required Double | ||
| 283 |
1/1✓ Branch 1 taken 2 times.
|
2 | const double coolingAndChargeModeCoolingRatedCOP = modelObject.coolingAndChargeModeCoolingRatedCOP(); |
| 284 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndChargeModeCoolingRatedCOP, coolingAndChargeModeCoolingRatedCOP); |
| 285 | |||
| 286 | // Cooling And Charge Mode Charging Rated COP: Required Double | ||
| 287 |
1/1✓ Branch 1 taken 2 times.
|
2 | const double coolingAndChargeModeChargingRatedCOP = modelObject.coolingAndChargeModeChargingRatedCOP(); |
| 288 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndChargeModeChargingRatedCOP, coolingAndChargeModeChargingRatedCOP); |
| 289 | |||
| 290 | // Cooling And Charge Mode Total Evaporator Cooling Capacity Function of Temperature Curve Name: Optional Object | ||
| 291 | 2 | if (boost::optional<Curve> coolingAndChargeModeTotalEvaporatorCoolingCapacityFunctionofTemperatureCurve_ = | |
| 292 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingAndChargeModeTotalEvaporatorCoolingCapacityFunctionofTemperatureCurve()) { |
| 293 | 1 | if (boost::optional<IdfObject> wo_ = | |
| 294 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | translateAndMapModelObject(coolingAndChargeModeTotalEvaporatorCoolingCapacityFunctionofTemperatureCurve_.get())) { |
| 295 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString( |
| 296 | Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndChargeModeTotalEvaporatorCoolingCapacityFunctionofTemperatureCurveName, | ||
| 297 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 298 | 1 | } | |
| 299 | 2 | } | |
| 300 | |||
| 301 | // Cooling And Charge Mode Total Evaporator Cooling Capacity Function of Flow Fraction Curve Name: Optional Object | ||
| 302 | 2 | if (boost::optional<Curve> coolingAndChargeModeTotalEvaporatorCoolingCapacityFunctionofFlowFractionCurve_ = | |
| 303 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingAndChargeModeTotalEvaporatorCoolingCapacityFunctionofFlowFractionCurve()) { |
| 304 | 1 | if (boost::optional<IdfObject> wo_ = | |
| 305 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | translateAndMapModelObject(coolingAndChargeModeTotalEvaporatorCoolingCapacityFunctionofFlowFractionCurve_.get())) { |
| 306 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString( |
| 307 | Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndChargeModeTotalEvaporatorCoolingCapacityFunctionofFlowFractionCurveName, | ||
| 308 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 309 | 1 | } | |
| 310 | 2 | } | |
| 311 | |||
| 312 | // Cooling And Charge Mode Evaporator Energy Input Ratio Function of Temperature Curve Name: Optional Object | ||
| 313 | 2 | if (boost::optional<Curve> coolingAndChargeModeEvaporatorEnergyInputRatioFunctionofTemperatureCurve_ = | |
| 314 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingAndChargeModeEvaporatorEnergyInputRatioFunctionofTemperatureCurve()) { |
| 315 | 1 | if (boost::optional<IdfObject> wo_ = | |
| 316 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | translateAndMapModelObject(coolingAndChargeModeEvaporatorEnergyInputRatioFunctionofTemperatureCurve_.get())) { |
| 317 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString( |
| 318 | Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndChargeModeEvaporatorEnergyInputRatioFunctionofTemperatureCurveName, | ||
| 319 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 320 | 1 | } | |
| 321 | 2 | } | |
| 322 | |||
| 323 | // Cooling And Charge Mode Evaporator Energy Input Ratio Function of Flow Fraction Curve Name: Optional Object | ||
| 324 | 2 | if (boost::optional<Curve> coolingAndChargeModeEvaporatorEnergyInputRatioFunctionofFlowFractionCurve_ = | |
| 325 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingAndChargeModeEvaporatorEnergyInputRatioFunctionofFlowFractionCurve()) { |
| 326 | 1 | if (boost::optional<IdfObject> wo_ = | |
| 327 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | translateAndMapModelObject(coolingAndChargeModeEvaporatorEnergyInputRatioFunctionofFlowFractionCurve_.get())) { |
| 328 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString( |
| 329 | Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndChargeModeEvaporatorEnergyInputRatioFunctionofFlowFractionCurveName, | ||
| 330 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 331 | 1 | } | |
| 332 | 2 | } | |
| 333 | |||
| 334 | // Cooling And Charge Mode Evaporator Part Load Fraction Correlation Curve Name: Optional Object | ||
| 335 | 2 | if (boost::optional<Curve> coolingAndChargeModeEvaporatorPartLoadFractionCorrelationCurve_ = | |
| 336 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingAndChargeModeEvaporatorPartLoadFractionCorrelationCurve()) { |
| 337 |
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(coolingAndChargeModeEvaporatorPartLoadFractionCorrelationCurve_.get())) { |
| 338 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndChargeModeEvaporatorPartLoadFractionCorrelationCurveName, |
| 339 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 340 | 1 | } | |
| 341 | 2 | } | |
| 342 | |||
| 343 | // Cooling And Charge Mode Storage Charge Capacity Function of Temperature Curve Name: Optional Object | ||
| 344 | 2 | if (boost::optional<Curve> coolingAndChargeModeStorageChargeCapacityFunctionofTemperatureCurve_ = | |
| 345 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingAndChargeModeStorageChargeCapacityFunctionofTemperatureCurve()) { |
| 346 |
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(coolingAndChargeModeStorageChargeCapacityFunctionofTemperatureCurve_.get())) { |
| 347 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndChargeModeStorageChargeCapacityFunctionofTemperatureCurveName, |
| 348 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 349 | 1 | } | |
| 350 | 2 | } | |
| 351 | |||
| 352 | // Cooling And Charge Mode Storage Charge Capacity Function of Total Evaporator PLR Curve Name: Optional Object | ||
| 353 | 2 | if (boost::optional<Curve> coolingAndChargeModeStorageChargeCapacityFunctionofTotalEvaporatorPLRCurve_ = | |
| 354 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingAndChargeModeStorageChargeCapacityFunctionofTotalEvaporatorPLRCurve()) { |
| 355 | 1 | if (boost::optional<IdfObject> wo_ = | |
| 356 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | translateAndMapModelObject(coolingAndChargeModeStorageChargeCapacityFunctionofTotalEvaporatorPLRCurve_.get())) { |
| 357 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString( |
| 358 | Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndChargeModeStorageChargeCapacityFunctionofTotalEvaporatorPLRCurveName, | ||
| 359 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 360 | 1 | } | |
| 361 | 2 | } | |
| 362 | |||
| 363 | // Cooling And Charge Mode Storage Energy Input Ratio Function of Temperature Curve Name: Optional Object | ||
| 364 | 2 | if (boost::optional<Curve> coolingAndChargeModeStorageEnergyInputRatioFunctionofTemperatureCurve_ = | |
| 365 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingAndChargeModeStorageEnergyInputRatioFunctionofTemperatureCurve()) { |
| 366 |
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(coolingAndChargeModeStorageEnergyInputRatioFunctionofTemperatureCurve_.get())) { |
| 367 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString( |
| 368 | Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndChargeModeStorageEnergyInputRatioFunctionofTemperatureCurveName, | ||
| 369 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 370 | 1 | } | |
| 371 | 2 | } | |
| 372 | |||
| 373 | // Cooling And Charge Mode Storage Energy Input Ratio Function of Flow Fraction Curve Name: Optional Object | ||
| 374 | 2 | if (boost::optional<Curve> coolingAndChargeModeStorageEnergyInputRatioFunctionofFlowFractionCurve_ = | |
| 375 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingAndChargeModeStorageEnergyInputRatioFunctionofFlowFractionCurve()) { |
| 376 | 1 | if (boost::optional<IdfObject> wo_ = | |
| 377 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | translateAndMapModelObject(coolingAndChargeModeStorageEnergyInputRatioFunctionofFlowFractionCurve_.get())) { |
| 378 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString( |
| 379 | Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndChargeModeStorageEnergyInputRatioFunctionofFlowFractionCurveName, | ||
| 380 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 381 | 1 | } | |
| 382 | 2 | } | |
| 383 | |||
| 384 | // Cooling And Charge Mode Storage Energy Part Load Fraction Correlation Curve Name: Optional Object | ||
| 385 | 2 | if (boost::optional<Curve> coolingAndChargeModeStorageEnergyPartLoadFractionCorrelationCurve_ = | |
| 386 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingAndChargeModeStorageEnergyPartLoadFractionCorrelationCurve()) { |
| 387 |
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(coolingAndChargeModeStorageEnergyPartLoadFractionCorrelationCurve_.get())) { |
| 388 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndChargeModeStorageEnergyPartLoadFractionCorrelationCurveName, |
| 389 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 390 | 1 | } | |
| 391 | 2 | } | |
| 392 | |||
| 393 | // Cooling And Charge Mode Sensible Heat Ratio Function of Temperature Curve Name: Optional Object | ||
| 394 | 2 | if (boost::optional<Curve> coolingAndChargeModeSensibleHeatRatioFunctionofTemperatureCurve_ = | |
| 395 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingAndChargeModeSensibleHeatRatioFunctionofTemperatureCurve()) { |
| 396 |
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(coolingAndChargeModeSensibleHeatRatioFunctionofTemperatureCurve_.get())) { |
| 397 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndChargeModeSensibleHeatRatioFunctionofTemperatureCurveName, |
| 398 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 399 | 1 | } | |
| 400 | 2 | } | |
| 401 | |||
| 402 | // Cooling And Charge Mode Sensible Heat Ratio Function of Flow Fraction Curve Name: Optional Object | ||
| 403 | 2 | if (boost::optional<Curve> coolingAndChargeModeSensibleHeatRatioFunctionofFlowFractionCurve_ = | |
| 404 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingAndChargeModeSensibleHeatRatioFunctionofFlowFractionCurve()) { |
| 405 |
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(coolingAndChargeModeSensibleHeatRatioFunctionofFlowFractionCurve_.get())) { |
| 406 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndChargeModeSensibleHeatRatioFunctionofFlowFractionCurveName, |
| 407 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 408 | 1 | } | |
| 409 | 2 | } | |
| 410 | |||
| 411 | // Cooling And Discharge Mode Available: Required Boolean | ||
| 412 |
2/2✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
|
2 | if (coolingAndDischargeModeAvailable) { |
| 413 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndDischargeModeAvailable, "Yes"); |
| 414 | } else { | ||
| 415 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndDischargeModeAvailable, "No"); |
| 416 | } | ||
| 417 | |||
| 418 | // Cooling And Discharge Mode Rated Total Evaporator Cooling Capacity | ||
| 419 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | if (modelObject.isCoolingAndDischargeModeRatedTotalEvaporatorCoolingCapacityAutosized()) { |
| 420 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndDischargeModeRatedTotalEvaporatorCoolingCapacity, "Autosize"); |
| 421 | } else { | ||
| 422 | 1 | if (boost::optional<double> coolingAndDischargeModeRatedTotalEvaporatorCoolingCapacity_ = | |
| 423 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | modelObject.coolingAndDischargeModeRatedTotalEvaporatorCoolingCapacity()) { |
| 424 | 1 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndDischargeModeRatedTotalEvaporatorCoolingCapacity, | |
| 425 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | coolingAndDischargeModeRatedTotalEvaporatorCoolingCapacity_.get()); |
| 426 | } | ||
| 427 | } | ||
| 428 | |||
| 429 | // Cooling And Discharge Mode Evaporator Capacity Sizing Factor: Required Double | ||
| 430 |
1/1✓ Branch 1 taken 2 times.
|
2 | const double coolingAndDischargeModeEvaporatorCapacitySizingFactor = modelObject.coolingAndDischargeModeEvaporatorCapacitySizingFactor(); |
| 431 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndDischargeModeEvaporatorCapacitySizingFactor, |
| 432 | coolingAndDischargeModeEvaporatorCapacitySizingFactor); | ||
| 433 | |||
| 434 | // Cooling And Discharge Mode Rated Storage Discharging Capacity | ||
| 435 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | if (modelObject.isCoolingAndDischargeModeRatedStorageDischargingCapacityAutosized()) { |
| 436 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndDischargeModeRatedStorageDischargingCapacity, "Autosize"); |
| 437 | } else { | ||
| 438 | 1 | if (boost::optional<double> coolingAndDischargeModeRatedStorageDischargingCapacity_ = | |
| 439 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | modelObject.coolingAndDischargeModeRatedStorageDischargingCapacity()) { |
| 440 | 1 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndDischargeModeRatedStorageDischargingCapacity, | |
| 441 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | coolingAndDischargeModeRatedStorageDischargingCapacity_.get()); |
| 442 | } | ||
| 443 | } | ||
| 444 | |||
| 445 | // Cooling And Discharge Mode Storage Discharge Capacity Sizing Factor: Required Double | ||
| 446 | const double coolingAndDischargeModeStorageDischargeCapacitySizingFactor = | ||
| 447 |
1/1✓ Branch 1 taken 2 times.
|
2 | modelObject.coolingAndDischargeModeStorageDischargeCapacitySizingFactor(); |
| 448 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndDischargeModeStorageDischargeCapacitySizingFactor, |
| 449 | coolingAndDischargeModeStorageDischargeCapacitySizingFactor); | ||
| 450 | |||
| 451 | // Cooling And Discharge Mode Rated Sensible Heat Ratio: Required Double | ||
| 452 |
1/1✓ Branch 1 taken 2 times.
|
2 | const double coolingAndDischargeModeRatedSensibleHeatRatio = modelObject.coolingAndDischargeModeRatedSensibleHeatRatio(); |
| 453 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndDischargeModeRatedSensibleHeatRatio, |
| 454 | coolingAndDischargeModeRatedSensibleHeatRatio); | ||
| 455 | |||
| 456 | // Cooling And Discharge Mode Cooling Rated COP: Required Double | ||
| 457 |
1/1✓ Branch 1 taken 2 times.
|
2 | const double coolingAndDischargeModeCoolingRatedCOP = modelObject.coolingAndDischargeModeCoolingRatedCOP(); |
| 458 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndDischargeModeCoolingRatedCOP, |
| 459 | coolingAndDischargeModeCoolingRatedCOP); | ||
| 460 | |||
| 461 | // Cooling And Discharge Mode Discharging Rated COP: Required Double | ||
| 462 |
1/1✓ Branch 1 taken 2 times.
|
2 | const double coolingAndDischargeModeDischargingRatedCOP = modelObject.coolingAndDischargeModeDischargingRatedCOP(); |
| 463 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndDischargeModeDischargingRatedCOP, |
| 464 | coolingAndDischargeModeDischargingRatedCOP); | ||
| 465 | |||
| 466 | // Cooling And Discharge Mode Total Evaporator Cooling Capacity Function of Temperature Curve Name: Optional Object | ||
| 467 | 2 | if (boost::optional<Curve> coolingAndDischargeModeTotalEvaporatorCoolingCapacityFunctionofTemperatureCurve_ = | |
| 468 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingAndDischargeModeTotalEvaporatorCoolingCapacityFunctionofTemperatureCurve()) { |
| 469 | 1 | if (boost::optional<IdfObject> wo_ = | |
| 470 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | translateAndMapModelObject(coolingAndDischargeModeTotalEvaporatorCoolingCapacityFunctionofTemperatureCurve_.get())) { |
| 471 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString( |
| 472 | Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndDischargeModeTotalEvaporatorCoolingCapacityFunctionofTemperatureCurveName, | ||
| 473 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 474 | 1 | } | |
| 475 | 2 | } | |
| 476 | |||
| 477 | // Cooling And Discharge Mode Total Evaporator Cooling Capacity Function of Flow Fraction Curve Name: Optional Object | ||
| 478 | 2 | if (boost::optional<Curve> coolingAndDischargeModeTotalEvaporatorCoolingCapacityFunctionofFlowFractionCurve_ = | |
| 479 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingAndDischargeModeTotalEvaporatorCoolingCapacityFunctionofFlowFractionCurve()) { |
| 480 | 1 | if (boost::optional<IdfObject> wo_ = | |
| 481 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | translateAndMapModelObject(coolingAndDischargeModeTotalEvaporatorCoolingCapacityFunctionofFlowFractionCurve_.get())) { |
| 482 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString( |
| 483 | Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndDischargeModeTotalEvaporatorCoolingCapacityFunctionofFlowFractionCurveName, | ||
| 484 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 485 | 1 | } | |
| 486 | 2 | } | |
| 487 | |||
| 488 | // Cooling And Discharge Mode Evaporator Energy Input Ratio Function of Temperature Curve Name: Optional Object | ||
| 489 | 2 | if (boost::optional<Curve> coolingAndDischargeModeEvaporatorEnergyInputRatioFunctionofTemperatureCurve_ = | |
| 490 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingAndDischargeModeEvaporatorEnergyInputRatioFunctionofTemperatureCurve()) { |
| 491 | 1 | if (boost::optional<IdfObject> wo_ = | |
| 492 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | translateAndMapModelObject(coolingAndDischargeModeEvaporatorEnergyInputRatioFunctionofTemperatureCurve_.get())) { |
| 493 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString( |
| 494 | Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndDischargeModeEvaporatorEnergyInputRatioFunctionofTemperatureCurveName, | ||
| 495 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 496 | 1 | } | |
| 497 | 2 | } | |
| 498 | |||
| 499 | // Cooling And Discharge Mode Evaporator Energy Input Ratio Function of Flow Fraction Curve Name: Optional Object | ||
| 500 | 2 | if (boost::optional<Curve> coolingAndDischargeModeEvaporatorEnergyInputRatioFunctionofFlowFractionCurve_ = | |
| 501 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingAndDischargeModeEvaporatorEnergyInputRatioFunctionofFlowFractionCurve()) { |
| 502 | 1 | if (boost::optional<IdfObject> wo_ = | |
| 503 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | translateAndMapModelObject(coolingAndDischargeModeEvaporatorEnergyInputRatioFunctionofFlowFractionCurve_.get())) { |
| 504 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString( |
| 505 | Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndDischargeModeEvaporatorEnergyInputRatioFunctionofFlowFractionCurveName, | ||
| 506 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 507 | 1 | } | |
| 508 | 2 | } | |
| 509 | |||
| 510 | // Cooling And Discharge Mode Evaporator Part Load Fraction Correlation Curve Name: Optional Object | ||
| 511 | 2 | if (boost::optional<Curve> coolingAndDischargeModeEvaporatorPartLoadFractionCorrelationCurve_ = | |
| 512 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingAndDischargeModeEvaporatorPartLoadFractionCorrelationCurve()) { |
| 513 |
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(coolingAndDischargeModeEvaporatorPartLoadFractionCorrelationCurve_.get())) { |
| 514 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndDischargeModeEvaporatorPartLoadFractionCorrelationCurveName, |
| 515 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 516 | 1 | } | |
| 517 | 2 | } | |
| 518 | |||
| 519 | // Cooling And Discharge Mode Storage Discharge Capacity Function of Temperature Curve Name: Optional Object | ||
| 520 | 2 | if (boost::optional<Curve> coolingAndDischargeModeStorageDischargeCapacityFunctionofTemperatureCurve_ = | |
| 521 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingAndDischargeModeStorageDischargeCapacityFunctionofTemperatureCurve()) { |
| 522 | 1 | if (boost::optional<IdfObject> wo_ = | |
| 523 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | translateAndMapModelObject(coolingAndDischargeModeStorageDischargeCapacityFunctionofTemperatureCurve_.get())) { |
| 524 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString( |
| 525 | Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndDischargeModeStorageDischargeCapacityFunctionofTemperatureCurveName, | ||
| 526 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 527 | 1 | } | |
| 528 | 2 | } | |
| 529 | |||
| 530 | // Cooling And Discharge Mode Storage Discharge Capacity Function of Flow Fraction Curve Name: Optional Object | ||
| 531 | 2 | if (boost::optional<Curve> coolingAndDischargeModeStorageDischargeCapacityFunctionofFlowFractionCurve_ = | |
| 532 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingAndDischargeModeStorageDischargeCapacityFunctionofFlowFractionCurve()) { |
| 533 | 1 | if (boost::optional<IdfObject> wo_ = | |
| 534 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | translateAndMapModelObject(coolingAndDischargeModeStorageDischargeCapacityFunctionofFlowFractionCurve_.get())) { |
| 535 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString( |
| 536 | Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndDischargeModeStorageDischargeCapacityFunctionofFlowFractionCurveName, | ||
| 537 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 538 | 1 | } | |
| 539 | 2 | } | |
| 540 | |||
| 541 | // Cooling And Discharge Mode Storage Discharge Capacity Function of Total Evaporator PLR Curve Name: Optional Object | ||
| 542 | 2 | if (boost::optional<Curve> coolingAndDischargeModeStorageDischargeCapacityFunctionofTotalEvaporatorPLRCurve_ = | |
| 543 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingAndDischargeModeStorageDischargeCapacityFunctionofTotalEvaporatorPLRCurve()) { |
| 544 | 1 | if (boost::optional<IdfObject> wo_ = | |
| 545 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | translateAndMapModelObject(coolingAndDischargeModeStorageDischargeCapacityFunctionofTotalEvaporatorPLRCurve_.get())) { |
| 546 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString( |
| 547 | Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndDischargeModeStorageDischargeCapacityFunctionofTotalEvaporatorPLRCurveName, | ||
| 548 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 549 | 1 | } | |
| 550 | 2 | } | |
| 551 | |||
| 552 | // Cooling And Discharge Mode Storage Energy Input Ratio Function of Temperature Curve Name: Optional Object | ||
| 553 | 2 | if (boost::optional<Curve> coolingAndDischargeModeStorageEnergyInputRatioFunctionofTemperatureCurve_ = | |
| 554 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingAndDischargeModeStorageEnergyInputRatioFunctionofTemperatureCurve()) { |
| 555 | 1 | if (boost::optional<IdfObject> wo_ = | |
| 556 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | translateAndMapModelObject(coolingAndDischargeModeStorageEnergyInputRatioFunctionofTemperatureCurve_.get())) { |
| 557 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString( |
| 558 | Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndDischargeModeStorageEnergyInputRatioFunctionofTemperatureCurveName, | ||
| 559 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 560 | 1 | } | |
| 561 | 2 | } | |
| 562 | |||
| 563 | // Cooling And Discharge Mode Storage Energy Input Ratio Function of Flow Fraction Curve Name: Optional Object | ||
| 564 | 2 | if (boost::optional<Curve> coolingAndDischargeModeStorageEnergyInputRatioFunctionofFlowFractionCurve_ = | |
| 565 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingAndDischargeModeStorageEnergyInputRatioFunctionofFlowFractionCurve()) { |
| 566 | 1 | if (boost::optional<IdfObject> wo_ = | |
| 567 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | translateAndMapModelObject(coolingAndDischargeModeStorageEnergyInputRatioFunctionofFlowFractionCurve_.get())) { |
| 568 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString( |
| 569 | Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndDischargeModeStorageEnergyInputRatioFunctionofFlowFractionCurveName, | ||
| 570 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 571 | 1 | } | |
| 572 | 2 | } | |
| 573 | |||
| 574 | // Cooling And Discharge Mode Storage Energy Part Load Fraction Correlation Curve Name: Optional Object | ||
| 575 | 2 | if (boost::optional<Curve> coolingAndDischargeModeStorageEnergyPartLoadFractionCorrelationCurve_ = | |
| 576 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingAndDischargeModeStorageEnergyPartLoadFractionCorrelationCurve()) { |
| 577 |
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(coolingAndDischargeModeStorageEnergyPartLoadFractionCorrelationCurve_.get())) { |
| 578 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString( |
| 579 | Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndDischargeModeStorageEnergyPartLoadFractionCorrelationCurveName, | ||
| 580 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 581 | 1 | } | |
| 582 | 2 | } | |
| 583 | |||
| 584 | // Cooling And Discharge Mode Sensible Heat Ratio Function of Temperature Curve Name: Optional Object | ||
| 585 | 2 | if (boost::optional<Curve> coolingAndDischargeModeSensibleHeatRatioFunctionofTemperatureCurve_ = | |
| 586 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingAndDischargeModeSensibleHeatRatioFunctionofTemperatureCurve()) { |
| 587 |
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(coolingAndDischargeModeSensibleHeatRatioFunctionofTemperatureCurve_.get())) { |
| 588 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndDischargeModeSensibleHeatRatioFunctionofTemperatureCurveName, |
| 589 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 590 | 1 | } | |
| 591 | 2 | } | |
| 592 | |||
| 593 | // Cooling And Discharge Mode Sensible Heat Ratio Function of Flow Fraction Curve Name: Optional Object | ||
| 594 | 2 | if (boost::optional<Curve> coolingAndDischargeModeSensibleHeatRatioFunctionofFlowFractionCurve_ = | |
| 595 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.coolingAndDischargeModeSensibleHeatRatioFunctionofFlowFractionCurve()) { |
| 596 |
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(coolingAndDischargeModeSensibleHeatRatioFunctionofFlowFractionCurve_.get())) { |
| 597 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CoolingAndDischargeModeSensibleHeatRatioFunctionofFlowFractionCurveName, |
| 598 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 599 | 1 | } | |
| 600 | 2 | } | |
| 601 | |||
| 602 | // Charge Only Mode Available: Required Boolean | ||
| 603 |
2/2✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
|
2 | if (chargeOnlyModeAvailable) { |
| 604 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::ChargeOnlyModeAvailable, "Yes"); |
| 605 | } else { | ||
| 606 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::ChargeOnlyModeAvailable, "No"); |
| 607 | } | ||
| 608 | |||
| 609 | // Charge Only Mode Rated Storage Charging Capacity | ||
| 610 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | if (modelObject.isChargeOnlyModeRatedStorageChargingCapacityAutosized()) { |
| 611 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::ChargeOnlyModeRatedStorageChargingCapacity, "Autosize"); |
| 612 | } else { | ||
| 613 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<double> chargeOnlyModeRatedStorageChargingCapacity_ = modelObject.chargeOnlyModeRatedStorageChargingCapacity()) { |
| 614 | 1 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::ChargeOnlyModeRatedStorageChargingCapacity, | |
| 615 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | chargeOnlyModeRatedStorageChargingCapacity_.get()); |
| 616 | } | ||
| 617 | } | ||
| 618 | |||
| 619 | // Charge Only Mode Capacity Sizing Factor: Required Double | ||
| 620 |
1/1✓ Branch 1 taken 2 times.
|
2 | const double chargeOnlyModeCapacitySizingFactor = modelObject.chargeOnlyModeCapacitySizingFactor(); |
| 621 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::ChargeOnlyModeCapacitySizingFactor, chargeOnlyModeCapacitySizingFactor); |
| 622 | |||
| 623 | // Charge Only Mode Charging Rated COP: Required Double | ||
| 624 |
1/1✓ Branch 1 taken 2 times.
|
2 | const double chargeOnlyModeChargingRatedCOP = modelObject.chargeOnlyModeChargingRatedCOP(); |
| 625 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::ChargeOnlyModeChargingRatedCOP, chargeOnlyModeChargingRatedCOP); |
| 626 | |||
| 627 | // Charge Only Mode Storage Charge Capacity Function of Temperature Curve Name: Optional Object | ||
| 628 | 2 | if (boost::optional<Curve> chargeOnlyModeStorageChargeCapacityFunctionofTemperatureCurve_ = | |
| 629 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.chargeOnlyModeStorageChargeCapacityFunctionofTemperatureCurve()) { |
| 630 |
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(chargeOnlyModeStorageChargeCapacityFunctionofTemperatureCurve_.get())) { |
| 631 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::ChargeOnlyModeStorageChargeCapacityFunctionofTemperatureCurveName, |
| 632 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 633 | 1 | } | |
| 634 | 2 | } | |
| 635 | |||
| 636 | // Charge Only Mode Storage Energy Input Ratio Function of Temperature Curve Name: Optional Object | ||
| 637 | 2 | if (boost::optional<Curve> chargeOnlyModeStorageEnergyInputRatioFunctionofTemperatureCurve_ = | |
| 638 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.chargeOnlyModeStorageEnergyInputRatioFunctionofTemperatureCurve()) { |
| 639 |
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(chargeOnlyModeStorageEnergyInputRatioFunctionofTemperatureCurve_.get())) { |
| 640 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::ChargeOnlyModeStorageEnergyInputRatioFunctionofTemperatureCurveName, |
| 641 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 642 | 1 | } | |
| 643 | 2 | } | |
| 644 | |||
| 645 | // Discharge Only Mode Available: Required Boolean | ||
| 646 |
2/2✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
|
2 | if (dischargeOnlyModeAvailable) { |
| 647 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::DischargeOnlyModeAvailable, "Yes"); |
| 648 | } else { | ||
| 649 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::DischargeOnlyModeAvailable, "No"); |
| 650 | } | ||
| 651 | |||
| 652 | // Discharge Only Mode Rated Storage Discharging Capacity | ||
| 653 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | if (modelObject.isDischargeOnlyModeRatedStorageDischargingCapacityAutosized()) { |
| 654 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::DischargeOnlyModeRatedStorageDischargingCapacity, "Autosize"); |
| 655 | } else { | ||
| 656 | 1 | if (boost::optional<double> dischargeOnlyModeRatedStorageDischargingCapacity_ = | |
| 657 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | modelObject.dischargeOnlyModeRatedStorageDischargingCapacity()) { |
| 658 | 1 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::DischargeOnlyModeRatedStorageDischargingCapacity, | |
| 659 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | dischargeOnlyModeRatedStorageDischargingCapacity_.get()); |
| 660 | } | ||
| 661 | } | ||
| 662 | |||
| 663 | // Discharge Only Mode Capacity Sizing Factor: Required Double | ||
| 664 |
1/1✓ Branch 1 taken 2 times.
|
2 | const double dischargeOnlyModeCapacitySizingFactor = modelObject.dischargeOnlyModeCapacitySizingFactor(); |
| 665 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::DischargeOnlyModeCapacitySizingFactor, |
| 666 | dischargeOnlyModeCapacitySizingFactor); | ||
| 667 | |||
| 668 | // Discharge Only Mode Rated Sensible Heat Ratio: Required Double | ||
| 669 |
1/1✓ Branch 1 taken 2 times.
|
2 | const double dischargeOnlyModeRatedSensibleHeatRatio = modelObject.dischargeOnlyModeRatedSensibleHeatRatio(); |
| 670 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::DischargeOnlyModeRatedSensibleHeatRatio, |
| 671 | dischargeOnlyModeRatedSensibleHeatRatio); | ||
| 672 | |||
| 673 | // Discharge Only Mode Rated COP: Required Double | ||
| 674 |
1/1✓ Branch 1 taken 2 times.
|
2 | const double dischargeOnlyModeRatedCOP = modelObject.dischargeOnlyModeRatedCOP(); |
| 675 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::DischargeOnlyModeRatedCOP, dischargeOnlyModeRatedCOP); |
| 676 | |||
| 677 | // Discharge Only Mode Storage Discharge Capacity Function of Temperature Curve Name: Optional Object | ||
| 678 | 2 | if (boost::optional<Curve> dischargeOnlyModeStorageDischargeCapacityFunctionofTemperatureCurve_ = | |
| 679 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.dischargeOnlyModeStorageDischargeCapacityFunctionofTemperatureCurve()) { |
| 680 |
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(dischargeOnlyModeStorageDischargeCapacityFunctionofTemperatureCurve_.get())) { |
| 681 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::DischargeOnlyModeStorageDischargeCapacityFunctionofTemperatureCurveName, |
| 682 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 683 | 1 | } | |
| 684 | 2 | } | |
| 685 | |||
| 686 | // Discharge Only Mode Storage Discharge Capacity Function of Flow Fraction Curve Name: Optional Object | ||
| 687 | 2 | if (boost::optional<Curve> dischargeOnlyModeStorageDischargeCapacityFunctionofFlowFractionCurve_ = | |
| 688 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.dischargeOnlyModeStorageDischargeCapacityFunctionofFlowFractionCurve()) { |
| 689 |
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(dischargeOnlyModeStorageDischargeCapacityFunctionofFlowFractionCurve_.get())) { |
| 690 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString( |
| 691 | Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::DischargeOnlyModeStorageDischargeCapacityFunctionofFlowFractionCurveName, | ||
| 692 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 693 | 1 | } | |
| 694 | 2 | } | |
| 695 | |||
| 696 | // Discharge Only Mode Energy Input Ratio Function of Temperature Curve Name: Optional Object | ||
| 697 | 2 | if (boost::optional<Curve> dischargeOnlyModeEnergyInputRatioFunctionofTemperatureCurve_ = | |
| 698 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.dischargeOnlyModeEnergyInputRatioFunctionofTemperatureCurve()) { |
| 699 |
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(dischargeOnlyModeEnergyInputRatioFunctionofTemperatureCurve_.get())) { |
| 700 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::DischargeOnlyModeEnergyInputRatioFunctionofTemperatureCurveName, |
| 701 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 702 | 1 | } | |
| 703 | 2 | } | |
| 704 | |||
| 705 | // Discharge Only Mode Energy Input Ratio Function of Flow Fraction Curve Name: Optional Object | ||
| 706 | 2 | if (boost::optional<Curve> dischargeOnlyModeEnergyInputRatioFunctionofFlowFractionCurve_ = | |
| 707 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.dischargeOnlyModeEnergyInputRatioFunctionofFlowFractionCurve()) { |
| 708 |
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(dischargeOnlyModeEnergyInputRatioFunctionofFlowFractionCurve_.get())) { |
| 709 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::DischargeOnlyModeEnergyInputRatioFunctionofFlowFractionCurveName, |
| 710 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 711 | 1 | } | |
| 712 | 2 | } | |
| 713 | |||
| 714 | // Discharge Only Mode Part Load Fraction Correlation Curve Name: Optional Object | ||
| 715 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | if (boost::optional<Curve> dischargeOnlyModePartLoadFractionCorrelationCurve_ = modelObject.dischargeOnlyModePartLoadFractionCorrelationCurve()) { |
| 716 |
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(dischargeOnlyModePartLoadFractionCorrelationCurve_.get())) { |
| 717 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::DischargeOnlyModePartLoadFractionCorrelationCurveName, |
| 718 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 719 | 1 | } | |
| 720 | 2 | } | |
| 721 | |||
| 722 | // Discharge Only Mode Sensible Heat Ratio Function of Temperature Curve Name: Optional Object | ||
| 723 | 2 | if (boost::optional<Curve> dischargeOnlyModeSensibleHeatRatioFunctionofTemperatureCurve_ = | |
| 724 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.dischargeOnlyModeSensibleHeatRatioFunctionofTemperatureCurve()) { |
| 725 |
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(dischargeOnlyModeSensibleHeatRatioFunctionofTemperatureCurve_.get())) { |
| 726 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::DischargeOnlyModeSensibleHeatRatioFunctionofTemperatureCurveName, |
| 727 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 728 | 1 | } | |
| 729 | 2 | } | |
| 730 | |||
| 731 | // Discharge Only Mode Sensible Heat Ratio Function of Flow Fraction Curve Name: Optional Object | ||
| 732 | 2 | if (boost::optional<Curve> dischargeOnlyModeSensibleHeatRatioFunctionofFlowFractionCurve_ = | |
| 733 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | modelObject.dischargeOnlyModeSensibleHeatRatioFunctionofFlowFractionCurve()) { |
| 734 |
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(dischargeOnlyModeSensibleHeatRatioFunctionofFlowFractionCurve_.get())) { |
| 735 |
1/1✓ Branch 1 taken 1 time.
|
1 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::DischargeOnlyModeSensibleHeatRatioFunctionofFlowFractionCurveName, |
| 736 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | wo_->nameString()); |
| 737 | 1 | } | |
| 738 | 2 | } | |
| 739 | |||
| 740 | // Ancillary Electric Power: boost::optional<double> | ||
| 741 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (boost::optional<double> ancillaryElectricPower_ = modelObject.ancillaryElectricPower()) { |
| 742 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::AncillaryElectricPower, ancillaryElectricPower_.get()); |
| 743 | } | ||
| 744 | |||
| 745 | // Cold Weather Operation Minimum Outdoor Air Temperature: boost::optional<double> | ||
| 746 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | if (boost::optional<double> coldWeatherOperationMinimumOutdoorAirTemperature_ = modelObject.coldWeatherOperationMinimumOutdoorAirTemperature()) { |
| 747 | 1 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::ColdWeatherOperationMinimumOutdoorAirTemperature, | |
| 748 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | coldWeatherOperationMinimumOutdoorAirTemperature_.get()); |
| 749 | } | ||
| 750 | |||
| 751 | // Cold Weather Operation Ancillary Power: boost::optional<double> | ||
| 752 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (boost::optional<double> coldWeatherOperationAncillaryPower_ = modelObject.coldWeatherOperationAncillaryPower()) { |
| 753 | 2 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::ColdWeatherOperationAncillaryPower, | |
| 754 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | coldWeatherOperationAncillaryPower_.get()); |
| 755 | } | ||
| 756 | |||
| 757 | // Condenser Air Inlet Node Name: Required Node | ||
| 758 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | std::string condenserInletNodeName(modelObject.nameString() + " Condenser Air Inlet Node"); |
| 759 | // Create an OutdoorAir:NodeList for the condenser inlet conditions to be set directly from weather file | ||
| 760 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | IdfObject oaNodeListIdf2(openstudio::IddObjectType::OutdoorAir_NodeList); |
| 761 |
1/1✓ Branch 1 taken 2 times.
|
2 | oaNodeListIdf2.setString(0, condenserInletNodeName); |
| 762 |
1/1✓ Branch 1 taken 2 times.
|
2 | m_idfObjects.push_back(oaNodeListIdf2); |
| 763 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CondenserAirInletNodeName, condenserInletNodeName); |
| 764 | |||
| 765 | // Condenser Air Outlet Node Name: Required Node | ||
| 766 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | std::string condenserOutletNodeName(modelObject.nameString() + " Condenser Air Outlet Node"); |
| 767 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CondenserAirOutletNodeName, condenserOutletNodeName); |
| 768 | |||
| 769 | // Condenser Design Air Flow Rate | ||
| 770 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | if (modelObject.isCondenserDesignAirFlowRateAutosized()) { |
| 771 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CondenserDesignAirFlowRate, "Autosize"); |
| 772 | } else { | ||
| 773 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<double> condenserDesignAirFlowRate_ = modelObject.condenserDesignAirFlowRate()) { |
| 774 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CondenserDesignAirFlowRate, condenserDesignAirFlowRate_.get()); |
| 775 | } | ||
| 776 | } | ||
| 777 | |||
| 778 | // Condenser Air Flow Sizing Factor: Required Double | ||
| 779 |
1/1✓ Branch 1 taken 2 times.
|
2 | const double condenserAirFlowSizingFactor = modelObject.condenserAirFlowSizingFactor(); |
| 780 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CondenserAirFlowSizingFactor, condenserAirFlowSizingFactor); |
| 781 | |||
| 782 | // Condenser Type: Required String | ||
| 783 |
1/1✓ Branch 1 taken 2 times.
|
2 | const std::string condenserType = modelObject.condenserType(); |
| 784 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CondenserType, condenserType); |
| 785 | |||
| 786 | // Evaporative Condenser Effectiveness: Required Double | ||
| 787 |
1/1✓ Branch 1 taken 2 times.
|
2 | const double evaporativeCondenserEffectiveness = modelObject.evaporativeCondenserEffectiveness(); |
| 788 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::EvaporativeCondenserEffectiveness, evaporativeCondenserEffectiveness); |
| 789 | |||
| 790 | // Evaporative Condenser Pump Rated Power Consumption | ||
| 791 |
2/3✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 2 times.
|
2 | if (modelObject.isEvaporativeCondenserPumpRatedPowerConsumptionAutosized()) { |
| 792 | ✗ | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::EvaporativeCondenserPumpRatedPowerConsumption, "Autosize"); | |
| 793 | } else { | ||
| 794 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (boost::optional<double> evaporativeCondenserPumpRatedPowerConsumption_ = modelObject.evaporativeCondenserPumpRatedPowerConsumption()) { |
| 795 | 2 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::EvaporativeCondenserPumpRatedPowerConsumption, | |
| 796 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | evaporativeCondenserPumpRatedPowerConsumption_.get()); |
| 797 | } | ||
| 798 | } | ||
| 799 | |||
| 800 | // Basin Heater Capacity: Required Double | ||
| 801 |
1/1✓ Branch 1 taken 2 times.
|
2 | const double basinHeaterCapacity = modelObject.basinHeaterCapacity(); |
| 802 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::BasinHeaterCapacity, basinHeaterCapacity); |
| 803 | |||
| 804 | // Basin Heater Setpoint Temperature: Required Double | ||
| 805 |
1/1✓ Branch 1 taken 2 times.
|
2 | const double basinHeaterSetpointTemperature = modelObject.basinHeaterSetpointTemperature(); |
| 806 |
1/1✓ Branch 1 taken 2 times.
|
2 | idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::BasinHeaterSetpointTemperature, basinHeaterSetpointTemperature); |
| 807 | |||
| 808 | // Basin Heater Availability Schedule Name: Optional Object | ||
| 809 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | if (boost::optional<Schedule> basinHeaterAvailabilitySchedule_ = modelObject.basinHeaterAvailabilitySchedule()) { |
| 810 |
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(basinHeaterAvailabilitySchedule_.get())) { |
| 811 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::BasinHeaterAvailabilityScheduleName, wo_->nameString()); |
| 812 | 1 | } | |
| 813 | 2 | } | |
| 814 | |||
| 815 | // Supply Water Storage Tank Name: Optional Object | ||
| 816 | // if (boost::optional<WaterStorageTank> supplyWaterStorageTank_ = modelObject.supplyWaterStorageTank()) { | ||
| 817 | // if (boost::optional<IdfObject> wo_ = translateAndMapModelObject(supplyWaterStorageTank_.get())) { | ||
| 818 | // idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::SupplyWaterStorageTankName, wo_->nameString()); | ||
| 819 | // } | ||
| 820 | // } | ||
| 821 | |||
| 822 | // Condensate Collection Water Storage Tank Name: Optional Object | ||
| 823 | // if (boost::optional<WaterStorageTank> condensateCollectionWaterStorageTank_ = modelObject.condensateCollectionWaterStorageTank()) { | ||
| 824 | // if (boost::optional<IdfObject> wo_ = translateAndMapModelObject(condensateCollectionWaterStorageTank_.get())) { | ||
| 825 | // idfObject.setString(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::CondensateCollectionWaterStorageTankName, wo_->nameString()); | ||
| 826 | // } | ||
| 827 | // } | ||
| 828 | |||
| 829 | // Storage Tank Plant Connection Design Flow Rate: boost::optional<double> | ||
| 830 | // if (boost::optional<double> storageTankPlantConnectionDesignFlowRate_ = modelObject.storageTankPlantConnectionDesignFlowRate()) { | ||
| 831 | // idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::StorageTankPlantConnectionDesignFlowRate, | ||
| 832 | // storageTankPlantConnectionDesignFlowRate_.get()); | ||
| 833 | // } | ||
| 834 | |||
| 835 | // Storage Tank Plant Connection Heat Transfer Effectiveness: Required Double | ||
| 836 | // const double storageTankPlantConnectionHeatTransferEffectiveness = modelObject.storageTankPlantConnectionHeatTransferEffectiveness(); | ||
| 837 | // idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::StorageTankPlantConnectionHeatTransferEffectiveness, | ||
| 838 | // storageTankPlantConnectionHeatTransferEffectiveness); | ||
| 839 | |||
| 840 | // Storage Tank Minimum Operating Limit Fluid Temperature: boost::optional<double> | ||
| 841 | // if (boost::optional<double> storageTankMinimumOperatingLimitFluidTemperature_ = modelObject.storageTankMinimumOperatingLimitFluidTemperature()) { | ||
| 842 | // idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::StorageTankMinimumOperatingLimitFluidTemperature, | ||
| 843 | // storageTankMinimumOperatingLimitFluidTemperature_.get()); | ||
| 844 | // } | ||
| 845 | |||
| 846 | // Storage Tank Maximum Operating Limit Fluid Temperature: boost::optional<double> | ||
| 847 | // if (boost::optional<double> storageTankMaximumOperatingLimitFluidTemperature_ = modelObject.storageTankMaximumOperatingLimitFluidTemperature()) { | ||
| 848 | // idfObject.setDouble(Coil_Cooling_DX_SingleSpeed_ThermalStorageFields::StorageTankMaximumOperatingLimitFluidTemperature, | ||
| 849 | // storageTankMaximumOperatingLimitFluidTemperature_.get()); | ||
| 850 | // } | ||
| 851 | |||
| 852 |
1/1✓ Branch 1 taken 2 times.
|
4 | return idfObject; |
| 853 | 2 | } | |
| 854 | |||
| 855 | boost::optional<IdfObject> | ||
| 856 | 1 | ForwardTranslator::translateCoilCoolingDXSingleSpeedThermalStorage(model::CoilCoolingDXSingleSpeedThermalStorage& modelObject) { | |
| 857 | |||
| 858 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | IdfObject coilSystemCoolingDXIdf(IddObjectType::CoilSystem_Cooling_DX); |
| 859 | |||
| 860 |
1/1✓ Branch 1 taken 1 time.
|
1 | m_idfObjects.push_back(coilSystemCoolingDXIdf); |
| 861 | |||
| 862 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<IdfObject> oIdfObject = translateCoilCoolingDXSingleSpeedThermalStorageWithoutUnitary(modelObject); |
| 863 | |||
| 864 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
|
1 | if (!oIdfObject) { |
| 865 | ✗ | return boost::none; | |
| 866 | } | ||
| 867 | |||
| 868 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | IdfObject idfObject = oIdfObject.get(); |
| 869 | |||
| 870 | 1 | OptionalString s; | |
| 871 | |||
| 872 |
1/1✓ Branch 1 taken 1 time.
|
1 | s = modelObject.name(); |
| 873 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (s) { |
| 874 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | coilSystemCoolingDXIdf.setString(CoilSystem_Cooling_DXFields::CoolingCoilObjectType, idfObject.iddObject().name()); |
| 875 | |||
| 876 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | coilSystemCoolingDXIdf.setString(CoilSystem_Cooling_DXFields::CoolingCoilName, *s); |
| 877 | |||
| 878 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | coilSystemCoolingDXIdf.setName(*s + " CoilSystem"); |
| 879 | } | ||
| 880 | |||
| 881 |
1/1✓ Branch 1 taken 1 time.
|
1 | Schedule sched = modelObject.availabilitySchedule(); |
| 882 |
1/1✓ Branch 1 taken 1 time.
|
1 | translateAndMapModelObject(sched); |
| 883 | |||
| 884 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | coilSystemCoolingDXIdf.setString(CoilSystem_Cooling_DXFields::AvailabilityScheduleName, sched.name().get()); |
| 885 | |||
| 886 |
1/1✓ Branch 1 taken 1 time.
|
1 | OptionalModelObject omo = modelObject.inletModelObject(); |
| 887 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (omo) { |
| 888 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | translateAndMapModelObject(*omo); |
| 889 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | s = omo->name(); |
| 890 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (s) { |
| 891 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | coilSystemCoolingDXIdf.setString(CoilSystem_Cooling_DXFields::DXCoolingCoilSystemInletNodeName, *s); |
| 892 | } | ||
| 893 | } | ||
| 894 | |||
| 895 |
1/1✓ Branch 1 taken 1 time.
|
1 | omo = modelObject.outletModelObject(); |
| 896 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (omo) { |
| 897 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | translateAndMapModelObject(*omo); |
| 898 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | s = omo->name(); |
| 899 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (s) { |
| 900 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | coilSystemCoolingDXIdf.setString(CoilSystem_Cooling_DXFields::DXCoolingCoilSystemOutletNodeName, *s); |
| 901 | |||
| 902 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | coilSystemCoolingDXIdf.setString(CoilSystem_Cooling_DXFields::DXCoolingCoilSystemSensorNodeName, *s); |
| 903 | } | ||
| 904 | } | ||
| 905 | |||
| 906 |
1/1✓ Branch 1 taken 1 time.
|
1 | return coilSystemCoolingDXIdf; |
| 907 | 1 | } | |
| 908 | |||
| 909 | } // end namespace energyplus | ||
| 910 | } // end namespace openstudio | ||
| 911 |