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