src/model/EvaporativeFluidCoolerSingleSpeed.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 "EvaporativeFluidCoolerSingleSpeed.hpp" | ||
| 7 | #include "EvaporativeFluidCoolerSingleSpeed_Impl.hpp" | ||
| 8 | #include "Schedule.hpp" | ||
| 9 | #include "Schedule_Impl.hpp" | ||
| 10 | #include "ScheduleTypeLimits.hpp" | ||
| 11 | #include "ScheduleTypeRegistry.hpp" | ||
| 12 | #include "PlantLoop.hpp" | ||
| 13 | #include "PlantLoop_Impl.hpp" | ||
| 14 | #include "ConnectorSplitter.hpp" | ||
| 15 | #include "ConnectorSplitter_Impl.hpp" | ||
| 16 | #include "ConnectorMixer.hpp" | ||
| 17 | #include "ConnectorMixer_Impl.hpp" | ||
| 18 | #include "ModelObject.hpp" | ||
| 19 | #include "ModelObject_Impl.hpp" | ||
| 20 | #include "Model.hpp" | ||
| 21 | #include "Model_Impl.hpp" | ||
| 22 | #include "Node.hpp" | ||
| 23 | #include "Node_Impl.hpp" | ||
| 24 | #include "PortList.hpp" | ||
| 25 | #include "PortList_Impl.hpp" | ||
| 26 | |||
| 27 | #include "../utilities/core/Assert.hpp" | ||
| 28 | #include "../utilities/data/DataEnums.hpp" | ||
| 29 | |||
| 30 | #include <utilities/idd/IddFactory.hxx> | ||
| 31 | #include <utilities/idd/OS_EvaporativeFluidCooler_SingleSpeed_FieldEnums.hxx> | ||
| 32 | #include <utilities/idd/IddEnums.hxx> | ||
| 33 | |||
| 34 | namespace openstudio { | ||
| 35 | namespace model { | ||
| 36 | |||
| 37 | namespace detail { | ||
| 38 | |||
| 39 | 23 | EvaporativeFluidCoolerSingleSpeed_Impl::EvaporativeFluidCoolerSingleSpeed_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 40 | 23 | : StraightComponent_Impl(idfObject, model, keepHandle) { | |
| 41 |
4/6✓ Branch 1 taken 23 times.
✓ Branch 4 taken 23 times.
✓ Branch 7 taken 23 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 23 times.
✗ Branch 13 not taken.
|
23 | OS_ASSERT(idfObject.iddObject().type() == EvaporativeFluidCoolerSingleSpeed::iddObjectType()); |
| 42 | 23 | } | |
| 43 | |||
| 44 | 1 | EvaporativeFluidCoolerSingleSpeed_Impl::EvaporativeFluidCoolerSingleSpeed_Impl(const openstudio::detail::WorkspaceObject_Impl& other, | |
| 45 | 1 | Model_Impl* model, bool keepHandle) | |
| 46 | 1 | : StraightComponent_Impl(other, model, keepHandle) { | |
| 47 |
4/6✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 10 not taken.
✓ Branch 11 taken 1 time.
✗ Branch 13 not taken.
|
1 | OS_ASSERT(other.iddObject().type() == EvaporativeFluidCoolerSingleSpeed::iddObjectType()); |
| 48 | 1 | } | |
| 49 | |||
| 50 | 11 | EvaporativeFluidCoolerSingleSpeed_Impl::EvaporativeFluidCoolerSingleSpeed_Impl(const EvaporativeFluidCoolerSingleSpeed_Impl& other, | |
| 51 | 11 | Model_Impl* model, bool keepHandle) | |
| 52 | 11 | : StraightComponent_Impl(other, model, keepHandle) {} | |
| 53 | |||
| 54 | ✗ | const std::vector<std::string>& EvaporativeFluidCoolerSingleSpeed_Impl::outputVariableNames() const { | |
| 55 | static const std::vector<std::string> result{ | ||
| 56 | "Cooling Tower Fan Electricity Rate", | ||
| 57 | "Cooling Tower Fan Electricity Energy", | ||
| 58 | "Cooling Tower Heat Transfer Rate", | ||
| 59 | "Cooling Tower Inlet Temperature", | ||
| 60 | "Cooling Tower Outlet Temperature", | ||
| 61 | "Cooling Tower Mass Flow Rate", | ||
| 62 | "Cooling Tower Bypass Fraction", | ||
| 63 | "Cooling Tower Make Up Water Volume Flow Rate", | ||
| 64 | "Cooling Tower Make Up Water Volume", | ||
| 65 | "Cooling Tower Water Evaporation Volume Flow Rate", | ||
| 66 | "Cooling Tower Water Evaporation Volume", | ||
| 67 | "Cooling Tower Water Drift Volume Flow Rate", | ||
| 68 | "Evaporative Fluid Cooler Water Drift", | ||
| 69 | "Cooling Tower Water Blowdown Volume Flow Rate", | ||
| 70 | "Cooling Tower Water Blowdown Volume", | ||
| 71 | "Cooling Tower Make Up Mains Water Volume" | ||
| 72 | // If Supply Water Storage Tank Name is specified: | ||
| 73 | // TODO: not implemented for now | ||
| 74 | //"Cooling Tower Storage Tank Water Volume Flow Rate", | ||
| 75 | //"Cooling Tower Storage Tank Water Volume", | ||
| 76 | //"Cooling Tower Starved Storage Tank Water Volume Flow Rate", | ||
| 77 | //"Cooling Tower Starved Storage Tank Water Volume" | ||
| 78 | ✗ | }; | |
| 79 | ✗ | return result; | |
| 80 | ✗ | } | |
| 81 | |||
| 82 | ✗ | IddObjectType EvaporativeFluidCoolerSingleSpeed_Impl::iddObjectType() const { | |
| 83 | ✗ | return EvaporativeFluidCoolerSingleSpeed::iddObjectType(); | |
| 84 | } | ||
| 85 | |||
| 86 | ✗ | std::vector<ScheduleTypeKey> EvaporativeFluidCoolerSingleSpeed_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 87 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 88 | ✗ | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 89 | ✗ | UnsignedVector::const_iterator b(fieldIndices.begin()); | |
| 90 | ✗ | UnsignedVector::const_iterator e(fieldIndices.end()); | |
| 91 | ✗ | if (std::find(b, e, OS_EvaporativeFluidCooler_SingleSpeedFields::BlowdownMakeupWaterUsageScheduleName) != e) { | |
| 92 | ✗ | result.push_back(ScheduleTypeKey("EvaporativeFluidCoolerSingleSpeed", "Blowdown Makeup Water Usage")); | |
| 93 | } | ||
| 94 | ✗ | return result; | |
| 95 | ✗ | } | |
| 96 | |||
| 97 | 22 | unsigned EvaporativeFluidCoolerSingleSpeed_Impl::inletPort() const { | |
| 98 | 22 | return OS_EvaporativeFluidCooler_SingleSpeedFields::WaterInletNodeName; | |
| 99 | } | ||
| 100 | |||
| 101 | 63 | unsigned EvaporativeFluidCoolerSingleSpeed_Impl::outletPort() const { | |
| 102 | 63 | return OS_EvaporativeFluidCooler_SingleSpeedFields::WaterOutletNodeName; | |
| 103 | } | ||
| 104 | |||
| 105 | 13 | bool EvaporativeFluidCoolerSingleSpeed_Impl::addToNode(Node& node) { | |
| 106 |
3/3✓ Branch 1 taken 13 times.
✓ Branch 3 taken 11 times.
✓ Branch 4 taken 2 times.
|
26 | if (boost::optional<PlantLoop> plant = node.plantLoop()) { |
| 107 |
5/5✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
✓ Branch 7 taken 11 times.
✓ Branch 10 taken 10 times.
✓ Branch 11 taken 1 time.
|
22 | if (plant->supplyComponent(node.handle())) { |
| 108 |
1/1✓ Branch 1 taken 10 times.
|
10 | return StraightComponent_Impl::addToNode(node); |
| 109 | } | ||
| 110 | 13 | } | |
| 111 | |||
| 112 | 3 | return false; | |
| 113 | } | ||
| 114 | |||
| 115 | 4 | boost::optional<double> EvaporativeFluidCoolerSingleSpeed_Impl::designAirFlowRate() const { | |
| 116 | 4 | return getDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::DesignAirFlowRate, true); | |
| 117 | } | ||
| 118 | |||
| 119 | 5 | bool EvaporativeFluidCoolerSingleSpeed_Impl::isDesignAirFlowRateAutosized() const { | |
| 120 | 5 | bool result = false; | |
| 121 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<std::string> value = getString(OS_EvaporativeFluidCooler_SingleSpeedFields::DesignAirFlowRate, true); |
| 122 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | if (value) { |
| 123 |
3/3✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
|
10 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 124 | } | ||
| 125 | 5 | return result; | |
| 126 | 5 | } | |
| 127 | |||
| 128 | 4 | boost::optional<double> EvaporativeFluidCoolerSingleSpeed_Impl::fanPoweratDesignAirFlowRate() const { | |
| 129 | 4 | return getDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::FanPoweratDesignAirFlowRate, true); | |
| 130 | } | ||
| 131 | |||
| 132 | 5 | bool EvaporativeFluidCoolerSingleSpeed_Impl::isFanPoweratDesignAirFlowRateAutosized() const { | |
| 133 | 5 | bool result = false; | |
| 134 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<std::string> value = getString(OS_EvaporativeFluidCooler_SingleSpeedFields::FanPoweratDesignAirFlowRate, true); |
| 135 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | if (value) { |
| 136 |
3/3✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
|
10 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 137 | } | ||
| 138 | 5 | return result; | |
| 139 | 5 | } | |
| 140 | |||
| 141 | 8 | double EvaporativeFluidCoolerSingleSpeed_Impl::designSprayWaterFlowRate() const { | |
| 142 |
1/1✓ Branch 1 taken 8 times.
|
8 | boost::optional<double> value = getDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::DesignSprayWaterFlowRate, true); |
| 143 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 8 times.
✗ Branch 4 not taken.
|
8 | OS_ASSERT(value); |
| 144 |
1/1✓ Branch 1 taken 8 times.
|
16 | return value.get(); |
| 145 | } | ||
| 146 | |||
| 147 | 8 | std::string EvaporativeFluidCoolerSingleSpeed_Impl::performanceInputMethod() const { | |
| 148 |
1/1✓ Branch 1 taken 8 times.
|
8 | boost::optional<std::string> value = getString(OS_EvaporativeFluidCooler_SingleSpeedFields::PerformanceInputMethod, true); |
| 149 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 8 times.
✗ Branch 4 not taken.
|
8 | OS_ASSERT(value); |
| 150 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
16 | return value.get(); |
| 151 | 8 | } | |
| 152 | |||
| 153 | 2 | double EvaporativeFluidCoolerSingleSpeed_Impl::heatRejectionCapacityandNominalCapacitySizingRatio() const { | |
| 154 | boost::optional<double> value = | ||
| 155 |
1/1✓ Branch 1 taken 2 times.
|
2 | getDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::HeatRejectionCapacityandNominalCapacitySizingRatio, true); |
| 156 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(value); |
| 157 |
1/1✓ Branch 1 taken 2 times.
|
4 | return value.get(); |
| 158 | } | ||
| 159 | |||
| 160 | 5 | boost::optional<double> EvaporativeFluidCoolerSingleSpeed_Impl::standardDesignCapacity() const { | |
| 161 | 5 | return getDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::StandardDesignCapacity, true); | |
| 162 | } | ||
| 163 | |||
| 164 | 1 | boost::optional<double> EvaporativeFluidCoolerSingleSpeed_Impl::ufactorTimesAreaValueatDesignAirFlowRate() const { | |
| 165 | 1 | return getDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::UfactorTimesAreaValueatDesignAirFlowRate, true); | |
| 166 | } | ||
| 167 | |||
| 168 | 3 | bool EvaporativeFluidCoolerSingleSpeed_Impl::isUfactorTimesAreaValueatDesignAirFlowRateAutosized() const { | |
| 169 | 3 | bool result = false; | |
| 170 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<std::string> value = getString(OS_EvaporativeFluidCooler_SingleSpeedFields::UfactorTimesAreaValueatDesignAirFlowRate, true); |
| 171 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | if (value) { |
| 172 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
6 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 173 | } | ||
| 174 | 3 | return result; | |
| 175 | 3 | } | |
| 176 | |||
| 177 | 1 | boost::optional<double> EvaporativeFluidCoolerSingleSpeed_Impl::designWaterFlowRate() const { | |
| 178 | 1 | return getDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::DesignWaterFlowRate, true); | |
| 179 | } | ||
| 180 | |||
| 181 | 3 | bool EvaporativeFluidCoolerSingleSpeed_Impl::isDesignWaterFlowRateAutosized() const { | |
| 182 | 3 | bool result = false; | |
| 183 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<std::string> value = getString(OS_EvaporativeFluidCooler_SingleSpeedFields::DesignWaterFlowRate, true); |
| 184 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | if (value) { |
| 185 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
6 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 186 | } | ||
| 187 | 3 | return result; | |
| 188 | 3 | } | |
| 189 | |||
| 190 | 4 | boost::optional<double> EvaporativeFluidCoolerSingleSpeed_Impl::userSpecifiedDesignCapacity() const { | |
| 191 | 4 | return getDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::UserSpecifiedDesignCapacity, true); | |
| 192 | } | ||
| 193 | |||
| 194 | 1 | boost::optional<double> EvaporativeFluidCoolerSingleSpeed_Impl::designEnteringWaterTemperature() const { | |
| 195 | 1 | return getDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::DesignEnteringWaterTemperature, true); | |
| 196 | } | ||
| 197 | |||
| 198 | 4 | bool EvaporativeFluidCoolerSingleSpeed_Impl::isDesignEnteringWaterTemperatureAutosized() const { | |
| 199 | 4 | bool result = false; | |
| 200 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<std::string> value = getString(OS_EvaporativeFluidCooler_SingleSpeedFields::DesignEnteringWaterTemperature, true); |
| 201 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | if (value) { |
| 202 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
|
8 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 203 | } | ||
| 204 | 4 | return result; | |
| 205 | 4 | } | |
| 206 | |||
| 207 | 4 | double EvaporativeFluidCoolerSingleSpeed_Impl::designEnteringAirTemperature() const { | |
| 208 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::DesignEnteringAirTemperature, true); |
| 209 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 210 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 211 | } | ||
| 212 | |||
| 213 | 4 | double EvaporativeFluidCoolerSingleSpeed_Impl::designEnteringAirWetbulbTemperature() const { | |
| 214 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::DesignEnteringAirWetbulbTemperature, true); |
| 215 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 216 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 217 | } | ||
| 218 | |||
| 219 | 6 | std::string EvaporativeFluidCoolerSingleSpeed_Impl::capacityControl() const { | |
| 220 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<std::string> value = getString(OS_EvaporativeFluidCooler_SingleSpeedFields::CapacityControl, true); |
| 221 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 222 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
12 | return value.get(); |
| 223 | 6 | } | |
| 224 | |||
| 225 | ✗ | bool EvaporativeFluidCoolerSingleSpeed_Impl::isCapacityControlDefaulted() const { | |
| 226 | ✗ | return isEmpty(OS_EvaporativeFluidCooler_SingleSpeedFields::CapacityControl); | |
| 227 | } | ||
| 228 | |||
| 229 | 4 | double EvaporativeFluidCoolerSingleSpeed_Impl::sizingFactor() const { | |
| 230 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::SizingFactor, true); |
| 231 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 232 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 233 | } | ||
| 234 | |||
| 235 | ✗ | bool EvaporativeFluidCoolerSingleSpeed_Impl::isSizingFactorDefaulted() const { | |
| 236 | ✗ | return isEmpty(OS_EvaporativeFluidCooler_SingleSpeedFields::SizingFactor); | |
| 237 | } | ||
| 238 | |||
| 239 | 6 | std::string EvaporativeFluidCoolerSingleSpeed_Impl::evaporationLossMode() const { | |
| 240 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<std::string> value = getString(OS_EvaporativeFluidCooler_SingleSpeedFields::EvaporationLossMode, true); |
| 241 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 242 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
12 | return value.get(); |
| 243 | 6 | } | |
| 244 | |||
| 245 | ✗ | bool EvaporativeFluidCoolerSingleSpeed_Impl::isEvaporationLossModeDefaulted() const { | |
| 246 | ✗ | return isEmpty(OS_EvaporativeFluidCooler_SingleSpeedFields::EvaporationLossMode); | |
| 247 | } | ||
| 248 | |||
| 249 | 1 | boost::optional<double> EvaporativeFluidCoolerSingleSpeed_Impl::evaporationLossFactor() const { | |
| 250 | 1 | return getDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::EvaporationLossFactor, true); | |
| 251 | } | ||
| 252 | |||
| 253 | 4 | double EvaporativeFluidCoolerSingleSpeed_Impl::driftLossPercent() const { | |
| 254 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::DriftLossPercent, true); |
| 255 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 256 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 257 | } | ||
| 258 | |||
| 259 | ✗ | bool EvaporativeFluidCoolerSingleSpeed_Impl::isDriftLossPercentDefaulted() const { | |
| 260 | ✗ | return isEmpty(OS_EvaporativeFluidCooler_SingleSpeedFields::DriftLossPercent); | |
| 261 | } | ||
| 262 | |||
| 263 | 6 | std::string EvaporativeFluidCoolerSingleSpeed_Impl::blowdownCalculationMode() const { | |
| 264 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<std::string> value = getString(OS_EvaporativeFluidCooler_SingleSpeedFields::BlowdownCalculationMode, true); |
| 265 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 266 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
12 | return value.get(); |
| 267 | 6 | } | |
| 268 | |||
| 269 | ✗ | bool EvaporativeFluidCoolerSingleSpeed_Impl::isBlowdownCalculationModeDefaulted() const { | |
| 270 | ✗ | return isEmpty(OS_EvaporativeFluidCooler_SingleSpeedFields::BlowdownCalculationMode); | |
| 271 | } | ||
| 272 | |||
| 273 | 4 | double EvaporativeFluidCoolerSingleSpeed_Impl::blowdownConcentrationRatio() const { | |
| 274 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::BlowdownConcentrationRatio, true); |
| 275 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 276 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 277 | } | ||
| 278 | |||
| 279 | ✗ | bool EvaporativeFluidCoolerSingleSpeed_Impl::isBlowdownConcentrationRatioDefaulted() const { | |
| 280 | ✗ | return isEmpty(OS_EvaporativeFluidCooler_SingleSpeedFields::BlowdownConcentrationRatio); | |
| 281 | } | ||
| 282 | |||
| 283 | 8 | boost::optional<Schedule> EvaporativeFluidCoolerSingleSpeed_Impl::blowdownMakeupWaterUsageSchedule() const { | |
| 284 |
1/1✓ Branch 1 taken 8 times.
|
16 | return getObject<ModelObject>().getModelObjectTarget<Schedule>( |
| 285 |
1/1✓ Branch 1 taken 8 times.
|
16 | OS_EvaporativeFluidCooler_SingleSpeedFields::BlowdownMakeupWaterUsageScheduleName); |
| 286 | } | ||
| 287 | |||
| 288 | 5 | bool EvaporativeFluidCoolerSingleSpeed_Impl::setDesignAirFlowRate(boost::optional<double> designAirFlowRate) { | |
| 289 | 5 | bool result(false); | |
| 290 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | if (designAirFlowRate) { |
| 291 | 5 | result = setDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::DesignAirFlowRate, designAirFlowRate.get()); | |
| 292 | } | ||
| 293 | 5 | return result; | |
| 294 | } | ||
| 295 | |||
| 296 | 23 | void EvaporativeFluidCoolerSingleSpeed_Impl::autosizeDesignAirFlowRate() { | |
| 297 |
2/2✓ Branch 1 taken 23 times.
✓ Branch 4 taken 23 times.
|
46 | bool result = setString(OS_EvaporativeFluidCooler_SingleSpeedFields::DesignAirFlowRate, "autosize"); |
| 298 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 23 times.
|
23 | OS_ASSERT(result); |
| 299 | 23 | } | |
| 300 | |||
| 301 | 5 | bool EvaporativeFluidCoolerSingleSpeed_Impl::setFanPoweratDesignAirFlowRate(boost::optional<double> fanPoweratDesignAirFlowRate) { | |
| 302 | 5 | bool result(false); | |
| 303 |
1/2✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
5 | if (fanPoweratDesignAirFlowRate) { |
| 304 | 5 | result = setDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::FanPoweratDesignAirFlowRate, fanPoweratDesignAirFlowRate.get()); | |
| 305 | } | ||
| 306 | 5 | return result; | |
| 307 | } | ||
| 308 | |||
| 309 | 23 | void EvaporativeFluidCoolerSingleSpeed_Impl::autosizeFanPoweratDesignAirFlowRate() { | |
| 310 |
2/2✓ Branch 1 taken 23 times.
✓ Branch 4 taken 23 times.
|
46 | bool result = setString(OS_EvaporativeFluidCooler_SingleSpeedFields::FanPoweratDesignAirFlowRate, "autosize"); |
| 311 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 23 times.
|
23 | OS_ASSERT(result); |
| 312 | 23 | } | |
| 313 | |||
| 314 | 27 | bool EvaporativeFluidCoolerSingleSpeed_Impl::setDesignSprayWaterFlowRate(double designSprayWaterFlowRate) { | |
| 315 | 27 | bool result = setDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::DesignSprayWaterFlowRate, designSprayWaterFlowRate); | |
| 316 | 27 | return result; | |
| 317 | } | ||
| 318 | |||
| 319 | 27 | bool EvaporativeFluidCoolerSingleSpeed_Impl::setPerformanceInputMethod(const std::string& performanceInputMethod) { | |
| 320 | 27 | bool result = setString(OS_EvaporativeFluidCooler_SingleSpeedFields::PerformanceInputMethod, performanceInputMethod); | |
| 321 | 27 | return result; | |
| 322 | } | ||
| 323 | |||
| 324 | 23 | bool EvaporativeFluidCoolerSingleSpeed_Impl::setHeatRejectionCapacityandNominalCapacitySizingRatio( | |
| 325 | double heatRejectionCapacityandNominalCapacitySizingRatio) { | ||
| 326 | 23 | bool result = setDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::HeatRejectionCapacityandNominalCapacitySizingRatio, | |
| 327 | heatRejectionCapacityandNominalCapacitySizingRatio); | ||
| 328 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 23 times.
|
23 | OS_ASSERT(result); |
| 329 | 23 | return result; | |
| 330 | } | ||
| 331 | |||
| 332 | 2 | bool EvaporativeFluidCoolerSingleSpeed_Impl::setStandardDesignCapacity(boost::optional<double> standardDesignCapacity) { | |
| 333 | 2 | bool result(false); | |
| 334 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (standardDesignCapacity) { |
| 335 | 2 | result = setDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::StandardDesignCapacity, standardDesignCapacity.get()); | |
| 336 | } else { | ||
| 337 | ✗ | resetStandardDesignCapacity(); | |
| 338 | ✗ | result = true; | |
| 339 | } | ||
| 340 | 2 | return result; | |
| 341 | } | ||
| 342 | |||
| 343 | 22 | void EvaporativeFluidCoolerSingleSpeed_Impl::resetStandardDesignCapacity() { | |
| 344 |
2/2✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
|
44 | bool result = setString(OS_EvaporativeFluidCooler_SingleSpeedFields::StandardDesignCapacity, ""); |
| 345 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 22 times.
|
22 | OS_ASSERT(result); |
| 346 | 22 | } | |
| 347 | |||
| 348 | 1 | bool EvaporativeFluidCoolerSingleSpeed_Impl::setUfactorTimesAreaValueatDesignAirFlowRate( | |
| 349 | boost::optional<double> ufactorTimesAreaValueatDesignAirFlowRate) { | ||
| 350 | 1 | bool result(false); | |
| 351 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (ufactorTimesAreaValueatDesignAirFlowRate) { |
| 352 | 1 | result = setDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::UfactorTimesAreaValueatDesignAirFlowRate, | |
| 353 | 1 | ufactorTimesAreaValueatDesignAirFlowRate.get()); | |
| 354 | } else { | ||
| 355 | ✗ | resetUfactorTimesAreaValueatDesignAirFlowRate(); | |
| 356 | ✗ | result = true; | |
| 357 | } | ||
| 358 | 1 | return result; | |
| 359 | } | ||
| 360 | |||
| 361 | ✗ | void EvaporativeFluidCoolerSingleSpeed_Impl::resetUfactorTimesAreaValueatDesignAirFlowRate() { | |
| 362 | ✗ | bool result = setString(OS_EvaporativeFluidCooler_SingleSpeedFields::UfactorTimesAreaValueatDesignAirFlowRate, ""); | |
| 363 | ✗ | OS_ASSERT(result); | |
| 364 | ✗ | } | |
| 365 | |||
| 366 | 22 | void EvaporativeFluidCoolerSingleSpeed_Impl::autosizeUfactorTimesAreaValueatDesignAirFlowRate() { | |
| 367 |
2/2✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
|
44 | bool result = setString(OS_EvaporativeFluidCooler_SingleSpeedFields::UfactorTimesAreaValueatDesignAirFlowRate, "autosize"); |
| 368 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 22 times.
|
22 | OS_ASSERT(result); |
| 369 | 22 | } | |
| 370 | |||
| 371 | 1 | bool EvaporativeFluidCoolerSingleSpeed_Impl::setDesignWaterFlowRate(boost::optional<double> designWaterFlowRate) { | |
| 372 | 1 | bool result(false); | |
| 373 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (designWaterFlowRate) { |
| 374 | 1 | result = setDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::DesignWaterFlowRate, designWaterFlowRate.get()); | |
| 375 | } else { | ||
| 376 | ✗ | resetDesignWaterFlowRate(); | |
| 377 | ✗ | result = true; | |
| 378 | } | ||
| 379 | 1 | return result; | |
| 380 | } | ||
| 381 | |||
| 382 | ✗ | void EvaporativeFluidCoolerSingleSpeed_Impl::resetDesignWaterFlowRate() { | |
| 383 | ✗ | bool result = setString(OS_EvaporativeFluidCooler_SingleSpeedFields::DesignWaterFlowRate, ""); | |
| 384 | ✗ | OS_ASSERT(result); | |
| 385 | ✗ | } | |
| 386 | |||
| 387 | 22 | void EvaporativeFluidCoolerSingleSpeed_Impl::autosizeDesignWaterFlowRate() { | |
| 388 |
2/2✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
|
44 | bool result = setString(OS_EvaporativeFluidCooler_SingleSpeedFields::DesignWaterFlowRate, "autosize"); |
| 389 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 22 times.
|
22 | OS_ASSERT(result); |
| 390 | 22 | } | |
| 391 | |||
| 392 | 1 | bool EvaporativeFluidCoolerSingleSpeed_Impl::setUserSpecifiedDesignCapacity(boost::optional<double> userSpecifiedDesignCapacity) { | |
| 393 | 1 | bool result(false); | |
| 394 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (userSpecifiedDesignCapacity) { |
| 395 | 1 | result = setDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::UserSpecifiedDesignCapacity, userSpecifiedDesignCapacity.get()); | |
| 396 | } else { | ||
| 397 | ✗ | resetUserSpecifiedDesignCapacity(); | |
| 398 | ✗ | result = true; | |
| 399 | } | ||
| 400 | 1 | return result; | |
| 401 | } | ||
| 402 | |||
| 403 | 22 | void EvaporativeFluidCoolerSingleSpeed_Impl::resetUserSpecifiedDesignCapacity() { | |
| 404 |
2/2✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
|
44 | bool result = setString(OS_EvaporativeFluidCooler_SingleSpeedFields::UserSpecifiedDesignCapacity, ""); |
| 405 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 22 times.
|
22 | OS_ASSERT(result); |
| 406 | 22 | } | |
| 407 | |||
| 408 | ✗ | bool EvaporativeFluidCoolerSingleSpeed_Impl::setDesignEnteringWaterTemperature(boost::optional<double> designEnteringWaterTemperature) { | |
| 409 | ✗ | bool result(false); | |
| 410 | ✗ | if (designEnteringWaterTemperature) { | |
| 411 | ✗ | result = setDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::DesignEnteringWaterTemperature, designEnteringWaterTemperature.get()); | |
| 412 | } | ||
| 413 | ✗ | return result; | |
| 414 | } | ||
| 415 | |||
| 416 | 23 | void EvaporativeFluidCoolerSingleSpeed_Impl::autosizeDesignEnteringWaterTemperature() { | |
| 417 |
2/2✓ Branch 1 taken 23 times.
✓ Branch 4 taken 23 times.
|
46 | bool result = setString(OS_EvaporativeFluidCooler_SingleSpeedFields::DesignEnteringWaterTemperature, "autosize"); |
| 418 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 23 times.
|
23 | OS_ASSERT(result); |
| 419 | 23 | } | |
| 420 | |||
| 421 | 23 | bool EvaporativeFluidCoolerSingleSpeed_Impl::setDesignEnteringAirTemperature(boost::optional<double> designEnteringAirTemperature) { | |
| 422 | 23 | bool result(false); | |
| 423 |
1/2✓ Branch 0 taken 23 times.
✗ Branch 1 not taken.
|
23 | if (designEnteringAirTemperature) { |
| 424 | 23 | result = setDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::DesignEnteringAirTemperature, designEnteringAirTemperature.get()); | |
| 425 | } | ||
| 426 | 23 | return result; | |
| 427 | } | ||
| 428 | |||
| 429 | 23 | bool EvaporativeFluidCoolerSingleSpeed_Impl::setDesignEnteringAirWetbulbTemperature(boost::optional<double> designEnteringAirWetbulbTemperature) { | |
| 430 | 23 | bool result(false); | |
| 431 |
1/2✓ Branch 0 taken 23 times.
✗ Branch 1 not taken.
|
23 | if (designEnteringAirWetbulbTemperature) { |
| 432 | result = | ||
| 433 | 23 | setDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::DesignEnteringAirWetbulbTemperature, designEnteringAirWetbulbTemperature.get()); | |
| 434 | } | ||
| 435 | 23 | return result; | |
| 436 | } | ||
| 437 | |||
| 438 | 25 | bool EvaporativeFluidCoolerSingleSpeed_Impl::setCapacityControl(const std::string& capacityControl) { | |
| 439 | 25 | bool result = setString(OS_EvaporativeFluidCooler_SingleSpeedFields::CapacityControl, capacityControl); | |
| 440 | 25 | return result; | |
| 441 | } | ||
| 442 | |||
| 443 | ✗ | void EvaporativeFluidCoolerSingleSpeed_Impl::resetCapacityControl() { | |
| 444 | ✗ | bool result = setString(OS_EvaporativeFluidCooler_SingleSpeedFields::CapacityControl, ""); | |
| 445 | ✗ | OS_ASSERT(result); | |
| 446 | ✗ | } | |
| 447 | |||
| 448 | 23 | bool EvaporativeFluidCoolerSingleSpeed_Impl::setSizingFactor(double sizingFactor) { | |
| 449 | 23 | bool result = setDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::SizingFactor, sizingFactor); | |
| 450 | 23 | return result; | |
| 451 | } | ||
| 452 | |||
| 453 | ✗ | void EvaporativeFluidCoolerSingleSpeed_Impl::resetSizingFactor() { | |
| 454 | ✗ | bool result = setString(OS_EvaporativeFluidCooler_SingleSpeedFields::SizingFactor, ""); | |
| 455 | ✗ | OS_ASSERT(result); | |
| 456 | ✗ | } | |
| 457 | |||
| 458 | 25 | bool EvaporativeFluidCoolerSingleSpeed_Impl::setEvaporationLossMode(const std::string& evaporationLossMode) { | |
| 459 | 25 | bool result = setString(OS_EvaporativeFluidCooler_SingleSpeedFields::EvaporationLossMode, evaporationLossMode); | |
| 460 | 25 | return result; | |
| 461 | } | ||
| 462 | |||
| 463 | ✗ | void EvaporativeFluidCoolerSingleSpeed_Impl::resetEvaporationLossMode() { | |
| 464 | ✗ | bool result = setString(OS_EvaporativeFluidCooler_SingleSpeedFields::EvaporationLossMode, ""); | |
| 465 | ✗ | OS_ASSERT(result); | |
| 466 | ✗ | } | |
| 467 | |||
| 468 | 1 | bool EvaporativeFluidCoolerSingleSpeed_Impl::setEvaporationLossFactor(boost::optional<double> evaporationLossFactor) { | |
| 469 | 1 | bool result(false); | |
| 470 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (evaporationLossFactor) { |
| 471 | 1 | result = setDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::EvaporationLossFactor, evaporationLossFactor.get()); | |
| 472 | } else { | ||
| 473 | ✗ | resetEvaporationLossFactor(); | |
| 474 | ✗ | result = true; | |
| 475 | } | ||
| 476 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 477 | 1 | return result; | |
| 478 | } | ||
| 479 | |||
| 480 | ✗ | void EvaporativeFluidCoolerSingleSpeed_Impl::resetEvaporationLossFactor() { | |
| 481 | ✗ | bool result = setString(OS_EvaporativeFluidCooler_SingleSpeedFields::EvaporationLossFactor, ""); | |
| 482 | ✗ | OS_ASSERT(result); | |
| 483 | ✗ | } | |
| 484 | |||
| 485 | 23 | bool EvaporativeFluidCoolerSingleSpeed_Impl::setDriftLossPercent(double driftLossPercent) { | |
| 486 | 23 | bool result = setDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::DriftLossPercent, driftLossPercent); | |
| 487 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 23 times.
|
23 | OS_ASSERT(result); |
| 488 | 23 | return result; | |
| 489 | } | ||
| 490 | |||
| 491 | ✗ | void EvaporativeFluidCoolerSingleSpeed_Impl::resetDriftLossPercent() { | |
| 492 | ✗ | bool result = setString(OS_EvaporativeFluidCooler_SingleSpeedFields::DriftLossPercent, ""); | |
| 493 | ✗ | OS_ASSERT(result); | |
| 494 | ✗ | } | |
| 495 | |||
| 496 | 25 | bool EvaporativeFluidCoolerSingleSpeed_Impl::setBlowdownCalculationMode(const std::string& blowdownCalculationMode) { | |
| 497 | 25 | bool result = setString(OS_EvaporativeFluidCooler_SingleSpeedFields::BlowdownCalculationMode, blowdownCalculationMode); | |
| 498 | 25 | return result; | |
| 499 | } | ||
| 500 | |||
| 501 | ✗ | void EvaporativeFluidCoolerSingleSpeed_Impl::resetBlowdownCalculationMode() { | |
| 502 | ✗ | bool result = setString(OS_EvaporativeFluidCooler_SingleSpeedFields::BlowdownCalculationMode, ""); | |
| 503 | ✗ | OS_ASSERT(result); | |
| 504 | ✗ | } | |
| 505 | |||
| 506 | 23 | bool EvaporativeFluidCoolerSingleSpeed_Impl::setBlowdownConcentrationRatio(double blowdownConcentrationRatio) { | |
| 507 | 23 | bool result = setDouble(OS_EvaporativeFluidCooler_SingleSpeedFields::BlowdownConcentrationRatio, blowdownConcentrationRatio); | |
| 508 | 23 | return result; | |
| 509 | } | ||
| 510 | |||
| 511 | ✗ | void EvaporativeFluidCoolerSingleSpeed_Impl::resetBlowdownConcentrationRatio() { | |
| 512 | ✗ | bool result = setString(OS_EvaporativeFluidCooler_SingleSpeedFields::BlowdownConcentrationRatio, ""); | |
| 513 | ✗ | OS_ASSERT(result); | |
| 514 | ✗ | } | |
| 515 | |||
| 516 | 3 | bool EvaporativeFluidCoolerSingleSpeed_Impl::setBlowdownMakeupWaterUsageSchedule(Schedule& schedule) { | |
| 517 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
12 | bool result = setSchedule(OS_EvaporativeFluidCooler_SingleSpeedFields::BlowdownMakeupWaterUsageScheduleName, |
| 518 | "EvaporativeFluidCoolerSingleSpeed", "Blowdown Makeup Water Usage", schedule); | ||
| 519 | 3 | return result; | |
| 520 | } | ||
| 521 | |||
| 522 | 22 | void EvaporativeFluidCoolerSingleSpeed_Impl::resetBlowdownMakeupWaterUsageSchedule() { | |
| 523 |
2/2✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
|
44 | bool result = setString(OS_EvaporativeFluidCooler_SingleSpeedFields::BlowdownMakeupWaterUsageScheduleName, ""); |
| 524 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 22 times.
|
22 | OS_ASSERT(result); |
| 525 | 22 | } | |
| 526 | |||
| 527 | ✗ | std::vector<std::string> EvaporativeFluidCoolerSingleSpeed_Impl::performanceInputMethodValues() const { | |
| 528 | ✗ | return EvaporativeFluidCoolerSingleSpeed::performanceInputMethodValues(); | |
| 529 | } | ||
| 530 | |||
| 531 | ✗ | std::vector<std::string> EvaporativeFluidCoolerSingleSpeed_Impl::capacityControlValues() const { | |
| 532 | ✗ | return EvaporativeFluidCoolerSingleSpeed::capacityControlValues(); | |
| 533 | } | ||
| 534 | |||
| 535 | ✗ | std::vector<std::string> EvaporativeFluidCoolerSingleSpeed_Impl::evaporationLossModeValues() const { | |
| 536 | ✗ | return EvaporativeFluidCoolerSingleSpeed::evaporationLossModeValues(); | |
| 537 | } | ||
| 538 | |||
| 539 | ✗ | std::vector<std::string> EvaporativeFluidCoolerSingleSpeed_Impl::blowdownCalculationModeValues() const { | |
| 540 | ✗ | return EvaporativeFluidCoolerSingleSpeed::blowdownCalculationModeValues(); | |
| 541 | } | ||
| 542 | |||
| 543 | ✗ | boost::optional<ModelObject> EvaporativeFluidCoolerSingleSpeed_Impl::blowdownMakeupWaterUsageScheduleAsModelObject() const { | |
| 544 | ✗ | OptionalModelObject result; | |
| 545 | ✗ | OptionalSchedule intermediate = blowdownMakeupWaterUsageSchedule(); | |
| 546 | ✗ | if (intermediate) { | |
| 547 | ✗ | result = *intermediate; | |
| 548 | } | ||
| 549 | ✗ | return result; | |
| 550 | ✗ | } | |
| 551 | |||
| 552 | ✗ | bool EvaporativeFluidCoolerSingleSpeed_Impl::setBlowdownMakeupWaterUsageScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) { | |
| 553 | ✗ | if (modelObject) { | |
| 554 | ✗ | OptionalSchedule intermediate = modelObject->optionalCast<Schedule>(); | |
| 555 | ✗ | if (intermediate) { | |
| 556 | ✗ | Schedule schedule(*intermediate); | |
| 557 | ✗ | return setBlowdownMakeupWaterUsageSchedule(schedule); | |
| 558 | ✗ | } else { | |
| 559 | ✗ | return false; | |
| 560 | } | ||
| 561 | ✗ | } else { | |
| 562 | ✗ | resetBlowdownMakeupWaterUsageSchedule(); | |
| 563 | } | ||
| 564 | ✗ | return true; | |
| 565 | } | ||
| 566 | |||
| 567 | ✗ | boost::optional<double> EvaporativeFluidCoolerSingleSpeed_Impl::autosizedDesignAirFlowRate() const { | |
| 568 | ✗ | return getAutosizedValue("Design Air Flow Rate", "m3/s"); | |
| 569 | } | ||
| 570 | |||
| 571 | ✗ | boost::optional<double> EvaporativeFluidCoolerSingleSpeed_Impl::autosizedFanPoweratDesignAirFlowRate() const { | |
| 572 | ✗ | return getAutosizedValue("Fan Power at Design Air Flow Rate", "W"); | |
| 573 | } | ||
| 574 | |||
| 575 | ✗ | boost::optional<double> EvaporativeFluidCoolerSingleSpeed_Impl::autosizedUfactorTimesAreaValueatDesignAirFlowRate() const { | |
| 576 | ✗ | return getAutosizedValue("U-Factor Times Area Value at Design Air Flow Rate", "W/C"); | |
| 577 | } | ||
| 578 | |||
| 579 | ✗ | boost::optional<double> EvaporativeFluidCoolerSingleSpeed_Impl::autosizedDesignWaterFlowRate() const { | |
| 580 | ✗ | return getAutosizedValue("Design Water Flow Rate", "m3/s"); | |
| 581 | } | ||
| 582 | |||
| 583 | ✗ | boost::optional<double> EvaporativeFluidCoolerSingleSpeed_Impl::autosizedDesignEnteringWaterTemperature() const { | |
| 584 | ✗ | return getAutosizedValue("Design Entering Water Temperature", "C"); | |
| 585 | } | ||
| 586 | |||
| 587 | ✗ | void EvaporativeFluidCoolerSingleSpeed_Impl::autosize() { | |
| 588 | ✗ | autosizeDesignAirFlowRate(); | |
| 589 | ✗ | autosizeFanPoweratDesignAirFlowRate(); | |
| 590 | ✗ | autosizeUfactorTimesAreaValueatDesignAirFlowRate(); | |
| 591 | ✗ | autosizeDesignWaterFlowRate(); | |
| 592 | ✗ | autosizeDesignEnteringWaterTemperature(); | |
| 593 | ✗ | } | |
| 594 | |||
| 595 | ✗ | void EvaporativeFluidCoolerSingleSpeed_Impl::applySizingValues() { | |
| 596 | ✗ | boost::optional<double> val; | |
| 597 | ✗ | val = autosizedDesignAirFlowRate(); | |
| 598 | ✗ | if (val) { | |
| 599 | ✗ | setDesignAirFlowRate(val.get()); | |
| 600 | } | ||
| 601 | |||
| 602 | ✗ | val = autosizedFanPoweratDesignAirFlowRate(); | |
| 603 | ✗ | if (val) { | |
| 604 | ✗ | setFanPoweratDesignAirFlowRate(val.get()); | |
| 605 | } | ||
| 606 | |||
| 607 | ✗ | val = autosizedUfactorTimesAreaValueatDesignAirFlowRate(); | |
| 608 | ✗ | if (val) { | |
| 609 | ✗ | setUfactorTimesAreaValueatDesignAirFlowRate(val.get()); | |
| 610 | } | ||
| 611 | |||
| 612 | ✗ | val = autosizedDesignWaterFlowRate(); | |
| 613 | ✗ | if (val) { | |
| 614 | ✗ | setDesignWaterFlowRate(val.get()); | |
| 615 | } | ||
| 616 | |||
| 617 | ✗ | val = autosizedDesignEnteringWaterTemperature(); | |
| 618 | ✗ | if (val) { | |
| 619 | ✗ | setDesignEnteringWaterTemperature(val.get()); | |
| 620 | } | ||
| 621 | ✗ | } | |
| 622 | |||
| 623 | 4 | ComponentType EvaporativeFluidCoolerSingleSpeed_Impl::componentType() const { | |
| 624 |
1/1✓ Branch 1 taken 4 times.
|
4 | return ComponentType::Cooling; |
| 625 | } | ||
| 626 | |||
| 627 | ✗ | std::vector<FuelType> EvaporativeFluidCoolerSingleSpeed_Impl::coolingFuelTypes() const { | |
| 628 | ✗ | return {FuelType::Electricity}; | |
| 629 | } | ||
| 630 | |||
| 631 | ✗ | std::vector<FuelType> EvaporativeFluidCoolerSingleSpeed_Impl::heatingFuelTypes() const { | |
| 632 | ✗ | return {}; | |
| 633 | } | ||
| 634 | |||
| 635 | ✗ | std::vector<AppGFuelType> EvaporativeFluidCoolerSingleSpeed_Impl::appGHeatingFuelTypes() const { | |
| 636 | ✗ | return {}; | |
| 637 | } | ||
| 638 | |||
| 639 | } // namespace detail | ||
| 640 | |||
| 641 | 22 | EvaporativeFluidCoolerSingleSpeed::EvaporativeFluidCoolerSingleSpeed(const Model& model) | |
| 642 | 22 | : StraightComponent(EvaporativeFluidCoolerSingleSpeed::iddObjectType(), model) { | |
| 643 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 22 times.
✗ Branch 5 not taken.
|
22 | OS_ASSERT(getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()); |
| 644 | |||
| 645 | 22 | bool ok = true; | |
| 646 |
1/1✓ Branch 1 taken 22 times.
|
22 | autosizeDesignAirFlowRate(); |
| 647 |
1/1✓ Branch 1 taken 22 times.
|
22 | autosizeFanPoweratDesignAirFlowRate(); |
| 648 |
1/1✓ Branch 1 taken 22 times.
|
22 | ok = setDesignSprayWaterFlowRate(0.03); |
| 649 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 22 times.
✗ Branch 3 not taken.
|
22 | OS_ASSERT(ok); |
| 650 |
2/2✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
|
22 | ok = setPerformanceInputMethod("UFactorTimesAreaAndDesignWaterFlowRate"); |
| 651 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 22 times.
✗ Branch 3 not taken.
|
22 | OS_ASSERT(ok); |
| 652 |
1/1✓ Branch 1 taken 22 times.
|
22 | ok = setHeatRejectionCapacityandNominalCapacitySizingRatio(1.25); |
| 653 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 22 times.
✗ Branch 3 not taken.
|
22 | OS_ASSERT(ok); |
| 654 |
1/1✓ Branch 1 taken 22 times.
|
22 | resetStandardDesignCapacity(); |
| 655 |
1/1✓ Branch 1 taken 22 times.
|
22 | autosizeUfactorTimesAreaValueatDesignAirFlowRate(); |
| 656 |
1/1✓ Branch 1 taken 22 times.
|
22 | autosizeDesignWaterFlowRate(); |
| 657 |
1/1✓ Branch 1 taken 22 times.
|
22 | resetUserSpecifiedDesignCapacity(); |
| 658 |
1/1✓ Branch 1 taken 22 times.
|
22 | autosizeDesignEnteringWaterTemperature(); |
| 659 |
1/1✓ Branch 1 taken 22 times.
|
22 | ok = setDesignEnteringAirTemperature(35.0); |
| 660 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 22 times.
✗ Branch 3 not taken.
|
22 | OS_ASSERT(ok); |
| 661 |
1/1✓ Branch 1 taken 22 times.
|
22 | ok = setDesignEnteringAirWetbulbTemperature(25.6); |
| 662 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 22 times.
✗ Branch 3 not taken.
|
22 | OS_ASSERT(ok); |
| 663 |
2/2✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
|
22 | ok = setCapacityControl("FanCycling"); |
| 664 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 22 times.
✗ Branch 3 not taken.
|
22 | OS_ASSERT(ok); |
| 665 |
1/1✓ Branch 1 taken 22 times.
|
22 | ok = setSizingFactor(1.0); |
| 666 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 22 times.
✗ Branch 3 not taken.
|
22 | OS_ASSERT(ok); |
| 667 |
2/2✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
|
22 | ok = setEvaporationLossMode("SaturatedExit"); |
| 668 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 22 times.
✗ Branch 3 not taken.
|
22 | OS_ASSERT(ok); |
| 669 |
1/1✓ Branch 1 taken 22 times.
|
22 | ok = setDriftLossPercent(0.008); |
| 670 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 22 times.
✗ Branch 3 not taken.
|
22 | OS_ASSERT(ok); |
| 671 |
2/2✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
|
22 | ok = setBlowdownCalculationMode("ConcentrationRatio"); |
| 672 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 22 times.
✗ Branch 3 not taken.
|
22 | OS_ASSERT(ok); |
| 673 |
1/1✓ Branch 1 taken 22 times.
|
22 | ok = setBlowdownConcentrationRatio(3.0); |
| 674 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 22 times.
✗ Branch 3 not taken.
|
22 | OS_ASSERT(ok); |
| 675 |
1/1✓ Branch 1 taken 22 times.
|
22 | resetBlowdownMakeupWaterUsageSchedule(); |
| 676 |
2/2✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
|
44 | setString(OS_EvaporativeFluidCooler_SingleSpeedFields::SupplyWaterStorageTankName, ""); |
| 677 | 22 | } | |
| 678 | |||
| 679 | 7774 | IddObjectType EvaporativeFluidCoolerSingleSpeed::iddObjectType() { | |
| 680 |
1/1✓ Branch 1 taken 7774 times.
|
7774 | return {IddObjectType::OS_EvaporativeFluidCooler_SingleSpeed}; |
| 681 | } | ||
| 682 | |||
| 683 | ✗ | std::vector<std::string> EvaporativeFluidCoolerSingleSpeed::performanceInputMethodValues() { | |
| 684 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), | |
| 685 | ✗ | OS_EvaporativeFluidCooler_SingleSpeedFields::PerformanceInputMethod); | |
| 686 | } | ||
| 687 | |||
| 688 | ✗ | std::vector<std::string> EvaporativeFluidCoolerSingleSpeed::capacityControlValues() { | |
| 689 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_EvaporativeFluidCooler_SingleSpeedFields::CapacityControl); | |
| 690 | } | ||
| 691 | |||
| 692 | ✗ | std::vector<std::string> EvaporativeFluidCoolerSingleSpeed::evaporationLossModeValues() { | |
| 693 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_EvaporativeFluidCooler_SingleSpeedFields::EvaporationLossMode); | |
| 694 | } | ||
| 695 | |||
| 696 | ✗ | std::vector<std::string> EvaporativeFluidCoolerSingleSpeed::blowdownCalculationModeValues() { | |
| 697 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), | |
| 698 | ✗ | OS_EvaporativeFluidCooler_SingleSpeedFields::BlowdownCalculationMode); | |
| 699 | } | ||
| 700 | |||
| 701 | 4 | boost::optional<double> EvaporativeFluidCoolerSingleSpeed::designAirFlowRate() const { | |
| 702 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->designAirFlowRate(); |
| 703 | } | ||
| 704 | |||
| 705 | 5 | bool EvaporativeFluidCoolerSingleSpeed::isDesignAirFlowRateAutosized() const { | |
| 706 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->isDesignAirFlowRateAutosized(); |
| 707 | } | ||
| 708 | |||
| 709 | 4 | boost::optional<double> EvaporativeFluidCoolerSingleSpeed::fanPoweratDesignAirFlowRate() const { | |
| 710 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->fanPoweratDesignAirFlowRate(); |
| 711 | } | ||
| 712 | |||
| 713 | 5 | bool EvaporativeFluidCoolerSingleSpeed::isFanPoweratDesignAirFlowRateAutosized() const { | |
| 714 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->isFanPoweratDesignAirFlowRateAutosized(); |
| 715 | } | ||
| 716 | |||
| 717 | 8 | double EvaporativeFluidCoolerSingleSpeed::designSprayWaterFlowRate() const { | |
| 718 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->designSprayWaterFlowRate(); |
| 719 | } | ||
| 720 | |||
| 721 | 8 | std::string EvaporativeFluidCoolerSingleSpeed::performanceInputMethod() const { | |
| 722 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->performanceInputMethod(); |
| 723 | } | ||
| 724 | |||
| 725 | 2 | double EvaporativeFluidCoolerSingleSpeed::heatRejectionCapacityandNominalCapacitySizingRatio() const { | |
| 726 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->heatRejectionCapacityandNominalCapacitySizingRatio(); |
| 727 | } | ||
| 728 | |||
| 729 | 5 | boost::optional<double> EvaporativeFluidCoolerSingleSpeed::standardDesignCapacity() const { | |
| 730 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->standardDesignCapacity(); |
| 731 | } | ||
| 732 | |||
| 733 | 1 | boost::optional<double> EvaporativeFluidCoolerSingleSpeed::ufactorTimesAreaValueatDesignAirFlowRate() const { | |
| 734 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->ufactorTimesAreaValueatDesignAirFlowRate(); |
| 735 | } | ||
| 736 | |||
| 737 | 3 | bool EvaporativeFluidCoolerSingleSpeed::isUfactorTimesAreaValueatDesignAirFlowRateAutosized() const { | |
| 738 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->isUfactorTimesAreaValueatDesignAirFlowRateAutosized(); |
| 739 | } | ||
| 740 | |||
| 741 | 1 | boost::optional<double> EvaporativeFluidCoolerSingleSpeed::designWaterFlowRate() const { | |
| 742 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->designWaterFlowRate(); |
| 743 | } | ||
| 744 | |||
| 745 | 3 | bool EvaporativeFluidCoolerSingleSpeed::isDesignWaterFlowRateAutosized() const { | |
| 746 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->isDesignWaterFlowRateAutosized(); |
| 747 | } | ||
| 748 | |||
| 749 | 4 | boost::optional<double> EvaporativeFluidCoolerSingleSpeed::userSpecifiedDesignCapacity() const { | |
| 750 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->userSpecifiedDesignCapacity(); |
| 751 | } | ||
| 752 | |||
| 753 | 1 | boost::optional<double> EvaporativeFluidCoolerSingleSpeed::designEnteringWaterTemperature() const { | |
| 754 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->designEnteringWaterTemperature(); |
| 755 | } | ||
| 756 | |||
| 757 | 4 | bool EvaporativeFluidCoolerSingleSpeed::isDesignEnteringWaterTemperatureAutosized() const { | |
| 758 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->isDesignEnteringWaterTemperatureAutosized(); |
| 759 | } | ||
| 760 | |||
| 761 | 4 | double EvaporativeFluidCoolerSingleSpeed::designEnteringAirTemperature() const { | |
| 762 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->designEnteringAirTemperature(); |
| 763 | } | ||
| 764 | |||
| 765 | 4 | double EvaporativeFluidCoolerSingleSpeed::designEnteringAirWetbulbTemperature() const { | |
| 766 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->designEnteringAirWetbulbTemperature(); |
| 767 | } | ||
| 768 | |||
| 769 | 6 | std::string EvaporativeFluidCoolerSingleSpeed::capacityControl() const { | |
| 770 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->capacityControl(); |
| 771 | } | ||
| 772 | |||
| 773 | ✗ | bool EvaporativeFluidCoolerSingleSpeed::isCapacityControlDefaulted() const { | |
| 774 | ✗ | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->isCapacityControlDefaulted(); | |
| 775 | } | ||
| 776 | |||
| 777 | 4 | double EvaporativeFluidCoolerSingleSpeed::sizingFactor() const { | |
| 778 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->sizingFactor(); |
| 779 | } | ||
| 780 | |||
| 781 | ✗ | bool EvaporativeFluidCoolerSingleSpeed::isSizingFactorDefaulted() const { | |
| 782 | ✗ | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->isSizingFactorDefaulted(); | |
| 783 | } | ||
| 784 | |||
| 785 | 6 | std::string EvaporativeFluidCoolerSingleSpeed::evaporationLossMode() const { | |
| 786 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->evaporationLossMode(); |
| 787 | } | ||
| 788 | |||
| 789 | ✗ | bool EvaporativeFluidCoolerSingleSpeed::isEvaporationLossModeDefaulted() const { | |
| 790 | ✗ | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->isEvaporationLossModeDefaulted(); | |
| 791 | } | ||
| 792 | |||
| 793 | 1 | boost::optional<double> EvaporativeFluidCoolerSingleSpeed::evaporationLossFactor() const { | |
| 794 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->evaporationLossFactor(); |
| 795 | } | ||
| 796 | |||
| 797 | 4 | double EvaporativeFluidCoolerSingleSpeed::driftLossPercent() const { | |
| 798 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->driftLossPercent(); |
| 799 | } | ||
| 800 | |||
| 801 | ✗ | bool EvaporativeFluidCoolerSingleSpeed::isDriftLossPercentDefaulted() const { | |
| 802 | ✗ | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->isDriftLossPercentDefaulted(); | |
| 803 | } | ||
| 804 | |||
| 805 | 6 | std::string EvaporativeFluidCoolerSingleSpeed::blowdownCalculationMode() const { | |
| 806 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->blowdownCalculationMode(); |
| 807 | } | ||
| 808 | |||
| 809 | ✗ | bool EvaporativeFluidCoolerSingleSpeed::isBlowdownCalculationModeDefaulted() const { | |
| 810 | ✗ | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->isBlowdownCalculationModeDefaulted(); | |
| 811 | } | ||
| 812 | |||
| 813 | 4 | double EvaporativeFluidCoolerSingleSpeed::blowdownConcentrationRatio() const { | |
| 814 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->blowdownConcentrationRatio(); |
| 815 | } | ||
| 816 | |||
| 817 | ✗ | bool EvaporativeFluidCoolerSingleSpeed::isBlowdownConcentrationRatioDefaulted() const { | |
| 818 | ✗ | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->isBlowdownConcentrationRatioDefaulted(); | |
| 819 | } | ||
| 820 | |||
| 821 | 8 | boost::optional<Schedule> EvaporativeFluidCoolerSingleSpeed::blowdownMakeupWaterUsageSchedule() const { | |
| 822 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->blowdownMakeupWaterUsageSchedule(); |
| 823 | } | ||
| 824 | |||
| 825 | 5 | bool EvaporativeFluidCoolerSingleSpeed::setDesignAirFlowRate(double designAirFlowRate) { | |
| 826 |
2/2✓ Branch 3 taken 5 times.
✓ Branch 6 taken 5 times.
|
5 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->setDesignAirFlowRate(designAirFlowRate); |
| 827 | } | ||
| 828 | |||
| 829 | 23 | void EvaporativeFluidCoolerSingleSpeed::autosizeDesignAirFlowRate() { | |
| 830 |
1/1✓ Branch 3 taken 23 times.
|
23 | getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->autosizeDesignAirFlowRate(); |
| 831 | 23 | } | |
| 832 | |||
| 833 | 5 | bool EvaporativeFluidCoolerSingleSpeed::setFanPoweratDesignAirFlowRate(double fanPoweratDesignAirFlowRate) { | |
| 834 |
2/2✓ Branch 3 taken 5 times.
✓ Branch 6 taken 5 times.
|
5 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->setFanPoweratDesignAirFlowRate(fanPoweratDesignAirFlowRate); |
| 835 | } | ||
| 836 | |||
| 837 | 23 | void EvaporativeFluidCoolerSingleSpeed::autosizeFanPoweratDesignAirFlowRate() { | |
| 838 |
1/1✓ Branch 3 taken 23 times.
|
23 | getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->autosizeFanPoweratDesignAirFlowRate(); |
| 839 | 23 | } | |
| 840 | |||
| 841 | 27 | bool EvaporativeFluidCoolerSingleSpeed::setDesignSprayWaterFlowRate(double designSprayWaterFlowRate) { | |
| 842 |
1/1✓ Branch 3 taken 27 times.
|
27 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->setDesignSprayWaterFlowRate(designSprayWaterFlowRate); |
| 843 | } | ||
| 844 | |||
| 845 | 27 | bool EvaporativeFluidCoolerSingleSpeed::setPerformanceInputMethod(const std::string& performanceInputMethod) { | |
| 846 |
1/1✓ Branch 3 taken 27 times.
|
27 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->setPerformanceInputMethod(performanceInputMethod); |
| 847 | } | ||
| 848 | |||
| 849 | 23 | bool EvaporativeFluidCoolerSingleSpeed::setHeatRejectionCapacityandNominalCapacitySizingRatio( | |
| 850 | double heatRejectionCapacityandNominalCapacitySizingRatio) { | ||
| 851 |
1/1✓ Branch 3 taken 23 times.
|
46 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->setHeatRejectionCapacityandNominalCapacitySizingRatio( |
| 852 | 46 | heatRejectionCapacityandNominalCapacitySizingRatio); | |
| 853 | } | ||
| 854 | |||
| 855 | 2 | bool EvaporativeFluidCoolerSingleSpeed::setStandardDesignCapacity(double standardDesignCapacity) { | |
| 856 |
2/2✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
|
2 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->setStandardDesignCapacity(standardDesignCapacity); |
| 857 | } | ||
| 858 | |||
| 859 | 22 | void EvaporativeFluidCoolerSingleSpeed::resetStandardDesignCapacity() { | |
| 860 |
1/1✓ Branch 3 taken 22 times.
|
22 | getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->resetStandardDesignCapacity(); |
| 861 | 22 | } | |
| 862 | |||
| 863 | 1 | bool EvaporativeFluidCoolerSingleSpeed::setUfactorTimesAreaValueatDesignAirFlowRate(double ufactorTimesAreaValueatDesignAirFlowRate) { | |
| 864 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
2 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->setUfactorTimesAreaValueatDesignAirFlowRate( |
| 865 | 2 | ufactorTimesAreaValueatDesignAirFlowRate); | |
| 866 | } | ||
| 867 | |||
| 868 | ✗ | void EvaporativeFluidCoolerSingleSpeed::resetUfactorTimesAreaValueatDesignAirFlowRate() { | |
| 869 | ✗ | getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->resetUfactorTimesAreaValueatDesignAirFlowRate(); | |
| 870 | ✗ | } | |
| 871 | |||
| 872 | 22 | void EvaporativeFluidCoolerSingleSpeed::autosizeUfactorTimesAreaValueatDesignAirFlowRate() { | |
| 873 |
1/1✓ Branch 3 taken 22 times.
|
22 | getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->autosizeUfactorTimesAreaValueatDesignAirFlowRate(); |
| 874 | 22 | } | |
| 875 | |||
| 876 | 1 | bool EvaporativeFluidCoolerSingleSpeed::setDesignWaterFlowRate(double designWaterFlowRate) { | |
| 877 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->setDesignWaterFlowRate(designWaterFlowRate); |
| 878 | } | ||
| 879 | |||
| 880 | ✗ | void EvaporativeFluidCoolerSingleSpeed::resetDesignWaterFlowRate() { | |
| 881 | ✗ | getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->resetDesignWaterFlowRate(); | |
| 882 | ✗ | } | |
| 883 | |||
| 884 | 22 | void EvaporativeFluidCoolerSingleSpeed::autosizeDesignWaterFlowRate() { | |
| 885 |
1/1✓ Branch 3 taken 22 times.
|
22 | getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->autosizeDesignWaterFlowRate(); |
| 886 | 22 | } | |
| 887 | |||
| 888 | 1 | bool EvaporativeFluidCoolerSingleSpeed::setUserSpecifiedDesignCapacity(double userSpecifiedDesignCapacity) { | |
| 889 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->setUserSpecifiedDesignCapacity(userSpecifiedDesignCapacity); |
| 890 | } | ||
| 891 | |||
| 892 | 22 | void EvaporativeFluidCoolerSingleSpeed::resetUserSpecifiedDesignCapacity() { | |
| 893 |
1/1✓ Branch 3 taken 22 times.
|
22 | getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->resetUserSpecifiedDesignCapacity(); |
| 894 | 22 | } | |
| 895 | |||
| 896 | ✗ | bool EvaporativeFluidCoolerSingleSpeed::setDesignEnteringWaterTemperature(double designEnteringWaterTemperature) { | |
| 897 | ✗ | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->setDesignEnteringWaterTemperature(designEnteringWaterTemperature); | |
| 898 | } | ||
| 899 | |||
| 900 | 23 | void EvaporativeFluidCoolerSingleSpeed::autosizeDesignEnteringWaterTemperature() { | |
| 901 |
1/1✓ Branch 3 taken 23 times.
|
23 | getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->autosizeDesignEnteringWaterTemperature(); |
| 902 | 23 | } | |
| 903 | |||
| 904 | 23 | bool EvaporativeFluidCoolerSingleSpeed::setDesignEnteringAirTemperature(double designEnteringAirTemperature) { | |
| 905 |
2/2✓ Branch 3 taken 23 times.
✓ Branch 6 taken 23 times.
|
23 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->setDesignEnteringAirTemperature(designEnteringAirTemperature); |
| 906 | } | ||
| 907 | |||
| 908 | 23 | bool EvaporativeFluidCoolerSingleSpeed::setDesignEnteringAirWetbulbTemperature(double designEnteringAirWetbulbTemperature) { | |
| 909 |
2/2✓ Branch 3 taken 23 times.
✓ Branch 6 taken 23 times.
|
23 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->setDesignEnteringAirWetbulbTemperature(designEnteringAirWetbulbTemperature); |
| 910 | } | ||
| 911 | |||
| 912 | 25 | bool EvaporativeFluidCoolerSingleSpeed::setCapacityControl(const std::string& capacityControl) { | |
| 913 |
1/1✓ Branch 3 taken 25 times.
|
25 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->setCapacityControl(capacityControl); |
| 914 | } | ||
| 915 | |||
| 916 | ✗ | void EvaporativeFluidCoolerSingleSpeed::resetCapacityControl() { | |
| 917 | ✗ | getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->resetCapacityControl(); | |
| 918 | ✗ | } | |
| 919 | |||
| 920 | 23 | bool EvaporativeFluidCoolerSingleSpeed::setSizingFactor(double sizingFactor) { | |
| 921 |
1/1✓ Branch 3 taken 23 times.
|
23 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->setSizingFactor(sizingFactor); |
| 922 | } | ||
| 923 | |||
| 924 | ✗ | void EvaporativeFluidCoolerSingleSpeed::resetSizingFactor() { | |
| 925 | ✗ | getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->resetSizingFactor(); | |
| 926 | ✗ | } | |
| 927 | |||
| 928 | 25 | bool EvaporativeFluidCoolerSingleSpeed::setEvaporationLossMode(const std::string& evaporationLossMode) { | |
| 929 |
1/1✓ Branch 3 taken 25 times.
|
25 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->setEvaporationLossMode(evaporationLossMode); |
| 930 | } | ||
| 931 | |||
| 932 | ✗ | void EvaporativeFluidCoolerSingleSpeed::resetEvaporationLossMode() { | |
| 933 | ✗ | getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->resetEvaporationLossMode(); | |
| 934 | ✗ | } | |
| 935 | |||
| 936 | 1 | bool EvaporativeFluidCoolerSingleSpeed::setEvaporationLossFactor(double evaporationLossFactor) { | |
| 937 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->setEvaporationLossFactor(evaporationLossFactor); |
| 938 | } | ||
| 939 | |||
| 940 | ✗ | void EvaporativeFluidCoolerSingleSpeed::resetEvaporationLossFactor() { | |
| 941 | ✗ | getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->resetEvaporationLossFactor(); | |
| 942 | ✗ | } | |
| 943 | |||
| 944 | 23 | bool EvaporativeFluidCoolerSingleSpeed::setDriftLossPercent(double driftLossPercent) { | |
| 945 |
1/1✓ Branch 3 taken 23 times.
|
23 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->setDriftLossPercent(driftLossPercent); |
| 946 | } | ||
| 947 | |||
| 948 | ✗ | void EvaporativeFluidCoolerSingleSpeed::resetDriftLossPercent() { | |
| 949 | ✗ | getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->resetDriftLossPercent(); | |
| 950 | ✗ | } | |
| 951 | |||
| 952 | 25 | bool EvaporativeFluidCoolerSingleSpeed::setBlowdownCalculationMode(const std::string& blowdownCalculationMode) { | |
| 953 |
1/1✓ Branch 3 taken 25 times.
|
25 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->setBlowdownCalculationMode(blowdownCalculationMode); |
| 954 | } | ||
| 955 | |||
| 956 | ✗ | void EvaporativeFluidCoolerSingleSpeed::resetBlowdownCalculationMode() { | |
| 957 | ✗ | getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->resetBlowdownCalculationMode(); | |
| 958 | ✗ | } | |
| 959 | |||
| 960 | 23 | bool EvaporativeFluidCoolerSingleSpeed::setBlowdownConcentrationRatio(double blowdownConcentrationRatio) { | |
| 961 |
1/1✓ Branch 3 taken 23 times.
|
23 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->setBlowdownConcentrationRatio(blowdownConcentrationRatio); |
| 962 | } | ||
| 963 | |||
| 964 | ✗ | void EvaporativeFluidCoolerSingleSpeed::resetBlowdownConcentrationRatio() { | |
| 965 | ✗ | getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->resetBlowdownConcentrationRatio(); | |
| 966 | ✗ | } | |
| 967 | |||
| 968 | 3 | bool EvaporativeFluidCoolerSingleSpeed::setBlowdownMakeupWaterUsageSchedule(Schedule& schedule) { | |
| 969 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->setBlowdownMakeupWaterUsageSchedule(schedule); |
| 970 | } | ||
| 971 | |||
| 972 | 22 | void EvaporativeFluidCoolerSingleSpeed::resetBlowdownMakeupWaterUsageSchedule() { | |
| 973 |
1/1✓ Branch 3 taken 22 times.
|
22 | getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->resetBlowdownMakeupWaterUsageSchedule(); |
| 974 | 22 | } | |
| 975 | |||
| 976 | /// @cond | ||
| 977 | 6 | EvaporativeFluidCoolerSingleSpeed::EvaporativeFluidCoolerSingleSpeed(std::shared_ptr<detail::EvaporativeFluidCoolerSingleSpeed_Impl> impl) | |
| 978 |
1/1✓ Branch 3 taken 6 times.
|
6 | : StraightComponent(std::move(impl)) {} |
| 979 | /// @endcond | ||
| 980 | |||
| 981 | ✗ | boost::optional<double> EvaporativeFluidCoolerSingleSpeed::autosizedDesignAirFlowRate() const { | |
| 982 | ✗ | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->autosizedDesignAirFlowRate(); | |
| 983 | } | ||
| 984 | |||
| 985 | ✗ | boost::optional<double> EvaporativeFluidCoolerSingleSpeed::autosizedFanPoweratDesignAirFlowRate() const { | |
| 986 | ✗ | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->autosizedFanPoweratDesignAirFlowRate(); | |
| 987 | } | ||
| 988 | |||
| 989 | ✗ | boost::optional<double> EvaporativeFluidCoolerSingleSpeed::autosizedUfactorTimesAreaValueatDesignAirFlowRate() const { | |
| 990 | ✗ | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->autosizedUfactorTimesAreaValueatDesignAirFlowRate(); | |
| 991 | } | ||
| 992 | |||
| 993 | ✗ | boost::optional<double> EvaporativeFluidCoolerSingleSpeed::autosizedDesignWaterFlowRate() const { | |
| 994 | ✗ | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->autosizedDesignWaterFlowRate(); | |
| 995 | } | ||
| 996 | |||
| 997 | ✗ | boost::optional<double> EvaporativeFluidCoolerSingleSpeed::autosizedDesignEnteringWaterTemperature() const { | |
| 998 | ✗ | return getImpl<detail::EvaporativeFluidCoolerSingleSpeed_Impl>()->autosizedDesignEnteringWaterTemperature(); | |
| 999 | } | ||
| 1000 | |||
| 1001 | } // namespace model | ||
| 1002 | } // namespace openstudio | ||
| 1003 |