src/model/CoolingTowerSingleSpeed.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 "CoolingTowerSingleSpeed.hpp" | ||
| 7 | #include "CoolingTowerSingleSpeed_Impl.hpp" | ||
| 8 | #include "Schedule.hpp" | ||
| 9 | #include "Schedule_Impl.hpp" | ||
| 10 | #include "Node.hpp" | ||
| 11 | #include "Node_Impl.hpp" | ||
| 12 | #include "PlantLoop.hpp" | ||
| 13 | #include "PlantLoop_Impl.hpp" | ||
| 14 | #include "SizingPlant.hpp" | ||
| 15 | |||
| 16 | #include "../utilities/core/Assert.hpp" | ||
| 17 | #include "../utilities/data/DataEnums.hpp" | ||
| 18 | |||
| 19 | #include <utilities/idd/IddFactory.hxx> | ||
| 20 | #include <utilities/idd/OS_CoolingTower_SingleSpeed_FieldEnums.hxx> | ||
| 21 | #include <utilities/idd/IddEnums.hxx> | ||
| 22 | |||
| 23 | namespace openstudio { | ||
| 24 | namespace model { | ||
| 25 | |||
| 26 | namespace detail { | ||
| 27 | |||
| 28 | 10 | CoolingTowerSingleSpeed_Impl::CoolingTowerSingleSpeed_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 29 | 10 | : StraightComponent_Impl(idfObject, model, keepHandle) { | |
| 30 |
4/6✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
✓ Branch 7 taken 10 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 10 times.
✗ Branch 13 not taken.
|
10 | OS_ASSERT(idfObject.iddObject().type() == CoolingTowerSingleSpeed::iddObjectType()); |
| 31 | 10 | } | |
| 32 | |||
| 33 | ✗ | CoolingTowerSingleSpeed_Impl::CoolingTowerSingleSpeed_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, | |
| 34 | ✗ | bool keepHandle) | |
| 35 | ✗ | : StraightComponent_Impl(other, model, keepHandle) { | |
| 36 | ✗ | OS_ASSERT(other.iddObject().type() == CoolingTowerSingleSpeed::iddObjectType()); | |
| 37 | ✗ | } | |
| 38 | |||
| 39 | 6 | CoolingTowerSingleSpeed_Impl::CoolingTowerSingleSpeed_Impl(const CoolingTowerSingleSpeed_Impl& other, Model_Impl* model, bool keepHandle) | |
| 40 | 6 | : StraightComponent_Impl(other, model, keepHandle) {} | |
| 41 | |||
| 42 | ✗ | const std::vector<std::string>& CoolingTowerSingleSpeed_Impl::outputVariableNames() const { | |
| 43 | // Until this changes, static | ||
| 44 | static const std::vector<std::string> result{ | ||
| 45 | |||
| 46 | // Common Variables | ||
| 47 | "Cooling Tower Fan Electricity Rate", "Cooling Tower Fan Electricity Energy", "Cooling Tower Heat Transfer Rate", | ||
| 48 | "Cooling Tower Inlet Temperature", "Cooling Tower Outlet Temperature", "Cooling Tower Mass Flow Rate", "Cooling Tower Bypass Fraction", | ||
| 49 | "Cooling Tower Fan Cycling Ratio", "Cooling Tower Operating Cells Count", | ||
| 50 | |||
| 51 | // When Mains Water is used | ||
| 52 | "Cooling Tower Make Up Water Volume Flow Rate", "Cooling Tower Make Up Water Volume", "Cooling Tower Make Up Mains Water Volume", | ||
| 53 | |||
| 54 | // When storage tank water is used: | ||
| 55 | // Supply Water Storage Tank Name isn't implemented in OpenStudio | ||
| 56 | // TODO: Revisit if need be | ||
| 57 | //"Cooling Tower Make Up Water Volume Flow Rate", | ||
| 58 | //"Cooling Tower Make Up Water Volume", | ||
| 59 | //"Cooling Tower Storage Tank Water Volume Flow Rate", | ||
| 60 | //"Cooling Tower Storage Tank Water Volume", | ||
| 61 | //"Cooling Tower Starved Storage Tank Water Volume Flow Rate", | ||
| 62 | //"Cooling Tower Starved Storage Tank Water Volume", | ||
| 63 | //"Cooling Tower Make Up Mains Water Volume", | ||
| 64 | //"Cooling Tower Water Evaporation Volume Flow Rate", | ||
| 65 | //"Cooling Tower Water Evaporation Volume", | ||
| 66 | //"Cooling Tower Water Drift Volume Flow Rate", | ||
| 67 | //"Cooling Tower Water Drift Volume", | ||
| 68 | //"Cooling Tower Water Blowdown Volume Flow Rate", | ||
| 69 | //"Cooling Tower Water Blowdown Volume", | ||
| 70 | |||
| 71 | // if specified | ||
| 72 | // TODO: @DLM: the return type of this method needs to change to std::vector<std::string> in ModelObject | ||
| 73 | // if (this->basinHeaterCapacity() > 0) { | ||
| 74 | ✗ | "Cooling Tower Basin Heater Electricity Rate", "Cooling Tower Basin Heater Electric Energy"}; | |
| 75 | |||
| 76 | ✗ | return result; | |
| 77 | ✗ | } | |
| 78 | |||
| 79 | ✗ | IddObjectType CoolingTowerSingleSpeed_Impl::iddObjectType() const { | |
| 80 | ✗ | return CoolingTowerSingleSpeed::iddObjectType(); | |
| 81 | } | ||
| 82 | |||
| 83 | ✗ | std::vector<ScheduleTypeKey> CoolingTowerSingleSpeed_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 84 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 85 | ✗ | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 86 | ✗ | UnsignedVector::const_iterator b(fieldIndices.begin()); | |
| 87 | ✗ | UnsignedVector::const_iterator e(fieldIndices.end()); | |
| 88 | ✗ | if (std::find(b, e, OS_CoolingTower_SingleSpeedFields::BasinHeaterOperatingScheduleName) != e) { | |
| 89 | ✗ | result.push_back(ScheduleTypeKey("CoolingTowerSingleSpeed", "Basin Heater Operating")); | |
| 90 | } | ||
| 91 | ✗ | if (std::find(b, e, OS_CoolingTower_SingleSpeedFields::BlowdownMakeupWaterUsageScheduleName) != e) { | |
| 92 | ✗ | result.push_back(ScheduleTypeKey("CoolingTowerSingleSpeed", "Blowdown Makeup Water Usage")); | |
| 93 | } | ||
| 94 | ✗ | return result; | |
| 95 | ✗ | } | |
| 96 | |||
| 97 | 18 | unsigned CoolingTowerSingleSpeed_Impl::inletPort() const { | |
| 98 | 18 | return OS_CoolingTower_SingleSpeedFields::WaterInletNodeName; | |
| 99 | } | ||
| 100 | |||
| 101 | 133 | unsigned CoolingTowerSingleSpeed_Impl::outletPort() const { | |
| 102 | 133 | return OS_CoolingTower_SingleSpeedFields::WaterOutletNodeName; | |
| 103 | } | ||
| 104 | |||
| 105 | 5 | boost::optional<double> CoolingTowerSingleSpeed_Impl::designWaterFlowRate() const { | |
| 106 | 5 | return getDouble(OS_CoolingTower_SingleSpeedFields::DesignWaterFlowRate, true); | |
| 107 | } | ||
| 108 | |||
| 109 | 1 | bool CoolingTowerSingleSpeed_Impl::isDesignWaterFlowRateAutosized() const { | |
| 110 | 1 | bool result = false; | |
| 111 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<std::string> value = getString(OS_CoolingTower_SingleSpeedFields::DesignWaterFlowRate, true); |
| 112 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (value) { |
| 113 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
2 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 114 | } | ||
| 115 | 1 | return result; | |
| 116 | 1 | } | |
| 117 | |||
| 118 | 5 | boost::optional<double> CoolingTowerSingleSpeed_Impl::designAirFlowRate() const { | |
| 119 | 5 | return getDouble(OS_CoolingTower_SingleSpeedFields::DesignAirFlowRate, true); | |
| 120 | } | ||
| 121 | |||
| 122 | 7 | bool CoolingTowerSingleSpeed_Impl::isDesignAirFlowRateAutosized() const { | |
| 123 | 7 | bool result = false; | |
| 124 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<std::string> value = getString(OS_CoolingTower_SingleSpeedFields::DesignAirFlowRate, true); |
| 125 |
1/2✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
|
7 | if (value) { |
| 126 |
3/3✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
|
14 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 127 | } | ||
| 128 | 7 | return result; | |
| 129 | 7 | } | |
| 130 | |||
| 131 | 5 | boost::optional<double> CoolingTowerSingleSpeed_Impl::fanPoweratDesignAirFlowRate() const { | |
| 132 | 5 | return getDouble(OS_CoolingTower_SingleSpeedFields::FanPoweratDesignAirFlowRate, true); | |
| 133 | } | ||
| 134 | |||
| 135 | 4 | bool CoolingTowerSingleSpeed_Impl::isFanPoweratDesignAirFlowRateAutosized() const { | |
| 136 | 4 | bool result = false; | |
| 137 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<std::string> value = getString(OS_CoolingTower_SingleSpeedFields::FanPoweratDesignAirFlowRate, true); |
| 138 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | if (value) { |
| 139 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
|
8 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 140 | } | ||
| 141 | 4 | return result; | |
| 142 | 4 | } | |
| 143 | |||
| 144 | 5 | boost::optional<double> CoolingTowerSingleSpeed_Impl::uFactorTimesAreaValueatDesignAirFlowRate() const { | |
| 145 | 5 | return getDouble(OS_CoolingTower_SingleSpeedFields::UFactorTimesAreaValueatDesignAirFlowRate, true); | |
| 146 | } | ||
| 147 | |||
| 148 | 1 | bool CoolingTowerSingleSpeed_Impl::isUFactorTimesAreaValueatDesignAirFlowRateAutosized() const { | |
| 149 | 1 | bool result = false; | |
| 150 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<std::string> value = getString(OS_CoolingTower_SingleSpeedFields::UFactorTimesAreaValueatDesignAirFlowRate, true); |
| 151 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (value) { |
| 152 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
2 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 153 | } | ||
| 154 | 1 | return result; | |
| 155 | 1 | } | |
| 156 | |||
| 157 | 5 | boost::optional<double> CoolingTowerSingleSpeed_Impl::airFlowRateinFreeConvectionRegime() const { | |
| 158 | 5 | return getDouble(OS_CoolingTower_SingleSpeedFields::AirFlowRateinFreeConvectionRegime, true); | |
| 159 | } | ||
| 160 | |||
| 161 | 1 | bool CoolingTowerSingleSpeed_Impl::isAirFlowRateinFreeConvectionRegimeDefaulted() const { | |
| 162 | 1 | return isEmpty(OS_CoolingTower_SingleSpeedFields::AirFlowRateinFreeConvectionRegime); | |
| 163 | } | ||
| 164 | |||
| 165 | 4 | bool CoolingTowerSingleSpeed_Impl::isAirFlowRateinFreeConvectionRegimeAutosized() const { | |
| 166 | 4 | bool result = false; | |
| 167 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<std::string> value = getString(OS_CoolingTower_SingleSpeedFields::AirFlowRateinFreeConvectionRegime, true); |
| 168 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | if (value) { |
| 169 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
|
8 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 170 | } | ||
| 171 | 4 | return result; | |
| 172 | 4 | } | |
| 173 | |||
| 174 | 5 | boost::optional<double> CoolingTowerSingleSpeed_Impl::uFactorTimesAreaValueatFreeConvectionAirFlowRate() const { | |
| 175 | 5 | return getDouble(OS_CoolingTower_SingleSpeedFields::UFactorTimesAreaValueatFreeConvectionAirFlowRate, true); | |
| 176 | } | ||
| 177 | |||
| 178 | 1 | bool CoolingTowerSingleSpeed_Impl::isUFactorTimesAreaValueatFreeConvectionAirFlowRateDefaulted() const { | |
| 179 | 1 | return isEmpty(OS_CoolingTower_SingleSpeedFields::UFactorTimesAreaValueatFreeConvectionAirFlowRate); | |
| 180 | } | ||
| 181 | |||
| 182 | 7 | bool CoolingTowerSingleSpeed_Impl::isUFactorTimesAreaValueatFreeConvectionAirFlowRateAutosized() const { | |
| 183 | 7 | bool result = false; | |
| 184 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<std::string> value = getString(OS_CoolingTower_SingleSpeedFields::UFactorTimesAreaValueatFreeConvectionAirFlowRate, true); |
| 185 |
1/2✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
|
7 | if (value) { |
| 186 |
3/3✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
|
14 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 187 | } | ||
| 188 | 7 | return result; | |
| 189 | 7 | } | |
| 190 | |||
| 191 | 9 | std::string CoolingTowerSingleSpeed_Impl::performanceInputMethod() const { | |
| 192 |
1/1✓ Branch 1 taken 9 times.
|
9 | boost::optional<std::string> value = getString(OS_CoolingTower_SingleSpeedFields::PerformanceInputMethod, true); |
| 193 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 9 times.
✗ Branch 4 not taken.
|
9 | OS_ASSERT(value); |
| 194 |
2/2✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
|
18 | return value.get(); |
| 195 | 9 | } | |
| 196 | |||
| 197 | 1 | bool CoolingTowerSingleSpeed_Impl::isPerformanceInputMethodDefaulted() const { | |
| 198 | 1 | return isEmpty(OS_CoolingTower_SingleSpeedFields::PerformanceInputMethod); | |
| 199 | } | ||
| 200 | |||
| 201 | 5 | boost::optional<double> CoolingTowerSingleSpeed_Impl::nominalCapacity() const { | |
| 202 | 5 | return getDouble(OS_CoolingTower_SingleSpeedFields::NominalCapacity, true); | |
| 203 | } | ||
| 204 | |||
| 205 | 6 | boost::optional<double> CoolingTowerSingleSpeed_Impl::freeConvectionCapacity() const { | |
| 206 | 6 | return getDouble(OS_CoolingTower_SingleSpeedFields::FreeConvectionCapacity, true); | |
| 207 | } | ||
| 208 | |||
| 209 | 5 | double CoolingTowerSingleSpeed_Impl::basinHeaterCapacity() const { | |
| 210 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<double> value = getDouble(OS_CoolingTower_SingleSpeedFields::BasinHeaterCapacity, true); |
| 211 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 212 |
1/1✓ Branch 1 taken 5 times.
|
10 | return value.get(); |
| 213 | } | ||
| 214 | |||
| 215 | 1 | bool CoolingTowerSingleSpeed_Impl::isBasinHeaterCapacityDefaulted() const { | |
| 216 | 1 | return isEmpty(OS_CoolingTower_SingleSpeedFields::BasinHeaterCapacity); | |
| 217 | } | ||
| 218 | |||
| 219 | 5 | double CoolingTowerSingleSpeed_Impl::basinHeaterSetpointTemperature() const { | |
| 220 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<double> value = getDouble(OS_CoolingTower_SingleSpeedFields::BasinHeaterSetpointTemperature, true); |
| 221 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 222 |
1/1✓ Branch 1 taken 5 times.
|
10 | return value.get(); |
| 223 | } | ||
| 224 | |||
| 225 | 1 | bool CoolingTowerSingleSpeed_Impl::isBasinHeaterSetpointTemperatureDefaulted() const { | |
| 226 | 1 | return isEmpty(OS_CoolingTower_SingleSpeedFields::BasinHeaterSetpointTemperature); | |
| 227 | } | ||
| 228 | |||
| 229 | 5 | boost::optional<Schedule> CoolingTowerSingleSpeed_Impl::basinHeaterOperatingSchedule() const { | |
| 230 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_CoolingTower_SingleSpeedFields::BasinHeaterOperatingScheduleName); |
| 231 | } | ||
| 232 | |||
| 233 | 5 | std::string CoolingTowerSingleSpeed_Impl::evaporationLossMode() const { | |
| 234 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<std::string> value = getString(OS_CoolingTower_SingleSpeedFields::EvaporationLossMode, true); |
| 235 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 236 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
10 | return value.get(); |
| 237 | 5 | } | |
| 238 | |||
| 239 | 1 | bool CoolingTowerSingleSpeed_Impl::isEvaporationLossModeDefaulted() const { | |
| 240 | 1 | return isEmpty(OS_CoolingTower_SingleSpeedFields::EvaporationLossMode); | |
| 241 | } | ||
| 242 | |||
| 243 | 5 | double CoolingTowerSingleSpeed_Impl::evaporationLossFactor() const { | |
| 244 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<double> value = getDouble(OS_CoolingTower_SingleSpeedFields::EvaporationLossFactor, true); |
| 245 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 246 |
1/1✓ Branch 1 taken 5 times.
|
10 | return value.get(); |
| 247 | } | ||
| 248 | |||
| 249 | 1 | bool CoolingTowerSingleSpeed_Impl::isEvaporationLossFactorDefaulted() const { | |
| 250 | 1 | return isEmpty(OS_CoolingTower_SingleSpeedFields::EvaporationLossFactor); | |
| 251 | } | ||
| 252 | |||
| 253 | 5 | double CoolingTowerSingleSpeed_Impl::driftLossPercent() const { | |
| 254 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<double> value = getDouble(OS_CoolingTower_SingleSpeedFields::DriftLossPercent, true); |
| 255 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 256 |
1/1✓ Branch 1 taken 5 times.
|
10 | return value.get(); |
| 257 | } | ||
| 258 | |||
| 259 | 1 | bool CoolingTowerSingleSpeed_Impl::isDriftLossPercentDefaulted() const { | |
| 260 | 1 | return isEmpty(OS_CoolingTower_SingleSpeedFields::DriftLossPercent); | |
| 261 | } | ||
| 262 | |||
| 263 | 5 | std::string CoolingTowerSingleSpeed_Impl::blowdownCalculationMode() const { | |
| 264 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<std::string> value = getString(OS_CoolingTower_SingleSpeedFields::BlowdownCalculationMode, true); |
| 265 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 266 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
10 | return value.get(); |
| 267 | 5 | } | |
| 268 | |||
| 269 | 1 | bool CoolingTowerSingleSpeed_Impl::isBlowdownCalculationModeDefaulted() const { | |
| 270 | 1 | return isEmpty(OS_CoolingTower_SingleSpeedFields::BlowdownCalculationMode); | |
| 271 | } | ||
| 272 | |||
| 273 | 5 | double CoolingTowerSingleSpeed_Impl::blowdownConcentrationRatio() const { | |
| 274 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<double> value = getDouble(OS_CoolingTower_SingleSpeedFields::BlowdownConcentrationRatio, true); |
| 275 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 276 |
1/1✓ Branch 1 taken 5 times.
|
10 | return value.get(); |
| 277 | } | ||
| 278 | |||
| 279 | 1 | bool CoolingTowerSingleSpeed_Impl::isBlowdownConcentrationRatioDefaulted() const { | |
| 280 | 1 | return isEmpty(OS_CoolingTower_SingleSpeedFields::BlowdownConcentrationRatio); | |
| 281 | } | ||
| 282 | |||
| 283 | 5 | boost::optional<Schedule> CoolingTowerSingleSpeed_Impl::blowdownMakeupWaterUsageSchedule() const { | |
| 284 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_CoolingTower_SingleSpeedFields::BlowdownMakeupWaterUsageScheduleName); |
| 285 | } | ||
| 286 | |||
| 287 | 5 | std::string CoolingTowerSingleSpeed_Impl::capacityControl() const { | |
| 288 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<std::string> value = getString(OS_CoolingTower_SingleSpeedFields::CapacityControl, true); |
| 289 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 290 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
10 | return value.get(); |
| 291 | 5 | } | |
| 292 | |||
| 293 | 1 | bool CoolingTowerSingleSpeed_Impl::isCapacityControlDefaulted() const { | |
| 294 | 1 | return isEmpty(OS_CoolingTower_SingleSpeedFields::CapacityControl); | |
| 295 | } | ||
| 296 | |||
| 297 | 5 | int CoolingTowerSingleSpeed_Impl::numberofCells() const { | |
| 298 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<int> value = getInt(OS_CoolingTower_SingleSpeedFields::NumberofCells, true); |
| 299 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 300 |
1/1✓ Branch 1 taken 5 times.
|
10 | return value.get(); |
| 301 | } | ||
| 302 | |||
| 303 | 1 | bool CoolingTowerSingleSpeed_Impl::isNumberofCellsDefaulted() const { | |
| 304 | 1 | return isEmpty(OS_CoolingTower_SingleSpeedFields::NumberofCells); | |
| 305 | } | ||
| 306 | |||
| 307 | 5 | std::string CoolingTowerSingleSpeed_Impl::cellControl() const { | |
| 308 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<std::string> value = getString(OS_CoolingTower_SingleSpeedFields::CellControl, true); |
| 309 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 310 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
10 | return value.get(); |
| 311 | 5 | } | |
| 312 | |||
| 313 | 1 | bool CoolingTowerSingleSpeed_Impl::isCellControlDefaulted() const { | |
| 314 | 1 | return isEmpty(OS_CoolingTower_SingleSpeedFields::CellControl); | |
| 315 | } | ||
| 316 | |||
| 317 | 5 | double CoolingTowerSingleSpeed_Impl::cellMinimumWaterFlowRateFraction() const { | |
| 318 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<double> value = getDouble(OS_CoolingTower_SingleSpeedFields::CellMinimumWaterFlowRateFraction, true); |
| 319 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 320 |
1/1✓ Branch 1 taken 5 times.
|
10 | return value.get(); |
| 321 | } | ||
| 322 | |||
| 323 | 1 | bool CoolingTowerSingleSpeed_Impl::isCellMinimumWaterFlowRateFractionDefaulted() const { | |
| 324 | 1 | return isEmpty(OS_CoolingTower_SingleSpeedFields::CellMinimumWaterFlowRateFraction); | |
| 325 | } | ||
| 326 | |||
| 327 | 5 | double CoolingTowerSingleSpeed_Impl::cellMaximumWaterFlowRateFraction() const { | |
| 328 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<double> value = getDouble(OS_CoolingTower_SingleSpeedFields::CellMaximumWaterFlowRateFraction, true); |
| 329 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 330 |
1/1✓ Branch 1 taken 5 times.
|
10 | return value.get(); |
| 331 | } | ||
| 332 | |||
| 333 | 1 | bool CoolingTowerSingleSpeed_Impl::isCellMaximumWaterFlowRateFractionDefaulted() const { | |
| 334 | 1 | return isEmpty(OS_CoolingTower_SingleSpeedFields::CellMaximumWaterFlowRateFraction); | |
| 335 | } | ||
| 336 | |||
| 337 | 5 | double CoolingTowerSingleSpeed_Impl::sizingFactor() const { | |
| 338 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<double> value = getDouble(OS_CoolingTower_SingleSpeedFields::SizingFactor, true); |
| 339 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 340 |
1/1✓ Branch 1 taken 5 times.
|
10 | return value.get(); |
| 341 | } | ||
| 342 | |||
| 343 | 1 | bool CoolingTowerSingleSpeed_Impl::isSizingFactorDefaulted() const { | |
| 344 | 1 | return isEmpty(OS_CoolingTower_SingleSpeedFields::SizingFactor); | |
| 345 | } | ||
| 346 | |||
| 347 | 1 | bool CoolingTowerSingleSpeed_Impl::setDesignWaterFlowRate(boost::optional<double> designWaterFlowRate) { | |
| 348 | 1 | bool result = false; | |
| 349 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (designWaterFlowRate) { |
| 350 | 1 | result = setDouble(OS_CoolingTower_SingleSpeedFields::DesignWaterFlowRate, designWaterFlowRate.get()); | |
| 351 | } else { | ||
| 352 | ✗ | result = setString(OS_CoolingTower_SingleSpeedFields::DesignWaterFlowRate, ""); | |
| 353 | } | ||
| 354 | 1 | return result; | |
| 355 | } | ||
| 356 | |||
| 357 | ✗ | void CoolingTowerSingleSpeed_Impl::resetDesignWaterFlowRate() { | |
| 358 | ✗ | bool result = setString(OS_CoolingTower_SingleSpeedFields::DesignWaterFlowRate, ""); | |
| 359 | ✗ | OS_ASSERT(result); | |
| 360 | ✗ | } | |
| 361 | |||
| 362 | 10 | void CoolingTowerSingleSpeed_Impl::autosizeDesignWaterFlowRate() { | |
| 363 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
20 | bool result = setString(OS_CoolingTower_SingleSpeedFields::DesignWaterFlowRate, "autosize"); |
| 364 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
|
10 | OS_ASSERT(result); |
| 365 | 10 | } | |
| 366 | |||
| 367 | 1 | bool CoolingTowerSingleSpeed_Impl::setDesignAirFlowRate(boost::optional<double> designAirFlowRate) { | |
| 368 | 1 | bool result = false; | |
| 369 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (designAirFlowRate) { |
| 370 | 1 | result = setDouble(OS_CoolingTower_SingleSpeedFields::DesignAirFlowRate, designAirFlowRate.get()); | |
| 371 | } else { | ||
| 372 | ✗ | result = setString(OS_CoolingTower_SingleSpeedFields::DesignAirFlowRate, ""); | |
| 373 | } | ||
| 374 | 1 | return result; | |
| 375 | } | ||
| 376 | |||
| 377 | 10 | void CoolingTowerSingleSpeed_Impl::autosizeDesignAirFlowRate() { | |
| 378 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
20 | bool result = setString(OS_CoolingTower_SingleSpeedFields::DesignAirFlowRate, "autosize"); |
| 379 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
|
10 | OS_ASSERT(result); |
| 380 | 10 | } | |
| 381 | |||
| 382 | 1 | bool CoolingTowerSingleSpeed_Impl::setFanPoweratDesignAirFlowRate(boost::optional<double> fanPoweratDesignAirFlowRate) { | |
| 383 | 1 | bool result = false; | |
| 384 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (fanPoweratDesignAirFlowRate) { |
| 385 | 1 | result = setDouble(OS_CoolingTower_SingleSpeedFields::FanPoweratDesignAirFlowRate, fanPoweratDesignAirFlowRate.get()); | |
| 386 | } else { | ||
| 387 | ✗ | result = setString(OS_CoolingTower_SingleSpeedFields::FanPoweratDesignAirFlowRate, ""); | |
| 388 | } | ||
| 389 | 1 | return result; | |
| 390 | } | ||
| 391 | |||
| 392 | 10 | void CoolingTowerSingleSpeed_Impl::autosizeFanPoweratDesignAirFlowRate() { | |
| 393 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
20 | bool result = setString(OS_CoolingTower_SingleSpeedFields::FanPoweratDesignAirFlowRate, "autosize"); |
| 394 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
|
10 | OS_ASSERT(result); |
| 395 | 10 | } | |
| 396 | |||
| 397 | 1 | bool CoolingTowerSingleSpeed_Impl::setUFactorTimesAreaValueatDesignAirFlowRate(boost::optional<double> uFactorTimesAreaValueatDesignAirFlowRate) { | |
| 398 | 1 | bool result = false; | |
| 399 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (uFactorTimesAreaValueatDesignAirFlowRate) { |
| 400 | result = | ||
| 401 | 1 | setDouble(OS_CoolingTower_SingleSpeedFields::UFactorTimesAreaValueatDesignAirFlowRate, uFactorTimesAreaValueatDesignAirFlowRate.get()); | |
| 402 | } else { | ||
| 403 | ✗ | result = setString(OS_CoolingTower_SingleSpeedFields::UFactorTimesAreaValueatDesignAirFlowRate, ""); | |
| 404 | } | ||
| 405 | 1 | return result; | |
| 406 | } | ||
| 407 | |||
| 408 | ✗ | void CoolingTowerSingleSpeed_Impl::resetUFactorTimesAreaValueatDesignAirFlowRate() { | |
| 409 | ✗ | bool result = setString(OS_CoolingTower_SingleSpeedFields::UFactorTimesAreaValueatDesignAirFlowRate, ""); | |
| 410 | ✗ | OS_ASSERT(result); | |
| 411 | ✗ | } | |
| 412 | |||
| 413 | 10 | void CoolingTowerSingleSpeed_Impl::autosizeUFactorTimesAreaValueatDesignAirFlowRate() { | |
| 414 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
20 | bool result = setString(OS_CoolingTower_SingleSpeedFields::UFactorTimesAreaValueatDesignAirFlowRate, "autosize"); |
| 415 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
|
10 | OS_ASSERT(result); |
| 416 | 10 | } | |
| 417 | |||
| 418 | 1 | bool CoolingTowerSingleSpeed_Impl::setAirFlowRateinFreeConvectionRegime(boost::optional<double> airFlowRateinFreeConvectionRegime) { | |
| 419 | 1 | bool result = false; | |
| 420 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (airFlowRateinFreeConvectionRegime) { |
| 421 | 1 | result = setDouble(OS_CoolingTower_SingleSpeedFields::AirFlowRateinFreeConvectionRegime, airFlowRateinFreeConvectionRegime.get()); | |
| 422 | } else { | ||
| 423 | ✗ | result = setString(OS_CoolingTower_SingleSpeedFields::AirFlowRateinFreeConvectionRegime, ""); | |
| 424 | } | ||
| 425 | 1 | return result; | |
| 426 | } | ||
| 427 | |||
| 428 | ✗ | void CoolingTowerSingleSpeed_Impl::resetAirFlowRateinFreeConvectionRegime() { | |
| 429 | ✗ | bool result = setString(OS_CoolingTower_SingleSpeedFields::AirFlowRateinFreeConvectionRegime, ""); | |
| 430 | ✗ | OS_ASSERT(result); | |
| 431 | ✗ | } | |
| 432 | |||
| 433 | 10 | void CoolingTowerSingleSpeed_Impl::autosizeAirFlowRateinFreeConvectionRegime() { | |
| 434 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
20 | bool result = setString(OS_CoolingTower_SingleSpeedFields::AirFlowRateinFreeConvectionRegime, "autosize"); |
| 435 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
|
10 | OS_ASSERT(result); |
| 436 | 10 | } | |
| 437 | |||
| 438 | 1 | bool CoolingTowerSingleSpeed_Impl::setUFactorTimesAreaValueatFreeConvectionAirFlowRate( | |
| 439 | boost::optional<double> uFactorTimesAreaValueatFreeConvectionAirFlowRate) { | ||
| 440 | 1 | bool result = false; | |
| 441 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (uFactorTimesAreaValueatFreeConvectionAirFlowRate) { |
| 442 | 1 | result = setDouble(OS_CoolingTower_SingleSpeedFields::UFactorTimesAreaValueatFreeConvectionAirFlowRate, | |
| 443 | 1 | uFactorTimesAreaValueatFreeConvectionAirFlowRate.get()); | |
| 444 | } else { | ||
| 445 | ✗ | result = setString(OS_CoolingTower_SingleSpeedFields::UFactorTimesAreaValueatFreeConvectionAirFlowRate, ""); | |
| 446 | } | ||
| 447 | 1 | return result; | |
| 448 | } | ||
| 449 | |||
| 450 | ✗ | void CoolingTowerSingleSpeed_Impl::resetUFactorTimesAreaValueatFreeConvectionAirFlowRate() { | |
| 451 | ✗ | bool result = setString(OS_CoolingTower_SingleSpeedFields::UFactorTimesAreaValueatFreeConvectionAirFlowRate, ""); | |
| 452 | ✗ | OS_ASSERT(result); | |
| 453 | ✗ | } | |
| 454 | |||
| 455 | 10 | void CoolingTowerSingleSpeed_Impl::autosizeUFactorTimesAreaValueatFreeConvectionAirFlowRate() { | |
| 456 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
20 | bool result = setString(OS_CoolingTower_SingleSpeedFields::UFactorTimesAreaValueatFreeConvectionAirFlowRate, "autosize"); |
| 457 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
|
10 | OS_ASSERT(result); |
| 458 | 10 | } | |
| 459 | |||
| 460 | 11 | bool CoolingTowerSingleSpeed_Impl::setPerformanceInputMethod(const std::string& performanceInputMethod) { | |
| 461 | 11 | bool result = setString(OS_CoolingTower_SingleSpeedFields::PerformanceInputMethod, performanceInputMethod); | |
| 462 | 11 | return result; | |
| 463 | } | ||
| 464 | |||
| 465 | ✗ | void CoolingTowerSingleSpeed_Impl::resetPerformanceInputMethod() { | |
| 466 | ✗ | bool result = setString(OS_CoolingTower_SingleSpeedFields::PerformanceInputMethod, ""); | |
| 467 | ✗ | OS_ASSERT(result); | |
| 468 | ✗ | } | |
| 469 | |||
| 470 | 1 | bool CoolingTowerSingleSpeed_Impl::setNominalCapacity(boost::optional<double> nominalCapacity) { | |
| 471 | 1 | bool result = false; | |
| 472 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (nominalCapacity) { |
| 473 | 1 | result = setDouble(OS_CoolingTower_SingleSpeedFields::NominalCapacity, nominalCapacity.get()); | |
| 474 | } else { | ||
| 475 | ✗ | result = setString(OS_CoolingTower_SingleSpeedFields::NominalCapacity, ""); | |
| 476 | } | ||
| 477 | 1 | return result; | |
| 478 | } | ||
| 479 | |||
| 480 | ✗ | void CoolingTowerSingleSpeed_Impl::resetNominalCapacity() { | |
| 481 | ✗ | bool result = setString(OS_CoolingTower_SingleSpeedFields::NominalCapacity, ""); | |
| 482 | ✗ | OS_ASSERT(result); | |
| 483 | ✗ | } | |
| 484 | |||
| 485 | 11 | bool CoolingTowerSingleSpeed_Impl::setFreeConvectionCapacity(boost::optional<double> freeConvectionCapacity) { | |
| 486 | 11 | bool result = false; | |
| 487 |
1/2✓ Branch 0 taken 11 times.
✗ Branch 1 not taken.
|
11 | if (freeConvectionCapacity) { |
| 488 | 11 | result = setDouble(OS_CoolingTower_SingleSpeedFields::FreeConvectionCapacity, freeConvectionCapacity.get()); | |
| 489 | } else { | ||
| 490 | ✗ | result = setString(OS_CoolingTower_SingleSpeedFields::FreeConvectionCapacity, ""); | |
| 491 | } | ||
| 492 | 11 | return result; | |
| 493 | } | ||
| 494 | |||
| 495 | ✗ | void CoolingTowerSingleSpeed_Impl::resetFreeConvectionCapacity() { | |
| 496 | ✗ | bool result = setString(OS_CoolingTower_SingleSpeedFields::FreeConvectionCapacity, ""); | |
| 497 | ✗ | OS_ASSERT(result); | |
| 498 | ✗ | } | |
| 499 | |||
| 500 | 11 | bool CoolingTowerSingleSpeed_Impl::setBasinHeaterCapacity(double basinHeaterCapacity) { | |
| 501 | 11 | bool result = setDouble(OS_CoolingTower_SingleSpeedFields::BasinHeaterCapacity, basinHeaterCapacity); | |
| 502 | 11 | return result; | |
| 503 | } | ||
| 504 | |||
| 505 | ✗ | void CoolingTowerSingleSpeed_Impl::resetBasinHeaterCapacity() { | |
| 506 | ✗ | bool result = setString(OS_CoolingTower_SingleSpeedFields::BasinHeaterCapacity, ""); | |
| 507 | ✗ | OS_ASSERT(result); | |
| 508 | ✗ | } | |
| 509 | |||
| 510 | 11 | bool CoolingTowerSingleSpeed_Impl::setBasinHeaterSetpointTemperature(double basinHeaterSetpointTemperature) { | |
| 511 | 11 | bool result = setDouble(OS_CoolingTower_SingleSpeedFields::BasinHeaterSetpointTemperature, basinHeaterSetpointTemperature); | |
| 512 | 11 | return result; | |
| 513 | } | ||
| 514 | |||
| 515 | ✗ | void CoolingTowerSingleSpeed_Impl::resetBasinHeaterSetpointTemperature() { | |
| 516 | ✗ | bool result = setString(OS_CoolingTower_SingleSpeedFields::BasinHeaterSetpointTemperature, ""); | |
| 517 | ✗ | OS_ASSERT(result); | |
| 518 | ✗ | } | |
| 519 | |||
| 520 | 1 | bool CoolingTowerSingleSpeed_Impl::setBasinHeaterOperatingSchedule(Schedule& basinHeaterOperatingSchedule) { | |
| 521 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
4 | bool result = setSchedule(OS_CoolingTower_SingleSpeedFields::BasinHeaterOperatingScheduleName, "CoolingTowerSingleSpeed", |
| 522 | "Basin Heater Operating", basinHeaterOperatingSchedule); | ||
| 523 | 1 | return result; | |
| 524 | } | ||
| 525 | |||
| 526 | ✗ | void CoolingTowerSingleSpeed_Impl::resetBasinHeaterOperatingSchedule() { | |
| 527 | ✗ | bool result = setString(OS_CoolingTower_SingleSpeedFields::BasinHeaterOperatingScheduleName, ""); | |
| 528 | ✗ | OS_ASSERT(result); | |
| 529 | ✗ | } | |
| 530 | |||
| 531 | 11 | bool CoolingTowerSingleSpeed_Impl::setEvaporationLossMode(boost::optional<std::string> evaporationLossMode) { | |
| 532 | 11 | bool result = false; | |
| 533 |
1/2✓ Branch 0 taken 11 times.
✗ Branch 1 not taken.
|
11 | if (evaporationLossMode) { |
| 534 | 11 | result = setString(OS_CoolingTower_SingleSpeedFields::EvaporationLossMode, evaporationLossMode.get()); | |
| 535 | } else { | ||
| 536 | ✗ | result = setString(OS_CoolingTower_SingleSpeedFields::EvaporationLossMode, ""); | |
| 537 | } | ||
| 538 | 11 | return result; | |
| 539 | } | ||
| 540 | |||
| 541 | ✗ | void CoolingTowerSingleSpeed_Impl::resetEvaporationLossMode() { | |
| 542 | ✗ | bool result = setString(OS_CoolingTower_SingleSpeedFields::EvaporationLossMode, ""); | |
| 543 | ✗ | OS_ASSERT(result); | |
| 544 | ✗ | } | |
| 545 | |||
| 546 | 11 | bool CoolingTowerSingleSpeed_Impl::setEvaporationLossFactor(double evaporationLossFactor) { | |
| 547 | 11 | bool result = setDouble(OS_CoolingTower_SingleSpeedFields::EvaporationLossFactor, evaporationLossFactor); | |
| 548 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
|
11 | OS_ASSERT(result); |
| 549 | 11 | return result; | |
| 550 | } | ||
| 551 | |||
| 552 | ✗ | void CoolingTowerSingleSpeed_Impl::resetEvaporationLossFactor() { | |
| 553 | ✗ | bool result = setString(OS_CoolingTower_SingleSpeedFields::EvaporationLossFactor, ""); | |
| 554 | ✗ | OS_ASSERT(result); | |
| 555 | ✗ | } | |
| 556 | |||
| 557 | 11 | bool CoolingTowerSingleSpeed_Impl::setDriftLossPercent(double driftLossPercent) { | |
| 558 | 11 | bool result = setDouble(OS_CoolingTower_SingleSpeedFields::DriftLossPercent, driftLossPercent); | |
| 559 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
|
11 | OS_ASSERT(result); |
| 560 | 11 | return result; | |
| 561 | } | ||
| 562 | |||
| 563 | ✗ | void CoolingTowerSingleSpeed_Impl::resetDriftLossPercent() { | |
| 564 | ✗ | bool result = setString(OS_CoolingTower_SingleSpeedFields::DriftLossPercent, ""); | |
| 565 | ✗ | OS_ASSERT(result); | |
| 566 | ✗ | } | |
| 567 | |||
| 568 | 11 | bool CoolingTowerSingleSpeed_Impl::setBlowdownCalculationMode(boost::optional<std::string> blowdownCalculationMode) { | |
| 569 | 11 | bool result = false; | |
| 570 |
1/2✓ Branch 0 taken 11 times.
✗ Branch 1 not taken.
|
11 | if (blowdownCalculationMode) { |
| 571 | 11 | result = setString(OS_CoolingTower_SingleSpeedFields::BlowdownCalculationMode, blowdownCalculationMode.get()); | |
| 572 | } else { | ||
| 573 | ✗ | result = setString(OS_CoolingTower_SingleSpeedFields::BlowdownCalculationMode, ""); | |
| 574 | } | ||
| 575 | 11 | return result; | |
| 576 | } | ||
| 577 | |||
| 578 | ✗ | void CoolingTowerSingleSpeed_Impl::resetBlowdownCalculationMode() { | |
| 579 | ✗ | bool result = setString(OS_CoolingTower_SingleSpeedFields::BlowdownCalculationMode, ""); | |
| 580 | ✗ | OS_ASSERT(result); | |
| 581 | ✗ | } | |
| 582 | |||
| 583 | 11 | bool CoolingTowerSingleSpeed_Impl::setBlowdownConcentrationRatio(double blowdownConcentrationRatio) { | |
| 584 | 11 | bool result = setDouble(OS_CoolingTower_SingleSpeedFields::BlowdownConcentrationRatio, blowdownConcentrationRatio); | |
| 585 | 11 | return result; | |
| 586 | } | ||
| 587 | |||
| 588 | ✗ | void CoolingTowerSingleSpeed_Impl::resetBlowdownConcentrationRatio() { | |
| 589 | ✗ | bool result = setString(OS_CoolingTower_SingleSpeedFields::BlowdownConcentrationRatio, ""); | |
| 590 | ✗ | OS_ASSERT(result); | |
| 591 | ✗ | } | |
| 592 | |||
| 593 | 1 | bool CoolingTowerSingleSpeed_Impl::setBlowdownMakeupWaterUsageSchedule(Schedule& blowdownMakeupWaterUsageSchedule) { | |
| 594 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
4 | bool result = setSchedule(OS_CoolingTower_SingleSpeedFields::BlowdownMakeupWaterUsageScheduleName, "CoolingTowerSingleSpeed", |
| 595 | "Blowdown Makeup Water Usage", blowdownMakeupWaterUsageSchedule); | ||
| 596 | 1 | return result; | |
| 597 | } | ||
| 598 | |||
| 599 | ✗ | void CoolingTowerSingleSpeed_Impl::resetBlowdownMakeupWaterUsageSchedule() { | |
| 600 | ✗ | bool result = setString(OS_CoolingTower_SingleSpeedFields::BlowdownMakeupWaterUsageScheduleName, ""); | |
| 601 | ✗ | OS_ASSERT(result); | |
| 602 | ✗ | } | |
| 603 | |||
| 604 | 11 | bool CoolingTowerSingleSpeed_Impl::setCapacityControl(const std::string& capacityControl) { | |
| 605 | 11 | bool result = setString(OS_CoolingTower_SingleSpeedFields::CapacityControl, capacityControl); | |
| 606 | 11 | return result; | |
| 607 | } | ||
| 608 | |||
| 609 | ✗ | void CoolingTowerSingleSpeed_Impl::resetCapacityControl() { | |
| 610 | ✗ | bool result = setString(OS_CoolingTower_SingleSpeedFields::CapacityControl, ""); | |
| 611 | ✗ | OS_ASSERT(result); | |
| 612 | ✗ | } | |
| 613 | |||
| 614 | 11 | bool CoolingTowerSingleSpeed_Impl::setNumberofCells(int numberofCells) { | |
| 615 | 11 | bool result = setInt(OS_CoolingTower_SingleSpeedFields::NumberofCells, numberofCells); | |
| 616 | 11 | return result; | |
| 617 | } | ||
| 618 | |||
| 619 | ✗ | void CoolingTowerSingleSpeed_Impl::resetNumberofCells() { | |
| 620 | ✗ | bool result = setString(OS_CoolingTower_SingleSpeedFields::NumberofCells, ""); | |
| 621 | ✗ | OS_ASSERT(result); | |
| 622 | ✗ | } | |
| 623 | |||
| 624 | 11 | bool CoolingTowerSingleSpeed_Impl::setCellControl(const std::string& cellControl) { | |
| 625 | 11 | bool result = setString(OS_CoolingTower_SingleSpeedFields::CellControl, cellControl); | |
| 626 | 11 | return result; | |
| 627 | } | ||
| 628 | |||
| 629 | ✗ | void CoolingTowerSingleSpeed_Impl::resetCellControl() { | |
| 630 | ✗ | bool result = setString(OS_CoolingTower_SingleSpeedFields::CellControl, ""); | |
| 631 | ✗ | OS_ASSERT(result); | |
| 632 | ✗ | } | |
| 633 | |||
| 634 | 11 | bool CoolingTowerSingleSpeed_Impl::setCellMinimumWaterFlowRateFraction(double cellMinimumWaterFlowRateFraction) { | |
| 635 | 11 | bool result = setDouble(OS_CoolingTower_SingleSpeedFields::CellMinimumWaterFlowRateFraction, cellMinimumWaterFlowRateFraction); | |
| 636 | 11 | return result; | |
| 637 | } | ||
| 638 | |||
| 639 | ✗ | void CoolingTowerSingleSpeed_Impl::resetCellMinimumWaterFlowRateFraction() { | |
| 640 | ✗ | bool result = setString(OS_CoolingTower_SingleSpeedFields::CellMinimumWaterFlowRateFraction, ""); | |
| 641 | ✗ | OS_ASSERT(result); | |
| 642 | ✗ | } | |
| 643 | |||
| 644 | 11 | bool CoolingTowerSingleSpeed_Impl::setCellMaximumWaterFlowRateFraction(double cellMaximumWaterFlowRateFraction) { | |
| 645 | 11 | bool result = setDouble(OS_CoolingTower_SingleSpeedFields::CellMaximumWaterFlowRateFraction, cellMaximumWaterFlowRateFraction); | |
| 646 | 11 | return result; | |
| 647 | } | ||
| 648 | |||
| 649 | ✗ | void CoolingTowerSingleSpeed_Impl::resetCellMaximumWaterFlowRateFraction() { | |
| 650 | ✗ | bool result = setString(OS_CoolingTower_SingleSpeedFields::CellMaximumWaterFlowRateFraction, ""); | |
| 651 | ✗ | OS_ASSERT(result); | |
| 652 | ✗ | } | |
| 653 | |||
| 654 | 11 | bool CoolingTowerSingleSpeed_Impl::setSizingFactor(double sizingFactor) { | |
| 655 | 11 | bool result = setDouble(OS_CoolingTower_SingleSpeedFields::SizingFactor, sizingFactor); | |
| 656 | 11 | return result; | |
| 657 | } | ||
| 658 | |||
| 659 | ✗ | void CoolingTowerSingleSpeed_Impl::resetSizingFactor() { | |
| 660 | ✗ | bool result = setString(OS_CoolingTower_SingleSpeedFields::SizingFactor, ""); | |
| 661 | ✗ | OS_ASSERT(result); | |
| 662 | ✗ | } | |
| 663 | |||
| 664 | ✗ | std::vector<std::string> CoolingTowerSingleSpeed_Impl::performanceInputMethodValues() const { | |
| 665 | ✗ | return CoolingTowerSingleSpeed::performanceInputMethodValues(); | |
| 666 | } | ||
| 667 | |||
| 668 | ✗ | std::vector<std::string> CoolingTowerSingleSpeed_Impl::evaporationLossModeValues() const { | |
| 669 | ✗ | return CoolingTowerSingleSpeed::evaporationLossModeValues(); | |
| 670 | } | ||
| 671 | |||
| 672 | ✗ | std::vector<std::string> CoolingTowerSingleSpeed_Impl::blowdownCalculationModeValues() const { | |
| 673 | ✗ | return CoolingTowerSingleSpeed::blowdownCalculationModeValues(); | |
| 674 | } | ||
| 675 | |||
| 676 | ✗ | std::vector<std::string> CoolingTowerSingleSpeed_Impl::capacityControlValues() const { | |
| 677 | ✗ | return CoolingTowerSingleSpeed::capacityControlValues(); | |
| 678 | } | ||
| 679 | |||
| 680 | ✗ | std::vector<std::string> CoolingTowerSingleSpeed_Impl::cellControlValues() const { | |
| 681 | ✗ | return CoolingTowerSingleSpeed::cellControlValues(); | |
| 682 | } | ||
| 683 | |||
| 684 | ✗ | boost::optional<ModelObject> CoolingTowerSingleSpeed_Impl::basinHeaterOperatingScheduleAsModelObject() const { | |
| 685 | ✗ | OptionalModelObject result; | |
| 686 | ✗ | OptionalSchedule intermediate = basinHeaterOperatingSchedule(); | |
| 687 | ✗ | if (intermediate) { | |
| 688 | ✗ | result = *intermediate; | |
| 689 | } | ||
| 690 | ✗ | return result; | |
| 691 | ✗ | } | |
| 692 | |||
| 693 | ✗ | boost::optional<ModelObject> CoolingTowerSingleSpeed_Impl::blowdownMakeupWaterUsageScheduleAsModelObject() const { | |
| 694 | ✗ | OptionalModelObject result; | |
| 695 | ✗ | OptionalSchedule intermediate = blowdownMakeupWaterUsageSchedule(); | |
| 696 | ✗ | if (intermediate) { | |
| 697 | ✗ | result = *intermediate; | |
| 698 | } | ||
| 699 | ✗ | return result; | |
| 700 | ✗ | } | |
| 701 | |||
| 702 | ✗ | bool CoolingTowerSingleSpeed_Impl::setBasinHeaterOperatingScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) { | |
| 703 | ✗ | if (modelObject) { | |
| 704 | ✗ | OptionalSchedule intermediate = modelObject->optionalCast<Schedule>(); | |
| 705 | ✗ | if (intermediate) { | |
| 706 | ✗ | Schedule schedule(*intermediate); | |
| 707 | ✗ | return setBasinHeaterOperatingSchedule(schedule); | |
| 708 | ✗ | } else { | |
| 709 | ✗ | return false; | |
| 710 | } | ||
| 711 | ✗ | } else { | |
| 712 | ✗ | resetBasinHeaterOperatingSchedule(); | |
| 713 | } | ||
| 714 | ✗ | return true; | |
| 715 | } | ||
| 716 | |||
| 717 | ✗ | bool CoolingTowerSingleSpeed_Impl::setBlowdownMakeupWaterUsageScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) { | |
| 718 | ✗ | if (modelObject) { | |
| 719 | ✗ | OptionalSchedule intermediate = modelObject->optionalCast<Schedule>(); | |
| 720 | ✗ | if (intermediate) { | |
| 721 | ✗ | Schedule schedule(*intermediate); | |
| 722 | ✗ | return setBlowdownMakeupWaterUsageSchedule(schedule); | |
| 723 | ✗ | } else { | |
| 724 | ✗ | return false; | |
| 725 | } | ||
| 726 | ✗ | } else { | |
| 727 | ✗ | resetBlowdownMakeupWaterUsageSchedule(); | |
| 728 | } | ||
| 729 | ✗ | return true; | |
| 730 | } | ||
| 731 | |||
| 732 | 11 | bool CoolingTowerSingleSpeed_Impl::addToNode(Node& node) { | |
| 733 |
3/3✓ Branch 1 taken 11 times.
✓ Branch 3 taken 9 times.
✓ Branch 4 taken 2 times.
|
22 | if (boost::optional<PlantLoop> plant = node.plantLoop()) { |
| 734 |
5/5✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
✓ Branch 10 taken 8 times.
✓ Branch 11 taken 1 time.
|
18 | if (plant->supplyComponent(node.handle())) { |
| 735 |
1/1✓ Branch 1 taken 8 times.
|
8 | return StraightComponent_Impl::addToNode(node); |
| 736 | } | ||
| 737 | 11 | } | |
| 738 | |||
| 739 | 3 | return false; | |
| 740 | } | ||
| 741 | |||
| 742 | ✗ | boost::optional<double> CoolingTowerSingleSpeed_Impl::autosizedDesignWaterFlowRate() const { | |
| 743 | ✗ | return getAutosizedValue("Design Water Flow Rate", "m3/s"); | |
| 744 | } | ||
| 745 | |||
| 746 | ✗ | boost::optional<double> CoolingTowerSingleSpeed_Impl::autosizedDesignAirFlowRate() const { | |
| 747 | ✗ | return getAutosizedValue("Design Air Flow Rate", "m3/s"); | |
| 748 | } | ||
| 749 | |||
| 750 | ✗ | boost::optional<double> CoolingTowerSingleSpeed_Impl::autosizedFanPoweratDesignAirFlowRate() const { | |
| 751 | ✗ | return getAutosizedValue("Fan Power at Design Air Flow Rate", "W"); | |
| 752 | } | ||
| 753 | |||
| 754 | ✗ | boost::optional<double> CoolingTowerSingleSpeed_Impl::autosizedUFactorTimesAreaValueatDesignAirFlowRate() const { | |
| 755 | ✗ | return getAutosizedValue("U-Factor Times Area Value at Design Air Flow Rate", "W/C"); | |
| 756 | } | ||
| 757 | |||
| 758 | ✗ | boost::optional<double> CoolingTowerSingleSpeed_Impl::autosizedAirFlowRateinFreeConvectionRegime() const { | |
| 759 | ✗ | return getAutosizedValue("Free Convection Regime Air Flow Rate", "m3/s"); | |
| 760 | } | ||
| 761 | |||
| 762 | ✗ | boost::optional<double> CoolingTowerSingleSpeed_Impl::autosizedUFactorTimesAreaValueatFreeConvectionAirFlowRate() const { | |
| 763 | ✗ | return getAutosizedValue("Free Convection U-Factor Times Area Value", "W/K"); | |
| 764 | } | ||
| 765 | |||
| 766 | ✗ | boost::optional<double> CoolingTowerSingleSpeed_Impl::autosizedDesignApproachTemperature() const { | |
| 767 | ✗ | boost::optional<double> result; | |
| 768 | |||
| 769 | // Calculate Approach as design wet bulb temp - EWT (from SizingPlant) | ||
| 770 | ✗ | if (boost::optional<PlantLoop> pl = this->plantLoop()) { | |
| 771 | ✗ | SizingPlant sz = pl->sizingPlant(); | |
| 772 | ✗ | double EWT = sz.designLoopExitTemperature() - sz.loopDesignTemperatureDifference(); | |
| 773 | ✗ | result = EWT - designInletAirWetBulbTemperature(); | |
| 774 | ✗ | } | |
| 775 | ✗ | return result; | |
| 776 | } | ||
| 777 | |||
| 778 | ✗ | boost::optional<double> CoolingTowerSingleSpeed_Impl::autosizedDesignRangeTemperature() const { | |
| 779 | ✗ | boost::optional<double> result; | |
| 780 | |||
| 781 | // Return the SizingPlant DeltaT | ||
| 782 | ✗ | if (boost::optional<PlantLoop> pl = this->plantLoop()) { | |
| 783 | ✗ | SizingPlant sz = pl->sizingPlant(); | |
| 784 | ✗ | result = sz.loopDesignTemperatureDifference(); | |
| 785 | ✗ | } | |
| 786 | ✗ | return result; | |
| 787 | } | ||
| 788 | |||
| 789 | ✗ | void CoolingTowerSingleSpeed_Impl::autosize() { | |
| 790 | ✗ | autosizeDesignWaterFlowRate(); | |
| 791 | ✗ | autosizeDesignAirFlowRate(); | |
| 792 | ✗ | autosizeFanPoweratDesignAirFlowRate(); | |
| 793 | ✗ | autosizeUFactorTimesAreaValueatDesignAirFlowRate(); | |
| 794 | ✗ | autosizeAirFlowRateinFreeConvectionRegime(); | |
| 795 | ✗ | autosizeUFactorTimesAreaValueatFreeConvectionAirFlowRate(); | |
| 796 | ✗ | autosizeDesignRangeTemperature(); | |
| 797 | ✗ | autosizeDesignApproachTemperature(); | |
| 798 | ✗ | } | |
| 799 | |||
| 800 | ✗ | void CoolingTowerSingleSpeed_Impl::applySizingValues() { | |
| 801 | ✗ | boost::optional<double> val; | |
| 802 | ✗ | val = autosizedDesignWaterFlowRate(); | |
| 803 | ✗ | if (val) { | |
| 804 | ✗ | setDesignWaterFlowRate(val.get()); | |
| 805 | } | ||
| 806 | |||
| 807 | ✗ | val = autosizedDesignAirFlowRate(); | |
| 808 | ✗ | if (val) { | |
| 809 | ✗ | setDesignAirFlowRate(val.get()); | |
| 810 | } | ||
| 811 | |||
| 812 | ✗ | val = autosizedFanPoweratDesignAirFlowRate(); | |
| 813 | ✗ | if (val) { | |
| 814 | ✗ | setFanPoweratDesignAirFlowRate(val.get()); | |
| 815 | } | ||
| 816 | |||
| 817 | ✗ | val = autosizedUFactorTimesAreaValueatDesignAirFlowRate(); | |
| 818 | ✗ | if (val) { | |
| 819 | ✗ | setUFactorTimesAreaValueatDesignAirFlowRate(val.get()); | |
| 820 | } | ||
| 821 | |||
| 822 | ✗ | val = autosizedAirFlowRateinFreeConvectionRegime(); | |
| 823 | ✗ | if (val) { | |
| 824 | ✗ | setAirFlowRateinFreeConvectionRegime(val.get()); | |
| 825 | } | ||
| 826 | |||
| 827 | ✗ | val = autosizedUFactorTimesAreaValueatFreeConvectionAirFlowRate(); | |
| 828 | ✗ | if (val) { | |
| 829 | ✗ | setUFactorTimesAreaValueatFreeConvectionAirFlowRate(val.get()); | |
| 830 | } | ||
| 831 | |||
| 832 | ✗ | val = autosizedDesignApproachTemperature(); | |
| 833 | ✗ | if (val) { | |
| 834 | ✗ | setDesignApproachTemperature(val.get()); | |
| 835 | } | ||
| 836 | |||
| 837 | ✗ | val = autosizedDesignRangeTemperature(); | |
| 838 | ✗ | if (val) { | |
| 839 | ✗ | setDesignRangeTemperature(val.get()); | |
| 840 | } | ||
| 841 | ✗ | } | |
| 842 | |||
| 843 | 5 | double CoolingTowerSingleSpeed_Impl::freeConvectionAirFlowRateSizingFactor() const { | |
| 844 |
1/1✓ Branch 1 taken 5 times.
|
5 | auto value = getDouble(OS_CoolingTower_SingleSpeedFields::FreeConvectionAirFlowRateSizingFactor, true); |
| 845 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 846 |
1/1✓ Branch 1 taken 5 times.
|
10 | return value.get(); |
| 847 | } | ||
| 848 | |||
| 849 | 11 | bool CoolingTowerSingleSpeed_Impl::setFreeConvectionAirFlowRateSizingFactor(double freeConvectionAirFlowRateSizingFactor) { | |
| 850 | 11 | return setDouble(OS_CoolingTower_SingleSpeedFields::FreeConvectionAirFlowRateSizingFactor, freeConvectionAirFlowRateSizingFactor); | |
| 851 | } | ||
| 852 | |||
| 853 | 5 | double CoolingTowerSingleSpeed_Impl::freeConvectionUFactorTimesAreaValueSizingFactor() const { | |
| 854 |
1/1✓ Branch 1 taken 5 times.
|
5 | auto value = getDouble(OS_CoolingTower_SingleSpeedFields::FreeConvectionUFactorTimesAreaValueSizingFactor, true); |
| 855 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 856 |
1/1✓ Branch 1 taken 5 times.
|
10 | return value.get(); |
| 857 | } | ||
| 858 | |||
| 859 | 11 | bool CoolingTowerSingleSpeed_Impl::setFreeConvectionUFactorTimesAreaValueSizingFactor(double freeConvectionUFactorTimesAreaValueSizingFactor) { | |
| 860 | 11 | return setDouble(OS_CoolingTower_SingleSpeedFields::FreeConvectionUFactorTimesAreaValueSizingFactor, | |
| 861 | 11 | freeConvectionUFactorTimesAreaValueSizingFactor); | |
| 862 | } | ||
| 863 | |||
| 864 | 5 | double CoolingTowerSingleSpeed_Impl::heatRejectionCapacityAndNominalCapacitySizingRatio() const { | |
| 865 |
1/1✓ Branch 1 taken 5 times.
|
5 | auto value = getDouble(OS_CoolingTower_SingleSpeedFields::HeatRejectionCapacityandNominalCapacitySizingRatio, true); |
| 866 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 867 |
1/1✓ Branch 1 taken 5 times.
|
10 | return value.get(); |
| 868 | } | ||
| 869 | |||
| 870 | bool | ||
| 871 | 11 | CoolingTowerSingleSpeed_Impl::setHeatRejectionCapacityAndNominalCapacitySizingRatio(double heatRejectionCapacityAndNominalCapacitySizingRatio) { | |
| 872 | 11 | return setDouble(OS_CoolingTower_SingleSpeedFields::HeatRejectionCapacityandNominalCapacitySizingRatio, | |
| 873 | 11 | heatRejectionCapacityAndNominalCapacitySizingRatio); | |
| 874 | } | ||
| 875 | |||
| 876 | 5 | double CoolingTowerSingleSpeed_Impl::freeConvectionNominalCapacitySizingFactor() const { | |
| 877 |
1/1✓ Branch 1 taken 5 times.
|
5 | auto value = getDouble(OS_CoolingTower_SingleSpeedFields::FreeConvectionNominalCapacitySizingFactor, true); |
| 878 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 879 |
1/1✓ Branch 1 taken 5 times.
|
10 | return value.get(); |
| 880 | } | ||
| 881 | |||
| 882 | 11 | bool CoolingTowerSingleSpeed_Impl::setFreeConvectionNominalCapacitySizingFactor(double freeConvectionNominalCapacitySizingFactor) { | |
| 883 | 11 | return setDouble(OS_CoolingTower_SingleSpeedFields::FreeConvectionNominalCapacitySizingFactor, freeConvectionNominalCapacitySizingFactor); | |
| 884 | } | ||
| 885 | |||
| 886 | 5 | double CoolingTowerSingleSpeed_Impl::designInletAirDryBulbTemperature() const { | |
| 887 |
1/1✓ Branch 1 taken 5 times.
|
5 | auto value = getDouble(OS_CoolingTower_SingleSpeedFields::DesignInletAirDryBulbTemperature, true); |
| 888 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 889 |
1/1✓ Branch 1 taken 5 times.
|
10 | return value.get(); |
| 890 | } | ||
| 891 | |||
| 892 | 11 | bool CoolingTowerSingleSpeed_Impl::setDesignInletAirDryBulbTemperature(double designInletAirDryBulbTemperature) { | |
| 893 | 11 | return setDouble(OS_CoolingTower_SingleSpeedFields::DesignInletAirDryBulbTemperature, designInletAirDryBulbTemperature); | |
| 894 | } | ||
| 895 | |||
| 896 | 5 | double CoolingTowerSingleSpeed_Impl::designInletAirWetBulbTemperature() const { | |
| 897 |
1/1✓ Branch 1 taken 5 times.
|
5 | auto value = getDouble(OS_CoolingTower_SingleSpeedFields::DesignInletAirWetBulbTemperature, true); |
| 898 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 899 |
1/1✓ Branch 1 taken 5 times.
|
10 | return value.get(); |
| 900 | } | ||
| 901 | |||
| 902 | 11 | bool CoolingTowerSingleSpeed_Impl::setDesignInletAirWetBulbTemperature(double designInletAirWetBulbTemperature) { | |
| 903 | 11 | return setDouble(OS_CoolingTower_SingleSpeedFields::DesignInletAirWetBulbTemperature, designInletAirWetBulbTemperature); | |
| 904 | } | ||
| 905 | |||
| 906 | 2 | boost::optional<double> CoolingTowerSingleSpeed_Impl::designApproachTemperature() const { | |
| 907 | 2 | return getDouble(OS_CoolingTower_SingleSpeedFields::DesignApproachTemperature, true); | |
| 908 | } | ||
| 909 | |||
| 910 | 5 | bool CoolingTowerSingleSpeed_Impl::isDesignApproachTemperatureAutosized() const { | |
| 911 | 5 | bool result = false; | |
| 912 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<std::string> value = getString(OS_CoolingTower_SingleSpeedFields::DesignApproachTemperature, true); |
| 913 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | if (value) { |
| 914 |
3/3✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
|
10 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 915 | } | ||
| 916 | 5 | return result; | |
| 917 | 5 | } | |
| 918 | |||
| 919 | 1 | bool CoolingTowerSingleSpeed_Impl::setDesignApproachTemperature(double designApproachTemperature) { | |
| 920 | 1 | return setDouble(OS_CoolingTower_SingleSpeedFields::DesignApproachTemperature, designApproachTemperature); | |
| 921 | } | ||
| 922 | |||
| 923 | 10 | void CoolingTowerSingleSpeed_Impl::autosizeDesignApproachTemperature() { | |
| 924 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
20 | setString(OS_CoolingTower_SingleSpeedFields::DesignApproachTemperature, "autosize"); |
| 925 | 10 | } | |
| 926 | |||
| 927 | 2 | boost::optional<double> CoolingTowerSingleSpeed_Impl::designRangeTemperature() const { | |
| 928 | 2 | return getDouble(OS_CoolingTower_SingleSpeedFields::DesignRangeTemperature, true); | |
| 929 | } | ||
| 930 | |||
| 931 | 5 | bool CoolingTowerSingleSpeed_Impl::isDesignRangeTemperatureAutosized() const { | |
| 932 | 5 | bool result = false; | |
| 933 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<std::string> value = getString(OS_CoolingTower_SingleSpeedFields::DesignRangeTemperature, true); |
| 934 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | if (value) { |
| 935 |
3/3✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
|
10 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 936 | } | ||
| 937 | 5 | return result; | |
| 938 | 5 | } | |
| 939 | |||
| 940 | 1 | bool CoolingTowerSingleSpeed_Impl::setDesignRangeTemperature(double designRangeTemperature) { | |
| 941 | 1 | return setDouble(OS_CoolingTower_SingleSpeedFields::DesignRangeTemperature, designRangeTemperature); | |
| 942 | } | ||
| 943 | |||
| 944 | 10 | void CoolingTowerSingleSpeed_Impl::autosizeDesignRangeTemperature() { | |
| 945 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
20 | setString(OS_CoolingTower_SingleSpeedFields::DesignRangeTemperature, "autosize"); |
| 946 | 10 | } | |
| 947 | |||
| 948 | 5 | std::string CoolingTowerSingleSpeed_Impl::endUseSubcategory() const { | |
| 949 |
1/1✓ Branch 1 taken 5 times.
|
5 | auto value = getString(OS_CoolingTower_SingleSpeedFields::EndUseSubcategory, true); |
| 950 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 951 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
10 | return value.get(); |
| 952 | 5 | } | |
| 953 | |||
| 954 | 11 | bool CoolingTowerSingleSpeed_Impl::setEndUseSubcategory(const std::string& endUseSubcategory) { | |
| 955 | 11 | return setString(OS_CoolingTower_SingleSpeedFields::EndUseSubcategory, endUseSubcategory); | |
| 956 | } | ||
| 957 | |||
| 958 | 15 | ComponentType CoolingTowerSingleSpeed_Impl::componentType() const { | |
| 959 |
1/1✓ Branch 1 taken 15 times.
|
15 | return ComponentType::Cooling; |
| 960 | } | ||
| 961 | |||
| 962 | 5 | std::vector<FuelType> CoolingTowerSingleSpeed_Impl::coolingFuelTypes() const { | |
| 963 |
1/1✓ Branch 1 taken 5 times.
|
15 | return {FuelType::Electricity}; |
| 964 | } | ||
| 965 | |||
| 966 | 5 | std::vector<FuelType> CoolingTowerSingleSpeed_Impl::heatingFuelTypes() const { | |
| 967 | 5 | return {}; | |
| 968 | } | ||
| 969 | |||
| 970 | 5 | std::vector<AppGFuelType> CoolingTowerSingleSpeed_Impl::appGHeatingFuelTypes() const { | |
| 971 | 5 | return {}; | |
| 972 | } | ||
| 973 | |||
| 974 | } // namespace detail | ||
| 975 | |||
| 976 | 10 | CoolingTowerSingleSpeed::CoolingTowerSingleSpeed(const Model& model) : StraightComponent(CoolingTowerSingleSpeed::iddObjectType(), model) { | |
| 977 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 10 times.
✗ Branch 5 not taken.
|
10 | OS_ASSERT(getImpl<detail::CoolingTowerSingleSpeed_Impl>()); |
| 978 | |||
| 979 |
1/1✓ Branch 1 taken 10 times.
|
10 | autosizeDesignWaterFlowRate(); |
| 980 |
1/1✓ Branch 1 taken 10 times.
|
10 | autosizeDesignAirFlowRate(); |
| 981 |
1/1✓ Branch 1 taken 10 times.
|
10 | autosizeFanPoweratDesignAirFlowRate(); |
| 982 |
1/1✓ Branch 1 taken 10 times.
|
10 | autosizeUFactorTimesAreaValueatDesignAirFlowRate(); |
| 983 |
1/1✓ Branch 1 taken 10 times.
|
10 | autosizeAirFlowRateinFreeConvectionRegime(); |
| 984 |
1/1✓ Branch 1 taken 10 times.
|
10 | autosizeUFactorTimesAreaValueatFreeConvectionAirFlowRate(); |
| 985 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
10 | setPerformanceInputMethod("UFactorTimesAreaAndDesignWaterFlowRate"); |
| 986 |
1/1✓ Branch 1 taken 10 times.
|
10 | setFreeConvectionCapacity(0.0); |
| 987 |
1/1✓ Branch 1 taken 10 times.
|
10 | setBasinHeaterCapacity(0.0); |
| 988 |
1/1✓ Branch 1 taken 10 times.
|
10 | setBasinHeaterSetpointTemperature(2.0); |
| 989 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
10 | setEvaporationLossMode("LossFactor"); |
| 990 |
1/1✓ Branch 1 taken 10 times.
|
10 | setEvaporationLossFactor(0.2); |
| 991 |
1/1✓ Branch 1 taken 10 times.
|
10 | setDriftLossPercent(0.008); |
| 992 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
10 | setBlowdownCalculationMode("ConcentrationRatio"); |
| 993 |
1/1✓ Branch 1 taken 10 times.
|
10 | setBlowdownConcentrationRatio(3.0); |
| 994 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
10 | setCapacityControl("FanCycling"); |
| 995 |
1/1✓ Branch 1 taken 10 times.
|
10 | setNumberofCells(1); |
| 996 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
10 | setCellControl("MinimalCell"); |
| 997 |
1/1✓ Branch 1 taken 10 times.
|
10 | setCellMinimumWaterFlowRateFraction(0.33); |
| 998 |
1/1✓ Branch 1 taken 10 times.
|
10 | setCellMaximumWaterFlowRateFraction(2.5); |
| 999 |
1/1✓ Branch 1 taken 10 times.
|
10 | setSizingFactor(1.0); |
| 1000 |
1/1✓ Branch 1 taken 10 times.
|
10 | setFreeConvectionAirFlowRateSizingFactor(0.1); |
| 1001 |
1/1✓ Branch 1 taken 10 times.
|
10 | setFreeConvectionUFactorTimesAreaValueSizingFactor(0.1); |
| 1002 |
1/1✓ Branch 1 taken 10 times.
|
10 | setHeatRejectionCapacityAndNominalCapacitySizingRatio(1.25); |
| 1003 |
1/1✓ Branch 1 taken 10 times.
|
10 | setFreeConvectionNominalCapacitySizingFactor(0.1); |
| 1004 |
1/1✓ Branch 1 taken 10 times.
|
10 | setDesignInletAirDryBulbTemperature(35.0); |
| 1005 |
1/1✓ Branch 1 taken 10 times.
|
10 | setDesignInletAirWetBulbTemperature(25.6); |
| 1006 |
1/1✓ Branch 1 taken 10 times.
|
10 | autosizeDesignApproachTemperature(); |
| 1007 |
1/1✓ Branch 1 taken 10 times.
|
10 | autosizeDesignRangeTemperature(); |
| 1008 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
10 | setEndUseSubcategory("General"); |
| 1009 | 10 | } | |
| 1010 | |||
| 1011 | 7748 | IddObjectType CoolingTowerSingleSpeed::iddObjectType() { | |
| 1012 |
1/1✓ Branch 1 taken 7748 times.
|
7748 | return {IddObjectType::OS_CoolingTower_SingleSpeed}; |
| 1013 | } | ||
| 1014 | |||
| 1015 | ✗ | std::vector<std::string> CoolingTowerSingleSpeed::performanceInputMethodValues() { | |
| 1016 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_CoolingTower_SingleSpeedFields::PerformanceInputMethod); | |
| 1017 | } | ||
| 1018 | |||
| 1019 | ✗ | std::vector<std::string> CoolingTowerSingleSpeed::evaporationLossModeValues() { | |
| 1020 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_CoolingTower_SingleSpeedFields::EvaporationLossMode); | |
| 1021 | } | ||
| 1022 | |||
| 1023 | ✗ | std::vector<std::string> CoolingTowerSingleSpeed::blowdownCalculationModeValues() { | |
| 1024 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_CoolingTower_SingleSpeedFields::BlowdownCalculationMode); | |
| 1025 | } | ||
| 1026 | |||
| 1027 | ✗ | std::vector<std::string> CoolingTowerSingleSpeed::capacityControlValues() { | |
| 1028 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_CoolingTower_SingleSpeedFields::CapacityControl); | |
| 1029 | } | ||
| 1030 | |||
| 1031 | ✗ | std::vector<std::string> CoolingTowerSingleSpeed::cellControlValues() { | |
| 1032 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_CoolingTower_SingleSpeedFields::CellControl); | |
| 1033 | } | ||
| 1034 | |||
| 1035 | 5 | boost::optional<double> CoolingTowerSingleSpeed::designWaterFlowRate() const { | |
| 1036 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->designWaterFlowRate(); |
| 1037 | } | ||
| 1038 | |||
| 1039 | 1 | bool CoolingTowerSingleSpeed::isDesignWaterFlowRateAutosized() const { | |
| 1040 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->isDesignWaterFlowRateAutosized(); |
| 1041 | } | ||
| 1042 | |||
| 1043 | 5 | boost::optional<double> CoolingTowerSingleSpeed::designAirFlowRate() const { | |
| 1044 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->designAirFlowRate(); |
| 1045 | } | ||
| 1046 | |||
| 1047 | 7 | bool CoolingTowerSingleSpeed::isDesignAirFlowRateAutosized() const { | |
| 1048 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->isDesignAirFlowRateAutosized(); |
| 1049 | } | ||
| 1050 | |||
| 1051 | 5 | boost::optional<double> CoolingTowerSingleSpeed::fanPoweratDesignAirFlowRate() const { | |
| 1052 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->fanPoweratDesignAirFlowRate(); |
| 1053 | } | ||
| 1054 | |||
| 1055 | 4 | bool CoolingTowerSingleSpeed::isFanPoweratDesignAirFlowRateAutosized() const { | |
| 1056 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->isFanPoweratDesignAirFlowRateAutosized(); |
| 1057 | } | ||
| 1058 | |||
| 1059 | 5 | boost::optional<double> CoolingTowerSingleSpeed::uFactorTimesAreaValueatDesignAirFlowRate() const { | |
| 1060 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->uFactorTimesAreaValueatDesignAirFlowRate(); |
| 1061 | } | ||
| 1062 | |||
| 1063 | 1 | bool CoolingTowerSingleSpeed::isUFactorTimesAreaValueatDesignAirFlowRateAutosized() const { | |
| 1064 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->isUFactorTimesAreaValueatDesignAirFlowRateAutosized(); |
| 1065 | } | ||
| 1066 | |||
| 1067 | 5 | boost::optional<double> CoolingTowerSingleSpeed::airFlowRateinFreeConvectionRegime() const { | |
| 1068 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->airFlowRateinFreeConvectionRegime(); |
| 1069 | } | ||
| 1070 | |||
| 1071 | 1 | bool CoolingTowerSingleSpeed::isAirFlowRateinFreeConvectionRegimeDefaulted() const { | |
| 1072 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->isAirFlowRateinFreeConvectionRegimeDefaulted(); |
| 1073 | } | ||
| 1074 | |||
| 1075 | 4 | bool CoolingTowerSingleSpeed::isAirFlowRateinFreeConvectionRegimeAutosized() const { | |
| 1076 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->isAirFlowRateinFreeConvectionRegimeAutosized(); |
| 1077 | } | ||
| 1078 | |||
| 1079 | 5 | boost::optional<double> CoolingTowerSingleSpeed::uFactorTimesAreaValueatFreeConvectionAirFlowRate() const { | |
| 1080 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->uFactorTimesAreaValueatFreeConvectionAirFlowRate(); |
| 1081 | } | ||
| 1082 | |||
| 1083 | 1 | bool CoolingTowerSingleSpeed::isUFactorTimesAreaValueatFreeConvectionAirFlowRateDefaulted() const { | |
| 1084 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->isUFactorTimesAreaValueatFreeConvectionAirFlowRateDefaulted(); |
| 1085 | } | ||
| 1086 | |||
| 1087 | 7 | bool CoolingTowerSingleSpeed::isUFactorTimesAreaValueatFreeConvectionAirFlowRateAutosized() const { | |
| 1088 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->isUFactorTimesAreaValueatFreeConvectionAirFlowRateAutosized(); |
| 1089 | } | ||
| 1090 | |||
| 1091 | 9 | std::string CoolingTowerSingleSpeed::performanceInputMethod() const { | |
| 1092 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->performanceInputMethod(); |
| 1093 | } | ||
| 1094 | |||
| 1095 | 1 | bool CoolingTowerSingleSpeed::isPerformanceInputMethodDefaulted() const { | |
| 1096 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->isPerformanceInputMethodDefaulted(); |
| 1097 | } | ||
| 1098 | |||
| 1099 | 5 | boost::optional<double> CoolingTowerSingleSpeed::nominalCapacity() const { | |
| 1100 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->nominalCapacity(); |
| 1101 | } | ||
| 1102 | |||
| 1103 | 6 | boost::optional<double> CoolingTowerSingleSpeed::freeConvectionCapacity() const { | |
| 1104 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->freeConvectionCapacity(); |
| 1105 | } | ||
| 1106 | |||
| 1107 | 5 | double CoolingTowerSingleSpeed::basinHeaterCapacity() const { | |
| 1108 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->basinHeaterCapacity(); |
| 1109 | } | ||
| 1110 | |||
| 1111 | 1 | bool CoolingTowerSingleSpeed::isBasinHeaterCapacityDefaulted() const { | |
| 1112 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->isBasinHeaterCapacityDefaulted(); |
| 1113 | } | ||
| 1114 | |||
| 1115 | 5 | double CoolingTowerSingleSpeed::basinHeaterSetpointTemperature() const { | |
| 1116 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->basinHeaterSetpointTemperature(); |
| 1117 | } | ||
| 1118 | |||
| 1119 | 1 | bool CoolingTowerSingleSpeed::isBasinHeaterSetpointTemperatureDefaulted() const { | |
| 1120 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->isBasinHeaterSetpointTemperatureDefaulted(); |
| 1121 | } | ||
| 1122 | |||
| 1123 | 5 | boost::optional<Schedule> CoolingTowerSingleSpeed::basinHeaterOperatingSchedule() const { | |
| 1124 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->basinHeaterOperatingSchedule(); |
| 1125 | } | ||
| 1126 | |||
| 1127 | 5 | std::string CoolingTowerSingleSpeed::evaporationLossMode() const { | |
| 1128 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->evaporationLossMode(); |
| 1129 | } | ||
| 1130 | |||
| 1131 | 1 | bool CoolingTowerSingleSpeed::isEvaporationLossModeDefaulted() const { | |
| 1132 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->isEvaporationLossModeDefaulted(); |
| 1133 | } | ||
| 1134 | |||
| 1135 | 5 | double CoolingTowerSingleSpeed::evaporationLossFactor() const { | |
| 1136 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->evaporationLossFactor(); |
| 1137 | } | ||
| 1138 | |||
| 1139 | 1 | bool CoolingTowerSingleSpeed::isEvaporationLossFactorDefaulted() const { | |
| 1140 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->isEvaporationLossFactorDefaulted(); |
| 1141 | } | ||
| 1142 | |||
| 1143 | 5 | double CoolingTowerSingleSpeed::driftLossPercent() const { | |
| 1144 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->driftLossPercent(); |
| 1145 | } | ||
| 1146 | |||
| 1147 | 1 | bool CoolingTowerSingleSpeed::isDriftLossPercentDefaulted() const { | |
| 1148 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->isDriftLossPercentDefaulted(); |
| 1149 | } | ||
| 1150 | |||
| 1151 | 5 | std::string CoolingTowerSingleSpeed::blowdownCalculationMode() const { | |
| 1152 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->blowdownCalculationMode(); |
| 1153 | } | ||
| 1154 | |||
| 1155 | 1 | bool CoolingTowerSingleSpeed::isBlowdownCalculationModeDefaulted() const { | |
| 1156 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->isBlowdownCalculationModeDefaulted(); |
| 1157 | } | ||
| 1158 | |||
| 1159 | 5 | double CoolingTowerSingleSpeed::blowdownConcentrationRatio() const { | |
| 1160 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->blowdownConcentrationRatio(); |
| 1161 | } | ||
| 1162 | |||
| 1163 | 1 | bool CoolingTowerSingleSpeed::isBlowdownConcentrationRatioDefaulted() const { | |
| 1164 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->isBlowdownConcentrationRatioDefaulted(); |
| 1165 | } | ||
| 1166 | |||
| 1167 | 5 | boost::optional<Schedule> CoolingTowerSingleSpeed::blowdownMakeupWaterUsageSchedule() const { | |
| 1168 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->blowdownMakeupWaterUsageSchedule(); |
| 1169 | } | ||
| 1170 | |||
| 1171 | 5 | std::string CoolingTowerSingleSpeed::capacityControl() const { | |
| 1172 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->capacityControl(); |
| 1173 | } | ||
| 1174 | |||
| 1175 | 1 | bool CoolingTowerSingleSpeed::isCapacityControlDefaulted() const { | |
| 1176 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->isCapacityControlDefaulted(); |
| 1177 | } | ||
| 1178 | |||
| 1179 | 5 | int CoolingTowerSingleSpeed::numberofCells() const { | |
| 1180 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->numberofCells(); |
| 1181 | } | ||
| 1182 | |||
| 1183 | 1 | bool CoolingTowerSingleSpeed::isNumberofCellsDefaulted() const { | |
| 1184 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->isNumberofCellsDefaulted(); |
| 1185 | } | ||
| 1186 | |||
| 1187 | 5 | std::string CoolingTowerSingleSpeed::cellControl() const { | |
| 1188 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->cellControl(); |
| 1189 | } | ||
| 1190 | |||
| 1191 | 1 | bool CoolingTowerSingleSpeed::isCellControlDefaulted() const { | |
| 1192 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->isCellControlDefaulted(); |
| 1193 | } | ||
| 1194 | |||
| 1195 | 5 | double CoolingTowerSingleSpeed::cellMinimumWaterFlowRateFraction() const { | |
| 1196 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->cellMinimumWaterFlowRateFraction(); |
| 1197 | } | ||
| 1198 | |||
| 1199 | 1 | bool CoolingTowerSingleSpeed::isCellMinimumWaterFlowRateFractionDefaulted() const { | |
| 1200 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->isCellMinimumWaterFlowRateFractionDefaulted(); |
| 1201 | } | ||
| 1202 | |||
| 1203 | 5 | double CoolingTowerSingleSpeed::cellMaximumWaterFlowRateFraction() const { | |
| 1204 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->cellMaximumWaterFlowRateFraction(); |
| 1205 | } | ||
| 1206 | |||
| 1207 | 1 | bool CoolingTowerSingleSpeed::isCellMaximumWaterFlowRateFractionDefaulted() const { | |
| 1208 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->isCellMaximumWaterFlowRateFractionDefaulted(); |
| 1209 | } | ||
| 1210 | |||
| 1211 | 5 | double CoolingTowerSingleSpeed::sizingFactor() const { | |
| 1212 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->sizingFactor(); |
| 1213 | } | ||
| 1214 | |||
| 1215 | 1 | bool CoolingTowerSingleSpeed::isSizingFactorDefaulted() const { | |
| 1216 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->isSizingFactorDefaulted(); |
| 1217 | } | ||
| 1218 | |||
| 1219 | 1 | bool CoolingTowerSingleSpeed::setDesignWaterFlowRate(double designWaterFlowRate) { | |
| 1220 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setDesignWaterFlowRate(designWaterFlowRate); |
| 1221 | } | ||
| 1222 | |||
| 1223 | ✗ | void CoolingTowerSingleSpeed::resetDesignWaterFlowRate() { | |
| 1224 | ✗ | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->resetDesignWaterFlowRate(); | |
| 1225 | ✗ | } | |
| 1226 | |||
| 1227 | 10 | void CoolingTowerSingleSpeed::autosizeDesignWaterFlowRate() { | |
| 1228 |
1/1✓ Branch 3 taken 10 times.
|
10 | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->autosizeDesignWaterFlowRate(); |
| 1229 | 10 | } | |
| 1230 | |||
| 1231 | 1 | bool CoolingTowerSingleSpeed::setDesignAirFlowRate(double designAirFlowRate) { | |
| 1232 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setDesignAirFlowRate(designAirFlowRate); |
| 1233 | } | ||
| 1234 | |||
| 1235 | 10 | void CoolingTowerSingleSpeed::autosizeDesignAirFlowRate() { | |
| 1236 |
1/1✓ Branch 3 taken 10 times.
|
10 | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->autosizeDesignAirFlowRate(); |
| 1237 | 10 | } | |
| 1238 | |||
| 1239 | 1 | bool CoolingTowerSingleSpeed::setFanPoweratDesignAirFlowRate(double fanPoweratDesignAirFlowRate) { | |
| 1240 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setFanPoweratDesignAirFlowRate(fanPoweratDesignAirFlowRate); |
| 1241 | } | ||
| 1242 | |||
| 1243 | 10 | void CoolingTowerSingleSpeed::autosizeFanPoweratDesignAirFlowRate() { | |
| 1244 |
1/1✓ Branch 3 taken 10 times.
|
10 | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->autosizeFanPoweratDesignAirFlowRate(); |
| 1245 | 10 | } | |
| 1246 | |||
| 1247 | 1 | bool CoolingTowerSingleSpeed::setUFactorTimesAreaValueatDesignAirFlowRate(double uFactorTimesAreaValueatDesignAirFlowRate) { | |
| 1248 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setUFactorTimesAreaValueatDesignAirFlowRate(uFactorTimesAreaValueatDesignAirFlowRate); |
| 1249 | } | ||
| 1250 | |||
| 1251 | ✗ | void CoolingTowerSingleSpeed::resetUFactorTimesAreaValueatDesignAirFlowRate() { | |
| 1252 | ✗ | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->resetUFactorTimesAreaValueatDesignAirFlowRate(); | |
| 1253 | ✗ | } | |
| 1254 | |||
| 1255 | 10 | void CoolingTowerSingleSpeed::autosizeUFactorTimesAreaValueatDesignAirFlowRate() { | |
| 1256 |
1/1✓ Branch 3 taken 10 times.
|
10 | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->autosizeUFactorTimesAreaValueatDesignAirFlowRate(); |
| 1257 | 10 | } | |
| 1258 | |||
| 1259 | 1 | bool CoolingTowerSingleSpeed::setAirFlowRateinFreeConvectionRegime(double airFlowRateinFreeConvectionRegime) { | |
| 1260 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setAirFlowRateinFreeConvectionRegime(airFlowRateinFreeConvectionRegime); |
| 1261 | } | ||
| 1262 | |||
| 1263 | ✗ | void CoolingTowerSingleSpeed::resetAirFlowRateinFreeConvectionRegime() { | |
| 1264 | ✗ | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->resetAirFlowRateinFreeConvectionRegime(); | |
| 1265 | ✗ | } | |
| 1266 | |||
| 1267 | 10 | void CoolingTowerSingleSpeed::autosizeAirFlowRateinFreeConvectionRegime() { | |
| 1268 |
1/1✓ Branch 3 taken 10 times.
|
10 | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->autosizeAirFlowRateinFreeConvectionRegime(); |
| 1269 | 10 | } | |
| 1270 | |||
| 1271 | 1 | bool CoolingTowerSingleSpeed::setUFactorTimesAreaValueatFreeConvectionAirFlowRate(double uFactorTimesAreaValueatFreeConvectionAirFlowRate) { | |
| 1272 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
2 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setUFactorTimesAreaValueatFreeConvectionAirFlowRate( |
| 1273 | 2 | uFactorTimesAreaValueatFreeConvectionAirFlowRate); | |
| 1274 | } | ||
| 1275 | |||
| 1276 | ✗ | void CoolingTowerSingleSpeed::resetUFactorTimesAreaValueatFreeConvectionAirFlowRate() { | |
| 1277 | ✗ | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->resetUFactorTimesAreaValueatFreeConvectionAirFlowRate(); | |
| 1278 | ✗ | } | |
| 1279 | |||
| 1280 | 10 | void CoolingTowerSingleSpeed::autosizeUFactorTimesAreaValueatFreeConvectionAirFlowRate() { | |
| 1281 |
1/1✓ Branch 3 taken 10 times.
|
10 | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->autosizeUFactorTimesAreaValueatFreeConvectionAirFlowRate(); |
| 1282 | 10 | } | |
| 1283 | |||
| 1284 | 11 | bool CoolingTowerSingleSpeed::setPerformanceInputMethod(const std::string& performanceInputMethod) { | |
| 1285 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setPerformanceInputMethod(performanceInputMethod); |
| 1286 | } | ||
| 1287 | |||
| 1288 | ✗ | void CoolingTowerSingleSpeed::resetPerformanceInputMethod() { | |
| 1289 | ✗ | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->resetPerformanceInputMethod(); | |
| 1290 | ✗ | } | |
| 1291 | |||
| 1292 | 1 | bool CoolingTowerSingleSpeed::setNominalCapacity(double nominalCapacity) { | |
| 1293 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setNominalCapacity(nominalCapacity); |
| 1294 | } | ||
| 1295 | |||
| 1296 | ✗ | void CoolingTowerSingleSpeed::resetNominalCapacity() { | |
| 1297 | ✗ | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->resetNominalCapacity(); | |
| 1298 | ✗ | } | |
| 1299 | |||
| 1300 | 11 | bool CoolingTowerSingleSpeed::setFreeConvectionCapacity(double freeConvectionCapacity) { | |
| 1301 |
2/2✓ Branch 3 taken 11 times.
✓ Branch 6 taken 11 times.
|
11 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setFreeConvectionCapacity(freeConvectionCapacity); |
| 1302 | } | ||
| 1303 | |||
| 1304 | ✗ | void CoolingTowerSingleSpeed::resetFreeConvectionCapacity() { | |
| 1305 | ✗ | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->resetFreeConvectionCapacity(); | |
| 1306 | ✗ | } | |
| 1307 | |||
| 1308 | 11 | bool CoolingTowerSingleSpeed::setBasinHeaterCapacity(double basinHeaterCapacity) { | |
| 1309 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setBasinHeaterCapacity(basinHeaterCapacity); |
| 1310 | } | ||
| 1311 | |||
| 1312 | ✗ | void CoolingTowerSingleSpeed::resetBasinHeaterCapacity() { | |
| 1313 | ✗ | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->resetBasinHeaterCapacity(); | |
| 1314 | ✗ | } | |
| 1315 | |||
| 1316 | 11 | bool CoolingTowerSingleSpeed::setBasinHeaterSetpointTemperature(double basinHeaterSetpointTemperature) { | |
| 1317 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setBasinHeaterSetpointTemperature(basinHeaterSetpointTemperature); |
| 1318 | } | ||
| 1319 | |||
| 1320 | ✗ | void CoolingTowerSingleSpeed::resetBasinHeaterSetpointTemperature() { | |
| 1321 | ✗ | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->resetBasinHeaterSetpointTemperature(); | |
| 1322 | ✗ | } | |
| 1323 | |||
| 1324 | 1 | bool CoolingTowerSingleSpeed::setBasinHeaterOperatingSchedule(Schedule& basinHeaterOperatingSchedule) { | |
| 1325 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setBasinHeaterOperatingSchedule(basinHeaterOperatingSchedule); |
| 1326 | } | ||
| 1327 | |||
| 1328 | ✗ | void CoolingTowerSingleSpeed::resetBasinHeaterOperatingSchedule() { | |
| 1329 | ✗ | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->resetBasinHeaterOperatingSchedule(); | |
| 1330 | ✗ | } | |
| 1331 | |||
| 1332 | 11 | bool CoolingTowerSingleSpeed::setEvaporationLossMode(const std::string& evaporationLossMode) { | |
| 1333 |
2/2✓ Branch 3 taken 11 times.
✓ Branch 6 taken 11 times.
|
11 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setEvaporationLossMode(evaporationLossMode); |
| 1334 | } | ||
| 1335 | |||
| 1336 | ✗ | void CoolingTowerSingleSpeed::resetEvaporationLossMode() { | |
| 1337 | ✗ | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->resetEvaporationLossMode(); | |
| 1338 | ✗ | } | |
| 1339 | |||
| 1340 | 11 | bool CoolingTowerSingleSpeed::setEvaporationLossFactor(double evaporationLossFactor) { | |
| 1341 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setEvaporationLossFactor(evaporationLossFactor); |
| 1342 | } | ||
| 1343 | |||
| 1344 | ✗ | void CoolingTowerSingleSpeed::resetEvaporationLossFactor() { | |
| 1345 | ✗ | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->resetEvaporationLossFactor(); | |
| 1346 | ✗ | } | |
| 1347 | |||
| 1348 | 11 | bool CoolingTowerSingleSpeed::setDriftLossPercent(double driftLossPercent) { | |
| 1349 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setDriftLossPercent(driftLossPercent); |
| 1350 | } | ||
| 1351 | |||
| 1352 | ✗ | void CoolingTowerSingleSpeed::resetDriftLossPercent() { | |
| 1353 | ✗ | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->resetDriftLossPercent(); | |
| 1354 | ✗ | } | |
| 1355 | |||
| 1356 | 11 | bool CoolingTowerSingleSpeed::setBlowdownCalculationMode(const std::string& blowdownCalculationMode) { | |
| 1357 |
2/2✓ Branch 3 taken 11 times.
✓ Branch 6 taken 11 times.
|
11 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setBlowdownCalculationMode(blowdownCalculationMode); |
| 1358 | } | ||
| 1359 | |||
| 1360 | ✗ | void CoolingTowerSingleSpeed::resetBlowdownCalculationMode() { | |
| 1361 | ✗ | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->resetBlowdownCalculationMode(); | |
| 1362 | ✗ | } | |
| 1363 | |||
| 1364 | 11 | bool CoolingTowerSingleSpeed::setBlowdownConcentrationRatio(double blowdownConcentrationRatio) { | |
| 1365 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setBlowdownConcentrationRatio(blowdownConcentrationRatio); |
| 1366 | } | ||
| 1367 | |||
| 1368 | ✗ | void CoolingTowerSingleSpeed::resetBlowdownConcentrationRatio() { | |
| 1369 | ✗ | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->resetBlowdownConcentrationRatio(); | |
| 1370 | ✗ | } | |
| 1371 | |||
| 1372 | 1 | bool CoolingTowerSingleSpeed::setBlowdownMakeupWaterUsageSchedule(Schedule& blowdownMakeupWaterUsageSchedule) { | |
| 1373 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setBlowdownMakeupWaterUsageSchedule(blowdownMakeupWaterUsageSchedule); |
| 1374 | } | ||
| 1375 | |||
| 1376 | ✗ | void CoolingTowerSingleSpeed::resetBlowdownMakeupWaterUsageSchedule() { | |
| 1377 | ✗ | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->resetBlowdownMakeupWaterUsageSchedule(); | |
| 1378 | ✗ | } | |
| 1379 | |||
| 1380 | 11 | bool CoolingTowerSingleSpeed::setCapacityControl(const std::string& capacityControl) { | |
| 1381 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setCapacityControl(capacityControl); |
| 1382 | } | ||
| 1383 | |||
| 1384 | ✗ | void CoolingTowerSingleSpeed::resetCapacityControl() { | |
| 1385 | ✗ | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->resetCapacityControl(); | |
| 1386 | ✗ | } | |
| 1387 | |||
| 1388 | 11 | bool CoolingTowerSingleSpeed::setNumberofCells(int numberofCells) { | |
| 1389 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setNumberofCells(numberofCells); |
| 1390 | } | ||
| 1391 | |||
| 1392 | ✗ | void CoolingTowerSingleSpeed::resetNumberofCells() { | |
| 1393 | ✗ | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->resetNumberofCells(); | |
| 1394 | ✗ | } | |
| 1395 | |||
| 1396 | 11 | bool CoolingTowerSingleSpeed::setCellControl(const std::string& cellControl) { | |
| 1397 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setCellControl(cellControl); |
| 1398 | } | ||
| 1399 | |||
| 1400 | ✗ | void CoolingTowerSingleSpeed::resetCellControl() { | |
| 1401 | ✗ | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->resetCellControl(); | |
| 1402 | ✗ | } | |
| 1403 | |||
| 1404 | 11 | bool CoolingTowerSingleSpeed::setCellMinimumWaterFlowRateFraction(double cellMinimumWaterFlowRateFraction) { | |
| 1405 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setCellMinimumWaterFlowRateFraction(cellMinimumWaterFlowRateFraction); |
| 1406 | } | ||
| 1407 | |||
| 1408 | ✗ | void CoolingTowerSingleSpeed::resetCellMinimumWaterFlowRateFraction() { | |
| 1409 | ✗ | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->resetCellMinimumWaterFlowRateFraction(); | |
| 1410 | ✗ | } | |
| 1411 | |||
| 1412 | 11 | bool CoolingTowerSingleSpeed::setCellMaximumWaterFlowRateFraction(double cellMaximumWaterFlowRateFraction) { | |
| 1413 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setCellMaximumWaterFlowRateFraction(cellMaximumWaterFlowRateFraction); |
| 1414 | } | ||
| 1415 | |||
| 1416 | ✗ | void CoolingTowerSingleSpeed::resetCellMaximumWaterFlowRateFraction() { | |
| 1417 | ✗ | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->resetCellMaximumWaterFlowRateFraction(); | |
| 1418 | ✗ | } | |
| 1419 | |||
| 1420 | 11 | bool CoolingTowerSingleSpeed::setSizingFactor(double sizingFactor) { | |
| 1421 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setSizingFactor(sizingFactor); |
| 1422 | } | ||
| 1423 | |||
| 1424 | ✗ | void CoolingTowerSingleSpeed::resetSizingFactor() { | |
| 1425 | ✗ | getImpl<detail::CoolingTowerSingleSpeed_Impl>()->resetSizingFactor(); | |
| 1426 | ✗ | } | |
| 1427 | |||
| 1428 | 5 | double CoolingTowerSingleSpeed::freeConvectionAirFlowRateSizingFactor() const { | |
| 1429 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->freeConvectionAirFlowRateSizingFactor(); |
| 1430 | } | ||
| 1431 | |||
| 1432 | 11 | bool CoolingTowerSingleSpeed::setFreeConvectionAirFlowRateSizingFactor(double freeConvectionAirFlowRateSizingFactor) { | |
| 1433 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setFreeConvectionAirFlowRateSizingFactor(freeConvectionAirFlowRateSizingFactor); |
| 1434 | } | ||
| 1435 | |||
| 1436 | 5 | double CoolingTowerSingleSpeed::freeConvectionUFactorTimesAreaValueSizingFactor() const { | |
| 1437 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->freeConvectionUFactorTimesAreaValueSizingFactor(); |
| 1438 | } | ||
| 1439 | |||
| 1440 | 11 | bool CoolingTowerSingleSpeed::setFreeConvectionUFactorTimesAreaValueSizingFactor(double freeConvectionUFactorTimesAreaValueSizingFactor) { | |
| 1441 |
1/1✓ Branch 3 taken 11 times.
|
22 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setFreeConvectionUFactorTimesAreaValueSizingFactor( |
| 1442 | 22 | freeConvectionUFactorTimesAreaValueSizingFactor); | |
| 1443 | } | ||
| 1444 | |||
| 1445 | 5 | double CoolingTowerSingleSpeed::heatRejectionCapacityAndNominalCapacitySizingRatio() const { | |
| 1446 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->heatRejectionCapacityAndNominalCapacitySizingRatio(); |
| 1447 | } | ||
| 1448 | |||
| 1449 | 11 | bool CoolingTowerSingleSpeed::setHeatRejectionCapacityAndNominalCapacitySizingRatio(double heatRejectionCapacityAndNominalCapacitySizingRatio) { | |
| 1450 |
1/1✓ Branch 3 taken 11 times.
|
22 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setHeatRejectionCapacityAndNominalCapacitySizingRatio( |
| 1451 | 22 | heatRejectionCapacityAndNominalCapacitySizingRatio); | |
| 1452 | } | ||
| 1453 | |||
| 1454 | 5 | double CoolingTowerSingleSpeed::freeConvectionNominalCapacitySizingFactor() const { | |
| 1455 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->freeConvectionNominalCapacitySizingFactor(); |
| 1456 | } | ||
| 1457 | |||
| 1458 | 11 | bool CoolingTowerSingleSpeed::setFreeConvectionNominalCapacitySizingFactor(double freeConvectionNominalCapacitySizingFactor) { | |
| 1459 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setFreeConvectionNominalCapacitySizingFactor(freeConvectionNominalCapacitySizingFactor); |
| 1460 | } | ||
| 1461 | |||
| 1462 | 5 | double CoolingTowerSingleSpeed::designInletAirDryBulbTemperature() const { | |
| 1463 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->designInletAirDryBulbTemperature(); |
| 1464 | } | ||
| 1465 | |||
| 1466 | 11 | bool CoolingTowerSingleSpeed::setDesignInletAirDryBulbTemperature(double designInletAirDryBulbTemperature) { | |
| 1467 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setDesignInletAirDryBulbTemperature(designInletAirDryBulbTemperature); |
| 1468 | } | ||
| 1469 | |||
| 1470 | 5 | double CoolingTowerSingleSpeed::designInletAirWetBulbTemperature() const { | |
| 1471 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->designInletAirWetBulbTemperature(); |
| 1472 | } | ||
| 1473 | |||
| 1474 | 11 | bool CoolingTowerSingleSpeed::setDesignInletAirWetBulbTemperature(double designInletAirWetBulbTemperature) { | |
| 1475 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setDesignInletAirWetBulbTemperature(designInletAirWetBulbTemperature); |
| 1476 | } | ||
| 1477 | |||
| 1478 | 2 | boost::optional<double> CoolingTowerSingleSpeed::designApproachTemperature() const { | |
| 1479 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->designApproachTemperature(); |
| 1480 | } | ||
| 1481 | |||
| 1482 | 1 | bool CoolingTowerSingleSpeed::setDesignApproachTemperature(double designApproachTemperature) { | |
| 1483 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setDesignApproachTemperature(designApproachTemperature); |
| 1484 | } | ||
| 1485 | |||
| 1486 | 10 | void CoolingTowerSingleSpeed::autosizeDesignApproachTemperature() { | |
| 1487 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->autosizeDesignApproachTemperature(); |
| 1488 | } | ||
| 1489 | |||
| 1490 | 2 | boost::optional<double> CoolingTowerSingleSpeed::designRangeTemperature() const { | |
| 1491 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->designRangeTemperature(); |
| 1492 | } | ||
| 1493 | |||
| 1494 | 1 | bool CoolingTowerSingleSpeed::setDesignRangeTemperature(double designRangeTemperature) { | |
| 1495 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setDesignRangeTemperature(designRangeTemperature); |
| 1496 | } | ||
| 1497 | |||
| 1498 | 10 | void CoolingTowerSingleSpeed::autosizeDesignRangeTemperature() { | |
| 1499 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->autosizeDesignRangeTemperature(); |
| 1500 | } | ||
| 1501 | |||
| 1502 | 5 | std::string CoolingTowerSingleSpeed::endUseSubcategory() const { | |
| 1503 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->endUseSubcategory(); |
| 1504 | } | ||
| 1505 | |||
| 1506 | 11 | bool CoolingTowerSingleSpeed::setEndUseSubcategory(const std::string& endUseSubcategory) { | |
| 1507 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->setEndUseSubcategory(endUseSubcategory); |
| 1508 | } | ||
| 1509 | |||
| 1510 | 5 | bool CoolingTowerSingleSpeed::isDesignRangeTemperatureAutosized() const { | |
| 1511 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->isDesignRangeTemperatureAutosized(); |
| 1512 | } | ||
| 1513 | |||
| 1514 | 5 | bool CoolingTowerSingleSpeed::isDesignApproachTemperatureAutosized() const { | |
| 1515 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->isDesignApproachTemperatureAutosized(); |
| 1516 | } | ||
| 1517 | |||
| 1518 | /// @cond | ||
| 1519 |
1/1✓ Branch 3 taken 5 times.
|
5 | CoolingTowerSingleSpeed::CoolingTowerSingleSpeed(std::shared_ptr<detail::CoolingTowerSingleSpeed_Impl> impl) : StraightComponent(std::move(impl)) {} |
| 1520 | /// @endcond | ||
| 1521 | |||
| 1522 | ✗ | boost::optional<double> CoolingTowerSingleSpeed::autosizedDesignWaterFlowRate() const { | |
| 1523 | ✗ | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->autosizedDesignWaterFlowRate(); | |
| 1524 | } | ||
| 1525 | |||
| 1526 | ✗ | boost::optional<double> CoolingTowerSingleSpeed::autosizedDesignAirFlowRate() const { | |
| 1527 | ✗ | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->autosizedDesignAirFlowRate(); | |
| 1528 | } | ||
| 1529 | |||
| 1530 | ✗ | boost::optional<double> CoolingTowerSingleSpeed::autosizedFanPoweratDesignAirFlowRate() const { | |
| 1531 | ✗ | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->autosizedFanPoweratDesignAirFlowRate(); | |
| 1532 | } | ||
| 1533 | |||
| 1534 | ✗ | boost::optional<double> CoolingTowerSingleSpeed::autosizedUFactorTimesAreaValueatDesignAirFlowRate() const { | |
| 1535 | ✗ | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->autosizedUFactorTimesAreaValueatDesignAirFlowRate(); | |
| 1536 | } | ||
| 1537 | |||
| 1538 | ✗ | boost::optional<double> CoolingTowerSingleSpeed::autosizedAirFlowRateinFreeConvectionRegime() const { | |
| 1539 | ✗ | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->autosizedAirFlowRateinFreeConvectionRegime(); | |
| 1540 | } | ||
| 1541 | |||
| 1542 | ✗ | boost::optional<double> CoolingTowerSingleSpeed::autosizedUFactorTimesAreaValueatFreeConvectionAirFlowRate() const { | |
| 1543 | ✗ | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->autosizedUFactorTimesAreaValueatFreeConvectionAirFlowRate(); | |
| 1544 | } | ||
| 1545 | |||
| 1546 | ✗ | boost::optional<double> CoolingTowerSingleSpeed::autosizedDesignApproachTemperature() const { | |
| 1547 | ✗ | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->autosizedDesignApproachTemperature(); | |
| 1548 | } | ||
| 1549 | |||
| 1550 | ✗ | boost::optional<double> CoolingTowerSingleSpeed::autosizedDesignRangeTemperature() const { | |
| 1551 | ✗ | return getImpl<detail::CoolingTowerSingleSpeed_Impl>()->autosizedDesignRangeTemperature(); | |
| 1552 | } | ||
| 1553 | |||
| 1554 | } // namespace model | ||
| 1555 | } // namespace openstudio | ||
| 1556 |