src/model/EvaporativeCoolerIndirectResearchSpecial.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 "AirLoopHVACOutdoorAirSystem.hpp" | ||
| 7 | #include "AirLoopHVACOutdoorAirSystem_Impl.hpp" | ||
| 8 | #include "EvaporativeCoolerIndirectResearchSpecial.hpp" | ||
| 9 | #include "EvaporativeCoolerIndirectResearchSpecial_Impl.hpp" | ||
| 10 | #include "Schedule.hpp" | ||
| 11 | #include "Schedule_Impl.hpp" | ||
| 12 | #include "Model.hpp" | ||
| 13 | #include "Node.hpp" | ||
| 14 | #include "Node_Impl.hpp" | ||
| 15 | #include "Curve.hpp" | ||
| 16 | #include "Curve_Impl.hpp" | ||
| 17 | #include "ScheduleTypeLimits.hpp" | ||
| 18 | #include "ScheduleTypeRegistry.hpp" | ||
| 19 | |||
| 20 | // containing ZoneHVAC Component | ||
| 21 | #include "ZoneHVACEvaporativeCoolerUnit.hpp" | ||
| 22 | #include "ZoneHVACEvaporativeCoolerUnit_Impl.hpp" | ||
| 23 | |||
| 24 | #include "../utilities/core/Assert.hpp" | ||
| 25 | #include "../utilities/data/DataEnums.hpp" | ||
| 26 | |||
| 27 | #include <utilities/idd/OS_EvaporativeCooler_Indirect_ResearchSpecial_FieldEnums.hxx> | ||
| 28 | #include <utilities/idd/IddEnums.hxx> | ||
| 29 | |||
| 30 | namespace openstudio { | ||
| 31 | namespace model { | ||
| 32 | |||
| 33 | namespace detail { | ||
| 34 | |||
| 35 | 8 | EvaporativeCoolerIndirectResearchSpecial_Impl::EvaporativeCoolerIndirectResearchSpecial_Impl(const IdfObject& idfObject, Model_Impl* model, | |
| 36 | 8 | bool keepHandle) | |
| 37 | 8 | : StraightComponent_Impl(idfObject, model, keepHandle) { | |
| 38 |
4/6✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 8 times.
✗ Branch 13 not taken.
|
8 | OS_ASSERT(idfObject.iddObject().type() == EvaporativeCoolerIndirectResearchSpecial::iddObjectType()); |
| 39 | 8 | } | |
| 40 | |||
| 41 | ✗ | EvaporativeCoolerIndirectResearchSpecial_Impl::EvaporativeCoolerIndirectResearchSpecial_Impl( | |
| 42 | ✗ | const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle) | |
| 43 | ✗ | : StraightComponent_Impl(other, model, keepHandle) { | |
| 44 | ✗ | OS_ASSERT(other.iddObject().type() == EvaporativeCoolerIndirectResearchSpecial::iddObjectType()); | |
| 45 | ✗ | } | |
| 46 | |||
| 47 | 7 | EvaporativeCoolerIndirectResearchSpecial_Impl::EvaporativeCoolerIndirectResearchSpecial_Impl( | |
| 48 | 7 | const EvaporativeCoolerIndirectResearchSpecial_Impl& other, Model_Impl* model, bool keepHandle) | |
| 49 | 7 | : StraightComponent_Impl(other, model, keepHandle) {} | |
| 50 | |||
| 51 | ✗ | const std::vector<std::string>& EvaporativeCoolerIndirectResearchSpecial_Impl::outputVariableNames() const { | |
| 52 | static const std::vector<std::string> result{ | ||
| 53 | "Evaporative Cooler Total Stage Effectiveness", | ||
| 54 | "Evaporative Cooler Part Load Ratio", | ||
| 55 | "Evaporative Cooler Dewpoint Bound Status", | ||
| 56 | "Evaporative Cooler Operating Mode Satus", | ||
| 57 | "Evaporative Cooler Electricity Energy", | ||
| 58 | "Evaporative Cooler Electricity Rate" | ||
| 59 | |||
| 60 | // Doc doesn't specify, but 95% sure this is only | ||
| 61 | // If Supply Water Storage Tank Name is specified: | ||
| 62 | // TODO: if storage tank gets implemented | ||
| 63 | //"Evaporative Cooler Storage Tank Water Volume", | ||
| 64 | //"Evaporative Cooler Starved Water Volume", | ||
| 65 | //"Evaporative Cooler Starved Mains Water Volume" | ||
| 66 | ✗ | }; | |
| 67 | ✗ | return result; | |
| 68 | ✗ | } | |
| 69 | |||
| 70 | ✗ | IddObjectType EvaporativeCoolerIndirectResearchSpecial_Impl::iddObjectType() const { | |
| 71 | ✗ | return EvaporativeCoolerIndirectResearchSpecial::iddObjectType(); | |
| 72 | } | ||
| 73 | |||
| 74 | ✗ | std::vector<ScheduleTypeKey> EvaporativeCoolerIndirectResearchSpecial_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 75 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 76 | ✗ | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 77 | ✗ | UnsignedVector::const_iterator b(fieldIndices.begin()); | |
| 78 | ✗ | UnsignedVector::const_iterator e(fieldIndices.end()); | |
| 79 | ✗ | if (std::find(b, e, OS_EvaporativeCooler_Indirect_ResearchSpecialFields::AvailabilityScheduleName) != e) { | |
| 80 | ✗ | result.push_back(ScheduleTypeKey("EvaporativeCoolerIndirectResearchSpecial", "Availability")); | |
| 81 | } | ||
| 82 | ✗ | return result; | |
| 83 | ✗ | } | |
| 84 | |||
| 85 | 3 | boost::optional<Schedule> EvaporativeCoolerIndirectResearchSpecial_Impl::availabilitySchedule() const { | |
| 86 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::AvailabilityScheduleName); |
| 87 | } | ||
| 88 | |||
| 89 | 3 | double EvaporativeCoolerIndirectResearchSpecial_Impl::coolerMaximumEffectiveness() const { | |
| 90 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::CoolerMaximumEffectiveness, true); |
| 91 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 92 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 93 | } | ||
| 94 | |||
| 95 | 3 | boost::optional<double> EvaporativeCoolerIndirectResearchSpecial_Impl::recirculatingWaterPumpPowerConsumption() const { | |
| 96 | 3 | return getDouble(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::RecirculatingWaterPumpPowerConsumption, true); | |
| 97 | } | ||
| 98 | |||
| 99 | 3 | bool EvaporativeCoolerIndirectResearchSpecial_Impl::isRecirculatingWaterPumpPowerConsumptionAutosized() const { | |
| 100 | 3 | bool result = false; | |
| 101 | boost::optional<std::string> value = | ||
| 102 |
1/1✓ Branch 1 taken 3 times.
|
3 | getString(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::RecirculatingWaterPumpPowerConsumption, true); |
| 103 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | if (value) { |
| 104 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
6 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 105 | } | ||
| 106 | 3 | return result; | |
| 107 | 3 | } | |
| 108 | |||
| 109 | 3 | boost::optional<double> EvaporativeCoolerIndirectResearchSpecial_Impl::secondaryFanFlowRate() const { | |
| 110 | 3 | return getDouble(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::SecondaryFanFlowRate, true); | |
| 111 | } | ||
| 112 | |||
| 113 | 3 | bool EvaporativeCoolerIndirectResearchSpecial_Impl::isSecondaryFanFlowRateAutosized() const { | |
| 114 | 3 | bool result = false; | |
| 115 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<std::string> value = getString(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::SecondaryFanFlowRate, true); |
| 116 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | if (value) { |
| 117 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
6 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 118 | } | ||
| 119 | 3 | return result; | |
| 120 | 3 | } | |
| 121 | |||
| 122 | 3 | double EvaporativeCoolerIndirectResearchSpecial_Impl::secondaryFanTotalEfficiency() const { | |
| 123 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::SecondaryFanTotalEfficiency, true); |
| 124 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 125 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 126 | } | ||
| 127 | |||
| 128 | 3 | double EvaporativeCoolerIndirectResearchSpecial_Impl::secondaryFanDeltaPressure() const { | |
| 129 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::SecondaryFanDeltaPressure, true); |
| 130 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 131 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 132 | } | ||
| 133 | |||
| 134 | 3 | double EvaporativeCoolerIndirectResearchSpecial_Impl::dewpointEffectivenessFactor() const { | |
| 135 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::DewpointEffectivenessFactor, true); |
| 136 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 137 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 138 | } | ||
| 139 | |||
| 140 | 3 | boost::optional<double> EvaporativeCoolerIndirectResearchSpecial_Impl::driftLossFraction() const { | |
| 141 | 3 | return getDouble(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::DriftLossFraction, true); | |
| 142 | } | ||
| 143 | |||
| 144 | 3 | boost::optional<double> EvaporativeCoolerIndirectResearchSpecial_Impl::blowdownConcentrationRatio() const { | |
| 145 | 3 | return getDouble(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::BlowdownConcentrationRatio, true); | |
| 146 | } | ||
| 147 | |||
| 148 | ✗ | bool EvaporativeCoolerIndirectResearchSpecial_Impl::setAvailabilitySchedule(Schedule& schedule) { | |
| 149 | ✗ | bool result = setSchedule(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::AvailabilityScheduleName, | |
| 150 | "EvaporativeCoolerIndirectResearchSpecial", "Availability", schedule); | ||
| 151 | ✗ | return result; | |
| 152 | } | ||
| 153 | |||
| 154 | ✗ | void EvaporativeCoolerIndirectResearchSpecial_Impl::resetAvailabilitySchedule() { | |
| 155 | ✗ | bool result = setString(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::AvailabilityScheduleName, ""); | |
| 156 | ✗ | OS_ASSERT(result); | |
| 157 | ✗ | } | |
| 158 | |||
| 159 | 8 | bool EvaporativeCoolerIndirectResearchSpecial_Impl::setCoolerMaximumEffectiveness(double coolerMaximumEffectiveness) { | |
| 160 | 8 | bool result = setDouble(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::CoolerMaximumEffectiveness, coolerMaximumEffectiveness); | |
| 161 | 8 | return result; | |
| 162 | } | ||
| 163 | |||
| 164 | 8 | bool EvaporativeCoolerIndirectResearchSpecial_Impl::setRecirculatingWaterPumpPowerConsumption(double recirculatingWaterPumpPowerConsumption) { | |
| 165 | 8 | bool result = setDouble(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::RecirculatingWaterPumpPowerConsumption, | |
| 166 | recirculatingWaterPumpPowerConsumption); | ||
| 167 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
|
8 | OS_ASSERT(result); |
| 168 | 8 | return result; | |
| 169 | } | ||
| 170 | |||
| 171 | ✗ | void EvaporativeCoolerIndirectResearchSpecial_Impl::autosizeRecirculatingWaterPumpPowerConsumption() { | |
| 172 | ✗ | bool result = setString(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::RecirculatingWaterPumpPowerConsumption, "autosize"); | |
| 173 | ✗ | OS_ASSERT(result); | |
| 174 | ✗ | } | |
| 175 | |||
| 176 | ✗ | bool EvaporativeCoolerIndirectResearchSpecial_Impl::setSecondaryFanFlowRate(boost::optional<double> secondaryFanFlowRate) { | |
| 177 | ✗ | bool result(false); | |
| 178 | ✗ | if (secondaryFanFlowRate) { | |
| 179 | ✗ | result = setDouble(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::SecondaryFanFlowRate, secondaryFanFlowRate.get()); | |
| 180 | } else { | ||
| 181 | ✗ | resetSecondaryFanFlowRate(); | |
| 182 | ✗ | result = true; | |
| 183 | } | ||
| 184 | ✗ | return result; | |
| 185 | } | ||
| 186 | |||
| 187 | ✗ | void EvaporativeCoolerIndirectResearchSpecial_Impl::resetSecondaryFanFlowRate() { | |
| 188 | ✗ | bool result = setString(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::SecondaryFanFlowRate, ""); | |
| 189 | ✗ | OS_ASSERT(result); | |
| 190 | ✗ | } | |
| 191 | |||
| 192 | ✗ | void EvaporativeCoolerIndirectResearchSpecial_Impl::autosizeSecondaryFanFlowRate() { | |
| 193 | ✗ | bool result = setString(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::SecondaryFanFlowRate, "autosize"); | |
| 194 | ✗ | OS_ASSERT(result); | |
| 195 | ✗ | } | |
| 196 | |||
| 197 | 8 | bool EvaporativeCoolerIndirectResearchSpecial_Impl::setSecondaryFanTotalEfficiency(double secondaryFanTotalEfficiency) { | |
| 198 | 8 | bool result = setDouble(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::SecondaryFanTotalEfficiency, secondaryFanTotalEfficiency); | |
| 199 | 8 | return result; | |
| 200 | } | ||
| 201 | |||
| 202 | 8 | bool EvaporativeCoolerIndirectResearchSpecial_Impl::setSecondaryFanDeltaPressure(double secondaryFanDeltaPressure) { | |
| 203 | 8 | bool result = setDouble(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::SecondaryFanDeltaPressure, secondaryFanDeltaPressure); | |
| 204 | 8 | return result; | |
| 205 | } | ||
| 206 | |||
| 207 | 8 | bool EvaporativeCoolerIndirectResearchSpecial_Impl::setDewpointEffectivenessFactor(double dewpointEffectivenessFactor) { | |
| 208 | 8 | bool result = setDouble(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::DewpointEffectivenessFactor, dewpointEffectivenessFactor); | |
| 209 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
|
8 | OS_ASSERT(result); |
| 210 | 8 | return result; | |
| 211 | } | ||
| 212 | |||
| 213 | 8 | bool EvaporativeCoolerIndirectResearchSpecial_Impl::setDriftLossFraction(boost::optional<double> driftLossFraction) { | |
| 214 | 8 | bool result(false); | |
| 215 |
1/2✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
|
8 | if (driftLossFraction) { |
| 216 | 8 | result = setDouble(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::DriftLossFraction, driftLossFraction.get()); | |
| 217 | } else { | ||
| 218 | ✗ | resetDriftLossFraction(); | |
| 219 | ✗ | result = true; | |
| 220 | } | ||
| 221 | 8 | return result; | |
| 222 | } | ||
| 223 | |||
| 224 | ✗ | void EvaporativeCoolerIndirectResearchSpecial_Impl::resetDriftLossFraction() { | |
| 225 | ✗ | bool result = setString(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::DriftLossFraction, ""); | |
| 226 | ✗ | OS_ASSERT(result); | |
| 227 | ✗ | } | |
| 228 | |||
| 229 | ✗ | bool EvaporativeCoolerIndirectResearchSpecial_Impl::setBlowdownConcentrationRatio(boost::optional<double> blowdownConcentrationRatio) { | |
| 230 | ✗ | bool result(false); | |
| 231 | ✗ | if (blowdownConcentrationRatio) { | |
| 232 | ✗ | result = setDouble(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::BlowdownConcentrationRatio, blowdownConcentrationRatio.get()); | |
| 233 | } else { | ||
| 234 | ✗ | resetBlowdownConcentrationRatio(); | |
| 235 | ✗ | result = true; | |
| 236 | } | ||
| 237 | ✗ | return result; | |
| 238 | } | ||
| 239 | |||
| 240 | 8 | void EvaporativeCoolerIndirectResearchSpecial_Impl::resetBlowdownConcentrationRatio() { | |
| 241 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
16 | bool result = setString(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::BlowdownConcentrationRatio, ""); |
| 242 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
|
8 | OS_ASSERT(result); |
| 243 | 8 | } | |
| 244 | |||
| 245 | 6 | unsigned EvaporativeCoolerIndirectResearchSpecial_Impl::inletPort() const { | |
| 246 | 6 | return OS_EvaporativeCooler_Indirect_ResearchSpecialFields::PrimaryAirInletNode; | |
| 247 | } | ||
| 248 | |||
| 249 | 9 | unsigned EvaporativeCoolerIndirectResearchSpecial_Impl::outletPort() const { | |
| 250 | 9 | return OS_EvaporativeCooler_Indirect_ResearchSpecialFields::PrimaryAirOutletNode; | |
| 251 | } | ||
| 252 | |||
| 253 | 3 | bool EvaporativeCoolerIndirectResearchSpecial_Impl::addToNode(Node& node) { | |
| 254 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 1 time.
|
6 | if (boost::optional<AirLoopHVAC> airLoop = node.airLoopHVAC()) { |
| 255 |
5/5✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 11 taken 1 time.
✓ Branch 12 taken 1 time.
|
2 | if (!airLoop->demandComponent(node.handle())) { |
| 256 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
1 | if (StraightComponent_Impl::addToNode(node)) { |
| 257 | 1 | return true; | |
| 258 | } | ||
| 259 | } | ||
| 260 | 3 | } | |
| 261 | |||
| 262 |
2/3✓ Branch 1 taken 2 times.
✗ Branch 4 not taken.
✓ Branch 5 taken 2 times.
|
4 | if (node.airLoopHVACOutdoorAirSystem()) { |
| 263 | ✗ | return StraightComponent_Impl::addToNode(node); | |
| 264 | } | ||
| 265 | |||
| 266 | 2 | return false; | |
| 267 | } | ||
| 268 | |||
| 269 | ✗ | boost::optional<ZoneHVACComponent> EvaporativeCoolerIndirectResearchSpecial_Impl::containingZoneHVACComponent() const { | |
| 270 | |||
| 271 | ✗ | std::vector<ZoneHVACComponent> zoneHVACComponent = this->model().getModelObjects<ZoneHVACComponent>(); | |
| 272 | ✗ | for (const auto& elem : zoneHVACComponent) { | |
| 273 | ✗ | switch (elem.iddObject().type().value()) { | |
| 274 | ✗ | case openstudio::IddObjectType::OS_ZoneHVAC_EvaporativeCoolerUnit: { | |
| 275 | ✗ | auto component = elem.cast<ZoneHVACEvaporativeCoolerUnit>(); | |
| 276 | ✗ | if (component.firstEvaporativeCooler().handle() == this->handle()) { | |
| 277 | ✗ | return elem; | |
| 278 | } | ||
| 279 | // I guess it's fine since this is optional anyways | ||
| 280 | // } else if (auto comp_ = component.secondEvaporativeCooler(); comp_ && comp_->handle() == this->handle()) { return elem; } | ||
| 281 | ✗ | break; | |
| 282 | ✗ | } | |
| 283 | ✗ | default: { | |
| 284 | ✗ | break; | |
| 285 | } | ||
| 286 | } | ||
| 287 | } | ||
| 288 | ✗ | return boost::none; | |
| 289 | ✗ | } | |
| 290 | |||
| 291 | 1 | bool EvaporativeCoolerIndirectResearchSpecial_Impl::setReliefAirInletNode(const Node& node) { | |
| 292 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | return setPointer(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::ReliefAirInletNode, node.handle()); |
| 293 | } | ||
| 294 | |||
| 295 | 5 | boost::optional<Node> EvaporativeCoolerIndirectResearchSpecial_Impl::reliefAirInletNode() const { | |
| 296 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | return getObject<ModelObject>().getModelObjectTarget<Node>(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::ReliefAirInletNode); |
| 297 | } | ||
| 298 | |||
| 299 | 3 | boost::optional<Curve> EvaporativeCoolerIndirectResearchSpecial_Impl::wetbulbEffectivenessFlowRatioModifierCurve() const { | |
| 300 |
1/1✓ Branch 1 taken 3 times.
|
6 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 301 |
1/1✓ Branch 1 taken 3 times.
|
6 | OS_EvaporativeCooler_Indirect_ResearchSpecialFields::WetbulbEffectivenessFlowRatioModifierCurveName); |
| 302 | } | ||
| 303 | |||
| 304 | 3 | boost::optional<double> EvaporativeCoolerIndirectResearchSpecial_Impl::coolerDrybulbDesignEffectiveness() const { | |
| 305 | 3 | return getDouble(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::CoolerDrybulbDesignEffectiveness, true); | |
| 306 | } | ||
| 307 | |||
| 308 | 3 | boost::optional<Curve> EvaporativeCoolerIndirectResearchSpecial_Impl::drybulbEffectivenessFlowRatioModifierCurve() const { | |
| 309 |
1/1✓ Branch 1 taken 3 times.
|
6 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 310 |
1/1✓ Branch 1 taken 3 times.
|
6 | OS_EvaporativeCooler_Indirect_ResearchSpecialFields::DrybulbEffectivenessFlowRatioModifierCurveName); |
| 311 | } | ||
| 312 | |||
| 313 | 3 | double EvaporativeCoolerIndirectResearchSpecial_Impl::waterPumpPowerSizingFactor() const { | |
| 314 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::WaterPumpPowerSizingFactor, true); |
| 315 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 316 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 317 | } | ||
| 318 | |||
| 319 | 3 | boost::optional<Curve> EvaporativeCoolerIndirectResearchSpecial_Impl::waterPumpPowerModifierCurve() const { | |
| 320 |
1/1✓ Branch 1 taken 3 times.
|
6 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 321 |
1/1✓ Branch 1 taken 3 times.
|
6 | OS_EvaporativeCooler_Indirect_ResearchSpecialFields::WaterPumpPowerModifierCurveName); |
| 322 | } | ||
| 323 | |||
| 324 | 3 | double EvaporativeCoolerIndirectResearchSpecial_Impl::secondaryAirFlowScalingFactor() const { | |
| 325 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::SecondaryAirFlowScalingFactor, true); |
| 326 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 327 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 328 | } | ||
| 329 | |||
| 330 | 3 | boost::optional<double> EvaporativeCoolerIndirectResearchSpecial_Impl::secondaryAirFanDesignPower() const { | |
| 331 | 3 | return getDouble(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::SecondaryAirFanDesignPower, true); | |
| 332 | } | ||
| 333 | |||
| 334 | 3 | bool EvaporativeCoolerIndirectResearchSpecial_Impl::isSecondaryAirFanDesignPowerAutosized() const { | |
| 335 | 3 | bool result = false; | |
| 336 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<std::string> value = getString(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::SecondaryAirFanDesignPower, true); |
| 337 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | if (value) { |
| 338 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
6 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 339 | } | ||
| 340 | 3 | return result; | |
| 341 | 3 | } | |
| 342 | |||
| 343 | 3 | boost::optional<Curve> EvaporativeCoolerIndirectResearchSpecial_Impl::secondaryAirFanPowerModifierCurve() const { | |
| 344 |
1/1✓ Branch 1 taken 3 times.
|
6 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 345 |
1/1✓ Branch 1 taken 3 times.
|
6 | OS_EvaporativeCooler_Indirect_ResearchSpecialFields::SecondaryAirFanPowerModifierCurveName); |
| 346 | } | ||
| 347 | |||
| 348 | 3 | boost::optional<double> EvaporativeCoolerIndirectResearchSpecial_Impl::primaryDesignAirFlowRate() const { | |
| 349 | 3 | return getDouble(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::PrimaryDesignAirFlowRate, true); | |
| 350 | } | ||
| 351 | |||
| 352 | 3 | bool EvaporativeCoolerIndirectResearchSpecial_Impl::isPrimaryDesignAirFlowRateAutosized() const { | |
| 353 | 3 | bool result = false; | |
| 354 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<std::string> value = getString(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::PrimaryDesignAirFlowRate, true); |
| 355 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
|
3 | if (value) { |
| 356 | ✗ | result = openstudio::istringEqual(value.get(), "autosize"); | |
| 357 | } | ||
| 358 | 3 | return result; | |
| 359 | 3 | } | |
| 360 | |||
| 361 | ✗ | bool EvaporativeCoolerIndirectResearchSpecial_Impl::setWetbulbEffectivenessFlowRatioModifierCurve(const boost::optional<Curve>& curve) { | |
| 362 | ✗ | bool result(false); | |
| 363 | ✗ | if (curve) { | |
| 364 | result = | ||
| 365 | ✗ | setPointer(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::WetbulbEffectivenessFlowRatioModifierCurveName, curve.get().handle()); | |
| 366 | } else { | ||
| 367 | ✗ | resetWetbulbEffectivenessFlowRatioModifierCurve(); | |
| 368 | ✗ | result = true; | |
| 369 | } | ||
| 370 | ✗ | return result; | |
| 371 | } | ||
| 372 | |||
| 373 | ✗ | void EvaporativeCoolerIndirectResearchSpecial_Impl::resetWetbulbEffectivenessFlowRatioModifierCurve() { | |
| 374 | ✗ | bool result = setString(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::WetbulbEffectivenessFlowRatioModifierCurveName, ""); | |
| 375 | ✗ | OS_ASSERT(result); | |
| 376 | ✗ | } | |
| 377 | |||
| 378 | bool | ||
| 379 | ✗ | EvaporativeCoolerIndirectResearchSpecial_Impl::setCoolerDrybulbDesignEffectiveness(boost::optional<double> coolerDrybulbDesignEffectiveness) { | |
| 380 | ✗ | bool result(false); | |
| 381 | ✗ | if (coolerDrybulbDesignEffectiveness) { | |
| 382 | result = | ||
| 383 | ✗ | setDouble(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::CoolerDrybulbDesignEffectiveness, coolerDrybulbDesignEffectiveness.get()); | |
| 384 | } else { | ||
| 385 | ✗ | resetCoolerDrybulbDesignEffectiveness(); | |
| 386 | ✗ | result = true; | |
| 387 | } | ||
| 388 | ✗ | return result; | |
| 389 | } | ||
| 390 | |||
| 391 | ✗ | void EvaporativeCoolerIndirectResearchSpecial_Impl::resetCoolerDrybulbDesignEffectiveness() { | |
| 392 | ✗ | bool result = setString(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::CoolerDrybulbDesignEffectiveness, ""); | |
| 393 | ✗ | OS_ASSERT(result); | |
| 394 | ✗ | } | |
| 395 | |||
| 396 | ✗ | bool EvaporativeCoolerIndirectResearchSpecial_Impl::setDrybulbEffectivenessFlowRatioModifierCurve(const boost::optional<Curve>& curve) { | |
| 397 | ✗ | bool result(false); | |
| 398 | ✗ | if (curve) { | |
| 399 | result = | ||
| 400 | ✗ | setPointer(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::DrybulbEffectivenessFlowRatioModifierCurveName, curve.get().handle()); | |
| 401 | } else { | ||
| 402 | ✗ | resetDrybulbEffectivenessFlowRatioModifierCurve(); | |
| 403 | ✗ | result = true; | |
| 404 | } | ||
| 405 | ✗ | return result; | |
| 406 | } | ||
| 407 | |||
| 408 | ✗ | void EvaporativeCoolerIndirectResearchSpecial_Impl::resetDrybulbEffectivenessFlowRatioModifierCurve() { | |
| 409 | ✗ | bool result = setString(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::DrybulbEffectivenessFlowRatioModifierCurveName, ""); | |
| 410 | ✗ | OS_ASSERT(result); | |
| 411 | ✗ | } | |
| 412 | |||
| 413 | 8 | bool EvaporativeCoolerIndirectResearchSpecial_Impl::setWaterPumpPowerSizingFactor(double waterPumpPowerSizingFactor) { | |
| 414 | 8 | bool result = setDouble(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::WaterPumpPowerSizingFactor, waterPumpPowerSizingFactor); | |
| 415 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
|
8 | OS_ASSERT(result); |
| 416 | 8 | return result; | |
| 417 | } | ||
| 418 | |||
| 419 | ✗ | bool EvaporativeCoolerIndirectResearchSpecial_Impl::setWaterPumpPowerModifierCurve(const boost::optional<Curve>& curve) { | |
| 420 | ✗ | bool result(false); | |
| 421 | ✗ | if (curve) { | |
| 422 | ✗ | result = setPointer(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::WaterPumpPowerModifierCurveName, curve.get().handle()); | |
| 423 | } else { | ||
| 424 | ✗ | resetWaterPumpPowerModifierCurve(); | |
| 425 | ✗ | result = true; | |
| 426 | } | ||
| 427 | ✗ | return result; | |
| 428 | } | ||
| 429 | |||
| 430 | ✗ | void EvaporativeCoolerIndirectResearchSpecial_Impl::resetWaterPumpPowerModifierCurve() { | |
| 431 | ✗ | bool result = setString(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::WaterPumpPowerModifierCurveName, ""); | |
| 432 | ✗ | OS_ASSERT(result); | |
| 433 | ✗ | } | |
| 434 | |||
| 435 | 8 | bool EvaporativeCoolerIndirectResearchSpecial_Impl::setSecondaryAirFlowScalingFactor(double secondaryAirFlowScalingFactor) { | |
| 436 | 8 | bool result = setDouble(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::SecondaryAirFlowScalingFactor, secondaryAirFlowScalingFactor); | |
| 437 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
|
8 | OS_ASSERT(result); |
| 438 | 8 | return result; | |
| 439 | } | ||
| 440 | |||
| 441 | ✗ | bool EvaporativeCoolerIndirectResearchSpecial_Impl::setSecondaryAirFanDesignPower(boost::optional<double> secondaryAirFanDesignPower) { | |
| 442 | ✗ | bool result(false); | |
| 443 | ✗ | if (secondaryAirFanDesignPower) { | |
| 444 | ✗ | result = setDouble(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::SecondaryAirFanDesignPower, secondaryAirFanDesignPower.get()); | |
| 445 | } | ||
| 446 | ✗ | OS_ASSERT(result); | |
| 447 | ✗ | return result; | |
| 448 | } | ||
| 449 | |||
| 450 | ✗ | void EvaporativeCoolerIndirectResearchSpecial_Impl::autosizeSecondaryAirFanDesignPower() { | |
| 451 | ✗ | bool result = setString(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::SecondaryAirFanDesignPower, "autosize"); | |
| 452 | ✗ | OS_ASSERT(result); | |
| 453 | ✗ | } | |
| 454 | |||
| 455 | ✗ | bool EvaporativeCoolerIndirectResearchSpecial_Impl::setSecondaryAirFanPowerModifierCurve(const boost::optional<Curve>& curve) { | |
| 456 | ✗ | bool result(false); | |
| 457 | ✗ | if (curve) { | |
| 458 | ✗ | result = setPointer(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::SecondaryAirFanPowerModifierCurveName, curve.get().handle()); | |
| 459 | } else { | ||
| 460 | ✗ | resetSecondaryAirFanPowerModifierCurve(); | |
| 461 | ✗ | result = true; | |
| 462 | } | ||
| 463 | ✗ | return result; | |
| 464 | } | ||
| 465 | |||
| 466 | ✗ | void EvaporativeCoolerIndirectResearchSpecial_Impl::resetSecondaryAirFanPowerModifierCurve() { | |
| 467 | ✗ | bool result = setString(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::SecondaryAirFanPowerModifierCurveName, ""); | |
| 468 | ✗ | OS_ASSERT(result); | |
| 469 | ✗ | } | |
| 470 | |||
| 471 | ✗ | bool EvaporativeCoolerIndirectResearchSpecial_Impl::setPrimaryDesignAirFlowRate(boost::optional<double> primaryDesignAirFlowRate) { | |
| 472 | ✗ | bool result(false); | |
| 473 | ✗ | if (primaryDesignAirFlowRate) { | |
| 474 | ✗ | result = setDouble(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::PrimaryDesignAirFlowRate, primaryDesignAirFlowRate.get()); | |
| 475 | } else { | ||
| 476 | ✗ | resetPrimaryDesignAirFlowRate(); | |
| 477 | ✗ | result = true; | |
| 478 | } | ||
| 479 | ✗ | return result; | |
| 480 | } | ||
| 481 | |||
| 482 | ✗ | void EvaporativeCoolerIndirectResearchSpecial_Impl::resetPrimaryDesignAirFlowRate() { | |
| 483 | ✗ | bool result = setString(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::PrimaryDesignAirFlowRate, ""); | |
| 484 | ✗ | OS_ASSERT(result); | |
| 485 | ✗ | } | |
| 486 | |||
| 487 | ✗ | void EvaporativeCoolerIndirectResearchSpecial_Impl::autosizePrimaryDesignAirFlowRate() { | |
| 488 | ✗ | bool result = setString(OS_EvaporativeCooler_Indirect_ResearchSpecialFields::PrimaryDesignAirFlowRate, "autosize"); | |
| 489 | ✗ | OS_ASSERT(result); | |
| 490 | ✗ | } | |
| 491 | |||
| 492 | ✗ | boost::optional<double> EvaporativeCoolerIndirectResearchSpecial_Impl::autosizedRecirculatingWaterPumpPowerConsumption() const { | |
| 493 | ✗ | return getAutosizedValue("Recirculating Pump Power", "W"); | |
| 494 | } | ||
| 495 | |||
| 496 | ✗ | boost::optional<double> EvaporativeCoolerIndirectResearchSpecial_Impl::autosizedSecondaryFanFlowRate() const { | |
| 497 | ✗ | return getAutosizedValue("Design Size Secondary Fan Flow Rate", "m3/s"); | |
| 498 | } | ||
| 499 | |||
| 500 | ✗ | boost::optional<double> EvaporativeCoolerIndirectResearchSpecial_Impl::autosizedSecondaryAirFanDesignPower() const { | |
| 501 | ✗ | return getAutosizedValue("Secondary Fan Power", "W"); | |
| 502 | } | ||
| 503 | |||
| 504 | ✗ | boost::optional<double> EvaporativeCoolerIndirectResearchSpecial_Impl::autosizedPrimaryDesignAirFlowRate() const { | |
| 505 | ✗ | return getAutosizedValue("Primary Air Design Flow Rate", "m3/s"); | |
| 506 | } | ||
| 507 | |||
| 508 | ✗ | void EvaporativeCoolerIndirectResearchSpecial_Impl::autosize() { | |
| 509 | ✗ | autosizeRecirculatingWaterPumpPowerConsumption(); | |
| 510 | ✗ | autosizeSecondaryFanFlowRate(); | |
| 511 | ✗ | autosizeSecondaryAirFanDesignPower(); | |
| 512 | ✗ | autosizePrimaryDesignAirFlowRate(); | |
| 513 | ✗ | } | |
| 514 | |||
| 515 | ✗ | void EvaporativeCoolerIndirectResearchSpecial_Impl::applySizingValues() { | |
| 516 | ✗ | boost::optional<double> val; | |
| 517 | ✗ | val = autosizedRecirculatingWaterPumpPowerConsumption(); | |
| 518 | ✗ | if (val) { | |
| 519 | ✗ | setRecirculatingWaterPumpPowerConsumption(val.get()); | |
| 520 | } | ||
| 521 | |||
| 522 | ✗ | val = autosizedSecondaryFanFlowRate(); | |
| 523 | ✗ | if (val) { | |
| 524 | ✗ | setSecondaryFanFlowRate(val.get()); | |
| 525 | } | ||
| 526 | |||
| 527 | ✗ | val = autosizedSecondaryAirFanDesignPower(); | |
| 528 | ✗ | if (val) { | |
| 529 | ✗ | setSecondaryAirFanDesignPower(val.get()); | |
| 530 | } | ||
| 531 | |||
| 532 | ✗ | val = autosizedPrimaryDesignAirFlowRate(); | |
| 533 | ✗ | if (val) { | |
| 534 | ✗ | setPrimaryDesignAirFlowRate(val.get()); | |
| 535 | } | ||
| 536 | ✗ | } | |
| 537 | |||
| 538 | ✗ | ComponentType EvaporativeCoolerIndirectResearchSpecial_Impl::componentType() const { | |
| 539 | ✗ | return ComponentType::Cooling; | |
| 540 | } | ||
| 541 | |||
| 542 | ✗ | std::vector<FuelType> EvaporativeCoolerIndirectResearchSpecial_Impl::coolingFuelTypes() const { | |
| 543 | ✗ | return {FuelType::Electricity}; | |
| 544 | } | ||
| 545 | |||
| 546 | ✗ | std::vector<FuelType> EvaporativeCoolerIndirectResearchSpecial_Impl::heatingFuelTypes() const { | |
| 547 | ✗ | return {}; | |
| 548 | } | ||
| 549 | |||
| 550 | ✗ | std::vector<AppGFuelType> EvaporativeCoolerIndirectResearchSpecial_Impl::appGHeatingFuelTypes() const { | |
| 551 | ✗ | return {}; | |
| 552 | } | ||
| 553 | |||
| 554 | } // namespace detail | ||
| 555 | |||
| 556 | 8 | EvaporativeCoolerIndirectResearchSpecial::EvaporativeCoolerIndirectResearchSpecial(const Model& model) | |
| 557 | 8 | : StraightComponent(EvaporativeCoolerIndirectResearchSpecial::iddObjectType(), model) { | |
| 558 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 8 times.
✗ Branch 5 not taken.
|
8 | OS_ASSERT(getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()); |
| 559 | |||
| 560 |
1/1✓ Branch 1 taken 8 times.
|
8 | setCoolerMaximumEffectiveness(0.75); |
| 561 |
1/1✓ Branch 1 taken 8 times.
|
8 | setRecirculatingWaterPumpPowerConsumption(30.0); |
| 562 |
1/1✓ Branch 1 taken 8 times.
|
8 | setSecondaryFanTotalEfficiency(0.6); |
| 563 |
1/1✓ Branch 1 taken 8 times.
|
8 | setSecondaryFanDeltaPressure(124.6); |
| 564 |
1/1✓ Branch 1 taken 8 times.
|
8 | setDewpointEffectivenessFactor(0.9); |
| 565 |
1/1✓ Branch 1 taken 8 times.
|
8 | setDriftLossFraction(0.0); |
| 566 |
1/1✓ Branch 1 taken 8 times.
|
8 | setWaterPumpPowerSizingFactor(0.1); |
| 567 |
1/1✓ Branch 1 taken 8 times.
|
8 | setSecondaryAirFlowScalingFactor(1.0); |
| 568 |
1/1✓ Branch 1 taken 8 times.
|
8 | resetBlowdownConcentrationRatio(); |
| 569 | 8 | } | |
| 570 | |||
| 571 | 7749 | IddObjectType EvaporativeCoolerIndirectResearchSpecial::iddObjectType() { | |
| 572 |
1/1✓ Branch 1 taken 7749 times.
|
7749 | return {IddObjectType::OS_EvaporativeCooler_Indirect_ResearchSpecial}; |
| 573 | } | ||
| 574 | |||
| 575 | 3 | boost::optional<Schedule> EvaporativeCoolerIndirectResearchSpecial::availabilitySchedule() const { | |
| 576 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->availabilitySchedule(); |
| 577 | } | ||
| 578 | |||
| 579 | 3 | double EvaporativeCoolerIndirectResearchSpecial::coolerMaximumEffectiveness() const { | |
| 580 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->coolerMaximumEffectiveness(); |
| 581 | } | ||
| 582 | |||
| 583 | 3 | boost::optional<double> EvaporativeCoolerIndirectResearchSpecial::recirculatingWaterPumpPowerConsumption() const { | |
| 584 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->recirculatingWaterPumpPowerConsumption(); |
| 585 | } | ||
| 586 | |||
| 587 | 3 | bool EvaporativeCoolerIndirectResearchSpecial::isRecirculatingWaterPumpPowerConsumptionAutosized() const { | |
| 588 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->isRecirculatingWaterPumpPowerConsumptionAutosized(); |
| 589 | } | ||
| 590 | |||
| 591 | 3 | boost::optional<double> EvaporativeCoolerIndirectResearchSpecial::secondaryFanFlowRate() const { | |
| 592 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->secondaryFanFlowRate(); |
| 593 | } | ||
| 594 | |||
| 595 | 3 | bool EvaporativeCoolerIndirectResearchSpecial::isSecondaryFanFlowRateAutosized() const { | |
| 596 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->isSecondaryFanFlowRateAutosized(); |
| 597 | } | ||
| 598 | |||
| 599 | 3 | double EvaporativeCoolerIndirectResearchSpecial::secondaryFanTotalEfficiency() const { | |
| 600 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->secondaryFanTotalEfficiency(); |
| 601 | } | ||
| 602 | |||
| 603 | 3 | double EvaporativeCoolerIndirectResearchSpecial::secondaryFanDeltaPressure() const { | |
| 604 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->secondaryFanDeltaPressure(); |
| 605 | } | ||
| 606 | |||
| 607 | 3 | double EvaporativeCoolerIndirectResearchSpecial::dewpointEffectivenessFactor() const { | |
| 608 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->dewpointEffectivenessFactor(); |
| 609 | } | ||
| 610 | |||
| 611 | 3 | boost::optional<double> EvaporativeCoolerIndirectResearchSpecial::driftLossFraction() const { | |
| 612 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->driftLossFraction(); |
| 613 | } | ||
| 614 | |||
| 615 | 3 | boost::optional<double> EvaporativeCoolerIndirectResearchSpecial::blowdownConcentrationRatio() const { | |
| 616 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->blowdownConcentrationRatio(); |
| 617 | } | ||
| 618 | |||
| 619 | 3 | boost::optional<Curve> EvaporativeCoolerIndirectResearchSpecial::wetbulbEffectivenessFlowRatioModifierCurve() const { | |
| 620 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->wetbulbEffectivenessFlowRatioModifierCurve(); |
| 621 | } | ||
| 622 | |||
| 623 | 3 | boost::optional<double> EvaporativeCoolerIndirectResearchSpecial::coolerDrybulbDesignEffectiveness() const { | |
| 624 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->coolerDrybulbDesignEffectiveness(); |
| 625 | } | ||
| 626 | |||
| 627 | 3 | boost::optional<Curve> EvaporativeCoolerIndirectResearchSpecial::drybulbEffectivenessFlowRatioModifierCurve() const { | |
| 628 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->drybulbEffectivenessFlowRatioModifierCurve(); |
| 629 | } | ||
| 630 | |||
| 631 | 3 | double EvaporativeCoolerIndirectResearchSpecial::waterPumpPowerSizingFactor() const { | |
| 632 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->waterPumpPowerSizingFactor(); |
| 633 | } | ||
| 634 | |||
| 635 | 3 | boost::optional<Curve> EvaporativeCoolerIndirectResearchSpecial::waterPumpPowerModifierCurve() const { | |
| 636 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->waterPumpPowerModifierCurve(); |
| 637 | } | ||
| 638 | |||
| 639 | 3 | double EvaporativeCoolerIndirectResearchSpecial::secondaryAirFlowScalingFactor() const { | |
| 640 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->secondaryAirFlowScalingFactor(); |
| 641 | } | ||
| 642 | |||
| 643 | 3 | boost::optional<double> EvaporativeCoolerIndirectResearchSpecial::secondaryAirFanDesignPower() const { | |
| 644 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->secondaryAirFanDesignPower(); |
| 645 | } | ||
| 646 | |||
| 647 | 3 | bool EvaporativeCoolerIndirectResearchSpecial::isSecondaryAirFanDesignPowerAutosized() const { | |
| 648 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->isSecondaryAirFanDesignPowerAutosized(); |
| 649 | } | ||
| 650 | |||
| 651 | 3 | boost::optional<Curve> EvaporativeCoolerIndirectResearchSpecial::secondaryAirFanPowerModifierCurve() const { | |
| 652 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->secondaryAirFanPowerModifierCurve(); |
| 653 | } | ||
| 654 | |||
| 655 | 3 | boost::optional<double> EvaporativeCoolerIndirectResearchSpecial::primaryDesignAirFlowRate() const { | |
| 656 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->primaryDesignAirFlowRate(); |
| 657 | } | ||
| 658 | |||
| 659 | 3 | bool EvaporativeCoolerIndirectResearchSpecial::isPrimaryDesignAirFlowRateAutosized() const { | |
| 660 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->isPrimaryDesignAirFlowRateAutosized(); |
| 661 | } | ||
| 662 | |||
| 663 | ✗ | bool EvaporativeCoolerIndirectResearchSpecial::setAvailabilitySchedule(Schedule& schedule) { | |
| 664 | ✗ | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->setAvailabilitySchedule(schedule); | |
| 665 | } | ||
| 666 | |||
| 667 | ✗ | void EvaporativeCoolerIndirectResearchSpecial::resetAvailabilitySchedule() { | |
| 668 | ✗ | getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->resetAvailabilitySchedule(); | |
| 669 | ✗ | } | |
| 670 | |||
| 671 | 8 | bool EvaporativeCoolerIndirectResearchSpecial::setCoolerMaximumEffectiveness(double coolerMaximumEffectiveness) { | |
| 672 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->setCoolerMaximumEffectiveness(coolerMaximumEffectiveness); |
| 673 | } | ||
| 674 | |||
| 675 | 8 | bool EvaporativeCoolerIndirectResearchSpecial::setRecirculatingWaterPumpPowerConsumption(double recirculatingWaterPumpPowerConsumption) { | |
| 676 |
1/1✓ Branch 3 taken 8 times.
|
16 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->setRecirculatingWaterPumpPowerConsumption( |
| 677 | 16 | recirculatingWaterPumpPowerConsumption); | |
| 678 | } | ||
| 679 | |||
| 680 | ✗ | void EvaporativeCoolerIndirectResearchSpecial::autosizeRecirculatingWaterPumpPowerConsumption() { | |
| 681 | ✗ | getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->autosizeRecirculatingWaterPumpPowerConsumption(); | |
| 682 | ✗ | } | |
| 683 | |||
| 684 | ✗ | bool EvaporativeCoolerIndirectResearchSpecial::setSecondaryFanFlowRate(double secondaryFanFlowRate) { | |
| 685 | ✗ | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->setSecondaryFanFlowRate(secondaryFanFlowRate); | |
| 686 | } | ||
| 687 | |||
| 688 | ✗ | void EvaporativeCoolerIndirectResearchSpecial::resetSecondaryFanFlowRate() { | |
| 689 | ✗ | getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->resetSecondaryFanFlowRate(); | |
| 690 | ✗ | } | |
| 691 | |||
| 692 | ✗ | void EvaporativeCoolerIndirectResearchSpecial::autosizeSecondaryFanFlowRate() { | |
| 693 | ✗ | getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->autosizeSecondaryFanFlowRate(); | |
| 694 | ✗ | } | |
| 695 | |||
| 696 | 8 | bool EvaporativeCoolerIndirectResearchSpecial::setSecondaryFanTotalEfficiency(double secondaryFanTotalEfficiency) { | |
| 697 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->setSecondaryFanTotalEfficiency(secondaryFanTotalEfficiency); |
| 698 | } | ||
| 699 | |||
| 700 | 8 | bool EvaporativeCoolerIndirectResearchSpecial::setSecondaryFanDeltaPressure(double secondaryFanDeltaPressure) { | |
| 701 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->setSecondaryFanDeltaPressure(secondaryFanDeltaPressure); |
| 702 | } | ||
| 703 | |||
| 704 | 8 | bool EvaporativeCoolerIndirectResearchSpecial::setDewpointEffectivenessFactor(double dewpointEffectivenessFactor) { | |
| 705 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->setDewpointEffectivenessFactor(dewpointEffectivenessFactor); |
| 706 | } | ||
| 707 | |||
| 708 | 8 | bool EvaporativeCoolerIndirectResearchSpecial::setDriftLossFraction(double driftLossFraction) { | |
| 709 |
2/2✓ Branch 3 taken 8 times.
✓ Branch 6 taken 8 times.
|
8 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->setDriftLossFraction(driftLossFraction); |
| 710 | } | ||
| 711 | |||
| 712 | ✗ | void EvaporativeCoolerIndirectResearchSpecial::resetDriftLossFraction() { | |
| 713 | ✗ | getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->resetDriftLossFraction(); | |
| 714 | ✗ | } | |
| 715 | |||
| 716 | ✗ | bool EvaporativeCoolerIndirectResearchSpecial::setBlowdownConcentrationRatio(double blowdownConcentrationRatio) { | |
| 717 | ✗ | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->setBlowdownConcentrationRatio(blowdownConcentrationRatio); | |
| 718 | } | ||
| 719 | |||
| 720 | 8 | void EvaporativeCoolerIndirectResearchSpecial::resetBlowdownConcentrationRatio() { | |
| 721 |
1/1✓ Branch 3 taken 8 times.
|
8 | getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->resetBlowdownConcentrationRatio(); |
| 722 | 8 | } | |
| 723 | |||
| 724 | ✗ | bool EvaporativeCoolerIndirectResearchSpecial::setWetbulbEffectivenessFlowRatioModifierCurve(const Curve& curve) { | |
| 725 | ✗ | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->setWetbulbEffectivenessFlowRatioModifierCurve(curve); | |
| 726 | } | ||
| 727 | |||
| 728 | ✗ | void EvaporativeCoolerIndirectResearchSpecial::resetWetbulbEffectivenessFlowRatioModifierCurve() { | |
| 729 | ✗ | getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->resetWetbulbEffectivenessFlowRatioModifierCurve(); | |
| 730 | ✗ | } | |
| 731 | |||
| 732 | ✗ | bool EvaporativeCoolerIndirectResearchSpecial::setCoolerDrybulbDesignEffectiveness(double coolerDrybulbDesignEffectiveness) { | |
| 733 | ✗ | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->setCoolerDrybulbDesignEffectiveness(coolerDrybulbDesignEffectiveness); | |
| 734 | } | ||
| 735 | |||
| 736 | ✗ | void EvaporativeCoolerIndirectResearchSpecial::resetCoolerDrybulbDesignEffectiveness() { | |
| 737 | ✗ | getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->resetCoolerDrybulbDesignEffectiveness(); | |
| 738 | ✗ | } | |
| 739 | |||
| 740 | ✗ | bool EvaporativeCoolerIndirectResearchSpecial::setDrybulbEffectivenessFlowRatioModifierCurve(const Curve& curve) { | |
| 741 | ✗ | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->setDrybulbEffectivenessFlowRatioModifierCurve(curve); | |
| 742 | } | ||
| 743 | |||
| 744 | ✗ | void EvaporativeCoolerIndirectResearchSpecial::resetDrybulbEffectivenessFlowRatioModifierCurve() { | |
| 745 | ✗ | getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->resetDrybulbEffectivenessFlowRatioModifierCurve(); | |
| 746 | ✗ | } | |
| 747 | |||
| 748 | 8 | bool EvaporativeCoolerIndirectResearchSpecial::setWaterPumpPowerSizingFactor(double waterPumpPowerSizingFactor) { | |
| 749 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->setWaterPumpPowerSizingFactor(waterPumpPowerSizingFactor); |
| 750 | } | ||
| 751 | |||
| 752 | ✗ | bool EvaporativeCoolerIndirectResearchSpecial::setWaterPumpPowerModifierCurve(const Curve& curve) { | |
| 753 | ✗ | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->setWaterPumpPowerModifierCurve(curve); | |
| 754 | } | ||
| 755 | |||
| 756 | ✗ | void EvaporativeCoolerIndirectResearchSpecial::resetWaterPumpPowerModifierCurve() { | |
| 757 | ✗ | getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->resetWaterPumpPowerModifierCurve(); | |
| 758 | ✗ | } | |
| 759 | |||
| 760 | 8 | bool EvaporativeCoolerIndirectResearchSpecial::setSecondaryAirFlowScalingFactor(double secondaryAirFlowScalingFactor) { | |
| 761 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->setSecondaryAirFlowScalingFactor(secondaryAirFlowScalingFactor); |
| 762 | } | ||
| 763 | |||
| 764 | ✗ | bool EvaporativeCoolerIndirectResearchSpecial::setSecondaryAirFanDesignPower(double secondaryAirFanDesignPower) { | |
| 765 | ✗ | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->setSecondaryAirFanDesignPower(secondaryAirFanDesignPower); | |
| 766 | } | ||
| 767 | |||
| 768 | ✗ | void EvaporativeCoolerIndirectResearchSpecial::autosizeSecondaryAirFanDesignPower() { | |
| 769 | ✗ | getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->autosizeSecondaryAirFanDesignPower(); | |
| 770 | ✗ | } | |
| 771 | |||
| 772 | ✗ | bool EvaporativeCoolerIndirectResearchSpecial::setSecondaryAirFanPowerModifierCurve(const Curve& curve) { | |
| 773 | ✗ | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->setSecondaryAirFanPowerModifierCurve(curve); | |
| 774 | } | ||
| 775 | |||
| 776 | ✗ | void EvaporativeCoolerIndirectResearchSpecial::resetSecondaryAirFanPowerModifierCurve() { | |
| 777 | ✗ | getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->resetSecondaryAirFanPowerModifierCurve(); | |
| 778 | ✗ | } | |
| 779 | |||
| 780 | ✗ | bool EvaporativeCoolerIndirectResearchSpecial::setPrimaryDesignAirFlowRate(double primaryDesignAirFlowRate) { | |
| 781 | ✗ | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->setPrimaryDesignAirFlowRate(primaryDesignAirFlowRate); | |
| 782 | } | ||
| 783 | |||
| 784 | ✗ | void EvaporativeCoolerIndirectResearchSpecial::resetPrimaryDesignAirFlowRate() { | |
| 785 | ✗ | getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->resetPrimaryDesignAirFlowRate(); | |
| 786 | ✗ | } | |
| 787 | |||
| 788 | ✗ | void EvaporativeCoolerIndirectResearchSpecial::autosizePrimaryDesignAirFlowRate() { | |
| 789 | ✗ | getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->autosizePrimaryDesignAirFlowRate(); | |
| 790 | ✗ | } | |
| 791 | |||
| 792 | /// @cond | ||
| 793 | 7 | EvaporativeCoolerIndirectResearchSpecial::EvaporativeCoolerIndirectResearchSpecial( | |
| 794 | 7 | std::shared_ptr<detail::EvaporativeCoolerIndirectResearchSpecial_Impl> impl) | |
| 795 |
1/1✓ Branch 3 taken 7 times.
|
7 | : StraightComponent(std::move(impl)) {} |
| 796 | /// @endcond | ||
| 797 | |||
| 798 | ✗ | boost::optional<double> EvaporativeCoolerIndirectResearchSpecial::autosizedRecirculatingWaterPumpPowerConsumption() const { | |
| 799 | ✗ | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->autosizedRecirculatingWaterPumpPowerConsumption(); | |
| 800 | } | ||
| 801 | |||
| 802 | ✗ | boost::optional<double> EvaporativeCoolerIndirectResearchSpecial::autosizedSecondaryFanFlowRate() const { | |
| 803 | ✗ | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->autosizedSecondaryFanFlowRate(); | |
| 804 | } | ||
| 805 | |||
| 806 | ✗ | boost::optional<double> EvaporativeCoolerIndirectResearchSpecial::autosizedSecondaryAirFanDesignPower() const { | |
| 807 | ✗ | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->autosizedSecondaryAirFanDesignPower(); | |
| 808 | } | ||
| 809 | |||
| 810 | ✗ | boost::optional<double> EvaporativeCoolerIndirectResearchSpecial::autosizedPrimaryDesignAirFlowRate() const { | |
| 811 | ✗ | return getImpl<detail::EvaporativeCoolerIndirectResearchSpecial_Impl>()->autosizedPrimaryDesignAirFlowRate(); | |
| 812 | } | ||
| 813 | |||
| 814 | } // namespace model | ||
| 815 | } // namespace openstudio | ||
| 816 |