src/model/ZoneHVACEvaporativeCoolerUnit.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /*********************************************************************************************************************** | ||
| 2 | * OpenStudio(R), Copyright (c) 2008-2023, Alliance for Energy Innovation, LLC, and other contributors. All rights reserved. | ||
| 3 | * | ||
| 4 | * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the | ||
| 5 | * following conditions are met: | ||
| 6 | * | ||
| 7 | * (1) Redistributions of source code must retain the above copyright notice, this list of conditions and the following | ||
| 8 | * disclaimer. | ||
| 9 | * | ||
| 10 | * (2) Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following | ||
| 11 | * disclaimer in the documentation and/or other materials provided with the distribution. | ||
| 12 | * | ||
| 13 | * (3) Neither the name of the copyright holder nor the names of any contributors may be used to endorse or promote products | ||
| 14 | * derived from this software without specific prior written permission from the respective party. | ||
| 15 | * | ||
| 16 | * (4) Other than as required in clauses (1) and (2), distributions in any form of modifications or other derivative works | ||
| 17 | * may not use the "OpenStudio" trademark, "OS", "os", or any other confusingly similar designation without specific prior | ||
| 18 | * written permission from Alliance for Energy Innovation, LLC. | ||
| 19 | * | ||
| 20 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND ANY CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, | ||
| 21 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
| 22 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S), ANY CONTRIBUTORS, THE UNITED STATES GOVERNMENT, OR THE UNITED | ||
| 23 | * STATES DEPARTMENT OF ENERGY, NOR ANY OF THEIR EMPLOYEES, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
| 24 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF | ||
| 25 | * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 26 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF | ||
| 27 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 28 | ***********************************************************************************************************************/ | ||
| 29 | |||
| 30 | #include "ZoneHVACEvaporativeCoolerUnit.hpp" | ||
| 31 | #include "ZoneHVACEvaporativeCoolerUnit_Impl.hpp" | ||
| 32 | |||
| 33 | #include "Model.hpp" | ||
| 34 | #include "Model_Impl.hpp" | ||
| 35 | #include "Schedule.hpp" | ||
| 36 | #include "Schedule_Impl.hpp" | ||
| 37 | #include "HVACComponent.hpp" | ||
| 38 | #include "HVACComponent_Impl.hpp" | ||
| 39 | #include "ScheduleTypeLimits.hpp" | ||
| 40 | #include "ScheduleTypeRegistry.hpp" | ||
| 41 | #include "FanSystemModel.hpp" | ||
| 42 | #include "FanSystemModel_Impl.hpp" | ||
| 43 | #include "EvaporativeCoolerDirectResearchSpecial.hpp" | ||
| 44 | #include "EvaporativeCoolerDirectResearchSpecial_Impl.hpp" | ||
| 45 | |||
| 46 | #include "../utilities/core/Assert.hpp" | ||
| 47 | #include "../utilities/data/DataEnums.hpp" | ||
| 48 | |||
| 49 | #include <utilities/idd/IddFactory.hxx> | ||
| 50 | #include <utilities/idd/IddEnums.hxx> | ||
| 51 | #include <utilities/idd/OS_ZoneHVAC_EvaporativeCoolerUnit_FieldEnums.hxx> | ||
| 52 | |||
| 53 | namespace openstudio { | ||
| 54 | namespace model { | ||
| 55 | |||
| 56 | namespace detail { | ||
| 57 | |||
| 58 | 12 | ZoneHVACEvaporativeCoolerUnit_Impl::ZoneHVACEvaporativeCoolerUnit_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 59 | 12 | : ZoneHVACComponent_Impl(idfObject, model, keepHandle) { | |
| 60 |
4/6✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
✓ Branch 7 taken 12 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 12 times.
✗ Branch 13 not taken.
|
12 | OS_ASSERT(idfObject.iddObject().type() == ZoneHVACEvaporativeCoolerUnit::iddObjectType()); |
| 61 | 12 | } | |
| 62 | |||
| 63 | ✗ | ZoneHVACEvaporativeCoolerUnit_Impl::ZoneHVACEvaporativeCoolerUnit_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, | |
| 64 | ✗ | bool keepHandle) | |
| 65 | ✗ | : ZoneHVACComponent_Impl(other, model, keepHandle) { | |
| 66 | ✗ | OS_ASSERT(other.iddObject().type() == ZoneHVACEvaporativeCoolerUnit::iddObjectType()); | |
| 67 | ✗ | } | |
| 68 | |||
| 69 | 11 | ZoneHVACEvaporativeCoolerUnit_Impl::ZoneHVACEvaporativeCoolerUnit_Impl(const ZoneHVACEvaporativeCoolerUnit_Impl& other, Model_Impl* model, | |
| 70 | 11 | bool keepHandle) | |
| 71 | 11 | : ZoneHVACComponent_Impl(other, model, keepHandle) {} | |
| 72 | |||
| 73 | 3 | ModelObject ZoneHVACEvaporativeCoolerUnit_Impl::clone(Model model) const { | |
| 74 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
3 | auto evaporativeCoolUnitClone = ZoneHVACComponent_Impl::clone(model).cast<ZoneHVACEvaporativeCoolerUnit>(); |
| 75 | |||
| 76 |
2/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 3 times.
✗ Branch 4 not taken.
|
6 | if (OptionalHVACComponent intermediate = optionalSupplyAirFan()) { |
| 77 |
5/5✓ 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.
|
3 | evaporativeCoolUnitClone.setSupplyAirFan(intermediate->clone(model).cast<HVACComponent>()); |
| 78 | 3 | } | |
| 79 |
2/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 3 times.
✗ Branch 4 not taken.
|
6 | if (OptionalHVACComponent intermediate = optionalFirstEvaporativeCooler()) { |
| 80 |
5/5✓ 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.
|
3 | evaporativeCoolUnitClone.setFirstEvaporativeCooler(intermediate->clone(model).cast<HVACComponent>()); |
| 81 | 3 | } | |
| 82 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 1 time.
|
6 | if (OptionalHVACComponent intermediate = secondEvaporativeCooler()) { |
| 83 |
5/5✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 13 taken 2 times.
|
2 | evaporativeCoolUnitClone.setSecondEvaporativeCooler(intermediate->clone(model).cast<HVACComponent>()); |
| 84 | 3 | } | |
| 85 | |||
| 86 | 6 | return std::move(evaporativeCoolUnitClone); | |
| 87 | 3 | } | |
| 88 | |||
| 89 | ✗ | const std::vector<std::string>& ZoneHVACEvaporativeCoolerUnit_Impl::outputVariableNames() const { | |
| 90 | ✗ | static std::vector<std::string> result; | |
| 91 | ✗ | if (result.empty()) { | |
| 92 | } | ||
| 93 | ✗ | return result; | |
| 94 | } | ||
| 95 | |||
| 96 | 20 | IddObjectType ZoneHVACEvaporativeCoolerUnit_Impl::iddObjectType() const { | |
| 97 | 20 | return ZoneHVACEvaporativeCoolerUnit::iddObjectType(); | |
| 98 | } | ||
| 99 | |||
| 100 | ✗ | std::vector<ScheduleTypeKey> ZoneHVACEvaporativeCoolerUnit_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 101 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 102 | ✗ | const UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 103 | ✗ | if (std::find(fieldIndices.cbegin(), fieldIndices.cend(), OS_ZoneHVAC_EvaporativeCoolerUnitFields::AvailabilityScheduleName) | |
| 104 | ✗ | != fieldIndices.cend()) { | |
| 105 | ✗ | result.emplace_back("ZoneHVACEvaporativeCoolerUnit", "Availability"); | |
| 106 | } | ||
| 107 | ✗ | return result; | |
| 108 | ✗ | } | |
| 109 | |||
| 110 | 7 | std::vector<ModelObject> ZoneHVACEvaporativeCoolerUnit_Impl::children() const { | |
| 111 | 7 | std::vector<ModelObject> result; | |
| 112 |
2/3✓ Branch 1 taken 7 times.
✓ Branch 3 taken 7 times.
✗ Branch 4 not taken.
|
14 | if (OptionalHVACComponent intermediate = optionalSupplyAirFan()) { |
| 113 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | result.push_back(*intermediate); |
| 114 | 7 | } | |
| 115 |
2/3✓ Branch 1 taken 7 times.
✓ Branch 3 taken 7 times.
✗ Branch 4 not taken.
|
14 | if (OptionalHVACComponent intermediate = optionalFirstEvaporativeCooler()) { |
| 116 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | result.push_back(*intermediate); |
| 117 | 7 | } | |
| 118 |
3/3✓ Branch 1 taken 7 times.
✓ Branch 3 taken 3 times.
✓ Branch 4 taken 4 times.
|
14 | if (OptionalHVACComponent intermediate = secondEvaporativeCooler()) { |
| 119 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | result.push_back(*intermediate); |
| 120 | 7 | } | |
| 121 | 7 | return result; | |
| 122 | ✗ | } | |
| 123 | |||
| 124 | 53 | unsigned ZoneHVACEvaporativeCoolerUnit_Impl::inletPort() const { | |
| 125 | 53 | return OS_ZoneHVAC_EvaporativeCoolerUnitFields::ZoneReliefAirNodeName; | |
| 126 | } | ||
| 127 | |||
| 128 | 34 | unsigned ZoneHVACEvaporativeCoolerUnit_Impl::outletPort() const { | |
| 129 | 34 | return OS_ZoneHVAC_EvaporativeCoolerUnitFields::CoolerOutletNodeName; | |
| 130 | } | ||
| 131 | |||
| 132 | 1 | ComponentType ZoneHVACEvaporativeCoolerUnit_Impl::componentType() const { | |
| 133 |
1/1✓ Branch 1 taken 1 time.
|
1 | return ComponentType::Cooling; |
| 134 | } | ||
| 135 | |||
| 136 | 1 | std::vector<FuelType> ZoneHVACEvaporativeCoolerUnit_Impl::coolingFuelTypes() const { | |
| 137 | 1 | std::set<FuelType> result; | |
| 138 |
4/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 12 taken 1 time.
✓ Branch 13 taken 1 time.
|
2 | for (auto ft : firstEvaporativeCooler().coolingFuelTypes()) { |
| 139 |
1/1✓ Branch 1 taken 1 time.
|
1 | result.insert(ft); |
| 140 | 1 | } | |
| 141 |
2/3✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
|
2 | if (auto secondEvaporativeCooler_ = secondEvaporativeCooler()) { |
| 142 | ✗ | for (auto ft : secondEvaporativeCooler_->coolingFuelTypes()) { | |
| 143 | ✗ | result.insert(ft); | |
| 144 | ✗ | } | |
| 145 | 1 | } | |
| 146 |
1/1✓ Branch 3 taken 1 time.
|
3 | return {result.begin(), result.end()}; |
| 147 | 1 | } | |
| 148 | |||
| 149 | 1 | std::vector<FuelType> ZoneHVACEvaporativeCoolerUnit_Impl::heatingFuelTypes() const { | |
| 150 | 1 | std::set<FuelType> result; | |
| 151 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✗ Branch 12 not taken.
✓ Branch 13 taken 1 time.
|
1 | for (auto ft : firstEvaporativeCooler().heatingFuelTypes()) { |
| 152 | ✗ | result.insert(ft); | |
| 153 | 1 | } | |
| 154 |
2/3✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
|
2 | if (auto secondEvaporativeCooler_ = secondEvaporativeCooler()) { |
| 155 | ✗ | for (auto ft : secondEvaporativeCooler_->heatingFuelTypes()) { | |
| 156 | ✗ | result.insert(ft); | |
| 157 | ✗ | } | |
| 158 | 1 | } | |
| 159 |
1/1✓ Branch 3 taken 1 time.
|
3 | return {result.begin(), result.end()}; |
| 160 | 1 | } | |
| 161 | |||
| 162 | 1 | std::vector<AppGFuelType> ZoneHVACEvaporativeCoolerUnit_Impl::appGHeatingFuelTypes() const { | |
| 163 | 1 | std::set<AppGFuelType> result; | |
| 164 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✗ Branch 12 not taken.
✓ Branch 13 taken 1 time.
|
1 | for (auto ft : firstEvaporativeCooler().appGHeatingFuelTypes()) { |
| 165 | ✗ | result.insert(ft); | |
| 166 | 1 | } | |
| 167 |
2/3✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
|
2 | if (auto secondEvaporativeCooler_ = secondEvaporativeCooler()) { |
| 168 | ✗ | for (auto ft : secondEvaporativeCooler_->appGHeatingFuelTypes()) { | |
| 169 | ✗ | result.insert(ft); | |
| 170 | ✗ | } | |
| 171 | 1 | } | |
| 172 |
1/1✓ Branch 3 taken 1 time.
|
3 | return {result.begin(), result.end()}; |
| 173 | 1 | } | |
| 174 | |||
| 175 | 6 | Schedule ZoneHVACEvaporativeCoolerUnit_Impl::availabilitySchedule() const { | |
| 176 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<Schedule> value = optionalAvailabilitySchedule(); |
| 177 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
|
6 | if (!value) { |
| 178 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Availability Schedule attached."); | |
| 179 | } | ||
| 180 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
12 | return value.get(); |
| 181 | 6 | } | |
| 182 | |||
| 183 | 12 | HVACComponent ZoneHVACEvaporativeCoolerUnit_Impl::supplyAirFan() const { | |
| 184 |
1/1✓ Branch 1 taken 12 times.
|
12 | boost::optional<HVACComponent> value = optionalSupplyAirFan(); |
| 185 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 12 times.
|
12 | if (!value) { |
| 186 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Supply Air Fan attached."); | |
| 187 | } | ||
| 188 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
24 | return value.get(); |
| 189 | 12 | } | |
| 190 | |||
| 191 | 5 | boost::optional<double> ZoneHVACEvaporativeCoolerUnit_Impl::designSupplyAirFlowRate() const { | |
| 192 | 5 | return getDouble(OS_ZoneHVAC_EvaporativeCoolerUnitFields::DesignSupplyAirFlowRate, true); | |
| 193 | } | ||
| 194 | |||
| 195 | 7 | bool ZoneHVACEvaporativeCoolerUnit_Impl::isDesignSupplyAirFlowRateAutosized() const { | |
| 196 | 7 | bool result = false; | |
| 197 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<std::string> value = getString(OS_ZoneHVAC_EvaporativeCoolerUnitFields::DesignSupplyAirFlowRate, true); |
| 198 |
1/2✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
|
7 | if (value) { |
| 199 |
3/3✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
|
14 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 200 | } | ||
| 201 | 7 | return result; | |
| 202 | 7 | } | |
| 203 | |||
| 204 | ✗ | boost::optional<double> ZoneHVACEvaporativeCoolerUnit_Impl::autosizedDesignSupplyAirFlowRate() { | |
| 205 | ✗ | return getAutosizedValue("Design Size Design Supply Air Flow Rate", "m3/s"); | |
| 206 | } | ||
| 207 | |||
| 208 | 7 | std::string ZoneHVACEvaporativeCoolerUnit_Impl::fanPlacement() const { | |
| 209 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<std::string> value = getString(OS_ZoneHVAC_EvaporativeCoolerUnitFields::FanPlacement, true); |
| 210 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
✗ Branch 4 not taken.
|
7 | OS_ASSERT(value); |
| 211 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
14 | return value.get(); |
| 212 | 7 | } | |
| 213 | |||
| 214 | 7 | std::string ZoneHVACEvaporativeCoolerUnit_Impl::coolerUnitControlMethod() const { | |
| 215 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<std::string> value = getString(OS_ZoneHVAC_EvaporativeCoolerUnitFields::CoolerUnitControlMethod, true); |
| 216 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
✗ Branch 4 not taken.
|
7 | OS_ASSERT(value); |
| 217 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
14 | return value.get(); |
| 218 | 7 | } | |
| 219 | |||
| 220 | 7 | double ZoneHVACEvaporativeCoolerUnit_Impl::throttlingRangeTemperatureDifference() const { | |
| 221 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<double> value = getDouble(OS_ZoneHVAC_EvaporativeCoolerUnitFields::ThrottlingRangeTemperatureDifference, true); |
| 222 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
✗ Branch 4 not taken.
|
7 | OS_ASSERT(value); |
| 223 |
1/1✓ Branch 1 taken 7 times.
|
14 | return value.get(); |
| 224 | } | ||
| 225 | |||
| 226 | 7 | double ZoneHVACEvaporativeCoolerUnit_Impl::coolingLoadControlThresholdHeatTransferRate() const { | |
| 227 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<double> value = getDouble(OS_ZoneHVAC_EvaporativeCoolerUnitFields::CoolingLoadControlThresholdHeatTransferRate, true); |
| 228 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
✗ Branch 4 not taken.
|
7 | OS_ASSERT(value); |
| 229 |
1/1✓ Branch 1 taken 7 times.
|
14 | return value.get(); |
| 230 | } | ||
| 231 | |||
| 232 | 15 | HVACComponent ZoneHVACEvaporativeCoolerUnit_Impl::firstEvaporativeCooler() const { | |
| 233 |
1/1✓ Branch 1 taken 15 times.
|
15 | boost::optional<HVACComponent> value = optionalFirstEvaporativeCooler(); |
| 234 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 15 times.
|
15 | if (!value) { |
| 235 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an First Evaporative Cooler attached."); | |
| 236 | } | ||
| 237 |
2/2✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
|
30 | return value.get(); |
| 238 | 15 | } | |
| 239 | |||
| 240 | 25 | boost::optional<HVACComponent> ZoneHVACEvaporativeCoolerUnit_Impl::secondEvaporativeCooler() const { | |
| 241 |
2/2✓ Branch 1 taken 25 times.
✓ Branch 4 taken 25 times.
|
25 | return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_ZoneHVAC_EvaporativeCoolerUnitFields::SecondEvaporativeCooler); |
| 242 | } | ||
| 243 | |||
| 244 | 7 | double ZoneHVACEvaporativeCoolerUnit_Impl::shutOffRelativeHumidity() const { | |
| 245 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<double> value = getDouble(OS_ZoneHVAC_EvaporativeCoolerUnitFields::ShutOffRelativeHumidity, true); |
| 246 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
✗ Branch 4 not taken.
|
7 | OS_ASSERT(value); |
| 247 |
1/1✓ Branch 1 taken 7 times.
|
14 | return value.get(); |
| 248 | } | ||
| 249 | |||
| 250 | 14 | bool ZoneHVACEvaporativeCoolerUnit_Impl::setAvailabilitySchedule(Schedule& schedule) { | |
| 251 | const bool result = | ||
| 252 |
3/3✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
✓ Branch 7 taken 14 times.
|
56 | setSchedule(OS_ZoneHVAC_EvaporativeCoolerUnitFields::AvailabilityScheduleName, "ZoneHVACEvaporativeCoolerUnit", "Availability", schedule); |
| 253 | 14 | return result; | |
| 254 | } | ||
| 255 | |||
| 256 | 17 | bool ZoneHVACEvaporativeCoolerUnit_Impl::setSupplyAirFan(const HVACComponent& hvacComponent) { | |
| 257 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
17 | const bool result = setPointer(OS_ZoneHVAC_EvaporativeCoolerUnitFields::SupplyAirFanName, hvacComponent.handle()); |
| 258 | 17 | return result; | |
| 259 | } | ||
| 260 | |||
| 261 | 3 | bool ZoneHVACEvaporativeCoolerUnit_Impl::setDesignSupplyAirFlowRate(double designSupplyAirFlowRate) { | |
| 262 | 3 | const bool result = setDouble(OS_ZoneHVAC_EvaporativeCoolerUnitFields::DesignSupplyAirFlowRate, designSupplyAirFlowRate); | |
| 263 | 3 | return result; | |
| 264 | } | ||
| 265 | |||
| 266 | 13 | void ZoneHVACEvaporativeCoolerUnit_Impl::autosizeDesignSupplyAirFlowRate() { | |
| 267 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
26 | const bool result = setString(OS_ZoneHVAC_EvaporativeCoolerUnitFields::DesignSupplyAirFlowRate, "autosize"); |
| 268 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 13 times.
|
13 | OS_ASSERT(result); |
| 269 | 13 | } | |
| 270 | |||
| 271 | 19 | bool ZoneHVACEvaporativeCoolerUnit_Impl::setFanPlacement(const std::string& fanPlacement) { | |
| 272 | 19 | const bool result = setString(OS_ZoneHVAC_EvaporativeCoolerUnitFields::FanPlacement, fanPlacement); | |
| 273 | 19 | return result; | |
| 274 | } | ||
| 275 | |||
| 276 | 15 | bool ZoneHVACEvaporativeCoolerUnit_Impl::setCoolerUnitControlMethod(const std::string& coolerUnitControlMethod) { | |
| 277 | 15 | const bool result = setString(OS_ZoneHVAC_EvaporativeCoolerUnitFields::CoolerUnitControlMethod, coolerUnitControlMethod); | |
| 278 | 15 | return result; | |
| 279 | } | ||
| 280 | |||
| 281 | 15 | bool ZoneHVACEvaporativeCoolerUnit_Impl::setThrottlingRangeTemperatureDifference(double throttlingRangeTemperatureDifference) { | |
| 282 | const bool result = | ||
| 283 | 15 | setDouble(OS_ZoneHVAC_EvaporativeCoolerUnitFields::ThrottlingRangeTemperatureDifference, throttlingRangeTemperatureDifference); | |
| 284 | 15 | return result; | |
| 285 | } | ||
| 286 | |||
| 287 | 15 | bool ZoneHVACEvaporativeCoolerUnit_Impl::setCoolingLoadControlThresholdHeatTransferRate(double coolingLoadControlThresholdHeatTransferRate) { | |
| 288 | const bool result = | ||
| 289 | 15 | setDouble(OS_ZoneHVAC_EvaporativeCoolerUnitFields::CoolingLoadControlThresholdHeatTransferRate, coolingLoadControlThresholdHeatTransferRate); | |
| 290 | 15 | return result; | |
| 291 | } | ||
| 292 | |||
| 293 | 17 | bool ZoneHVACEvaporativeCoolerUnit_Impl::setFirstEvaporativeCooler(const HVACComponent& hvacComponent) { | |
| 294 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
17 | const bool result = setPointer(OS_ZoneHVAC_EvaporativeCoolerUnitFields::FirstEvaporativeCooler, hvacComponent.handle()); |
| 295 | 17 | return result; | |
| 296 | } | ||
| 297 | |||
| 298 | 7 | bool ZoneHVACEvaporativeCoolerUnit_Impl::setSecondEvaporativeCooler(const HVACComponent& hvacComponent) { | |
| 299 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | const bool result = setPointer(OS_ZoneHVAC_EvaporativeCoolerUnitFields::SecondEvaporativeCooler, hvacComponent.handle()); |
| 300 | 7 | return result; | |
| 301 | } | ||
| 302 | |||
| 303 | ✗ | void ZoneHVACEvaporativeCoolerUnit_Impl::resetSecondEvaporativeCooler() { | |
| 304 | ✗ | const bool result = setString(OS_ZoneHVAC_EvaporativeCoolerUnitFields::SecondEvaporativeCooler, ""); | |
| 305 | ✗ | OS_ASSERT(result); | |
| 306 | ✗ | } | |
| 307 | |||
| 308 | 15 | bool ZoneHVACEvaporativeCoolerUnit_Impl::setShutOffRelativeHumidity(double shutOffRelativeHumidity) { | |
| 309 | 15 | const bool result = setDouble(OS_ZoneHVAC_EvaporativeCoolerUnitFields::ShutOffRelativeHumidity, shutOffRelativeHumidity); | |
| 310 | 15 | return result; | |
| 311 | } | ||
| 312 | |||
| 313 | ✗ | void ZoneHVACEvaporativeCoolerUnit_Impl::autosize() { | |
| 314 | ✗ | autosizeDesignSupplyAirFlowRate(); | |
| 315 | ✗ | } | |
| 316 | |||
| 317 | ✗ | void ZoneHVACEvaporativeCoolerUnit_Impl::applySizingValues() { | |
| 318 | ✗ | if (boost::optional<double> val_ = autosizedDesignSupplyAirFlowRate()) { | |
| 319 | ✗ | setDesignSupplyAirFlowRate(*val_); | |
| 320 | } | ||
| 321 | ✗ | } | |
| 322 | |||
| 323 | 6 | boost::optional<Schedule> ZoneHVACEvaporativeCoolerUnit_Impl::optionalAvailabilitySchedule() const { | |
| 324 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_ZoneHVAC_EvaporativeCoolerUnitFields::AvailabilityScheduleName); |
| 325 | } | ||
| 326 | |||
| 327 | 22 | boost::optional<HVACComponent> ZoneHVACEvaporativeCoolerUnit_Impl::optionalSupplyAirFan() const { | |
| 328 |
2/2✓ Branch 1 taken 22 times.
✓ Branch 4 taken 22 times.
|
22 | return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_ZoneHVAC_EvaporativeCoolerUnitFields::SupplyAirFanName); |
| 329 | } | ||
| 330 | |||
| 331 | 25 | boost::optional<HVACComponent> ZoneHVACEvaporativeCoolerUnit_Impl::optionalFirstEvaporativeCooler() const { | |
| 332 |
2/2✓ Branch 1 taken 25 times.
✓ Branch 4 taken 25 times.
|
25 | return getObject<ModelObject>().getModelObjectTarget<HVACComponent>(OS_ZoneHVAC_EvaporativeCoolerUnitFields::FirstEvaporativeCooler); |
| 333 | } | ||
| 334 | |||
| 335 | } // namespace detail | ||
| 336 | |||
| 337 | 11 | ZoneHVACEvaporativeCoolerUnit::ZoneHVACEvaporativeCoolerUnit(const Model& model) | |
| 338 | 11 | : ZoneHVACComponent(ZoneHVACEvaporativeCoolerUnit::iddObjectType(), model) { | |
| 339 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 11 times.
✗ Branch 5 not taken.
|
11 | OS_ASSERT(getImpl<detail::ZoneHVACEvaporativeCoolerUnit_Impl>()); |
| 340 | |||
| 341 | 11 | bool ok = true; | |
| 342 |
1/1✓ Branch 1 taken 11 times.
|
11 | auto alwaysOn = model.alwaysOnDiscreteSchedule(); |
| 343 |
1/1✓ Branch 1 taken 11 times.
|
11 | ok = setAvailabilitySchedule(alwaysOn); |
| 344 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
✗ Branch 3 not taken.
|
11 | OS_ASSERT(ok); |
| 345 | |||
| 346 |
1/1✓ Branch 1 taken 11 times.
|
11 | FanSystemModel supplyAirFan(model); |
| 347 |
1/1✓ Branch 1 taken 11 times.
|
11 | ok = setSupplyAirFan(supplyAirFan); |
| 348 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
✗ Branch 3 not taken.
|
11 | OS_ASSERT(ok); |
| 349 | |||
| 350 |
1/1✓ Branch 1 taken 11 times.
|
11 | autosizeDesignSupplyAirFlowRate(); |
| 351 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | ok = setFanPlacement("BlowThrough"); |
| 352 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
✗ Branch 3 not taken.
|
11 | OS_ASSERT(ok); |
| 353 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | ok = setCoolerUnitControlMethod("ZoneTemperatureDeadbandOnOffCycling"); |
| 354 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
✗ Branch 3 not taken.
|
11 | OS_ASSERT(ok); |
| 355 |
1/1✓ Branch 1 taken 11 times.
|
11 | ok = setThrottlingRangeTemperatureDifference(1.0); |
| 356 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
✗ Branch 3 not taken.
|
11 | OS_ASSERT(ok); |
| 357 |
1/1✓ Branch 1 taken 11 times.
|
11 | ok = setCoolingLoadControlThresholdHeatTransferRate(100.0); |
| 358 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
✗ Branch 3 not taken.
|
11 | OS_ASSERT(ok); |
| 359 | |||
| 360 |
1/1✓ Branch 1 taken 11 times.
|
11 | EvaporativeCoolerDirectResearchSpecial firstEvaporativeCooler(model, alwaysOn); |
| 361 |
1/1✓ Branch 1 taken 11 times.
|
11 | ok = setFirstEvaporativeCooler(firstEvaporativeCooler); |
| 362 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
✗ Branch 3 not taken.
|
11 | OS_ASSERT(ok); |
| 363 | |||
| 364 |
1/1✓ Branch 1 taken 11 times.
|
11 | ok = setShutOffRelativeHumidity(100.0); |
| 365 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 11 times.
✗ Branch 3 not taken.
|
11 | OS_ASSERT(ok); |
| 366 | 11 | } | |
| 367 | |||
| 368 | 1 | ZoneHVACEvaporativeCoolerUnit::ZoneHVACEvaporativeCoolerUnit(const Model& model, Schedule& availabilitySchedule, HVACComponent& supplyAirFan, | |
| 369 | 1 | HVACComponent& firstEvaporativeCooler) | |
| 370 | 1 | : ZoneHVACComponent(ZoneHVACEvaporativeCoolerUnit::iddObjectType(), model) { | |
| 371 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 1 time.
✗ Branch 5 not taken.
|
1 | OS_ASSERT(getImpl<detail::ZoneHVACEvaporativeCoolerUnit_Impl>()); |
| 372 | |||
| 373 | 1 | bool ok = true; | |
| 374 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setAvailabilitySchedule(availabilitySchedule); |
| 375 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
|
1 | OS_ASSERT(ok); |
| 376 | |||
| 377 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setSupplyAirFan(supplyAirFan); |
| 378 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | if (!ok) { |
| 379 | ✗ | remove(); | |
| 380 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s supply air fan to " << supplyAirFan.briefDescription() << "."); | |
| 381 | } | ||
| 382 | |||
| 383 |
1/1✓ Branch 1 taken 1 time.
|
1 | autosizeDesignSupplyAirFlowRate(); |
| 384 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | ok = setFanPlacement("BlowThrough"); |
| 385 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
|
1 | OS_ASSERT(ok); |
| 386 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | ok = setCoolerUnitControlMethod("ZoneTemperatureDeadbandOnOffCycling"); |
| 387 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
|
1 | OS_ASSERT(ok); |
| 388 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setThrottlingRangeTemperatureDifference(1.0); |
| 389 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
|
1 | OS_ASSERT(ok); |
| 390 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setCoolingLoadControlThresholdHeatTransferRate(100.0); |
| 391 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
|
1 | OS_ASSERT(ok); |
| 392 | |||
| 393 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setFirstEvaporativeCooler(firstEvaporativeCooler); |
| 394 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | if (!ok) { |
| 395 | ✗ | remove(); | |
| 396 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s first evaporative cooler to " << firstEvaporativeCooler.briefDescription() << "."); | |
| 397 | } | ||
| 398 | |||
| 399 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setShutOffRelativeHumidity(100.0); |
| 400 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
|
1 | OS_ASSERT(ok); |
| 401 | 1 | } | |
| 402 | |||
| 403 | 7787 | IddObjectType ZoneHVACEvaporativeCoolerUnit::iddObjectType() { | |
| 404 |
1/1✓ Branch 1 taken 7787 times.
|
7787 | return {IddObjectType::OS_ZoneHVAC_EvaporativeCoolerUnit}; |
| 405 | } | ||
| 406 | |||
| 407 | ✗ | std::vector<std::string> ZoneHVACEvaporativeCoolerUnit::fanPlacementValues() { | |
| 408 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_ZoneHVAC_EvaporativeCoolerUnitFields::FanPlacement); | |
| 409 | } | ||
| 410 | |||
| 411 | ✗ | std::vector<std::string> ZoneHVACEvaporativeCoolerUnit::coolerUnitControlMethodValues() { | |
| 412 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_ZoneHVAC_EvaporativeCoolerUnitFields::CoolerUnitControlMethod); | |
| 413 | } | ||
| 414 | |||
| 415 | 6 | Schedule ZoneHVACEvaporativeCoolerUnit::availabilitySchedule() const { | |
| 416 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::ZoneHVACEvaporativeCoolerUnit_Impl>()->availabilitySchedule(); |
| 417 | } | ||
| 418 | |||
| 419 | 12 | HVACComponent ZoneHVACEvaporativeCoolerUnit::supplyAirFan() const { | |
| 420 |
1/1✓ Branch 3 taken 12 times.
|
12 | return getImpl<detail::ZoneHVACEvaporativeCoolerUnit_Impl>()->supplyAirFan(); |
| 421 | } | ||
| 422 | |||
| 423 | 5 | boost::optional<double> ZoneHVACEvaporativeCoolerUnit::designSupplyAirFlowRate() const { | |
| 424 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::ZoneHVACEvaporativeCoolerUnit_Impl>()->designSupplyAirFlowRate(); |
| 425 | } | ||
| 426 | |||
| 427 | 7 | bool ZoneHVACEvaporativeCoolerUnit::isDesignSupplyAirFlowRateAutosized() const { | |
| 428 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::ZoneHVACEvaporativeCoolerUnit_Impl>()->isDesignSupplyAirFlowRateAutosized(); |
| 429 | } | ||
| 430 | |||
| 431 | ✗ | boost::optional<double> ZoneHVACEvaporativeCoolerUnit::autosizedDesignSupplyAirFlowRate() { | |
| 432 | ✗ | return getImpl<detail::ZoneHVACEvaporativeCoolerUnit_Impl>()->autosizedDesignSupplyAirFlowRate(); | |
| 433 | } | ||
| 434 | |||
| 435 | 7 | std::string ZoneHVACEvaporativeCoolerUnit::fanPlacement() const { | |
| 436 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::ZoneHVACEvaporativeCoolerUnit_Impl>()->fanPlacement(); |
| 437 | } | ||
| 438 | |||
| 439 | 7 | std::string ZoneHVACEvaporativeCoolerUnit::coolerUnitControlMethod() const { | |
| 440 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::ZoneHVACEvaporativeCoolerUnit_Impl>()->coolerUnitControlMethod(); |
| 441 | } | ||
| 442 | |||
| 443 | 7 | double ZoneHVACEvaporativeCoolerUnit::throttlingRangeTemperatureDifference() const { | |
| 444 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::ZoneHVACEvaporativeCoolerUnit_Impl>()->throttlingRangeTemperatureDifference(); |
| 445 | } | ||
| 446 | |||
| 447 | 7 | double ZoneHVACEvaporativeCoolerUnit::coolingLoadControlThresholdHeatTransferRate() const { | |
| 448 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::ZoneHVACEvaporativeCoolerUnit_Impl>()->coolingLoadControlThresholdHeatTransferRate(); |
| 449 | } | ||
| 450 | |||
| 451 | 12 | HVACComponent ZoneHVACEvaporativeCoolerUnit::firstEvaporativeCooler() const { | |
| 452 |
1/1✓ Branch 3 taken 12 times.
|
12 | return getImpl<detail::ZoneHVACEvaporativeCoolerUnit_Impl>()->firstEvaporativeCooler(); |
| 453 | } | ||
| 454 | |||
| 455 | 12 | boost::optional<HVACComponent> ZoneHVACEvaporativeCoolerUnit::secondEvaporativeCooler() const { | |
| 456 |
1/1✓ Branch 3 taken 12 times.
|
12 | return getImpl<detail::ZoneHVACEvaporativeCoolerUnit_Impl>()->secondEvaporativeCooler(); |
| 457 | } | ||
| 458 | |||
| 459 | 7 | double ZoneHVACEvaporativeCoolerUnit::shutOffRelativeHumidity() const { | |
| 460 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::ZoneHVACEvaporativeCoolerUnit_Impl>()->shutOffRelativeHumidity(); |
| 461 | } | ||
| 462 | |||
| 463 | 14 | bool ZoneHVACEvaporativeCoolerUnit::setAvailabilitySchedule(Schedule& schedule) { | |
| 464 |
1/1✓ Branch 3 taken 14 times.
|
14 | return getImpl<detail::ZoneHVACEvaporativeCoolerUnit_Impl>()->setAvailabilitySchedule(schedule); |
| 465 | } | ||
| 466 | |||
| 467 | 17 | bool ZoneHVACEvaporativeCoolerUnit::setSupplyAirFan(const HVACComponent& hvacComponent) { | |
| 468 |
1/1✓ Branch 3 taken 17 times.
|
17 | return getImpl<detail::ZoneHVACEvaporativeCoolerUnit_Impl>()->setSupplyAirFan(hvacComponent); |
| 469 | } | ||
| 470 | |||
| 471 | 3 | bool ZoneHVACEvaporativeCoolerUnit::setDesignSupplyAirFlowRate(double designSupplyAirFlowRate) { | |
| 472 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::ZoneHVACEvaporativeCoolerUnit_Impl>()->setDesignSupplyAirFlowRate(designSupplyAirFlowRate); |
| 473 | } | ||
| 474 | |||
| 475 | 13 | void ZoneHVACEvaporativeCoolerUnit::autosizeDesignSupplyAirFlowRate() { | |
| 476 |
1/1✓ Branch 3 taken 13 times.
|
13 | getImpl<detail::ZoneHVACEvaporativeCoolerUnit_Impl>()->autosizeDesignSupplyAirFlowRate(); |
| 477 | 13 | } | |
| 478 | |||
| 479 | 19 | bool ZoneHVACEvaporativeCoolerUnit::setFanPlacement(const std::string& fanPlacement) { | |
| 480 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::ZoneHVACEvaporativeCoolerUnit_Impl>()->setFanPlacement(fanPlacement); |
| 481 | } | ||
| 482 | |||
| 483 | 15 | bool ZoneHVACEvaporativeCoolerUnit::setCoolerUnitControlMethod(const std::string& coolerUnitControlMethod) { | |
| 484 |
1/1✓ Branch 3 taken 15 times.
|
15 | return getImpl<detail::ZoneHVACEvaporativeCoolerUnit_Impl>()->setCoolerUnitControlMethod(coolerUnitControlMethod); |
| 485 | } | ||
| 486 | |||
| 487 | 15 | bool ZoneHVACEvaporativeCoolerUnit::setThrottlingRangeTemperatureDifference(double throttlingRangeTemperatureDifference) { | |
| 488 |
1/1✓ Branch 3 taken 15 times.
|
15 | return getImpl<detail::ZoneHVACEvaporativeCoolerUnit_Impl>()->setThrottlingRangeTemperatureDifference(throttlingRangeTemperatureDifference); |
| 489 | } | ||
| 490 | |||
| 491 | 15 | bool ZoneHVACEvaporativeCoolerUnit::setCoolingLoadControlThresholdHeatTransferRate(double coolingLoadControlThresholdHeatTransferRate) { | |
| 492 |
1/1✓ Branch 3 taken 15 times.
|
30 | return getImpl<detail::ZoneHVACEvaporativeCoolerUnit_Impl>()->setCoolingLoadControlThresholdHeatTransferRate( |
| 493 | 30 | coolingLoadControlThresholdHeatTransferRate); | |
| 494 | } | ||
| 495 | |||
| 496 | 17 | bool ZoneHVACEvaporativeCoolerUnit::setFirstEvaporativeCooler(const HVACComponent& hvacComponent) { | |
| 497 |
1/1✓ Branch 3 taken 17 times.
|
17 | return getImpl<detail::ZoneHVACEvaporativeCoolerUnit_Impl>()->setFirstEvaporativeCooler(hvacComponent); |
| 498 | } | ||
| 499 | |||
| 500 | 7 | bool ZoneHVACEvaporativeCoolerUnit::setSecondEvaporativeCooler(const HVACComponent& hvacComponent) { | |
| 501 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::ZoneHVACEvaporativeCoolerUnit_Impl>()->setSecondEvaporativeCooler(hvacComponent); |
| 502 | } | ||
| 503 | |||
| 504 | ✗ | void ZoneHVACEvaporativeCoolerUnit::resetSecondEvaporativeCooler() { | |
| 505 | ✗ | getImpl<detail::ZoneHVACEvaporativeCoolerUnit_Impl>()->resetSecondEvaporativeCooler(); | |
| 506 | ✗ | } | |
| 507 | |||
| 508 | 15 | bool ZoneHVACEvaporativeCoolerUnit::setShutOffRelativeHumidity(double shutOffRelativeHumidity) { | |
| 509 |
1/1✓ Branch 3 taken 15 times.
|
15 | return getImpl<detail::ZoneHVACEvaporativeCoolerUnit_Impl>()->setShutOffRelativeHumidity(shutOffRelativeHumidity); |
| 510 | } | ||
| 511 | |||
| 512 | /// @cond | ||
| 513 | 18 | ZoneHVACEvaporativeCoolerUnit::ZoneHVACEvaporativeCoolerUnit(std::shared_ptr<detail::ZoneHVACEvaporativeCoolerUnit_Impl> impl) | |
| 514 |
1/1✓ Branch 3 taken 18 times.
|
18 | : ZoneHVACComponent(std::move(impl)) {} |
| 515 | /// @endcond | ||
| 516 | |||
| 517 | } // namespace model | ||
| 518 | } // namespace openstudio | ||
| 519 |