src/model/CoilCoolingDXVariableRefrigerantFlow.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 "Model.hpp" | ||
| 7 | #include "Model_Impl.hpp" | ||
| 8 | #include "CurveBiquadratic.hpp" | ||
| 9 | #include "CurveBiquadratic_Impl.hpp" | ||
| 10 | #include "CurveQuadratic.hpp" | ||
| 11 | #include "CurveQuadratic_Impl.hpp" | ||
| 12 | #include "CoilCoolingDXVariableRefrigerantFlow.hpp" | ||
| 13 | #include "CoilCoolingDXVariableRefrigerantFlow_Impl.hpp" | ||
| 14 | #include "Schedule.hpp" | ||
| 15 | #include "Schedule_Impl.hpp" | ||
| 16 | #include "Curve.hpp" | ||
| 17 | #include "Curve_Impl.hpp" | ||
| 18 | #include "Connection.hpp" | ||
| 19 | #include "Connection_Impl.hpp" | ||
| 20 | #include "ScheduleTypeLimits.hpp" | ||
| 21 | #include "ScheduleTypeRegistry.hpp" | ||
| 22 | #include <utilities/idd/OS_Coil_Cooling_DX_VariableRefrigerantFlow_FieldEnums.hxx> | ||
| 23 | #include <utilities/idd/IddEnums.hxx> | ||
| 24 | #include "../utilities/core/Assert.hpp" | ||
| 25 | #include "../utilities/data/DataEnums.hpp" | ||
| 26 | |||
| 27 | namespace openstudio { | ||
| 28 | |||
| 29 | namespace model { | ||
| 30 | |||
| 31 | namespace detail { | ||
| 32 | |||
| 33 | 52 | CoilCoolingDXVariableRefrigerantFlow_Impl::CoilCoolingDXVariableRefrigerantFlow_Impl(const IdfObject& idfObject, Model_Impl* model, | |
| 34 | 52 | bool keepHandle) | |
| 35 | 52 | : HVACComponent_Impl(idfObject, model, keepHandle) { | |
| 36 |
4/6✓ Branch 1 taken 52 times.
✓ Branch 4 taken 52 times.
✓ Branch 7 taken 52 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 52 times.
✗ Branch 13 not taken.
|
52 | OS_ASSERT(idfObject.iddObject().type() == CoilCoolingDXVariableRefrigerantFlow::iddObjectType()); |
| 37 | 52 | } | |
| 38 | |||
| 39 | 3 | CoilCoolingDXVariableRefrigerantFlow_Impl::CoilCoolingDXVariableRefrigerantFlow_Impl(const openstudio::detail::WorkspaceObject_Impl& other, | |
| 40 | 3 | Model_Impl* model, bool keepHandle) | |
| 41 | 3 | : HVACComponent_Impl(other, model, keepHandle) { | |
| 42 |
4/6✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 3 times.
✗ Branch 13 not taken.
|
3 | OS_ASSERT(other.iddObject().type() == CoilCoolingDXVariableRefrigerantFlow::iddObjectType()); |
| 43 | 3 | } | |
| 44 | |||
| 45 | 26 | CoilCoolingDXVariableRefrigerantFlow_Impl::CoilCoolingDXVariableRefrigerantFlow_Impl(const CoilCoolingDXVariableRefrigerantFlow_Impl& other, | |
| 46 | 26 | Model_Impl* model, bool keepHandle) | |
| 47 | 26 | : HVACComponent_Impl(other, model, keepHandle) {} | |
| 48 | |||
| 49 | ✗ | const std::vector<std::string>& CoilCoolingDXVariableRefrigerantFlow_Impl::outputVariableNames() const { | |
| 50 | // static for now, need to change if storage tank is implemented | ||
| 51 | static const std::vector<std::string> result{ | ||
| 52 | "Cooling Coil Total Cooling Rate", "Cooling Coil Total Cooling Energy", "Cooling Coil Sensible Cooling Rate", | ||
| 53 | "Cooling Coil Sensible Cooling Energy", "Cooling Coil Latent Cooling Rate", "Cooling Coil Latent Cooling Energy", | ||
| 54 | "Cooling Coil Runtime Fraction" | ||
| 55 | // Storage tank isn't implemented | ||
| 56 | // "Cooling Coil Condensate Volume Flow Rate", | ||
| 57 | // "Cooling Coil Condensate Volume" | ||
| 58 | ✗ | }; | |
| 59 | ✗ | return result; | |
| 60 | ✗ | } | |
| 61 | |||
| 62 | 51 | IddObjectType CoilCoolingDXVariableRefrigerantFlow_Impl::iddObjectType() const { | |
| 63 | 51 | return CoilCoolingDXVariableRefrigerantFlow::iddObjectType(); | |
| 64 | } | ||
| 65 | |||
| 66 | ✗ | std::vector<ScheduleTypeKey> CoilCoolingDXVariableRefrigerantFlow_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 67 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 68 | ✗ | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 69 | ✗ | UnsignedVector::const_iterator b(fieldIndices.begin()); | |
| 70 | ✗ | UnsignedVector::const_iterator e(fieldIndices.end()); | |
| 71 | ✗ | if (std::find(b, e, OS_Coil_Cooling_DX_VariableRefrigerantFlowFields::AvailabilitySchedule) != e) { | |
| 72 | ✗ | result.push_back(ScheduleTypeKey("CoilCoolingDXVariableRefrigerantFlow", "Availability Schedule")); | |
| 73 | } | ||
| 74 | ✗ | return result; | |
| 75 | ✗ | } | |
| 76 | |||
| 77 | 24 | Schedule CoilCoolingDXVariableRefrigerantFlow_Impl::availabilitySchedule() const { | |
| 78 |
1/1✓ Branch 1 taken 24 times.
|
24 | boost::optional<Schedule> value = optionalAvailabilitySchedule(); |
| 79 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 24 times.
|
24 | if (!value) { |
| 80 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Availability Schedule attached."); | |
| 81 | } | ||
| 82 |
2/2✓ Branch 1 taken 24 times.
✓ Branch 4 taken 24 times.
|
48 | return value.get(); |
| 83 | 24 | } | |
| 84 | |||
| 85 | ✗ | boost::optional<double> CoilCoolingDXVariableRefrigerantFlow_Impl::ratedTotalCoolingCapacity() const { | |
| 86 | ✗ | return getDouble(OS_Coil_Cooling_DX_VariableRefrigerantFlowFields::RatedTotalCoolingCapacity, true); | |
| 87 | } | ||
| 88 | |||
| 89 | 24 | bool CoilCoolingDXVariableRefrigerantFlow_Impl::isRatedTotalCoolingCapacityAutosized() const { | |
| 90 | 24 | bool result = false; | |
| 91 |
1/1✓ Branch 1 taken 24 times.
|
24 | boost::optional<std::string> value = getString(OS_Coil_Cooling_DX_VariableRefrigerantFlowFields::RatedTotalCoolingCapacity, true); |
| 92 |
1/2✓ Branch 0 taken 24 times.
✗ Branch 1 not taken.
|
24 | if (value) { |
| 93 |
3/3✓ Branch 1 taken 24 times.
✓ Branch 4 taken 24 times.
✓ Branch 7 taken 24 times.
|
48 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 94 | } | ||
| 95 | 24 | return result; | |
| 96 | 24 | } | |
| 97 | |||
| 98 | ✗ | boost::optional<double> CoilCoolingDXVariableRefrigerantFlow_Impl::ratedSensibleHeatRatio() const { | |
| 99 | ✗ | return getDouble(OS_Coil_Cooling_DX_VariableRefrigerantFlowFields::RatedSensibleHeatRatio, true); | |
| 100 | } | ||
| 101 | |||
| 102 | 24 | bool CoilCoolingDXVariableRefrigerantFlow_Impl::isRatedSensibleHeatRatioAutosized() const { | |
| 103 | 24 | bool result = false; | |
| 104 |
1/1✓ Branch 1 taken 24 times.
|
24 | boost::optional<std::string> value = getString(OS_Coil_Cooling_DX_VariableRefrigerantFlowFields::RatedSensibleHeatRatio, true); |
| 105 |
1/2✓ Branch 0 taken 24 times.
✗ Branch 1 not taken.
|
24 | if (value) { |
| 106 |
3/3✓ Branch 1 taken 24 times.
✓ Branch 4 taken 24 times.
✓ Branch 7 taken 24 times.
|
48 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 107 | } | ||
| 108 | 24 | return result; | |
| 109 | 24 | } | |
| 110 | |||
| 111 | ✗ | boost::optional<double> CoilCoolingDXVariableRefrigerantFlow_Impl::ratedAirFlowRate() const { | |
| 112 | ✗ | return getDouble(OS_Coil_Cooling_DX_VariableRefrigerantFlowFields::RatedAirFlowRate, true); | |
| 113 | } | ||
| 114 | |||
| 115 | 24 | bool CoilCoolingDXVariableRefrigerantFlow_Impl::isRatedAirFlowRateAutosized() const { | |
| 116 | 24 | bool result = false; | |
| 117 |
1/1✓ Branch 1 taken 24 times.
|
24 | boost::optional<std::string> value = getString(OS_Coil_Cooling_DX_VariableRefrigerantFlowFields::RatedAirFlowRate, true); |
| 118 |
1/2✓ Branch 0 taken 24 times.
✗ Branch 1 not taken.
|
24 | if (value) { |
| 119 |
3/3✓ Branch 1 taken 24 times.
✓ Branch 4 taken 24 times.
✓ Branch 7 taken 24 times.
|
48 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 120 | } | ||
| 121 | 24 | return result; | |
| 122 | 24 | } | |
| 123 | |||
| 124 | 52 | Curve CoilCoolingDXVariableRefrigerantFlow_Impl::coolingCapacityRatioModifierFunctionofTemperatureCurve() const { | |
| 125 |
1/1✓ Branch 1 taken 52 times.
|
52 | boost::optional<Curve> value = optionalCoolingCapacityRatioModifierFunctionofTemperatureCurve(); |
| 126 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 52 times.
|
52 | if (!value) { |
| 127 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Cooling Capacity Ratio Modifier Function of Temperature Curve attached."); | |
| 128 | } | ||
| 129 |
2/2✓ Branch 1 taken 52 times.
✓ Branch 4 taken 52 times.
|
104 | return value.get(); |
| 130 | 52 | } | |
| 131 | |||
| 132 | 52 | Curve CoilCoolingDXVariableRefrigerantFlow_Impl::coolingCapacityModifierCurveFunctionofFlowFraction() const { | |
| 133 |
1/1✓ Branch 1 taken 52 times.
|
52 | boost::optional<Curve> value = optionalCoolingCapacityModifierCurveFunctionofFlowFraction(); |
| 134 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 52 times.
|
52 | if (!value) { |
| 135 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Cooling Capacity Modifier Curve Function of Flow Fraction attached."); | |
| 136 | } | ||
| 137 |
2/2✓ Branch 1 taken 52 times.
✓ Branch 4 taken 52 times.
|
104 | return value.get(); |
| 138 | 52 | } | |
| 139 | |||
| 140 | 49 | bool CoilCoolingDXVariableRefrigerantFlow_Impl::setAvailabilitySchedule(Schedule& schedule) { | |
| 141 |
3/3✓ Branch 1 taken 49 times.
✓ Branch 4 taken 49 times.
✓ Branch 7 taken 49 times.
|
196 | bool result = setSchedule(OS_Coil_Cooling_DX_VariableRefrigerantFlowFields::AvailabilitySchedule, "CoilCoolingDXVariableRefrigerantFlow", |
| 142 | "Availability Schedule", schedule); | ||
| 143 | 49 | return result; | |
| 144 | } | ||
| 145 | |||
| 146 | ✗ | bool CoilCoolingDXVariableRefrigerantFlow_Impl::setRatedTotalCoolingCapacity(boost::optional<double> ratedTotalCoolingCapacity) { | |
| 147 | ✗ | bool result(false); | |
| 148 | ✗ | if (ratedTotalCoolingCapacity) { | |
| 149 | ✗ | result = setDouble(OS_Coil_Cooling_DX_VariableRefrigerantFlowFields::RatedTotalCoolingCapacity, ratedTotalCoolingCapacity.get()); | |
| 150 | } | ||
| 151 | ✗ | return result; | |
| 152 | } | ||
| 153 | |||
| 154 | 49 | void CoilCoolingDXVariableRefrigerantFlow_Impl::autosizeRatedTotalCoolingCapacity() { | |
| 155 |
2/2✓ Branch 1 taken 49 times.
✓ Branch 4 taken 49 times.
|
98 | bool result = setString(OS_Coil_Cooling_DX_VariableRefrigerantFlowFields::RatedTotalCoolingCapacity, "autosize"); |
| 156 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 49 times.
|
49 | OS_ASSERT(result); |
| 157 | 49 | } | |
| 158 | |||
| 159 | ✗ | bool CoilCoolingDXVariableRefrigerantFlow_Impl::setRatedSensibleHeatRatio(boost::optional<double> ratedSensibleHeatRatio) { | |
| 160 | ✗ | bool result(false); | |
| 161 | ✗ | if (ratedSensibleHeatRatio) { | |
| 162 | ✗ | result = setDouble(OS_Coil_Cooling_DX_VariableRefrigerantFlowFields::RatedSensibleHeatRatio, ratedSensibleHeatRatio.get()); | |
| 163 | } | ||
| 164 | ✗ | return result; | |
| 165 | } | ||
| 166 | |||
| 167 | 49 | void CoilCoolingDXVariableRefrigerantFlow_Impl::autosizeRatedSensibleHeatRatio() { | |
| 168 |
2/2✓ Branch 1 taken 49 times.
✓ Branch 4 taken 49 times.
|
98 | bool result = setString(OS_Coil_Cooling_DX_VariableRefrigerantFlowFields::RatedSensibleHeatRatio, "autosize"); |
| 169 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 49 times.
|
49 | OS_ASSERT(result); |
| 170 | 49 | } | |
| 171 | |||
| 172 | ✗ | bool CoilCoolingDXVariableRefrigerantFlow_Impl::setRatedAirFlowRate(boost::optional<double> ratedAirFlowRate) { | |
| 173 | ✗ | bool result(false); | |
| 174 | ✗ | if (ratedAirFlowRate) { | |
| 175 | ✗ | result = setDouble(OS_Coil_Cooling_DX_VariableRefrigerantFlowFields::RatedAirFlowRate, ratedAirFlowRate.get()); | |
| 176 | } | ||
| 177 | ✗ | return result; | |
| 178 | } | ||
| 179 | |||
| 180 | 49 | void CoilCoolingDXVariableRefrigerantFlow_Impl::autosizeRatedAirFlowRate() { | |
| 181 |
2/2✓ Branch 1 taken 49 times.
✓ Branch 4 taken 49 times.
|
98 | bool result = setString(OS_Coil_Cooling_DX_VariableRefrigerantFlowFields::RatedAirFlowRate, "autosize"); |
| 182 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 49 times.
|
49 | OS_ASSERT(result); |
| 183 | 49 | } | |
| 184 | |||
| 185 | 49 | bool CoilCoolingDXVariableRefrigerantFlow_Impl::setCoolingCapacityRatioModifierFunctionofTemperatureCurve(const Curve& curve) { | |
| 186 | bool result = | ||
| 187 |
2/2✓ Branch 1 taken 49 times.
✓ Branch 4 taken 49 times.
|
49 | setPointer(OS_Coil_Cooling_DX_VariableRefrigerantFlowFields::CoolingCapacityRatioModifierFunctionofTemperatureCurve, curve.handle()); |
| 188 | 49 | return result; | |
| 189 | } | ||
| 190 | |||
| 191 | 49 | bool CoilCoolingDXVariableRefrigerantFlow_Impl::setCoolingCapacityModifierCurveFunctionofFlowFraction(const Curve& curve) { | |
| 192 |
2/2✓ Branch 1 taken 49 times.
✓ Branch 4 taken 49 times.
|
49 | bool result = setPointer(OS_Coil_Cooling_DX_VariableRefrigerantFlowFields::CoolingCapacityModifierCurveFunctionofFlowFraction, curve.handle()); |
| 193 | 49 | return result; | |
| 194 | } | ||
| 195 | |||
| 196 | 24 | boost::optional<Schedule> CoilCoolingDXVariableRefrigerantFlow_Impl::optionalAvailabilitySchedule() const { | |
| 197 |
2/2✓ Branch 1 taken 24 times.
✓ Branch 4 taken 24 times.
|
24 | return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_Coil_Cooling_DX_VariableRefrigerantFlowFields::AvailabilitySchedule); |
| 198 | } | ||
| 199 | |||
| 200 | 52 | boost::optional<Curve> CoilCoolingDXVariableRefrigerantFlow_Impl::optionalCoolingCapacityRatioModifierFunctionofTemperatureCurve() const { | |
| 201 |
1/1✓ Branch 1 taken 52 times.
|
104 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 202 |
1/1✓ Branch 1 taken 52 times.
|
104 | OS_Coil_Cooling_DX_VariableRefrigerantFlowFields::CoolingCapacityRatioModifierFunctionofTemperatureCurve); |
| 203 | } | ||
| 204 | |||
| 205 | 52 | boost::optional<Curve> CoilCoolingDXVariableRefrigerantFlow_Impl::optionalCoolingCapacityModifierCurveFunctionofFlowFraction() const { | |
| 206 |
1/1✓ Branch 1 taken 52 times.
|
104 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 207 |
1/1✓ Branch 1 taken 52 times.
|
104 | OS_Coil_Cooling_DX_VariableRefrigerantFlowFields::CoolingCapacityModifierCurveFunctionofFlowFraction); |
| 208 | } | ||
| 209 | |||
| 210 | ✗ | ModelObject CoilCoolingDXVariableRefrigerantFlow_Impl::clone(Model model) const { | |
| 211 | ✗ | auto objectClone = HVACComponent_Impl::clone(model).cast<CoilCoolingDXVariableRefrigerantFlow>(); | |
| 212 | |||
| 213 | ✗ | return std::move(objectClone); | |
| 214 | ✗ | } | |
| 215 | |||
| 216 | 28 | std::vector<ModelObject> CoilCoolingDXVariableRefrigerantFlow_Impl::children() const { | |
| 217 | 28 | std::vector<ModelObject> result; | |
| 218 | |||
| 219 |
2/2✓ Branch 1 taken 28 times.
✓ Branch 4 taken 28 times.
|
28 | result.push_back(coolingCapacityRatioModifierFunctionofTemperatureCurve()); |
| 220 |
2/2✓ Branch 1 taken 28 times.
✓ Branch 4 taken 28 times.
|
28 | result.push_back(coolingCapacityModifierCurveFunctionofFlowFraction()); |
| 221 | |||
| 222 | 28 | return result; | |
| 223 | ✗ | } | |
| 224 | |||
| 225 | ✗ | boost::optional<double> CoilCoolingDXVariableRefrigerantFlow_Impl::autosizedRatedTotalCoolingCapacity() const { | |
| 226 | ✗ | return getAutosizedValue("Design Size Gross Rated Total Cooling Capacity", "W"); | |
| 227 | } | ||
| 228 | |||
| 229 | ✗ | boost::optional<double> CoilCoolingDXVariableRefrigerantFlow_Impl::autosizedRatedSensibleHeatRatio() const { | |
| 230 | ✗ | return getAutosizedValue("Design Size Gross Rated Sensible Heat Ratio", ""); | |
| 231 | } | ||
| 232 | |||
| 233 | ✗ | boost::optional<double> CoilCoolingDXVariableRefrigerantFlow_Impl::autosizedRatedAirFlowRate() const { | |
| 234 | ✗ | return getAutosizedValue("Design Size Rated Air Flow Rate", "m3/s"); | |
| 235 | } | ||
| 236 | |||
| 237 | ✗ | void CoilCoolingDXVariableRefrigerantFlow_Impl::autosize() { | |
| 238 | ✗ | autosizeRatedTotalCoolingCapacity(); | |
| 239 | ✗ | autosizeRatedSensibleHeatRatio(); | |
| 240 | ✗ | autosizeRatedAirFlowRate(); | |
| 241 | ✗ | } | |
| 242 | |||
| 243 | ✗ | void CoilCoolingDXVariableRefrigerantFlow_Impl::applySizingValues() { | |
| 244 | ✗ | boost::optional<double> val; | |
| 245 | ✗ | val = autosizedRatedTotalCoolingCapacity(); | |
| 246 | ✗ | if (val) { | |
| 247 | ✗ | setRatedTotalCoolingCapacity(val.get()); | |
| 248 | } | ||
| 249 | |||
| 250 | ✗ | val = autosizedRatedSensibleHeatRatio(); | |
| 251 | ✗ | if (val) { | |
| 252 | ✗ | setRatedSensibleHeatRatio(val.get()); | |
| 253 | } | ||
| 254 | |||
| 255 | ✗ | val = autosizedRatedAirFlowRate(); | |
| 256 | ✗ | if (val) { | |
| 257 | ✗ | setRatedAirFlowRate(val.get()); | |
| 258 | } | ||
| 259 | ✗ | } | |
| 260 | |||
| 261 | ✗ | ComponentType CoilCoolingDXVariableRefrigerantFlow_Impl::componentType() const { | |
| 262 | ✗ | return ComponentType::Cooling; | |
| 263 | } | ||
| 264 | |||
| 265 | 2 | std::vector<FuelType> CoilCoolingDXVariableRefrigerantFlow_Impl::coolingFuelTypes() const { | |
| 266 |
1/1✓ Branch 1 taken 2 times.
|
6 | return {FuelType::Electricity}; |
| 267 | } | ||
| 268 | |||
| 269 | ✗ | std::vector<FuelType> CoilCoolingDXVariableRefrigerantFlow_Impl::heatingFuelTypes() const { | |
| 270 | ✗ | return {}; | |
| 271 | } | ||
| 272 | |||
| 273 | ✗ | std::vector<AppGFuelType> CoilCoolingDXVariableRefrigerantFlow_Impl::appGHeatingFuelTypes() const { | |
| 274 | ✗ | return {}; | |
| 275 | } | ||
| 276 | |||
| 277 | } // namespace detail | ||
| 278 | |||
| 279 | 49 | CoilCoolingDXVariableRefrigerantFlow::CoilCoolingDXVariableRefrigerantFlow(const Model& model) | |
| 280 | 49 | : HVACComponent(CoilCoolingDXVariableRefrigerantFlow::iddObjectType(), model) { | |
| 281 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 49 times.
✗ Branch 5 not taken.
|
49 | OS_ASSERT(getImpl<detail::CoilCoolingDXVariableRefrigerantFlow_Impl>()); |
| 282 | |||
| 283 |
1/1✓ Branch 1 taken 49 times.
|
49 | Schedule schedule = model.alwaysOnDiscreteSchedule(); |
| 284 |
1/1✓ Branch 1 taken 49 times.
|
49 | setAvailabilitySchedule(schedule); |
| 285 | |||
| 286 |
1/1✓ Branch 1 taken 49 times.
|
49 | autosizeRatedTotalCoolingCapacity(); |
| 287 | |||
| 288 |
1/1✓ Branch 1 taken 49 times.
|
49 | autosizeRatedSensibleHeatRatio(); |
| 289 | |||
| 290 |
1/1✓ Branch 1 taken 49 times.
|
49 | autosizeRatedAirFlowRate(); |
| 291 | |||
| 292 |
1/1✓ Branch 1 taken 49 times.
|
49 | CurveBiquadratic vrfTUCoolCapFT(model); |
| 293 |
2/2✓ Branch 1 taken 49 times.
✓ Branch 4 taken 49 times.
|
49 | vrfTUCoolCapFT.setName("VRFTUCoolCapFT"); |
| 294 |
1/1✓ Branch 1 taken 49 times.
|
49 | vrfTUCoolCapFT.setCoefficient1Constant(5.85884077803259E-02); |
| 295 |
1/1✓ Branch 1 taken 49 times.
|
49 | vrfTUCoolCapFT.setCoefficient2x(5.87396532718384E-02); |
| 296 |
1/1✓ Branch 1 taken 49 times.
|
49 | vrfTUCoolCapFT.setCoefficient3xPOW2(-2.10274979759697E-04); |
| 297 |
1/1✓ Branch 1 taken 49 times.
|
49 | vrfTUCoolCapFT.setCoefficient4y(1.09370473889647E-02); |
| 298 |
1/1✓ Branch 1 taken 49 times.
|
49 | vrfTUCoolCapFT.setCoefficient5yPOW2(-0.0001219549); |
| 299 |
1/1✓ Branch 1 taken 49 times.
|
49 | vrfTUCoolCapFT.setCoefficient6xTIMESY(-0.0005246615); |
| 300 |
1/1✓ Branch 1 taken 49 times.
|
49 | vrfTUCoolCapFT.setMinimumValueofx(15); |
| 301 |
1/1✓ Branch 1 taken 49 times.
|
49 | vrfTUCoolCapFT.setMaximumValueofx(23.89); |
| 302 |
1/1✓ Branch 1 taken 49 times.
|
49 | vrfTUCoolCapFT.setMinimumValueofy(20); |
| 303 |
1/1✓ Branch 1 taken 49 times.
|
49 | vrfTUCoolCapFT.setMaximumValueofy(43.33); |
| 304 |
1/1✓ Branch 1 taken 49 times.
|
49 | vrfTUCoolCapFT.setMinimumCurveOutput(0.8083); |
| 305 |
1/1✓ Branch 1 taken 49 times.
|
49 | vrfTUCoolCapFT.setMaximumCurveOutput(1.2583); |
| 306 |
1/1✓ Branch 1 taken 49 times.
|
49 | setCoolingCapacityRatioModifierFunctionofTemperatureCurve(vrfTUCoolCapFT); |
| 307 | |||
| 308 |
1/1✓ Branch 1 taken 49 times.
|
49 | CurveQuadratic vrfACCoolCapFFF(model); |
| 309 |
2/2✓ Branch 1 taken 49 times.
✓ Branch 4 taken 49 times.
|
49 | vrfACCoolCapFFF.setName("VRFACCoolCapFFF"); |
| 310 |
1/1✓ Branch 1 taken 49 times.
|
49 | vrfACCoolCapFFF.setCoefficient1Constant(0.8); |
| 311 |
1/1✓ Branch 1 taken 49 times.
|
49 | vrfACCoolCapFFF.setCoefficient2x(0.2); |
| 312 |
1/1✓ Branch 1 taken 49 times.
|
49 | vrfACCoolCapFFF.setCoefficient3xPOW2(0.0); |
| 313 |
1/1✓ Branch 1 taken 49 times.
|
49 | vrfACCoolCapFFF.setMinimumValueofx(0.5); |
| 314 |
1/1✓ Branch 1 taken 49 times.
|
49 | vrfACCoolCapFFF.setMaximumValueofx(1.5); |
| 315 |
1/1✓ Branch 1 taken 49 times.
|
49 | setCoolingCapacityModifierCurveFunctionofFlowFraction(vrfACCoolCapFFF); |
| 316 | 49 | } | |
| 317 | |||
| 318 | 7753 | IddObjectType CoilCoolingDXVariableRefrigerantFlow::iddObjectType() { | |
| 319 |
1/1✓ Branch 1 taken 7753 times.
|
7753 | return {IddObjectType::OS_Coil_Cooling_DX_VariableRefrigerantFlow}; |
| 320 | } | ||
| 321 | |||
| 322 | 24 | Schedule CoilCoolingDXVariableRefrigerantFlow::availabilitySchedule() const { | |
| 323 |
1/1✓ Branch 3 taken 24 times.
|
24 | return getImpl<detail::CoilCoolingDXVariableRefrigerantFlow_Impl>()->availabilitySchedule(); |
| 324 | } | ||
| 325 | |||
| 326 | ✗ | boost::optional<double> CoilCoolingDXVariableRefrigerantFlow::ratedTotalCoolingCapacity() const { | |
| 327 | ✗ | return getImpl<detail::CoilCoolingDXVariableRefrigerantFlow_Impl>()->ratedTotalCoolingCapacity(); | |
| 328 | } | ||
| 329 | |||
| 330 | 24 | bool CoilCoolingDXVariableRefrigerantFlow::isRatedTotalCoolingCapacityAutosized() const { | |
| 331 |
1/1✓ Branch 3 taken 24 times.
|
24 | return getImpl<detail::CoilCoolingDXVariableRefrigerantFlow_Impl>()->isRatedTotalCoolingCapacityAutosized(); |
| 332 | } | ||
| 333 | |||
| 334 | ✗ | boost::optional<double> CoilCoolingDXVariableRefrigerantFlow::ratedSensibleHeatRatio() const { | |
| 335 | ✗ | return getImpl<detail::CoilCoolingDXVariableRefrigerantFlow_Impl>()->ratedSensibleHeatRatio(); | |
| 336 | } | ||
| 337 | |||
| 338 | 24 | bool CoilCoolingDXVariableRefrigerantFlow::isRatedSensibleHeatRatioAutosized() const { | |
| 339 |
1/1✓ Branch 3 taken 24 times.
|
24 | return getImpl<detail::CoilCoolingDXVariableRefrigerantFlow_Impl>()->isRatedSensibleHeatRatioAutosized(); |
| 340 | } | ||
| 341 | |||
| 342 | ✗ | boost::optional<double> CoilCoolingDXVariableRefrigerantFlow::ratedAirFlowRate() const { | |
| 343 | ✗ | return getImpl<detail::CoilCoolingDXVariableRefrigerantFlow_Impl>()->ratedAirFlowRate(); | |
| 344 | } | ||
| 345 | |||
| 346 | 24 | bool CoilCoolingDXVariableRefrigerantFlow::isRatedAirFlowRateAutosized() const { | |
| 347 |
1/1✓ Branch 3 taken 24 times.
|
24 | return getImpl<detail::CoilCoolingDXVariableRefrigerantFlow_Impl>()->isRatedAirFlowRateAutosized(); |
| 348 | } | ||
| 349 | |||
| 350 | 24 | Curve CoilCoolingDXVariableRefrigerantFlow::coolingCapacityRatioModifierFunctionofTemperatureCurve() const { | |
| 351 |
1/1✓ Branch 3 taken 24 times.
|
24 | return getImpl<detail::CoilCoolingDXVariableRefrigerantFlow_Impl>()->coolingCapacityRatioModifierFunctionofTemperatureCurve(); |
| 352 | } | ||
| 353 | |||
| 354 | 24 | Curve CoilCoolingDXVariableRefrigerantFlow::coolingCapacityModifierCurveFunctionofFlowFraction() const { | |
| 355 |
1/1✓ Branch 3 taken 24 times.
|
24 | return getImpl<detail::CoilCoolingDXVariableRefrigerantFlow_Impl>()->coolingCapacityModifierCurveFunctionofFlowFraction(); |
| 356 | } | ||
| 357 | |||
| 358 | 49 | bool CoilCoolingDXVariableRefrigerantFlow::setAvailabilitySchedule(Schedule& schedule) { | |
| 359 |
1/1✓ Branch 3 taken 49 times.
|
49 | return getImpl<detail::CoilCoolingDXVariableRefrigerantFlow_Impl>()->setAvailabilitySchedule(schedule); |
| 360 | } | ||
| 361 | |||
| 362 | ✗ | bool CoilCoolingDXVariableRefrigerantFlow::setRatedTotalCoolingCapacity(double ratedTotalCoolingCapacity) { | |
| 363 | ✗ | return getImpl<detail::CoilCoolingDXVariableRefrigerantFlow_Impl>()->setRatedTotalCoolingCapacity(ratedTotalCoolingCapacity); | |
| 364 | } | ||
| 365 | |||
| 366 | 49 | void CoilCoolingDXVariableRefrigerantFlow::autosizeRatedTotalCoolingCapacity() { | |
| 367 |
1/1✓ Branch 3 taken 49 times.
|
49 | getImpl<detail::CoilCoolingDXVariableRefrigerantFlow_Impl>()->autosizeRatedTotalCoolingCapacity(); |
| 368 | 49 | } | |
| 369 | |||
| 370 | ✗ | bool CoilCoolingDXVariableRefrigerantFlow::setRatedSensibleHeatRatio(double ratedSensibleHeatRatio) { | |
| 371 | ✗ | return getImpl<detail::CoilCoolingDXVariableRefrigerantFlow_Impl>()->setRatedSensibleHeatRatio(ratedSensibleHeatRatio); | |
| 372 | } | ||
| 373 | |||
| 374 | 49 | void CoilCoolingDXVariableRefrigerantFlow::autosizeRatedSensibleHeatRatio() { | |
| 375 |
1/1✓ Branch 3 taken 49 times.
|
49 | getImpl<detail::CoilCoolingDXVariableRefrigerantFlow_Impl>()->autosizeRatedSensibleHeatRatio(); |
| 376 | 49 | } | |
| 377 | |||
| 378 | ✗ | bool CoilCoolingDXVariableRefrigerantFlow::setRatedAirFlowRate(double ratedAirFlowRate) { | |
| 379 | ✗ | return getImpl<detail::CoilCoolingDXVariableRefrigerantFlow_Impl>()->setRatedAirFlowRate(ratedAirFlowRate); | |
| 380 | } | ||
| 381 | |||
| 382 | 49 | void CoilCoolingDXVariableRefrigerantFlow::autosizeRatedAirFlowRate() { | |
| 383 |
1/1✓ Branch 3 taken 49 times.
|
49 | getImpl<detail::CoilCoolingDXVariableRefrigerantFlow_Impl>()->autosizeRatedAirFlowRate(); |
| 384 | 49 | } | |
| 385 | |||
| 386 | 49 | bool CoilCoolingDXVariableRefrigerantFlow::setCoolingCapacityRatioModifierFunctionofTemperatureCurve(const Curve& curve) { | |
| 387 |
1/1✓ Branch 3 taken 49 times.
|
49 | return getImpl<detail::CoilCoolingDXVariableRefrigerantFlow_Impl>()->setCoolingCapacityRatioModifierFunctionofTemperatureCurve(curve); |
| 388 | } | ||
| 389 | |||
| 390 | 49 | bool CoilCoolingDXVariableRefrigerantFlow::setCoolingCapacityModifierCurveFunctionofFlowFraction(const Curve& curve) { | |
| 391 |
1/1✓ Branch 3 taken 49 times.
|
49 | return getImpl<detail::CoilCoolingDXVariableRefrigerantFlow_Impl>()->setCoolingCapacityModifierCurveFunctionofFlowFraction(curve); |
| 392 | } | ||
| 393 | |||
| 394 | /// @cond | ||
| 395 | 24 | CoilCoolingDXVariableRefrigerantFlow::CoilCoolingDXVariableRefrigerantFlow(std::shared_ptr<detail::CoilCoolingDXVariableRefrigerantFlow_Impl> impl) | |
| 396 |
1/1✓ Branch 3 taken 24 times.
|
24 | : HVACComponent(std::move(impl)) {} |
| 397 | /// @endcond | ||
| 398 | |||
| 399 | ✗ | boost::optional<double> CoilCoolingDXVariableRefrigerantFlow::autosizedRatedTotalCoolingCapacity() const { | |
| 400 | ✗ | return getImpl<detail::CoilCoolingDXVariableRefrigerantFlow_Impl>()->autosizedRatedTotalCoolingCapacity(); | |
| 401 | } | ||
| 402 | |||
| 403 | ✗ | boost::optional<double> CoilCoolingDXVariableRefrigerantFlow::autosizedRatedSensibleHeatRatio() const { | |
| 404 | ✗ | return getImpl<detail::CoilCoolingDXVariableRefrigerantFlow_Impl>()->autosizedRatedSensibleHeatRatio(); | |
| 405 | } | ||
| 406 | |||
| 407 | ✗ | boost::optional<double> CoilCoolingDXVariableRefrigerantFlow::autosizedRatedAirFlowRate() const { | |
| 408 | ✗ | return getImpl<detail::CoilCoolingDXVariableRefrigerantFlow_Impl>()->autosizedRatedAirFlowRate(); | |
| 409 | } | ||
| 410 | |||
| 411 | } // namespace model | ||
| 412 | } // namespace openstudio | ||
| 413 |