src/model/FanComponentModel.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 "FanComponentModel.hpp" | ||
| 7 | #include "FanComponentModel_Impl.hpp" | ||
| 8 | |||
| 9 | #include "AirLoopHVAC.hpp" | ||
| 10 | #include "AirLoopHVAC_Impl.hpp" | ||
| 11 | #include "Node.hpp" | ||
| 12 | #include "Node_Impl.hpp" | ||
| 13 | #include "Schedule.hpp" | ||
| 14 | #include "Schedule_Impl.hpp" | ||
| 15 | #include "Model.hpp" | ||
| 16 | #include "Curve.hpp" | ||
| 17 | #include "Curve_Impl.hpp" | ||
| 18 | #include "SetpointManagerMixedAir.hpp" | ||
| 19 | |||
| 20 | #include "ScheduleTypeLimits.hpp" | ||
| 21 | #include "ScheduleTypeRegistry.hpp" | ||
| 22 | |||
| 23 | // Ctor | ||
| 24 | #include "CurveExponentialSkewNormal.hpp" | ||
| 25 | #include "CurveQuartic.hpp" | ||
| 26 | #include "CurveFanPressureRise.hpp" | ||
| 27 | #include "CurveRectangularHyperbola2.hpp" | ||
| 28 | #include "CurveSigmoid.hpp" | ||
| 29 | #include "CurveLinear.hpp" | ||
| 30 | #include "CurveRectangularHyperbola1.hpp" | ||
| 31 | #include "CurveExponentialDecay.hpp" | ||
| 32 | |||
| 33 | // containing HVAC Component | ||
| 34 | #include "AirLoopHVACUnitarySystem.hpp" | ||
| 35 | #include "AirLoopHVACUnitarySystem_Impl.hpp" | ||
| 36 | #include "AirTerminalSingleDuctParallelPIUReheat.hpp" | ||
| 37 | #include "AirTerminalSingleDuctParallelPIUReheat_Impl.hpp" | ||
| 38 | #include "AirTerminalSingleDuctSeriesPIUReheat.hpp" | ||
| 39 | #include "AirTerminalSingleDuctSeriesPIUReheat_Impl.hpp" | ||
| 40 | |||
| 41 | // containing ZoneHVAC Component | ||
| 42 | #include "ZoneHVACEvaporativeCoolerUnit.hpp" | ||
| 43 | #include "ZoneHVACEvaporativeCoolerUnit_Impl.hpp" | ||
| 44 | |||
| 45 | #include <utilities/idd/IddFactory.hxx> | ||
| 46 | #include <utilities/idd/IddEnums.hxx> | ||
| 47 | #include <utilities/idd/OS_Fan_ComponentModel_FieldEnums.hxx> | ||
| 48 | |||
| 49 | #include "../utilities/core/Assert.hpp" | ||
| 50 | #include "../utilities/data/DataEnums.hpp" | ||
| 51 | |||
| 52 | namespace openstudio { | ||
| 53 | namespace model { | ||
| 54 | |||
| 55 | namespace detail { | ||
| 56 | |||
| 57 | 13 | FanComponentModel_Impl::FanComponentModel_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 58 | 13 | : StraightComponent_Impl(idfObject, model, keepHandle) { | |
| 59 |
4/6✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 7 taken 13 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 13 times.
✗ Branch 13 not taken.
|
13 | OS_ASSERT(idfObject.iddObject().type() == FanComponentModel::iddObjectType()); |
| 60 | 13 | } | |
| 61 | |||
| 62 | ✗ | FanComponentModel_Impl::FanComponentModel_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle) | |
| 63 | ✗ | : StraightComponent_Impl(other, model, keepHandle) { | |
| 64 | ✗ | OS_ASSERT(other.iddObject().type() == FanComponentModel::iddObjectType()); | |
| 65 | ✗ | } | |
| 66 | |||
| 67 | 4 | FanComponentModel_Impl::FanComponentModel_Impl(const FanComponentModel_Impl& other, Model_Impl* model, bool keepHandle) | |
| 68 | 4 | : StraightComponent_Impl(other, model, keepHandle) {} | |
| 69 | |||
| 70 | ✗ | const std::vector<std::string>& FanComponentModel_Impl::outputVariableNames() const { | |
| 71 | |||
| 72 | static const std::vector<std::string> results{"Fan Electricity Rate", "Fan Rise in Air Temperature", "Fan Heat Gain to Air", | ||
| 73 | ✗ | "Fan Electricity Energy", "Fan Air Mass Flow Rate"}; | |
| 74 | ✗ | return results; | |
| 75 | ✗ | } | |
| 76 | |||
| 77 | 2 | IddObjectType FanComponentModel_Impl::iddObjectType() const { | |
| 78 | 2 | return FanComponentModel::iddObjectType(); | |
| 79 | } | ||
| 80 | |||
| 81 | ✗ | std::vector<ScheduleTypeKey> FanComponentModel_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 82 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 83 | ✗ | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 84 | ✗ | UnsignedVector::const_iterator b(fieldIndices.begin()); | |
| 85 | ✗ | UnsignedVector::const_iterator e(fieldIndices.end()); | |
| 86 | ✗ | if (std::find(b, e, OS_Fan_ComponentModelFields::AvailabilityScheduleName) != e) { | |
| 87 | ✗ | result.push_back(ScheduleTypeKey("FanComponentModel", "Availability")); | |
| 88 | } | ||
| 89 | ✗ | return result; | |
| 90 | ✗ | } | |
| 91 | |||
| 92 | 5 | Schedule FanComponentModel_Impl::availabilitySchedule() const { | |
| 93 | boost::optional<Schedule> value = | ||
| 94 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_Fan_ComponentModelFields::AvailabilityScheduleName); |
| 95 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
|
5 | if (!value) { |
| 96 | // it is an error if we get here, however we don't want to crash | ||
| 97 | // so we hook up to global always on schedule | ||
| 98 | ✗ | LOG(Error, "Required availability schedule not set, using 'Always On' schedule"); | |
| 99 | ✗ | value = this->model().alwaysOnDiscreteSchedule(); | |
| 100 | ✗ | OS_ASSERT(value); | |
| 101 | ✗ | const_cast<FanComponentModel_Impl*>(this)->setAvailabilitySchedule(*value); | |
| 102 | ✗ | value = getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_Fan_ComponentModelFields::AvailabilityScheduleName); | |
| 103 | } | ||
| 104 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 105 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
10 | return value.get(); |
| 106 | 5 | } | |
| 107 | |||
| 108 | 4 | boost::optional<double> FanComponentModel_Impl::maximumFlowRate() const { | |
| 109 | 4 | return getDouble(OS_Fan_ComponentModelFields::MaximumFlowRate, true); | |
| 110 | } | ||
| 111 | |||
| 112 | 6 | bool FanComponentModel_Impl::isMaximumFlowRateAutosized() const { | |
| 113 | 6 | bool result = false; | |
| 114 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<std::string> value = getString(OS_Fan_ComponentModelFields::MaximumFlowRate, true); |
| 115 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | if (value) { |
| 116 |
3/3✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
|
12 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 117 | } | ||
| 118 | 6 | return result; | |
| 119 | 6 | } | |
| 120 | |||
| 121 | 4 | boost::optional<double> FanComponentModel_Impl::minimumFlowRate() const { | |
| 122 | 4 | return getDouble(OS_Fan_ComponentModelFields::MinimumFlowRate, true); | |
| 123 | } | ||
| 124 | |||
| 125 | 6 | bool FanComponentModel_Impl::isMinimumFlowRateAutosized() const { | |
| 126 | 6 | bool result = false; | |
| 127 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<std::string> value = getString(OS_Fan_ComponentModelFields::MinimumFlowRate, true); |
| 128 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | if (value) { |
| 129 |
3/3✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
|
12 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 130 | } | ||
| 131 | 6 | return result; | |
| 132 | 6 | } | |
| 133 | |||
| 134 | 6 | double FanComponentModel_Impl::fanSizingFactor() const { | |
| 135 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_Fan_ComponentModelFields::FanSizingFactor, true); |
| 136 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 137 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 138 | } | ||
| 139 | |||
| 140 | 6 | double FanComponentModel_Impl::fanWheelDiameter() const { | |
| 141 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_Fan_ComponentModelFields::FanWheelDiameter, true); |
| 142 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 143 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 144 | } | ||
| 145 | |||
| 146 | 6 | double FanComponentModel_Impl::fanOutletArea() const { | |
| 147 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_Fan_ComponentModelFields::FanOutletArea, true); |
| 148 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 149 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 150 | } | ||
| 151 | |||
| 152 | 6 | double FanComponentModel_Impl::maximumFanStaticEfficiency() const { | |
| 153 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_Fan_ComponentModelFields::MaximumFanStaticEfficiency, true); |
| 154 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 155 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 156 | } | ||
| 157 | |||
| 158 | 6 | double FanComponentModel_Impl::eulerNumberatMaximumFanStaticEfficiency() const { | |
| 159 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_Fan_ComponentModelFields::EulerNumberatMaximumFanStaticEfficiency, true); |
| 160 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 161 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 162 | } | ||
| 163 | |||
| 164 | 6 | double FanComponentModel_Impl::maximumDimensionlessFanAirflow() const { | |
| 165 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_Fan_ComponentModelFields::MaximumDimensionlessFanAirflow, true); |
| 166 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 167 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 168 | } | ||
| 169 | |||
| 170 | 6 | boost::optional<double> FanComponentModel_Impl::motorFanPulleyRatio() const { | |
| 171 | 6 | return getDouble(OS_Fan_ComponentModelFields::MotorFanPulleyRatio, true); | |
| 172 | } | ||
| 173 | |||
| 174 | 6 | bool FanComponentModel_Impl::isMotorFanPulleyRatioAutosized() const { | |
| 175 | 6 | bool result = false; | |
| 176 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<std::string> value = getString(OS_Fan_ComponentModelFields::MotorFanPulleyRatio, true); |
| 177 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | if (value) { |
| 178 |
3/3✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
|
12 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 179 | } | ||
| 180 | 6 | return result; | |
| 181 | 6 | } | |
| 182 | |||
| 183 | 6 | boost::optional<double> FanComponentModel_Impl::beltMaximumTorque() const { | |
| 184 | 6 | return getDouble(OS_Fan_ComponentModelFields::BeltMaximumTorque, true); | |
| 185 | } | ||
| 186 | |||
| 187 | 6 | bool FanComponentModel_Impl::isBeltMaximumTorqueAutosized() const { | |
| 188 | 6 | bool result = false; | |
| 189 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<std::string> value = getString(OS_Fan_ComponentModelFields::BeltMaximumTorque, true); |
| 190 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | if (value) { |
| 191 |
3/3✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
|
12 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 192 | } | ||
| 193 | 6 | return result; | |
| 194 | 6 | } | |
| 195 | |||
| 196 | 6 | double FanComponentModel_Impl::beltSizingFactor() const { | |
| 197 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_Fan_ComponentModelFields::BeltSizingFactor, true); |
| 198 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 199 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 200 | } | ||
| 201 | |||
| 202 | 6 | double FanComponentModel_Impl::beltFractionalTorqueTransition() const { | |
| 203 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_Fan_ComponentModelFields::BeltFractionalTorqueTransition, true); |
| 204 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 205 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 206 | } | ||
| 207 | |||
| 208 | 6 | double FanComponentModel_Impl::motorMaximumSpeed() const { | |
| 209 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_Fan_ComponentModelFields::MotorMaximumSpeed, true); |
| 210 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 211 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 212 | } | ||
| 213 | |||
| 214 | 6 | boost::optional<double> FanComponentModel_Impl::maximumMotorOutputPower() const { | |
| 215 | 6 | return getDouble(OS_Fan_ComponentModelFields::MaximumMotorOutputPower, true); | |
| 216 | } | ||
| 217 | |||
| 218 | 6 | bool FanComponentModel_Impl::isMaximumMotorOutputPowerAutosized() const { | |
| 219 | 6 | bool result = false; | |
| 220 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<std::string> value = getString(OS_Fan_ComponentModelFields::MaximumMotorOutputPower, true); |
| 221 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | if (value) { |
| 222 |
3/3✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
|
12 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 223 | } | ||
| 224 | 6 | return result; | |
| 225 | 6 | } | |
| 226 | |||
| 227 | 6 | double FanComponentModel_Impl::motorSizingFactor() const { | |
| 228 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_Fan_ComponentModelFields::MotorSizingFactor, true); |
| 229 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 230 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 231 | } | ||
| 232 | |||
| 233 | 6 | double FanComponentModel_Impl::motorInAirstreamFraction() const { | |
| 234 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_Fan_ComponentModelFields::MotorInAirstreamFraction, true); |
| 235 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 236 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 237 | } | ||
| 238 | |||
| 239 | 6 | std::string FanComponentModel_Impl::vFDEfficiencyType() const { | |
| 240 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<std::string> value = getString(OS_Fan_ComponentModelFields::VFDEfficiencyType, true); |
| 241 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 242 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
12 | return value.get(); |
| 243 | 6 | } | |
| 244 | |||
| 245 | 6 | boost::optional<double> FanComponentModel_Impl::maximumVFDOutputPower() const { | |
| 246 | 6 | return getDouble(OS_Fan_ComponentModelFields::MaximumVFDOutputPower, true); | |
| 247 | } | ||
| 248 | |||
| 249 | 6 | bool FanComponentModel_Impl::isMaximumVFDOutputPowerAutosized() const { | |
| 250 | 6 | bool result = false; | |
| 251 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<std::string> value = getString(OS_Fan_ComponentModelFields::MaximumVFDOutputPower, true); |
| 252 |
1/2✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
|
6 | if (value) { |
| 253 |
3/3✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
|
12 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 254 | } | ||
| 255 | 6 | return result; | |
| 256 | 6 | } | |
| 257 | |||
| 258 | 6 | double FanComponentModel_Impl::vFDSizingFactor() const { | |
| 259 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_Fan_ComponentModelFields::VFDSizingFactor, true); |
| 260 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 261 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 262 | } | ||
| 263 | |||
| 264 | 7 | Curve FanComponentModel_Impl::fanPressureRiseCurve() const { | |
| 265 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<Curve> value = optionalFanPressureRiseCurve(); |
| 266 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
|
7 | if (!value) { |
| 267 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Fan Pressure Rise Curve attached."); | |
| 268 | } | ||
| 269 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
14 | return value.get(); |
| 270 | 7 | } | |
| 271 | |||
| 272 | 7 | Curve FanComponentModel_Impl::ductStaticPressureResetCurve() const { | |
| 273 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<Curve> value = optionalDuctStaticPressureResetCurve(); |
| 274 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
|
7 | if (!value) { |
| 275 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Duct Static Pressure Reset Curve attached."); | |
| 276 | } | ||
| 277 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
14 | return value.get(); |
| 278 | 7 | } | |
| 279 | |||
| 280 | 7 | Curve FanComponentModel_Impl::normalizedFanStaticEfficiencyCurveNonStallRegion() const { | |
| 281 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<Curve> value = optionalNormalizedFanStaticEfficiencyCurveNonStallRegion(); |
| 282 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
|
7 | if (!value) { |
| 283 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Normalized Fan Static Efficiency Curve Non Stall Region attached."); | |
| 284 | } | ||
| 285 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
14 | return value.get(); |
| 286 | 7 | } | |
| 287 | |||
| 288 | 7 | Curve FanComponentModel_Impl::normalizedFanStaticEfficiencyCurveStallRegion() const { | |
| 289 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<Curve> value = optionalNormalizedFanStaticEfficiencyCurveStallRegion(); |
| 290 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
|
7 | if (!value) { |
| 291 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Normalized Fan Static Efficiency Curve Stall Region attached."); | |
| 292 | } | ||
| 293 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
14 | return value.get(); |
| 294 | 7 | } | |
| 295 | |||
| 296 | 7 | Curve FanComponentModel_Impl::normalizedDimensionlessAirflowCurveNonStallRegion() const { | |
| 297 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<Curve> value = optionalNormalizedDimensionlessAirflowCurveNonStallRegion(); |
| 298 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
|
7 | if (!value) { |
| 299 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Normalized Dimensionless Airflow Curve Non Stall Region attached."); | |
| 300 | } | ||
| 301 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
14 | return value.get(); |
| 302 | 7 | } | |
| 303 | |||
| 304 | 7 | Curve FanComponentModel_Impl::normalizedDimensionlessAirflowCurveStallRegion() const { | |
| 305 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<Curve> value = optionalNormalizedDimensionlessAirflowCurveStallRegion(); |
| 306 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
|
7 | if (!value) { |
| 307 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Normalized Dimensionless Airflow Curve Stall Region attached."); | |
| 308 | } | ||
| 309 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
14 | return value.get(); |
| 310 | 7 | } | |
| 311 | |||
| 312 | 11 | boost::optional<Curve> FanComponentModel_Impl::maximumBeltEfficiencyCurve() const { | |
| 313 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_Fan_ComponentModelFields::MaximumBeltEfficiencyCurveName); |
| 314 | } | ||
| 315 | |||
| 316 | 11 | boost::optional<Curve> FanComponentModel_Impl::normalizedBeltEfficiencyCurveRegion1() const { | |
| 317 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_Fan_ComponentModelFields::NormalizedBeltEfficiencyCurveNameRegion1); |
| 318 | } | ||
| 319 | |||
| 320 | 11 | boost::optional<Curve> FanComponentModel_Impl::normalizedBeltEfficiencyCurveRegion2() const { | |
| 321 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_Fan_ComponentModelFields::NormalizedBeltEfficiencyCurveNameRegion2); |
| 322 | } | ||
| 323 | |||
| 324 | 11 | boost::optional<Curve> FanComponentModel_Impl::normalizedBeltEfficiencyCurveRegion3() const { | |
| 325 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_Fan_ComponentModelFields::NormalizedBeltEfficiencyCurveNameRegion3); |
| 326 | } | ||
| 327 | |||
| 328 | 11 | boost::optional<Curve> FanComponentModel_Impl::maximumMotorEfficiencyCurve() const { | |
| 329 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_Fan_ComponentModelFields::MaximumMotorEfficiencyCurveName); |
| 330 | } | ||
| 331 | |||
| 332 | 11 | boost::optional<Curve> FanComponentModel_Impl::normalizedMotorEfficiencyCurve() const { | |
| 333 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_Fan_ComponentModelFields::NormalizedMotorEfficiencyCurveName); |
| 334 | } | ||
| 335 | |||
| 336 | 11 | boost::optional<Curve> FanComponentModel_Impl::vFDEfficiencyCurve() const { | |
| 337 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_Fan_ComponentModelFields::VFDEfficiencyCurveName); |
| 338 | } | ||
| 339 | |||
| 340 | 4 | std::string FanComponentModel_Impl::endUseSubcategory() const { | |
| 341 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<std::string> value = getString(OS_Fan_ComponentModelFields::EndUseSubcategory, true); |
| 342 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 343 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | return value.get(); |
| 344 | 4 | } | |
| 345 | |||
| 346 | 50 | unsigned FanComponentModel_Impl::inletPort() const { | |
| 347 | 50 | return OS_Fan_ComponentModelFields::AirInletNodeName; | |
| 348 | } | ||
| 349 | |||
| 350 | 39 | unsigned FanComponentModel_Impl::outletPort() const { | |
| 351 | 39 | return OS_Fan_ComponentModelFields::AirOutletNodeName; | |
| 352 | } | ||
| 353 | |||
| 354 | 7 | bool FanComponentModel_Impl::addToNode(Node& node) { | |
| 355 |
1/1✓ Branch 1 taken 7 times.
|
7 | auto oaSystem = node.airLoopHVACOutdoorAirSystem(); |
| 356 |
1/1✓ Branch 1 taken 7 times.
|
7 | auto airLoop = node.airLoopHVAC(); |
| 357 | |||
| 358 |
19/24✓ Branch 1 taken 4 times.
✓ Branch 2 taken 3 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
✓ Branch 13 taken 1 time.
✓ Branch 14 taken 3 times.
✓ Branch 15 taken 1 time.
✓ Branch 16 taken 3 times.
✓ Branch 18 taken 1 time.
✓ Branch 21 taken 1 time.
✓ Branch 24 taken 1 time.
✓ Branch 27 taken 1 time.
✗ Branch 28 not taken.
✓ Branch 29 taken 1 time.
✓ Branch 30 taken 6 times.
✓ Branch 32 taken 4 times.
✓ Branch 33 taken 3 times.
✓ Branch 35 taken 4 times.
✓ Branch 36 taken 3 times.
✗ Branch 37 not taken.
✗ Branch 38 not taken.
✗ Branch 40 not taken.
✗ Branch 41 not taken.
|
23 | if ((airLoop && airLoop->supplyComponent(node.handle())) || (oaSystem && oaSystem->component(node.handle()))) { |
| 359 |
2/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 4 times.
✗ Branch 4 not taken.
|
4 | if (StraightComponent_Impl::addToNode(node)) { |
| 360 |
2/2✓ Branch 0 taken 3 times.
✓ Branch 1 taken 1 time.
|
4 | if (airLoop) { |
| 361 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | SetpointManagerMixedAir::updateFanInletOutletNodes(airLoop.get()); |
| 362 | } | ||
| 363 | 4 | return true; | |
| 364 | } | ||
| 365 | } | ||
| 366 | |||
| 367 | 3 | return false; | |
| 368 | 7 | } | |
| 369 | |||
| 370 | 1 | boost::optional<HVACComponent> FanComponentModel_Impl::containingHVACComponent() const { | |
| 371 |
1/1✓ Branch 1 taken 1 time.
|
1 | auto t_handle = handle(); |
| 372 | |||
| 373 | // AirLoopHVACUnitarySystem | ||
| 374 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | std::vector<AirLoopHVACUnitarySystem> airLoopHVACUnitarySystems = this->model().getConcreteModelObjects<AirLoopHVACUnitarySystem>(); |
| 375 | |||
| 376 |
1/2✓ Branch 5 taken 1 time.
✗ Branch 6 not taken.
|
1 | for (const auto& airLoopHVACUnitarySystem : airLoopHVACUnitarySystems) { |
| 377 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<HVACComponent> fan = airLoopHVACUnitarySystem.supplyFan()) { |
| 378 |
4/5✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 9 taken 1 time.
✗ Branch 10 not taken.
|
1 | if (fan->handle() == t_handle) { |
| 379 |
1/1✓ Branch 1 taken 1 time.
|
1 | return airLoopHVACUnitarySystem; |
| 380 | } | ||
| 381 | 1 | } | |
| 382 | } | ||
| 383 | |||
| 384 | ✗ | return boost::none; | |
| 385 | 1 | } | |
| 386 | |||
| 387 | ✗ | boost::optional<ZoneHVACComponent> FanComponentModel_Impl::containingZoneHVACComponent() const { | |
| 388 | |||
| 389 | ✗ | std::vector<ZoneHVACComponent> zoneHVACComponent = this->model().getModelObjects<ZoneHVACComponent>(); | |
| 390 | ✗ | for (const auto& elem : zoneHVACComponent) { | |
| 391 | ✗ | switch (elem.iddObject().type().value()) { | |
| 392 | ✗ | case openstudio::IddObjectType::OS_ZoneHVAC_EvaporativeCoolerUnit: { | |
| 393 | ✗ | auto component = elem.cast<ZoneHVACEvaporativeCoolerUnit>(); | |
| 394 | ✗ | if (component.supplyAirFan().handle() == this->handle()) { | |
| 395 | ✗ | return elem; | |
| 396 | } | ||
| 397 | ✗ | break; | |
| 398 | ✗ | } | |
| 399 | ✗ | default: { | |
| 400 | ✗ | break; | |
| 401 | } | ||
| 402 | } | ||
| 403 | } | ||
| 404 | ✗ | return boost::none; | |
| 405 | ✗ | } | |
| 406 | |||
| 407 | 17 | bool FanComponentModel_Impl::setAvailabilitySchedule(Schedule& schedule) { | |
| 408 |
3/3✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
✓ Branch 7 taken 17 times.
|
68 | bool result = setSchedule(OS_Fan_ComponentModelFields::AvailabilityScheduleName, "FanComponentModel", "Availability", schedule); |
| 409 | 17 | return result; | |
| 410 | } | ||
| 411 | |||
| 412 | 5 | bool FanComponentModel_Impl::setMaximumFlowRate(double maximumFlowRate) { | |
| 413 | 5 | bool result = setDouble(OS_Fan_ComponentModelFields::MaximumFlowRate, maximumFlowRate); | |
| 414 | 5 | return result; | |
| 415 | } | ||
| 416 | |||
| 417 | 15 | void FanComponentModel_Impl::autosizeMaximumFlowRate() { | |
| 418 |
2/2✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
|
30 | bool result = setString(OS_Fan_ComponentModelFields::MaximumFlowRate, "autosize"); |
| 419 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 15 times.
|
15 | OS_ASSERT(result); |
| 420 | 15 | } | |
| 421 | |||
| 422 | 6 | bool FanComponentModel_Impl::setMinimumFlowRate(double minimumFlowRate) { | |
| 423 | 6 | bool result = setDouble(OS_Fan_ComponentModelFields::MinimumFlowRate, minimumFlowRate); | |
| 424 | 6 | return result; | |
| 425 | } | ||
| 426 | |||
| 427 | 14 | void FanComponentModel_Impl::autosizeMinimumFlowRate() { | |
| 428 |
2/2✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
|
28 | bool result = setString(OS_Fan_ComponentModelFields::MinimumFlowRate, "autosize"); |
| 429 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
|
14 | OS_ASSERT(result); |
| 430 | 14 | } | |
| 431 | |||
| 432 | 19 | bool FanComponentModel_Impl::setFanSizingFactor(double fanSizingFactor) { | |
| 433 | 19 | bool result = setDouble(OS_Fan_ComponentModelFields::FanSizingFactor, fanSizingFactor); | |
| 434 | 19 | return result; | |
| 435 | } | ||
| 436 | |||
| 437 | 19 | bool FanComponentModel_Impl::setFanWheelDiameter(double fanWheelDiameter) { | |
| 438 | 19 | bool result = setDouble(OS_Fan_ComponentModelFields::FanWheelDiameter, fanWheelDiameter); | |
| 439 | 19 | return result; | |
| 440 | } | ||
| 441 | |||
| 442 | 19 | bool FanComponentModel_Impl::setFanOutletArea(double fanOutletArea) { | |
| 443 | 19 | bool result = setDouble(OS_Fan_ComponentModelFields::FanOutletArea, fanOutletArea); | |
| 444 | 19 | return result; | |
| 445 | } | ||
| 446 | |||
| 447 | 19 | bool FanComponentModel_Impl::setMaximumFanStaticEfficiency(double maximumFanStaticEfficiency) { | |
| 448 | 19 | bool result = setDouble(OS_Fan_ComponentModelFields::MaximumFanStaticEfficiency, maximumFanStaticEfficiency); | |
| 449 | 19 | return result; | |
| 450 | } | ||
| 451 | |||
| 452 | 19 | bool FanComponentModel_Impl::setEulerNumberatMaximumFanStaticEfficiency(double eulerNumberatMaximumFanStaticEfficiency) { | |
| 453 | 19 | bool result = setDouble(OS_Fan_ComponentModelFields::EulerNumberatMaximumFanStaticEfficiency, eulerNumberatMaximumFanStaticEfficiency); | |
| 454 | 19 | return result; | |
| 455 | } | ||
| 456 | |||
| 457 | 19 | bool FanComponentModel_Impl::setMaximumDimensionlessFanAirflow(double maximumDimensionlessFanAirflow) { | |
| 458 | 19 | bool result = setDouble(OS_Fan_ComponentModelFields::MaximumDimensionlessFanAirflow, maximumDimensionlessFanAirflow); | |
| 459 | 19 | return result; | |
| 460 | } | ||
| 461 | |||
| 462 | 5 | bool FanComponentModel_Impl::setMotorFanPulleyRatio(double motorFanPulleyRatio) { | |
| 463 | 5 | bool result = setDouble(OS_Fan_ComponentModelFields::MotorFanPulleyRatio, motorFanPulleyRatio); | |
| 464 | 5 | return result; | |
| 465 | } | ||
| 466 | |||
| 467 | 15 | void FanComponentModel_Impl::autosizeMotorFanPulleyRatio() { | |
| 468 |
2/2✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
|
30 | bool result = setString(OS_Fan_ComponentModelFields::MotorFanPulleyRatio, "autosize"); |
| 469 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 15 times.
|
15 | OS_ASSERT(result); |
| 470 | 15 | } | |
| 471 | |||
| 472 | 5 | bool FanComponentModel_Impl::setBeltMaximumTorque(double beltMaximumTorque) { | |
| 473 | 5 | bool result = setDouble(OS_Fan_ComponentModelFields::BeltMaximumTorque, beltMaximumTorque); | |
| 474 | 5 | return result; | |
| 475 | } | ||
| 476 | |||
| 477 | 15 | void FanComponentModel_Impl::autosizeBeltMaximumTorque() { | |
| 478 |
2/2✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
|
30 | bool result = setString(OS_Fan_ComponentModelFields::BeltMaximumTorque, "autosize"); |
| 479 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 15 times.
|
15 | OS_ASSERT(result); |
| 480 | 15 | } | |
| 481 | |||
| 482 | 19 | bool FanComponentModel_Impl::setBeltSizingFactor(double beltSizingFactor) { | |
| 483 | 19 | bool result = setDouble(OS_Fan_ComponentModelFields::BeltSizingFactor, beltSizingFactor); | |
| 484 | 19 | return result; | |
| 485 | } | ||
| 486 | |||
| 487 | 19 | bool FanComponentModel_Impl::setBeltFractionalTorqueTransition(double beltFractionalTorqueTransition) { | |
| 488 | 19 | bool result = setDouble(OS_Fan_ComponentModelFields::BeltFractionalTorqueTransition, beltFractionalTorqueTransition); | |
| 489 | 19 | return result; | |
| 490 | } | ||
| 491 | |||
| 492 | 19 | bool FanComponentModel_Impl::setMotorMaximumSpeed(double motorMaximumSpeed) { | |
| 493 | 19 | bool result = setDouble(OS_Fan_ComponentModelFields::MotorMaximumSpeed, motorMaximumSpeed); | |
| 494 | 19 | return result; | |
| 495 | } | ||
| 496 | |||
| 497 | 5 | bool FanComponentModel_Impl::setMaximumMotorOutputPower(double maximumMotorOutputPower) { | |
| 498 | 5 | bool result = setDouble(OS_Fan_ComponentModelFields::MaximumMotorOutputPower, maximumMotorOutputPower); | |
| 499 | 5 | return result; | |
| 500 | } | ||
| 501 | |||
| 502 | 15 | void FanComponentModel_Impl::autosizeMaximumMotorOutputPower() { | |
| 503 |
2/2✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
|
30 | bool result = setString(OS_Fan_ComponentModelFields::MaximumMotorOutputPower, "autosize"); |
| 504 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 15 times.
|
15 | OS_ASSERT(result); |
| 505 | 15 | } | |
| 506 | |||
| 507 | 19 | bool FanComponentModel_Impl::setMotorSizingFactor(double motorSizingFactor) { | |
| 508 | 19 | bool result = setDouble(OS_Fan_ComponentModelFields::MotorSizingFactor, motorSizingFactor); | |
| 509 | 19 | return result; | |
| 510 | } | ||
| 511 | |||
| 512 | 19 | bool FanComponentModel_Impl::setMotorInAirstreamFraction(double motorInAirstreamFraction) { | |
| 513 | 19 | bool result = setDouble(OS_Fan_ComponentModelFields::MotorInAirstreamFraction, motorInAirstreamFraction); | |
| 514 | 19 | return result; | |
| 515 | } | ||
| 516 | |||
| 517 | 19 | bool FanComponentModel_Impl::setVFDEfficiencyType(const std::string& vFDEfficiencyType) { | |
| 518 | 19 | bool result = setString(OS_Fan_ComponentModelFields::VFDEfficiencyType, vFDEfficiencyType); | |
| 519 | 19 | return result; | |
| 520 | } | ||
| 521 | |||
| 522 | 5 | bool FanComponentModel_Impl::setMaximumVFDOutputPower(double maximumVFDOutputPower) { | |
| 523 | 5 | bool result = setDouble(OS_Fan_ComponentModelFields::MaximumVFDOutputPower, maximumVFDOutputPower); | |
| 524 | 5 | return result; | |
| 525 | } | ||
| 526 | |||
| 527 | 15 | void FanComponentModel_Impl::autosizeMaximumVFDOutputPower() { | |
| 528 |
2/2✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
|
30 | bool result = setString(OS_Fan_ComponentModelFields::MaximumVFDOutputPower, "autosize"); |
| 529 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 15 times.
|
15 | OS_ASSERT(result); |
| 530 | 15 | } | |
| 531 | |||
| 532 | 19 | bool FanComponentModel_Impl::setVFDSizingFactor(double vFDSizingFactor) { | |
| 533 | 19 | bool result = setDouble(OS_Fan_ComponentModelFields::VFDSizingFactor, vFDSizingFactor); | |
| 534 | 19 | return result; | |
| 535 | } | ||
| 536 | |||
| 537 | 18 | bool FanComponentModel_Impl::setFanPressureRiseCurve(const Curve& bivariateFunctions) { | |
| 538 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
18 | bool result = setPointer(OS_Fan_ComponentModelFields::FanPressureRiseCurveName, bivariateFunctions.handle()); |
| 539 | 18 | return result; | |
| 540 | } | ||
| 541 | |||
| 542 | 18 | bool FanComponentModel_Impl::setDuctStaticPressureResetCurve(const Curve& univariateFunctions) { | |
| 543 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
18 | bool result = setPointer(OS_Fan_ComponentModelFields::DuctStaticPressureResetCurveName, univariateFunctions.handle()); |
| 544 | 18 | return result; | |
| 545 | } | ||
| 546 | |||
| 547 | 18 | bool FanComponentModel_Impl::setNormalizedFanStaticEfficiencyCurveNonStallRegion(const Curve& univariateFunctions) { | |
| 548 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
18 | bool result = setPointer(OS_Fan_ComponentModelFields::NormalizedFanStaticEfficiencyCurveNameNonStallRegion, univariateFunctions.handle()); |
| 549 | 18 | return result; | |
| 550 | } | ||
| 551 | |||
| 552 | 18 | bool FanComponentModel_Impl::setNormalizedFanStaticEfficiencyCurveStallRegion(const Curve& univariateFunctions) { | |
| 553 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
18 | bool result = setPointer(OS_Fan_ComponentModelFields::NormalizedFanStaticEfficiencyCurveNameStallRegion, univariateFunctions.handle()); |
| 554 | 18 | return result; | |
| 555 | } | ||
| 556 | |||
| 557 | 18 | bool FanComponentModel_Impl::setNormalizedDimensionlessAirflowCurveNonStallRegion(const Curve& univariateFunctions) { | |
| 558 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
18 | bool result = setPointer(OS_Fan_ComponentModelFields::NormalizedDimensionlessAirflowCurveNameNonStallRegion, univariateFunctions.handle()); |
| 559 | 18 | return result; | |
| 560 | } | ||
| 561 | |||
| 562 | 18 | bool FanComponentModel_Impl::setNormalizedDimensionlessAirflowCurveStallRegion(const Curve& univariateFunctions) { | |
| 563 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
18 | bool result = setPointer(OS_Fan_ComponentModelFields::NormalizedDimensionlessAirflowCurveNameStallRegion, univariateFunctions.handle()); |
| 564 | 18 | return result; | |
| 565 | } | ||
| 566 | |||
| 567 | 7 | bool FanComponentModel_Impl::setMaximumBeltEfficiencyCurve(const Curve& univariateFunctions) { | |
| 568 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | bool result = setPointer(OS_Fan_ComponentModelFields::MaximumBeltEfficiencyCurveName, univariateFunctions.handle()); |
| 569 | 7 | return result; | |
| 570 | } | ||
| 571 | |||
| 572 | ✗ | void FanComponentModel_Impl::resetMaximumBeltEfficiencyCurve() { | |
| 573 | ✗ | bool result = setString(OS_Fan_ComponentModelFields::MaximumBeltEfficiencyCurveName, ""); | |
| 574 | ✗ | OS_ASSERT(result); | |
| 575 | ✗ | } | |
| 576 | |||
| 577 | 7 | bool FanComponentModel_Impl::setNormalizedBeltEfficiencyCurveRegion1(const Curve& univariateFunctions) { | |
| 578 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | bool result = setPointer(OS_Fan_ComponentModelFields::NormalizedBeltEfficiencyCurveNameRegion1, univariateFunctions.handle()); |
| 579 | 7 | return result; | |
| 580 | } | ||
| 581 | |||
| 582 | ✗ | void FanComponentModel_Impl::resetNormalizedBeltEfficiencyCurveRegion1() { | |
| 583 | ✗ | bool result = setString(OS_Fan_ComponentModelFields::NormalizedBeltEfficiencyCurveNameRegion1, ""); | |
| 584 | ✗ | OS_ASSERT(result); | |
| 585 | ✗ | } | |
| 586 | |||
| 587 | 7 | bool FanComponentModel_Impl::setNormalizedBeltEfficiencyCurveRegion2(const Curve& univariateFunctions) { | |
| 588 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | bool result = setPointer(OS_Fan_ComponentModelFields::NormalizedBeltEfficiencyCurveNameRegion2, univariateFunctions.handle()); |
| 589 | 7 | return result; | |
| 590 | } | ||
| 591 | |||
| 592 | ✗ | void FanComponentModel_Impl::resetNormalizedBeltEfficiencyCurveRegion2() { | |
| 593 | ✗ | bool result = setString(OS_Fan_ComponentModelFields::NormalizedBeltEfficiencyCurveNameRegion2, ""); | |
| 594 | ✗ | OS_ASSERT(result); | |
| 595 | ✗ | } | |
| 596 | |||
| 597 | 7 | bool FanComponentModel_Impl::setNormalizedBeltEfficiencyCurveRegion3(const Curve& univariateFunctions) { | |
| 598 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | bool result = setPointer(OS_Fan_ComponentModelFields::NormalizedBeltEfficiencyCurveNameRegion3, univariateFunctions.handle()); |
| 599 | 7 | return result; | |
| 600 | } | ||
| 601 | |||
| 602 | ✗ | void FanComponentModel_Impl::resetNormalizedBeltEfficiencyCurveRegion3() { | |
| 603 | ✗ | bool result = setString(OS_Fan_ComponentModelFields::NormalizedBeltEfficiencyCurveNameRegion3, ""); | |
| 604 | ✗ | OS_ASSERT(result); | |
| 605 | ✗ | } | |
| 606 | |||
| 607 | 7 | bool FanComponentModel_Impl::setMaximumMotorEfficiencyCurve(const Curve& univariateFunctions) { | |
| 608 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | bool result = setPointer(OS_Fan_ComponentModelFields::MaximumMotorEfficiencyCurveName, univariateFunctions.handle()); |
| 609 | 7 | return result; | |
| 610 | } | ||
| 611 | |||
| 612 | ✗ | void FanComponentModel_Impl::resetMaximumMotorEfficiencyCurve() { | |
| 613 | ✗ | bool result = setString(OS_Fan_ComponentModelFields::MaximumMotorEfficiencyCurveName, ""); | |
| 614 | ✗ | OS_ASSERT(result); | |
| 615 | ✗ | } | |
| 616 | |||
| 617 | 7 | bool FanComponentModel_Impl::setNormalizedMotorEfficiencyCurve(const Curve& univariateFunctions) { | |
| 618 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | bool result = setPointer(OS_Fan_ComponentModelFields::NormalizedMotorEfficiencyCurveName, univariateFunctions.handle()); |
| 619 | 7 | return result; | |
| 620 | } | ||
| 621 | |||
| 622 | ✗ | void FanComponentModel_Impl::resetNormalizedMotorEfficiencyCurve() { | |
| 623 | ✗ | bool result = setString(OS_Fan_ComponentModelFields::NormalizedMotorEfficiencyCurveName, ""); | |
| 624 | ✗ | OS_ASSERT(result); | |
| 625 | ✗ | } | |
| 626 | |||
| 627 | 7 | bool FanComponentModel_Impl::setVFDEfficiencyCurve(const Curve& univariateFunctions) { | |
| 628 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | bool result = setPointer(OS_Fan_ComponentModelFields::VFDEfficiencyCurveName, univariateFunctions.handle()); |
| 629 | 7 | return result; | |
| 630 | } | ||
| 631 | |||
| 632 | ✗ | void FanComponentModel_Impl::resetVFDEfficiencyCurve() { | |
| 633 | ✗ | bool result = setString(OS_Fan_ComponentModelFields::VFDEfficiencyCurveName, ""); | |
| 634 | ✗ | OS_ASSERT(result); | |
| 635 | ✗ | } | |
| 636 | |||
| 637 | 15 | bool FanComponentModel_Impl::setEndUseSubcategory(const std::string& endUseSubcategory) { | |
| 638 | 15 | bool result = setString(OS_Fan_ComponentModelFields::EndUseSubcategory, endUseSubcategory); | |
| 639 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 15 times.
|
15 | OS_ASSERT(result); |
| 640 | 15 | return result; | |
| 641 | } | ||
| 642 | |||
| 643 | ✗ | boost::optional<double> FanComponentModel_Impl::autosizedMaximumFlowRate() { | |
| 644 | ✗ | return getAutosizedValue("Design Size Maximum Flow Rate", "m3/s"); | |
| 645 | } | ||
| 646 | |||
| 647 | ✗ | boost::optional<double> FanComponentModel_Impl::autosizedMinimumFlowRate() { | |
| 648 | // TODO: SQL doesn't contain it really but if it did, that'd be the name | ||
| 649 | // If includes "Design Size Maximum Flow Rate and "Design Fan Airflow" only | ||
| 650 | ✗ | return getAutosizedValue("Design Size Minimum Flow Rate", "m3/s"); | |
| 651 | } | ||
| 652 | |||
| 653 | ✗ | boost::optional<double> FanComponentModel_Impl::autosizedMotorFanPulleyRatio() { | |
| 654 | ✗ | return getAutosizedValue("Drive Ratio", ""); | |
| 655 | } | ||
| 656 | |||
| 657 | ✗ | boost::optional<double> FanComponentModel_Impl::autosizedBeltMaximumTorque() { | |
| 658 | ✗ | return getAutosizedValue("Design Belt Output Torque", "Nm"); | |
| 659 | } | ||
| 660 | |||
| 661 | ✗ | boost::optional<double> FanComponentModel_Impl::autosizedMaximumMotorOutputPower() { | |
| 662 | ✗ | return getAutosizedValue("Design Motor Output Power", "W"); | |
| 663 | } | ||
| 664 | |||
| 665 | ✗ | boost::optional<double> FanComponentModel_Impl::autosizedMaximumVFDOutputPower() { | |
| 666 | ✗ | return getAutosizedValue("Design VFD Output Power", "W"); | |
| 667 | } | ||
| 668 | |||
| 669 | ✗ | void FanComponentModel_Impl::autosize() { | |
| 670 | ✗ | autosizeMaximumFlowRate(); | |
| 671 | ✗ | autosizeMinimumFlowRate(); | |
| 672 | ✗ | autosizeMotorFanPulleyRatio(); | |
| 673 | ✗ | autosizeBeltMaximumTorque(); | |
| 674 | ✗ | autosizeMaximumMotorOutputPower(); | |
| 675 | ✗ | autosizeMaximumVFDOutputPower(); | |
| 676 | ✗ | } | |
| 677 | |||
| 678 | ✗ | void FanComponentModel_Impl::applySizingValues() { | |
| 679 | ✗ | boost::optional<double> val; | |
| 680 | |||
| 681 | ✗ | val = autosizedMaximumFlowRate(); | |
| 682 | ✗ | if (val) { | |
| 683 | ✗ | setMaximumFlowRate(val.get()); | |
| 684 | } | ||
| 685 | |||
| 686 | ✗ | val = autosizedMinimumFlowRate(); | |
| 687 | ✗ | if (val) { | |
| 688 | ✗ | setMinimumFlowRate(val.get()); | |
| 689 | } | ||
| 690 | |||
| 691 | ✗ | val = autosizedMotorFanPulleyRatio(); | |
| 692 | ✗ | if (val) { | |
| 693 | ✗ | setMotorFanPulleyRatio(val.get()); | |
| 694 | } | ||
| 695 | |||
| 696 | ✗ | val = autosizedBeltMaximumTorque(); | |
| 697 | ✗ | if (val) { | |
| 698 | ✗ | setBeltMaximumTorque(val.get()); | |
| 699 | } | ||
| 700 | |||
| 701 | ✗ | val = autosizedMaximumMotorOutputPower(); | |
| 702 | ✗ | if (val) { | |
| 703 | ✗ | setMaximumMotorOutputPower(val.get()); | |
| 704 | } | ||
| 705 | |||
| 706 | ✗ | val = autosizedMaximumVFDOutputPower(); | |
| 707 | ✗ | if (val) { | |
| 708 | ✗ | setMaximumVFDOutputPower(val.get()); | |
| 709 | } | ||
| 710 | ✗ | } | |
| 711 | |||
| 712 | 7 | boost::optional<Curve> FanComponentModel_Impl::optionalFanPressureRiseCurve() const { | |
| 713 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_Fan_ComponentModelFields::FanPressureRiseCurveName); |
| 714 | } | ||
| 715 | |||
| 716 | 7 | boost::optional<Curve> FanComponentModel_Impl::optionalDuctStaticPressureResetCurve() const { | |
| 717 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_Fan_ComponentModelFields::DuctStaticPressureResetCurveName); |
| 718 | } | ||
| 719 | |||
| 720 | 7 | boost::optional<Curve> FanComponentModel_Impl::optionalNormalizedFanStaticEfficiencyCurveNonStallRegion() const { | |
| 721 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_Fan_ComponentModelFields::NormalizedFanStaticEfficiencyCurveNameNonStallRegion); |
| 722 | } | ||
| 723 | |||
| 724 | 7 | boost::optional<Curve> FanComponentModel_Impl::optionalNormalizedFanStaticEfficiencyCurveStallRegion() const { | |
| 725 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_Fan_ComponentModelFields::NormalizedFanStaticEfficiencyCurveNameStallRegion); |
| 726 | } | ||
| 727 | |||
| 728 | 7 | boost::optional<Curve> FanComponentModel_Impl::optionalNormalizedDimensionlessAirflowCurveNonStallRegion() const { | |
| 729 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_Fan_ComponentModelFields::NormalizedDimensionlessAirflowCurveNameNonStallRegion); |
| 730 | } | ||
| 731 | |||
| 732 | 7 | boost::optional<Curve> FanComponentModel_Impl::optionalNormalizedDimensionlessAirflowCurveStallRegion() const { | |
| 733 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_Fan_ComponentModelFields::NormalizedDimensionlessAirflowCurveNameStallRegion); |
| 734 | } | ||
| 735 | |||
| 736 | ✗ | ComponentType FanComponentModel_Impl::componentType() const { | |
| 737 | ✗ | return ComponentType::None; | |
| 738 | } | ||
| 739 | |||
| 740 | ✗ | std::vector<FuelType> FanComponentModel_Impl::coolingFuelTypes() const { | |
| 741 | ✗ | return {}; | |
| 742 | } | ||
| 743 | |||
| 744 | ✗ | std::vector<FuelType> FanComponentModel_Impl::heatingFuelTypes() const { | |
| 745 | ✗ | return {}; | |
| 746 | } | ||
| 747 | |||
| 748 | ✗ | std::vector<AppGFuelType> FanComponentModel_Impl::appGHeatingFuelTypes() const { | |
| 749 | ✗ | return {}; | |
| 750 | } | ||
| 751 | |||
| 752 | } // namespace detail | ||
| 753 | |||
| 754 | 2 | bool FanComponentModel::assignDefaultOptionalCurves() { | |
| 755 | |||
| 756 |
1/1✓ Branch 1 taken 2 times.
|
2 | Model model = this->model(); |
| 757 | |||
| 758 |
1/1✓ Branch 1 taken 2 times.
|
2 | CurveQuartic beltMaxEffMedium(model); |
| 759 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | beltMaxEffMedium.setName("BeltMaxEffMedium"); |
| 760 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltMaxEffMedium.setCoefficient1Constant(-0.09504); |
| 761 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltMaxEffMedium.setCoefficient2x(0.03415); |
| 762 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltMaxEffMedium.setCoefficient3xPOW2(-0.008897); |
| 763 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltMaxEffMedium.setCoefficient4xPOW3(0.001159); |
| 764 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltMaxEffMedium.setCoefficient5xPOW4(-6.132e-05); |
| 765 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltMaxEffMedium.setMinimumValueofx(-1.2); |
| 766 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltMaxEffMedium.setMaximumValueofx(6.2); |
| 767 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltMaxEffMedium.setMinimumCurveOutput(-4.6); |
| 768 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltMaxEffMedium.setMaximumCurveOutput(0.0); |
| 769 | // beltMaxEffMedium.setInputUnitTypeforX(""); | ||
| 770 | // beltMaxEffMedium.setOutputUnitType(""); | ||
| 771 |
1/1✓ Branch 1 taken 2 times.
|
2 | bool ok = setMaximumBeltEfficiencyCurve(beltMaxEffMedium); |
| 772 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
|
2 | OS_ASSERT(ok); |
| 773 | |||
| 774 |
1/1✓ Branch 1 taken 2 times.
|
2 | CurveRectangularHyperbola2 beltPartLoadRegion1(model); |
| 775 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | beltPartLoadRegion1.setName("BeltPartLoadRegion1"); |
| 776 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltPartLoadRegion1.setCoefficient1C1(0.920797); |
| 777 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltPartLoadRegion1.setCoefficient2C2(0.0262686); |
| 778 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltPartLoadRegion1.setCoefficient3C3(0.151594); |
| 779 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltPartLoadRegion1.setMinimumValueofx(0.0); |
| 780 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltPartLoadRegion1.setMaximumValueofx(1.0); |
| 781 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltPartLoadRegion1.setMinimumCurveOutput(0.01); |
| 782 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltPartLoadRegion1.setMaximumCurveOutput(1.0); |
| 783 | // beltPartLoadRegion1.setInputUnitTypeforx(""); | ||
| 784 | // beltPartLoadRegion1.setOutputUnitType(""); | ||
| 785 |
1/1✓ Branch 1 taken 2 times.
|
2 | ok = setNormalizedBeltEfficiencyCurveRegion1(beltPartLoadRegion1); |
| 786 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
|
2 | OS_ASSERT(ok); |
| 787 | |||
| 788 |
1/1✓ Branch 1 taken 2 times.
|
2 | CurveExponentialDecay beltPartLoadRegion2(model); |
| 789 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | beltPartLoadRegion2.setName("BeltPartLoadRegion2"); |
| 790 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltPartLoadRegion2.setCoefficient1C1(1.011965); |
| 791 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltPartLoadRegion2.setCoefficient2C2(-0.339038); |
| 792 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltPartLoadRegion2.setCoefficient3C3(-3.43626); |
| 793 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltPartLoadRegion2.setMinimumValueofx(0.0); |
| 794 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltPartLoadRegion2.setMaximumValueofx(1.0); |
| 795 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltPartLoadRegion2.setMinimumCurveOutput(0.01); |
| 796 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltPartLoadRegion2.setMaximumCurveOutput(1.0); |
| 797 | // beltPartLoadRegion2.setInputUnitTypeforx(""); | ||
| 798 | // beltPartLoadRegion2.setOutputUnitType(""); | ||
| 799 |
1/1✓ Branch 1 taken 2 times.
|
2 | ok = setNormalizedBeltEfficiencyCurveRegion2(beltPartLoadRegion2); |
| 800 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
|
2 | OS_ASSERT(ok); |
| 801 | |||
| 802 |
1/1✓ Branch 1 taken 2 times.
|
2 | CurveRectangularHyperbola2 beltPartLoadRegion3(model); |
| 803 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | beltPartLoadRegion3.setName("BeltPartLoadRegion3"); |
| 804 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltPartLoadRegion3.setCoefficient1C1(1.037778); |
| 805 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltPartLoadRegion3.setCoefficient2C2(0.0103068); |
| 806 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltPartLoadRegion3.setCoefficient3C3(-0.0268146); |
| 807 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltPartLoadRegion3.setMinimumValueofx(0.0); |
| 808 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltPartLoadRegion3.setMaximumValueofx(1.0); |
| 809 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltPartLoadRegion3.setMinimumCurveOutput(0.01); |
| 810 |
1/1✓ Branch 1 taken 2 times.
|
2 | beltPartLoadRegion3.setMaximumCurveOutput(1.0); |
| 811 | // beltPartLoadRegion3.setInputUnitTypeforx(""); | ||
| 812 | // beltPartLoadRegion3.setOutputUnitType(""); | ||
| 813 |
1/1✓ Branch 1 taken 2 times.
|
2 | ok = setNormalizedBeltEfficiencyCurveRegion3(beltPartLoadRegion3); |
| 814 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
|
2 | OS_ASSERT(ok); |
| 815 | |||
| 816 |
1/1✓ Branch 1 taken 2 times.
|
2 | CurveRectangularHyperbola1 motorMaxEffAvg(model); |
| 817 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | motorMaxEffAvg.setName("MotorMaxEffAvg"); |
| 818 |
1/1✓ Branch 1 taken 2 times.
|
2 | motorMaxEffAvg.setCoefficient1C1(0.29228); |
| 819 |
1/1✓ Branch 1 taken 2 times.
|
2 | motorMaxEffAvg.setCoefficient2C2(3.368739); |
| 820 |
1/1✓ Branch 1 taken 2 times.
|
2 | motorMaxEffAvg.setCoefficient3C3(0.762471); |
| 821 |
1/1✓ Branch 1 taken 2 times.
|
2 | motorMaxEffAvg.setMinimumValueofx(0.0); |
| 822 |
1/1✓ Branch 1 taken 2 times.
|
2 | motorMaxEffAvg.setMaximumValueofx(7.6); |
| 823 |
1/1✓ Branch 1 taken 2 times.
|
2 | motorMaxEffAvg.setMinimumCurveOutput(0.01); |
| 824 |
1/1✓ Branch 1 taken 2 times.
|
2 | motorMaxEffAvg.setMaximumCurveOutput(1.0); |
| 825 | // motorMaxEffAvg.setInputUnitTypeforx(""); | ||
| 826 | // motorMaxEffAvg.setOutputUnitType(""); | ||
| 827 |
1/1✓ Branch 1 taken 2 times.
|
2 | ok = setMaximumMotorEfficiencyCurve(motorMaxEffAvg); |
| 828 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
|
2 | OS_ASSERT(ok); |
| 829 | |||
| 830 |
1/1✓ Branch 1 taken 2 times.
|
2 | CurveRectangularHyperbola2 motorPartLoad(model); |
| 831 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | motorPartLoad.setName("MotorPartLoad"); |
| 832 |
1/1✓ Branch 1 taken 2 times.
|
2 | motorPartLoad.setCoefficient1C1(1.137209); |
| 833 |
1/1✓ Branch 1 taken 2 times.
|
2 | motorPartLoad.setCoefficient2C2(0.0502359); |
| 834 |
1/1✓ Branch 1 taken 2 times.
|
2 | motorPartLoad.setCoefficient3C3(-0.0891503); |
| 835 |
1/1✓ Branch 1 taken 2 times.
|
2 | motorPartLoad.setMinimumValueofx(0.0); |
| 836 |
1/1✓ Branch 1 taken 2 times.
|
2 | motorPartLoad.setMaximumValueofx(1.0); |
| 837 |
1/1✓ Branch 1 taken 2 times.
|
2 | motorPartLoad.setMinimumCurveOutput(0.01); |
| 838 |
1/1✓ Branch 1 taken 2 times.
|
2 | motorPartLoad.setMaximumCurveOutput(1.0); |
| 839 | // motorPartLoad.setInputUnitTypeforx(""); | ||
| 840 | // motorPartLoad.setOutputUnitType(""); | ||
| 841 |
1/1✓ Branch 1 taken 2 times.
|
2 | ok = setNormalizedMotorEfficiencyCurve(motorPartLoad); |
| 842 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
|
2 | OS_ASSERT(ok); |
| 843 | |||
| 844 |
1/1✓ Branch 1 taken 2 times.
|
2 | CurveRectangularHyperbola2 vFDPartLoad(model); |
| 845 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | vFDPartLoad.setName("VFDPartLoad"); |
| 846 |
1/1✓ Branch 1 taken 2 times.
|
2 | vFDPartLoad.setCoefficient1C1(0.987405); |
| 847 |
1/1✓ Branch 1 taken 2 times.
|
2 | vFDPartLoad.setCoefficient2C2(0.0155361); |
| 848 |
1/1✓ Branch 1 taken 2 times.
|
2 | vFDPartLoad.setCoefficient3C3(-0.0059365); |
| 849 |
1/1✓ Branch 1 taken 2 times.
|
2 | vFDPartLoad.setMinimumValueofx(0.0); |
| 850 |
1/1✓ Branch 1 taken 2 times.
|
2 | vFDPartLoad.setMaximumValueofx(1.0); |
| 851 |
1/1✓ Branch 1 taken 2 times.
|
2 | vFDPartLoad.setMinimumCurveOutput(0.01); |
| 852 |
1/1✓ Branch 1 taken 2 times.
|
2 | vFDPartLoad.setMaximumCurveOutput(1.0); |
| 853 | // vFDPartLoad.setInputUnitTypeforx(""); | ||
| 854 | // vFDPartLoad.setOutputUnitType(""); | ||
| 855 |
1/1✓ Branch 1 taken 2 times.
|
2 | ok = setVFDEfficiencyCurve(vFDPartLoad); |
| 856 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
|
2 | OS_ASSERT(ok); |
| 857 | |||
| 858 | 2 | return true; | |
| 859 | 2 | } | |
| 860 | |||
| 861 | 12 | FanComponentModel::FanComponentModel(const Model& model) : StraightComponent(FanComponentModel::iddObjectType(), model) { | |
| 862 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 12 times.
✗ Branch 5 not taken.
|
12 | OS_ASSERT(getImpl<detail::FanComponentModel_Impl>()); |
| 863 | |||
| 864 | // Appropriately handle the following required object-list fields. | ||
| 865 | // OS_Fan_ComponentModelFields::AirInletNodeName | ||
| 866 | // OS_Fan_ComponentModelFields::AirOutletNodeName | ||
| 867 | // OS_Fan_ComponentModelFields::AvailabilityScheduleName | ||
| 868 | // OS_Fan_ComponentModelFields::FanPressureRiseCurveName | ||
| 869 | // OS_Fan_ComponentModelFields::DuctStaticPressureResetCurveName | ||
| 870 | // OS_Fan_ComponentModelFields::NormalizedFanStaticEfficiencyCurveNameNonStallRegion | ||
| 871 | // OS_Fan_ComponentModelFields::NormalizedFanStaticEfficiencyCurveNameStallRegion | ||
| 872 | // OS_Fan_ComponentModelFields::NormalizedDimensionlessAirflowCurveNameNonStallRegion | ||
| 873 | // OS_Fan_ComponentModelFields::NormalizedDimensionlessAirflowCurveNameStallRegion | ||
| 874 | 12 | bool ok = true; | |
| 875 | |||
| 876 | // ok = setAirInletNode(); | ||
| 877 | // ok = setAirOutletNode(); | ||
| 878 | |||
| 879 |
1/1✓ Branch 1 taken 12 times.
|
12 | auto availabilitySchedule = model.alwaysOnDiscreteSchedule(); |
| 880 |
1/1✓ Branch 1 taken 12 times.
|
12 | ok = setAvailabilitySchedule(availabilitySchedule); |
| 881 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
|
12 | OS_ASSERT(ok); |
| 882 | |||
| 883 | // E+ IDD default | ||
| 884 |
1/1✓ Branch 1 taken 12 times.
|
12 | autosizeMaximumFlowRate(); |
| 885 |
1/1✓ Branch 1 taken 12 times.
|
12 | autosizeMinimumFlowRate(); |
| 886 |
1/1✓ Branch 1 taken 12 times.
|
12 | ok = setFanSizingFactor(1.0); |
| 887 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
|
12 | OS_ASSERT(ok); |
| 888 | // this has an IDD default of 1.0, but it's autosizable | ||
| 889 | //ok = setMotorFanPulleyRatio(1.0); | ||
| 890 | // OS_ASSERT(ok); | ||
| 891 |
1/1✓ Branch 1 taken 12 times.
|
12 | autosizeMotorFanPulleyRatio(); |
| 892 | |||
| 893 |
1/1✓ Branch 1 taken 12 times.
|
12 | ok = setBeltSizingFactor(1.0); |
| 894 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
|
12 | OS_ASSERT(ok); |
| 895 |
1/1✓ Branch 1 taken 12 times.
|
12 | ok = setBeltFractionalTorqueTransition(0.167); |
| 896 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
|
12 | OS_ASSERT(ok); |
| 897 |
1/1✓ Branch 1 taken 12 times.
|
12 | ok = setMotorSizingFactor(1.0); |
| 898 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
|
12 | OS_ASSERT(ok); |
| 899 |
1/1✓ Branch 1 taken 12 times.
|
12 | ok = setMotorInAirstreamFraction(1.0); |
| 900 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
|
12 | OS_ASSERT(ok); |
| 901 |
1/1✓ Branch 1 taken 12 times.
|
12 | ok = setVFDSizingFactor(1.0); |
| 902 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
|
12 | OS_ASSERT(ok); |
| 903 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
12 | ok = setEndUseSubcategory("General"); |
| 904 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
|
12 | OS_ASSERT(ok); |
| 905 | |||
| 906 | // Default from E+ example file: EnergyPlus/testfiles/5ZoneWarmestVFD_FCMAuto.idf, v9.4.0 | ||
| 907 |
1/1✓ Branch 1 taken 12 times.
|
12 | ok = setFanWheelDiameter(0.3048); |
| 908 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
|
12 | OS_ASSERT(ok); |
| 909 |
1/1✓ Branch 1 taken 12 times.
|
12 | ok = setFanOutletArea(0.0873288576); |
| 910 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
|
12 | OS_ASSERT(ok); |
| 911 |
1/1✓ Branch 1 taken 12 times.
|
12 | ok = setMaximumFanStaticEfficiency(0.514); |
| 912 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
|
12 | OS_ASSERT(ok); |
| 913 |
1/1✓ Branch 1 taken 12 times.
|
12 | ok = setEulerNumberatMaximumFanStaticEfficiency(9.76); |
| 914 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
|
12 | OS_ASSERT(ok); |
| 915 |
1/1✓ Branch 1 taken 12 times.
|
12 | ok = setMaximumDimensionlessFanAirflow(0.160331811647483); |
| 916 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
|
12 | OS_ASSERT(ok); |
| 917 | |||
| 918 |
1/1✓ Branch 1 taken 12 times.
|
12 | autosizeBeltMaximumTorque(); |
| 919 | |||
| 920 |
1/1✓ Branch 1 taken 12 times.
|
12 | ok = setMotorMaximumSpeed(1800.0); |
| 921 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
|
12 | OS_ASSERT(ok); |
| 922 | |||
| 923 |
1/1✓ Branch 1 taken 12 times.
|
12 | autosizeMaximumMotorOutputPower(); |
| 924 | |||
| 925 |
1/1✓ Branch 1 taken 12 times.
|
12 | autosizeMaximumVFDOutputPower(); |
| 926 | |||
| 927 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
12 | setVFDEfficiencyType("Power"); |
| 928 | |||
| 929 | // Required Curves | ||
| 930 |
1/1✓ Branch 1 taken 12 times.
|
12 | CurveFanPressureRise vSDExample(model); |
| 931 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
12 | vSDExample.setName("VSD Example"); |
| 932 |
1/1✓ Branch 1 taken 12 times.
|
12 | vSDExample.setCoefficient1C1(1446.75833497653); |
| 933 |
1/1✓ Branch 1 taken 12 times.
|
12 | vSDExample.setCoefficient2C2(0.0); |
| 934 |
1/1✓ Branch 1 taken 12 times.
|
12 | vSDExample.setCoefficient3C3(0.0); |
| 935 |
1/1✓ Branch 1 taken 12 times.
|
12 | vSDExample.setCoefficient4C4(1.0); |
| 936 |
1/1✓ Branch 1 taken 12 times.
|
12 | vSDExample.setMinimumValueofQfan(0.0); |
| 937 |
1/1✓ Branch 1 taken 12 times.
|
12 | vSDExample.setMaximumValueofQfan(100.0); |
| 938 |
1/1✓ Branch 1 taken 12 times.
|
12 | vSDExample.setMinimumValueofPsm(62.5); |
| 939 |
1/1✓ Branch 1 taken 12 times.
|
12 | vSDExample.setMaximumValueofPsm(300.0); |
| 940 |
1/1✓ Branch 1 taken 12 times.
|
12 | vSDExample.setMinimumCurveOutput(0.0); |
| 941 |
1/1✓ Branch 1 taken 12 times.
|
12 | vSDExample.setMaximumCurveOutput(5000.0); |
| 942 |
1/1✓ Branch 1 taken 12 times.
|
12 | ok = setFanPressureRiseCurve(vSDExample); |
| 943 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
|
12 | OS_ASSERT(ok); |
| 944 | |||
| 945 |
1/1✓ Branch 1 taken 12 times.
|
12 | CurveLinear diagnosticSPR(model); |
| 946 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
12 | diagnosticSPR.setName("DiagnosticSPR"); |
| 947 |
1/1✓ Branch 1 taken 12 times.
|
12 | diagnosticSPR.setCoefficient1Constant(248.84); |
| 948 |
1/1✓ Branch 1 taken 12 times.
|
12 | diagnosticSPR.setCoefficient2x(0.0); |
| 949 |
1/1✓ Branch 1 taken 12 times.
|
12 | diagnosticSPR.setMinimumValueofx(0.0); |
| 950 |
1/1✓ Branch 1 taken 12 times.
|
12 | diagnosticSPR.setMaximumValueofx(100.0); |
| 951 |
1/1✓ Branch 1 taken 12 times.
|
12 | diagnosticSPR.setMinimumCurveOutput(62.5); |
| 952 |
1/1✓ Branch 1 taken 12 times.
|
12 | diagnosticSPR.setMaximumCurveOutput(248.84); |
| 953 | // diagnosticSPR.setInputUnitTypeforX(""); | ||
| 954 | // diagnosticSPR.setOutputUnitType(""); | ||
| 955 |
1/1✓ Branch 1 taken 12 times.
|
12 | ok = setDuctStaticPressureResetCurve(diagnosticSPR); |
| 956 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
|
12 | OS_ASSERT(ok); |
| 957 | |||
| 958 |
1/1✓ Branch 1 taken 12 times.
|
12 | CurveExponentialSkewNormal fanEff120CPLANormal(model); |
| 959 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
12 | fanEff120CPLANormal.setName("FanEff120CPLANormal"); |
| 960 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanEff120CPLANormal.setCoefficient1C1(0.072613); |
| 961 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanEff120CPLANormal.setCoefficient2C2(0.833213); |
| 962 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanEff120CPLANormal.setCoefficient3C3(0.0); |
| 963 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanEff120CPLANormal.setCoefficient4C4(0.013911); |
| 964 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanEff120CPLANormal.setMinimumValueofx(-4.0); |
| 965 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanEff120CPLANormal.setMaximumValueofx(5.0); |
| 966 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanEff120CPLANormal.setMinimumCurveOutput(0.1); |
| 967 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanEff120CPLANormal.setMaximumCurveOutput(1.0); |
| 968 | // fanEff120CPLANormal.setInputUnitTypeforx(""); | ||
| 969 | // fanEff120CPLANormal.setOutputUnitType(""); | ||
| 970 |
1/1✓ Branch 1 taken 12 times.
|
12 | ok = setNormalizedFanStaticEfficiencyCurveNonStallRegion(fanEff120CPLANormal); |
| 971 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
|
12 | OS_ASSERT(ok); |
| 972 | |||
| 973 |
1/1✓ Branch 1 taken 12 times.
|
12 | CurveExponentialSkewNormal fanEff120CPLAStall(model); |
| 974 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
12 | fanEff120CPLAStall.setName("FanEff120CPLAStall"); |
| 975 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanEff120CPLAStall.setCoefficient1C1(-1.674931); |
| 976 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanEff120CPLAStall.setCoefficient2C2(1.980182); |
| 977 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanEff120CPLAStall.setCoefficient3C3(0.0); |
| 978 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanEff120CPLAStall.setCoefficient4C4(1.84495); |
| 979 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanEff120CPLAStall.setMinimumValueofx(-4.0); |
| 980 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanEff120CPLAStall.setMaximumValueofx(5.0); |
| 981 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanEff120CPLAStall.setMinimumCurveOutput(0.1); |
| 982 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanEff120CPLAStall.setMaximumCurveOutput(1.0); |
| 983 | // fanEff120CPLAStall.setInputUnitTypeforx(""); | ||
| 984 | // fanEff120CPLAStall.setOutputUnitType(""); | ||
| 985 |
1/1✓ Branch 1 taken 12 times.
|
12 | ok = setNormalizedFanStaticEfficiencyCurveStallRegion(fanEff120CPLAStall); |
| 986 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
|
12 | OS_ASSERT(ok); |
| 987 | |||
| 988 |
1/1✓ Branch 1 taken 12 times.
|
12 | CurveSigmoid fanDimFlowNormal(model); |
| 989 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
12 | fanDimFlowNormal.setName("FanDimFlowNormal"); |
| 990 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanDimFlowNormal.setCoefficient1C1(0.0); |
| 991 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanDimFlowNormal.setCoefficient2C2(1.001423); |
| 992 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanDimFlowNormal.setCoefficient3C3(0.123935); |
| 993 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanDimFlowNormal.setCoefficient4C4(-0.476026); |
| 994 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanDimFlowNormal.setCoefficient5C5(1.0); |
| 995 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanDimFlowNormal.setMinimumValueofx(-4.0); |
| 996 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanDimFlowNormal.setMaximumValueofx(5.0); |
| 997 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanDimFlowNormal.setMinimumCurveOutput(0.05); |
| 998 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanDimFlowNormal.setMaximumCurveOutput(1.0); |
| 999 | // fanDimFlowNormal.setInputUnitTypeforx(""); | ||
| 1000 | // fanDimFlowNormal.setOutputUnitType(""); | ||
| 1001 |
1/1✓ Branch 1 taken 12 times.
|
12 | ok = setNormalizedDimensionlessAirflowCurveNonStallRegion(fanDimFlowNormal); |
| 1002 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
|
12 | OS_ASSERT(ok); |
| 1003 | |||
| 1004 |
1/1✓ Branch 1 taken 12 times.
|
12 | CurveSigmoid fanDimFlowStall(model); |
| 1005 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
12 | fanDimFlowStall.setName("FanDimFlowStall"); |
| 1006 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanDimFlowStall.setCoefficient1C1(0.0); |
| 1007 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanDimFlowStall.setCoefficient2C2(5.924993); |
| 1008 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanDimFlowStall.setCoefficient3C3(-1.91636); |
| 1009 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanDimFlowStall.setCoefficient4C4(-0.851779); |
| 1010 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanDimFlowStall.setCoefficient5C5(1.0); |
| 1011 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanDimFlowStall.setMinimumValueofx(-4.0); |
| 1012 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanDimFlowStall.setMaximumValueofx(5.0); |
| 1013 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanDimFlowStall.setMinimumCurveOutput(0.05); |
| 1014 |
1/1✓ Branch 1 taken 12 times.
|
12 | fanDimFlowStall.setMaximumCurveOutput(1.0); |
| 1015 | // fanDimFlowStall.setInputUnitTypeforx(""); | ||
| 1016 | // fanDimFlowStall.setOutputUnitType(""); | ||
| 1017 |
1/1✓ Branch 1 taken 12 times.
|
12 | ok = setNormalizedDimensionlessAirflowCurveStallRegion(fanDimFlowStall); |
| 1018 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 12 times.
✗ Branch 3 not taken.
|
12 | OS_ASSERT(ok); |
| 1019 | |||
| 1020 | // Optional curves: Not initialized either | ||
| 1021 | //ok = assignDefaultOptionalCurves(); | ||
| 1022 | //OS_ASSERT(ok); | ||
| 1023 | 12 | } | |
| 1024 | |||
| 1025 | 1 | FanComponentModel::FanComponentModel(const Model& model, const Curve& fanPressureRiseCurve, const Curve& ductStaticPressureResetCurve, | |
| 1026 | const Curve& normalizedFanStaticEfficiencyCurveNonStallRegion, | ||
| 1027 | const Curve& normalizedFanStaticEfficiencyCurveStallRegion, | ||
| 1028 | const Curve& normalizedDimensionlessAirflowCurveNonStallRegion, | ||
| 1029 | 1 | const Curve& normalizedDimensionlessAirflowCurveStallRegion) | |
| 1030 | 1 | : StraightComponent(FanComponentModel::iddObjectType(), model) { | |
| 1031 | |||
| 1032 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 1 time.
✗ Branch 5 not taken.
|
1 | OS_ASSERT(getImpl<detail::FanComponentModel_Impl>()); |
| 1033 | |||
| 1034 | // Appropriately handle the following required object-list fields. | ||
| 1035 | // OS_Fan_ComponentModelFields::AirInletNodeName | ||
| 1036 | // OS_Fan_ComponentModelFields::AirOutletNodeName | ||
| 1037 | // OS_Fan_ComponentModelFields::AvailabilityScheduleName | ||
| 1038 | // OS_Fan_ComponentModelFields::FanPressureRiseCurveName | ||
| 1039 | // OS_Fan_ComponentModelFields::DuctStaticPressureResetCurveName | ||
| 1040 | // OS_Fan_ComponentModelFields::NormalizedFanStaticEfficiencyCurveNameNonStallRegion | ||
| 1041 | // OS_Fan_ComponentModelFields::NormalizedFanStaticEfficiencyCurveNameStallRegion | ||
| 1042 | // OS_Fan_ComponentModelFields::NormalizedDimensionlessAirflowCurveNameNonStallRegion | ||
| 1043 | // OS_Fan_ComponentModelFields::NormalizedDimensionlessAirflowCurveNameStallRegion | ||
| 1044 | 1 | bool ok = true; | |
| 1045 | |||
| 1046 | // ok = setAirInletNode(); | ||
| 1047 | // ok = setAirOutletNode(); | ||
| 1048 | |||
| 1049 |
1/1✓ Branch 1 taken 1 time.
|
1 | auto availabilitySchedule = model.alwaysOnDiscreteSchedule(); |
| 1050 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setAvailabilitySchedule(availabilitySchedule); |
| 1051 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
|
1 | OS_ASSERT(ok); |
| 1052 | |||
| 1053 | // E+ IDD default | ||
| 1054 |
1/1✓ Branch 1 taken 1 time.
|
1 | autosizeMaximumFlowRate(); |
| 1055 |
1/1✓ Branch 1 taken 1 time.
|
1 | autosizeMinimumFlowRate(); |
| 1056 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setFanSizingFactor(1.0); |
| 1057 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
|
1 | OS_ASSERT(ok); |
| 1058 | // this has an IDD default of 1.0, but it's autosizable | ||
| 1059 | //ok = setMotorFanPulleyRatio(1.0); | ||
| 1060 | // OS_ASSERT(ok); | ||
| 1061 |
1/1✓ Branch 1 taken 1 time.
|
1 | autosizeMotorFanPulleyRatio(); |
| 1062 | |||
| 1063 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setBeltSizingFactor(1.0); |
| 1064 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
|
1 | OS_ASSERT(ok); |
| 1065 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setBeltFractionalTorqueTransition(0.167); |
| 1066 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
|
1 | OS_ASSERT(ok); |
| 1067 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setMotorSizingFactor(1.0); |
| 1068 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
|
1 | OS_ASSERT(ok); |
| 1069 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setMotorInAirstreamFraction(1.0); |
| 1070 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
|
1 | OS_ASSERT(ok); |
| 1071 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setVFDSizingFactor(1.0); |
| 1072 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
|
1 | OS_ASSERT(ok); |
| 1073 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | ok = setEndUseSubcategory("General"); |
| 1074 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
|
1 | OS_ASSERT(ok); |
| 1075 | |||
| 1076 | // Default from E+ example file: EnergyPlus/testfiles/5ZoneWarmestVFD_FCMAuto.idf, v9.4.0 | ||
| 1077 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setFanWheelDiameter(0.3048); |
| 1078 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
|
1 | OS_ASSERT(ok); |
| 1079 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setFanOutletArea(0.0873288576); |
| 1080 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
|
1 | OS_ASSERT(ok); |
| 1081 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setMaximumFanStaticEfficiency(0.514); |
| 1082 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
|
1 | OS_ASSERT(ok); |
| 1083 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setEulerNumberatMaximumFanStaticEfficiency(9.76); |
| 1084 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
|
1 | OS_ASSERT(ok); |
| 1085 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setMaximumDimensionlessFanAirflow(0.160331811647483); |
| 1086 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
|
1 | OS_ASSERT(ok); |
| 1087 | |||
| 1088 |
1/1✓ Branch 1 taken 1 time.
|
1 | autosizeBeltMaximumTorque(); |
| 1089 | |||
| 1090 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setMotorMaximumSpeed(1800.0); |
| 1091 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
|
1 | OS_ASSERT(ok); |
| 1092 | |||
| 1093 |
1/1✓ Branch 1 taken 1 time.
|
1 | autosizeMaximumMotorOutputPower(); |
| 1094 | |||
| 1095 |
1/1✓ Branch 1 taken 1 time.
|
1 | autosizeMaximumVFDOutputPower(); |
| 1096 | |||
| 1097 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | setVFDEfficiencyType("Power"); |
| 1098 | |||
| 1099 | // Required Curves | ||
| 1100 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setFanPressureRiseCurve(fanPressureRiseCurve); |
| 1101 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
|
1 | OS_ASSERT(ok); |
| 1102 | |||
| 1103 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setDuctStaticPressureResetCurve(ductStaticPressureResetCurve); |
| 1104 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
|
1 | OS_ASSERT(ok); |
| 1105 | |||
| 1106 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setNormalizedFanStaticEfficiencyCurveNonStallRegion(normalizedFanStaticEfficiencyCurveNonStallRegion); |
| 1107 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
|
1 | OS_ASSERT(ok); |
| 1108 | |||
| 1109 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setNormalizedFanStaticEfficiencyCurveStallRegion(normalizedFanStaticEfficiencyCurveStallRegion); |
| 1110 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
|
1 | OS_ASSERT(ok); |
| 1111 | |||
| 1112 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setNormalizedDimensionlessAirflowCurveNonStallRegion(normalizedDimensionlessAirflowCurveNonStallRegion); |
| 1113 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
|
1 | OS_ASSERT(ok); |
| 1114 | |||
| 1115 |
1/1✓ Branch 1 taken 1 time.
|
1 | ok = setNormalizedDimensionlessAirflowCurveStallRegion(normalizedDimensionlessAirflowCurveStallRegion); |
| 1116 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
|
1 | OS_ASSERT(ok); |
| 1117 | |||
| 1118 | // Note: If the user is calling this explicit Ctor, they probably are trying to avoid creating unecessary curves, | ||
| 1119 | // so we are respectful of that and therefore not instantiating the optional curves | ||
| 1120 | // ok = assignDefaultOptionalCurves(); | ||
| 1121 | // OS_ASSERT(ok); | ||
| 1122 | 1 | } | |
| 1123 | |||
| 1124 | 7627 | IddObjectType FanComponentModel::iddObjectType() { | |
| 1125 |
1/1✓ Branch 1 taken 7627 times.
|
7627 | return {IddObjectType::OS_Fan_ComponentModel}; |
| 1126 | } | ||
| 1127 | |||
| 1128 | ✗ | std::vector<std::string> FanComponentModel::vFDEfficiencyTypeValues() { | |
| 1129 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Fan_ComponentModelFields::VFDEfficiencyType); | |
| 1130 | } | ||
| 1131 | |||
| 1132 | 5 | Schedule FanComponentModel::availabilitySchedule() const { | |
| 1133 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::FanComponentModel_Impl>()->availabilitySchedule(); |
| 1134 | } | ||
| 1135 | |||
| 1136 | 4 | boost::optional<double> FanComponentModel::maximumFlowRate() const { | |
| 1137 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::FanComponentModel_Impl>()->maximumFlowRate(); |
| 1138 | } | ||
| 1139 | |||
| 1140 | 6 | bool FanComponentModel::isMaximumFlowRateAutosized() const { | |
| 1141 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::FanComponentModel_Impl>()->isMaximumFlowRateAutosized(); |
| 1142 | } | ||
| 1143 | |||
| 1144 | ✗ | boost::optional<double> FanComponentModel::autosizedMaximumFlowRate() { | |
| 1145 | ✗ | return getImpl<detail::FanComponentModel_Impl>()->autosizedMaximumFlowRate(); | |
| 1146 | } | ||
| 1147 | |||
| 1148 | 4 | boost::optional<double> FanComponentModel::minimumFlowRate() const { | |
| 1149 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::FanComponentModel_Impl>()->minimumFlowRate(); |
| 1150 | } | ||
| 1151 | |||
| 1152 | 6 | bool FanComponentModel::isMinimumFlowRateAutosized() const { | |
| 1153 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::FanComponentModel_Impl>()->isMinimumFlowRateAutosized(); |
| 1154 | } | ||
| 1155 | |||
| 1156 | ✗ | boost::optional<double> FanComponentModel::autosizedMinimumFlowRate() { | |
| 1157 | ✗ | return getImpl<detail::FanComponentModel_Impl>()->autosizedMinimumFlowRate(); | |
| 1158 | } | ||
| 1159 | |||
| 1160 | 6 | double FanComponentModel::fanSizingFactor() const { | |
| 1161 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::FanComponentModel_Impl>()->fanSizingFactor(); |
| 1162 | } | ||
| 1163 | |||
| 1164 | 6 | double FanComponentModel::fanWheelDiameter() const { | |
| 1165 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::FanComponentModel_Impl>()->fanWheelDiameter(); |
| 1166 | } | ||
| 1167 | |||
| 1168 | 6 | double FanComponentModel::fanOutletArea() const { | |
| 1169 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::FanComponentModel_Impl>()->fanOutletArea(); |
| 1170 | } | ||
| 1171 | |||
| 1172 | 6 | double FanComponentModel::maximumFanStaticEfficiency() const { | |
| 1173 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::FanComponentModel_Impl>()->maximumFanStaticEfficiency(); |
| 1174 | } | ||
| 1175 | |||
| 1176 | 6 | double FanComponentModel::eulerNumberatMaximumFanStaticEfficiency() const { | |
| 1177 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::FanComponentModel_Impl>()->eulerNumberatMaximumFanStaticEfficiency(); |
| 1178 | } | ||
| 1179 | |||
| 1180 | 6 | double FanComponentModel::maximumDimensionlessFanAirflow() const { | |
| 1181 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::FanComponentModel_Impl>()->maximumDimensionlessFanAirflow(); |
| 1182 | } | ||
| 1183 | |||
| 1184 | 6 | boost::optional<double> FanComponentModel::motorFanPulleyRatio() const { | |
| 1185 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::FanComponentModel_Impl>()->motorFanPulleyRatio(); |
| 1186 | } | ||
| 1187 | |||
| 1188 | 6 | bool FanComponentModel::isMotorFanPulleyRatioAutosized() const { | |
| 1189 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::FanComponentModel_Impl>()->isMotorFanPulleyRatioAutosized(); |
| 1190 | } | ||
| 1191 | |||
| 1192 | ✗ | boost::optional<double> FanComponentModel::autosizedMotorFanPulleyRatio() { | |
| 1193 | ✗ | return getImpl<detail::FanComponentModel_Impl>()->autosizedMotorFanPulleyRatio(); | |
| 1194 | } | ||
| 1195 | |||
| 1196 | 6 | boost::optional<double> FanComponentModel::beltMaximumTorque() const { | |
| 1197 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::FanComponentModel_Impl>()->beltMaximumTorque(); |
| 1198 | } | ||
| 1199 | |||
| 1200 | 6 | bool FanComponentModel::isBeltMaximumTorqueAutosized() const { | |
| 1201 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::FanComponentModel_Impl>()->isBeltMaximumTorqueAutosized(); |
| 1202 | } | ||
| 1203 | |||
| 1204 | ✗ | boost::optional<double> FanComponentModel::autosizedBeltMaximumTorque() { | |
| 1205 | ✗ | return getImpl<detail::FanComponentModel_Impl>()->autosizedBeltMaximumTorque(); | |
| 1206 | } | ||
| 1207 | |||
| 1208 | 6 | double FanComponentModel::beltSizingFactor() const { | |
| 1209 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::FanComponentModel_Impl>()->beltSizingFactor(); |
| 1210 | } | ||
| 1211 | |||
| 1212 | 6 | double FanComponentModel::beltFractionalTorqueTransition() const { | |
| 1213 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::FanComponentModel_Impl>()->beltFractionalTorqueTransition(); |
| 1214 | } | ||
| 1215 | |||
| 1216 | 6 | double FanComponentModel::motorMaximumSpeed() const { | |
| 1217 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::FanComponentModel_Impl>()->motorMaximumSpeed(); |
| 1218 | } | ||
| 1219 | |||
| 1220 | 6 | boost::optional<double> FanComponentModel::maximumMotorOutputPower() const { | |
| 1221 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::FanComponentModel_Impl>()->maximumMotorOutputPower(); |
| 1222 | } | ||
| 1223 | |||
| 1224 | 6 | bool FanComponentModel::isMaximumMotorOutputPowerAutosized() const { | |
| 1225 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::FanComponentModel_Impl>()->isMaximumMotorOutputPowerAutosized(); |
| 1226 | } | ||
| 1227 | |||
| 1228 | ✗ | boost::optional<double> FanComponentModel::autosizedMaximumMotorOutputPower() { | |
| 1229 | ✗ | return getImpl<detail::FanComponentModel_Impl>()->autosizedMaximumMotorOutputPower(); | |
| 1230 | } | ||
| 1231 | |||
| 1232 | 6 | double FanComponentModel::motorSizingFactor() const { | |
| 1233 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::FanComponentModel_Impl>()->motorSizingFactor(); |
| 1234 | } | ||
| 1235 | |||
| 1236 | 6 | double FanComponentModel::motorInAirstreamFraction() const { | |
| 1237 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::FanComponentModel_Impl>()->motorInAirstreamFraction(); |
| 1238 | } | ||
| 1239 | |||
| 1240 | 6 | std::string FanComponentModel::vFDEfficiencyType() const { | |
| 1241 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::FanComponentModel_Impl>()->vFDEfficiencyType(); |
| 1242 | } | ||
| 1243 | |||
| 1244 | 6 | boost::optional<double> FanComponentModel::maximumVFDOutputPower() const { | |
| 1245 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::FanComponentModel_Impl>()->maximumVFDOutputPower(); |
| 1246 | } | ||
| 1247 | |||
| 1248 | 6 | bool FanComponentModel::isMaximumVFDOutputPowerAutosized() const { | |
| 1249 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::FanComponentModel_Impl>()->isMaximumVFDOutputPowerAutosized(); |
| 1250 | } | ||
| 1251 | |||
| 1252 | ✗ | boost::optional<double> FanComponentModel::autosizedMaximumVFDOutputPower() { | |
| 1253 | ✗ | return getImpl<detail::FanComponentModel_Impl>()->autosizedMaximumVFDOutputPower(); | |
| 1254 | } | ||
| 1255 | |||
| 1256 | 6 | double FanComponentModel::vFDSizingFactor() const { | |
| 1257 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::FanComponentModel_Impl>()->vFDSizingFactor(); |
| 1258 | } | ||
| 1259 | |||
| 1260 | 7 | Curve FanComponentModel::fanPressureRiseCurve() const { | |
| 1261 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::FanComponentModel_Impl>()->fanPressureRiseCurve(); |
| 1262 | } | ||
| 1263 | |||
| 1264 | 7 | Curve FanComponentModel::ductStaticPressureResetCurve() const { | |
| 1265 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::FanComponentModel_Impl>()->ductStaticPressureResetCurve(); |
| 1266 | } | ||
| 1267 | |||
| 1268 | 7 | Curve FanComponentModel::normalizedFanStaticEfficiencyCurveNonStallRegion() const { | |
| 1269 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::FanComponentModel_Impl>()->normalizedFanStaticEfficiencyCurveNonStallRegion(); |
| 1270 | } | ||
| 1271 | |||
| 1272 | 7 | Curve FanComponentModel::normalizedFanStaticEfficiencyCurveStallRegion() const { | |
| 1273 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::FanComponentModel_Impl>()->normalizedFanStaticEfficiencyCurveStallRegion(); |
| 1274 | } | ||
| 1275 | |||
| 1276 | 7 | Curve FanComponentModel::normalizedDimensionlessAirflowCurveNonStallRegion() const { | |
| 1277 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::FanComponentModel_Impl>()->normalizedDimensionlessAirflowCurveNonStallRegion(); |
| 1278 | } | ||
| 1279 | |||
| 1280 | 7 | Curve FanComponentModel::normalizedDimensionlessAirflowCurveStallRegion() const { | |
| 1281 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::FanComponentModel_Impl>()->normalizedDimensionlessAirflowCurveStallRegion(); |
| 1282 | } | ||
| 1283 | |||
| 1284 | 11 | boost::optional<Curve> FanComponentModel::maximumBeltEfficiencyCurve() const { | |
| 1285 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::FanComponentModel_Impl>()->maximumBeltEfficiencyCurve(); |
| 1286 | } | ||
| 1287 | |||
| 1288 | 11 | boost::optional<Curve> FanComponentModel::normalizedBeltEfficiencyCurveRegion1() const { | |
| 1289 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::FanComponentModel_Impl>()->normalizedBeltEfficiencyCurveRegion1(); |
| 1290 | } | ||
| 1291 | |||
| 1292 | 11 | boost::optional<Curve> FanComponentModel::normalizedBeltEfficiencyCurveRegion2() const { | |
| 1293 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::FanComponentModel_Impl>()->normalizedBeltEfficiencyCurveRegion2(); |
| 1294 | } | ||
| 1295 | |||
| 1296 | 11 | boost::optional<Curve> FanComponentModel::normalizedBeltEfficiencyCurveRegion3() const { | |
| 1297 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::FanComponentModel_Impl>()->normalizedBeltEfficiencyCurveRegion3(); |
| 1298 | } | ||
| 1299 | |||
| 1300 | 11 | boost::optional<Curve> FanComponentModel::maximumMotorEfficiencyCurve() const { | |
| 1301 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::FanComponentModel_Impl>()->maximumMotorEfficiencyCurve(); |
| 1302 | } | ||
| 1303 | |||
| 1304 | 11 | boost::optional<Curve> FanComponentModel::normalizedMotorEfficiencyCurve() const { | |
| 1305 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::FanComponentModel_Impl>()->normalizedMotorEfficiencyCurve(); |
| 1306 | } | ||
| 1307 | |||
| 1308 | 11 | boost::optional<Curve> FanComponentModel::vFDEfficiencyCurve() const { | |
| 1309 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::FanComponentModel_Impl>()->vFDEfficiencyCurve(); |
| 1310 | } | ||
| 1311 | |||
| 1312 | 4 | std::string FanComponentModel::endUseSubcategory() const { | |
| 1313 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::FanComponentModel_Impl>()->endUseSubcategory(); |
| 1314 | } | ||
| 1315 | |||
| 1316 | 17 | bool FanComponentModel::setAvailabilitySchedule(Schedule& schedule) { | |
| 1317 |
1/1✓ Branch 3 taken 17 times.
|
17 | return getImpl<detail::FanComponentModel_Impl>()->setAvailabilitySchedule(schedule); |
| 1318 | } | ||
| 1319 | |||
| 1320 | 5 | bool FanComponentModel::setMaximumFlowRate(double maximumFlowRate) { | |
| 1321 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::FanComponentModel_Impl>()->setMaximumFlowRate(maximumFlowRate); |
| 1322 | } | ||
| 1323 | |||
| 1324 | 15 | void FanComponentModel::autosizeMaximumFlowRate() { | |
| 1325 |
1/1✓ Branch 3 taken 15 times.
|
15 | getImpl<detail::FanComponentModel_Impl>()->autosizeMaximumFlowRate(); |
| 1326 | 15 | } | |
| 1327 | |||
| 1328 | 6 | bool FanComponentModel::setMinimumFlowRate(double minimumFlowRate) { | |
| 1329 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::FanComponentModel_Impl>()->setMinimumFlowRate(minimumFlowRate); |
| 1330 | } | ||
| 1331 | |||
| 1332 | 14 | void FanComponentModel::autosizeMinimumFlowRate() { | |
| 1333 |
1/1✓ Branch 3 taken 14 times.
|
14 | getImpl<detail::FanComponentModel_Impl>()->autosizeMinimumFlowRate(); |
| 1334 | 14 | } | |
| 1335 | |||
| 1336 | 19 | bool FanComponentModel::setFanSizingFactor(double fanSizingFactor) { | |
| 1337 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::FanComponentModel_Impl>()->setFanSizingFactor(fanSizingFactor); |
| 1338 | } | ||
| 1339 | |||
| 1340 | 19 | bool FanComponentModel::setFanWheelDiameter(double fanWheelDiameter) { | |
| 1341 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::FanComponentModel_Impl>()->setFanWheelDiameter(fanWheelDiameter); |
| 1342 | } | ||
| 1343 | |||
| 1344 | 19 | bool FanComponentModel::setFanOutletArea(double fanOutletArea) { | |
| 1345 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::FanComponentModel_Impl>()->setFanOutletArea(fanOutletArea); |
| 1346 | } | ||
| 1347 | |||
| 1348 | 19 | bool FanComponentModel::setMaximumFanStaticEfficiency(double maximumFanStaticEfficiency) { | |
| 1349 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::FanComponentModel_Impl>()->setMaximumFanStaticEfficiency(maximumFanStaticEfficiency); |
| 1350 | } | ||
| 1351 | |||
| 1352 | 19 | bool FanComponentModel::setEulerNumberatMaximumFanStaticEfficiency(double eulerNumberatMaximumFanStaticEfficiency) { | |
| 1353 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::FanComponentModel_Impl>()->setEulerNumberatMaximumFanStaticEfficiency(eulerNumberatMaximumFanStaticEfficiency); |
| 1354 | } | ||
| 1355 | |||
| 1356 | 19 | bool FanComponentModel::setMaximumDimensionlessFanAirflow(double maximumDimensionlessFanAirflow) { | |
| 1357 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::FanComponentModel_Impl>()->setMaximumDimensionlessFanAirflow(maximumDimensionlessFanAirflow); |
| 1358 | } | ||
| 1359 | |||
| 1360 | 5 | bool FanComponentModel::setMotorFanPulleyRatio(double motorFanPulleyRatio) { | |
| 1361 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::FanComponentModel_Impl>()->setMotorFanPulleyRatio(motorFanPulleyRatio); |
| 1362 | } | ||
| 1363 | |||
| 1364 | 15 | void FanComponentModel::autosizeMotorFanPulleyRatio() { | |
| 1365 |
1/1✓ Branch 3 taken 15 times.
|
15 | getImpl<detail::FanComponentModel_Impl>()->autosizeMotorFanPulleyRatio(); |
| 1366 | 15 | } | |
| 1367 | |||
| 1368 | 5 | bool FanComponentModel::setBeltMaximumTorque(double beltMaximumTorque) { | |
| 1369 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::FanComponentModel_Impl>()->setBeltMaximumTorque(beltMaximumTorque); |
| 1370 | } | ||
| 1371 | |||
| 1372 | 15 | void FanComponentModel::autosizeBeltMaximumTorque() { | |
| 1373 |
1/1✓ Branch 3 taken 15 times.
|
15 | getImpl<detail::FanComponentModel_Impl>()->autosizeBeltMaximumTorque(); |
| 1374 | 15 | } | |
| 1375 | |||
| 1376 | 19 | bool FanComponentModel::setBeltSizingFactor(double beltSizingFactor) { | |
| 1377 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::FanComponentModel_Impl>()->setBeltSizingFactor(beltSizingFactor); |
| 1378 | } | ||
| 1379 | |||
| 1380 | 19 | bool FanComponentModel::setBeltFractionalTorqueTransition(double beltFractionalTorqueTransition) { | |
| 1381 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::FanComponentModel_Impl>()->setBeltFractionalTorqueTransition(beltFractionalTorqueTransition); |
| 1382 | } | ||
| 1383 | |||
| 1384 | 19 | bool FanComponentModel::setMotorMaximumSpeed(double motorMaximumSpeed) { | |
| 1385 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::FanComponentModel_Impl>()->setMotorMaximumSpeed(motorMaximumSpeed); |
| 1386 | } | ||
| 1387 | |||
| 1388 | 5 | bool FanComponentModel::setMaximumMotorOutputPower(double maximumMotorOutputPower) { | |
| 1389 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::FanComponentModel_Impl>()->setMaximumMotorOutputPower(maximumMotorOutputPower); |
| 1390 | } | ||
| 1391 | |||
| 1392 | 15 | void FanComponentModel::autosizeMaximumMotorOutputPower() { | |
| 1393 |
1/1✓ Branch 3 taken 15 times.
|
15 | getImpl<detail::FanComponentModel_Impl>()->autosizeMaximumMotorOutputPower(); |
| 1394 | 15 | } | |
| 1395 | |||
| 1396 | 19 | bool FanComponentModel::setMotorSizingFactor(double motorSizingFactor) { | |
| 1397 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::FanComponentModel_Impl>()->setMotorSizingFactor(motorSizingFactor); |
| 1398 | } | ||
| 1399 | |||
| 1400 | 19 | bool FanComponentModel::setMotorInAirstreamFraction(double motorInAirstreamFraction) { | |
| 1401 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::FanComponentModel_Impl>()->setMotorInAirstreamFraction(motorInAirstreamFraction); |
| 1402 | } | ||
| 1403 | |||
| 1404 | 19 | bool FanComponentModel::setVFDEfficiencyType(const std::string& vFDEfficiencyType) { | |
| 1405 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::FanComponentModel_Impl>()->setVFDEfficiencyType(vFDEfficiencyType); |
| 1406 | } | ||
| 1407 | |||
| 1408 | 5 | bool FanComponentModel::setMaximumVFDOutputPower(double maximumVFDOutputPower) { | |
| 1409 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::FanComponentModel_Impl>()->setMaximumVFDOutputPower(maximumVFDOutputPower); |
| 1410 | } | ||
| 1411 | |||
| 1412 | 15 | void FanComponentModel::autosizeMaximumVFDOutputPower() { | |
| 1413 |
1/1✓ Branch 3 taken 15 times.
|
15 | getImpl<detail::FanComponentModel_Impl>()->autosizeMaximumVFDOutputPower(); |
| 1414 | 15 | } | |
| 1415 | |||
| 1416 | 19 | bool FanComponentModel::setVFDSizingFactor(double vFDSizingFactor) { | |
| 1417 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::FanComponentModel_Impl>()->setVFDSizingFactor(vFDSizingFactor); |
| 1418 | } | ||
| 1419 | |||
| 1420 | 18 | bool FanComponentModel::setFanPressureRiseCurve(const Curve& bivariateFunctions) { | |
| 1421 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::FanComponentModel_Impl>()->setFanPressureRiseCurve(bivariateFunctions); |
| 1422 | } | ||
| 1423 | |||
| 1424 | 18 | bool FanComponentModel::setDuctStaticPressureResetCurve(const Curve& univariateFunctions) { | |
| 1425 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::FanComponentModel_Impl>()->setDuctStaticPressureResetCurve(univariateFunctions); |
| 1426 | } | ||
| 1427 | |||
| 1428 | 18 | bool FanComponentModel::setNormalizedFanStaticEfficiencyCurveNonStallRegion(const Curve& univariateFunctions) { | |
| 1429 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::FanComponentModel_Impl>()->setNormalizedFanStaticEfficiencyCurveNonStallRegion(univariateFunctions); |
| 1430 | } | ||
| 1431 | |||
| 1432 | 18 | bool FanComponentModel::setNormalizedFanStaticEfficiencyCurveStallRegion(const Curve& univariateFunctions) { | |
| 1433 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::FanComponentModel_Impl>()->setNormalizedFanStaticEfficiencyCurveStallRegion(univariateFunctions); |
| 1434 | } | ||
| 1435 | |||
| 1436 | 18 | bool FanComponentModel::setNormalizedDimensionlessAirflowCurveNonStallRegion(const Curve& univariateFunctions) { | |
| 1437 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::FanComponentModel_Impl>()->setNormalizedDimensionlessAirflowCurveNonStallRegion(univariateFunctions); |
| 1438 | } | ||
| 1439 | |||
| 1440 | 18 | bool FanComponentModel::setNormalizedDimensionlessAirflowCurveStallRegion(const Curve& univariateFunctions) { | |
| 1441 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::FanComponentModel_Impl>()->setNormalizedDimensionlessAirflowCurveStallRegion(univariateFunctions); |
| 1442 | } | ||
| 1443 | |||
| 1444 | 7 | bool FanComponentModel::setMaximumBeltEfficiencyCurve(const Curve& univariateFunctions) { | |
| 1445 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::FanComponentModel_Impl>()->setMaximumBeltEfficiencyCurve(univariateFunctions); |
| 1446 | } | ||
| 1447 | |||
| 1448 | ✗ | void FanComponentModel::resetMaximumBeltEfficiencyCurve() { | |
| 1449 | ✗ | getImpl<detail::FanComponentModel_Impl>()->resetMaximumBeltEfficiencyCurve(); | |
| 1450 | ✗ | } | |
| 1451 | |||
| 1452 | 7 | bool FanComponentModel::setNormalizedBeltEfficiencyCurveRegion1(const Curve& univariateFunctions) { | |
| 1453 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::FanComponentModel_Impl>()->setNormalizedBeltEfficiencyCurveRegion1(univariateFunctions); |
| 1454 | } | ||
| 1455 | |||
| 1456 | ✗ | void FanComponentModel::resetNormalizedBeltEfficiencyCurveRegion1() { | |
| 1457 | ✗ | getImpl<detail::FanComponentModel_Impl>()->resetNormalizedBeltEfficiencyCurveRegion1(); | |
| 1458 | ✗ | } | |
| 1459 | |||
| 1460 | 7 | bool FanComponentModel::setNormalizedBeltEfficiencyCurveRegion2(const Curve& univariateFunctions) { | |
| 1461 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::FanComponentModel_Impl>()->setNormalizedBeltEfficiencyCurveRegion2(univariateFunctions); |
| 1462 | } | ||
| 1463 | |||
| 1464 | ✗ | void FanComponentModel::resetNormalizedBeltEfficiencyCurveRegion2() { | |
| 1465 | ✗ | getImpl<detail::FanComponentModel_Impl>()->resetNormalizedBeltEfficiencyCurveRegion2(); | |
| 1466 | ✗ | } | |
| 1467 | |||
| 1468 | 7 | bool FanComponentModel::setNormalizedBeltEfficiencyCurveRegion3(const Curve& univariateFunctions) { | |
| 1469 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::FanComponentModel_Impl>()->setNormalizedBeltEfficiencyCurveRegion3(univariateFunctions); |
| 1470 | } | ||
| 1471 | |||
| 1472 | ✗ | void FanComponentModel::resetNormalizedBeltEfficiencyCurveRegion3() { | |
| 1473 | ✗ | getImpl<detail::FanComponentModel_Impl>()->resetNormalizedBeltEfficiencyCurveRegion3(); | |
| 1474 | ✗ | } | |
| 1475 | |||
| 1476 | 7 | bool FanComponentModel::setMaximumMotorEfficiencyCurve(const Curve& univariateFunctions) { | |
| 1477 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::FanComponentModel_Impl>()->setMaximumMotorEfficiencyCurve(univariateFunctions); |
| 1478 | } | ||
| 1479 | |||
| 1480 | ✗ | void FanComponentModel::resetMaximumMotorEfficiencyCurve() { | |
| 1481 | ✗ | getImpl<detail::FanComponentModel_Impl>()->resetMaximumMotorEfficiencyCurve(); | |
| 1482 | ✗ | } | |
| 1483 | |||
| 1484 | 7 | bool FanComponentModel::setNormalizedMotorEfficiencyCurve(const Curve& univariateFunctions) { | |
| 1485 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::FanComponentModel_Impl>()->setNormalizedMotorEfficiencyCurve(univariateFunctions); |
| 1486 | } | ||
| 1487 | |||
| 1488 | ✗ | void FanComponentModel::resetNormalizedMotorEfficiencyCurve() { | |
| 1489 | ✗ | getImpl<detail::FanComponentModel_Impl>()->resetNormalizedMotorEfficiencyCurve(); | |
| 1490 | ✗ | } | |
| 1491 | |||
| 1492 | 7 | bool FanComponentModel::setVFDEfficiencyCurve(const Curve& univariateFunctions) { | |
| 1493 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::FanComponentModel_Impl>()->setVFDEfficiencyCurve(univariateFunctions); |
| 1494 | } | ||
| 1495 | |||
| 1496 | ✗ | void FanComponentModel::resetVFDEfficiencyCurve() { | |
| 1497 | ✗ | getImpl<detail::FanComponentModel_Impl>()->resetVFDEfficiencyCurve(); | |
| 1498 | ✗ | } | |
| 1499 | |||
| 1500 | 15 | bool FanComponentModel::setEndUseSubcategory(const std::string& endUseSubcategory) { | |
| 1501 |
1/1✓ Branch 3 taken 15 times.
|
15 | return getImpl<detail::FanComponentModel_Impl>()->setEndUseSubcategory(endUseSubcategory); |
| 1502 | } | ||
| 1503 | |||
| 1504 | /// @cond | ||
| 1505 |
1/1✓ Branch 2 taken 9 times.
|
9 | FanComponentModel::FanComponentModel(std::shared_ptr<detail::FanComponentModel_Impl> impl) : StraightComponent(impl) {} |
| 1506 | /// @endcond | ||
| 1507 | |||
| 1508 | } // namespace model | ||
| 1509 | } // namespace openstudio | ||
| 1510 |