src/model/CoilHeatingDXVariableRefrigerantFlow.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 "CoilHeatingDXVariableRefrigerantFlow.hpp" | ||
| 9 | #include "CoilHeatingDXVariableRefrigerantFlow_Impl.hpp" | ||
| 10 | #include "Schedule.hpp" | ||
| 11 | #include "Schedule_Impl.hpp" | ||
| 12 | #include "Curve.hpp" | ||
| 13 | #include "Curve_Impl.hpp" | ||
| 14 | #include "CurveBiquadratic.hpp" | ||
| 15 | #include "CurveBiquadratic_Impl.hpp" | ||
| 16 | #include "CurveQuadratic.hpp" | ||
| 17 | #include "CurveQuadratic_Impl.hpp" | ||
| 18 | #include "ScheduleTypeLimits.hpp" | ||
| 19 | #include "ScheduleTypeRegistry.hpp" | ||
| 20 | #include <utilities/idd/OS_Coil_Heating_DX_VariableRefrigerantFlow_FieldEnums.hxx> | ||
| 21 | #include <utilities/idd/IddEnums.hxx> | ||
| 22 | #include "../utilities/core/Assert.hpp" | ||
| 23 | #include "../utilities/data/DataEnums.hpp" | ||
| 24 | |||
| 25 | namespace openstudio { | ||
| 26 | |||
| 27 | namespace model { | ||
| 28 | |||
| 29 | namespace detail { | ||
| 30 | |||
| 31 | 53 | CoilHeatingDXVariableRefrigerantFlow_Impl::CoilHeatingDXVariableRefrigerantFlow_Impl(const IdfObject& idfObject, Model_Impl* model, | |
| 32 | 53 | bool keepHandle) | |
| 33 | 53 | : HVACComponent_Impl(idfObject, model, keepHandle) { | |
| 34 |
4/6✓ Branch 1 taken 53 times.
✓ Branch 4 taken 53 times.
✓ Branch 7 taken 53 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 53 times.
✗ Branch 13 not taken.
|
53 | OS_ASSERT(idfObject.iddObject().type() == CoilHeatingDXVariableRefrigerantFlow::iddObjectType()); |
| 35 | 53 | } | |
| 36 | |||
| 37 | 3 | CoilHeatingDXVariableRefrigerantFlow_Impl::CoilHeatingDXVariableRefrigerantFlow_Impl(const openstudio::detail::WorkspaceObject_Impl& other, | |
| 38 | 3 | Model_Impl* model, bool keepHandle) | |
| 39 | 3 | : HVACComponent_Impl(other, model, keepHandle) { | |
| 40 |
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() == CoilHeatingDXVariableRefrigerantFlow::iddObjectType()); |
| 41 | 3 | } | |
| 42 | |||
| 43 | 26 | CoilHeatingDXVariableRefrigerantFlow_Impl::CoilHeatingDXVariableRefrigerantFlow_Impl(const CoilHeatingDXVariableRefrigerantFlow_Impl& other, | |
| 44 | 26 | Model_Impl* model, bool keepHandle) | |
| 45 | 26 | : HVACComponent_Impl(other, model, keepHandle) {} | |
| 46 | |||
| 47 | ✗ | const std::vector<std::string>& CoilHeatingDXVariableRefrigerantFlow_Impl::outputVariableNames() const { | |
| 48 | static const std::vector<std::string> result{"Heating Coil Total Heating Rate", "Heating Coil Total Heating Energy", | ||
| 49 | ✗ | "Heating Coil Runtime Fraction"}; | |
| 50 | ✗ | return result; | |
| 51 | ✗ | } | |
| 52 | |||
| 53 | 145 | IddObjectType CoilHeatingDXVariableRefrigerantFlow_Impl::iddObjectType() const { | |
| 54 | 145 | return CoilHeatingDXVariableRefrigerantFlow::iddObjectType(); | |
| 55 | } | ||
| 56 | |||
| 57 | ✗ | std::vector<ScheduleTypeKey> CoilHeatingDXVariableRefrigerantFlow_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 58 | // TODO: Check schedule display names. | ||
| 59 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 60 | ✗ | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 61 | ✗ | UnsignedVector::const_iterator b(fieldIndices.begin()); | |
| 62 | ✗ | UnsignedVector::const_iterator e(fieldIndices.end()); | |
| 63 | ✗ | if (std::find(b, e, OS_Coil_Heating_DX_VariableRefrigerantFlowFields::AvailabilitySchedule) != e) { | |
| 64 | ✗ | result.push_back(ScheduleTypeKey("CoilHeatingDXVariableRefrigerantFlow", "Availability Schedule")); | |
| 65 | } | ||
| 66 | ✗ | return result; | |
| 67 | ✗ | } | |
| 68 | |||
| 69 | 24 | Schedule CoilHeatingDXVariableRefrigerantFlow_Impl::availabilitySchedule() const { | |
| 70 |
1/1✓ Branch 1 taken 24 times.
|
24 | boost::optional<Schedule> value = optionalAvailabilitySchedule(); |
| 71 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 24 times.
|
24 | if (!value) { |
| 72 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Availability Schedule attached."); | |
| 73 | } | ||
| 74 |
2/2✓ Branch 1 taken 24 times.
✓ Branch 4 taken 24 times.
|
48 | return value.get(); |
| 75 | 24 | } | |
| 76 | |||
| 77 | ✗ | boost::optional<double> CoilHeatingDXVariableRefrigerantFlow_Impl::ratedTotalHeatingCapacity() const { | |
| 78 | ✗ | return getDouble(OS_Coil_Heating_DX_VariableRefrigerantFlowFields::RatedTotalHeatingCapacity, true); | |
| 79 | } | ||
| 80 | |||
| 81 | 24 | bool CoilHeatingDXVariableRefrigerantFlow_Impl::isRatedTotalHeatingCapacityAutosized() const { | |
| 82 | 24 | bool result = false; | |
| 83 |
1/1✓ Branch 1 taken 24 times.
|
24 | boost::optional<std::string> value = getString(OS_Coil_Heating_DX_VariableRefrigerantFlowFields::RatedTotalHeatingCapacity, true); |
| 84 |
1/2✓ Branch 0 taken 24 times.
✗ Branch 1 not taken.
|
24 | if (value) { |
| 85 |
3/3✓ Branch 1 taken 24 times.
✓ Branch 4 taken 24 times.
✓ Branch 7 taken 24 times.
|
48 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 86 | } | ||
| 87 | 24 | return result; | |
| 88 | 24 | } | |
| 89 | |||
| 90 | ✗ | boost::optional<double> CoilHeatingDXVariableRefrigerantFlow_Impl::ratedAirFlowRate() const { | |
| 91 | ✗ | return getDouble(OS_Coil_Heating_DX_VariableRefrigerantFlowFields::RatedAirFlowRate, true); | |
| 92 | } | ||
| 93 | |||
| 94 | 24 | bool CoilHeatingDXVariableRefrigerantFlow_Impl::isRatedAirFlowRateAutosized() const { | |
| 95 | 24 | bool result = false; | |
| 96 |
1/1✓ Branch 1 taken 24 times.
|
24 | boost::optional<std::string> value = getString(OS_Coil_Heating_DX_VariableRefrigerantFlowFields::RatedAirFlowRate, true); |
| 97 |
1/2✓ Branch 0 taken 24 times.
✗ Branch 1 not taken.
|
24 | if (value) { |
| 98 |
3/3✓ Branch 1 taken 24 times.
✓ Branch 4 taken 24 times.
✓ Branch 7 taken 24 times.
|
48 | result = openstudio::istringEqual(value.get(), "autosize"); |
| 99 | } | ||
| 100 | 24 | return result; | |
| 101 | 24 | } | |
| 102 | |||
| 103 | 52 | Curve CoilHeatingDXVariableRefrigerantFlow_Impl::heatingCapacityRatioModifierFunctionofTemperatureCurve() const { | |
| 104 |
1/1✓ Branch 1 taken 52 times.
|
52 | boost::optional<Curve> value = optionalHeatingCapacityRatioModifierFunctionofTemperatureCurve(); |
| 105 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 52 times.
|
52 | if (!value) { |
| 106 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Heating Capacity Ratio Modifier Function of Temperature Curve attached."); | |
| 107 | } | ||
| 108 |
2/2✓ Branch 1 taken 52 times.
✓ Branch 4 taken 52 times.
|
104 | return value.get(); |
| 109 | 52 | } | |
| 110 | |||
| 111 | 52 | Curve CoilHeatingDXVariableRefrigerantFlow_Impl::heatingCapacityModifierFunctionofFlowFractionCurve() const { | |
| 112 |
1/1✓ Branch 1 taken 52 times.
|
52 | boost::optional<Curve> value = optionalHeatingCapacityModifierFunctionofFlowFractionCurve(); |
| 113 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 52 times.
|
52 | if (!value) { |
| 114 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Heating Capacity Modifier Function of Flow Fraction Curve attached."); | |
| 115 | } | ||
| 116 |
2/2✓ Branch 1 taken 52 times.
✓ Branch 4 taken 52 times.
|
104 | return value.get(); |
| 117 | 52 | } | |
| 118 | |||
| 119 | 50 | bool CoilHeatingDXVariableRefrigerantFlow_Impl::setAvailabilitySchedule(Schedule& schedule) { | |
| 120 |
3/3✓ Branch 1 taken 50 times.
✓ Branch 4 taken 50 times.
✓ Branch 7 taken 50 times.
|
200 | bool result = setSchedule(OS_Coil_Heating_DX_VariableRefrigerantFlowFields::AvailabilitySchedule, "CoilHeatingDXVariableRefrigerantFlow", |
| 121 | "Availability Schedule", schedule); | ||
| 122 | 50 | return result; | |
| 123 | } | ||
| 124 | |||
| 125 | ✗ | bool CoilHeatingDXVariableRefrigerantFlow_Impl::setRatedTotalHeatingCapacity(boost::optional<double> ratedTotalHeatingCapacity) { | |
| 126 | ✗ | bool result(false); | |
| 127 | ✗ | if (ratedTotalHeatingCapacity) { | |
| 128 | ✗ | result = setDouble(OS_Coil_Heating_DX_VariableRefrigerantFlowFields::RatedTotalHeatingCapacity, ratedTotalHeatingCapacity.get()); | |
| 129 | } | ||
| 130 | ✗ | return result; | |
| 131 | } | ||
| 132 | |||
| 133 | 50 | void CoilHeatingDXVariableRefrigerantFlow_Impl::autosizeRatedTotalHeatingCapacity() { | |
| 134 |
2/2✓ Branch 1 taken 50 times.
✓ Branch 4 taken 50 times.
|
100 | bool result = setString(OS_Coil_Heating_DX_VariableRefrigerantFlowFields::RatedTotalHeatingCapacity, "autosize"); |
| 135 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 50 times.
|
50 | OS_ASSERT(result); |
| 136 | 50 | } | |
| 137 | |||
| 138 | ✗ | bool CoilHeatingDXVariableRefrigerantFlow_Impl::setRatedAirFlowRate(boost::optional<double> ratedAirFlowRate) { | |
| 139 | ✗ | bool result(false); | |
| 140 | ✗ | if (ratedAirFlowRate) { | |
| 141 | ✗ | result = setDouble(OS_Coil_Heating_DX_VariableRefrigerantFlowFields::RatedAirFlowRate, ratedAirFlowRate.get()); | |
| 142 | } | ||
| 143 | ✗ | return result; | |
| 144 | } | ||
| 145 | |||
| 146 | 50 | void CoilHeatingDXVariableRefrigerantFlow_Impl::autosizeRatedAirFlowRate() { | |
| 147 |
2/2✓ Branch 1 taken 50 times.
✓ Branch 4 taken 50 times.
|
100 | bool result = setString(OS_Coil_Heating_DX_VariableRefrigerantFlowFields::RatedAirFlowRate, "autosize"); |
| 148 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 50 times.
|
50 | OS_ASSERT(result); |
| 149 | 50 | } | |
| 150 | |||
| 151 | 50 | bool CoilHeatingDXVariableRefrigerantFlow_Impl::setHeatingCapacityRatioModifierFunctionofTemperatureCurve(const Curve& curve) { | |
| 152 | bool result = | ||
| 153 |
2/2✓ Branch 1 taken 50 times.
✓ Branch 4 taken 50 times.
|
50 | setPointer(OS_Coil_Heating_DX_VariableRefrigerantFlowFields::HeatingCapacityRatioModifierFunctionofTemperatureCurve, curve.handle()); |
| 154 | 50 | return result; | |
| 155 | } | ||
| 156 | |||
| 157 | 50 | bool CoilHeatingDXVariableRefrigerantFlow_Impl::setHeatingCapacityModifierFunctionofFlowFractionCurve(const Curve& curve) { | |
| 158 |
2/2✓ Branch 1 taken 50 times.
✓ Branch 4 taken 50 times.
|
50 | bool result = setPointer(OS_Coil_Heating_DX_VariableRefrigerantFlowFields::HeatingCapacityModifierFunctionofFlowFractionCurve, curve.handle()); |
| 159 | 50 | return result; | |
| 160 | } | ||
| 161 | |||
| 162 | 24 | boost::optional<Schedule> CoilHeatingDXVariableRefrigerantFlow_Impl::optionalAvailabilitySchedule() const { | |
| 163 |
2/2✓ Branch 1 taken 24 times.
✓ Branch 4 taken 24 times.
|
24 | return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_Coil_Heating_DX_VariableRefrigerantFlowFields::AvailabilitySchedule); |
| 164 | } | ||
| 165 | |||
| 166 | 52 | boost::optional<Curve> CoilHeatingDXVariableRefrigerantFlow_Impl::optionalHeatingCapacityRatioModifierFunctionofTemperatureCurve() const { | |
| 167 |
1/1✓ Branch 1 taken 52 times.
|
104 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 168 |
1/1✓ Branch 1 taken 52 times.
|
104 | OS_Coil_Heating_DX_VariableRefrigerantFlowFields::HeatingCapacityRatioModifierFunctionofTemperatureCurve); |
| 169 | } | ||
| 170 | |||
| 171 | 52 | boost::optional<Curve> CoilHeatingDXVariableRefrigerantFlow_Impl::optionalHeatingCapacityModifierFunctionofFlowFractionCurve() const { | |
| 172 |
1/1✓ Branch 1 taken 52 times.
|
104 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 173 |
1/1✓ Branch 1 taken 52 times.
|
104 | OS_Coil_Heating_DX_VariableRefrigerantFlowFields::HeatingCapacityModifierFunctionofFlowFractionCurve); |
| 174 | } | ||
| 175 | |||
| 176 | ✗ | ModelObject CoilHeatingDXVariableRefrigerantFlow_Impl::clone(Model model) const { | |
| 177 | ✗ | auto objectClone = HVACComponent_Impl::clone(model).cast<CoilHeatingDXVariableRefrigerantFlow>(); | |
| 178 | |||
| 179 | ✗ | return std::move(objectClone); | |
| 180 | ✗ | } | |
| 181 | |||
| 182 | 28 | std::vector<ModelObject> CoilHeatingDXVariableRefrigerantFlow_Impl::children() const { | |
| 183 | 28 | std::vector<ModelObject> result; | |
| 184 | |||
| 185 |
2/2✓ Branch 1 taken 28 times.
✓ Branch 4 taken 28 times.
|
28 | result.push_back(heatingCapacityRatioModifierFunctionofTemperatureCurve()); |
| 186 |
2/2✓ Branch 1 taken 28 times.
✓ Branch 4 taken 28 times.
|
28 | result.push_back(heatingCapacityModifierFunctionofFlowFractionCurve()); |
| 187 | |||
| 188 | 28 | return result; | |
| 189 | ✗ | } | |
| 190 | |||
| 191 | ✗ | boost::optional<double> CoilHeatingDXVariableRefrigerantFlow_Impl::autosizedRatedTotalHeatingCapacity() const { | |
| 192 | ✗ | return getAutosizedValue("Design Size Gross Rated Heating Capacity", "W"); | |
| 193 | } | ||
| 194 | |||
| 195 | ✗ | boost::optional<double> CoilHeatingDXVariableRefrigerantFlow_Impl::autosizedRatedAirFlowRate() const { | |
| 196 | ✗ | return getAutosizedValue("Design Size Rated Air Flow Rate", "m3/s"); | |
| 197 | } | ||
| 198 | |||
| 199 | ✗ | void CoilHeatingDXVariableRefrigerantFlow_Impl::autosize() { | |
| 200 | ✗ | autosizeRatedTotalHeatingCapacity(); | |
| 201 | ✗ | autosizeRatedAirFlowRate(); | |
| 202 | ✗ | } | |
| 203 | |||
| 204 | ✗ | void CoilHeatingDXVariableRefrigerantFlow_Impl::applySizingValues() { | |
| 205 | ✗ | boost::optional<double> val; | |
| 206 | ✗ | val = autosizedRatedTotalHeatingCapacity(); | |
| 207 | ✗ | if (val) { | |
| 208 | ✗ | setRatedTotalHeatingCapacity(val.get()); | |
| 209 | } | ||
| 210 | |||
| 211 | ✗ | val = autosizedRatedAirFlowRate(); | |
| 212 | ✗ | if (val) { | |
| 213 | ✗ | setRatedAirFlowRate(val.get()); | |
| 214 | } | ||
| 215 | ✗ | } | |
| 216 | |||
| 217 | ✗ | ComponentType CoilHeatingDXVariableRefrigerantFlow_Impl::componentType() const { | |
| 218 | ✗ | return ComponentType::Heating; | |
| 219 | } | ||
| 220 | |||
| 221 | ✗ | std::vector<FuelType> CoilHeatingDXVariableRefrigerantFlow_Impl::coolingFuelTypes() const { | |
| 222 | ✗ | return {}; | |
| 223 | } | ||
| 224 | |||
| 225 | 2 | std::vector<FuelType> CoilHeatingDXVariableRefrigerantFlow_Impl::heatingFuelTypes() const { | |
| 226 |
1/1✓ Branch 1 taken 2 times.
|
6 | return {FuelType::Electricity}; |
| 227 | } | ||
| 228 | |||
| 229 | 2 | std::vector<AppGFuelType> CoilHeatingDXVariableRefrigerantFlow_Impl::appGHeatingFuelTypes() const { | |
| 230 |
1/1✓ Branch 1 taken 2 times.
|
6 | return {AppGFuelType::HeatPump}; |
| 231 | } | ||
| 232 | |||
| 233 | } // namespace detail | ||
| 234 | |||
| 235 | 50 | CoilHeatingDXVariableRefrigerantFlow::CoilHeatingDXVariableRefrigerantFlow(const Model& model) | |
| 236 | 50 | : HVACComponent(CoilHeatingDXVariableRefrigerantFlow::iddObjectType(), model) { | |
| 237 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 50 times.
✗ Branch 5 not taken.
|
50 | OS_ASSERT(getImpl<detail::CoilHeatingDXVariableRefrigerantFlow_Impl>()); |
| 238 | |||
| 239 |
1/1✓ Branch 1 taken 50 times.
|
50 | Schedule schedule = model.alwaysOnDiscreteSchedule(); |
| 240 |
1/1✓ Branch 1 taken 50 times.
|
50 | setAvailabilitySchedule(schedule); |
| 241 | |||
| 242 |
1/1✓ Branch 1 taken 50 times.
|
50 | autosizeRatedTotalHeatingCapacity(); |
| 243 | |||
| 244 |
1/1✓ Branch 1 taken 50 times.
|
50 | autosizeRatedAirFlowRate(); |
| 245 | |||
| 246 |
1/1✓ Branch 1 taken 50 times.
|
50 | CurveBiquadratic vrfTUHeatCAPFT(model); |
| 247 |
4/4✓ Branch 1 taken 50 times.
✓ Branch 4 taken 50 times.
✓ Branch 7 taken 50 times.
✓ Branch 10 taken 50 times.
|
50 | vrfTUHeatCAPFT.setName(name().get() + " VRFTUHeatCAPFT"); |
| 248 |
1/1✓ Branch 1 taken 50 times.
|
50 | vrfTUHeatCAPFT.setCoefficient1Constant(0.375443994956127); |
| 249 |
1/1✓ Branch 1 taken 50 times.
|
50 | vrfTUHeatCAPFT.setCoefficient2x(6.68190645147821E-02); |
| 250 |
1/1✓ Branch 1 taken 50 times.
|
50 | vrfTUHeatCAPFT.setCoefficient3xPOW2(-1.94171026482001E-03); |
| 251 |
1/1✓ Branch 1 taken 50 times.
|
50 | vrfTUHeatCAPFT.setCoefficient4y(4.42618420640187E-02); |
| 252 |
1/1✓ Branch 1 taken 50 times.
|
50 | vrfTUHeatCAPFT.setCoefficient5yPOW2(-0.0004009578); |
| 253 |
1/1✓ Branch 1 taken 50 times.
|
50 | vrfTUHeatCAPFT.setCoefficient6xTIMESY(-0.0014819801); |
| 254 |
1/1✓ Branch 1 taken 50 times.
|
50 | vrfTUHeatCAPFT.setMinimumValueofx(21.11); |
| 255 |
1/1✓ Branch 1 taken 50 times.
|
50 | vrfTUHeatCAPFT.setMaximumValueofx(27.22); |
| 256 |
1/1✓ Branch 1 taken 50 times.
|
50 | vrfTUHeatCAPFT.setMinimumValueofy(-15); |
| 257 |
1/1✓ Branch 1 taken 50 times.
|
50 | vrfTUHeatCAPFT.setMaximumValueofy(18.33); |
| 258 |
1/1✓ Branch 1 taken 50 times.
|
50 | vrfTUHeatCAPFT.setMinimumCurveOutput(0.6074); |
| 259 |
1/1✓ Branch 1 taken 50 times.
|
50 | vrfTUHeatCAPFT.setMaximumCurveOutput(1.0); |
| 260 |
1/1✓ Branch 1 taken 50 times.
|
50 | setHeatingCapacityRatioModifierFunctionofTemperatureCurve(vrfTUHeatCAPFT); |
| 261 | |||
| 262 |
1/1✓ Branch 1 taken 50 times.
|
50 | CurveQuadratic vrfACCoolCapFFF(model); |
| 263 |
4/4✓ Branch 1 taken 50 times.
✓ Branch 4 taken 50 times.
✓ Branch 7 taken 50 times.
✓ Branch 10 taken 50 times.
|
50 | vrfACCoolCapFFF.setName(name().get() + " VRFACCoolCapFFF"); |
| 264 |
1/1✓ Branch 1 taken 50 times.
|
50 | vrfACCoolCapFFF.setCoefficient1Constant(0.8); |
| 265 |
1/1✓ Branch 1 taken 50 times.
|
50 | vrfACCoolCapFFF.setCoefficient2x(0.2); |
| 266 |
1/1✓ Branch 1 taken 50 times.
|
50 | vrfACCoolCapFFF.setCoefficient3xPOW2(0.0); |
| 267 |
1/1✓ Branch 1 taken 50 times.
|
50 | vrfACCoolCapFFF.setMinimumValueofx(0.5); |
| 268 |
1/1✓ Branch 1 taken 50 times.
|
50 | vrfACCoolCapFFF.setMaximumValueofx(1.5); |
| 269 |
1/1✓ Branch 1 taken 50 times.
|
50 | setHeatingCapacityModifierFunctionofFlowFractionCurve(vrfACCoolCapFFF); |
| 270 | 50 | } | |
| 271 | |||
| 272 | 7849 | IddObjectType CoilHeatingDXVariableRefrigerantFlow::iddObjectType() { | |
| 273 |
1/1✓ Branch 1 taken 7849 times.
|
7849 | return {IddObjectType::OS_Coil_Heating_DX_VariableRefrigerantFlow}; |
| 274 | } | ||
| 275 | |||
| 276 | 24 | Schedule CoilHeatingDXVariableRefrigerantFlow::availabilitySchedule() const { | |
| 277 |
1/1✓ Branch 3 taken 24 times.
|
24 | return getImpl<detail::CoilHeatingDXVariableRefrigerantFlow_Impl>()->availabilitySchedule(); |
| 278 | } | ||
| 279 | |||
| 280 | ✗ | boost::optional<double> CoilHeatingDXVariableRefrigerantFlow::ratedTotalHeatingCapacity() const { | |
| 281 | ✗ | return getImpl<detail::CoilHeatingDXVariableRefrigerantFlow_Impl>()->ratedTotalHeatingCapacity(); | |
| 282 | } | ||
| 283 | |||
| 284 | 24 | bool CoilHeatingDXVariableRefrigerantFlow::isRatedTotalHeatingCapacityAutosized() const { | |
| 285 |
1/1✓ Branch 3 taken 24 times.
|
24 | return getImpl<detail::CoilHeatingDXVariableRefrigerantFlow_Impl>()->isRatedTotalHeatingCapacityAutosized(); |
| 286 | } | ||
| 287 | |||
| 288 | ✗ | boost::optional<double> CoilHeatingDXVariableRefrigerantFlow::ratedAirFlowRate() const { | |
| 289 | ✗ | return getImpl<detail::CoilHeatingDXVariableRefrigerantFlow_Impl>()->ratedAirFlowRate(); | |
| 290 | } | ||
| 291 | |||
| 292 | 24 | bool CoilHeatingDXVariableRefrigerantFlow::isRatedAirFlowRateAutosized() const { | |
| 293 |
1/1✓ Branch 3 taken 24 times.
|
24 | return getImpl<detail::CoilHeatingDXVariableRefrigerantFlow_Impl>()->isRatedAirFlowRateAutosized(); |
| 294 | } | ||
| 295 | |||
| 296 | 24 | Curve CoilHeatingDXVariableRefrigerantFlow::heatingCapacityRatioModifierFunctionofTemperatureCurve() const { | |
| 297 |
1/1✓ Branch 3 taken 24 times.
|
24 | return getImpl<detail::CoilHeatingDXVariableRefrigerantFlow_Impl>()->heatingCapacityRatioModifierFunctionofTemperatureCurve(); |
| 298 | } | ||
| 299 | |||
| 300 | 24 | Curve CoilHeatingDXVariableRefrigerantFlow::heatingCapacityModifierFunctionofFlowFractionCurve() const { | |
| 301 |
1/1✓ Branch 3 taken 24 times.
|
24 | return getImpl<detail::CoilHeatingDXVariableRefrigerantFlow_Impl>()->heatingCapacityModifierFunctionofFlowFractionCurve(); |
| 302 | } | ||
| 303 | |||
| 304 | 50 | bool CoilHeatingDXVariableRefrigerantFlow::setAvailabilitySchedule(Schedule& schedule) { | |
| 305 |
1/1✓ Branch 3 taken 50 times.
|
50 | return getImpl<detail::CoilHeatingDXVariableRefrigerantFlow_Impl>()->setAvailabilitySchedule(schedule); |
| 306 | } | ||
| 307 | |||
| 308 | ✗ | bool CoilHeatingDXVariableRefrigerantFlow::setRatedTotalHeatingCapacity(double ratedTotalHeatingCapacity) { | |
| 309 | ✗ | return getImpl<detail::CoilHeatingDXVariableRefrigerantFlow_Impl>()->setRatedTotalHeatingCapacity(ratedTotalHeatingCapacity); | |
| 310 | } | ||
| 311 | |||
| 312 | 50 | void CoilHeatingDXVariableRefrigerantFlow::autosizeRatedTotalHeatingCapacity() { | |
| 313 |
1/1✓ Branch 3 taken 50 times.
|
50 | getImpl<detail::CoilHeatingDXVariableRefrigerantFlow_Impl>()->autosizeRatedTotalHeatingCapacity(); |
| 314 | 50 | } | |
| 315 | |||
| 316 | ✗ | bool CoilHeatingDXVariableRefrigerantFlow::setRatedAirFlowRate(double ratedAirFlowRate) { | |
| 317 | ✗ | return getImpl<detail::CoilHeatingDXVariableRefrigerantFlow_Impl>()->setRatedAirFlowRate(ratedAirFlowRate); | |
| 318 | } | ||
| 319 | |||
| 320 | 50 | void CoilHeatingDXVariableRefrigerantFlow::autosizeRatedAirFlowRate() { | |
| 321 |
1/1✓ Branch 3 taken 50 times.
|
50 | getImpl<detail::CoilHeatingDXVariableRefrigerantFlow_Impl>()->autosizeRatedAirFlowRate(); |
| 322 | 50 | } | |
| 323 | |||
| 324 | 50 | bool CoilHeatingDXVariableRefrigerantFlow::setHeatingCapacityRatioModifierFunctionofTemperatureCurve(const Curve& curve) { | |
| 325 |
1/1✓ Branch 3 taken 50 times.
|
50 | return getImpl<detail::CoilHeatingDXVariableRefrigerantFlow_Impl>()->setHeatingCapacityRatioModifierFunctionofTemperatureCurve(curve); |
| 326 | } | ||
| 327 | |||
| 328 | 50 | bool CoilHeatingDXVariableRefrigerantFlow::setHeatingCapacityModifierFunctionofFlowFractionCurve(const Curve& curve) { | |
| 329 |
1/1✓ Branch 3 taken 50 times.
|
50 | return getImpl<detail::CoilHeatingDXVariableRefrigerantFlow_Impl>()->setHeatingCapacityModifierFunctionofFlowFractionCurve(curve); |
| 330 | } | ||
| 331 | |||
| 332 | /// @cond | ||
| 333 | 24 | CoilHeatingDXVariableRefrigerantFlow::CoilHeatingDXVariableRefrigerantFlow(std::shared_ptr<detail::CoilHeatingDXVariableRefrigerantFlow_Impl> impl) | |
| 334 |
1/1✓ Branch 3 taken 24 times.
|
24 | : HVACComponent(std::move(impl)) {} |
| 335 | /// @endcond | ||
| 336 | |||
| 337 | ✗ | boost::optional<double> CoilHeatingDXVariableRefrigerantFlow::autosizedRatedTotalHeatingCapacity() const { | |
| 338 | ✗ | return getImpl<detail::CoilHeatingDXVariableRefrigerantFlow_Impl>()->autosizedRatedTotalHeatingCapacity(); | |
| 339 | } | ||
| 340 | |||
| 341 | ✗ | boost::optional<double> CoilHeatingDXVariableRefrigerantFlow::autosizedRatedAirFlowRate() const { | |
| 342 | ✗ | return getImpl<detail::CoilHeatingDXVariableRefrigerantFlow_Impl>()->autosizedRatedAirFlowRate(); | |
| 343 | } | ||
| 344 | |||
| 345 | } // namespace model | ||
| 346 | } // namespace openstudio | ||
| 347 |