src/model/EvaporativeCoolerDirectResearchSpecial.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 "EvaporativeCoolerDirectResearchSpecial.hpp" | ||
| 9 | #include "EvaporativeCoolerDirectResearchSpecial_Impl.hpp" | ||
| 10 | #include "Schedule.hpp" | ||
| 11 | #include "Schedule_Impl.hpp" | ||
| 12 | #include "Node.hpp" | ||
| 13 | #include "Node_Impl.hpp" | ||
| 14 | #include "Curve.hpp" | ||
| 15 | #include "Curve_Impl.hpp" | ||
| 16 | #include "Model.hpp" | ||
| 17 | |||
| 18 | // containing ZoneHVAC Component | ||
| 19 | #include "ZoneHVACEvaporativeCoolerUnit.hpp" | ||
| 20 | #include "ZoneHVACEvaporativeCoolerUnit_Impl.hpp" | ||
| 21 | |||
| 22 | #include "../utilities/core/Assert.hpp" | ||
| 23 | #include "../utilities/core/Compare.hpp" | ||
| 24 | #include "../utilities/data/DataEnums.hpp" | ||
| 25 | |||
| 26 | #include <utilities/idd/OS_EvaporativeCooler_Direct_ResearchSpecial_FieldEnums.hxx> | ||
| 27 | #include <utilities/idd/IddEnums.hxx> | ||
| 28 | |||
| 29 | namespace openstudio { | ||
| 30 | |||
| 31 | namespace model { | ||
| 32 | |||
| 33 | namespace detail { | ||
| 34 | |||
| 35 | 214 | EvaporativeCoolerDirectResearchSpecial_Impl::EvaporativeCoolerDirectResearchSpecial_Impl(const IdfObject& idfObject, Model_Impl* model, | |
| 36 | 214 | bool keepHandle) | |
| 37 | 214 | : StraightComponent_Impl(idfObject, model, keepHandle) { | |
| 38 |
4/6✓ Branch 1 taken 214 times.
✓ Branch 4 taken 214 times.
✓ Branch 7 taken 214 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 214 times.
✗ Branch 13 not taken.
|
214 | OS_ASSERT(idfObject.iddObject().type() == EvaporativeCoolerDirectResearchSpecial::iddObjectType()); |
| 39 | 214 | } | |
| 40 | |||
| 41 | 25 | EvaporativeCoolerDirectResearchSpecial_Impl::EvaporativeCoolerDirectResearchSpecial_Impl(const openstudio::detail::WorkspaceObject_Impl& other, | |
| 42 | 25 | Model_Impl* model, bool keepHandle) | |
| 43 | 25 | : StraightComponent_Impl(other, model, keepHandle) { | |
| 44 |
4/6✓ Branch 1 taken 25 times.
✓ Branch 4 taken 25 times.
✓ Branch 7 taken 25 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 25 times.
✗ Branch 13 not taken.
|
25 | OS_ASSERT(other.iddObject().type() == EvaporativeCoolerDirectResearchSpecial::iddObjectType()); |
| 45 | 25 | } | |
| 46 | |||
| 47 | 69 | EvaporativeCoolerDirectResearchSpecial_Impl::EvaporativeCoolerDirectResearchSpecial_Impl(const EvaporativeCoolerDirectResearchSpecial_Impl& other, | |
| 48 | 69 | Model_Impl* model, bool keepHandle) | |
| 49 | 69 | : StraightComponent_Impl(other, model, keepHandle) {} | |
| 50 | |||
| 51 | 1 | const std::vector<std::string>& EvaporativeCoolerDirectResearchSpecial_Impl::outputVariableNames() const { | |
| 52 | static const std::vector<std::string> result{ | ||
| 53 | "Evaporative Cooler Electricity Rate", "Evaporative Cooler Stage Effectiveness", "Evaporative Cooler Electricity Energy", | ||
| 54 | "Evaporative Cooler Water Volume", "Evaporative Cooler Mains Water Volume" | ||
| 55 | |||
| 56 | // Doc doesn't specify, but 95% sure this is only | ||
| 57 | // If Supply Water Storage Tank Name is specified: | ||
| 58 | // TODO: if storage tank gets implemented | ||
| 59 | //"Evaporative Cooler Storage Tank Water Volume", | ||
| 60 | //"Evaporative Cooler Starved Water Volume", | ||
| 61 | //"Evaporative Cooler Starved Mains Water Volume" | ||
| 62 |
5/11✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
✓ Branch 6 taken 1 time.
✓ Branch 10 taken 5 times.
✓ Branch 11 taken 1 time.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
|
8 | }; |
| 63 | 1 | return result; | |
| 64 | 3 | } | |
| 65 | |||
| 66 | 4 | IddObjectType EvaporativeCoolerDirectResearchSpecial_Impl::iddObjectType() const { | |
| 67 | 4 | return EvaporativeCoolerDirectResearchSpecial::iddObjectType(); | |
| 68 | } | ||
| 69 | |||
| 70 | ✗ | std::vector<ScheduleTypeKey> EvaporativeCoolerDirectResearchSpecial_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 71 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 72 | ✗ | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 73 | ✗ | UnsignedVector::const_iterator b(fieldIndices.begin()); | |
| 74 | ✗ | UnsignedVector::const_iterator e(fieldIndices.end()); | |
| 75 | ✗ | if (std::find(b, e, OS_EvaporativeCooler_Direct_ResearchSpecialFields::AvailabilityScheduleName) != e) { | |
| 76 | ✗ | result.push_back(ScheduleTypeKey("EvaporativeCoolerDirectResearchSpecial", "Availability")); | |
| 77 | } | ||
| 78 | ✗ | return result; | |
| 79 | ✗ | } | |
| 80 | |||
| 81 | 1012 | unsigned EvaporativeCoolerDirectResearchSpecial_Impl::inletPort() const { | |
| 82 | 1012 | return OS_EvaporativeCooler_Direct_ResearchSpecialFields::AirInletNodeName; | |
| 83 | } | ||
| 84 | |||
| 85 | 577 | unsigned EvaporativeCoolerDirectResearchSpecial_Impl::outletPort() const { | |
| 86 | 577 | return OS_EvaporativeCooler_Direct_ResearchSpecialFields::AirOutletNodeName; | |
| 87 | } | ||
| 88 | |||
| 89 | 176 | bool EvaporativeCoolerDirectResearchSpecial_Impl::addToNode(Node& node) { | |
| 90 |
3/3✓ Branch 1 taken 176 times.
✓ Branch 3 taken 174 times.
✓ Branch 4 taken 2 times.
|
352 | if (boost::optional<AirLoopHVAC> airLoop = node.airLoopHVAC()) { |
| 91 |
5/5✓ Branch 1 taken 174 times.
✓ Branch 4 taken 174 times.
✓ Branch 7 taken 174 times.
✓ Branch 11 taken 173 times.
✓ Branch 12 taken 1 time.
|
174 | if (!airLoop->demandComponent(node.handle())) { |
| 92 |
2/3✓ Branch 1 taken 173 times.
✓ Branch 3 taken 173 times.
✗ Branch 4 not taken.
|
173 | if (StraightComponent_Impl::addToNode(node)) { |
| 93 |
4/5✓ Branch 1 taken 173 times.
✓ Branch 4 taken 173 times.
✓ Branch 7 taken 173 times.
✓ Branch 11 taken 173 times.
✗ Branch 12 not taken.
|
346 | if (boost::optional<Node> node = this->outletModelObject()->optionalCast<Node>()) { |
| 94 |
2/2✓ Branch 1 taken 173 times.
✓ Branch 4 taken 173 times.
|
173 | this->setSensorNode(node.get()); |
| 95 | 173 | } | |
| 96 | 173 | return true; | |
| 97 | } | ||
| 98 | } | ||
| 99 | 176 | } | |
| 100 | |||
| 101 |
2/3✓ Branch 1 taken 3 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 3 times.
|
6 | if (auto oa = node.airLoopHVACOutdoorAirSystem()) { |
| 102 | ✗ | if (StraightComponent_Impl::addToNode(node)) { | |
| 103 | ✗ | if (auto _node = outletModelObject()->optionalCast<Node>()) { | |
| 104 | ✗ | setSensorNode(_node.get()); | |
| 105 | ✗ | } | |
| 106 | ✗ | return true; | |
| 107 | } | ||
| 108 | 3 | } | |
| 109 | |||
| 110 | 3 | return false; | |
| 111 | } | ||
| 112 | |||
| 113 | 11 | std::vector<openstudio::IdfObject> EvaporativeCoolerDirectResearchSpecial_Impl::remove() { | |
| 114 | 11 | return StraightComponent_Impl::remove(); | |
| 115 | } | ||
| 116 | |||
| 117 | 33 | Schedule EvaporativeCoolerDirectResearchSpecial_Impl::availabilitySchedule() const { | |
| 118 | boost::optional<Schedule> value = | ||
| 119 |
2/2✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
|
33 | getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_EvaporativeCooler_Direct_ResearchSpecialFields::AvailabilityScheduleName); |
| 120 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 33 times.
|
33 | if (!value) { |
| 121 | // it is an error if we get here, however we don't want to crash | ||
| 122 | // so we hook up to global always on schedule | ||
| 123 | ✗ | LOG(Error, "Required availability schedule not set, using 'Always On' schedule"); | |
| 124 | ✗ | value = this->model().alwaysOnDiscreteSchedule(); | |
| 125 | ✗ | OS_ASSERT(value); | |
| 126 | ✗ | const_cast<EvaporativeCoolerDirectResearchSpecial_Impl*>(this)->setAvailabilitySchedule(*value); | |
| 127 | ✗ | value = getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_EvaporativeCooler_Direct_ResearchSpecialFields::AvailabilityScheduleName); | |
| 128 | } | ||
| 129 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 33 times.
✗ Branch 4 not taken.
|
33 | OS_ASSERT(value); |
| 130 |
2/2✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
|
66 | return value.get(); |
| 131 | 33 | } | |
| 132 | |||
| 133 | 14 | boost::optional<ZoneHVACComponent> EvaporativeCoolerDirectResearchSpecial_Impl::containingZoneHVACComponent() const { | |
| 134 | |||
| 135 |
2/2✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
|
14 | std::vector<ZoneHVACComponent> zoneHVACComponent = this->model().getModelObjects<ZoneHVACComponent>(); |
| 136 |
2/2✓ Branch 5 taken 3 times.
✓ Branch 6 taken 11 times.
|
14 | for (const auto& elem : zoneHVACComponent) { |
| 137 |
4/5✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
✗ Branch 11 not taken.
|
3 | switch (elem.iddObject().type().value()) { |
| 138 | 3 | case openstudio::IddObjectType::OS_ZoneHVAC_EvaporativeCoolerUnit: { | |
| 139 |
1/1✓ Branch 1 taken 3 times.
|
3 | auto component = elem.cast<ZoneHVACEvaporativeCoolerUnit>(); |
| 140 |
5/6✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
✓ Branch 13 taken 3 times.
✗ Branch 14 not taken.
|
3 | if (component.firstEvaporativeCooler().handle() == this->handle()) { |
| 141 |
1/1✓ Branch 1 taken 3 times.
|
3 | return elem; |
| 142 | } | ||
| 143 | // I guess it's fine since this is optional anyways | ||
| 144 | // } else if (auto comp_ = component.secondEvaporativeCooler(); comp_ && comp_->handle() == this->handle()) { return elem; } | ||
| 145 | ✗ | break; | |
| 146 | 3 | } | |
| 147 | ✗ | default: { | |
| 148 | ✗ | break; | |
| 149 | } | ||
| 150 | } | ||
| 151 | } | ||
| 152 | 11 | return boost::none; | |
| 153 | 14 | } | |
| 154 | |||
| 155 | 188 | bool EvaporativeCoolerDirectResearchSpecial_Impl::setAvailabilitySchedule(Schedule& schedule) { | |
| 156 |
3/3✓ Branch 1 taken 188 times.
✓ Branch 4 taken 188 times.
✓ Branch 7 taken 188 times.
|
752 | bool result = setSchedule(OS_EvaporativeCooler_Direct_ResearchSpecialFields::AvailabilityScheduleName, "EvaporativeCoolerDirectResearchSpecial", |
| 157 | "Availability", schedule); | ||
| 158 | 188 | return result; | |
| 159 | } | ||
| 160 | |||
| 161 | 33 | double EvaporativeCoolerDirectResearchSpecial_Impl::coolerDesignEffectiveness() const { | |
| 162 |
2/2✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
|
33 | return this->getDouble(OS_EvaporativeCooler_Direct_ResearchSpecialFields::CoolerDesignEffectiveness).get(); |
| 163 | } | ||
| 164 | |||
| 165 | 188 | bool EvaporativeCoolerDirectResearchSpecial_Impl::setCoolerDesignEffectiveness(double value) { | |
| 166 | 188 | return this->setDouble(OS_EvaporativeCooler_Direct_ResearchSpecialFields::CoolerDesignEffectiveness, value); | |
| 167 | } | ||
| 168 | |||
| 169 | 33 | boost::optional<double> EvaporativeCoolerDirectResearchSpecial_Impl::recirculatingWaterPumpPowerConsumption() const { | |
| 170 | 33 | return this->getDouble(OS_EvaporativeCooler_Direct_ResearchSpecialFields::RecirculatingWaterPumpPowerConsumption); | |
| 171 | } | ||
| 172 | |||
| 173 | 188 | bool EvaporativeCoolerDirectResearchSpecial_Impl::setRecirculatingWaterPumpPowerConsumption(double value) { | |
| 174 | 188 | return this->setDouble(OS_EvaporativeCooler_Direct_ResearchSpecialFields::RecirculatingWaterPumpPowerConsumption, value); | |
| 175 | } | ||
| 176 | |||
| 177 | ✗ | void EvaporativeCoolerDirectResearchSpecial_Impl::autosizeRecirculatingWaterPumpPowerConsumption() { | |
| 178 | ✗ | this->setString(OS_EvaporativeCooler_Direct_ResearchSpecialFields::RecirculatingWaterPumpPowerConsumption, "Autosize"); | |
| 179 | ✗ | } | |
| 180 | |||
| 181 | 33 | bool EvaporativeCoolerDirectResearchSpecial_Impl::isRecirculatingWaterPumpPowerConsumptionAutosized() const { | |
| 182 | 33 | bool result = false; | |
| 183 |
1/1✓ Branch 1 taken 33 times.
|
33 | boost::optional<std::string> value = getString(OS_EvaporativeCooler_Direct_ResearchSpecialFields::RecirculatingWaterPumpPowerConsumption, true); |
| 184 |
1/2✓ Branch 0 taken 33 times.
✗ Branch 1 not taken.
|
33 | if (value) { |
| 185 |
3/3✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
|
66 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 186 | } | ||
| 187 | 33 | return result; | |
| 188 | 33 | } | |
| 189 | |||
| 190 | 36 | boost::optional<double> EvaporativeCoolerDirectResearchSpecial_Impl::primaryAirDesignFlowRate() const { | |
| 191 | 36 | return this->getDouble(OS_EvaporativeCooler_Direct_ResearchSpecialFields::PrimaryAirDesignFlowRate); | |
| 192 | } | ||
| 193 | |||
| 194 | 1 | bool EvaporativeCoolerDirectResearchSpecial_Impl::setPrimaryAirDesignFlowRate(double value) { | |
| 195 | 1 | return this->setDouble(OS_EvaporativeCooler_Direct_ResearchSpecialFields::PrimaryAirDesignFlowRate, value); | |
| 196 | } | ||
| 197 | |||
| 198 | ✗ | void EvaporativeCoolerDirectResearchSpecial_Impl::autosizePrimaryAirDesignFlowRate() { | |
| 199 | ✗ | this->setString(OS_EvaporativeCooler_Direct_ResearchSpecialFields::PrimaryAirDesignFlowRate, "Autosize"); | |
| 200 | ✗ | } | |
| 201 | |||
| 202 | 33 | bool EvaporativeCoolerDirectResearchSpecial_Impl::isPrimaryAirDesignFlowRateAutosized() const { | |
| 203 | 33 | bool result = false; | |
| 204 |
1/1✓ Branch 1 taken 33 times.
|
33 | boost::optional<std::string> value = getString(OS_EvaporativeCooler_Direct_ResearchSpecialFields::PrimaryAirDesignFlowRate, true); |
| 205 |
1/2✓ Branch 0 taken 33 times.
✗ Branch 1 not taken.
|
33 | if (value) { |
| 206 |
3/3✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
✓ Branch 7 taken 33 times.
|
66 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 207 | } | ||
| 208 | 33 | return result; | |
| 209 | 33 | } | |
| 210 | |||
| 211 | 33 | boost::optional<Node> EvaporativeCoolerDirectResearchSpecial_Impl::sensorNode() const { | |
| 212 |
1/1✓ Branch 1 taken 33 times.
|
33 | boost::optional<WorkspaceObject> wo = this->getTarget(OS_EvaporativeCooler_Direct_ResearchSpecialFields::SensorNodeName); |
| 213 | |||
| 214 |
2/2✓ Branch 0 taken 26 times.
✓ Branch 1 taken 7 times.
|
33 | if (wo) { |
| 215 |
2/2✓ Branch 1 taken 26 times.
✓ Branch 4 taken 26 times.
|
26 | return wo->optionalCast<Node>(); |
| 216 | } else { | ||
| 217 | 7 | return {}; | |
| 218 | } | ||
| 219 | 33 | } | |
| 220 | |||
| 221 | 173 | bool EvaporativeCoolerDirectResearchSpecial_Impl::setSensorNode(const Node& node) { | |
| 222 |
2/2✓ Branch 1 taken 173 times.
✓ Branch 4 taken 173 times.
|
173 | return this->setPointer(OS_EvaporativeCooler_Direct_ResearchSpecialFields::SensorNodeName, node.handle()); |
| 223 | } | ||
| 224 | |||
| 225 | 33 | double EvaporativeCoolerDirectResearchSpecial_Impl::driftLossFraction() const { | |
| 226 |
2/2✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
|
33 | return this->getDouble(OS_EvaporativeCooler_Direct_ResearchSpecialFields::DriftLossFraction).get(); |
| 227 | } | ||
| 228 | |||
| 229 | 188 | bool EvaporativeCoolerDirectResearchSpecial_Impl::setDriftLossFraction(double value) { | |
| 230 | 188 | return this->setDouble(OS_EvaporativeCooler_Direct_ResearchSpecialFields::DriftLossFraction, value); | |
| 231 | } | ||
| 232 | |||
| 233 | 33 | double EvaporativeCoolerDirectResearchSpecial_Impl::blowdownConcentrationRatio() const { | |
| 234 |
2/2✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
|
33 | return this->getDouble(OS_EvaporativeCooler_Direct_ResearchSpecialFields::BlowdownConcentrationRatio).get(); |
| 235 | } | ||
| 236 | |||
| 237 | 188 | bool EvaporativeCoolerDirectResearchSpecial_Impl::setBlowdownConcentrationRatio(double value) { | |
| 238 | 188 | return this->setDouble(OS_EvaporativeCooler_Direct_ResearchSpecialFields::BlowdownConcentrationRatio, value); | |
| 239 | } | ||
| 240 | |||
| 241 | ✗ | boost::optional<ModelObject> EvaporativeCoolerDirectResearchSpecial_Impl::availabilityScheduleAsModelObject() const { | |
| 242 | ✗ | OptionalModelObject result = availabilitySchedule(); | |
| 243 | ✗ | return result; | |
| 244 | } | ||
| 245 | |||
| 246 | ✗ | bool EvaporativeCoolerDirectResearchSpecial_Impl::setAvailabilityScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) { | |
| 247 | ✗ | if (modelObject) { | |
| 248 | ✗ | OptionalSchedule intermediate = modelObject->optionalCast<Schedule>(); | |
| 249 | ✗ | if (intermediate) { | |
| 250 | ✗ | Schedule schedule(*intermediate); | |
| 251 | ✗ | return setAvailabilitySchedule(schedule); | |
| 252 | ✗ | } | |
| 253 | ✗ | } | |
| 254 | ✗ | return false; | |
| 255 | } | ||
| 256 | |||
| 257 | 33 | boost::optional<Curve> EvaporativeCoolerDirectResearchSpecial_Impl::effectivenessFlowRatioModifierCurve() const { | |
| 258 |
1/1✓ Branch 1 taken 33 times.
|
66 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 259 |
1/1✓ Branch 1 taken 33 times.
|
66 | OS_EvaporativeCooler_Direct_ResearchSpecialFields::EffectivenessFlowRatioModifierCurveName); |
| 260 | } | ||
| 261 | |||
| 262 | 33 | double EvaporativeCoolerDirectResearchSpecial_Impl::waterPumpPowerSizingFactor() const { | |
| 263 |
1/1✓ Branch 1 taken 33 times.
|
33 | boost::optional<double> value = getDouble(OS_EvaporativeCooler_Direct_ResearchSpecialFields::WaterPumpPowerSizingFactor, true); |
| 264 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 33 times.
✗ Branch 4 not taken.
|
33 | OS_ASSERT(value); |
| 265 |
1/1✓ Branch 1 taken 33 times.
|
66 | return value.get(); |
| 266 | } | ||
| 267 | |||
| 268 | 33 | boost::optional<Curve> EvaporativeCoolerDirectResearchSpecial_Impl::waterPumpPowerModifierCurve() const { | |
| 269 |
2/2✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
|
33 | return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_EvaporativeCooler_Direct_ResearchSpecialFields::WaterPumpPowerModifierCurveName); |
| 270 | } | ||
| 271 | |||
| 272 | ✗ | bool EvaporativeCoolerDirectResearchSpecial_Impl::setEffectivenessFlowRatioModifierCurve(const Curve& curve) { | |
| 273 | ✗ | return setPointer(OS_EvaporativeCooler_Direct_ResearchSpecialFields::EffectivenessFlowRatioModifierCurveName, curve.handle()); | |
| 274 | } | ||
| 275 | |||
| 276 | ✗ | void EvaporativeCoolerDirectResearchSpecial_Impl::resetEffectivenessFlowRatioModifierCurve() { | |
| 277 | ✗ | bool result = setString(OS_EvaporativeCooler_Direct_ResearchSpecialFields::EffectivenessFlowRatioModifierCurveName, ""); | |
| 278 | ✗ | OS_ASSERT(result); | |
| 279 | ✗ | } | |
| 280 | |||
| 281 | 188 | bool EvaporativeCoolerDirectResearchSpecial_Impl::setWaterPumpPowerSizingFactor(double waterPumpPowerSizingFactor) { | |
| 282 | 188 | bool result = setDouble(OS_EvaporativeCooler_Direct_ResearchSpecialFields::WaterPumpPowerSizingFactor, waterPumpPowerSizingFactor); | |
| 283 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 188 times.
|
188 | OS_ASSERT(result); |
| 284 | 188 | return result; | |
| 285 | } | ||
| 286 | |||
| 287 | ✗ | bool EvaporativeCoolerDirectResearchSpecial_Impl::setWaterPumpPowerModifierCurve(const Curve& curve) { | |
| 288 | ✗ | return setPointer(OS_EvaporativeCooler_Direct_ResearchSpecialFields::WaterPumpPowerModifierCurveName, curve.handle()); | |
| 289 | } | ||
| 290 | |||
| 291 | ✗ | void EvaporativeCoolerDirectResearchSpecial_Impl::resetWaterPumpPowerModifierCurve() { | |
| 292 | ✗ | bool result = setString(OS_EvaporativeCooler_Direct_ResearchSpecialFields::WaterPumpPowerModifierCurveName, ""); | |
| 293 | ✗ | OS_ASSERT(result); | |
| 294 | ✗ | } | |
| 295 | |||
| 296 | // Evaporative Operation Minimum Drybulb Temperature | ||
| 297 | 35 | double EvaporativeCoolerDirectResearchSpecial_Impl::evaporativeOperationMinimumDrybulbTemperature() const { | |
| 298 |
2/2✓ Branch 1 taken 35 times.
✓ Branch 4 taken 35 times.
|
35 | return getDouble(OS_EvaporativeCooler_Direct_ResearchSpecialFields::EvaporativeOperationMinimumDrybulbTemperature).get(); |
| 299 | } | ||
| 300 | |||
| 301 | 189 | bool EvaporativeCoolerDirectResearchSpecial_Impl::setEvaporativeOperationMinimumDrybulbTemperature( | |
| 302 | double evaporativeOperationMinimumDrybulbTemperature) { | ||
| 303 | 189 | bool result = setDouble(OS_EvaporativeCooler_Direct_ResearchSpecialFields::EvaporativeOperationMinimumDrybulbTemperature, | |
| 304 | evaporativeOperationMinimumDrybulbTemperature); | ||
| 305 | 189 | return result; | |
| 306 | } | ||
| 307 | |||
| 308 | // Evaporative Operation Maximum Limit Wetbulb Temperature | ||
| 309 | 35 | double EvaporativeCoolerDirectResearchSpecial_Impl::evaporativeOperationMaximumLimitWetbulbTemperature() const { | |
| 310 |
2/2✓ Branch 1 taken 35 times.
✓ Branch 4 taken 35 times.
|
35 | return getDouble(OS_EvaporativeCooler_Direct_ResearchSpecialFields::EvaporativeOperationMaximumLimitWetbulbTemperature).get(); |
| 311 | } | ||
| 312 | |||
| 313 | 189 | bool EvaporativeCoolerDirectResearchSpecial_Impl::setEvaporativeOperationMaximumLimitWetbulbTemperature( | |
| 314 | double evaporativeOperationMaximumLimitWetbulbTemperature) { | ||
| 315 | 189 | bool result = setDouble(OS_EvaporativeCooler_Direct_ResearchSpecialFields::EvaporativeOperationMaximumLimitWetbulbTemperature, | |
| 316 | evaporativeOperationMaximumLimitWetbulbTemperature); | ||
| 317 | 189 | return result; | |
| 318 | } | ||
| 319 | |||
| 320 | // Evaporative Operation Maximum Limit Drybulb Temperature | ||
| 321 | 35 | double EvaporativeCoolerDirectResearchSpecial_Impl::evaporativeOperationMaximumLimitDrybulbTemperature() const { | |
| 322 |
2/2✓ Branch 1 taken 35 times.
✓ Branch 4 taken 35 times.
|
35 | return getDouble(OS_EvaporativeCooler_Direct_ResearchSpecialFields::EvaporativeOperationMaximumLimitDrybulbTemperature).get(); |
| 323 | } | ||
| 324 | |||
| 325 | 189 | bool EvaporativeCoolerDirectResearchSpecial_Impl::setEvaporativeOperationMaximumLimitDrybulbTemperature( | |
| 326 | double evaporativeOperationMaximumLimitDrybulbTemperature) { | ||
| 327 | 189 | bool result = setDouble(OS_EvaporativeCooler_Direct_ResearchSpecialFields::EvaporativeOperationMaximumLimitDrybulbTemperature, | |
| 328 | evaporativeOperationMaximumLimitDrybulbTemperature); | ||
| 329 | 189 | return result; | |
| 330 | } | ||
| 331 | |||
| 332 | ✗ | boost::optional<double> EvaporativeCoolerDirectResearchSpecial_Impl::autosizedRecirculatingWaterPumpPowerConsumption() const { | |
| 333 | ✗ | return getAutosizedValue("Recirculating Pump Power", "W"); | |
| 334 | } | ||
| 335 | |||
| 336 | ✗ | boost::optional<double> EvaporativeCoolerDirectResearchSpecial_Impl::autosizedPrimaryAirDesignFlowRate() const { | |
| 337 | ✗ | return getAutosizedValue("Primary Air Design Flow Rate", "m3/s"); | |
| 338 | } | ||
| 339 | |||
| 340 | ✗ | void EvaporativeCoolerDirectResearchSpecial_Impl::autosize() { | |
| 341 | ✗ | autosizeRecirculatingWaterPumpPowerConsumption(); | |
| 342 | ✗ | autosizePrimaryAirDesignFlowRate(); | |
| 343 | ✗ | } | |
| 344 | |||
| 345 | ✗ | void EvaporativeCoolerDirectResearchSpecial_Impl::applySizingValues() { | |
| 346 | ✗ | boost::optional<double> val; | |
| 347 | ✗ | val = autosizedRecirculatingWaterPumpPowerConsumption(); | |
| 348 | ✗ | if (val) { | |
| 349 | ✗ | setRecirculatingWaterPumpPowerConsumption(val.get()); | |
| 350 | } | ||
| 351 | |||
| 352 | ✗ | val = autosizedPrimaryAirDesignFlowRate(); | |
| 353 | ✗ | if (val) { | |
| 354 | ✗ | setPrimaryAirDesignFlowRate(val.get()); | |
| 355 | } | ||
| 356 | ✗ | } | |
| 357 | |||
| 358 | ✗ | ComponentType EvaporativeCoolerDirectResearchSpecial_Impl::componentType() const { | |
| 359 | ✗ | return ComponentType::Cooling; | |
| 360 | } | ||
| 361 | |||
| 362 | 1 | std::vector<FuelType> EvaporativeCoolerDirectResearchSpecial_Impl::coolingFuelTypes() const { | |
| 363 |
1/1✓ Branch 1 taken 1 time.
|
3 | return {FuelType::Electricity}; |
| 364 | } | ||
| 365 | |||
| 366 | 1 | std::vector<FuelType> EvaporativeCoolerDirectResearchSpecial_Impl::heatingFuelTypes() const { | |
| 367 | 1 | return {}; | |
| 368 | } | ||
| 369 | |||
| 370 | 1 | std::vector<AppGFuelType> EvaporativeCoolerDirectResearchSpecial_Impl::appGHeatingFuelTypes() const { | |
| 371 | 1 | return {}; | |
| 372 | } | ||
| 373 | |||
| 374 | } // namespace detail | ||
| 375 | |||
| 376 | // create a new EvaporativeCoolerDirectResearchSpecial object in the model's workspace | ||
| 377 | 188 | EvaporativeCoolerDirectResearchSpecial::EvaporativeCoolerDirectResearchSpecial(const Model& model, Schedule& schedule) | |
| 378 | 188 | : StraightComponent(EvaporativeCoolerDirectResearchSpecial::iddObjectType(), model) { | |
| 379 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 188 times.
✗ Branch 5 not taken.
|
188 | OS_ASSERT(getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()); |
| 380 | |||
| 381 |
1/1✓ Branch 1 taken 188 times.
|
188 | this->setAvailabilitySchedule(schedule); |
| 382 | |||
| 383 |
1/1✓ Branch 1 taken 188 times.
|
188 | setCoolerDesignEffectiveness(1.0); |
| 384 | |||
| 385 |
1/1✓ Branch 1 taken 188 times.
|
188 | setRecirculatingWaterPumpPowerConsumption(0.0); |
| 386 | |||
| 387 |
1/1✓ Branch 1 taken 188 times.
|
188 | setDriftLossFraction(0.0); |
| 388 | |||
| 389 |
1/1✓ Branch 1 taken 188 times.
|
188 | setBlowdownConcentrationRatio(0.0); |
| 390 | |||
| 391 | // TODO: JM 2019-02-25: This input seems wrong given the current E+ IDD notes / IO documentation. | ||
| 392 | // This isn't a regular sizing factor, but something in W/(m3/s), with a default of 90 and a range of 55 to 150.0 | ||
| 393 | // @kbenne for review please | ||
| 394 |
1/1✓ Branch 1 taken 188 times.
|
188 | setWaterPumpPowerSizingFactor(0.1); |
| 395 | |||
| 396 | // E+ suggested values | ||
| 397 |
1/1✓ Branch 1 taken 188 times.
|
188 | setEvaporativeOperationMinimumDrybulbTemperature(16); |
| 398 |
1/1✓ Branch 1 taken 188 times.
|
188 | setEvaporativeOperationMaximumLimitWetbulbTemperature(24); |
| 399 |
1/1✓ Branch 1 taken 188 times.
|
188 | setEvaporativeOperationMaximumLimitDrybulbTemperature(28); |
| 400 | 188 | } | |
| 401 | |||
| 402 | ✗ | Schedule EvaporativeCoolerDirectResearchSpecial::availabilitySchedule() const { | |
| 403 | ✗ | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->availabilitySchedule(); | |
| 404 | } | ||
| 405 | |||
| 406 | 33 | Schedule EvaporativeCoolerDirectResearchSpecial::availableSchedule() const { | |
| 407 |
1/1✓ Branch 3 taken 33 times.
|
33 | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->availabilitySchedule(); |
| 408 | } | ||
| 409 | |||
| 410 | 188 | bool EvaporativeCoolerDirectResearchSpecial::setAvailabilitySchedule(Schedule& schedule) { | |
| 411 |
1/1✓ Branch 3 taken 188 times.
|
188 | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->setAvailabilitySchedule(schedule); |
| 412 | } | ||
| 413 | |||
| 414 | ✗ | bool EvaporativeCoolerDirectResearchSpecial::setAvailableSchedule(Schedule& schedule) { | |
| 415 | ✗ | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->setAvailabilitySchedule(schedule); | |
| 416 | } | ||
| 417 | |||
| 418 | 33 | double EvaporativeCoolerDirectResearchSpecial::coolerDesignEffectiveness() const { | |
| 419 |
1/1✓ Branch 3 taken 33 times.
|
33 | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->coolerDesignEffectiveness(); |
| 420 | } | ||
| 421 | |||
| 422 | ✗ | double EvaporativeCoolerDirectResearchSpecial::coolerEffectiveness() const { | |
| 423 | ✗ | LOG(Info, "This method is deprecated, please replace it with coolerDesignEffectiveness."); | |
| 424 | ✗ | return coolerDesignEffectiveness(); | |
| 425 | } | ||
| 426 | |||
| 427 | 188 | bool EvaporativeCoolerDirectResearchSpecial::setCoolerDesignEffectiveness(double value) { | |
| 428 |
1/1✓ Branch 3 taken 188 times.
|
188 | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->setCoolerDesignEffectiveness(value); |
| 429 | } | ||
| 430 | |||
| 431 | ✗ | bool EvaporativeCoolerDirectResearchSpecial::setCoolerEffectiveness(double value) { | |
| 432 | ✗ | LOG(Info, "This method is deprecated, please replace it with setCoolerDesignEffectiveness."); | |
| 433 | ✗ | return setCoolerDesignEffectiveness(value); | |
| 434 | } | ||
| 435 | |||
| 436 | 33 | boost::optional<double> EvaporativeCoolerDirectResearchSpecial::recirculatingWaterPumpPowerConsumption() const { | |
| 437 |
1/1✓ Branch 3 taken 33 times.
|
33 | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->recirculatingWaterPumpPowerConsumption(); |
| 438 | } | ||
| 439 | |||
| 440 | 188 | bool EvaporativeCoolerDirectResearchSpecial::setRecirculatingWaterPumpPowerConsumption(double value) { | |
| 441 |
1/1✓ Branch 3 taken 188 times.
|
188 | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->setRecirculatingWaterPumpPowerConsumption(value); |
| 442 | } | ||
| 443 | |||
| 444 | ✗ | void EvaporativeCoolerDirectResearchSpecial::autosizeRecirculatingWaterPumpPowerConsumption() { | |
| 445 | ✗ | getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->autosizeRecirculatingWaterPumpPowerConsumption(); | |
| 446 | ✗ | } | |
| 447 | |||
| 448 | 33 | bool EvaporativeCoolerDirectResearchSpecial::isRecirculatingWaterPumpPowerConsumptionAutosized() const { | |
| 449 |
1/1✓ Branch 3 taken 33 times.
|
33 | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->isRecirculatingWaterPumpPowerConsumptionAutosized(); |
| 450 | } | ||
| 451 | |||
| 452 | 33 | boost::optional<Node> EvaporativeCoolerDirectResearchSpecial::sensorNode() const { | |
| 453 |
1/1✓ Branch 3 taken 33 times.
|
33 | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->sensorNode(); |
| 454 | } | ||
| 455 | |||
| 456 | ✗ | bool EvaporativeCoolerDirectResearchSpecial::setSensorNode(const Node& node) { | |
| 457 | ✗ | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->setSensorNode(node); | |
| 458 | } | ||
| 459 | |||
| 460 | 33 | double EvaporativeCoolerDirectResearchSpecial::driftLossFraction() const { | |
| 461 |
1/1✓ Branch 3 taken 33 times.
|
33 | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->driftLossFraction(); |
| 462 | } | ||
| 463 | |||
| 464 | 188 | bool EvaporativeCoolerDirectResearchSpecial::setDriftLossFraction(double value) { | |
| 465 |
1/1✓ Branch 3 taken 188 times.
|
188 | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->setDriftLossFraction(value); |
| 466 | } | ||
| 467 | |||
| 468 | 33 | double EvaporativeCoolerDirectResearchSpecial::blowdownConcentrationRatio() const { | |
| 469 |
1/1✓ Branch 3 taken 33 times.
|
33 | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->blowdownConcentrationRatio(); |
| 470 | } | ||
| 471 | |||
| 472 | 188 | bool EvaporativeCoolerDirectResearchSpecial::setBlowdownConcentrationRatio(double value) { | |
| 473 |
1/1✓ Branch 3 taken 188 times.
|
188 | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->setBlowdownConcentrationRatio(value); |
| 474 | } | ||
| 475 | |||
| 476 | 33 | boost::optional<Curve> EvaporativeCoolerDirectResearchSpecial::effectivenessFlowRatioModifierCurve() const { | |
| 477 |
1/1✓ Branch 3 taken 33 times.
|
33 | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->effectivenessFlowRatioModifierCurve(); |
| 478 | } | ||
| 479 | |||
| 480 | 33 | double EvaporativeCoolerDirectResearchSpecial::waterPumpPowerSizingFactor() const { | |
| 481 |
1/1✓ Branch 3 taken 33 times.
|
33 | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->waterPumpPowerSizingFactor(); |
| 482 | } | ||
| 483 | |||
| 484 | 33 | boost::optional<Curve> EvaporativeCoolerDirectResearchSpecial::waterPumpPowerModifierCurve() const { | |
| 485 |
1/1✓ Branch 3 taken 33 times.
|
33 | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->waterPumpPowerModifierCurve(); |
| 486 | } | ||
| 487 | ✗ | bool EvaporativeCoolerDirectResearchSpecial::setEffectivenessFlowRatioModifierCurve(const Curve& curve) { | |
| 488 | ✗ | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->setEffectivenessFlowRatioModifierCurve(curve); | |
| 489 | } | ||
| 490 | |||
| 491 | ✗ | void EvaporativeCoolerDirectResearchSpecial::resetEffectivenessFlowRatioModifierCurve() { | |
| 492 | ✗ | getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->resetEffectivenessFlowRatioModifierCurve(); | |
| 493 | ✗ | } | |
| 494 | |||
| 495 | 188 | bool EvaporativeCoolerDirectResearchSpecial::setWaterPumpPowerSizingFactor(double waterPumpPowerSizingFactor) { | |
| 496 |
1/1✓ Branch 3 taken 188 times.
|
188 | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->setWaterPumpPowerSizingFactor(waterPumpPowerSizingFactor); |
| 497 | } | ||
| 498 | |||
| 499 | ✗ | bool EvaporativeCoolerDirectResearchSpecial::setWaterPumpPowerModifierCurve(const Curve& curve) { | |
| 500 | ✗ | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->setWaterPumpPowerModifierCurve(curve); | |
| 501 | } | ||
| 502 | |||
| 503 | ✗ | void EvaporativeCoolerDirectResearchSpecial::resetWaterPumpPowerModifierCurve() { | |
| 504 | ✗ | getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->resetWaterPumpPowerModifierCurve(); | |
| 505 | ✗ | } | |
| 506 | |||
| 507 | 36 | boost::optional<double> EvaporativeCoolerDirectResearchSpecial::primaryAirDesignFlowRate() const { | |
| 508 |
1/1✓ Branch 3 taken 36 times.
|
36 | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->primaryAirDesignFlowRate(); |
| 509 | } | ||
| 510 | |||
| 511 | 1 | bool EvaporativeCoolerDirectResearchSpecial::setPrimaryAirDesignFlowRate(double value) { | |
| 512 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->setPrimaryAirDesignFlowRate(value); |
| 513 | } | ||
| 514 | |||
| 515 | ✗ | void EvaporativeCoolerDirectResearchSpecial::autosizePrimaryAirDesignFlowRate() { | |
| 516 | ✗ | getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->autosizePrimaryAirDesignFlowRate(); | |
| 517 | ✗ | } | |
| 518 | |||
| 519 | 33 | bool EvaporativeCoolerDirectResearchSpecial::isPrimaryAirDesignFlowRateAutosized() const { | |
| 520 |
1/1✓ Branch 3 taken 33 times.
|
33 | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->isPrimaryAirDesignFlowRateAutosized(); |
| 521 | } | ||
| 522 | |||
| 523 | // Evaporative Operation Minimum Drybulb Temperature | ||
| 524 | 35 | double EvaporativeCoolerDirectResearchSpecial::evaporativeOperationMinimumDrybulbTemperature() const { | |
| 525 |
1/1✓ Branch 3 taken 35 times.
|
35 | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->evaporativeOperationMinimumDrybulbTemperature(); |
| 526 | } | ||
| 527 | |||
| 528 | bool | ||
| 529 | 189 | EvaporativeCoolerDirectResearchSpecial::setEvaporativeOperationMinimumDrybulbTemperature(double evaporativeOperationMinimumDrybulbTemperature) { | |
| 530 |
1/1✓ Branch 3 taken 189 times.
|
378 | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->setEvaporativeOperationMinimumDrybulbTemperature( |
| 531 | 378 | evaporativeOperationMinimumDrybulbTemperature); | |
| 532 | } | ||
| 533 | |||
| 534 | // Evaporative Operation Maximum Limit Wetbulb Temperature | ||
| 535 | 35 | double EvaporativeCoolerDirectResearchSpecial::evaporativeOperationMaximumLimitWetbulbTemperature() const { | |
| 536 |
1/1✓ Branch 3 taken 35 times.
|
35 | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->evaporativeOperationMaximumLimitWetbulbTemperature(); |
| 537 | } | ||
| 538 | |||
| 539 | 189 | bool EvaporativeCoolerDirectResearchSpecial::setEvaporativeOperationMaximumLimitWetbulbTemperature( | |
| 540 | double evaporativeOperationMaximumLimitWetbulbTemperature) { | ||
| 541 |
1/1✓ Branch 3 taken 189 times.
|
378 | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->setEvaporativeOperationMaximumLimitWetbulbTemperature( |
| 542 | 378 | evaporativeOperationMaximumLimitWetbulbTemperature); | |
| 543 | } | ||
| 544 | |||
| 545 | // Evaporative Operation Maximum Limit Drybulb Temperature | ||
| 546 | 35 | double EvaporativeCoolerDirectResearchSpecial::evaporativeOperationMaximumLimitDrybulbTemperature() const { | |
| 547 |
1/1✓ Branch 3 taken 35 times.
|
35 | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->evaporativeOperationMaximumLimitDrybulbTemperature(); |
| 548 | } | ||
| 549 | |||
| 550 | 189 | bool EvaporativeCoolerDirectResearchSpecial::setEvaporativeOperationMaximumLimitDrybulbTemperature( | |
| 551 | double evaporativeOperationMaximumLimitDrybulbTemperature) { | ||
| 552 |
1/1✓ Branch 3 taken 189 times.
|
378 | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->setEvaporativeOperationMaximumLimitDrybulbTemperature( |
| 553 | 378 | evaporativeOperationMaximumLimitDrybulbTemperature); | |
| 554 | } | ||
| 555 | |||
| 556 | 40 | EvaporativeCoolerDirectResearchSpecial::EvaporativeCoolerDirectResearchSpecial( | |
| 557 | 40 | std::shared_ptr<detail::EvaporativeCoolerDirectResearchSpecial_Impl> p) | |
| 558 |
1/1✓ Branch 3 taken 40 times.
|
40 | : StraightComponent(std::move(p)) {} |
| 559 | |||
| 560 | 8034 | IddObjectType EvaporativeCoolerDirectResearchSpecial::iddObjectType() { | |
| 561 |
1/1✓ Branch 1 taken 8034 times.
|
8034 | IddObjectType result(IddObjectType::OS_EvaporativeCooler_Direct_ResearchSpecial); |
| 562 | 8034 | return result; | |
| 563 | } | ||
| 564 | |||
| 565 | ✗ | boost::optional<double> EvaporativeCoolerDirectResearchSpecial::autosizedRecirculatingWaterPumpPowerConsumption() const { | |
| 566 | ✗ | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->autosizedRecirculatingWaterPumpPowerConsumption(); | |
| 567 | } | ||
| 568 | |||
| 569 | ✗ | boost::optional<double> EvaporativeCoolerDirectResearchSpecial::autosizedPrimaryAirDesignFlowRate() const { | |
| 570 | ✗ | return getImpl<detail::EvaporativeCoolerDirectResearchSpecial_Impl>()->autosizedPrimaryAirDesignFlowRate(); | |
| 571 | } | ||
| 572 | |||
| 573 | } // namespace model | ||
| 574 | } // namespace openstudio | ||
| 575 |