src/model/FanVariableVolume.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 "FanVariableVolume.hpp" | ||
| 7 | #include "FanVariableVolume_Impl.hpp" | ||
| 8 | #include "AirLoopHVAC.hpp" | ||
| 9 | #include "AirLoopHVAC_Impl.hpp" | ||
| 10 | #include "Node.hpp" | ||
| 11 | #include "Node_Impl.hpp" | ||
| 12 | #include "Schedule.hpp" | ||
| 13 | #include "Schedule_Impl.hpp" | ||
| 14 | #include "Model.hpp" | ||
| 15 | #include "ZoneHVACComponent.hpp" | ||
| 16 | #include "ZoneHVACComponent_Impl.hpp" | ||
| 17 | #include "ZoneHVACFourPipeFanCoil.hpp" | ||
| 18 | #include "ZoneHVACFourPipeFanCoil_Impl.hpp" | ||
| 19 | #include "ZoneHVACUnitHeater.hpp" | ||
| 20 | #include "ZoneHVACUnitHeater_Impl.hpp" | ||
| 21 | #include "ZoneHVACUnitVentilator.hpp" | ||
| 22 | #include "ZoneHVACUnitVentilator_Impl.hpp" | ||
| 23 | #include "ZoneHVACEvaporativeCoolerUnit.hpp" | ||
| 24 | #include "ZoneHVACEvaporativeCoolerUnit_Impl.hpp" | ||
| 25 | #include "AirLoopHVACUnitarySystem.hpp" | ||
| 26 | #include "AirLoopHVACUnitarySystem_Impl.hpp" | ||
| 27 | #include "SetpointManagerMixedAir.hpp" | ||
| 28 | #include "AirflowNetworkFan.hpp" | ||
| 29 | #include "AirflowNetworkFan_Impl.hpp" | ||
| 30 | #include "FanSystemModel.hpp" | ||
| 31 | #include "CurveQuartic.hpp" | ||
| 32 | #include "CurveQuartic_Impl.hpp" | ||
| 33 | |||
| 34 | #include <utilities/idd/IddFactory.hxx> | ||
| 35 | |||
| 36 | #include <utilities/idd/OS_Fan_VariableVolume_FieldEnums.hxx> | ||
| 37 | #include <utilities/idd/IddEnums.hxx> | ||
| 38 | #include "../utilities/core/Assert.hpp" | ||
| 39 | #include "../utilities/data/DataEnums.hpp" | ||
| 40 | |||
| 41 | namespace openstudio { | ||
| 42 | namespace model { | ||
| 43 | |||
| 44 | namespace detail { | ||
| 45 | |||
| 46 | 37 | FanVariableVolume_Impl::FanVariableVolume_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 47 | 37 | : StraightComponent_Impl(idfObject, model, keepHandle) { | |
| 48 |
4/6✓ Branch 1 taken 37 times.
✓ Branch 4 taken 37 times.
✓ Branch 7 taken 37 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 37 times.
✗ Branch 13 not taken.
|
37 | OS_ASSERT(idfObject.iddObject().type() == FanVariableVolume::iddObjectType()); |
| 49 | 37 | } | |
| 50 | |||
| 51 | ✗ | FanVariableVolume_Impl::FanVariableVolume_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle) | |
| 52 | ✗ | : StraightComponent_Impl(other, model, keepHandle) { | |
| 53 | ✗ | OS_ASSERT(other.iddObject().type() == FanVariableVolume::iddObjectType()); | |
| 54 | ✗ | } | |
| 55 | |||
| 56 | 16 | FanVariableVolume_Impl::FanVariableVolume_Impl(const FanVariableVolume_Impl& other, Model_Impl* model, bool keepHandle) | |
| 57 | 16 | : StraightComponent_Impl(other, model, keepHandle) {} | |
| 58 | |||
| 59 | ✗ | const std::vector<std::string>& FanVariableVolume_Impl::outputVariableNames() const { | |
| 60 | static const std::vector<std::string> results{"Fan Electricity Rate", "Fan Rise in Air Temperature", "Fan Heat Gain to Air", | ||
| 61 | ✗ | "Fan Electricity Energy", "Fan Air Mass Flow Rate"}; | |
| 62 | ✗ | return results; | |
| 63 | ✗ | } | |
| 64 | |||
| 65 | 620 | IddObjectType FanVariableVolume_Impl::iddObjectType() const { | |
| 66 | 620 | return FanVariableVolume::iddObjectType(); | |
| 67 | } | ||
| 68 | |||
| 69 | ✗ | std::vector<ScheduleTypeKey> FanVariableVolume_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 70 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 71 | ✗ | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 72 | ✗ | UnsignedVector::const_iterator b(fieldIndices.begin()); | |
| 73 | ✗ | UnsignedVector::const_iterator e(fieldIndices.end()); | |
| 74 | ✗ | if (std::find(b, e, OS_Fan_VariableVolumeFields::AvailabilityScheduleName) != e) { | |
| 75 | ✗ | result.push_back(ScheduleTypeKey("FanVariableVolume", "Availability")); | |
| 76 | } | ||
| 77 | ✗ | return result; | |
| 78 | ✗ | } | |
| 79 | |||
| 80 | 10 | Schedule FanVariableVolume_Impl::availabilitySchedule() const { | |
| 81 | boost::optional<Schedule> value = | ||
| 82 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
10 | getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_Fan_VariableVolumeFields::AvailabilityScheduleName); |
| 83 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 10 times.
|
10 | if (!value) { |
| 84 | // it is an error if we get here, however we don't want to crash | ||
| 85 | // so we hook up to global always on schedule | ||
| 86 | ✗ | LOG(Error, "Required availability schedule not set, using 'Always On' schedule"); | |
| 87 | ✗ | value = this->model().alwaysOnDiscreteSchedule(); | |
| 88 | ✗ | OS_ASSERT(value); | |
| 89 | ✗ | const_cast<FanVariableVolume_Impl*>(this)->setAvailabilitySchedule(*value); | |
| 90 | ✗ | value = getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_Fan_VariableVolumeFields::AvailabilityScheduleName); | |
| 91 | } | ||
| 92 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 10 times.
✗ Branch 4 not taken.
|
10 | OS_ASSERT(value); |
| 93 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
20 | return value.get(); |
| 94 | 10 | } | |
| 95 | |||
| 96 | 17 | double FanVariableVolume_Impl::fanTotalEfficiency() const { | |
| 97 |
1/1✓ Branch 1 taken 17 times.
|
17 | boost::optional<double> value = getDouble(OS_Fan_VariableVolumeFields::FanTotalEfficiency, true); |
| 98 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 17 times.
✗ Branch 4 not taken.
|
17 | OS_ASSERT(value); |
| 99 |
1/1✓ Branch 1 taken 17 times.
|
34 | return value.get(); |
| 100 | } | ||
| 101 | |||
| 102 | ✗ | bool FanVariableVolume_Impl::isFanTotalEfficiencyDefaulted() const { | |
| 103 | ✗ | return isEmpty(OS_Fan_VariableVolumeFields::FanTotalEfficiency); | |
| 104 | } | ||
| 105 | |||
| 106 | 16 | double FanVariableVolume_Impl::pressureRise() const { | |
| 107 |
1/1✓ Branch 1 taken 16 times.
|
16 | boost::optional<double> value = getDouble(OS_Fan_VariableVolumeFields::PressureRise, true); |
| 108 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 16 times.
✗ Branch 4 not taken.
|
16 | OS_ASSERT(value); |
| 109 |
1/1✓ Branch 1 taken 16 times.
|
32 | return value.get(); |
| 110 | } | ||
| 111 | |||
| 112 | 5 | boost::optional<double> FanVariableVolume_Impl::maximumFlowRate() const { | |
| 113 | 5 | return getDouble(OS_Fan_VariableVolumeFields::MaximumFlowRate, true); | |
| 114 | } | ||
| 115 | |||
| 116 | 20 | bool FanVariableVolume_Impl::isMaximumFlowRateAutosized() const { | |
| 117 | 20 | bool result = false; | |
| 118 |
1/1✓ Branch 1 taken 20 times.
|
20 | boost::optional<std::string> value = getString(OS_Fan_VariableVolumeFields::MaximumFlowRate, true); |
| 119 |
1/2✓ Branch 0 taken 20 times.
✗ Branch 1 not taken.
|
20 | if (value) { |
| 120 |
3/3✓ Branch 1 taken 20 times.
✓ Branch 4 taken 20 times.
✓ Branch 7 taken 20 times.
|
40 | result = openstudio::istringEqual(value.get(), "Autosize"); |
| 121 | } | ||
| 122 | 20 | return result; | |
| 123 | 20 | } | |
| 124 | |||
| 125 | 7 | std::string FanVariableVolume_Impl::fanPowerMinimumFlowRateInputMethod() const { | |
| 126 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<std::string> value = getString(OS_Fan_VariableVolumeFields::FanPowerMinimumFlowRateInputMethod, true); |
| 127 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
✗ Branch 4 not taken.
|
7 | OS_ASSERT(value); |
| 128 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
14 | return value.get(); |
| 129 | 7 | } | |
| 130 | |||
| 131 | ✗ | bool FanVariableVolume_Impl::isFanPowerMinimumFlowRateInputMethodDefaulted() const { | |
| 132 | ✗ | return isEmpty(OS_Fan_VariableVolumeFields::FanPowerMinimumFlowRateInputMethod); | |
| 133 | } | ||
| 134 | |||
| 135 | 7 | double FanVariableVolume_Impl::fanPowerMinimumFlowFraction() const { | |
| 136 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<double> value = getDouble(OS_Fan_VariableVolumeFields::FanPowerMinimumFlowFraction, true); |
| 137 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
✗ Branch 4 not taken.
|
7 | OS_ASSERT(value); |
| 138 |
1/1✓ Branch 1 taken 7 times.
|
14 | return value.get(); |
| 139 | } | ||
| 140 | |||
| 141 | ✗ | bool FanVariableVolume_Impl::isFanPowerMinimumFlowFractionDefaulted() const { | |
| 142 | ✗ | return isEmpty(OS_Fan_VariableVolumeFields::FanPowerMinimumFlowFraction); | |
| 143 | } | ||
| 144 | |||
| 145 | 7 | boost::optional<double> FanVariableVolume_Impl::fanPowerMinimumAirFlowRate() const { | |
| 146 | 7 | return getDouble(OS_Fan_VariableVolumeFields::FanPowerMinimumAirFlowRate, true); | |
| 147 | } | ||
| 148 | |||
| 149 | 16 | double FanVariableVolume_Impl::motorEfficiency() const { | |
| 150 |
1/1✓ Branch 1 taken 16 times.
|
16 | boost::optional<double> value = getDouble(OS_Fan_VariableVolumeFields::MotorEfficiency, true); |
| 151 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 16 times.
✗ Branch 4 not taken.
|
16 | OS_ASSERT(value); |
| 152 |
1/1✓ Branch 1 taken 16 times.
|
32 | return value.get(); |
| 153 | } | ||
| 154 | |||
| 155 | ✗ | bool FanVariableVolume_Impl::isMotorEfficiencyDefaulted() const { | |
| 156 | ✗ | return isEmpty(OS_Fan_VariableVolumeFields::MotorEfficiency); | |
| 157 | } | ||
| 158 | |||
| 159 | 16 | double FanVariableVolume_Impl::motorInAirstreamFraction() const { | |
| 160 |
1/1✓ Branch 1 taken 16 times.
|
16 | boost::optional<double> value = getDouble(OS_Fan_VariableVolumeFields::MotorInAirstreamFraction, true); |
| 161 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 16 times.
✗ Branch 4 not taken.
|
16 | OS_ASSERT(value); |
| 162 |
1/1✓ Branch 1 taken 16 times.
|
32 | return value.get(); |
| 163 | } | ||
| 164 | |||
| 165 | ✗ | bool FanVariableVolume_Impl::isMotorInAirstreamFractionDefaulted() const { | |
| 166 | ✗ | return isEmpty(OS_Fan_VariableVolumeFields::MotorInAirstreamFraction); | |
| 167 | } | ||
| 168 | |||
| 169 | 17 | boost::optional<double> FanVariableVolume_Impl::fanPowerCoefficient1() const { | |
| 170 | 17 | return getDouble(OS_Fan_VariableVolumeFields::FanPowerCoefficient1, true); | |
| 171 | } | ||
| 172 | |||
| 173 | 17 | boost::optional<double> FanVariableVolume_Impl::fanPowerCoefficient2() const { | |
| 174 | 17 | return getDouble(OS_Fan_VariableVolumeFields::FanPowerCoefficient2, true); | |
| 175 | } | ||
| 176 | |||
| 177 | 17 | boost::optional<double> FanVariableVolume_Impl::fanPowerCoefficient3() const { | |
| 178 | 17 | return getDouble(OS_Fan_VariableVolumeFields::FanPowerCoefficient3, true); | |
| 179 | } | ||
| 180 | |||
| 181 | 17 | boost::optional<double> FanVariableVolume_Impl::fanPowerCoefficient4() const { | |
| 182 | 17 | return getDouble(OS_Fan_VariableVolumeFields::FanPowerCoefficient4, true); | |
| 183 | } | ||
| 184 | |||
| 185 | 17 | boost::optional<double> FanVariableVolume_Impl::fanPowerCoefficient5() const { | |
| 186 | 17 | return getDouble(OS_Fan_VariableVolumeFields::FanPowerCoefficient5, true); | |
| 187 | } | ||
| 188 | |||
| 189 | 15 | std::string FanVariableVolume_Impl::endUseSubcategory() const { | |
| 190 |
1/1✓ Branch 1 taken 15 times.
|
15 | boost::optional<std::string> value = getString(OS_Fan_VariableVolumeFields::EndUseSubcategory, true); |
| 191 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 15 times.
✗ Branch 4 not taken.
|
15 | OS_ASSERT(value); |
| 192 |
2/2✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
|
30 | return value.get(); |
| 193 | 15 | } | |
| 194 | |||
| 195 | ✗ | bool FanVariableVolume_Impl::isEndUseSubcategoryDefaulted() const { | |
| 196 | ✗ | return isEmpty(OS_Fan_VariableVolumeFields::EndUseSubcategory); | |
| 197 | } | ||
| 198 | |||
| 199 | 37 | bool FanVariableVolume_Impl::setAvailabilitySchedule(Schedule& schedule) { | |
| 200 |
2/3✓ Branch 1 taken 37 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 37 times.
|
74 | if (boost::optional<AirLoopHVAC> _airLoop = airLoopHVAC()) { |
| 201 | ✗ | LOG(Info, briefDescription() << " is connected to an AirLoopHVAC '" << _airLoop->nameString() | |
| 202 | << "', therefore its Availability Schedule will be overriden by the AirLoopHVAC's one."); | ||
| 203 | 37 | } | |
| 204 |
3/3✓ Branch 1 taken 37 times.
✓ Branch 4 taken 37 times.
✓ Branch 7 taken 37 times.
|
148 | bool result = setSchedule(OS_Fan_VariableVolumeFields::AvailabilityScheduleName, "FanVariableVolume", "Availability", schedule); |
| 205 | 37 | return result; | |
| 206 | } | ||
| 207 | |||
| 208 | 41 | bool FanVariableVolume_Impl::setFanTotalEfficiency(double fanTotalEfficiency) { | |
| 209 | 41 | bool result = setDouble(OS_Fan_VariableVolumeFields::FanTotalEfficiency, fanTotalEfficiency); | |
| 210 | 41 | return result; | |
| 211 | } | ||
| 212 | |||
| 213 | ✗ | void FanVariableVolume_Impl::resetFanTotalEfficiency() { | |
| 214 | ✗ | bool result = setString(OS_Fan_VariableVolumeFields::FanTotalEfficiency, ""); | |
| 215 | ✗ | OS_ASSERT(result); | |
| 216 | ✗ | } | |
| 217 | |||
| 218 | 44 | bool FanVariableVolume_Impl::setPressureRise(double pressureRise) { | |
| 219 | 44 | bool result = setDouble(OS_Fan_VariableVolumeFields::PressureRise, pressureRise); | |
| 220 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 44 times.
|
44 | OS_ASSERT(result); |
| 221 | 44 | return result; | |
| 222 | } | ||
| 223 | |||
| 224 | 4 | bool FanVariableVolume_Impl::setMaximumFlowRate(boost::optional<double> maximumFlowRate) { | |
| 225 | 4 | bool result = false; | |
| 226 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | if (maximumFlowRate) { |
| 227 | 4 | result = setDouble(OS_Fan_VariableVolumeFields::MaximumFlowRate, maximumFlowRate.get()); | |
| 228 | } else { | ||
| 229 | ✗ | result = setString(OS_Fan_VariableVolumeFields::MaximumFlowRate, ""); | |
| 230 | } | ||
| 231 | 4 | return result; | |
| 232 | } | ||
| 233 | |||
| 234 | ✗ | void FanVariableVolume_Impl::resetMaximumFlowRate() { | |
| 235 | ✗ | bool result = setString(OS_Fan_VariableVolumeFields::MaximumFlowRate, ""); | |
| 236 | ✗ | OS_ASSERT(result); | |
| 237 | ✗ | } | |
| 238 | |||
| 239 | 37 | void FanVariableVolume_Impl::autosizeMaximumFlowRate() { | |
| 240 |
2/2✓ Branch 1 taken 37 times.
✓ Branch 4 taken 37 times.
|
74 | bool result = setString(OS_Fan_VariableVolumeFields::MaximumFlowRate, "Autosize"); |
| 241 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 37 times.
|
37 | OS_ASSERT(result); |
| 242 | 37 | } | |
| 243 | |||
| 244 | 37 | bool FanVariableVolume_Impl::setFanPowerMinimumFlowRateInputMethod(const std::string& fanPowerMinimumFlowRateInputMethod) { | |
| 245 | 37 | bool result = setString(OS_Fan_VariableVolumeFields::FanPowerMinimumFlowRateInputMethod, fanPowerMinimumFlowRateInputMethod); | |
| 246 | 37 | return result; | |
| 247 | } | ||
| 248 | |||
| 249 | ✗ | void FanVariableVolume_Impl::resetFanPowerMinimumFlowRateInputMethod() { | |
| 250 | ✗ | bool result = setString(OS_Fan_VariableVolumeFields::FanPowerMinimumFlowRateInputMethod, ""); | |
| 251 | ✗ | OS_ASSERT(result); | |
| 252 | ✗ | } | |
| 253 | |||
| 254 | 37 | bool FanVariableVolume_Impl::setFanPowerMinimumFlowFraction(double fanPowerMinimumFlowFraction) { | |
| 255 | 37 | bool result = setDouble(OS_Fan_VariableVolumeFields::FanPowerMinimumFlowFraction, fanPowerMinimumFlowFraction); | |
| 256 | 37 | return result; | |
| 257 | } | ||
| 258 | |||
| 259 | ✗ | void FanVariableVolume_Impl::resetFanPowerMinimumFlowFraction() { | |
| 260 | ✗ | bool result = setString(OS_Fan_VariableVolumeFields::FanPowerMinimumFlowFraction, ""); | |
| 261 | ✗ | OS_ASSERT(result); | |
| 262 | ✗ | } | |
| 263 | |||
| 264 | 41 | bool FanVariableVolume_Impl::setFanPowerMinimumAirFlowRate(boost::optional<double> fanPowerMinimumAirFlowRate) { | |
| 265 | 41 | bool result(false); | |
| 266 |
1/2✓ Branch 0 taken 41 times.
✗ Branch 1 not taken.
|
41 | if (fanPowerMinimumAirFlowRate) { |
| 267 | 41 | result = setDouble(OS_Fan_VariableVolumeFields::FanPowerMinimumAirFlowRate, fanPowerMinimumAirFlowRate.get()); | |
| 268 | } else { | ||
| 269 | ✗ | resetFanPowerMinimumAirFlowRate(); | |
| 270 | ✗ | result = true; | |
| 271 | } | ||
| 272 | 41 | return result; | |
| 273 | } | ||
| 274 | |||
| 275 | ✗ | void FanVariableVolume_Impl::resetFanPowerMinimumAirFlowRate() { | |
| 276 | ✗ | bool result = setString(OS_Fan_VariableVolumeFields::FanPowerMinimumAirFlowRate, ""); | |
| 277 | ✗ | OS_ASSERT(result); | |
| 278 | ✗ | } | |
| 279 | |||
| 280 | 41 | bool FanVariableVolume_Impl::setMotorEfficiency(double motorEfficiency) { | |
| 281 | 41 | bool result = setDouble(OS_Fan_VariableVolumeFields::MotorEfficiency, motorEfficiency); | |
| 282 | 41 | return result; | |
| 283 | } | ||
| 284 | |||
| 285 | ✗ | void FanVariableVolume_Impl::resetMotorEfficiency() { | |
| 286 | ✗ | bool result = setString(OS_Fan_VariableVolumeFields::MotorEfficiency, ""); | |
| 287 | ✗ | OS_ASSERT(result); | |
| 288 | ✗ | } | |
| 289 | |||
| 290 | 41 | bool FanVariableVolume_Impl::setMotorInAirstreamFraction(double motorInAirstreamFraction) { | |
| 291 | 41 | bool result = setDouble(OS_Fan_VariableVolumeFields::MotorInAirstreamFraction, motorInAirstreamFraction); | |
| 292 | 41 | return result; | |
| 293 | } | ||
| 294 | |||
| 295 | ✗ | void FanVariableVolume_Impl::resetMotorInAirstreamFraction() { | |
| 296 | ✗ | bool result = setString(OS_Fan_VariableVolumeFields::MotorInAirstreamFraction, ""); | |
| 297 | ✗ | OS_ASSERT(result); | |
| 298 | ✗ | } | |
| 299 | |||
| 300 | 41 | bool FanVariableVolume_Impl::setFanPowerCoefficient1(boost::optional<double> fanPowerCoefficient1) { | |
| 301 | 41 | bool result(false); | |
| 302 |
1/2✓ Branch 0 taken 41 times.
✗ Branch 1 not taken.
|
41 | if (fanPowerCoefficient1) { |
| 303 | 41 | result = setDouble(OS_Fan_VariableVolumeFields::FanPowerCoefficient1, fanPowerCoefficient1.get()); | |
| 304 | } else { | ||
| 305 | ✗ | resetFanPowerCoefficient1(); | |
| 306 | ✗ | result = true; | |
| 307 | } | ||
| 308 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 41 times.
|
41 | OS_ASSERT(result); |
| 309 | 41 | return result; | |
| 310 | } | ||
| 311 | |||
| 312 | ✗ | void FanVariableVolume_Impl::resetFanPowerCoefficient1() { | |
| 313 | ✗ | bool result = setString(OS_Fan_VariableVolumeFields::FanPowerCoefficient1, ""); | |
| 314 | ✗ | OS_ASSERT(result); | |
| 315 | ✗ | } | |
| 316 | |||
| 317 | 41 | bool FanVariableVolume_Impl::setFanPowerCoefficient2(boost::optional<double> fanPowerCoefficient2) { | |
| 318 | 41 | bool result(false); | |
| 319 |
1/2✓ Branch 0 taken 41 times.
✗ Branch 1 not taken.
|
41 | if (fanPowerCoefficient2) { |
| 320 | 41 | result = setDouble(OS_Fan_VariableVolumeFields::FanPowerCoefficient2, fanPowerCoefficient2.get()); | |
| 321 | } else { | ||
| 322 | ✗ | resetFanPowerCoefficient2(); | |
| 323 | ✗ | result = true; | |
| 324 | } | ||
| 325 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 41 times.
|
41 | OS_ASSERT(result); |
| 326 | 41 | return result; | |
| 327 | } | ||
| 328 | |||
| 329 | ✗ | void FanVariableVolume_Impl::resetFanPowerCoefficient2() { | |
| 330 | ✗ | bool result = setString(OS_Fan_VariableVolumeFields::FanPowerCoefficient2, ""); | |
| 331 | ✗ | OS_ASSERT(result); | |
| 332 | ✗ | } | |
| 333 | |||
| 334 | 41 | bool FanVariableVolume_Impl::setFanPowerCoefficient3(boost::optional<double> fanPowerCoefficient3) { | |
| 335 | 41 | bool result(false); | |
| 336 |
1/2✓ Branch 0 taken 41 times.
✗ Branch 1 not taken.
|
41 | if (fanPowerCoefficient3) { |
| 337 | 41 | result = setDouble(OS_Fan_VariableVolumeFields::FanPowerCoefficient3, fanPowerCoefficient3.get()); | |
| 338 | } else { | ||
| 339 | ✗ | resetFanPowerCoefficient3(); | |
| 340 | ✗ | result = true; | |
| 341 | } | ||
| 342 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 41 times.
|
41 | OS_ASSERT(result); |
| 343 | 41 | return result; | |
| 344 | } | ||
| 345 | |||
| 346 | ✗ | void FanVariableVolume_Impl::resetFanPowerCoefficient3() { | |
| 347 | ✗ | bool result = setString(OS_Fan_VariableVolumeFields::FanPowerCoefficient3, ""); | |
| 348 | ✗ | OS_ASSERT(result); | |
| 349 | ✗ | } | |
| 350 | |||
| 351 | 41 | bool FanVariableVolume_Impl::setFanPowerCoefficient4(boost::optional<double> fanPowerCoefficient4) { | |
| 352 | 41 | bool result(false); | |
| 353 |
1/2✓ Branch 0 taken 41 times.
✗ Branch 1 not taken.
|
41 | if (fanPowerCoefficient4) { |
| 354 | 41 | result = setDouble(OS_Fan_VariableVolumeFields::FanPowerCoefficient4, fanPowerCoefficient4.get()); | |
| 355 | } else { | ||
| 356 | ✗ | resetFanPowerCoefficient4(); | |
| 357 | ✗ | result = true; | |
| 358 | } | ||
| 359 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 41 times.
|
41 | OS_ASSERT(result); |
| 360 | 41 | return result; | |
| 361 | } | ||
| 362 | |||
| 363 | ✗ | void FanVariableVolume_Impl::resetFanPowerCoefficient4() { | |
| 364 | ✗ | bool result = setString(OS_Fan_VariableVolumeFields::FanPowerCoefficient4, ""); | |
| 365 | ✗ | OS_ASSERT(result); | |
| 366 | ✗ | } | |
| 367 | |||
| 368 | 41 | bool FanVariableVolume_Impl::setFanPowerCoefficient5(boost::optional<double> fanPowerCoefficient5) { | |
| 369 | 41 | bool result(false); | |
| 370 |
1/2✓ Branch 0 taken 41 times.
✗ Branch 1 not taken.
|
41 | if (fanPowerCoefficient5) { |
| 371 | 41 | result = setDouble(OS_Fan_VariableVolumeFields::FanPowerCoefficient5, fanPowerCoefficient5.get()); | |
| 372 | } else { | ||
| 373 | ✗ | resetFanPowerCoefficient5(); | |
| 374 | ✗ | result = true; | |
| 375 | } | ||
| 376 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 41 times.
|
41 | OS_ASSERT(result); |
| 377 | 41 | return result; | |
| 378 | } | ||
| 379 | |||
| 380 | ✗ | void FanVariableVolume_Impl::resetFanPowerCoefficient5() { | |
| 381 | ✗ | bool result = setString(OS_Fan_VariableVolumeFields::FanPowerCoefficient5, ""); | |
| 382 | ✗ | OS_ASSERT(result); | |
| 383 | ✗ | } | |
| 384 | |||
| 385 | 38 | bool FanVariableVolume_Impl::setEndUseSubcategory(const std::string& endUseSubcategory) { | |
| 386 | 38 | bool result = setString(OS_Fan_VariableVolumeFields::EndUseSubcategory, endUseSubcategory); | |
| 387 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 38 times.
|
38 | OS_ASSERT(result); |
| 388 | 38 | return result; | |
| 389 | } | ||
| 390 | |||
| 391 | ✗ | void FanVariableVolume_Impl::resetEndUseSubcategory() { | |
| 392 | ✗ | bool result = setString(OS_Fan_VariableVolumeFields::EndUseSubcategory, ""); | |
| 393 | ✗ | OS_ASSERT(result); | |
| 394 | ✗ | } | |
| 395 | |||
| 396 | 102 | unsigned FanVariableVolume_Impl::inletPort() const { | |
| 397 | 102 | return OS_Fan_VariableVolumeFields::AirInletNodeName; | |
| 398 | } | ||
| 399 | |||
| 400 | 1542 | unsigned FanVariableVolume_Impl::outletPort() const { | |
| 401 | 1542 | return OS_Fan_VariableVolumeFields::AirOutletNodeName; | |
| 402 | } | ||
| 403 | |||
| 404 | 27 | bool FanVariableVolume_Impl::addToNode(Node& node) { | |
| 405 |
1/1✓ Branch 1 taken 27 times.
|
27 | auto oaSystem = node.airLoopHVACOutdoorAirSystem(); |
| 406 |
1/1✓ Branch 1 taken 27 times.
|
27 | auto airLoop = node.airLoopHVAC(); |
| 407 | |||
| 408 |
19/24✓ Branch 1 taken 24 times.
✓ Branch 2 taken 3 times.
✓ Branch 4 taken 24 times.
✓ Branch 7 taken 24 times.
✓ Branch 10 taken 24 times.
✓ Branch 13 taken 3 times.
✓ Branch 14 taken 21 times.
✓ Branch 15 taken 3 times.
✓ Branch 16 taken 3 times.
✓ Branch 18 taken 3 times.
✓ Branch 21 taken 3 times.
✓ Branch 24 taken 3 times.
✓ Branch 27 taken 3 times.
✗ Branch 28 not taken.
✓ Branch 29 taken 3 times.
✓ Branch 30 taken 24 times.
✓ Branch 32 taken 24 times.
✓ Branch 33 taken 3 times.
✓ Branch 35 taken 24 times.
✓ Branch 36 taken 3 times.
✗ Branch 37 not taken.
✗ Branch 38 not taken.
✗ Branch 40 not taken.
✗ Branch 41 not taken.
|
87 | if ((airLoop && airLoop->supplyComponent(node.handle())) || (oaSystem && oaSystem->component(node.handle()))) { |
| 409 |
2/3✓ Branch 1 taken 24 times.
✓ Branch 3 taken 24 times.
✗ Branch 4 not taken.
|
24 | if (StraightComponent_Impl::addToNode(node)) { |
| 410 |
2/2✓ Branch 0 taken 23 times.
✓ Branch 1 taken 1 time.
|
24 | if (airLoop) { |
| 411 |
2/2✓ Branch 1 taken 23 times.
✓ Branch 4 taken 23 times.
|
23 | SetpointManagerMixedAir::updateFanInletOutletNodes(airLoop.get()); |
| 412 | } | ||
| 413 | 24 | return true; | |
| 414 | } | ||
| 415 | } | ||
| 416 | |||
| 417 | 3 | return false; | |
| 418 | 27 | } | |
| 419 | |||
| 420 | ✗ | std::vector<std::string> FanVariableVolume_Impl::fanPowerMinimumFlowRateInputMethodValues() const { | |
| 421 | ✗ | return FanVariableVolume::fanPowerMinimumFlowRateInputMethodValues(); | |
| 422 | } | ||
| 423 | |||
| 424 | ✗ | boost::optional<ModelObject> FanVariableVolume_Impl::availabilityScheduleAsModelObject() const { | |
| 425 | ✗ | OptionalModelObject result = availabilitySchedule(); | |
| 426 | ✗ | return result; | |
| 427 | } | ||
| 428 | |||
| 429 | ✗ | bool FanVariableVolume_Impl::setAvailabilityScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) { | |
| 430 | ✗ | if (modelObject) { | |
| 431 | ✗ | OptionalSchedule intermediate = modelObject->optionalCast<Schedule>(); | |
| 432 | ✗ | if (intermediate) { | |
| 433 | ✗ | Schedule schedule(*intermediate); | |
| 434 | ✗ | return setAvailabilitySchedule(schedule); | |
| 435 | ✗ | } | |
| 436 | ✗ | } | |
| 437 | ✗ | return false; | |
| 438 | } | ||
| 439 | |||
| 440 | 3 | boost::optional<HVACComponent> FanVariableVolume_Impl::containingHVACComponent() const { | |
| 441 | // AirLoopHVACUnitarySystem | ||
| 442 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | std::vector<AirLoopHVACUnitarySystem> airLoopHVACUnitarySystems = this->model().getConcreteModelObjects<AirLoopHVACUnitarySystem>(); |
| 443 | |||
| 444 |
2/2✓ Branch 5 taken 1 time.
✓ Branch 6 taken 2 times.
|
3 | for (const auto& airLoopHVACUnitarySystem : airLoopHVACUnitarySystems) { |
| 445 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<HVACComponent> fan = airLoopHVACUnitarySystem.supplyFan()) { |
| 446 |
5/6✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 12 taken 1 time.
✗ Branch 13 not taken.
|
1 | if (fan->handle() == this->handle()) { |
| 447 |
1/1✓ Branch 1 taken 1 time.
|
1 | return airLoopHVACUnitarySystem; |
| 448 | } | ||
| 449 | 1 | } | |
| 450 | } | ||
| 451 | 2 | return boost::none; | |
| 452 | 3 | } | |
| 453 | |||
| 454 | 2 | boost::optional<ZoneHVACComponent> FanVariableVolume_Impl::containingZoneHVACComponent() const { | |
| 455 | // ZoneHVACFourPipeFanCoil | ||
| 456 | |||
| 457 | 2 | std::vector<ZoneHVACFourPipeFanCoil> zoneHVACFourPipeFanCoils; | |
| 458 | |||
| 459 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | zoneHVACFourPipeFanCoils = this->model().getConcreteModelObjects<ZoneHVACFourPipeFanCoil>(); |
| 460 | |||
| 461 |
1/2✗ Branch 5 not taken.
✓ Branch 6 taken 2 times.
|
2 | for (const auto& zoneHVACFourPipeFanCoil : zoneHVACFourPipeFanCoils) { |
| 462 | ✗ | if (boost::optional<HVACComponent> fan = zoneHVACFourPipeFanCoil.supplyAirFan()) { | |
| 463 | ✗ | if (fan->handle() == this->handle()) { | |
| 464 | ✗ | return zoneHVACFourPipeFanCoil; | |
| 465 | } | ||
| 466 | ✗ | } | |
| 467 | } | ||
| 468 | |||
| 469 | // ZoneHVACUnitHeater | ||
| 470 | |||
| 471 | 2 | std::vector<ZoneHVACUnitHeater> zoneHVACUnitHeater; | |
| 472 | |||
| 473 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | zoneHVACUnitHeater = this->model().getConcreteModelObjects<ZoneHVACUnitHeater>(); |
| 474 | |||
| 475 |
1/2✗ Branch 5 not taken.
✓ Branch 6 taken 2 times.
|
2 | for (const auto& elem : zoneHVACUnitHeater) { |
| 476 | ✗ | if (boost::optional<HVACComponent> fan = elem.supplyAirFan()) { | |
| 477 | ✗ | if (fan->handle() == this->handle()) { | |
| 478 | ✗ | return elem; | |
| 479 | } | ||
| 480 | ✗ | } | |
| 481 | } | ||
| 482 | |||
| 483 | // ZoneHVACUnitVentilator | ||
| 484 | |||
| 485 | 2 | std::vector<ZoneHVACUnitVentilator> zoneHVACUnitVentilator; | |
| 486 | |||
| 487 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | zoneHVACUnitVentilator = this->model().getConcreteModelObjects<ZoneHVACUnitVentilator>(); |
| 488 | |||
| 489 |
1/2✗ Branch 5 not taken.
✓ Branch 6 taken 2 times.
|
2 | for (const auto& elem : zoneHVACUnitVentilator) { |
| 490 | ✗ | if (boost::optional<HVACComponent> fan = elem.supplyAirFan()) { | |
| 491 | ✗ | if (fan->handle() == this->handle()) { | |
| 492 | ✗ | return elem; | |
| 493 | } | ||
| 494 | ✗ | } | |
| 495 | } | ||
| 496 | |||
| 497 | // ZoneHVACEvaporativeCoolerUnit | ||
| 498 | 2 | std::vector<ZoneHVACEvaporativeCoolerUnit> zoneHVACEvaporativeCoolerUnit; | |
| 499 | |||
| 500 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | zoneHVACEvaporativeCoolerUnit = this->model().getConcreteModelObjects<ZoneHVACEvaporativeCoolerUnit>(); |
| 501 | |||
| 502 |
1/2✗ Branch 5 not taken.
✓ Branch 6 taken 2 times.
|
2 | for (const auto& elem : zoneHVACEvaporativeCoolerUnit) { |
| 503 | ✗ | if (boost::optional<HVACComponent> fan = elem.supplyAirFan()) { | |
| 504 | ✗ | if (fan->handle() == this->handle()) { | |
| 505 | ✗ | return elem; | |
| 506 | } | ||
| 507 | ✗ | } | |
| 508 | } | ||
| 509 | |||
| 510 | 2 | return boost::none; | |
| 511 | 2 | } | |
| 512 | |||
| 513 | ✗ | AirflowNetworkFan FanVariableVolume_Impl::getAirflowNetworkFan() { | |
| 514 | ✗ | auto opt = airflowNetworkFan(); | |
| 515 | ✗ | if (opt) { | |
| 516 | ✗ | return opt.get(); | |
| 517 | } | ||
| 518 | ✗ | return AirflowNetworkFan(model(), handle()); | |
| 519 | ✗ | } | |
| 520 | |||
| 521 | ✗ | boost::optional<AirflowNetworkFan> FanVariableVolume_Impl::airflowNetworkFan() const { | |
| 522 | std::vector<AirflowNetworkFan> myAFNitems = | ||
| 523 | ✗ | getObject<ModelObject>().getModelObjectSources<AirflowNetworkFan>(AirflowNetworkFan::iddObjectType()); | |
| 524 | ✗ | auto count = myAFNitems.size(); | |
| 525 | ✗ | if (count == 1) { | |
| 526 | ✗ | return myAFNitems[0]; | |
| 527 | ✗ | } else if (count > 1) { | |
| 528 | ✗ | LOG(Warn, briefDescription() << " has more than one AirflowNetwork EquivalentDuct attached, returning first."); | |
| 529 | ✗ | return myAFNitems[0]; | |
| 530 | } | ||
| 531 | ✗ | return boost::none; | |
| 532 | ✗ | } | |
| 533 | |||
| 534 | ✗ | boost::optional<double> FanVariableVolume_Impl::autosizedMaximumFlowRate() const { | |
| 535 | ✗ | return getAutosizedValue("Design Size Maximum Flow Rate", "m3/s"); | |
| 536 | } | ||
| 537 | |||
| 538 | ✗ | void FanVariableVolume_Impl::autosize() { | |
| 539 | ✗ | autosizeMaximumFlowRate(); | |
| 540 | ✗ | } | |
| 541 | |||
| 542 | ✗ | void FanVariableVolume_Impl::applySizingValues() { | |
| 543 | ✗ | boost::optional<double> val; | |
| 544 | ✗ | val = autosizedMaximumFlowRate(); | |
| 545 | ✗ | if (val) { | |
| 546 | ✗ | setMaximumFlowRate(val.get()); | |
| 547 | } | ||
| 548 | ✗ | } | |
| 549 | |||
| 550 | 8 | FanSystemModel FanVariableVolume_Impl::convertToFanSystemModel() const { | |
| 551 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
8 | FanSystemModel fan(this->model()); |
| 552 |
3/3✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
|
8 | fan.setName(this->nameString() + " FanSystemModel"); |
| 553 |
1/1✓ Branch 1 taken 8 times.
|
8 | auto availSch = this->availabilitySchedule(); |
| 554 |
1/1✓ Branch 1 taken 8 times.
|
8 | fan.setAvailabilitySchedule(availSch); |
| 555 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
8 | fan.setFanTotalEfficiency(this->fanTotalEfficiency()); |
| 556 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
8 | fan.setDesignPressureRise(this->pressureRise()); |
| 557 |
2/3✓ Branch 1 taken 8 times.
✓ Branch 3 taken 8 times.
✗ Branch 4 not taken.
|
8 | if (this->isMaximumFlowRateAutosized()) { |
| 558 |
1/1✓ Branch 1 taken 8 times.
|
8 | fan.autosizeDesignMaximumAirFlowRate(); |
| 559 | ✗ | } else if (boost::optional<double> value = this->maximumFlowRate()) { | |
| 560 | ✗ | fan.setDesignMaximumAirFlowRate(value.get()); | |
| 561 | } | ||
| 562 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
8 | fan.setMotorEfficiency(this->motorEfficiency()); |
| 563 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
8 | fan.setMotorInAirStreamFraction(this->motorInAirstreamFraction()); |
| 564 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
8 | fan.setSpeedControlMethod("Continuous"); |
| 565 |
1/1✓ Branch 1 taken 8 times.
|
8 | fan.setElectricPowerMinimumFlowRateFraction(0.0); |
| 566 |
1/1✓ Branch 1 taken 8 times.
|
8 | fan.autosizeDesignElectricPowerConsumption(); |
| 567 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
8 | fan.setDesignPowerSizingMethod("TotalEfficiencyAndPressure"); |
| 568 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
8 | fan.setEndUseSubcategory(this->endUseSubcategory()); |
| 569 | |||
| 570 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
8 | CurveQuartic curve(this->model()); |
| 571 |
3/3✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
|
8 | curve.setName(fan.nameString() + " Curve"); |
| 572 |
2/3✓ Branch 1 taken 8 times.
✓ Branch 3 taken 8 times.
✗ Branch 4 not taken.
|
16 | if (boost::optional<double> value = this->fanPowerCoefficient1()) { |
| 573 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
8 | curve.setCoefficient1Constant(value.get()); |
| 574 | } | ||
| 575 |
2/3✓ Branch 1 taken 8 times.
✓ Branch 3 taken 8 times.
✗ Branch 4 not taken.
|
16 | if (boost::optional<double> value = this->fanPowerCoefficient2()) { |
| 576 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
8 | curve.setCoefficient2x(value.get()); |
| 577 | } | ||
| 578 |
2/3✓ Branch 1 taken 8 times.
✓ Branch 3 taken 8 times.
✗ Branch 4 not taken.
|
16 | if (boost::optional<double> value = this->fanPowerCoefficient3()) { |
| 579 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
8 | curve.setCoefficient3xPOW2(value.get()); |
| 580 | } | ||
| 581 |
2/3✓ Branch 1 taken 8 times.
✓ Branch 3 taken 8 times.
✗ Branch 4 not taken.
|
16 | if (boost::optional<double> value = this->fanPowerCoefficient4()) { |
| 582 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
8 | curve.setCoefficient4xPOW3(value.get()); |
| 583 | } | ||
| 584 |
2/3✓ Branch 1 taken 8 times.
✓ Branch 3 taken 8 times.
✗ Branch 4 not taken.
|
16 | if (boost::optional<double> value = this->fanPowerCoefficient5()) { |
| 585 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
8 | curve.setCoefficient5xPOW4(value.get()); |
| 586 | } | ||
| 587 |
1/1✓ Branch 1 taken 8 times.
|
8 | curve.setMinimumValueofx(0.0); |
| 588 |
1/1✓ Branch 1 taken 8 times.
|
8 | curve.setMaximumValueofx(1.0); |
| 589 |
1/1✓ Branch 1 taken 8 times.
|
8 | curve.setMinimumCurveOutput(0.0); |
| 590 |
1/1✓ Branch 1 taken 8 times.
|
8 | curve.setMaximumCurveOutput(5.0); |
| 591 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
16 | curve.setInputUnitTypeforX("Dimensionless"); |
| 592 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
8 | curve.setOutputUnitType("Dimensionless"); |
| 593 |
1/1✓ Branch 1 taken 8 times.
|
8 | fan.setElectricPowerFunctionofFlowFractionCurve(curve); |
| 594 | |||
| 595 | 16 | return fan; | |
| 596 | 8 | } | |
| 597 | |||
| 598 | ✗ | std::vector<EMSActuatorNames> FanVariableVolume_Impl::emsActuatorNames() const { | |
| 599 | std::vector<EMSActuatorNames> actuators{ | ||
| 600 | ✗ | {"Fan", "Fan Air Mass Flow Rate"}, {"Fan", "Fan Pressure Rise"}, {"Fan", "Fan Total Efficiency"}, {"Fan", "Fan Autosized Air Flow Rate"}}; | |
| 601 | ✗ | return actuators; | |
| 602 | ✗ | } | |
| 603 | |||
| 604 | ✗ | std::vector<std::string> FanVariableVolume_Impl::emsInternalVariableNames() const { | |
| 605 | ✗ | std::vector<std::string> types{"Fan Maximum Mass Flow Rate", "Fan Nominal Pressure Rise", "Fan Nominal Total Efficiency"}; | |
| 606 | ✗ | return types; | |
| 607 | ✗ | } | |
| 608 | |||
| 609 | ✗ | ComponentType FanVariableVolume_Impl::componentType() const { | |
| 610 | ✗ | return ComponentType::None; | |
| 611 | } | ||
| 612 | |||
| 613 | ✗ | std::vector<FuelType> FanVariableVolume_Impl::coolingFuelTypes() const { | |
| 614 | ✗ | return {}; | |
| 615 | } | ||
| 616 | |||
| 617 | ✗ | std::vector<FuelType> FanVariableVolume_Impl::heatingFuelTypes() const { | |
| 618 | ✗ | return {}; | |
| 619 | } | ||
| 620 | |||
| 621 | ✗ | std::vector<AppGFuelType> FanVariableVolume_Impl::appGHeatingFuelTypes() const { | |
| 622 | ✗ | return {}; | |
| 623 | } | ||
| 624 | |||
| 625 | } // namespace detail | ||
| 626 | |||
| 627 | 13 | FanVariableVolume::FanVariableVolume(const Model& model, Schedule& schedule) : StraightComponent(FanVariableVolume::iddObjectType(), model) { | |
| 628 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 13 times.
✗ Branch 5 not taken.
|
13 | OS_ASSERT(getImpl<detail::FanVariableVolume_Impl>()); |
| 629 | |||
| 630 |
1/1✓ Branch 1 taken 13 times.
|
13 | bool ok = setAvailabilitySchedule(schedule); |
| 631 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 13 times.
|
13 | if (!ok) { |
| 632 | ✗ | remove(); | |
| 633 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s availability schedule to " << schedule.briefDescription() << "."); | |
| 634 | } | ||
| 635 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
13 | setEndUseSubcategory(""); |
| 636 |
1/1✓ Branch 1 taken 13 times.
|
13 | setFanTotalEfficiency(0.6045); |
| 637 |
1/1✓ Branch 1 taken 13 times.
|
13 | setPressureRise(1017.592); |
| 638 |
1/1✓ Branch 1 taken 13 times.
|
13 | autosizeMaximumFlowRate(); |
| 639 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
13 | setFanPowerMinimumFlowRateInputMethod("FixedFlowRate"); |
| 640 |
1/1✓ Branch 1 taken 13 times.
|
13 | setFanPowerMinimumFlowFraction(0.0); |
| 641 |
1/1✓ Branch 1 taken 13 times.
|
13 | setFanPowerMinimumAirFlowRate(0.0); |
| 642 |
1/1✓ Branch 1 taken 13 times.
|
13 | setMotorEfficiency(0.93); |
| 643 |
1/1✓ Branch 1 taken 13 times.
|
13 | setMotorInAirstreamFraction(1.0); |
| 644 |
1/1✓ Branch 1 taken 13 times.
|
13 | setFanPowerCoefficient1(0.0407598940); |
| 645 |
1/1✓ Branch 1 taken 13 times.
|
13 | setFanPowerCoefficient2(0.08804497); |
| 646 |
1/1✓ Branch 1 taken 13 times.
|
13 | setFanPowerCoefficient3(-0.072926120); |
| 647 |
1/1✓ Branch 1 taken 13 times.
|
13 | setFanPowerCoefficient4(0.9437398230); |
| 648 |
1/1✓ Branch 1 taken 13 times.
|
13 | setFanPowerCoefficient5(0.0); |
| 649 | 13 | } | |
| 650 | |||
| 651 | 24 | FanVariableVolume::FanVariableVolume(const Model& model) : StraightComponent(FanVariableVolume::iddObjectType(), model) { | |
| 652 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 24 times.
✗ Branch 5 not taken.
|
24 | OS_ASSERT(getImpl<detail::FanVariableVolume_Impl>()); |
| 653 | |||
| 654 |
1/1✓ Branch 1 taken 24 times.
|
24 | auto schedule = model.alwaysOnDiscreteSchedule(); |
| 655 |
1/1✓ Branch 1 taken 24 times.
|
24 | setAvailabilitySchedule(schedule); |
| 656 | |||
| 657 |
2/2✓ Branch 1 taken 24 times.
✓ Branch 4 taken 24 times.
|
24 | setEndUseSubcategory(""); |
| 658 |
1/1✓ Branch 1 taken 24 times.
|
24 | setFanTotalEfficiency(0.6045); |
| 659 |
1/1✓ Branch 1 taken 24 times.
|
24 | setPressureRise(1017.592); |
| 660 |
1/1✓ Branch 1 taken 24 times.
|
24 | autosizeMaximumFlowRate(); |
| 661 |
2/2✓ Branch 1 taken 24 times.
✓ Branch 4 taken 24 times.
|
24 | setFanPowerMinimumFlowRateInputMethod("FixedFlowRate"); |
| 662 |
1/1✓ Branch 1 taken 24 times.
|
24 | setFanPowerMinimumFlowFraction(0.0); |
| 663 |
1/1✓ Branch 1 taken 24 times.
|
24 | setFanPowerMinimumAirFlowRate(0.0); |
| 664 |
1/1✓ Branch 1 taken 24 times.
|
24 | setMotorEfficiency(0.93); |
| 665 |
1/1✓ Branch 1 taken 24 times.
|
24 | setMotorInAirstreamFraction(1.0); |
| 666 |
1/1✓ Branch 1 taken 24 times.
|
24 | setFanPowerCoefficient1(0.0407598940); |
| 667 |
1/1✓ Branch 1 taken 24 times.
|
24 | setFanPowerCoefficient2(0.08804497); |
| 668 |
1/1✓ Branch 1 taken 24 times.
|
24 | setFanPowerCoefficient3(-0.072926120); |
| 669 |
1/1✓ Branch 1 taken 24 times.
|
24 | setFanPowerCoefficient4(0.9437398230); |
| 670 |
1/1✓ Branch 1 taken 24 times.
|
24 | setFanPowerCoefficient5(0.0); |
| 671 | 24 | } | |
| 672 | |||
| 673 | 8293 | IddObjectType FanVariableVolume::iddObjectType() { | |
| 674 |
1/1✓ Branch 1 taken 8293 times.
|
8293 | IddObjectType result(IddObjectType::OS_Fan_VariableVolume); |
| 675 | 8293 | return result; | |
| 676 | } | ||
| 677 | |||
| 678 | ✗ | std::vector<std::string> FanVariableVolume::fanPowerMinimumFlowRateInputMethodValues() { | |
| 679 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Fan_VariableVolumeFields::FanPowerMinimumFlowRateInputMethod); | |
| 680 | } | ||
| 681 | |||
| 682 | ✗ | std::vector<std::string> FanVariableVolume::validFanPowerMinimumFlowRateInputMethodValues() { | |
| 683 | ✗ | return FanVariableVolume::fanPowerMinimumFlowRateInputMethodValues(); | |
| 684 | } | ||
| 685 | |||
| 686 | 2 | Schedule FanVariableVolume::availabilitySchedule() const { | |
| 687 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::FanVariableVolume_Impl>()->availabilitySchedule(); |
| 688 | } | ||
| 689 | |||
| 690 | // New Fan Total Efficiency | ||
| 691 | 1 | double FanVariableVolume::fanTotalEfficiency() const { | |
| 692 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::FanVariableVolume_Impl>()->fanTotalEfficiency(); |
| 693 | } | ||
| 694 | |||
| 695 | ✗ | bool FanVariableVolume::isFanTotalEfficiencyDefaulted() const { | |
| 696 | ✗ | return getImpl<detail::FanVariableVolume_Impl>()->isFanTotalEfficiencyDefaulted(); | |
| 697 | } | ||
| 698 | |||
| 699 | 37 | bool FanVariableVolume::setFanTotalEfficiency(double fanTotalEfficiency) { | |
| 700 |
1/1✓ Branch 3 taken 37 times.
|
37 | return getImpl<detail::FanVariableVolume_Impl>()->setFanTotalEfficiency(fanTotalEfficiency); |
| 701 | } | ||
| 702 | |||
| 703 | ✗ | void FanVariableVolume::resetFanTotalEfficiency() { | |
| 704 | ✗ | getImpl<detail::FanVariableVolume_Impl>()->resetFanTotalEfficiency(); | |
| 705 | ✗ | } | |
| 706 | |||
| 707 | // Deprecrated methods | ||
| 708 | 8 | double FanVariableVolume::fanEfficiency() const { | |
| 709 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::FanVariableVolume_Impl>()->fanTotalEfficiency(); |
| 710 | } | ||
| 711 | |||
| 712 | ✗ | bool FanVariableVolume::isFanEfficiencyDefaulted() const { | |
| 713 | ✗ | return getImpl<detail::FanVariableVolume_Impl>()->isFanTotalEfficiencyDefaulted(); | |
| 714 | } | ||
| 715 | |||
| 716 | 4 | bool FanVariableVolume::setFanEfficiency(double fanTotalEfficiency) { | |
| 717 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::FanVariableVolume_Impl>()->setFanTotalEfficiency(fanTotalEfficiency); |
| 718 | } | ||
| 719 | |||
| 720 | ✗ | void FanVariableVolume::resetFanEfficiency() { | |
| 721 | ✗ | getImpl<detail::FanVariableVolume_Impl>()->resetFanTotalEfficiency(); | |
| 722 | ✗ | } | |
| 723 | |||
| 724 | 8 | double FanVariableVolume::pressureRise() const { | |
| 725 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::FanVariableVolume_Impl>()->pressureRise(); |
| 726 | } | ||
| 727 | |||
| 728 | 5 | boost::optional<double> FanVariableVolume::maximumFlowRate() const { | |
| 729 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::FanVariableVolume_Impl>()->maximumFlowRate(); |
| 730 | } | ||
| 731 | |||
| 732 | 12 | bool FanVariableVolume::isMaximumFlowRateAutosized() const { | |
| 733 |
1/1✓ Branch 3 taken 12 times.
|
12 | return getImpl<detail::FanVariableVolume_Impl>()->isMaximumFlowRateAutosized(); |
| 734 | } | ||
| 735 | |||
| 736 | 7 | std::string FanVariableVolume::fanPowerMinimumFlowRateInputMethod() const { | |
| 737 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::FanVariableVolume_Impl>()->fanPowerMinimumFlowRateInputMethod(); |
| 738 | } | ||
| 739 | |||
| 740 | ✗ | bool FanVariableVolume::isFanPowerMinimumFlowRateInputMethodDefaulted() const { | |
| 741 | ✗ | return getImpl<detail::FanVariableVolume_Impl>()->isFanPowerMinimumFlowRateInputMethodDefaulted(); | |
| 742 | } | ||
| 743 | |||
| 744 | 7 | double FanVariableVolume::fanPowerMinimumFlowFraction() const { | |
| 745 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::FanVariableVolume_Impl>()->fanPowerMinimumFlowFraction(); |
| 746 | } | ||
| 747 | |||
| 748 | ✗ | bool FanVariableVolume::isFanPowerMinimumFlowFractionDefaulted() const { | |
| 749 | ✗ | return getImpl<detail::FanVariableVolume_Impl>()->isFanPowerMinimumFlowFractionDefaulted(); | |
| 750 | } | ||
| 751 | |||
| 752 | 7 | boost::optional<double> FanVariableVolume::fanPowerMinimumAirFlowRate() const { | |
| 753 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::FanVariableVolume_Impl>()->fanPowerMinimumAirFlowRate(); |
| 754 | } | ||
| 755 | |||
| 756 | 8 | double FanVariableVolume::motorEfficiency() const { | |
| 757 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::FanVariableVolume_Impl>()->motorEfficiency(); |
| 758 | } | ||
| 759 | |||
| 760 | ✗ | bool FanVariableVolume::isMotorEfficiencyDefaulted() const { | |
| 761 | ✗ | return getImpl<detail::FanVariableVolume_Impl>()->isMotorEfficiencyDefaulted(); | |
| 762 | } | ||
| 763 | |||
| 764 | 8 | double FanVariableVolume::motorInAirstreamFraction() const { | |
| 765 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::FanVariableVolume_Impl>()->motorInAirstreamFraction(); |
| 766 | } | ||
| 767 | |||
| 768 | ✗ | bool FanVariableVolume::isMotorInAirstreamFractionDefaulted() const { | |
| 769 | ✗ | return getImpl<detail::FanVariableVolume_Impl>()->isMotorInAirstreamFractionDefaulted(); | |
| 770 | } | ||
| 771 | |||
| 772 | 9 | boost::optional<double> FanVariableVolume::fanPowerCoefficient1() const { | |
| 773 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::FanVariableVolume_Impl>()->fanPowerCoefficient1(); |
| 774 | } | ||
| 775 | |||
| 776 | 9 | boost::optional<double> FanVariableVolume::fanPowerCoefficient2() const { | |
| 777 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::FanVariableVolume_Impl>()->fanPowerCoefficient2(); |
| 778 | } | ||
| 779 | |||
| 780 | 9 | boost::optional<double> FanVariableVolume::fanPowerCoefficient3() const { | |
| 781 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::FanVariableVolume_Impl>()->fanPowerCoefficient3(); |
| 782 | } | ||
| 783 | |||
| 784 | 9 | boost::optional<double> FanVariableVolume::fanPowerCoefficient4() const { | |
| 785 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::FanVariableVolume_Impl>()->fanPowerCoefficient4(); |
| 786 | } | ||
| 787 | |||
| 788 | 9 | boost::optional<double> FanVariableVolume::fanPowerCoefficient5() const { | |
| 789 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::FanVariableVolume_Impl>()->fanPowerCoefficient5(); |
| 790 | } | ||
| 791 | |||
| 792 | 7 | std::string FanVariableVolume::endUseSubcategory() const { | |
| 793 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::FanVariableVolume_Impl>()->endUseSubcategory(); |
| 794 | } | ||
| 795 | |||
| 796 | ✗ | bool FanVariableVolume::isEndUseSubcategoryDefaulted() const { | |
| 797 | ✗ | return getImpl<detail::FanVariableVolume_Impl>()->isEndUseSubcategoryDefaulted(); | |
| 798 | } | ||
| 799 | |||
| 800 | 37 | bool FanVariableVolume::setAvailabilitySchedule(Schedule& schedule) { | |
| 801 |
1/1✓ Branch 3 taken 37 times.
|
37 | return getImpl<detail::FanVariableVolume_Impl>()->setAvailabilitySchedule(schedule); |
| 802 | } | ||
| 803 | |||
| 804 | 44 | bool FanVariableVolume::setPressureRise(double pressureRise) { | |
| 805 |
1/1✓ Branch 3 taken 44 times.
|
44 | return getImpl<detail::FanVariableVolume_Impl>()->setPressureRise(pressureRise); |
| 806 | } | ||
| 807 | |||
| 808 | 4 | bool FanVariableVolume::setMaximumFlowRate(double maximumFlowRate) { | |
| 809 |
2/2✓ Branch 3 taken 4 times.
✓ Branch 6 taken 4 times.
|
4 | return getImpl<detail::FanVariableVolume_Impl>()->setMaximumFlowRate(maximumFlowRate); |
| 810 | } | ||
| 811 | |||
| 812 | ✗ | void FanVariableVolume::resetMaximumFlowRate() { | |
| 813 | ✗ | getImpl<detail::FanVariableVolume_Impl>()->resetMaximumFlowRate(); | |
| 814 | ✗ | } | |
| 815 | |||
| 816 | 37 | void FanVariableVolume::autosizeMaximumFlowRate() { | |
| 817 |
1/1✓ Branch 3 taken 37 times.
|
37 | getImpl<detail::FanVariableVolume_Impl>()->autosizeMaximumFlowRate(); |
| 818 | 37 | } | |
| 819 | |||
| 820 | 37 | bool FanVariableVolume::setFanPowerMinimumFlowRateInputMethod(const std::string& fanPowerMinimumFlowRateInputMethod) { | |
| 821 |
1/1✓ Branch 3 taken 37 times.
|
37 | return getImpl<detail::FanVariableVolume_Impl>()->setFanPowerMinimumFlowRateInputMethod(fanPowerMinimumFlowRateInputMethod); |
| 822 | } | ||
| 823 | |||
| 824 | ✗ | void FanVariableVolume::resetFanPowerMinimumFlowRateInputMethod() { | |
| 825 | ✗ | getImpl<detail::FanVariableVolume_Impl>()->resetFanPowerMinimumFlowRateInputMethod(); | |
| 826 | ✗ | } | |
| 827 | |||
| 828 | 37 | bool FanVariableVolume::setFanPowerMinimumFlowFraction(double fanPowerMinimumFlowFraction) { | |
| 829 |
1/1✓ Branch 3 taken 37 times.
|
37 | return getImpl<detail::FanVariableVolume_Impl>()->setFanPowerMinimumFlowFraction(fanPowerMinimumFlowFraction); |
| 830 | } | ||
| 831 | |||
| 832 | ✗ | void FanVariableVolume::resetFanPowerMinimumFlowFraction() { | |
| 833 | ✗ | getImpl<detail::FanVariableVolume_Impl>()->resetFanPowerMinimumFlowFraction(); | |
| 834 | ✗ | } | |
| 835 | |||
| 836 | 41 | bool FanVariableVolume::setFanPowerMinimumAirFlowRate(double fanPowerMinimumAirFlowRate) { | |
| 837 |
2/2✓ Branch 3 taken 41 times.
✓ Branch 6 taken 41 times.
|
41 | return getImpl<detail::FanVariableVolume_Impl>()->setFanPowerMinimumAirFlowRate(fanPowerMinimumAirFlowRate); |
| 838 | } | ||
| 839 | |||
| 840 | ✗ | void FanVariableVolume::resetFanPowerMinimumAirFlowRate() { | |
| 841 | ✗ | getImpl<detail::FanVariableVolume_Impl>()->resetFanPowerMinimumAirFlowRate(); | |
| 842 | ✗ | } | |
| 843 | |||
| 844 | 41 | bool FanVariableVolume::setMotorEfficiency(double motorEfficiency) { | |
| 845 |
1/1✓ Branch 3 taken 41 times.
|
41 | return getImpl<detail::FanVariableVolume_Impl>()->setMotorEfficiency(motorEfficiency); |
| 846 | } | ||
| 847 | |||
| 848 | ✗ | void FanVariableVolume::resetMotorEfficiency() { | |
| 849 | ✗ | getImpl<detail::FanVariableVolume_Impl>()->resetMotorEfficiency(); | |
| 850 | ✗ | } | |
| 851 | |||
| 852 | 41 | bool FanVariableVolume::setMotorInAirstreamFraction(double motorInAirstreamFraction) { | |
| 853 |
1/1✓ Branch 3 taken 41 times.
|
41 | return getImpl<detail::FanVariableVolume_Impl>()->setMotorInAirstreamFraction(motorInAirstreamFraction); |
| 854 | } | ||
| 855 | |||
| 856 | ✗ | void FanVariableVolume::resetMotorInAirstreamFraction() { | |
| 857 | ✗ | getImpl<detail::FanVariableVolume_Impl>()->resetMotorInAirstreamFraction(); | |
| 858 | ✗ | } | |
| 859 | |||
| 860 | 41 | bool FanVariableVolume::setFanPowerCoefficient1(double fanPowerCoefficient1) { | |
| 861 |
2/2✓ Branch 3 taken 41 times.
✓ Branch 6 taken 41 times.
|
41 | return getImpl<detail::FanVariableVolume_Impl>()->setFanPowerCoefficient1(fanPowerCoefficient1); |
| 862 | } | ||
| 863 | |||
| 864 | ✗ | void FanVariableVolume::resetFanPowerCoefficient1() { | |
| 865 | ✗ | getImpl<detail::FanVariableVolume_Impl>()->resetFanPowerCoefficient1(); | |
| 866 | ✗ | } | |
| 867 | |||
| 868 | 41 | bool FanVariableVolume::setFanPowerCoefficient2(double fanPowerCoefficient2) { | |
| 869 |
2/2✓ Branch 3 taken 41 times.
✓ Branch 6 taken 41 times.
|
41 | return getImpl<detail::FanVariableVolume_Impl>()->setFanPowerCoefficient2(fanPowerCoefficient2); |
| 870 | } | ||
| 871 | |||
| 872 | ✗ | void FanVariableVolume::resetFanPowerCoefficient2() { | |
| 873 | ✗ | getImpl<detail::FanVariableVolume_Impl>()->resetFanPowerCoefficient2(); | |
| 874 | ✗ | } | |
| 875 | |||
| 876 | 41 | bool FanVariableVolume::setFanPowerCoefficient3(double fanPowerCoefficient3) { | |
| 877 |
2/2✓ Branch 3 taken 41 times.
✓ Branch 6 taken 41 times.
|
41 | return getImpl<detail::FanVariableVolume_Impl>()->setFanPowerCoefficient3(fanPowerCoefficient3); |
| 878 | } | ||
| 879 | |||
| 880 | ✗ | void FanVariableVolume::resetFanPowerCoefficient3() { | |
| 881 | ✗ | getImpl<detail::FanVariableVolume_Impl>()->resetFanPowerCoefficient3(); | |
| 882 | ✗ | } | |
| 883 | |||
| 884 | 41 | bool FanVariableVolume::setFanPowerCoefficient4(double fanPowerCoefficient4) { | |
| 885 |
2/2✓ Branch 3 taken 41 times.
✓ Branch 6 taken 41 times.
|
41 | return getImpl<detail::FanVariableVolume_Impl>()->setFanPowerCoefficient4(fanPowerCoefficient4); |
| 886 | } | ||
| 887 | |||
| 888 | ✗ | void FanVariableVolume::resetFanPowerCoefficient4() { | |
| 889 | ✗ | getImpl<detail::FanVariableVolume_Impl>()->resetFanPowerCoefficient4(); | |
| 890 | ✗ | } | |
| 891 | |||
| 892 | 41 | bool FanVariableVolume::setFanPowerCoefficient5(double fanPowerCoefficient5) { | |
| 893 |
2/2✓ Branch 3 taken 41 times.
✓ Branch 6 taken 41 times.
|
41 | return getImpl<detail::FanVariableVolume_Impl>()->setFanPowerCoefficient5(fanPowerCoefficient5); |
| 894 | } | ||
| 895 | |||
| 896 | ✗ | void FanVariableVolume::resetFanPowerCoefficient5() { | |
| 897 | ✗ | getImpl<detail::FanVariableVolume_Impl>()->resetFanPowerCoefficient5(); | |
| 898 | ✗ | } | |
| 899 | |||
| 900 | 38 | bool FanVariableVolume::setEndUseSubcategory(const std::string& endUseSubcategory) { | |
| 901 |
1/1✓ Branch 3 taken 38 times.
|
38 | return getImpl<detail::FanVariableVolume_Impl>()->setEndUseSubcategory(endUseSubcategory); |
| 902 | } | ||
| 903 | |||
| 904 | ✗ | void FanVariableVolume::resetEndUseSubcategory() { | |
| 905 | ✗ | getImpl<detail::FanVariableVolume_Impl>()->resetEndUseSubcategory(); | |
| 906 | ✗ | } | |
| 907 | |||
| 908 | ✗ | AirflowNetworkFan FanVariableVolume::getAirflowNetworkFan() { | |
| 909 | ✗ | return getImpl<detail::FanVariableVolume_Impl>()->getAirflowNetworkFan(); | |
| 910 | } | ||
| 911 | |||
| 912 | ✗ | boost::optional<AirflowNetworkFan> FanVariableVolume::airflowNetworkFan() const { | |
| 913 | ✗ | return getImpl<detail::FanVariableVolume_Impl>()->airflowNetworkFan(); | |
| 914 | } | ||
| 915 | |||
| 916 | ✗ | boost::optional<double> FanVariableVolume::autosizedMaximumFlowRate() const { | |
| 917 | ✗ | return getImpl<detail::FanVariableVolume_Impl>()->autosizedMaximumFlowRate(); | |
| 918 | } | ||
| 919 | |||
| 920 | 8 | FanSystemModel FanVariableVolume::convertToFanSystemModel() const { | |
| 921 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::FanVariableVolume_Impl>()->convertToFanSystemModel(); |
| 922 | } | ||
| 923 | |||
| 924 | /// @cond | ||
| 925 |
1/1✓ Branch 3 taken 50 times.
|
50 | FanVariableVolume::FanVariableVolume(std::shared_ptr<detail::FanVariableVolume_Impl> impl) : StraightComponent(std::move(impl)) {} |
| 926 | /// @endcond | ||
| 927 | |||
| 928 | } // namespace model | ||
| 929 | } // namespace openstudio | ||
| 930 |