src/model/CurveFanPressureRise.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 "CurveFanPressureRise.hpp" | ||
| 7 | #include "CurveFanPressureRise_Impl.hpp" | ||
| 8 | |||
| 9 | #include <utilities/idd/OS_Curve_FanPressureRise_FieldEnums.hxx> | ||
| 10 | #include <utilities/idd/IddEnums.hxx> | ||
| 11 | |||
| 12 | #include "../utilities/core/Assert.hpp" | ||
| 13 | |||
| 14 | #include <cmath> | ||
| 15 | |||
| 16 | using namespace std; | ||
| 17 | |||
| 18 | namespace openstudio { | ||
| 19 | namespace model { | ||
| 20 | |||
| 21 | namespace detail { | ||
| 22 | |||
| 23 | 20 | CurveFanPressureRise_Impl::CurveFanPressureRise_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 24 | 20 | : Curve_Impl(idfObject, model, keepHandle) { | |
| 25 |
4/6✓ Branch 1 taken 20 times.
✓ Branch 4 taken 20 times.
✓ Branch 7 taken 20 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 20 times.
✗ Branch 13 not taken.
|
20 | OS_ASSERT(idfObject.iddObject().type() == CurveFanPressureRise::iddObjectType()); |
| 26 | 20 | } | |
| 27 | |||
| 28 | ✗ | CurveFanPressureRise_Impl::CurveFanPressureRise_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle) | |
| 29 | ✗ | : Curve_Impl(other, model, keepHandle) { | |
| 30 | ✗ | OS_ASSERT(other.iddObject().type() == CurveFanPressureRise::iddObjectType()); | |
| 31 | ✗ | } | |
| 32 | |||
| 33 | 6 | CurveFanPressureRise_Impl::CurveFanPressureRise_Impl(const CurveFanPressureRise_Impl& other, Model_Impl* model, bool keepHandle) | |
| 34 | 6 | : Curve_Impl(other, model, keepHandle) {} | |
| 35 | |||
| 36 | ✗ | const std::vector<std::string>& CurveFanPressureRise_Impl::outputVariableNames() const { | |
| 37 | static const std::vector<std::string> result{"Performance Curve Output Value", "Performance Curve Input Variable 1 Value", | ||
| 38 | ✗ | "Performance Curve Input Variable 2 Value"}; | |
| 39 | ✗ | return result; | |
| 40 | ✗ | } | |
| 41 | |||
| 42 | ✗ | IddObjectType CurveFanPressureRise_Impl::iddObjectType() const { | |
| 43 | ✗ | return CurveFanPressureRise::iddObjectType(); | |
| 44 | } | ||
| 45 | |||
| 46 | ✗ | int CurveFanPressureRise_Impl::numVariables() const { | |
| 47 | ✗ | return 2; | |
| 48 | } | ||
| 49 | |||
| 50 | 16 | double CurveFanPressureRise_Impl::evaluate(const std::vector<double>& independentVariables) const { | |
| 51 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 16 times.
|
16 | OS_ASSERT(independentVariables.size() == 2u); |
| 52 | |||
| 53 | 16 | double Qfan = independentVariables[0]; | |
| 54 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 2 taken 12 times.
|
16 | if (Qfan < minimumValueofQfan()) { |
| 55 |
5/5✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
✓ Branch 13 taken 4 times.
|
4 | LOG(Warn, "Supplied Qfan is below the minimumValueofx, resetting it."); |
| 56 | 4 | Qfan = minimumValueofQfan(); | |
| 57 | } | ||
| 58 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 2 taken 12 times.
|
16 | if (Qfan > maximumValueofQfan()) { |
| 59 |
5/5✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
✓ Branch 13 taken 4 times.
|
4 | LOG(Warn, "Supplied Qfan is above the maximumValueofx, resetting it."); |
| 60 | 4 | Qfan = maximumValueofQfan(); | |
| 61 | } | ||
| 62 | |||
| 63 | 16 | double Psm = independentVariables[1]; | |
| 64 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 2 taken 12 times.
|
16 | if (Psm < minimumValueofPsm()) { |
| 65 |
5/5✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
✓ Branch 13 taken 4 times.
|
4 | LOG(Warn, "Supplied Psm is below the minimumValueofPsm, resetting it."); |
| 66 | 4 | Psm = minimumValueofPsm(); | |
| 67 | } | ||
| 68 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 2 taken 12 times.
|
16 | if (Psm > maximumValueofPsm()) { |
| 69 |
5/5✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
✓ Branch 13 taken 4 times.
|
4 | LOG(Warn, "Supplied Psm is above the maximumValueofPsm, resetting it."); |
| 70 | 4 | Psm = maximumValueofPsm(); | |
| 71 | } | ||
| 72 | |||
| 73 | 16 | double result = coefficient1C1() * std::pow(Qfan, 2); | |
| 74 | 16 | result += coefficient2C2() * Qfan; | |
| 75 | 16 | result += coefficient3C3() * Qfan * std::sqrt(Psm); | |
| 76 | 16 | result += coefficient4C4() * Psm; | |
| 77 | |||
| 78 |
3/3✓ Branch 1 taken 16 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 14 times.
|
32 | if (boost::optional<double> _minVal = minimumCurveOutput()) { |
| 79 |
1/1✓ Branch 1 taken 2 times.
|
2 | double minVal = _minVal.get(); |
| 80 |
2/2✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
|
2 | if (result < minVal) { |
| 81 |
5/5✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
|
1 | LOG(Warn, "Calculated curve output is below minimumCurveOutput, resetting it."); |
| 82 | 1 | result = minVal; | |
| 83 | } | ||
| 84 | } | ||
| 85 | |||
| 86 |
3/3✓ Branch 1 taken 16 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 14 times.
|
32 | if (boost::optional<double> _maxVal = maximumCurveOutput()) { |
| 87 |
1/1✓ Branch 1 taken 2 times.
|
2 | double maxVal = _maxVal.get(); |
| 88 |
2/2✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
|
2 | if (result > maxVal) { |
| 89 |
5/5✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
|
1 | LOG(Warn, "Calculated curve output is above maximumCurveOutput, resetting it."); |
| 90 | 1 | result = maxVal; | |
| 91 | } | ||
| 92 | } | ||
| 93 | |||
| 94 | 16 | return result; | |
| 95 | } | ||
| 96 | |||
| 97 | 24 | double CurveFanPressureRise_Impl::coefficient1C1() const { | |
| 98 |
1/1✓ Branch 1 taken 24 times.
|
24 | boost::optional<double> value = getDouble(OS_Curve_FanPressureRiseFields::Coefficient1C1, true); |
| 99 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 24 times.
✗ Branch 4 not taken.
|
24 | OS_ASSERT(value); |
| 100 |
1/1✓ Branch 1 taken 24 times.
|
48 | return value.get(); |
| 101 | } | ||
| 102 | |||
| 103 | 24 | double CurveFanPressureRise_Impl::coefficient2C2() const { | |
| 104 |
1/1✓ Branch 1 taken 24 times.
|
24 | boost::optional<double> value = getDouble(OS_Curve_FanPressureRiseFields::Coefficient2C2, true); |
| 105 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 24 times.
✗ Branch 4 not taken.
|
24 | OS_ASSERT(value); |
| 106 |
1/1✓ Branch 1 taken 24 times.
|
48 | return value.get(); |
| 107 | } | ||
| 108 | |||
| 109 | 24 | double CurveFanPressureRise_Impl::coefficient3C3() const { | |
| 110 |
1/1✓ Branch 1 taken 24 times.
|
24 | boost::optional<double> value = getDouble(OS_Curve_FanPressureRiseFields::Coefficient3C3, true); |
| 111 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 24 times.
✗ Branch 4 not taken.
|
24 | OS_ASSERT(value); |
| 112 |
1/1✓ Branch 1 taken 24 times.
|
48 | return value.get(); |
| 113 | } | ||
| 114 | |||
| 115 | 24 | double CurveFanPressureRise_Impl::coefficient4C4() const { | |
| 116 |
1/1✓ Branch 1 taken 24 times.
|
24 | boost::optional<double> value = getDouble(OS_Curve_FanPressureRiseFields::Coefficient4C4, true); |
| 117 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 24 times.
✗ Branch 4 not taken.
|
24 | OS_ASSERT(value); |
| 118 |
1/1✓ Branch 1 taken 24 times.
|
48 | return value.get(); |
| 119 | } | ||
| 120 | |||
| 121 | 28 | double CurveFanPressureRise_Impl::minimumValueofQfan() const { | |
| 122 |
1/1✓ Branch 1 taken 28 times.
|
28 | boost::optional<double> value = getDouble(OS_Curve_FanPressureRiseFields::MinimumValueofQfan, true); |
| 123 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 28 times.
✗ Branch 4 not taken.
|
28 | OS_ASSERT(value); |
| 124 |
1/1✓ Branch 1 taken 28 times.
|
56 | return value.get(); |
| 125 | } | ||
| 126 | |||
| 127 | 28 | double CurveFanPressureRise_Impl::maximumValueofQfan() const { | |
| 128 |
1/1✓ Branch 1 taken 28 times.
|
28 | boost::optional<double> value = getDouble(OS_Curve_FanPressureRiseFields::MaximumValueofQfan, true); |
| 129 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 28 times.
✗ Branch 4 not taken.
|
28 | OS_ASSERT(value); |
| 130 |
1/1✓ Branch 1 taken 28 times.
|
56 | return value.get(); |
| 131 | } | ||
| 132 | |||
| 133 | 28 | double CurveFanPressureRise_Impl::minimumValueofPsm() const { | |
| 134 |
1/1✓ Branch 1 taken 28 times.
|
28 | boost::optional<double> value = getDouble(OS_Curve_FanPressureRiseFields::MinimumValueofPsm, true); |
| 135 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 28 times.
✗ Branch 4 not taken.
|
28 | OS_ASSERT(value); |
| 136 |
1/1✓ Branch 1 taken 28 times.
|
56 | return value.get(); |
| 137 | } | ||
| 138 | |||
| 139 | 28 | double CurveFanPressureRise_Impl::maximumValueofPsm() const { | |
| 140 |
1/1✓ Branch 1 taken 28 times.
|
28 | boost::optional<double> value = getDouble(OS_Curve_FanPressureRiseFields::MaximumValueofPsm, true); |
| 141 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 28 times.
✗ Branch 4 not taken.
|
28 | OS_ASSERT(value); |
| 142 |
1/1✓ Branch 1 taken 28 times.
|
56 | return value.get(); |
| 143 | } | ||
| 144 | |||
| 145 | 25 | boost::optional<double> CurveFanPressureRise_Impl::minimumCurveOutput() const { | |
| 146 | 25 | return getDouble(OS_Curve_FanPressureRiseFields::MinimumCurveOutput, true); | |
| 147 | } | ||
| 148 | |||
| 149 | 25 | boost::optional<double> CurveFanPressureRise_Impl::maximumCurveOutput() const { | |
| 150 | 25 | return getDouble(OS_Curve_FanPressureRiseFields::MaximumCurveOutput, true); | |
| 151 | } | ||
| 152 | |||
| 153 | 16 | bool CurveFanPressureRise_Impl::setCoefficient1C1(double coefficient1C1) { | |
| 154 | 16 | bool result = setDouble(OS_Curve_FanPressureRiseFields::Coefficient1C1, coefficient1C1); | |
| 155 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 16 times.
|
16 | OS_ASSERT(result); |
| 156 | 16 | return result; | |
| 157 | } | ||
| 158 | |||
| 159 | 16 | bool CurveFanPressureRise_Impl::setCoefficient2C2(double coefficient2C2) { | |
| 160 | 16 | bool result = setDouble(OS_Curve_FanPressureRiseFields::Coefficient2C2, coefficient2C2); | |
| 161 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 16 times.
|
16 | OS_ASSERT(result); |
| 162 | 16 | return result; | |
| 163 | } | ||
| 164 | |||
| 165 | 16 | bool CurveFanPressureRise_Impl::setCoefficient3C3(double coefficient3C3) { | |
| 166 | 16 | bool result = setDouble(OS_Curve_FanPressureRiseFields::Coefficient3C3, coefficient3C3); | |
| 167 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 16 times.
|
16 | OS_ASSERT(result); |
| 168 | 16 | return result; | |
| 169 | } | ||
| 170 | |||
| 171 | 16 | bool CurveFanPressureRise_Impl::setCoefficient4C4(double coefficient4C4) { | |
| 172 | 16 | bool result = setDouble(OS_Curve_FanPressureRiseFields::Coefficient4C4, coefficient4C4); | |
| 173 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 16 times.
|
16 | OS_ASSERT(result); |
| 174 | 16 | return result; | |
| 175 | } | ||
| 176 | |||
| 177 | 16 | bool CurveFanPressureRise_Impl::setMinimumValueofQfan(double minimumValueofQfan) { | |
| 178 | 16 | bool result = setDouble(OS_Curve_FanPressureRiseFields::MinimumValueofQfan, minimumValueofQfan); | |
| 179 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 16 times.
|
16 | OS_ASSERT(result); |
| 180 | 16 | return result; | |
| 181 | } | ||
| 182 | |||
| 183 | 16 | bool CurveFanPressureRise_Impl::setMaximumValueofQfan(double maximumValueofQfan) { | |
| 184 | 16 | bool result = setDouble(OS_Curve_FanPressureRiseFields::MaximumValueofQfan, maximumValueofQfan); | |
| 185 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 16 times.
|
16 | OS_ASSERT(result); |
| 186 | 16 | return result; | |
| 187 | } | ||
| 188 | |||
| 189 | 16 | bool CurveFanPressureRise_Impl::setMinimumValueofPsm(double minimumValueofPsm) { | |
| 190 | 16 | bool result = setDouble(OS_Curve_FanPressureRiseFields::MinimumValueofPsm, minimumValueofPsm); | |
| 191 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 16 times.
|
16 | OS_ASSERT(result); |
| 192 | 16 | return result; | |
| 193 | } | ||
| 194 | |||
| 195 | 16 | bool CurveFanPressureRise_Impl::setMaximumValueofPsm(double maximumValueofPsm) { | |
| 196 | 16 | bool result = setDouble(OS_Curve_FanPressureRiseFields::MaximumValueofPsm, maximumValueofPsm); | |
| 197 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 16 times.
|
16 | OS_ASSERT(result); |
| 198 | 16 | return result; | |
| 199 | } | ||
| 200 | |||
| 201 | 16 | bool CurveFanPressureRise_Impl::setMinimumCurveOutput(boost::optional<double> minimumCurveOutput) { | |
| 202 | 16 | bool result = false; | |
| 203 |
1/2✓ Branch 0 taken 16 times.
✗ Branch 1 not taken.
|
16 | if (minimumCurveOutput) { |
| 204 | 16 | result = setDouble(OS_Curve_FanPressureRiseFields::MinimumCurveOutput, minimumCurveOutput.get()); | |
| 205 | } else { | ||
| 206 | ✗ | result = setString(OS_Curve_FanPressureRiseFields::MinimumCurveOutput, ""); | |
| 207 | } | ||
| 208 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 16 times.
|
16 | OS_ASSERT(result); |
| 209 | 16 | return result; | |
| 210 | } | ||
| 211 | |||
| 212 | ✗ | void CurveFanPressureRise_Impl::resetMinimumCurveOutput() { | |
| 213 | ✗ | bool result = setString(OS_Curve_FanPressureRiseFields::MinimumCurveOutput, ""); | |
| 214 | ✗ | OS_ASSERT(result); | |
| 215 | ✗ | } | |
| 216 | |||
| 217 | 16 | bool CurveFanPressureRise_Impl::setMaximumCurveOutput(boost::optional<double> maximumCurveOutput) { | |
| 218 | 16 | bool result = false; | |
| 219 |
1/2✓ Branch 0 taken 16 times.
✗ Branch 1 not taken.
|
16 | if (maximumCurveOutput) { |
| 220 | 16 | result = setDouble(OS_Curve_FanPressureRiseFields::MaximumCurveOutput, maximumCurveOutput.get()); | |
| 221 | } else { | ||
| 222 | ✗ | result = setString(OS_Curve_FanPressureRiseFields::MaximumCurveOutput, ""); | |
| 223 | } | ||
| 224 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 16 times.
|
16 | OS_ASSERT(result); |
| 225 | 16 | return result; | |
| 226 | } | ||
| 227 | |||
| 228 | ✗ | void CurveFanPressureRise_Impl::resetMaximumCurveOutput() { | |
| 229 | ✗ | bool result = setString(OS_Curve_FanPressureRiseFields::MaximumCurveOutput, ""); | |
| 230 | ✗ | OS_ASSERT(result); | |
| 231 | ✗ | } | |
| 232 | |||
| 233 | } // namespace detail | ||
| 234 | |||
| 235 | 20 | CurveFanPressureRise::CurveFanPressureRise(const Model& model) : Curve(CurveFanPressureRise::iddObjectType(), model) { | |
| 236 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 20 times.
✗ Branch 5 not taken.
|
20 | OS_ASSERT(getImpl<detail::CurveFanPressureRise_Impl>()); |
| 237 |
1/1✓ Branch 1 taken 20 times.
|
20 | setDouble(OS_Curve_FanPressureRiseFields::Coefficient1C1, 1.0); |
| 238 |
1/1✓ Branch 1 taken 20 times.
|
20 | setDouble(OS_Curve_FanPressureRiseFields::Coefficient2C2, 1.0); |
| 239 |
1/1✓ Branch 1 taken 20 times.
|
20 | setDouble(OS_Curve_FanPressureRiseFields::Coefficient3C3, 1.0); |
| 240 |
1/1✓ Branch 1 taken 20 times.
|
20 | setDouble(OS_Curve_FanPressureRiseFields::Coefficient4C4, 1.0); |
| 241 |
1/1✓ Branch 1 taken 20 times.
|
20 | setDouble(OS_Curve_FanPressureRiseFields::MinimumValueofQfan, 0.0); |
| 242 |
1/1✓ Branch 1 taken 20 times.
|
20 | setDouble(OS_Curve_FanPressureRiseFields::MaximumValueofQfan, 10.0); |
| 243 |
1/1✓ Branch 1 taken 20 times.
|
20 | setDouble(OS_Curve_FanPressureRiseFields::MinimumValueofPsm, 0.0); |
| 244 |
1/1✓ Branch 1 taken 20 times.
|
20 | setDouble(OS_Curve_FanPressureRiseFields::MaximumValueofPsm, 500.0); |
| 245 | 20 | } | |
| 246 | |||
| 247 | 7639 | IddObjectType CurveFanPressureRise::iddObjectType() { | |
| 248 |
1/1✓ Branch 1 taken 7639 times.
|
7639 | IddObjectType result(IddObjectType::OS_Curve_FanPressureRise); |
| 249 | 7639 | return result; | |
| 250 | } | ||
| 251 | |||
| 252 | 8 | double CurveFanPressureRise::coefficient1C1() const { | |
| 253 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::CurveFanPressureRise_Impl>()->coefficient1C1(); |
| 254 | } | ||
| 255 | |||
| 256 | 8 | double CurveFanPressureRise::coefficient2C2() const { | |
| 257 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::CurveFanPressureRise_Impl>()->coefficient2C2(); |
| 258 | } | ||
| 259 | |||
| 260 | 8 | double CurveFanPressureRise::coefficient3C3() const { | |
| 261 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::CurveFanPressureRise_Impl>()->coefficient3C3(); |
| 262 | } | ||
| 263 | |||
| 264 | 8 | double CurveFanPressureRise::coefficient4C4() const { | |
| 265 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::CurveFanPressureRise_Impl>()->coefficient4C4(); |
| 266 | } | ||
| 267 | |||
| 268 | 8 | double CurveFanPressureRise::minimumValueofQfan() const { | |
| 269 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::CurveFanPressureRise_Impl>()->minimumValueofQfan(); |
| 270 | } | ||
| 271 | |||
| 272 | 8 | double CurveFanPressureRise::maximumValueofQfan() const { | |
| 273 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::CurveFanPressureRise_Impl>()->maximumValueofQfan(); |
| 274 | } | ||
| 275 | |||
| 276 | 8 | double CurveFanPressureRise::minimumValueofPsm() const { | |
| 277 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::CurveFanPressureRise_Impl>()->minimumValueofPsm(); |
| 278 | } | ||
| 279 | |||
| 280 | 8 | double CurveFanPressureRise::maximumValueofPsm() const { | |
| 281 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::CurveFanPressureRise_Impl>()->maximumValueofPsm(); |
| 282 | } | ||
| 283 | |||
| 284 | 9 | boost::optional<double> CurveFanPressureRise::minimumCurveOutput() const { | |
| 285 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::CurveFanPressureRise_Impl>()->minimumCurveOutput(); |
| 286 | } | ||
| 287 | |||
| 288 | 9 | boost::optional<double> CurveFanPressureRise::maximumCurveOutput() const { | |
| 289 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::CurveFanPressureRise_Impl>()->maximumCurveOutput(); |
| 290 | } | ||
| 291 | |||
| 292 | 16 | bool CurveFanPressureRise::setCoefficient1C1(double coefficient1C1) { | |
| 293 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CurveFanPressureRise_Impl>()->setCoefficient1C1(coefficient1C1); |
| 294 | } | ||
| 295 | |||
| 296 | 16 | bool CurveFanPressureRise::setCoefficient2C2(double coefficient2C2) { | |
| 297 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CurveFanPressureRise_Impl>()->setCoefficient2C2(coefficient2C2); |
| 298 | } | ||
| 299 | |||
| 300 | 16 | bool CurveFanPressureRise::setCoefficient3C3(double coefficient3C3) { | |
| 301 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CurveFanPressureRise_Impl>()->setCoefficient3C3(coefficient3C3); |
| 302 | } | ||
| 303 | |||
| 304 | 16 | bool CurveFanPressureRise::setCoefficient4C4(double coefficient4C4) { | |
| 305 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CurveFanPressureRise_Impl>()->setCoefficient4C4(coefficient4C4); |
| 306 | } | ||
| 307 | |||
| 308 | 16 | bool CurveFanPressureRise::setMinimumValueofQfan(double minimumValueofQfan) { | |
| 309 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CurveFanPressureRise_Impl>()->setMinimumValueofQfan(minimumValueofQfan); |
| 310 | } | ||
| 311 | |||
| 312 | 16 | bool CurveFanPressureRise::setMaximumValueofQfan(double maximumValueofQfan) { | |
| 313 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CurveFanPressureRise_Impl>()->setMaximumValueofQfan(maximumValueofQfan); |
| 314 | } | ||
| 315 | |||
| 316 | 16 | bool CurveFanPressureRise::setMinimumValueofPsm(double minimumValueofPsm) { | |
| 317 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CurveFanPressureRise_Impl>()->setMinimumValueofPsm(minimumValueofPsm); |
| 318 | } | ||
| 319 | |||
| 320 | 16 | bool CurveFanPressureRise::setMaximumValueofPsm(double maximumValueofPsm) { | |
| 321 |
1/1✓ Branch 3 taken 16 times.
|
16 | return getImpl<detail::CurveFanPressureRise_Impl>()->setMaximumValueofPsm(maximumValueofPsm); |
| 322 | } | ||
| 323 | |||
| 324 | 16 | bool CurveFanPressureRise::setMinimumCurveOutput(double minimumCurveOutput) { | |
| 325 |
2/2✓ Branch 3 taken 16 times.
✓ Branch 6 taken 16 times.
|
16 | return getImpl<detail::CurveFanPressureRise_Impl>()->setMinimumCurveOutput(minimumCurveOutput); |
| 326 | } | ||
| 327 | |||
| 328 | ✗ | void CurveFanPressureRise::resetMinimumCurveOutput() { | |
| 329 | ✗ | getImpl<detail::CurveFanPressureRise_Impl>()->resetMinimumCurveOutput(); | |
| 330 | ✗ | } | |
| 331 | |||
| 332 | 16 | bool CurveFanPressureRise::setMaximumCurveOutput(double maximumCurveOutput) { | |
| 333 |
2/2✓ Branch 3 taken 16 times.
✓ Branch 6 taken 16 times.
|
16 | return getImpl<detail::CurveFanPressureRise_Impl>()->setMaximumCurveOutput(maximumCurveOutput); |
| 334 | } | ||
| 335 | |||
| 336 | ✗ | void CurveFanPressureRise::resetMaximumCurveOutput() { | |
| 337 | ✗ | getImpl<detail::CurveFanPressureRise_Impl>()->resetMaximumCurveOutput(); | |
| 338 | ✗ | } | |
| 339 | |||
| 340 | /// @cond | ||
| 341 |
1/1✓ Branch 3 taken 6 times.
|
6 | CurveFanPressureRise::CurveFanPressureRise(std::shared_ptr<detail::CurveFanPressureRise_Impl> impl) : Curve(std::move(impl)) {} |
| 342 | /// @endcond | ||
| 343 | |||
| 344 | } // namespace model | ||
| 345 | } // namespace openstudio | ||
| 346 |