src/energyplus/ForwardTranslator/ForwardTranslateCoolingTowerSingleSpeed.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/CoolingTowerSingleSpeed.hpp" | ||
| 9 | #include "../../model/CoolingTowerSingleSpeed_Impl.hpp" | ||
| 10 | #include "../../model/Schedule.hpp" | ||
| 11 | #include "../../model/Schedule_Impl.hpp" | ||
| 12 | #include "../../utilities/idf/IdfExtensibleGroup.hpp" | ||
| 13 | #include "../../utilities/idf/Workspace.hpp" | ||
| 14 | #include "../../utilities/idf/WorkspaceObjectOrder.hpp" | ||
| 15 | #include "../../utilities/core/Logger.hpp" | ||
| 16 | #include <utilities/idd/CoolingTower_SingleSpeed_FieldEnums.hxx> | ||
| 17 | #include <utilities/idd/IddEnums.hxx> | ||
| 18 | |||
| 19 | using namespace openstudio::model; | ||
| 20 | |||
| 21 | namespace openstudio { | ||
| 22 | |||
| 23 | namespace energyplus { | ||
| 24 | |||
| 25 | 4 | boost::optional<IdfObject> ForwardTranslator::translateCoolingTowerSingleSpeed(CoolingTowerSingleSpeed& modelObject) { | |
| 26 | 4 | OptionalString s; | |
| 27 | 4 | OptionalDouble d; | |
| 28 | 4 | OptionalModelObject temp; | |
| 29 | |||
| 30 | // Create a new IddObjectType::Fan_ConstantVolume | ||
| 31 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | IdfObject idfObject(IddObjectType::CoolingTower_SingleSpeed); |
| 32 | |||
| 33 |
1/1✓ Branch 1 taken 4 times.
|
4 | m_idfObjects.push_back(idfObject); |
| 34 | |||
| 35 | // Name | ||
| 36 | |||
| 37 |
1/1✓ Branch 1 taken 4 times.
|
4 | s = modelObject.name(); |
| 38 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | if (s) { |
| 39 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | idfObject.setName(*s); |
| 40 | } | ||
| 41 | |||
| 42 | // WaterInletNodeName | ||
| 43 | |||
| 44 |
1/1✓ Branch 1 taken 4 times.
|
4 | temp = modelObject.inletModelObject(); |
| 45 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | if (temp) { |
| 46 |
4/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
|
4 | idfObject.setString(openstudio::CoolingTower_SingleSpeedFields::WaterInletNodeName, temp->name().get()); |
| 47 | } | ||
| 48 | |||
| 49 | // WaterOutletNodeName | ||
| 50 | |||
| 51 |
1/1✓ Branch 1 taken 4 times.
|
4 | temp = modelObject.outletModelObject(); |
| 52 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | if (temp) { |
| 53 |
4/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
|
4 | idfObject.setString(openstudio::CoolingTower_SingleSpeedFields::WaterOutletNodeName, temp->name().get()); |
| 54 | } | ||
| 55 | |||
| 56 | // DesignWaterFlowRate | ||
| 57 | |||
| 58 |
4/5✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 4 times.
|
8 | if (istringEqual(modelObject.performanceInputMethod(), "NominalCapacity")) { |
| 59 | ✗ | idfObject.setString(openstudio::CoolingTower_SingleSpeedFields::DesignWaterFlowRate, ""); | |
| 60 | } else { | ||
| 61 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 3 times.
|
8 | if ((d = modelObject.designWaterFlowRate())) { |
| 62 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(openstudio::CoolingTower_SingleSpeedFields::DesignWaterFlowRate, d.get()); |
| 63 |
2/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 3 times.
✗ Branch 4 not taken.
|
3 | } else if (modelObject.isDesignAirFlowRateAutosized()) { |
| 64 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | idfObject.setString(openstudio::CoolingTower_SingleSpeedFields::DesignWaterFlowRate, "Autosize"); |
| 65 | } | ||
| 66 | } | ||
| 67 | |||
| 68 | // DesignAirFlowRate | ||
| 69 | |||
| 70 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 3 times.
|
8 | if ((d = modelObject.designAirFlowRate())) { |
| 71 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(openstudio::CoolingTower_SingleSpeedFields::DesignAirFlowRate, d.get()); |
| 72 |
2/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 3 times.
✗ Branch 4 not taken.
|
3 | } else if (modelObject.isDesignAirFlowRateAutosized()) { |
| 73 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | idfObject.setString(openstudio::CoolingTower_SingleSpeedFields::DesignAirFlowRate, "Autosize"); |
| 74 | } | ||
| 75 | |||
| 76 | // FanPoweratDesignAirFlowRate | ||
| 77 | |||
| 78 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 3 times.
|
8 | if ((d = modelObject.fanPoweratDesignAirFlowRate())) { |
| 79 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(openstudio::CoolingTower_SingleSpeedFields::DesignFanPower, d.get()); |
| 80 |
2/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 3 times.
✗ Branch 4 not taken.
|
3 | } else if (modelObject.isFanPoweratDesignAirFlowRateAutosized()) { |
| 81 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | idfObject.setString(openstudio::CoolingTower_SingleSpeedFields::DesignFanPower, "Autosize"); |
| 82 | } | ||
| 83 | |||
| 84 | // UFactorTimesAreaValueatDesignAirFlowRate | ||
| 85 | |||
| 86 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 3 times.
|
8 | if ((d = modelObject.uFactorTimesAreaValueatDesignAirFlowRate())) { |
| 87 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(openstudio::CoolingTower_SingleSpeedFields::DesignUFactorTimesAreaValue, d.get()); |
| 88 |
2/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 3 times.
✗ Branch 4 not taken.
|
3 | } else if (modelObject.isUFactorTimesAreaValueatFreeConvectionAirFlowRateAutosized()) { |
| 89 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | idfObject.setString(openstudio::CoolingTower_SingleSpeedFields::DesignUFactorTimesAreaValue, "Autosize"); |
| 90 | } | ||
| 91 | |||
| 92 | // AirFlowRateinFreeConvectionRegime | ||
| 93 | |||
| 94 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 3 times.
|
8 | if ((d = modelObject.airFlowRateinFreeConvectionRegime())) { |
| 95 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(openstudio::CoolingTower_SingleSpeedFields::FreeConvectionRegimeAirFlowRate, d.get()); |
| 96 |
2/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 3 times.
✗ Branch 4 not taken.
|
3 | } else if (modelObject.isAirFlowRateinFreeConvectionRegimeAutosized()) { |
| 97 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | idfObject.setString(openstudio::CoolingTower_SingleSpeedFields::FreeConvectionRegimeAirFlowRate, "Autosize"); |
| 98 | } | ||
| 99 | |||
| 100 | // UFactorTimesAreaValueatFreeConvectionAirFlowRate | ||
| 101 | |||
| 102 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 3 times.
|
8 | if ((d = modelObject.uFactorTimesAreaValueatFreeConvectionAirFlowRate())) { |
| 103 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(openstudio::CoolingTower_SingleSpeedFields::FreeConvectionRegimeUFactorTimesAreaValue, d.get()); |
| 104 |
2/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 3 times.
✗ Branch 4 not taken.
|
3 | } else if (modelObject.isUFactorTimesAreaValueatFreeConvectionAirFlowRateAutosized()) { |
| 105 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | idfObject.setString(openstudio::CoolingTower_SingleSpeedFields::FreeConvectionRegimeUFactorTimesAreaValue, "Autosize"); |
| 106 | } | ||
| 107 | |||
| 108 | // PerformanceInputMethod | ||
| 109 | |||
| 110 |
3/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 8 taken 4 times.
✗ Branch 9 not taken.
|
8 | if ((s = modelObject.performanceInputMethod())) { |
| 111 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | idfObject.setString(openstudio::CoolingTower_SingleSpeedFields::PerformanceInputMethod, s.get()); |
| 112 | } | ||
| 113 | |||
| 114 | // NominalCapacity | ||
| 115 | |||
| 116 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 3 times.
|
8 | if ((d = modelObject.nominalCapacity())) { |
| 117 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(openstudio::CoolingTower_SingleSpeedFields::NominalCapacity, d.get()); |
| 118 | } | ||
| 119 | |||
| 120 | // FreeConvectionCapacity | ||
| 121 | |||
| 122 |
2/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 4 times.
✗ Branch 4 not taken.
|
8 | if ((d = modelObject.freeConvectionCapacity())) { |
| 123 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | idfObject.setDouble(openstudio::CoolingTower_SingleSpeedFields::FreeConvectionCapacity, d.get()); |
| 124 | } | ||
| 125 | |||
| 126 | // BasinHeaterCapacity | ||
| 127 | |||
| 128 |
3/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 8 not taken.
|
8 | if ((d = modelObject.basinHeaterCapacity())) { |
| 129 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | idfObject.setDouble(openstudio::CoolingTower_SingleSpeedFields::BasinHeaterCapacity, d.get()); |
| 130 | } | ||
| 131 | |||
| 132 | // BasinHeaterSetpointTemperature | ||
| 133 | |||
| 134 |
3/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 8 not taken.
|
8 | if ((d = modelObject.basinHeaterSetpointTemperature())) { |
| 135 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | idfObject.setDouble(openstudio::CoolingTower_SingleSpeedFields::BasinHeaterSetpointTemperature, d.get()); |
| 136 | } | ||
| 137 | |||
| 138 | // BasinHeaterOperatingSchedule | ||
| 139 | |||
| 140 |
4/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 8 taken 1 time.
✓ Branch 9 taken 3 times.
|
8 | if ((temp = modelObject.basinHeaterOperatingSchedule())) { |
| 141 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 7 not taken.
|
2 | if (boost::optional<IdfObject> _schedule = translateAndMapModelObject(temp.get())) { |
| 142 |
4/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
|
1 | idfObject.setString(openstudio::CoolingTower_SingleSpeedFields::BasinHeaterOperatingScheduleName, _schedule->name().get()); |
| 143 | 1 | } | |
| 144 | } | ||
| 145 | |||
| 146 | // EvaporationLossMode | ||
| 147 | |||
| 148 |
3/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 8 taken 4 times.
✗ Branch 9 not taken.
|
8 | if ((s = modelObject.evaporationLossMode())) { |
| 149 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | idfObject.setString(openstudio::CoolingTower_SingleSpeedFields::EvaporationLossMode, s.get()); |
| 150 | } | ||
| 151 | |||
| 152 | // EvaporationLossFactor | ||
| 153 | |||
| 154 |
3/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 8 not taken.
|
8 | if ((d = modelObject.evaporationLossFactor())) { |
| 155 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | idfObject.setDouble(openstudio::CoolingTower_SingleSpeedFields::EvaporationLossFactor, d.get()); |
| 156 | } | ||
| 157 | |||
| 158 | // DriftLossPercent | ||
| 159 | |||
| 160 |
3/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 8 not taken.
|
8 | if ((d = modelObject.driftLossPercent())) { |
| 161 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | idfObject.setDouble(openstudio::CoolingTower_SingleSpeedFields::DriftLossPercent, d.get()); |
| 162 | } | ||
| 163 | |||
| 164 | // BlowdownCalculationMode | ||
| 165 | |||
| 166 |
3/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 8 taken 4 times.
✗ Branch 9 not taken.
|
8 | if ((s = modelObject.blowdownCalculationMode())) { |
| 167 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | idfObject.setString(openstudio::CoolingTower_SingleSpeedFields::BlowdownCalculationMode, s.get()); |
| 168 | } | ||
| 169 | |||
| 170 | // BlowdownConcentrationRatio | ||
| 171 | |||
| 172 |
3/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 8 not taken.
|
8 | if ((d = modelObject.blowdownConcentrationRatio())) { |
| 173 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | idfObject.setDouble(openstudio::CoolingTower_SingleSpeedFields::BlowdownConcentrationRatio, d.get()); |
| 174 | } | ||
| 175 | |||
| 176 | // BlowdownMakeupWaterUsageScheduleName | ||
| 177 | |||
| 178 |
4/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 8 taken 1 time.
✓ Branch 9 taken 3 times.
|
8 | if ((temp = modelObject.blowdownMakeupWaterUsageSchedule())) { |
| 179 |
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> _schedule = translateAndMapModelObject(temp.get())) { |
| 180 |
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(openstudio::CoolingTower_SingleSpeedFields::BlowdownMakeupWaterUsageScheduleName, _schedule->name().get()); |
| 181 | 1 | } | |
| 182 | } | ||
| 183 | |||
| 184 | // CapacityControl | ||
| 185 | |||
| 186 |
3/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 8 taken 4 times.
✗ Branch 9 not taken.
|
8 | if ((s = modelObject.capacityControl())) { |
| 187 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | idfObject.setString(openstudio::CoolingTower_SingleSpeedFields::CapacityControl, s.get()); |
| 188 | } | ||
| 189 | |||
| 190 | // NumberofCells | ||
| 191 | |||
| 192 |
2/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 4 times.
✗ Branch 4 not taken.
|
4 | if (int n = modelObject.numberofCells()) { |
| 193 |
1/1✓ Branch 1 taken 4 times.
|
4 | idfObject.setUnsigned(openstudio::CoolingTower_SingleSpeedFields::NumberofCells, n); |
| 194 | } | ||
| 195 | |||
| 196 | // CellControl | ||
| 197 | |||
| 198 |
3/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 8 taken 4 times.
✗ Branch 9 not taken.
|
8 | if ((s = modelObject.cellControl())) { |
| 199 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | idfObject.setString(openstudio::CoolingTower_SingleSpeedFields::CellControl, s.get()); |
| 200 | } | ||
| 201 | |||
| 202 | // CellMinimumWaterFlowRateFraction | ||
| 203 | |||
| 204 |
3/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 8 not taken.
|
8 | if ((d = modelObject.cellMinimumWaterFlowRateFraction())) { |
| 205 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | idfObject.setDouble(openstudio::CoolingTower_SingleSpeedFields::CellMinimumWaterFlowRateFraction, d.get()); |
| 206 | } | ||
| 207 | |||
| 208 | // CellMaximumWaterFlowRateFraction | ||
| 209 | |||
| 210 |
3/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 8 not taken.
|
8 | if ((d = modelObject.cellMaximumWaterFlowRateFraction())) { |
| 211 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | idfObject.setDouble(openstudio::CoolingTower_SingleSpeedFields::CellMaximumWaterFlowRateFraction, d.get()); |
| 212 | } | ||
| 213 | |||
| 214 | // SizingFactor | ||
| 215 | |||
| 216 |
3/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 8 not taken.
|
8 | if ((d = modelObject.sizingFactor())) { |
| 217 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | idfObject.setDouble(openstudio::CoolingTower_SingleSpeedFields::SizingFactor, d.get()); |
| 218 | } else { | ||
| 219 | // DLM: apply default value of 1, was added to IDD but did not fix previous files | ||
| 220 | ✗ | idfObject.setDouble(openstudio::CoolingTower_SingleSpeedFields::SizingFactor, 1); | |
| 221 | } | ||
| 222 | |||
| 223 |
3/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 8 not taken.
|
8 | if ((d = modelObject.freeConvectionAirFlowRateSizingFactor())) { |
| 224 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | idfObject.setDouble(openstudio::CoolingTower_SingleSpeedFields::FreeConvectionRegimeAirFlowRateSizingFactor, d.get()); |
| 225 | } | ||
| 226 | |||
| 227 |
3/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 8 not taken.
|
8 | if ((d = modelObject.freeConvectionUFactorTimesAreaValueSizingFactor())) { |
| 228 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | idfObject.setDouble(openstudio::CoolingTower_SingleSpeedFields::FreeConvectionUFactorTimesAreaValueSizingFactor, d.get()); |
| 229 | } | ||
| 230 | |||
| 231 |
3/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 8 not taken.
|
8 | if ((d = modelObject.heatRejectionCapacityAndNominalCapacitySizingRatio())) { |
| 232 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | idfObject.setDouble(openstudio::CoolingTower_SingleSpeedFields::HeatRejectionCapacityandNominalCapacitySizingRatio, d.get()); |
| 233 | } | ||
| 234 | |||
| 235 |
3/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 8 not taken.
|
8 | if ((d = modelObject.freeConvectionNominalCapacitySizingFactor())) { |
| 236 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | idfObject.setDouble(openstudio::CoolingTower_SingleSpeedFields::FreeConvectionNominalCapacitySizingFactor, d.get()); |
| 237 | } | ||
| 238 | |||
| 239 |
3/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 8 not taken.
|
8 | if ((d = modelObject.designInletAirDryBulbTemperature())) { |
| 240 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | idfObject.setDouble(openstudio::CoolingTower_SingleSpeedFields::DesignInletAirDryBulbTemperature, d.get()); |
| 241 | } | ||
| 242 | |||
| 243 |
3/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 8 not taken.
|
8 | if ((d = modelObject.designInletAirWetBulbTemperature())) { |
| 244 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | idfObject.setDouble(openstudio::CoolingTower_SingleSpeedFields::DesignInletAirWetBulbTemperature, d.get()); |
| 245 | } | ||
| 246 | |||
| 247 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 3 times.
✓ Branch 4 taken 1 time.
|
4 | if (modelObject.isDesignApproachTemperatureAutosized()) { |
| 248 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | idfObject.setString(openstudio::CoolingTower_SingleSpeedFields::DesignApproachTemperature, "Autosize"); |
| 249 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | } else if ((d = modelObject.designApproachTemperature())) { |
| 250 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(openstudio::CoolingTower_SingleSpeedFields::DesignApproachTemperature, d.get()); |
| 251 | } | ||
| 252 | |||
| 253 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 3 times.
✓ Branch 4 taken 1 time.
|
4 | if (modelObject.isDesignRangeTemperatureAutosized()) { |
| 254 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | idfObject.setString(openstudio::CoolingTower_SingleSpeedFields::DesignRangeTemperature, "Autosize"); |
| 255 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | } else if ((d = modelObject.designRangeTemperature())) { |
| 256 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | idfObject.setDouble(openstudio::CoolingTower_SingleSpeedFields::DesignRangeTemperature, d.get()); |
| 257 | } | ||
| 258 | |||
| 259 |
3/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 8 taken 4 times.
✗ Branch 9 not taken.
|
8 | if ((s = modelObject.endUseSubcategory())) { |
| 260 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | idfObject.setString(openstudio::CoolingTower_SingleSpeedFields::EndUseSubcategory, s.get()); |
| 261 | } | ||
| 262 | |||
| 263 |
1/1✓ Branch 1 taken 4 times.
|
8 | return boost::optional<IdfObject>(idfObject); |
| 264 | 4 | } | |
| 265 | |||
| 266 | } // namespace energyplus | ||
| 267 | |||
| 268 | } // namespace openstudio | ||
| 269 |