src/model/CoolingTowerTwoSpeed.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 "CoolingTowerTwoSpeed.hpp" | ||
| 7 | #include "CoolingTowerTwoSpeed_Impl.hpp" | ||
| 8 | |||
| 9 | #include "Schedule.hpp" | ||
| 10 | #include "Schedule_Impl.hpp" | ||
| 11 | #include "ScheduleTypeLimits.hpp" | ||
| 12 | #include "ScheduleTypeRegistry.hpp" | ||
| 13 | #include "PlantLoop.hpp" | ||
| 14 | #include "SizingPlant.hpp" | ||
| 15 | #include "Node.hpp" | ||
| 16 | |||
| 17 | #include "../utilities/core/Assert.hpp" | ||
| 18 | #include "../utilities/data/DataEnums.hpp" | ||
| 19 | |||
| 20 | #include <utilities/idd/IddFactory.hxx> | ||
| 21 | #include <utilities/idd/OS_CoolingTower_TwoSpeed_FieldEnums.hxx> | ||
| 22 | #include <utilities/idd/IddEnums.hxx> | ||
| 23 | |||
| 24 | namespace openstudio { | ||
| 25 | namespace model { | ||
| 26 | |||
| 27 | namespace detail { | ||
| 28 | |||
| 29 | 4 | CoolingTowerTwoSpeed_Impl::CoolingTowerTwoSpeed_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 30 | 4 | : StraightComponent_Impl(idfObject, model, keepHandle) { | |
| 31 |
4/6✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 4 times.
✗ Branch 13 not taken.
|
4 | OS_ASSERT(idfObject.iddObject().type() == CoolingTowerTwoSpeed::iddObjectType()); |
| 32 | 4 | } | |
| 33 | |||
| 34 | ✗ | CoolingTowerTwoSpeed_Impl::CoolingTowerTwoSpeed_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle) | |
| 35 | ✗ | : StraightComponent_Impl(other, model, keepHandle) { | |
| 36 | ✗ | OS_ASSERT(other.iddObject().type() == CoolingTowerTwoSpeed::iddObjectType()); | |
| 37 | ✗ | } | |
| 38 | |||
| 39 | 2 | CoolingTowerTwoSpeed_Impl::CoolingTowerTwoSpeed_Impl(const CoolingTowerTwoSpeed_Impl& other, Model_Impl* model, bool keepHandle) | |
| 40 | 2 | : StraightComponent_Impl(other, model, keepHandle) {} | |
| 41 | |||
| 42 | ✗ | const std::vector<std::string>& CoolingTowerTwoSpeed_Impl::outputVariableNames() const { | |
| 43 | // static for now | ||
| 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 Fan Cycling Ratio", | ||
| 49 | "Cooling Tower Operating Cells Count", "Cooling Tower Fan Speed Level", "Cooling Tower Bypass Fraction", | ||
| 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 | // DLM: the return type of this method needs to change to std::vector<std::string> in ModelObject | ||
| 72 | // if specified | ||
| 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 CoolingTowerTwoSpeed_Impl::iddObjectType() const { | |
| 80 | ✗ | return CoolingTowerTwoSpeed::iddObjectType(); | |
| 81 | } | ||
| 82 | |||
| 83 | ✗ | std::vector<ScheduleTypeKey> CoolingTowerTwoSpeed_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_TwoSpeedFields::BasinHeaterOperatingScheduleName) != e) { | |
| 89 | ✗ | result.push_back(ScheduleTypeKey("CoolingTowerTwoSpeed", "Basin Heater Operating")); | |
| 90 | } | ||
| 91 | ✗ | if (std::find(b, e, OS_CoolingTower_TwoSpeedFields::BlowdownMakeupWaterUsageScheduleName) != e) { | |
| 92 | ✗ | result.push_back(ScheduleTypeKey("CoolingTowerTwoSpeed", "Blowdown Makeup Water Usage")); | |
| 93 | } | ||
| 94 | ✗ | return result; | |
| 95 | ✗ | } | |
| 96 | |||
| 97 | 3 | unsigned CoolingTowerTwoSpeed_Impl::inletPort() const { | |
| 98 | 3 | return OS_CoolingTower_TwoSpeedFields::WaterInletNodeName; | |
| 99 | } | ||
| 100 | |||
| 101 | 12 | unsigned CoolingTowerTwoSpeed_Impl::outletPort() const { | |
| 102 | 12 | return OS_CoolingTower_TwoSpeedFields::WaterOutletNodeName; | |
| 103 | } | ||
| 104 | |||
| 105 | 5 | bool CoolingTowerTwoSpeed_Impl::addToNode(Node& node) { | |
| 106 |
3/3✓ Branch 1 taken 5 times.
✓ Branch 3 taken 3 times.
✓ Branch 4 taken 2 times.
|
10 | if (boost::optional<PlantLoop> plant = node.plantLoop()) { |
| 107 |
5/5✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 2 times.
✓ Branch 11 taken 1 time.
|
6 | if (plant->supplyComponent(node.handle())) { |
| 108 |
1/1✓ Branch 1 taken 2 times.
|
2 | return StraightComponent_Impl::addToNode(node); |
| 109 | } | ||
| 110 | 5 | } | |
| 111 | |||
| 112 | 3 | return false; | |
| 113 | } | ||
| 114 | |||
| 115 | 1 | boost::optional<double> CoolingTowerTwoSpeed_Impl::designWaterFlowRate() const { | |
| 116 | 1 | return getDouble(OS_CoolingTower_TwoSpeedFields::DesignWaterFlowRate, true); | |
| 117 | } | ||
| 118 | |||
| 119 | 1 | bool CoolingTowerTwoSpeed_Impl::isDesignWaterFlowRateAutosized() const { | |
| 120 | 1 | bool result = false; | |
| 121 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<std::string> value = getString(OS_CoolingTower_TwoSpeedFields::DesignWaterFlowRate, true); |
| 122 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (value) { |
| 123 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
2 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 124 | } | ||
| 125 | 1 | return result; | |
| 126 | 1 | } | |
| 127 | |||
| 128 | 1 | boost::optional<double> CoolingTowerTwoSpeed_Impl::highFanSpeedAirFlowRate() const { | |
| 129 | 1 | return getDouble(OS_CoolingTower_TwoSpeedFields::HighFanSpeedAirFlowRate, true); | |
| 130 | } | ||
| 131 | |||
| 132 | 1 | bool CoolingTowerTwoSpeed_Impl::isHighFanSpeedAirFlowRateAutosized() const { | |
| 133 | 1 | bool result = false; | |
| 134 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<std::string> value = getString(OS_CoolingTower_TwoSpeedFields::HighFanSpeedAirFlowRate, true); |
| 135 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (value) { |
| 136 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
2 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 137 | } | ||
| 138 | 1 | return result; | |
| 139 | 1 | } | |
| 140 | |||
| 141 | 1 | boost::optional<double> CoolingTowerTwoSpeed_Impl::highFanSpeedFanPower() const { | |
| 142 | 1 | return getDouble(OS_CoolingTower_TwoSpeedFields::HighFanSpeedFanPower, true); | |
| 143 | } | ||
| 144 | |||
| 145 | 1 | bool CoolingTowerTwoSpeed_Impl::isHighFanSpeedFanPowerAutosized() const { | |
| 146 | 1 | bool result = false; | |
| 147 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<std::string> value = getString(OS_CoolingTower_TwoSpeedFields::HighFanSpeedFanPower, true); |
| 148 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (value) { |
| 149 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
2 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 150 | } | ||
| 151 | 1 | return result; | |
| 152 | 1 | } | |
| 153 | |||
| 154 | 1 | boost::optional<double> CoolingTowerTwoSpeed_Impl::highFanSpeedUFactorTimesAreaValue() const { | |
| 155 | 1 | return getDouble(OS_CoolingTower_TwoSpeedFields::HighFanSpeedUFactorTimesAreaValue, true); | |
| 156 | } | ||
| 157 | |||
| 158 | 1 | bool CoolingTowerTwoSpeed_Impl::isHighFanSpeedUFactorTimesAreaValueAutosized() const { | |
| 159 | 1 | bool result = false; | |
| 160 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<std::string> value = getString(OS_CoolingTower_TwoSpeedFields::HighFanSpeedUFactorTimesAreaValue, true); |
| 161 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (value) { |
| 162 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
2 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 163 | } | ||
| 164 | 1 | return result; | |
| 165 | 1 | } | |
| 166 | |||
| 167 | 1 | boost::optional<double> CoolingTowerTwoSpeed_Impl::lowFanSpeedAirFlowRate() const { | |
| 168 | 1 | return getDouble(OS_CoolingTower_TwoSpeedFields::LowFanSpeedAirFlowRate, true); | |
| 169 | } | ||
| 170 | |||
| 171 | 1 | bool CoolingTowerTwoSpeed_Impl::isLowFanSpeedAirFlowRateAutosized() const { | |
| 172 | 1 | bool result = false; | |
| 173 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<std::string> value = getString(OS_CoolingTower_TwoSpeedFields::LowFanSpeedAirFlowRate, true); |
| 174 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (value) { |
| 175 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
2 | result = openstudio::istringEqual(value.get(), "AutoSize"); |
| 176 | } | ||
| 177 | 1 | return result; | |
| 178 | 1 | } | |
| 179 | |||
| 180 | 1 | double CoolingTowerTwoSpeed_Impl::lowFanSpeedAirFlowRateSizingFactor() const { | |
| 181 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_CoolingTower_TwoSpeedFields::LowFanSpeedAirFlowRateSizingFactor, true); |
| 182 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 183 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 184 | } | ||
| 185 | |||
| 186 | 1 | bool CoolingTowerTwoSpeed_Impl::isLowFanSpeedAirFlowRateSizingFactorDefaulted() const { | |
| 187 | 1 | return isEmpty(OS_CoolingTower_TwoSpeedFields::LowFanSpeedAirFlowRateSizingFactor); | |
| 188 | } | ||
| 189 | |||
| 190 | 1 | boost::optional<double> CoolingTowerTwoSpeed_Impl::lowFanSpeedFanPower() const { | |
| 191 | 1 | return getDouble(OS_CoolingTower_TwoSpeedFields::LowFanSpeedFanPower, true); | |
| 192 | } | ||
| 193 | |||
| 194 | 1 | bool CoolingTowerTwoSpeed_Impl::isLowFanSpeedFanPowerAutosized() const { | |
| 195 | 1 | bool result = false; | |
| 196 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<std::string> value = getString(OS_CoolingTower_TwoSpeedFields::LowFanSpeedFanPower, true); |
| 197 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (value) { |
| 198 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
2 | result = openstudio::istringEqual(value.get(), "AutoSize"); |
| 199 | } | ||
| 200 | 1 | return result; | |
| 201 | 1 | } | |
| 202 | |||
| 203 | 1 | double CoolingTowerTwoSpeed_Impl::lowFanSpeedFanPowerSizingFactor() const { | |
| 204 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_CoolingTower_TwoSpeedFields::LowFanSpeedFanPowerSizingFactor, true); |
| 205 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 206 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 207 | } | ||
| 208 | |||
| 209 | 1 | bool CoolingTowerTwoSpeed_Impl::isLowFanSpeedFanPowerSizingFactorDefaulted() const { | |
| 210 | 1 | return isEmpty(OS_CoolingTower_TwoSpeedFields::LowFanSpeedFanPowerSizingFactor); | |
| 211 | } | ||
| 212 | |||
| 213 | 1 | boost::optional<double> CoolingTowerTwoSpeed_Impl::lowFanSpeedUFactorTimesAreaValue() const { | |
| 214 | 1 | return getDouble(OS_CoolingTower_TwoSpeedFields::LowFanSpeedUFactorTimesAreaValue, true); | |
| 215 | } | ||
| 216 | |||
| 217 | 1 | bool CoolingTowerTwoSpeed_Impl::isLowFanSpeedUFactorTimesAreaValueAutosized() const { | |
| 218 | 1 | bool result = false; | |
| 219 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<std::string> value = getString(OS_CoolingTower_TwoSpeedFields::LowFanSpeedUFactorTimesAreaValue, true); |
| 220 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (value) { |
| 221 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
2 | result = openstudio::istringEqual(value.get(), "AutoSize"); |
| 222 | } | ||
| 223 | 1 | return result; | |
| 224 | 1 | } | |
| 225 | |||
| 226 | 1 | double CoolingTowerTwoSpeed_Impl::lowFanSpeedUFactorTimesAreaSizingFactor() const { | |
| 227 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_CoolingTower_TwoSpeedFields::LowFanSpeedUFactorTimesAreaSizingFactor, true); |
| 228 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 229 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 230 | } | ||
| 231 | |||
| 232 | 1 | bool CoolingTowerTwoSpeed_Impl::isLowFanSpeedUFactorTimesAreaSizingFactorDefaulted() const { | |
| 233 | 1 | return isEmpty(OS_CoolingTower_TwoSpeedFields::LowFanSpeedUFactorTimesAreaSizingFactor); | |
| 234 | } | ||
| 235 | |||
| 236 | 2 | boost::optional<double> CoolingTowerTwoSpeed_Impl::freeConvectionRegimeAirFlowRate() const { | |
| 237 | 2 | return getDouble(OS_CoolingTower_TwoSpeedFields::FreeConvectionRegimeAirFlowRate, true); | |
| 238 | } | ||
| 239 | |||
| 240 | 1 | bool CoolingTowerTwoSpeed_Impl::isFreeConvectionRegimeAirFlowRateDefaulted() const { | |
| 241 | 1 | return isEmpty(OS_CoolingTower_TwoSpeedFields::FreeConvectionRegimeAirFlowRate); | |
| 242 | } | ||
| 243 | |||
| 244 | 1 | bool CoolingTowerTwoSpeed_Impl::isFreeConvectionRegimeAirFlowRateAutosized() const { | |
| 245 | 1 | bool result = false; | |
| 246 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<std::string> value = getString(OS_CoolingTower_TwoSpeedFields::FreeConvectionRegimeAirFlowRate, true); |
| 247 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (value) { |
| 248 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
2 | result = openstudio::istringEqual(value.get(), "AutoSize"); |
| 249 | } | ||
| 250 | 1 | return result; | |
| 251 | 1 | } | |
| 252 | |||
| 253 | 1 | double CoolingTowerTwoSpeed_Impl::freeConvectionRegimeAirFlowRateSizingFactor() const { | |
| 254 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_CoolingTower_TwoSpeedFields::FreeConvectionRegimeAirFlowRateSizingFactor, true); |
| 255 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 256 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 257 | } | ||
| 258 | |||
| 259 | 1 | bool CoolingTowerTwoSpeed_Impl::isFreeConvectionRegimeAirFlowRateSizingFactorDefaulted() const { | |
| 260 | 1 | return isEmpty(OS_CoolingTower_TwoSpeedFields::FreeConvectionRegimeAirFlowRateSizingFactor); | |
| 261 | } | ||
| 262 | |||
| 263 | 2 | boost::optional<double> CoolingTowerTwoSpeed_Impl::freeConvectionRegimeUFactorTimesAreaValue() const { | |
| 264 | 2 | return getDouble(OS_CoolingTower_TwoSpeedFields::FreeConvectionRegimeUFactorTimesAreaValue, true); | |
| 265 | } | ||
| 266 | |||
| 267 | 1 | bool CoolingTowerTwoSpeed_Impl::isFreeConvectionRegimeUFactorTimesAreaValueDefaulted() const { | |
| 268 | 1 | return isEmpty(OS_CoolingTower_TwoSpeedFields::FreeConvectionRegimeUFactorTimesAreaValue); | |
| 269 | } | ||
| 270 | |||
| 271 | 1 | bool CoolingTowerTwoSpeed_Impl::isFreeConvectionRegimeUFactorTimesAreaValueAutosized() const { | |
| 272 | 1 | bool result = false; | |
| 273 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<std::string> value = getString(OS_CoolingTower_TwoSpeedFields::FreeConvectionRegimeUFactorTimesAreaValue, true); |
| 274 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (value) { |
| 275 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
2 | result = openstudio::istringEqual(value.get(), "AutoSize"); |
| 276 | } | ||
| 277 | 1 | return result; | |
| 278 | 1 | } | |
| 279 | |||
| 280 | 1 | double CoolingTowerTwoSpeed_Impl::freeConvectionUFactorTimesAreaValueSizingFactor() const { | |
| 281 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_CoolingTower_TwoSpeedFields::FreeConvectionUFactorTimesAreaValueSizingFactor, true); |
| 282 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 283 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 284 | } | ||
| 285 | |||
| 286 | 1 | bool CoolingTowerTwoSpeed_Impl::isFreeConvectionUFactorTimesAreaValueSizingFactorDefaulted() const { | |
| 287 | 1 | return isEmpty(OS_CoolingTower_TwoSpeedFields::FreeConvectionUFactorTimesAreaValueSizingFactor); | |
| 288 | } | ||
| 289 | |||
| 290 | 1 | std::string CoolingTowerTwoSpeed_Impl::performanceInputMethod() const { | |
| 291 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<std::string> value = getString(OS_CoolingTower_TwoSpeedFields::PerformanceInputMethod, true); |
| 292 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 293 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | return value.get(); |
| 294 | 1 | } | |
| 295 | |||
| 296 | 1 | bool CoolingTowerTwoSpeed_Impl::isPerformanceInputMethodDefaulted() const { | |
| 297 | 1 | return isEmpty(OS_CoolingTower_TwoSpeedFields::PerformanceInputMethod); | |
| 298 | } | ||
| 299 | |||
| 300 | 1 | double CoolingTowerTwoSpeed_Impl::heatRejectionCapacityandNominalCapacitySizingRatio() const { | |
| 301 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_CoolingTower_TwoSpeedFields::HeatRejectionCapacityandNominalCapacitySizingRatio, true); |
| 302 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 303 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 304 | } | ||
| 305 | |||
| 306 | 1 | bool CoolingTowerTwoSpeed_Impl::isHeatRejectionCapacityandNominalCapacitySizingRatioDefaulted() const { | |
| 307 | 1 | return isEmpty(OS_CoolingTower_TwoSpeedFields::HeatRejectionCapacityandNominalCapacitySizingRatio); | |
| 308 | } | ||
| 309 | |||
| 310 | 1 | boost::optional<double> CoolingTowerTwoSpeed_Impl::highSpeedNominalCapacity() const { | |
| 311 | 1 | return getDouble(OS_CoolingTower_TwoSpeedFields::HighSpeedNominalCapacity, true); | |
| 312 | } | ||
| 313 | |||
| 314 | 1 | boost::optional<double> CoolingTowerTwoSpeed_Impl::lowSpeedNominalCapacity() const { | |
| 315 | 1 | return getDouble(OS_CoolingTower_TwoSpeedFields::LowSpeedNominalCapacity, true); | |
| 316 | } | ||
| 317 | |||
| 318 | 1 | bool CoolingTowerTwoSpeed_Impl::isLowSpeedNominalCapacityAutosized() const { | |
| 319 | 1 | bool result = false; | |
| 320 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<std::string> value = getString(OS_CoolingTower_TwoSpeedFields::LowSpeedNominalCapacity, true); |
| 321 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (value) { |
| 322 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
2 | result = openstudio::istringEqual(value.get(), "AutoSize"); |
| 323 | } | ||
| 324 | 1 | return result; | |
| 325 | 1 | } | |
| 326 | |||
| 327 | 1 | double CoolingTowerTwoSpeed_Impl::lowSpeedNominalCapacitySizingFactor() const { | |
| 328 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_CoolingTower_TwoSpeedFields::LowSpeedNominalCapacitySizingFactor, true); |
| 329 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 330 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 331 | } | ||
| 332 | |||
| 333 | 1 | bool CoolingTowerTwoSpeed_Impl::isLowSpeedNominalCapacitySizingFactorDefaulted() const { | |
| 334 | 1 | return isEmpty(OS_CoolingTower_TwoSpeedFields::LowSpeedNominalCapacitySizingFactor); | |
| 335 | } | ||
| 336 | |||
| 337 | 1 | boost::optional<double> CoolingTowerTwoSpeed_Impl::freeConvectionNominalCapacity() const { | |
| 338 | 1 | return getDouble(OS_CoolingTower_TwoSpeedFields::FreeConvectionNominalCapacity, true); | |
| 339 | } | ||
| 340 | |||
| 341 | 1 | bool CoolingTowerTwoSpeed_Impl::isFreeConvectionNominalCapacityAutosized() const { | |
| 342 | 1 | bool result = false; | |
| 343 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<std::string> value = getString(OS_CoolingTower_TwoSpeedFields::FreeConvectionNominalCapacity, true); |
| 344 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (value) { |
| 345 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
2 | result = openstudio::istringEqual(value.get(), "AutoSize"); |
| 346 | } | ||
| 347 | 1 | return result; | |
| 348 | 1 | } | |
| 349 | |||
| 350 | 1 | double CoolingTowerTwoSpeed_Impl::freeConvectionNominalCapacitySizingFactor() const { | |
| 351 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_CoolingTower_TwoSpeedFields::FreeConvectionNominalCapacitySizingFactor, true); |
| 352 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 353 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 354 | } | ||
| 355 | |||
| 356 | 1 | bool CoolingTowerTwoSpeed_Impl::isFreeConvectionNominalCapacitySizingFactorDefaulted() const { | |
| 357 | 1 | return isEmpty(OS_CoolingTower_TwoSpeedFields::FreeConvectionNominalCapacitySizingFactor); | |
| 358 | } | ||
| 359 | |||
| 360 | 1 | double CoolingTowerTwoSpeed_Impl::basinHeaterCapacity() const { | |
| 361 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_CoolingTower_TwoSpeedFields::BasinHeaterCapacity, true); |
| 362 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 363 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 364 | } | ||
| 365 | |||
| 366 | 1 | bool CoolingTowerTwoSpeed_Impl::isBasinHeaterCapacityDefaulted() const { | |
| 367 | 1 | return isEmpty(OS_CoolingTower_TwoSpeedFields::BasinHeaterCapacity); | |
| 368 | } | ||
| 369 | |||
| 370 | 1 | double CoolingTowerTwoSpeed_Impl::basinHeaterSetpointTemperature() const { | |
| 371 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_CoolingTower_TwoSpeedFields::BasinHeaterSetpointTemperature, true); |
| 372 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 373 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 374 | } | ||
| 375 | |||
| 376 | 1 | bool CoolingTowerTwoSpeed_Impl::isBasinHeaterSetpointTemperatureDefaulted() const { | |
| 377 | 1 | return isEmpty(OS_CoolingTower_TwoSpeedFields::BasinHeaterSetpointTemperature); | |
| 378 | } | ||
| 379 | |||
| 380 | 1 | boost::optional<Schedule> CoolingTowerTwoSpeed_Impl::basinHeaterOperatingSchedule() const { | |
| 381 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_CoolingTower_TwoSpeedFields::BasinHeaterOperatingScheduleName); |
| 382 | } | ||
| 383 | |||
| 384 | 1 | std::string CoolingTowerTwoSpeed_Impl::evaporationLossMode() const { | |
| 385 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<std::string> value = getString(OS_CoolingTower_TwoSpeedFields::EvaporationLossMode, true); |
| 386 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 387 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | return value.get(); |
| 388 | 1 | } | |
| 389 | |||
| 390 | 1 | bool CoolingTowerTwoSpeed_Impl::isEvaporationLossModeDefaulted() const { | |
| 391 | 1 | return isEmpty(OS_CoolingTower_TwoSpeedFields::EvaporationLossMode); | |
| 392 | } | ||
| 393 | |||
| 394 | 1 | double CoolingTowerTwoSpeed_Impl::evaporationLossFactor() const { | |
| 395 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_CoolingTower_TwoSpeedFields::EvaporationLossFactor, true); |
| 396 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 397 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 398 | } | ||
| 399 | |||
| 400 | 1 | bool CoolingTowerTwoSpeed_Impl::isEvaporationLossFactorDefaulted() const { | |
| 401 | 1 | return isEmpty(OS_CoolingTower_TwoSpeedFields::EvaporationLossFactor); | |
| 402 | } | ||
| 403 | |||
| 404 | 1 | double CoolingTowerTwoSpeed_Impl::driftLossPercent() const { | |
| 405 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_CoolingTower_TwoSpeedFields::DriftLossPercent, true); |
| 406 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 407 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 408 | } | ||
| 409 | |||
| 410 | 1 | bool CoolingTowerTwoSpeed_Impl::isDriftLossPercentDefaulted() const { | |
| 411 | 1 | return isEmpty(OS_CoolingTower_TwoSpeedFields::DriftLossPercent); | |
| 412 | } | ||
| 413 | |||
| 414 | 1 | std::string CoolingTowerTwoSpeed_Impl::blowdownCalculationMode() const { | |
| 415 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<std::string> value = getString(OS_CoolingTower_TwoSpeedFields::BlowdownCalculationMode, true); |
| 416 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 417 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | return value.get(); |
| 418 | 1 | } | |
| 419 | |||
| 420 | 1 | bool CoolingTowerTwoSpeed_Impl::isBlowdownCalculationModeDefaulted() const { | |
| 421 | 1 | return isEmpty(OS_CoolingTower_TwoSpeedFields::BlowdownCalculationMode); | |
| 422 | } | ||
| 423 | |||
| 424 | 1 | double CoolingTowerTwoSpeed_Impl::blowdownConcentrationRatio() const { | |
| 425 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_CoolingTower_TwoSpeedFields::BlowdownConcentrationRatio, true); |
| 426 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 427 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 428 | } | ||
| 429 | |||
| 430 | 1 | bool CoolingTowerTwoSpeed_Impl::isBlowdownConcentrationRatioDefaulted() const { | |
| 431 | 1 | return isEmpty(OS_CoolingTower_TwoSpeedFields::BlowdownConcentrationRatio); | |
| 432 | } | ||
| 433 | |||
| 434 | 1 | boost::optional<Schedule> CoolingTowerTwoSpeed_Impl::blowdownMakeupWaterUsageSchedule() const { | |
| 435 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_CoolingTower_TwoSpeedFields::BlowdownMakeupWaterUsageScheduleName); |
| 436 | } | ||
| 437 | |||
| 438 | // boost::optional<WaterStorageTank> CoolingTowerTwoSpeed_Impl::supplyWaterStorageTank() const { | ||
| 439 | // return getObject<ModelObject>().getModelObjectTarget<WaterStorageTank>(OS_CoolingTower_TwoSpeedFields::SupplyWaterStorageTankName); | ||
| 440 | // } | ||
| 441 | |||
| 442 | 1 | int CoolingTowerTwoSpeed_Impl::numberofCells() const { | |
| 443 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<int> value = getInt(OS_CoolingTower_TwoSpeedFields::NumberofCells, true); |
| 444 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 445 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 446 | } | ||
| 447 | |||
| 448 | 1 | bool CoolingTowerTwoSpeed_Impl::isNumberofCellsDefaulted() const { | |
| 449 | 1 | return isEmpty(OS_CoolingTower_TwoSpeedFields::NumberofCells); | |
| 450 | } | ||
| 451 | |||
| 452 | 1 | std::string CoolingTowerTwoSpeed_Impl::cellControl() const { | |
| 453 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<std::string> value = getString(OS_CoolingTower_TwoSpeedFields::CellControl, true); |
| 454 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 455 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | return value.get(); |
| 456 | 1 | } | |
| 457 | |||
| 458 | 1 | bool CoolingTowerTwoSpeed_Impl::isCellControlDefaulted() const { | |
| 459 | 1 | return isEmpty(OS_CoolingTower_TwoSpeedFields::CellControl); | |
| 460 | } | ||
| 461 | |||
| 462 | 1 | double CoolingTowerTwoSpeed_Impl::cellMinimumWaterFlowRateFraction() const { | |
| 463 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_CoolingTower_TwoSpeedFields::CellMinimumWaterFlowRateFraction, true); |
| 464 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 465 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 466 | } | ||
| 467 | |||
| 468 | 1 | bool CoolingTowerTwoSpeed_Impl::isCellMinimumWaterFlowRateFractionDefaulted() const { | |
| 469 | 1 | return isEmpty(OS_CoolingTower_TwoSpeedFields::CellMinimumWaterFlowRateFraction); | |
| 470 | } | ||
| 471 | |||
| 472 | 1 | double CoolingTowerTwoSpeed_Impl::cellMaximumWaterFlowRateFraction() const { | |
| 473 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_CoolingTower_TwoSpeedFields::CellMaximumWaterFlowRateFraction, true); |
| 474 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 475 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 476 | } | ||
| 477 | |||
| 478 | 1 | bool CoolingTowerTwoSpeed_Impl::isCellMaximumWaterFlowRateFractionDefaulted() const { | |
| 479 | 1 | return isEmpty(OS_CoolingTower_TwoSpeedFields::CellMaximumWaterFlowRateFraction); | |
| 480 | } | ||
| 481 | |||
| 482 | 1 | double CoolingTowerTwoSpeed_Impl::sizingFactor() const { | |
| 483 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_CoolingTower_TwoSpeedFields::SizingFactor, true); |
| 484 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 485 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 486 | } | ||
| 487 | |||
| 488 | ✗ | bool CoolingTowerTwoSpeed_Impl::isSizingFactorDefaulted() const { | |
| 489 | ✗ | return isEmpty(OS_CoolingTower_TwoSpeedFields::SizingFactor); | |
| 490 | } | ||
| 491 | |||
| 492 | ✗ | bool CoolingTowerTwoSpeed_Impl::setDesignWaterFlowRate(boost::optional<double> designWaterFlowRate) { | |
| 493 | ✗ | bool result(false); | |
| 494 | ✗ | if (designWaterFlowRate) { | |
| 495 | ✗ | result = setDouble(OS_CoolingTower_TwoSpeedFields::DesignWaterFlowRate, designWaterFlowRate.get()); | |
| 496 | } else { | ||
| 497 | ✗ | resetDesignWaterFlowRate(); | |
| 498 | ✗ | result = true; | |
| 499 | } | ||
| 500 | ✗ | return result; | |
| 501 | } | ||
| 502 | |||
| 503 | ✗ | void CoolingTowerTwoSpeed_Impl::resetDesignWaterFlowRate() { | |
| 504 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::DesignWaterFlowRate, ""); | |
| 505 | ✗ | OS_ASSERT(result); | |
| 506 | ✗ | } | |
| 507 | |||
| 508 | 4 | void CoolingTowerTwoSpeed_Impl::autosizeDesignWaterFlowRate() { | |
| 509 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | bool result = setString(OS_CoolingTower_TwoSpeedFields::DesignWaterFlowRate, "autosize"); |
| 510 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 511 | 4 | } | |
| 512 | |||
| 513 | ✗ | bool CoolingTowerTwoSpeed_Impl::setHighFanSpeedAirFlowRate(boost::optional<double> highFanSpeedAirFlowRate) { | |
| 514 | ✗ | bool result(false); | |
| 515 | ✗ | if (highFanSpeedAirFlowRate) { | |
| 516 | ✗ | result = setDouble(OS_CoolingTower_TwoSpeedFields::HighFanSpeedAirFlowRate, highFanSpeedAirFlowRate.get()); | |
| 517 | } | ||
| 518 | ✗ | return result; | |
| 519 | } | ||
| 520 | |||
| 521 | 4 | void CoolingTowerTwoSpeed_Impl::autosizeHighFanSpeedAirFlowRate() { | |
| 522 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | bool result = setString(OS_CoolingTower_TwoSpeedFields::HighFanSpeedAirFlowRate, "autosize"); |
| 523 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 524 | 4 | } | |
| 525 | |||
| 526 | ✗ | bool CoolingTowerTwoSpeed_Impl::setHighFanSpeedFanPower(boost::optional<double> highFanSpeedFanPower) { | |
| 527 | ✗ | bool result(false); | |
| 528 | ✗ | if (highFanSpeedFanPower) { | |
| 529 | ✗ | result = setDouble(OS_CoolingTower_TwoSpeedFields::HighFanSpeedFanPower, highFanSpeedFanPower.get()); | |
| 530 | } | ||
| 531 | ✗ | return result; | |
| 532 | } | ||
| 533 | |||
| 534 | 4 | void CoolingTowerTwoSpeed_Impl::autosizeHighFanSpeedFanPower() { | |
| 535 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | bool result = setString(OS_CoolingTower_TwoSpeedFields::HighFanSpeedFanPower, "autosize"); |
| 536 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 537 | 4 | } | |
| 538 | |||
| 539 | ✗ | bool CoolingTowerTwoSpeed_Impl::setHighFanSpeedUFactorTimesAreaValue(boost::optional<double> highFanSpeedUFactorTimesAreaValue) { | |
| 540 | ✗ | bool result(false); | |
| 541 | ✗ | if (highFanSpeedUFactorTimesAreaValue) { | |
| 542 | ✗ | result = setDouble(OS_CoolingTower_TwoSpeedFields::HighFanSpeedUFactorTimesAreaValue, highFanSpeedUFactorTimesAreaValue.get()); | |
| 543 | } else { | ||
| 544 | ✗ | resetHighFanSpeedUFactorTimesAreaValue(); | |
| 545 | ✗ | result = true; | |
| 546 | } | ||
| 547 | ✗ | return result; | |
| 548 | } | ||
| 549 | |||
| 550 | ✗ | void CoolingTowerTwoSpeed_Impl::resetHighFanSpeedUFactorTimesAreaValue() { | |
| 551 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::HighFanSpeedUFactorTimesAreaValue, ""); | |
| 552 | ✗ | OS_ASSERT(result); | |
| 553 | ✗ | } | |
| 554 | |||
| 555 | 4 | void CoolingTowerTwoSpeed_Impl::autosizeHighFanSpeedUFactorTimesAreaValue() { | |
| 556 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | bool result = setString(OS_CoolingTower_TwoSpeedFields::HighFanSpeedUFactorTimesAreaValue, "autosize"); |
| 557 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 558 | 4 | } | |
| 559 | |||
| 560 | ✗ | bool CoolingTowerTwoSpeed_Impl::setLowFanSpeedAirFlowRate(boost::optional<double> lowFanSpeedAirFlowRate) { | |
| 561 | ✗ | bool result(false); | |
| 562 | ✗ | if (lowFanSpeedAirFlowRate) { | |
| 563 | ✗ | result = setDouble(OS_CoolingTower_TwoSpeedFields::LowFanSpeedAirFlowRate, lowFanSpeedAirFlowRate.get()); | |
| 564 | } | ||
| 565 | ✗ | return result; | |
| 566 | } | ||
| 567 | |||
| 568 | 4 | void CoolingTowerTwoSpeed_Impl::autosizeLowFanSpeedAirFlowRate() { | |
| 569 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | bool result = setString(OS_CoolingTower_TwoSpeedFields::LowFanSpeedAirFlowRate, "AutoSize"); |
| 570 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 571 | 4 | } | |
| 572 | |||
| 573 | ✗ | bool CoolingTowerTwoSpeed_Impl::setLowFanSpeedAirFlowRateSizingFactor(double lowFanSpeedAirFlowRateSizingFactor) { | |
| 574 | ✗ | bool result = setDouble(OS_CoolingTower_TwoSpeedFields::LowFanSpeedAirFlowRateSizingFactor, lowFanSpeedAirFlowRateSizingFactor); | |
| 575 | ✗ | return result; | |
| 576 | } | ||
| 577 | |||
| 578 | ✗ | void CoolingTowerTwoSpeed_Impl::resetLowFanSpeedAirFlowRateSizingFactor() { | |
| 579 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::LowFanSpeedAirFlowRateSizingFactor, ""); | |
| 580 | ✗ | OS_ASSERT(result); | |
| 581 | ✗ | } | |
| 582 | |||
| 583 | ✗ | bool CoolingTowerTwoSpeed_Impl::setLowFanSpeedFanPower(boost::optional<double> lowFanSpeedFanPower) { | |
| 584 | ✗ | bool result(false); | |
| 585 | ✗ | if (lowFanSpeedFanPower) { | |
| 586 | ✗ | result = setDouble(OS_CoolingTower_TwoSpeedFields::LowFanSpeedFanPower, lowFanSpeedFanPower.get()); | |
| 587 | } | ||
| 588 | ✗ | return result; | |
| 589 | } | ||
| 590 | |||
| 591 | 4 | void CoolingTowerTwoSpeed_Impl::autosizeLowFanSpeedFanPower() { | |
| 592 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | bool result = setString(OS_CoolingTower_TwoSpeedFields::LowFanSpeedFanPower, "AutoSize"); |
| 593 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 594 | 4 | } | |
| 595 | |||
| 596 | ✗ | bool CoolingTowerTwoSpeed_Impl::setLowFanSpeedFanPowerSizingFactor(double lowFanSpeedFanPowerSizingFactor) { | |
| 597 | ✗ | bool result = setDouble(OS_CoolingTower_TwoSpeedFields::LowFanSpeedFanPowerSizingFactor, lowFanSpeedFanPowerSizingFactor); | |
| 598 | ✗ | return result; | |
| 599 | } | ||
| 600 | |||
| 601 | ✗ | void CoolingTowerTwoSpeed_Impl::resetLowFanSpeedFanPowerSizingFactor() { | |
| 602 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::LowFanSpeedFanPowerSizingFactor, ""); | |
| 603 | ✗ | OS_ASSERT(result); | |
| 604 | ✗ | } | |
| 605 | |||
| 606 | ✗ | bool CoolingTowerTwoSpeed_Impl::setLowFanSpeedUFactorTimesAreaValue(boost::optional<double> lowFanSpeedUFactorTimesAreaValue) { | |
| 607 | ✗ | bool result(false); | |
| 608 | ✗ | if (lowFanSpeedUFactorTimesAreaValue) { | |
| 609 | ✗ | result = setDouble(OS_CoolingTower_TwoSpeedFields::LowFanSpeedUFactorTimesAreaValue, lowFanSpeedUFactorTimesAreaValue.get()); | |
| 610 | } else { | ||
| 611 | ✗ | resetLowFanSpeedUFactorTimesAreaValue(); | |
| 612 | ✗ | result = true; | |
| 613 | } | ||
| 614 | ✗ | return result; | |
| 615 | } | ||
| 616 | |||
| 617 | ✗ | void CoolingTowerTwoSpeed_Impl::resetLowFanSpeedUFactorTimesAreaValue() { | |
| 618 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::LowFanSpeedUFactorTimesAreaValue, ""); | |
| 619 | ✗ | OS_ASSERT(result); | |
| 620 | ✗ | } | |
| 621 | |||
| 622 | 4 | void CoolingTowerTwoSpeed_Impl::autosizeLowFanSpeedUFactorTimesAreaValue() { | |
| 623 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | bool result = setString(OS_CoolingTower_TwoSpeedFields::LowFanSpeedUFactorTimesAreaValue, "AutoSize"); |
| 624 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 625 | 4 | } | |
| 626 | |||
| 627 | ✗ | bool CoolingTowerTwoSpeed_Impl::setLowFanSpeedUFactorTimesAreaSizingFactor(double lowFanSpeedUFactorTimesAreaSizingFactor) { | |
| 628 | ✗ | bool result = setDouble(OS_CoolingTower_TwoSpeedFields::LowFanSpeedUFactorTimesAreaSizingFactor, lowFanSpeedUFactorTimesAreaSizingFactor); | |
| 629 | ✗ | return result; | |
| 630 | } | ||
| 631 | |||
| 632 | ✗ | void CoolingTowerTwoSpeed_Impl::resetLowFanSpeedUFactorTimesAreaSizingFactor() { | |
| 633 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::LowFanSpeedUFactorTimesAreaSizingFactor, ""); | |
| 634 | ✗ | OS_ASSERT(result); | |
| 635 | ✗ | } | |
| 636 | |||
| 637 | ✗ | bool CoolingTowerTwoSpeed_Impl::setFreeConvectionRegimeAirFlowRate(boost::optional<double> freeConvectionRegimeAirFlowRate) { | |
| 638 | ✗ | bool result(false); | |
| 639 | ✗ | if (freeConvectionRegimeAirFlowRate) { | |
| 640 | ✗ | result = setDouble(OS_CoolingTower_TwoSpeedFields::FreeConvectionRegimeAirFlowRate, freeConvectionRegimeAirFlowRate.get()); | |
| 641 | } else { | ||
| 642 | ✗ | resetFreeConvectionRegimeAirFlowRate(); | |
| 643 | ✗ | result = true; | |
| 644 | } | ||
| 645 | ✗ | return result; | |
| 646 | } | ||
| 647 | |||
| 648 | ✗ | void CoolingTowerTwoSpeed_Impl::resetFreeConvectionRegimeAirFlowRate() { | |
| 649 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::FreeConvectionRegimeAirFlowRate, ""); | |
| 650 | ✗ | OS_ASSERT(result); | |
| 651 | ✗ | } | |
| 652 | |||
| 653 | ✗ | void CoolingTowerTwoSpeed_Impl::autosizeFreeConvectionRegimeAirFlowRate() { | |
| 654 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::FreeConvectionRegimeAirFlowRate, "AutoSize"); | |
| 655 | ✗ | OS_ASSERT(result); | |
| 656 | ✗ | } | |
| 657 | |||
| 658 | ✗ | bool CoolingTowerTwoSpeed_Impl::setFreeConvectionRegimeAirFlowRateSizingFactor(double freeConvectionRegimeAirFlowRateSizingFactor) { | |
| 659 | bool result = | ||
| 660 | ✗ | setDouble(OS_CoolingTower_TwoSpeedFields::FreeConvectionRegimeAirFlowRateSizingFactor, freeConvectionRegimeAirFlowRateSizingFactor); | |
| 661 | ✗ | return result; | |
| 662 | } | ||
| 663 | |||
| 664 | ✗ | void CoolingTowerTwoSpeed_Impl::resetFreeConvectionRegimeAirFlowRateSizingFactor() { | |
| 665 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::FreeConvectionRegimeAirFlowRateSizingFactor, ""); | |
| 666 | ✗ | OS_ASSERT(result); | |
| 667 | ✗ | } | |
| 668 | |||
| 669 | ✗ | bool CoolingTowerTwoSpeed_Impl::setFreeConvectionRegimeUFactorTimesAreaValue(boost::optional<double> freeConvectionRegimeUFactorTimesAreaValue) { | |
| 670 | ✗ | bool result(false); | |
| 671 | ✗ | if (freeConvectionRegimeUFactorTimesAreaValue) { | |
| 672 | result = | ||
| 673 | ✗ | setDouble(OS_CoolingTower_TwoSpeedFields::FreeConvectionRegimeUFactorTimesAreaValue, freeConvectionRegimeUFactorTimesAreaValue.get()); | |
| 674 | } else { | ||
| 675 | ✗ | resetFreeConvectionRegimeUFactorTimesAreaValue(); | |
| 676 | ✗ | result = true; | |
| 677 | } | ||
| 678 | ✗ | return result; | |
| 679 | } | ||
| 680 | |||
| 681 | ✗ | void CoolingTowerTwoSpeed_Impl::resetFreeConvectionRegimeUFactorTimesAreaValue() { | |
| 682 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::FreeConvectionRegimeUFactorTimesAreaValue, ""); | |
| 683 | ✗ | OS_ASSERT(result); | |
| 684 | ✗ | } | |
| 685 | |||
| 686 | ✗ | void CoolingTowerTwoSpeed_Impl::autosizeFreeConvectionRegimeUFactorTimesAreaValue() { | |
| 687 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::FreeConvectionRegimeUFactorTimesAreaValue, "AutoSize"); | |
| 688 | ✗ | OS_ASSERT(result); | |
| 689 | ✗ | } | |
| 690 | |||
| 691 | ✗ | bool CoolingTowerTwoSpeed_Impl::setFreeConvectionUFactorTimesAreaValueSizingFactor(double freeConvectionUFactorTimesAreaValueSizingFactor) { | |
| 692 | bool result = | ||
| 693 | ✗ | setDouble(OS_CoolingTower_TwoSpeedFields::FreeConvectionUFactorTimesAreaValueSizingFactor, freeConvectionUFactorTimesAreaValueSizingFactor); | |
| 694 | ✗ | return result; | |
| 695 | } | ||
| 696 | |||
| 697 | ✗ | void CoolingTowerTwoSpeed_Impl::resetFreeConvectionUFactorTimesAreaValueSizingFactor() { | |
| 698 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::FreeConvectionUFactorTimesAreaValueSizingFactor, ""); | |
| 699 | ✗ | OS_ASSERT(result); | |
| 700 | ✗ | } | |
| 701 | |||
| 702 | ✗ | bool CoolingTowerTwoSpeed_Impl::setPerformanceInputMethod(const std::string& performanceInputMethod) { | |
| 703 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::PerformanceInputMethod, performanceInputMethod); | |
| 704 | ✗ | return result; | |
| 705 | } | ||
| 706 | |||
| 707 | ✗ | void CoolingTowerTwoSpeed_Impl::resetPerformanceInputMethod() { | |
| 708 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::PerformanceInputMethod, ""); | |
| 709 | ✗ | OS_ASSERT(result); | |
| 710 | ✗ | } | |
| 711 | |||
| 712 | ✗ | bool CoolingTowerTwoSpeed_Impl::setHeatRejectionCapacityandNominalCapacitySizingRatio(double heatRejectionCapacityandNominalCapacitySizingRatio) { | |
| 713 | ✗ | bool result = setDouble(OS_CoolingTower_TwoSpeedFields::HeatRejectionCapacityandNominalCapacitySizingRatio, | |
| 714 | heatRejectionCapacityandNominalCapacitySizingRatio); | ||
| 715 | ✗ | OS_ASSERT(result); | |
| 716 | ✗ | return result; | |
| 717 | } | ||
| 718 | |||
| 719 | ✗ | void CoolingTowerTwoSpeed_Impl::resetHeatRejectionCapacityandNominalCapacitySizingRatio() { | |
| 720 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::HeatRejectionCapacityandNominalCapacitySizingRatio, ""); | |
| 721 | ✗ | OS_ASSERT(result); | |
| 722 | ✗ | } | |
| 723 | |||
| 724 | ✗ | bool CoolingTowerTwoSpeed_Impl::setHighSpeedNominalCapacity(boost::optional<double> highSpeedNominalCapacity) { | |
| 725 | ✗ | bool result(false); | |
| 726 | ✗ | if (highSpeedNominalCapacity) { | |
| 727 | ✗ | result = setDouble(OS_CoolingTower_TwoSpeedFields::HighSpeedNominalCapacity, highSpeedNominalCapacity.get()); | |
| 728 | } else { | ||
| 729 | ✗ | resetHighSpeedNominalCapacity(); | |
| 730 | ✗ | result = true; | |
| 731 | } | ||
| 732 | ✗ | return result; | |
| 733 | } | ||
| 734 | |||
| 735 | ✗ | void CoolingTowerTwoSpeed_Impl::resetHighSpeedNominalCapacity() { | |
| 736 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::HighSpeedNominalCapacity, ""); | |
| 737 | ✗ | OS_ASSERT(result); | |
| 738 | ✗ | } | |
| 739 | |||
| 740 | ✗ | bool CoolingTowerTwoSpeed_Impl::setLowSpeedNominalCapacity(boost::optional<double> lowSpeedNominalCapacity) { | |
| 741 | ✗ | bool result(false); | |
| 742 | ✗ | if (lowSpeedNominalCapacity) { | |
| 743 | ✗ | result = setDouble(OS_CoolingTower_TwoSpeedFields::LowSpeedNominalCapacity, lowSpeedNominalCapacity.get()); | |
| 744 | } else { | ||
| 745 | ✗ | resetLowSpeedNominalCapacity(); | |
| 746 | ✗ | result = true; | |
| 747 | } | ||
| 748 | ✗ | return result; | |
| 749 | } | ||
| 750 | |||
| 751 | ✗ | void CoolingTowerTwoSpeed_Impl::resetLowSpeedNominalCapacity() { | |
| 752 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::LowSpeedNominalCapacity, ""); | |
| 753 | ✗ | OS_ASSERT(result); | |
| 754 | ✗ | } | |
| 755 | |||
| 756 | ✗ | void CoolingTowerTwoSpeed_Impl::autosizeLowSpeedNominalCapacity() { | |
| 757 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::LowSpeedNominalCapacity, "AutoSize"); | |
| 758 | ✗ | OS_ASSERT(result); | |
| 759 | ✗ | } | |
| 760 | |||
| 761 | ✗ | bool CoolingTowerTwoSpeed_Impl::setLowSpeedNominalCapacitySizingFactor(double lowSpeedNominalCapacitySizingFactor) { | |
| 762 | ✗ | bool result = setDouble(OS_CoolingTower_TwoSpeedFields::LowSpeedNominalCapacitySizingFactor, lowSpeedNominalCapacitySizingFactor); | |
| 763 | ✗ | return result; | |
| 764 | } | ||
| 765 | |||
| 766 | ✗ | void CoolingTowerTwoSpeed_Impl::resetLowSpeedNominalCapacitySizingFactor() { | |
| 767 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::LowSpeedNominalCapacitySizingFactor, ""); | |
| 768 | ✗ | OS_ASSERT(result); | |
| 769 | ✗ | } | |
| 770 | |||
| 771 | ✗ | bool CoolingTowerTwoSpeed_Impl::setFreeConvectionNominalCapacity(boost::optional<double> freeConvectionNominalCapacity) { | |
| 772 | ✗ | bool result(false); | |
| 773 | ✗ | if (freeConvectionNominalCapacity) { | |
| 774 | ✗ | result = setDouble(OS_CoolingTower_TwoSpeedFields::FreeConvectionNominalCapacity, freeConvectionNominalCapacity.get()); | |
| 775 | } else { | ||
| 776 | ✗ | resetFreeConvectionNominalCapacity(); | |
| 777 | ✗ | result = true; | |
| 778 | } | ||
| 779 | ✗ | return result; | |
| 780 | } | ||
| 781 | |||
| 782 | ✗ | void CoolingTowerTwoSpeed_Impl::resetFreeConvectionNominalCapacity() { | |
| 783 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::FreeConvectionNominalCapacity, ""); | |
| 784 | ✗ | OS_ASSERT(result); | |
| 785 | ✗ | } | |
| 786 | |||
| 787 | ✗ | void CoolingTowerTwoSpeed_Impl::autosizeFreeConvectionNominalCapacity() { | |
| 788 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::FreeConvectionNominalCapacity, "AutoSize"); | |
| 789 | ✗ | OS_ASSERT(result); | |
| 790 | ✗ | } | |
| 791 | |||
| 792 | ✗ | bool CoolingTowerTwoSpeed_Impl::setFreeConvectionNominalCapacitySizingFactor(double freeConvectionNominalCapacitySizingFactor) { | |
| 793 | ✗ | bool result = setDouble(OS_CoolingTower_TwoSpeedFields::FreeConvectionNominalCapacitySizingFactor, freeConvectionNominalCapacitySizingFactor); | |
| 794 | ✗ | return result; | |
| 795 | } | ||
| 796 | |||
| 797 | ✗ | void CoolingTowerTwoSpeed_Impl::resetFreeConvectionNominalCapacitySizingFactor() { | |
| 798 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::FreeConvectionNominalCapacitySizingFactor, ""); | |
| 799 | ✗ | OS_ASSERT(result); | |
| 800 | ✗ | } | |
| 801 | |||
| 802 | ✗ | bool CoolingTowerTwoSpeed_Impl::setBasinHeaterCapacity(double basinHeaterCapacity) { | |
| 803 | ✗ | bool result = setDouble(OS_CoolingTower_TwoSpeedFields::BasinHeaterCapacity, basinHeaterCapacity); | |
| 804 | ✗ | return result; | |
| 805 | } | ||
| 806 | |||
| 807 | ✗ | void CoolingTowerTwoSpeed_Impl::resetBasinHeaterCapacity() { | |
| 808 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::BasinHeaterCapacity, ""); | |
| 809 | ✗ | OS_ASSERT(result); | |
| 810 | ✗ | } | |
| 811 | |||
| 812 | ✗ | bool CoolingTowerTwoSpeed_Impl::setBasinHeaterSetpointTemperature(double basinHeaterSetpointTemperature) { | |
| 813 | ✗ | bool result = setDouble(OS_CoolingTower_TwoSpeedFields::BasinHeaterSetpointTemperature, basinHeaterSetpointTemperature); | |
| 814 | ✗ | return result; | |
| 815 | } | ||
| 816 | |||
| 817 | ✗ | void CoolingTowerTwoSpeed_Impl::resetBasinHeaterSetpointTemperature() { | |
| 818 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::BasinHeaterSetpointTemperature, ""); | |
| 819 | ✗ | OS_ASSERT(result); | |
| 820 | ✗ | } | |
| 821 | |||
| 822 | ✗ | bool CoolingTowerTwoSpeed_Impl::setBasinHeaterOperatingSchedule(Schedule& schedule) { | |
| 823 | bool result = | ||
| 824 | ✗ | setSchedule(OS_CoolingTower_TwoSpeedFields::BasinHeaterOperatingScheduleName, "CoolingTowerTwoSpeed", "Basin Heater Operating", schedule); | |
| 825 | ✗ | return result; | |
| 826 | } | ||
| 827 | |||
| 828 | ✗ | void CoolingTowerTwoSpeed_Impl::resetBasinHeaterOperatingSchedule() { | |
| 829 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::BasinHeaterOperatingScheduleName, ""); | |
| 830 | ✗ | OS_ASSERT(result); | |
| 831 | ✗ | } | |
| 832 | |||
| 833 | ✗ | bool CoolingTowerTwoSpeed_Impl::setEvaporationLossMode(boost::optional<std::string> evaporationLossMode) { | |
| 834 | ✗ | bool result(false); | |
| 835 | ✗ | if (evaporationLossMode) { | |
| 836 | ✗ | result = setString(OS_CoolingTower_TwoSpeedFields::EvaporationLossMode, evaporationLossMode.get()); | |
| 837 | } else { | ||
| 838 | ✗ | resetEvaporationLossMode(); | |
| 839 | ✗ | result = true; | |
| 840 | } | ||
| 841 | ✗ | return result; | |
| 842 | } | ||
| 843 | |||
| 844 | ✗ | void CoolingTowerTwoSpeed_Impl::resetEvaporationLossMode() { | |
| 845 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::EvaporationLossMode, ""); | |
| 846 | ✗ | OS_ASSERT(result); | |
| 847 | ✗ | } | |
| 848 | |||
| 849 | ✗ | bool CoolingTowerTwoSpeed_Impl::setEvaporationLossFactor(double evaporationLossFactor) { | |
| 850 | ✗ | bool result = setDouble(OS_CoolingTower_TwoSpeedFields::EvaporationLossFactor, evaporationLossFactor); | |
| 851 | ✗ | OS_ASSERT(result); | |
| 852 | ✗ | return result; | |
| 853 | } | ||
| 854 | |||
| 855 | ✗ | void CoolingTowerTwoSpeed_Impl::resetEvaporationLossFactor() { | |
| 856 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::EvaporationLossFactor, ""); | |
| 857 | ✗ | OS_ASSERT(result); | |
| 858 | ✗ | } | |
| 859 | |||
| 860 | ✗ | bool CoolingTowerTwoSpeed_Impl::setDriftLossPercent(double driftLossPercent) { | |
| 861 | ✗ | bool result = setDouble(OS_CoolingTower_TwoSpeedFields::DriftLossPercent, driftLossPercent); | |
| 862 | ✗ | OS_ASSERT(result); | |
| 863 | ✗ | return result; | |
| 864 | } | ||
| 865 | |||
| 866 | ✗ | void CoolingTowerTwoSpeed_Impl::resetDriftLossPercent() { | |
| 867 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::DriftLossPercent, ""); | |
| 868 | ✗ | OS_ASSERT(result); | |
| 869 | ✗ | } | |
| 870 | |||
| 871 | ✗ | bool CoolingTowerTwoSpeed_Impl::setBlowdownCalculationMode(boost::optional<std::string> blowdownCalculationMode) { | |
| 872 | ✗ | bool result(false); | |
| 873 | ✗ | if (blowdownCalculationMode) { | |
| 874 | ✗ | result = setString(OS_CoolingTower_TwoSpeedFields::BlowdownCalculationMode, blowdownCalculationMode.get()); | |
| 875 | } else { | ||
| 876 | ✗ | resetBlowdownCalculationMode(); | |
| 877 | ✗ | result = true; | |
| 878 | } | ||
| 879 | ✗ | return result; | |
| 880 | } | ||
| 881 | |||
| 882 | ✗ | void CoolingTowerTwoSpeed_Impl::resetBlowdownCalculationMode() { | |
| 883 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::BlowdownCalculationMode, ""); | |
| 884 | ✗ | OS_ASSERT(result); | |
| 885 | ✗ | } | |
| 886 | |||
| 887 | ✗ | bool CoolingTowerTwoSpeed_Impl::setBlowdownConcentrationRatio(double blowdownConcentrationRatio) { | |
| 888 | ✗ | bool result = setDouble(OS_CoolingTower_TwoSpeedFields::BlowdownConcentrationRatio, blowdownConcentrationRatio); | |
| 889 | ✗ | return result; | |
| 890 | } | ||
| 891 | |||
| 892 | ✗ | void CoolingTowerTwoSpeed_Impl::resetBlowdownConcentrationRatio() { | |
| 893 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::BlowdownConcentrationRatio, ""); | |
| 894 | ✗ | OS_ASSERT(result); | |
| 895 | ✗ | } | |
| 896 | |||
| 897 | ✗ | bool CoolingTowerTwoSpeed_Impl::setBlowdownMakeupWaterUsageSchedule(Schedule& schedule) { | |
| 898 | ✗ | bool result = setSchedule(OS_CoolingTower_TwoSpeedFields::BlowdownMakeupWaterUsageScheduleName, "CoolingTowerTwoSpeed", | |
| 899 | "Blowdown Makeup Water Usage", schedule); | ||
| 900 | ✗ | return result; | |
| 901 | } | ||
| 902 | |||
| 903 | ✗ | void CoolingTowerTwoSpeed_Impl::resetBlowdownMakeupWaterUsageSchedule() { | |
| 904 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::BlowdownMakeupWaterUsageScheduleName, ""); | |
| 905 | ✗ | OS_ASSERT(result); | |
| 906 | ✗ | } | |
| 907 | |||
| 908 | // bool CoolingTowerTwoSpeed_Impl::setSupplyWaterStorageTank(const boost::optional<WaterStorageTank>& waterStorageTank) { | ||
| 909 | // bool result(false); | ||
| 910 | // if (waterStorageTank) { | ||
| 911 | // result = setPointer(OS_CoolingTower_TwoSpeedFields::SupplyWaterStorageTankName, waterStorageTank.get().handle()); | ||
| 912 | // } | ||
| 913 | // else { | ||
| 914 | // resetSupplyWaterStorageTank(); | ||
| 915 | // result = true; | ||
| 916 | // } | ||
| 917 | // return result; | ||
| 918 | // } | ||
| 919 | |||
| 920 | // void CoolingTowerTwoSpeed_Impl::resetSupplyWaterStorageTank() { | ||
| 921 | // bool result = setString(OS_CoolingTower_TwoSpeedFields::SupplyWaterStorageTankName, ""); | ||
| 922 | // OS_ASSERT(result); | ||
| 923 | // } | ||
| 924 | |||
| 925 | ✗ | bool CoolingTowerTwoSpeed_Impl::setNumberofCells(int numberofCells) { | |
| 926 | ✗ | bool result = setInt(OS_CoolingTower_TwoSpeedFields::NumberofCells, numberofCells); | |
| 927 | ✗ | return result; | |
| 928 | } | ||
| 929 | |||
| 930 | ✗ | void CoolingTowerTwoSpeed_Impl::resetNumberofCells() { | |
| 931 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::NumberofCells, ""); | |
| 932 | ✗ | OS_ASSERT(result); | |
| 933 | ✗ | } | |
| 934 | |||
| 935 | ✗ | bool CoolingTowerTwoSpeed_Impl::setCellControl(const std::string& cellControl) { | |
| 936 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::CellControl, cellControl); | |
| 937 | ✗ | return result; | |
| 938 | } | ||
| 939 | |||
| 940 | ✗ | void CoolingTowerTwoSpeed_Impl::resetCellControl() { | |
| 941 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::CellControl, ""); | |
| 942 | ✗ | OS_ASSERT(result); | |
| 943 | ✗ | } | |
| 944 | |||
| 945 | ✗ | bool CoolingTowerTwoSpeed_Impl::setCellMinimumWaterFlowRateFraction(double cellMinimumWaterFlowRateFraction) { | |
| 946 | ✗ | bool result = setDouble(OS_CoolingTower_TwoSpeedFields::CellMinimumWaterFlowRateFraction, cellMinimumWaterFlowRateFraction); | |
| 947 | ✗ | return result; | |
| 948 | } | ||
| 949 | |||
| 950 | ✗ | void CoolingTowerTwoSpeed_Impl::resetCellMinimumWaterFlowRateFraction() { | |
| 951 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::CellMinimumWaterFlowRateFraction, ""); | |
| 952 | ✗ | OS_ASSERT(result); | |
| 953 | ✗ | } | |
| 954 | |||
| 955 | ✗ | bool CoolingTowerTwoSpeed_Impl::setCellMaximumWaterFlowRateFraction(double cellMaximumWaterFlowRateFraction) { | |
| 956 | ✗ | bool result = setDouble(OS_CoolingTower_TwoSpeedFields::CellMaximumWaterFlowRateFraction, cellMaximumWaterFlowRateFraction); | |
| 957 | ✗ | return result; | |
| 958 | } | ||
| 959 | |||
| 960 | ✗ | void CoolingTowerTwoSpeed_Impl::resetCellMaximumWaterFlowRateFraction() { | |
| 961 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::CellMaximumWaterFlowRateFraction, ""); | |
| 962 | ✗ | OS_ASSERT(result); | |
| 963 | ✗ | } | |
| 964 | |||
| 965 | 4 | bool CoolingTowerTwoSpeed_Impl::setSizingFactor(double sizingFactor) { | |
| 966 | 4 | bool result = setDouble(OS_CoolingTower_TwoSpeedFields::SizingFactor, sizingFactor); | |
| 967 | 4 | return result; | |
| 968 | } | ||
| 969 | |||
| 970 | ✗ | void CoolingTowerTwoSpeed_Impl::resetSizingFactor() { | |
| 971 | ✗ | bool result = setString(OS_CoolingTower_TwoSpeedFields::SizingFactor, ""); | |
| 972 | ✗ | OS_ASSERT(result); | |
| 973 | ✗ | } | |
| 974 | |||
| 975 | 1 | double CoolingTowerTwoSpeed_Impl::designInletAirDryBulbTemperature() const { | |
| 976 |
1/1✓ Branch 1 taken 1 time.
|
1 | auto value = getDouble(OS_CoolingTower_TwoSpeedFields::DesignInletAirDryBulbTemperature, true); |
| 977 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 978 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 979 | } | ||
| 980 | |||
| 981 | 4 | bool CoolingTowerTwoSpeed_Impl::setDesignInletAirDryBulbTemperature(double designInletAirDryBulbTemperature) { | |
| 982 | 4 | return setDouble(OS_CoolingTower_TwoSpeedFields::DesignInletAirDryBulbTemperature, designInletAirDryBulbTemperature); | |
| 983 | } | ||
| 984 | |||
| 985 | 1 | double CoolingTowerTwoSpeed_Impl::designInletAirWetBulbTemperature() const { | |
| 986 |
1/1✓ Branch 1 taken 1 time.
|
1 | auto value = getDouble(OS_CoolingTower_TwoSpeedFields::DesignInletAirWetBulbTemperature, true); |
| 987 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 988 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 989 | } | ||
| 990 | |||
| 991 | 4 | bool CoolingTowerTwoSpeed_Impl::setDesignInletAirWetBulbTemperature(double designInletAirWetBulbTemperature) { | |
| 992 | 4 | return setDouble(OS_CoolingTower_TwoSpeedFields::DesignInletAirWetBulbTemperature, designInletAirWetBulbTemperature); | |
| 993 | } | ||
| 994 | |||
| 995 | 1 | boost::optional<double> CoolingTowerTwoSpeed_Impl::designApproachTemperature() const { | |
| 996 | 1 | return getDouble(OS_CoolingTower_TwoSpeedFields::DesignApproachTemperature, true); | |
| 997 | } | ||
| 998 | |||
| 999 | 1 | bool CoolingTowerTwoSpeed_Impl::isDesignApproachTemperatureAutosized() const { | |
| 1000 | 1 | bool result = false; | |
| 1001 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<std::string> value = getString(OS_CoolingTower_TwoSpeedFields::DesignApproachTemperature, true); |
| 1002 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (value) { |
| 1003 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
2 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 1004 | } | ||
| 1005 | 1 | return result; | |
| 1006 | 1 | } | |
| 1007 | |||
| 1008 | ✗ | bool CoolingTowerTwoSpeed_Impl::setDesignApproachTemperature(double designApproachTemperature) { | |
| 1009 | ✗ | return setDouble(OS_CoolingTower_TwoSpeedFields::DesignApproachTemperature, designApproachTemperature); | |
| 1010 | } | ||
| 1011 | |||
| 1012 | 4 | void CoolingTowerTwoSpeed_Impl::autosizeDesignApproachTemperature() { | |
| 1013 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | setString(OS_CoolingTower_TwoSpeedFields::DesignApproachTemperature, "autosize"); |
| 1014 | 4 | } | |
| 1015 | |||
| 1016 | 1 | boost::optional<double> CoolingTowerTwoSpeed_Impl::designRangeTemperature() const { | |
| 1017 | 1 | return getDouble(OS_CoolingTower_TwoSpeedFields::DesignRangeTemperature, true); | |
| 1018 | } | ||
| 1019 | |||
| 1020 | 1 | bool CoolingTowerTwoSpeed_Impl::isDesignRangeTemperatureAutosized() const { | |
| 1021 | 1 | bool result = false; | |
| 1022 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<std::string> value = getString(OS_CoolingTower_TwoSpeedFields::DesignRangeTemperature, true); |
| 1023 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (value) { |
| 1024 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
2 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 1025 | } | ||
| 1026 | 1 | return result; | |
| 1027 | 1 | } | |
| 1028 | |||
| 1029 | ✗ | bool CoolingTowerTwoSpeed_Impl::setDesignRangeTemperature(double designRangeTemperature) { | |
| 1030 | ✗ | return setDouble(OS_CoolingTower_TwoSpeedFields::DesignRangeTemperature, designRangeTemperature); | |
| 1031 | } | ||
| 1032 | |||
| 1033 | 4 | void CoolingTowerTwoSpeed_Impl::autosizeDesignRangeTemperature() { | |
| 1034 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | setString(OS_CoolingTower_TwoSpeedFields::DesignRangeTemperature, "autosize"); |
| 1035 | 4 | } | |
| 1036 | |||
| 1037 | 1 | std::string CoolingTowerTwoSpeed_Impl::endUseSubcategory() const { | |
| 1038 |
1/1✓ Branch 1 taken 1 time.
|
1 | auto value = getString(OS_CoolingTower_TwoSpeedFields::EndUseSubcategory, true); |
| 1039 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 1040 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | return value.get(); |
| 1041 | 1 | } | |
| 1042 | |||
| 1043 | 4 | bool CoolingTowerTwoSpeed_Impl::setEndUseSubcategory(const std::string& endUseSubcategory) { | |
| 1044 | 4 | return setString(OS_CoolingTower_TwoSpeedFields::EndUseSubcategory, endUseSubcategory); | |
| 1045 | } | ||
| 1046 | |||
| 1047 | ✗ | boost::optional<double> CoolingTowerTwoSpeed_Impl::autosizedDesignWaterFlowRate() const { | |
| 1048 | ✗ | return getAutosizedValue("Design Water Flow Rate", "m3/s"); | |
| 1049 | } | ||
| 1050 | |||
| 1051 | ✗ | boost::optional<double> CoolingTowerTwoSpeed_Impl::autosizedHighFanSpeedAirFlowRate() const { | |
| 1052 | ✗ | return getAutosizedValue("Air Flow Rate at High Fan Speed", "m3/s"); | |
| 1053 | } | ||
| 1054 | |||
| 1055 | ✗ | boost::optional<double> CoolingTowerTwoSpeed_Impl::autosizedHighFanSpeedFanPower() const { | |
| 1056 | ✗ | return getAutosizedValue("Fan Power at High Fan Speed", "W"); | |
| 1057 | } | ||
| 1058 | |||
| 1059 | ✗ | boost::optional<double> CoolingTowerTwoSpeed_Impl::autosizedHighFanSpeedUFactorTimesAreaValue() const { | |
| 1060 | ✗ | return getAutosizedValue("U-Factor Times Area Value at High Fan Speed", "W/C"); | |
| 1061 | } | ||
| 1062 | |||
| 1063 | ✗ | boost::optional<double> CoolingTowerTwoSpeed_Impl::autosizedLowFanSpeedAirFlowRate() const { | |
| 1064 | ✗ | return getAutosizedValue("Low Fan Speed Air Flow Rate", "m3/s"); | |
| 1065 | } | ||
| 1066 | |||
| 1067 | ✗ | boost::optional<double> CoolingTowerTwoSpeed_Impl::autosizedLowFanSpeedFanPower() const { | |
| 1068 | ✗ | return getAutosizedValue("Fan Power at Low Fan Speed", "W"); | |
| 1069 | } | ||
| 1070 | |||
| 1071 | ✗ | boost::optional<double> CoolingTowerTwoSpeed_Impl::autosizedLowFanSpeedUFactorTimesAreaValue() const { | |
| 1072 | ✗ | return getAutosizedValue("U-Factor Times Area Value at Low Fan Speed", "W/K"); | |
| 1073 | } | ||
| 1074 | |||
| 1075 | ✗ | boost::optional<double> CoolingTowerTwoSpeed_Impl::autosizedFreeConvectionRegimeAirFlowRate() const { | |
| 1076 | ✗ | return getAutosizedValue("Free Convection Regime Air Flow Rate", "m3/s"); | |
| 1077 | } | ||
| 1078 | |||
| 1079 | ✗ | boost::optional<double> CoolingTowerTwoSpeed_Impl::autosizedFreeConvectionRegimeUFactorTimesAreaValue() const { | |
| 1080 | ✗ | return getAutosizedValue("Free Convection U-Factor Times Area Value", "W/K"); | |
| 1081 | } | ||
| 1082 | |||
| 1083 | ✗ | boost::optional<double> CoolingTowerTwoSpeed_Impl::autosizedLowSpeedNominalCapacity() const { | |
| 1084 | ✗ | return getAutosizedValue("Low Speed Nominal Capacity", "W"); | |
| 1085 | } | ||
| 1086 | |||
| 1087 | ✗ | boost::optional<double> CoolingTowerTwoSpeed_Impl::autosizedFreeConvectionNominalCapacity() const { | |
| 1088 | ✗ | return getAutosizedValue("Free Convection Nominal Capacity", "W"); | |
| 1089 | } | ||
| 1090 | |||
| 1091 | ✗ | boost::optional<double> CoolingTowerTwoSpeed_Impl::autosizedDesignApproachTemperature() const { | |
| 1092 | ✗ | boost::optional<double> result; | |
| 1093 | |||
| 1094 | // Calculate Approach as design wet bulb temp - EWT (from SizingPlant) | ||
| 1095 | ✗ | if (boost::optional<PlantLoop> pl = this->plantLoop()) { | |
| 1096 | ✗ | SizingPlant sz = pl->sizingPlant(); | |
| 1097 | ✗ | double EWT = sz.designLoopExitTemperature() - sz.loopDesignTemperatureDifference(); | |
| 1098 | ✗ | result = EWT - designInletAirWetBulbTemperature(); | |
| 1099 | ✗ | } | |
| 1100 | ✗ | return result; | |
| 1101 | } | ||
| 1102 | |||
| 1103 | ✗ | boost::optional<double> CoolingTowerTwoSpeed_Impl::autosizedDesignRangeTemperature() const { | |
| 1104 | ✗ | boost::optional<double> result; | |
| 1105 | |||
| 1106 | // Return the SizingPlant DeltaT | ||
| 1107 | ✗ | if (boost::optional<PlantLoop> pl = this->plantLoop()) { | |
| 1108 | ✗ | SizingPlant sz = pl->sizingPlant(); | |
| 1109 | ✗ | result = sz.loopDesignTemperatureDifference(); | |
| 1110 | ✗ | } | |
| 1111 | ✗ | return result; | |
| 1112 | } | ||
| 1113 | |||
| 1114 | ✗ | void CoolingTowerTwoSpeed_Impl::autosize() { | |
| 1115 | ✗ | autosizeDesignWaterFlowRate(); | |
| 1116 | ✗ | autosizeHighFanSpeedAirFlowRate(); | |
| 1117 | ✗ | autosizeHighFanSpeedFanPower(); | |
| 1118 | ✗ | autosizeHighFanSpeedUFactorTimesAreaValue(); | |
| 1119 | ✗ | autosizeLowFanSpeedAirFlowRate(); | |
| 1120 | ✗ | autosizeLowFanSpeedFanPower(); | |
| 1121 | ✗ | autosizeLowFanSpeedUFactorTimesAreaValue(); | |
| 1122 | ✗ | autosizeFreeConvectionRegimeAirFlowRate(); | |
| 1123 | ✗ | autosizeFreeConvectionRegimeUFactorTimesAreaValue(); | |
| 1124 | ✗ | autosizeLowSpeedNominalCapacity(); | |
| 1125 | ✗ | autosizeFreeConvectionNominalCapacity(); | |
| 1126 | ✗ | autosizeDesignRangeTemperature(); | |
| 1127 | ✗ | autosizeDesignApproachTemperature(); | |
| 1128 | ✗ | } | |
| 1129 | |||
| 1130 | ✗ | void CoolingTowerTwoSpeed_Impl::applySizingValues() { | |
| 1131 | ✗ | boost::optional<double> val; | |
| 1132 | ✗ | val = autosizedDesignWaterFlowRate(); | |
| 1133 | ✗ | if (val) { | |
| 1134 | ✗ | setDesignWaterFlowRate(val.get()); | |
| 1135 | } | ||
| 1136 | |||
| 1137 | ✗ | val = autosizedHighFanSpeedAirFlowRate(); | |
| 1138 | ✗ | if (val) { | |
| 1139 | ✗ | setHighFanSpeedAirFlowRate(val.get()); | |
| 1140 | } | ||
| 1141 | |||
| 1142 | ✗ | val = autosizedHighFanSpeedFanPower(); | |
| 1143 | ✗ | if (val) { | |
| 1144 | ✗ | setHighFanSpeedFanPower(val.get()); | |
| 1145 | } | ||
| 1146 | |||
| 1147 | ✗ | val = autosizedHighFanSpeedUFactorTimesAreaValue(); | |
| 1148 | ✗ | if (val) { | |
| 1149 | ✗ | setHighFanSpeedUFactorTimesAreaValue(val.get()); | |
| 1150 | } | ||
| 1151 | |||
| 1152 | ✗ | val = autosizedLowFanSpeedAirFlowRate(); | |
| 1153 | ✗ | if (val) { | |
| 1154 | ✗ | setLowFanSpeedAirFlowRate(val.get()); | |
| 1155 | } | ||
| 1156 | |||
| 1157 | ✗ | val = autosizedLowFanSpeedFanPower(); | |
| 1158 | ✗ | if (val) { | |
| 1159 | ✗ | setLowFanSpeedFanPower(val.get()); | |
| 1160 | } | ||
| 1161 | |||
| 1162 | ✗ | val = autosizedLowFanSpeedUFactorTimesAreaValue(); | |
| 1163 | ✗ | if (val) { | |
| 1164 | ✗ | setLowFanSpeedUFactorTimesAreaValue(val.get()); | |
| 1165 | } | ||
| 1166 | |||
| 1167 | ✗ | val = autosizedFreeConvectionRegimeAirFlowRate(); | |
| 1168 | ✗ | if (val) { | |
| 1169 | ✗ | setFreeConvectionRegimeAirFlowRate(val.get()); | |
| 1170 | } | ||
| 1171 | |||
| 1172 | ✗ | val = autosizedFreeConvectionRegimeUFactorTimesAreaValue(); | |
| 1173 | ✗ | if (val) { | |
| 1174 | ✗ | setFreeConvectionRegimeUFactorTimesAreaValue(val.get()); | |
| 1175 | } | ||
| 1176 | |||
| 1177 | ✗ | val = autosizedLowSpeedNominalCapacity(); | |
| 1178 | ✗ | if (val) { | |
| 1179 | ✗ | setLowSpeedNominalCapacity(val.get()); | |
| 1180 | } | ||
| 1181 | |||
| 1182 | ✗ | val = autosizedFreeConvectionNominalCapacity(); | |
| 1183 | ✗ | if (val) { | |
| 1184 | ✗ | setFreeConvectionNominalCapacity(val.get()); | |
| 1185 | } | ||
| 1186 | |||
| 1187 | ✗ | val = autosizedDesignApproachTemperature(); | |
| 1188 | ✗ | if (val) { | |
| 1189 | ✗ | setDesignApproachTemperature(val.get()); | |
| 1190 | } | ||
| 1191 | |||
| 1192 | ✗ | val = autosizedDesignRangeTemperature(); | |
| 1193 | ✗ | if (val) { | |
| 1194 | ✗ | setDesignRangeTemperature(val.get()); | |
| 1195 | } | ||
| 1196 | ✗ | } | |
| 1197 | |||
| 1198 | 1 | ComponentType CoolingTowerTwoSpeed_Impl::componentType() const { | |
| 1199 |
1/1✓ Branch 1 taken 1 time.
|
1 | return ComponentType::Cooling; |
| 1200 | } | ||
| 1201 | |||
| 1202 | ✗ | std::vector<FuelType> CoolingTowerTwoSpeed_Impl::coolingFuelTypes() const { | |
| 1203 | ✗ | return {FuelType::Electricity}; | |
| 1204 | } | ||
| 1205 | |||
| 1206 | ✗ | std::vector<FuelType> CoolingTowerTwoSpeed_Impl::heatingFuelTypes() const { | |
| 1207 | ✗ | return {}; | |
| 1208 | } | ||
| 1209 | |||
| 1210 | ✗ | std::vector<AppGFuelType> CoolingTowerTwoSpeed_Impl::appGHeatingFuelTypes() const { | |
| 1211 | ✗ | return {}; | |
| 1212 | } | ||
| 1213 | |||
| 1214 | } // namespace detail | ||
| 1215 | |||
| 1216 | 4 | CoolingTowerTwoSpeed::CoolingTowerTwoSpeed(const Model& model) : StraightComponent(CoolingTowerTwoSpeed::iddObjectType(), model) { | |
| 1217 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 4 times.
✗ Branch 5 not taken.
|
4 | OS_ASSERT(getImpl<detail::CoolingTowerTwoSpeed_Impl>()); |
| 1218 | |||
| 1219 |
1/1✓ Branch 1 taken 4 times.
|
4 | autosizeDesignWaterFlowRate(); |
| 1220 |
1/1✓ Branch 1 taken 4 times.
|
4 | autosizeHighFanSpeedAirFlowRate(); |
| 1221 |
1/1✓ Branch 1 taken 4 times.
|
4 | autosizeHighFanSpeedFanPower(); |
| 1222 |
1/1✓ Branch 1 taken 4 times.
|
4 | autosizeHighFanSpeedUFactorTimesAreaValue(); |
| 1223 |
1/1✓ Branch 1 taken 4 times.
|
4 | autosizeLowFanSpeedAirFlowRate(); |
| 1224 |
1/1✓ Branch 1 taken 4 times.
|
4 | autosizeLowFanSpeedFanPower(); |
| 1225 |
1/1✓ Branch 1 taken 4 times.
|
4 | autosizeLowFanSpeedUFactorTimesAreaValue(); |
| 1226 |
1/1✓ Branch 1 taken 4 times.
|
4 | setSizingFactor(1.0); |
| 1227 |
1/1✓ Branch 1 taken 4 times.
|
4 | setDesignInletAirDryBulbTemperature(35.0); |
| 1228 |
1/1✓ Branch 1 taken 4 times.
|
4 | setDesignInletAirWetBulbTemperature(25.6); |
| 1229 |
1/1✓ Branch 1 taken 4 times.
|
4 | autosizeDesignApproachTemperature(); |
| 1230 |
1/1✓ Branch 1 taken 4 times.
|
4 | autosizeDesignRangeTemperature(); |
| 1231 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | setEndUseSubcategory("General"); |
| 1232 | 4 | } | |
| 1233 | |||
| 1234 | 7736 | IddObjectType CoolingTowerTwoSpeed::iddObjectType() { | |
| 1235 |
1/1✓ Branch 1 taken 7736 times.
|
7736 | return {IddObjectType::OS_CoolingTower_TwoSpeed}; |
| 1236 | } | ||
| 1237 | |||
| 1238 | ✗ | std::vector<std::string> CoolingTowerTwoSpeed::performanceInputMethodValues() { | |
| 1239 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_CoolingTower_TwoSpeedFields::PerformanceInputMethod); | |
| 1240 | } | ||
| 1241 | |||
| 1242 | ✗ | std::vector<std::string> CoolingTowerTwoSpeed::evaporationLossModeValues() { | |
| 1243 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_CoolingTower_TwoSpeedFields::EvaporationLossMode); | |
| 1244 | } | ||
| 1245 | |||
| 1246 | ✗ | std::vector<std::string> CoolingTowerTwoSpeed::blowdownCalculationModeValues() { | |
| 1247 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_CoolingTower_TwoSpeedFields::BlowdownCalculationMode); | |
| 1248 | } | ||
| 1249 | |||
| 1250 | ✗ | std::vector<std::string> CoolingTowerTwoSpeed::cellControlValues() { | |
| 1251 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_CoolingTower_TwoSpeedFields::CellControl); | |
| 1252 | } | ||
| 1253 | |||
| 1254 | 1 | boost::optional<double> CoolingTowerTwoSpeed::designWaterFlowRate() const { | |
| 1255 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->designWaterFlowRate(); |
| 1256 | } | ||
| 1257 | |||
| 1258 | 1 | bool CoolingTowerTwoSpeed::isDesignWaterFlowRateAutosized() const { | |
| 1259 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isDesignWaterFlowRateAutosized(); |
| 1260 | } | ||
| 1261 | |||
| 1262 | 1 | boost::optional<double> CoolingTowerTwoSpeed::highFanSpeedAirFlowRate() const { | |
| 1263 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->highFanSpeedAirFlowRate(); |
| 1264 | } | ||
| 1265 | |||
| 1266 | 1 | bool CoolingTowerTwoSpeed::isHighFanSpeedAirFlowRateAutosized() const { | |
| 1267 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isHighFanSpeedAirFlowRateAutosized(); |
| 1268 | } | ||
| 1269 | |||
| 1270 | 1 | boost::optional<double> CoolingTowerTwoSpeed::highFanSpeedFanPower() const { | |
| 1271 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->highFanSpeedFanPower(); |
| 1272 | } | ||
| 1273 | |||
| 1274 | 1 | bool CoolingTowerTwoSpeed::isHighFanSpeedFanPowerAutosized() const { | |
| 1275 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isHighFanSpeedFanPowerAutosized(); |
| 1276 | } | ||
| 1277 | |||
| 1278 | 1 | boost::optional<double> CoolingTowerTwoSpeed::highFanSpeedUFactorTimesAreaValue() const { | |
| 1279 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->highFanSpeedUFactorTimesAreaValue(); |
| 1280 | } | ||
| 1281 | |||
| 1282 | 1 | bool CoolingTowerTwoSpeed::isHighFanSpeedUFactorTimesAreaValueAutosized() const { | |
| 1283 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isHighFanSpeedUFactorTimesAreaValueAutosized(); |
| 1284 | } | ||
| 1285 | |||
| 1286 | 1 | boost::optional<double> CoolingTowerTwoSpeed::lowFanSpeedAirFlowRate() const { | |
| 1287 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->lowFanSpeedAirFlowRate(); |
| 1288 | } | ||
| 1289 | |||
| 1290 | 1 | bool CoolingTowerTwoSpeed::isLowFanSpeedAirFlowRateAutosized() const { | |
| 1291 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isLowFanSpeedAirFlowRateAutosized(); |
| 1292 | } | ||
| 1293 | |||
| 1294 | 1 | double CoolingTowerTwoSpeed::lowFanSpeedAirFlowRateSizingFactor() const { | |
| 1295 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->lowFanSpeedAirFlowRateSizingFactor(); |
| 1296 | } | ||
| 1297 | |||
| 1298 | 1 | bool CoolingTowerTwoSpeed::isLowFanSpeedAirFlowRateSizingFactorDefaulted() const { | |
| 1299 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isLowFanSpeedAirFlowRateSizingFactorDefaulted(); |
| 1300 | } | ||
| 1301 | |||
| 1302 | 1 | boost::optional<double> CoolingTowerTwoSpeed::lowFanSpeedFanPower() const { | |
| 1303 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->lowFanSpeedFanPower(); |
| 1304 | } | ||
| 1305 | |||
| 1306 | 1 | bool CoolingTowerTwoSpeed::isLowFanSpeedFanPowerAutosized() const { | |
| 1307 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isLowFanSpeedFanPowerAutosized(); |
| 1308 | } | ||
| 1309 | |||
| 1310 | 1 | double CoolingTowerTwoSpeed::lowFanSpeedFanPowerSizingFactor() const { | |
| 1311 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->lowFanSpeedFanPowerSizingFactor(); |
| 1312 | } | ||
| 1313 | |||
| 1314 | 1 | bool CoolingTowerTwoSpeed::isLowFanSpeedFanPowerSizingFactorDefaulted() const { | |
| 1315 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isLowFanSpeedFanPowerSizingFactorDefaulted(); |
| 1316 | } | ||
| 1317 | |||
| 1318 | 1 | boost::optional<double> CoolingTowerTwoSpeed::lowFanSpeedUFactorTimesAreaValue() const { | |
| 1319 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->lowFanSpeedUFactorTimesAreaValue(); |
| 1320 | } | ||
| 1321 | |||
| 1322 | 1 | bool CoolingTowerTwoSpeed::isLowFanSpeedUFactorTimesAreaValueAutosized() const { | |
| 1323 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isLowFanSpeedUFactorTimesAreaValueAutosized(); |
| 1324 | } | ||
| 1325 | |||
| 1326 | 1 | double CoolingTowerTwoSpeed::lowFanSpeedUFactorTimesAreaSizingFactor() const { | |
| 1327 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->lowFanSpeedUFactorTimesAreaSizingFactor(); |
| 1328 | } | ||
| 1329 | |||
| 1330 | 1 | bool CoolingTowerTwoSpeed::isLowFanSpeedUFactorTimesAreaSizingFactorDefaulted() const { | |
| 1331 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isLowFanSpeedUFactorTimesAreaSizingFactorDefaulted(); |
| 1332 | } | ||
| 1333 | |||
| 1334 | 2 | boost::optional<double> CoolingTowerTwoSpeed::freeConvectionRegimeAirFlowRate() const { | |
| 1335 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->freeConvectionRegimeAirFlowRate(); |
| 1336 | } | ||
| 1337 | |||
| 1338 | 1 | bool CoolingTowerTwoSpeed::isFreeConvectionRegimeAirFlowRateDefaulted() const { | |
| 1339 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isFreeConvectionRegimeAirFlowRateDefaulted(); |
| 1340 | } | ||
| 1341 | |||
| 1342 | 1 | bool CoolingTowerTwoSpeed::isFreeConvectionRegimeAirFlowRateAutosized() const { | |
| 1343 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isFreeConvectionRegimeAirFlowRateAutosized(); |
| 1344 | } | ||
| 1345 | |||
| 1346 | 1 | double CoolingTowerTwoSpeed::freeConvectionRegimeAirFlowRateSizingFactor() const { | |
| 1347 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->freeConvectionRegimeAirFlowRateSizingFactor(); |
| 1348 | } | ||
| 1349 | |||
| 1350 | 1 | bool CoolingTowerTwoSpeed::isFreeConvectionRegimeAirFlowRateSizingFactorDefaulted() const { | |
| 1351 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isFreeConvectionRegimeAirFlowRateSizingFactorDefaulted(); |
| 1352 | } | ||
| 1353 | |||
| 1354 | 2 | boost::optional<double> CoolingTowerTwoSpeed::freeConvectionRegimeUFactorTimesAreaValue() const { | |
| 1355 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->freeConvectionRegimeUFactorTimesAreaValue(); |
| 1356 | } | ||
| 1357 | |||
| 1358 | 1 | bool CoolingTowerTwoSpeed::isFreeConvectionRegimeUFactorTimesAreaValueDefaulted() const { | |
| 1359 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isFreeConvectionRegimeUFactorTimesAreaValueDefaulted(); |
| 1360 | } | ||
| 1361 | |||
| 1362 | 1 | bool CoolingTowerTwoSpeed::isFreeConvectionRegimeUFactorTimesAreaValueAutosized() const { | |
| 1363 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isFreeConvectionRegimeUFactorTimesAreaValueAutosized(); |
| 1364 | } | ||
| 1365 | |||
| 1366 | 1 | double CoolingTowerTwoSpeed::freeConvectionUFactorTimesAreaValueSizingFactor() const { | |
| 1367 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->freeConvectionUFactorTimesAreaValueSizingFactor(); |
| 1368 | } | ||
| 1369 | |||
| 1370 | 1 | bool CoolingTowerTwoSpeed::isFreeConvectionUFactorTimesAreaValueSizingFactorDefaulted() const { | |
| 1371 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isFreeConvectionUFactorTimesAreaValueSizingFactorDefaulted(); |
| 1372 | } | ||
| 1373 | |||
| 1374 | 1 | std::string CoolingTowerTwoSpeed::performanceInputMethod() const { | |
| 1375 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->performanceInputMethod(); |
| 1376 | } | ||
| 1377 | |||
| 1378 | 1 | bool CoolingTowerTwoSpeed::isPerformanceInputMethodDefaulted() const { | |
| 1379 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isPerformanceInputMethodDefaulted(); |
| 1380 | } | ||
| 1381 | |||
| 1382 | 1 | double CoolingTowerTwoSpeed::heatRejectionCapacityandNominalCapacitySizingRatio() const { | |
| 1383 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->heatRejectionCapacityandNominalCapacitySizingRatio(); |
| 1384 | } | ||
| 1385 | |||
| 1386 | 1 | bool CoolingTowerTwoSpeed::isHeatRejectionCapacityandNominalCapacitySizingRatioDefaulted() const { | |
| 1387 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isHeatRejectionCapacityandNominalCapacitySizingRatioDefaulted(); |
| 1388 | } | ||
| 1389 | |||
| 1390 | 1 | boost::optional<double> CoolingTowerTwoSpeed::highSpeedNominalCapacity() const { | |
| 1391 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->highSpeedNominalCapacity(); |
| 1392 | } | ||
| 1393 | |||
| 1394 | 1 | boost::optional<double> CoolingTowerTwoSpeed::lowSpeedNominalCapacity() const { | |
| 1395 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->lowSpeedNominalCapacity(); |
| 1396 | } | ||
| 1397 | |||
| 1398 | 1 | bool CoolingTowerTwoSpeed::isLowSpeedNominalCapacityAutosized() const { | |
| 1399 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isLowSpeedNominalCapacityAutosized(); |
| 1400 | } | ||
| 1401 | |||
| 1402 | 1 | double CoolingTowerTwoSpeed::lowSpeedNominalCapacitySizingFactor() const { | |
| 1403 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->lowSpeedNominalCapacitySizingFactor(); |
| 1404 | } | ||
| 1405 | |||
| 1406 | 1 | bool CoolingTowerTwoSpeed::isLowSpeedNominalCapacitySizingFactorDefaulted() const { | |
| 1407 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isLowSpeedNominalCapacitySizingFactorDefaulted(); |
| 1408 | } | ||
| 1409 | |||
| 1410 | 1 | boost::optional<double> CoolingTowerTwoSpeed::freeConvectionNominalCapacity() const { | |
| 1411 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->freeConvectionNominalCapacity(); |
| 1412 | } | ||
| 1413 | |||
| 1414 | 1 | bool CoolingTowerTwoSpeed::isFreeConvectionNominalCapacityAutosized() const { | |
| 1415 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isFreeConvectionNominalCapacityAutosized(); |
| 1416 | } | ||
| 1417 | |||
| 1418 | 1 | double CoolingTowerTwoSpeed::freeConvectionNominalCapacitySizingFactor() const { | |
| 1419 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->freeConvectionNominalCapacitySizingFactor(); |
| 1420 | } | ||
| 1421 | |||
| 1422 | 1 | bool CoolingTowerTwoSpeed::isFreeConvectionNominalCapacitySizingFactorDefaulted() const { | |
| 1423 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isFreeConvectionNominalCapacitySizingFactorDefaulted(); |
| 1424 | } | ||
| 1425 | |||
| 1426 | 1 | double CoolingTowerTwoSpeed::basinHeaterCapacity() const { | |
| 1427 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->basinHeaterCapacity(); |
| 1428 | } | ||
| 1429 | |||
| 1430 | 1 | bool CoolingTowerTwoSpeed::isBasinHeaterCapacityDefaulted() const { | |
| 1431 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isBasinHeaterCapacityDefaulted(); |
| 1432 | } | ||
| 1433 | |||
| 1434 | 1 | double CoolingTowerTwoSpeed::basinHeaterSetpointTemperature() const { | |
| 1435 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->basinHeaterSetpointTemperature(); |
| 1436 | } | ||
| 1437 | |||
| 1438 | 1 | bool CoolingTowerTwoSpeed::isBasinHeaterSetpointTemperatureDefaulted() const { | |
| 1439 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isBasinHeaterSetpointTemperatureDefaulted(); |
| 1440 | } | ||
| 1441 | |||
| 1442 | 1 | boost::optional<Schedule> CoolingTowerTwoSpeed::basinHeaterOperatingSchedule() const { | |
| 1443 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->basinHeaterOperatingSchedule(); |
| 1444 | } | ||
| 1445 | |||
| 1446 | 1 | std::string CoolingTowerTwoSpeed::evaporationLossMode() const { | |
| 1447 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->evaporationLossMode(); |
| 1448 | } | ||
| 1449 | |||
| 1450 | 1 | bool CoolingTowerTwoSpeed::isEvaporationLossModeDefaulted() const { | |
| 1451 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isEvaporationLossModeDefaulted(); |
| 1452 | } | ||
| 1453 | |||
| 1454 | 1 | double CoolingTowerTwoSpeed::evaporationLossFactor() const { | |
| 1455 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->evaporationLossFactor(); |
| 1456 | } | ||
| 1457 | |||
| 1458 | 1 | bool CoolingTowerTwoSpeed::isEvaporationLossFactorDefaulted() const { | |
| 1459 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isEvaporationLossFactorDefaulted(); |
| 1460 | } | ||
| 1461 | |||
| 1462 | 1 | double CoolingTowerTwoSpeed::driftLossPercent() const { | |
| 1463 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->driftLossPercent(); |
| 1464 | } | ||
| 1465 | |||
| 1466 | 1 | bool CoolingTowerTwoSpeed::isDriftLossPercentDefaulted() const { | |
| 1467 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isDriftLossPercentDefaulted(); |
| 1468 | } | ||
| 1469 | |||
| 1470 | 1 | std::string CoolingTowerTwoSpeed::blowdownCalculationMode() const { | |
| 1471 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->blowdownCalculationMode(); |
| 1472 | } | ||
| 1473 | |||
| 1474 | 1 | bool CoolingTowerTwoSpeed::isBlowdownCalculationModeDefaulted() const { | |
| 1475 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isBlowdownCalculationModeDefaulted(); |
| 1476 | } | ||
| 1477 | |||
| 1478 | 1 | double CoolingTowerTwoSpeed::blowdownConcentrationRatio() const { | |
| 1479 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->blowdownConcentrationRatio(); |
| 1480 | } | ||
| 1481 | |||
| 1482 | 1 | bool CoolingTowerTwoSpeed::isBlowdownConcentrationRatioDefaulted() const { | |
| 1483 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isBlowdownConcentrationRatioDefaulted(); |
| 1484 | } | ||
| 1485 | |||
| 1486 | 1 | boost::optional<Schedule> CoolingTowerTwoSpeed::blowdownMakeupWaterUsageSchedule() const { | |
| 1487 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->blowdownMakeupWaterUsageSchedule(); |
| 1488 | } | ||
| 1489 | |||
| 1490 | // boost::optional<WaterStorageTank> CoolingTowerTwoSpeed::supplyWaterStorageTank() const { | ||
| 1491 | // return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->supplyWaterStorageTank(); | ||
| 1492 | // } | ||
| 1493 | |||
| 1494 | 1 | int CoolingTowerTwoSpeed::numberofCells() const { | |
| 1495 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->numberofCells(); |
| 1496 | } | ||
| 1497 | |||
| 1498 | 1 | bool CoolingTowerTwoSpeed::isNumberofCellsDefaulted() const { | |
| 1499 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isNumberofCellsDefaulted(); |
| 1500 | } | ||
| 1501 | |||
| 1502 | 1 | std::string CoolingTowerTwoSpeed::cellControl() const { | |
| 1503 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->cellControl(); |
| 1504 | } | ||
| 1505 | |||
| 1506 | 1 | bool CoolingTowerTwoSpeed::isCellControlDefaulted() const { | |
| 1507 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isCellControlDefaulted(); |
| 1508 | } | ||
| 1509 | |||
| 1510 | 1 | double CoolingTowerTwoSpeed::cellMinimumWaterFlowRateFraction() const { | |
| 1511 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->cellMinimumWaterFlowRateFraction(); |
| 1512 | } | ||
| 1513 | |||
| 1514 | 1 | bool CoolingTowerTwoSpeed::isCellMinimumWaterFlowRateFractionDefaulted() const { | |
| 1515 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isCellMinimumWaterFlowRateFractionDefaulted(); |
| 1516 | } | ||
| 1517 | |||
| 1518 | 1 | double CoolingTowerTwoSpeed::cellMaximumWaterFlowRateFraction() const { | |
| 1519 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->cellMaximumWaterFlowRateFraction(); |
| 1520 | } | ||
| 1521 | |||
| 1522 | 1 | bool CoolingTowerTwoSpeed::isCellMaximumWaterFlowRateFractionDefaulted() const { | |
| 1523 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isCellMaximumWaterFlowRateFractionDefaulted(); |
| 1524 | } | ||
| 1525 | |||
| 1526 | 1 | double CoolingTowerTwoSpeed::sizingFactor() const { | |
| 1527 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->sizingFactor(); |
| 1528 | } | ||
| 1529 | |||
| 1530 | ✗ | bool CoolingTowerTwoSpeed::isSizingFactorDefaulted() const { | |
| 1531 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isSizingFactorDefaulted(); | |
| 1532 | } | ||
| 1533 | |||
| 1534 | ✗ | bool CoolingTowerTwoSpeed::setDesignWaterFlowRate(double designWaterFlowRate) { | |
| 1535 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setDesignWaterFlowRate(designWaterFlowRate); | |
| 1536 | } | ||
| 1537 | |||
| 1538 | ✗ | void CoolingTowerTwoSpeed::resetDesignWaterFlowRate() { | |
| 1539 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetDesignWaterFlowRate(); | |
| 1540 | ✗ | } | |
| 1541 | |||
| 1542 | 4 | void CoolingTowerTwoSpeed::autosizeDesignWaterFlowRate() { | |
| 1543 |
1/1✓ Branch 3 taken 4 times.
|
4 | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->autosizeDesignWaterFlowRate(); |
| 1544 | 4 | } | |
| 1545 | |||
| 1546 | ✗ | bool CoolingTowerTwoSpeed::setHighFanSpeedAirFlowRate(double highFanSpeedAirFlowRate) { | |
| 1547 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setHighFanSpeedAirFlowRate(highFanSpeedAirFlowRate); | |
| 1548 | } | ||
| 1549 | |||
| 1550 | 4 | void CoolingTowerTwoSpeed::autosizeHighFanSpeedAirFlowRate() { | |
| 1551 |
1/1✓ Branch 3 taken 4 times.
|
4 | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->autosizeHighFanSpeedAirFlowRate(); |
| 1552 | 4 | } | |
| 1553 | |||
| 1554 | ✗ | bool CoolingTowerTwoSpeed::setHighFanSpeedFanPower(double highFanSpeedFanPower) { | |
| 1555 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setHighFanSpeedFanPower(highFanSpeedFanPower); | |
| 1556 | } | ||
| 1557 | |||
| 1558 | 4 | void CoolingTowerTwoSpeed::autosizeHighFanSpeedFanPower() { | |
| 1559 |
1/1✓ Branch 3 taken 4 times.
|
4 | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->autosizeHighFanSpeedFanPower(); |
| 1560 | 4 | } | |
| 1561 | |||
| 1562 | ✗ | bool CoolingTowerTwoSpeed::setHighFanSpeedUFactorTimesAreaValue(double highFanSpeedUFactorTimesAreaValue) { | |
| 1563 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setHighFanSpeedUFactorTimesAreaValue(highFanSpeedUFactorTimesAreaValue); | |
| 1564 | } | ||
| 1565 | |||
| 1566 | ✗ | void CoolingTowerTwoSpeed::resetHighFanSpeedUFactorTimesAreaValue() { | |
| 1567 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetHighFanSpeedUFactorTimesAreaValue(); | |
| 1568 | ✗ | } | |
| 1569 | |||
| 1570 | 4 | void CoolingTowerTwoSpeed::autosizeHighFanSpeedUFactorTimesAreaValue() { | |
| 1571 |
1/1✓ Branch 3 taken 4 times.
|
4 | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->autosizeHighFanSpeedUFactorTimesAreaValue(); |
| 1572 | 4 | } | |
| 1573 | |||
| 1574 | ✗ | bool CoolingTowerTwoSpeed::setLowFanSpeedAirFlowRate(double lowFanSpeedAirFlowRate) { | |
| 1575 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setLowFanSpeedAirFlowRate(lowFanSpeedAirFlowRate); | |
| 1576 | } | ||
| 1577 | |||
| 1578 | 4 | void CoolingTowerTwoSpeed::autosizeLowFanSpeedAirFlowRate() { | |
| 1579 |
1/1✓ Branch 3 taken 4 times.
|
4 | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->autosizeLowFanSpeedAirFlowRate(); |
| 1580 | 4 | } | |
| 1581 | |||
| 1582 | ✗ | bool CoolingTowerTwoSpeed::setLowFanSpeedAirFlowRateSizingFactor(double lowFanSpeedAirFlowRateSizingFactor) { | |
| 1583 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setLowFanSpeedAirFlowRateSizingFactor(lowFanSpeedAirFlowRateSizingFactor); | |
| 1584 | } | ||
| 1585 | |||
| 1586 | ✗ | void CoolingTowerTwoSpeed::resetLowFanSpeedAirFlowRateSizingFactor() { | |
| 1587 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetLowFanSpeedAirFlowRateSizingFactor(); | |
| 1588 | ✗ | } | |
| 1589 | |||
| 1590 | ✗ | bool CoolingTowerTwoSpeed::setLowFanSpeedFanPower(double lowFanSpeedFanPower) { | |
| 1591 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setLowFanSpeedFanPower(lowFanSpeedFanPower); | |
| 1592 | } | ||
| 1593 | |||
| 1594 | 4 | void CoolingTowerTwoSpeed::autosizeLowFanSpeedFanPower() { | |
| 1595 |
1/1✓ Branch 3 taken 4 times.
|
4 | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->autosizeLowFanSpeedFanPower(); |
| 1596 | 4 | } | |
| 1597 | |||
| 1598 | ✗ | bool CoolingTowerTwoSpeed::setLowFanSpeedFanPowerSizingFactor(double lowFanSpeedFanPowerSizingFactor) { | |
| 1599 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setLowFanSpeedFanPowerSizingFactor(lowFanSpeedFanPowerSizingFactor); | |
| 1600 | } | ||
| 1601 | |||
| 1602 | ✗ | void CoolingTowerTwoSpeed::resetLowFanSpeedFanPowerSizingFactor() { | |
| 1603 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetLowFanSpeedFanPowerSizingFactor(); | |
| 1604 | ✗ | } | |
| 1605 | |||
| 1606 | ✗ | bool CoolingTowerTwoSpeed::setLowFanSpeedUFactorTimesAreaValue(double lowFanSpeedUFactorTimesAreaValue) { | |
| 1607 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setLowFanSpeedUFactorTimesAreaValue(lowFanSpeedUFactorTimesAreaValue); | |
| 1608 | } | ||
| 1609 | |||
| 1610 | ✗ | void CoolingTowerTwoSpeed::resetLowFanSpeedUFactorTimesAreaValue() { | |
| 1611 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetLowFanSpeedUFactorTimesAreaValue(); | |
| 1612 | ✗ | } | |
| 1613 | |||
| 1614 | 4 | void CoolingTowerTwoSpeed::autosizeLowFanSpeedUFactorTimesAreaValue() { | |
| 1615 |
1/1✓ Branch 3 taken 4 times.
|
4 | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->autosizeLowFanSpeedUFactorTimesAreaValue(); |
| 1616 | 4 | } | |
| 1617 | |||
| 1618 | ✗ | bool CoolingTowerTwoSpeed::setLowFanSpeedUFactorTimesAreaSizingFactor(double lowFanSpeedUFactorTimesAreaSizingFactor) { | |
| 1619 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setLowFanSpeedUFactorTimesAreaSizingFactor(lowFanSpeedUFactorTimesAreaSizingFactor); | |
| 1620 | } | ||
| 1621 | |||
| 1622 | ✗ | void CoolingTowerTwoSpeed::resetLowFanSpeedUFactorTimesAreaSizingFactor() { | |
| 1623 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetLowFanSpeedUFactorTimesAreaSizingFactor(); | |
| 1624 | ✗ | } | |
| 1625 | |||
| 1626 | ✗ | bool CoolingTowerTwoSpeed::setFreeConvectionRegimeAirFlowRate(double freeConvectionRegimeAirFlowRate) { | |
| 1627 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setFreeConvectionRegimeAirFlowRate(freeConvectionRegimeAirFlowRate); | |
| 1628 | } | ||
| 1629 | |||
| 1630 | ✗ | void CoolingTowerTwoSpeed::resetFreeConvectionRegimeAirFlowRate() { | |
| 1631 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetFreeConvectionRegimeAirFlowRate(); | |
| 1632 | ✗ | } | |
| 1633 | |||
| 1634 | ✗ | void CoolingTowerTwoSpeed::autosizeFreeConvectionRegimeAirFlowRate() { | |
| 1635 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->autosizeFreeConvectionRegimeAirFlowRate(); | |
| 1636 | ✗ | } | |
| 1637 | |||
| 1638 | ✗ | bool CoolingTowerTwoSpeed::setFreeConvectionRegimeAirFlowRateSizingFactor(double freeConvectionRegimeAirFlowRateSizingFactor) { | |
| 1639 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setFreeConvectionRegimeAirFlowRateSizingFactor(freeConvectionRegimeAirFlowRateSizingFactor); | |
| 1640 | } | ||
| 1641 | |||
| 1642 | ✗ | void CoolingTowerTwoSpeed::resetFreeConvectionRegimeAirFlowRateSizingFactor() { | |
| 1643 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetFreeConvectionRegimeAirFlowRateSizingFactor(); | |
| 1644 | ✗ | } | |
| 1645 | |||
| 1646 | ✗ | bool CoolingTowerTwoSpeed::setFreeConvectionRegimeUFactorTimesAreaValue(double freeConvectionRegimeUFactorTimesAreaValue) { | |
| 1647 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setFreeConvectionRegimeUFactorTimesAreaValue(freeConvectionRegimeUFactorTimesAreaValue); | |
| 1648 | } | ||
| 1649 | |||
| 1650 | ✗ | void CoolingTowerTwoSpeed::resetFreeConvectionRegimeUFactorTimesAreaValue() { | |
| 1651 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetFreeConvectionRegimeUFactorTimesAreaValue(); | |
| 1652 | ✗ | } | |
| 1653 | |||
| 1654 | ✗ | void CoolingTowerTwoSpeed::autosizeFreeConvectionRegimeUFactorTimesAreaValue() { | |
| 1655 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->autosizeFreeConvectionRegimeUFactorTimesAreaValue(); | |
| 1656 | ✗ | } | |
| 1657 | |||
| 1658 | ✗ | bool CoolingTowerTwoSpeed::setFreeConvectionUFactorTimesAreaValueSizingFactor(double freeConvectionUFactorTimesAreaValueSizingFactor) { | |
| 1659 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setFreeConvectionUFactorTimesAreaValueSizingFactor( | |
| 1660 | ✗ | freeConvectionUFactorTimesAreaValueSizingFactor); | |
| 1661 | } | ||
| 1662 | |||
| 1663 | ✗ | void CoolingTowerTwoSpeed::resetFreeConvectionUFactorTimesAreaValueSizingFactor() { | |
| 1664 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetFreeConvectionUFactorTimesAreaValueSizingFactor(); | |
| 1665 | ✗ | } | |
| 1666 | |||
| 1667 | ✗ | bool CoolingTowerTwoSpeed::setPerformanceInputMethod(const std::string& performanceInputMethod) { | |
| 1668 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setPerformanceInputMethod(performanceInputMethod); | |
| 1669 | } | ||
| 1670 | |||
| 1671 | ✗ | void CoolingTowerTwoSpeed::resetPerformanceInputMethod() { | |
| 1672 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetPerformanceInputMethod(); | |
| 1673 | ✗ | } | |
| 1674 | |||
| 1675 | ✗ | bool CoolingTowerTwoSpeed::setHeatRejectionCapacityandNominalCapacitySizingRatio(double heatRejectionCapacityandNominalCapacitySizingRatio) { | |
| 1676 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setHeatRejectionCapacityandNominalCapacitySizingRatio( | |
| 1677 | ✗ | heatRejectionCapacityandNominalCapacitySizingRatio); | |
| 1678 | } | ||
| 1679 | |||
| 1680 | ✗ | void CoolingTowerTwoSpeed::resetHeatRejectionCapacityandNominalCapacitySizingRatio() { | |
| 1681 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetHeatRejectionCapacityandNominalCapacitySizingRatio(); | |
| 1682 | ✗ | } | |
| 1683 | |||
| 1684 | ✗ | bool CoolingTowerTwoSpeed::setHighSpeedNominalCapacity(double highSpeedNominalCapacity) { | |
| 1685 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setHighSpeedNominalCapacity(highSpeedNominalCapacity); | |
| 1686 | } | ||
| 1687 | |||
| 1688 | ✗ | void CoolingTowerTwoSpeed::resetHighSpeedNominalCapacity() { | |
| 1689 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetHighSpeedNominalCapacity(); | |
| 1690 | ✗ | } | |
| 1691 | |||
| 1692 | ✗ | bool CoolingTowerTwoSpeed::setLowSpeedNominalCapacity(double lowSpeedNominalCapacity) { | |
| 1693 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setLowSpeedNominalCapacity(lowSpeedNominalCapacity); | |
| 1694 | } | ||
| 1695 | |||
| 1696 | ✗ | void CoolingTowerTwoSpeed::resetLowSpeedNominalCapacity() { | |
| 1697 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetLowSpeedNominalCapacity(); | |
| 1698 | ✗ | } | |
| 1699 | |||
| 1700 | ✗ | void CoolingTowerTwoSpeed::autosizeLowSpeedNominalCapacity() { | |
| 1701 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->autosizeLowSpeedNominalCapacity(); | |
| 1702 | ✗ | } | |
| 1703 | |||
| 1704 | ✗ | bool CoolingTowerTwoSpeed::setLowSpeedNominalCapacitySizingFactor(double lowSpeedNominalCapacitySizingFactor) { | |
| 1705 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setLowSpeedNominalCapacitySizingFactor(lowSpeedNominalCapacitySizingFactor); | |
| 1706 | } | ||
| 1707 | |||
| 1708 | ✗ | void CoolingTowerTwoSpeed::resetLowSpeedNominalCapacitySizingFactor() { | |
| 1709 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetLowSpeedNominalCapacitySizingFactor(); | |
| 1710 | ✗ | } | |
| 1711 | |||
| 1712 | ✗ | bool CoolingTowerTwoSpeed::setFreeConvectionNominalCapacity(double freeConvectionNominalCapacity) { | |
| 1713 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setFreeConvectionNominalCapacity(freeConvectionNominalCapacity); | |
| 1714 | } | ||
| 1715 | |||
| 1716 | ✗ | void CoolingTowerTwoSpeed::resetFreeConvectionNominalCapacity() { | |
| 1717 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetFreeConvectionNominalCapacity(); | |
| 1718 | ✗ | } | |
| 1719 | |||
| 1720 | ✗ | void CoolingTowerTwoSpeed::autosizeFreeConvectionNominalCapacity() { | |
| 1721 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->autosizeFreeConvectionNominalCapacity(); | |
| 1722 | ✗ | } | |
| 1723 | |||
| 1724 | ✗ | bool CoolingTowerTwoSpeed::setFreeConvectionNominalCapacitySizingFactor(double freeConvectionNominalCapacitySizingFactor) { | |
| 1725 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setFreeConvectionNominalCapacitySizingFactor(freeConvectionNominalCapacitySizingFactor); | |
| 1726 | } | ||
| 1727 | |||
| 1728 | ✗ | void CoolingTowerTwoSpeed::resetFreeConvectionNominalCapacitySizingFactor() { | |
| 1729 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetFreeConvectionNominalCapacitySizingFactor(); | |
| 1730 | ✗ | } | |
| 1731 | |||
| 1732 | ✗ | bool CoolingTowerTwoSpeed::setBasinHeaterCapacity(double basinHeaterCapacity) { | |
| 1733 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setBasinHeaterCapacity(basinHeaterCapacity); | |
| 1734 | } | ||
| 1735 | |||
| 1736 | ✗ | void CoolingTowerTwoSpeed::resetBasinHeaterCapacity() { | |
| 1737 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetBasinHeaterCapacity(); | |
| 1738 | ✗ | } | |
| 1739 | |||
| 1740 | ✗ | bool CoolingTowerTwoSpeed::setBasinHeaterSetpointTemperature(double basinHeaterSetpointTemperature) { | |
| 1741 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setBasinHeaterSetpointTemperature(basinHeaterSetpointTemperature); | |
| 1742 | } | ||
| 1743 | |||
| 1744 | ✗ | void CoolingTowerTwoSpeed::resetBasinHeaterSetpointTemperature() { | |
| 1745 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetBasinHeaterSetpointTemperature(); | |
| 1746 | ✗ | } | |
| 1747 | |||
| 1748 | ✗ | bool CoolingTowerTwoSpeed::setBasinHeaterOperatingSchedule(Schedule& schedule) { | |
| 1749 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setBasinHeaterOperatingSchedule(schedule); | |
| 1750 | } | ||
| 1751 | |||
| 1752 | ✗ | void CoolingTowerTwoSpeed::resetBasinHeaterOperatingSchedule() { | |
| 1753 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetBasinHeaterOperatingSchedule(); | |
| 1754 | ✗ | } | |
| 1755 | |||
| 1756 | ✗ | bool CoolingTowerTwoSpeed::setEvaporationLossMode(const std::string& evaporationLossMode) { | |
| 1757 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setEvaporationLossMode(evaporationLossMode); | |
| 1758 | } | ||
| 1759 | |||
| 1760 | ✗ | void CoolingTowerTwoSpeed::resetEvaporationLossMode() { | |
| 1761 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetEvaporationLossMode(); | |
| 1762 | ✗ | } | |
| 1763 | |||
| 1764 | ✗ | bool CoolingTowerTwoSpeed::setEvaporationLossFactor(double evaporationLossFactor) { | |
| 1765 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setEvaporationLossFactor(evaporationLossFactor); | |
| 1766 | } | ||
| 1767 | |||
| 1768 | ✗ | void CoolingTowerTwoSpeed::resetEvaporationLossFactor() { | |
| 1769 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetEvaporationLossFactor(); | |
| 1770 | ✗ | } | |
| 1771 | |||
| 1772 | ✗ | bool CoolingTowerTwoSpeed::setDriftLossPercent(double driftLossPercent) { | |
| 1773 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setDriftLossPercent(driftLossPercent); | |
| 1774 | } | ||
| 1775 | |||
| 1776 | ✗ | void CoolingTowerTwoSpeed::resetDriftLossPercent() { | |
| 1777 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetDriftLossPercent(); | |
| 1778 | ✗ | } | |
| 1779 | |||
| 1780 | ✗ | bool CoolingTowerTwoSpeed::setBlowdownCalculationMode(const std::string& blowdownCalculationMode) { | |
| 1781 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setBlowdownCalculationMode(blowdownCalculationMode); | |
| 1782 | } | ||
| 1783 | |||
| 1784 | ✗ | void CoolingTowerTwoSpeed::resetBlowdownCalculationMode() { | |
| 1785 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetBlowdownCalculationMode(); | |
| 1786 | ✗ | } | |
| 1787 | |||
| 1788 | ✗ | bool CoolingTowerTwoSpeed::setBlowdownConcentrationRatio(double blowdownConcentrationRatio) { | |
| 1789 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setBlowdownConcentrationRatio(blowdownConcentrationRatio); | |
| 1790 | } | ||
| 1791 | |||
| 1792 | ✗ | void CoolingTowerTwoSpeed::resetBlowdownConcentrationRatio() { | |
| 1793 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetBlowdownConcentrationRatio(); | |
| 1794 | ✗ | } | |
| 1795 | |||
| 1796 | ✗ | bool CoolingTowerTwoSpeed::setBlowdownMakeupWaterUsageSchedule(Schedule& schedule) { | |
| 1797 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setBlowdownMakeupWaterUsageSchedule(schedule); | |
| 1798 | } | ||
| 1799 | |||
| 1800 | ✗ | void CoolingTowerTwoSpeed::resetBlowdownMakeupWaterUsageSchedule() { | |
| 1801 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetBlowdownMakeupWaterUsageSchedule(); | |
| 1802 | ✗ | } | |
| 1803 | |||
| 1804 | // bool CoolingTowerTwoSpeed::setSupplyWaterStorageTank(const WaterStorageTank& waterStorageTank) { | ||
| 1805 | // return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setSupplyWaterStorageTank(waterStorageTank); | ||
| 1806 | // } | ||
| 1807 | |||
| 1808 | // void CoolingTowerTwoSpeed::resetSupplyWaterStorageTank() { | ||
| 1809 | // getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetSupplyWaterStorageTank(); | ||
| 1810 | // } | ||
| 1811 | |||
| 1812 | ✗ | bool CoolingTowerTwoSpeed::setNumberofCells(int numberofCells) { | |
| 1813 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setNumberofCells(numberofCells); | |
| 1814 | } | ||
| 1815 | |||
| 1816 | ✗ | void CoolingTowerTwoSpeed::resetNumberofCells() { | |
| 1817 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetNumberofCells(); | |
| 1818 | ✗ | } | |
| 1819 | |||
| 1820 | ✗ | bool CoolingTowerTwoSpeed::setCellControl(const std::string& cellControl) { | |
| 1821 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setCellControl(cellControl); | |
| 1822 | } | ||
| 1823 | |||
| 1824 | ✗ | void CoolingTowerTwoSpeed::resetCellControl() { | |
| 1825 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetCellControl(); | |
| 1826 | ✗ | } | |
| 1827 | |||
| 1828 | ✗ | bool CoolingTowerTwoSpeed::setCellMinimumWaterFlowRateFraction(double cellMinimumWaterFlowRateFraction) { | |
| 1829 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setCellMinimumWaterFlowRateFraction(cellMinimumWaterFlowRateFraction); | |
| 1830 | } | ||
| 1831 | |||
| 1832 | ✗ | void CoolingTowerTwoSpeed::resetCellMinimumWaterFlowRateFraction() { | |
| 1833 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetCellMinimumWaterFlowRateFraction(); | |
| 1834 | ✗ | } | |
| 1835 | |||
| 1836 | ✗ | bool CoolingTowerTwoSpeed::setCellMaximumWaterFlowRateFraction(double cellMaximumWaterFlowRateFraction) { | |
| 1837 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setCellMaximumWaterFlowRateFraction(cellMaximumWaterFlowRateFraction); | |
| 1838 | } | ||
| 1839 | |||
| 1840 | ✗ | void CoolingTowerTwoSpeed::resetCellMaximumWaterFlowRateFraction() { | |
| 1841 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetCellMaximumWaterFlowRateFraction(); | |
| 1842 | ✗ | } | |
| 1843 | |||
| 1844 | 4 | bool CoolingTowerTwoSpeed::setSizingFactor(double sizingFactor) { | |
| 1845 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setSizingFactor(sizingFactor); |
| 1846 | } | ||
| 1847 | |||
| 1848 | ✗ | void CoolingTowerTwoSpeed::resetSizingFactor() { | |
| 1849 | ✗ | getImpl<detail::CoolingTowerTwoSpeed_Impl>()->resetSizingFactor(); | |
| 1850 | ✗ | } | |
| 1851 | |||
| 1852 | 1 | double CoolingTowerTwoSpeed::designInletAirDryBulbTemperature() const { | |
| 1853 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->designInletAirDryBulbTemperature(); |
| 1854 | } | ||
| 1855 | |||
| 1856 | 4 | bool CoolingTowerTwoSpeed::setDesignInletAirDryBulbTemperature(double designInletAirDryBulbTemperature) { | |
| 1857 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setDesignInletAirDryBulbTemperature(designInletAirDryBulbTemperature); |
| 1858 | } | ||
| 1859 | |||
| 1860 | 1 | double CoolingTowerTwoSpeed::designInletAirWetBulbTemperature() const { | |
| 1861 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->designInletAirWetBulbTemperature(); |
| 1862 | } | ||
| 1863 | |||
| 1864 | 4 | bool CoolingTowerTwoSpeed::setDesignInletAirWetBulbTemperature(double designInletAirWetBulbTemperature) { | |
| 1865 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setDesignInletAirWetBulbTemperature(designInletAirWetBulbTemperature); |
| 1866 | } | ||
| 1867 | |||
| 1868 | 1 | boost::optional<double> CoolingTowerTwoSpeed::designApproachTemperature() const { | |
| 1869 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->designApproachTemperature(); |
| 1870 | } | ||
| 1871 | |||
| 1872 | ✗ | bool CoolingTowerTwoSpeed::setDesignApproachTemperature(double designApproachTemperature) { | |
| 1873 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setDesignApproachTemperature(designApproachTemperature); | |
| 1874 | } | ||
| 1875 | |||
| 1876 | 4 | void CoolingTowerTwoSpeed::autosizeDesignApproachTemperature() { | |
| 1877 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->autosizeDesignApproachTemperature(); |
| 1878 | } | ||
| 1879 | |||
| 1880 | 1 | boost::optional<double> CoolingTowerTwoSpeed::designRangeTemperature() const { | |
| 1881 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->designRangeTemperature(); |
| 1882 | } | ||
| 1883 | |||
| 1884 | ✗ | bool CoolingTowerTwoSpeed::setDesignRangeTemperature(double designRangeTemperature) { | |
| 1885 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setDesignRangeTemperature(designRangeTemperature); | |
| 1886 | } | ||
| 1887 | |||
| 1888 | 4 | void CoolingTowerTwoSpeed::autosizeDesignRangeTemperature() { | |
| 1889 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->autosizeDesignRangeTemperature(); |
| 1890 | } | ||
| 1891 | |||
| 1892 | 1 | std::string CoolingTowerTwoSpeed::endUseSubcategory() const { | |
| 1893 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->endUseSubcategory(); |
| 1894 | } | ||
| 1895 | |||
| 1896 | 4 | bool CoolingTowerTwoSpeed::setEndUseSubcategory(const std::string& endUseSubcategory) { | |
| 1897 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->setEndUseSubcategory(endUseSubcategory); |
| 1898 | } | ||
| 1899 | |||
| 1900 | 1 | bool CoolingTowerTwoSpeed::isDesignRangeTemperatureAutosized() const { | |
| 1901 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isDesignRangeTemperatureAutosized(); |
| 1902 | } | ||
| 1903 | |||
| 1904 | 1 | bool CoolingTowerTwoSpeed::isDesignApproachTemperatureAutosized() const { | |
| 1905 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->isDesignApproachTemperatureAutosized(); |
| 1906 | } | ||
| 1907 | |||
| 1908 | /// @cond | ||
| 1909 |
1/1✓ Branch 3 taken 1 time.
|
1 | CoolingTowerTwoSpeed::CoolingTowerTwoSpeed(std::shared_ptr<detail::CoolingTowerTwoSpeed_Impl> impl) : StraightComponent(std::move(impl)) {} |
| 1910 | /// @endcond | ||
| 1911 | |||
| 1912 | ✗ | boost::optional<double> CoolingTowerTwoSpeed::autosizedDesignWaterFlowRate() const { | |
| 1913 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->autosizedDesignWaterFlowRate(); | |
| 1914 | } | ||
| 1915 | |||
| 1916 | ✗ | boost::optional<double> CoolingTowerTwoSpeed::autosizedHighFanSpeedAirFlowRate() const { | |
| 1917 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->autosizedHighFanSpeedAirFlowRate(); | |
| 1918 | } | ||
| 1919 | |||
| 1920 | ✗ | boost::optional<double> CoolingTowerTwoSpeed::autosizedHighFanSpeedFanPower() const { | |
| 1921 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->autosizedHighFanSpeedFanPower(); | |
| 1922 | } | ||
| 1923 | |||
| 1924 | ✗ | boost::optional<double> CoolingTowerTwoSpeed::autosizedHighFanSpeedUFactorTimesAreaValue() const { | |
| 1925 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->autosizedHighFanSpeedUFactorTimesAreaValue(); | |
| 1926 | } | ||
| 1927 | |||
| 1928 | ✗ | boost::optional<double> CoolingTowerTwoSpeed::autosizedLowFanSpeedAirFlowRate() const { | |
| 1929 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->autosizedLowFanSpeedAirFlowRate(); | |
| 1930 | } | ||
| 1931 | |||
| 1932 | ✗ | boost::optional<double> CoolingTowerTwoSpeed::autosizedLowFanSpeedFanPower() const { | |
| 1933 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->autosizedLowFanSpeedFanPower(); | |
| 1934 | } | ||
| 1935 | |||
| 1936 | ✗ | boost::optional<double> CoolingTowerTwoSpeed::autosizedLowFanSpeedUFactorTimesAreaValue() const { | |
| 1937 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->autosizedLowFanSpeedUFactorTimesAreaValue(); | |
| 1938 | } | ||
| 1939 | |||
| 1940 | ✗ | boost::optional<double> CoolingTowerTwoSpeed::autosizedFreeConvectionRegimeAirFlowRate() const { | |
| 1941 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->autosizedFreeConvectionRegimeAirFlowRate(); | |
| 1942 | } | ||
| 1943 | |||
| 1944 | ✗ | boost::optional<double> CoolingTowerTwoSpeed::autosizedFreeConvectionRegimeUFactorTimesAreaValue() const { | |
| 1945 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->autosizedFreeConvectionRegimeUFactorTimesAreaValue(); | |
| 1946 | } | ||
| 1947 | |||
| 1948 | ✗ | boost::optional<double> CoolingTowerTwoSpeed::autosizedLowSpeedNominalCapacity() const { | |
| 1949 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->autosizedLowSpeedNominalCapacity(); | |
| 1950 | } | ||
| 1951 | |||
| 1952 | ✗ | boost::optional<double> CoolingTowerTwoSpeed::autosizedFreeConvectionNominalCapacity() const { | |
| 1953 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->autosizedFreeConvectionNominalCapacity(); | |
| 1954 | } | ||
| 1955 | |||
| 1956 | ✗ | boost::optional<double> CoolingTowerTwoSpeed::autosizedDesignApproachTemperature() const { | |
| 1957 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->autosizedDesignApproachTemperature(); | |
| 1958 | } | ||
| 1959 | |||
| 1960 | ✗ | boost::optional<double> CoolingTowerTwoSpeed::autosizedDesignRangeTemperature() const { | |
| 1961 | ✗ | return getImpl<detail::CoolingTowerTwoSpeed_Impl>()->autosizedDesignRangeTemperature(); | |
| 1962 | } | ||
| 1963 | |||
| 1964 | } // namespace model | ||
| 1965 | } // namespace openstudio | ||
| 1966 |