src/model/CoilCoolingDXTwoSpeed.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 "CoilCoolingDXTwoSpeed.hpp" | ||
| 7 | #include "CoilCoolingDXTwoSpeed_Impl.hpp" | ||
| 8 | #include "CurveQuadratic.hpp" | ||
| 9 | #include "CurveQuadratic_Impl.hpp" | ||
| 10 | #include "CurveBiquadratic.hpp" | ||
| 11 | #include "CurveBiquadratic_Impl.hpp" | ||
| 12 | #include "CurveCubic.hpp" | ||
| 13 | #include "CurveCubic_Impl.hpp" | ||
| 14 | #include "Curve.hpp" | ||
| 15 | #include "Curve_Impl.hpp" | ||
| 16 | #include "Schedule.hpp" | ||
| 17 | #include "Schedule_Impl.hpp" | ||
| 18 | #include "Node.hpp" | ||
| 19 | #include "Node_Impl.hpp" | ||
| 20 | #include "AirLoopHVAC.hpp" | ||
| 21 | #include "AirLoopHVAC_Impl.hpp" | ||
| 22 | #include "AirLoopHVACUnitarySystem.hpp" | ||
| 23 | #include "AirLoopHVACUnitarySystem_Impl.hpp" | ||
| 24 | #include "AirLoopHVACOutdoorAirSystem.hpp" | ||
| 25 | #include "AirLoopHVACOutdoorAirSystem_Impl.hpp" | ||
| 26 | #include "AirLoopHVACDedicatedOutdoorAirSystem.hpp" | ||
| 27 | #include "AirLoopHVACDedicatedOutdoorAirSystem_Impl.hpp" | ||
| 28 | #include "AirflowNetworkEquivalentDuct.hpp" | ||
| 29 | #include "AirflowNetworkEquivalentDuct_Impl.hpp" | ||
| 30 | #include "Model.hpp" | ||
| 31 | #include <utilities/idd/OS_Coil_Cooling_DX_TwoSpeed_FieldEnums.hxx> | ||
| 32 | #include <utilities/idd/IddEnums.hxx> | ||
| 33 | #include "../utilities/core/Compare.hpp" | ||
| 34 | #include "../utilities/core/Assert.hpp" | ||
| 35 | #include "../utilities/data/DataEnums.hpp" | ||
| 36 | |||
| 37 | namespace openstudio { | ||
| 38 | namespace model { | ||
| 39 | |||
| 40 | namespace detail { | ||
| 41 | |||
| 42 | // constructor | ||
| 43 | 19 | CoilCoolingDXTwoSpeed_Impl::CoilCoolingDXTwoSpeed_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 44 | 19 | : StraightComponent_Impl(idfObject, model, keepHandle) { | |
| 45 |
4/6✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
✓ Branch 7 taken 19 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 19 times.
✗ Branch 13 not taken.
|
19 | OS_ASSERT(idfObject.iddObject().type() == CoilCoolingDXTwoSpeed::iddObjectType()); |
| 46 | 19 | } | |
| 47 | |||
| 48 | 2 | CoilCoolingDXTwoSpeed_Impl::CoilCoolingDXTwoSpeed_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle) | |
| 49 | 2 | : StraightComponent_Impl(other, model, keepHandle) { | |
| 50 |
4/6✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 2 times.
✗ Branch 13 not taken.
|
2 | OS_ASSERT(other.iddObject().type() == CoilCoolingDXTwoSpeed::iddObjectType()); |
| 51 | 2 | } | |
| 52 | |||
| 53 | 15 | CoilCoolingDXTwoSpeed_Impl::CoilCoolingDXTwoSpeed_Impl(const CoilCoolingDXTwoSpeed_Impl& other, Model_Impl* model, bool keepHandle) | |
| 54 | 15 | : StraightComponent_Impl(other, model, keepHandle) {} | |
| 55 | |||
| 56 | 3 | ModelObject CoilCoolingDXTwoSpeed_Impl::clone(Model model) const { | |
| 57 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
3 | auto newCoil = StraightComponent_Impl::clone(model).cast<CoilCoolingDXTwoSpeed>(); |
| 58 | |||
| 59 | 6 | return std::move(newCoil); | |
| 60 | 3 | } | |
| 61 | |||
| 62 | ✗ | std::vector<IddObjectType> CoilCoolingDXTwoSpeed_Impl::allowableChildTypes() const { | |
| 63 | ✗ | std::vector<IddObjectType> result; | |
| 64 | ✗ | result.push_back(IddObjectType::OS_Curve_Biquadratic); | |
| 65 | ✗ | result.push_back(IddObjectType::OS_Curve_Quadratic); | |
| 66 | ✗ | result.push_back(IddObjectType::OS_Curve_Cubic); | |
| 67 | ✗ | return result; | |
| 68 | ✗ | } | |
| 69 | |||
| 70 | 10 | std::vector<ModelObject> CoilCoolingDXTwoSpeed_Impl::children() const { | |
| 71 | |||
| 72 | 10 | std::vector<ModelObject> result; | |
| 73 |
2/3✓ Branch 1 taken 10 times.
✓ Branch 3 taken 10 times.
✗ Branch 4 not taken.
|
20 | if (OptionalCurve intermediate = optionalTotalCoolingCapacityFunctionOfTemperatureCurve()) { |
| 74 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
10 | result.push_back(*intermediate); |
| 75 | 10 | } | |
| 76 |
2/3✓ Branch 1 taken 10 times.
✓ Branch 3 taken 10 times.
✗ Branch 4 not taken.
|
20 | if (OptionalCurve intermediate = optionalTotalCoolingCapacityFunctionOfFlowFractionCurve()) { |
| 77 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
10 | result.push_back(*intermediate); |
| 78 | 10 | } | |
| 79 |
2/3✓ Branch 1 taken 10 times.
✓ Branch 3 taken 10 times.
✗ Branch 4 not taken.
|
20 | if (OptionalCurve intermediate = optionalEnergyInputRatioFunctionOfTemperatureCurve()) { |
| 80 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
10 | result.push_back(*intermediate); |
| 81 | 10 | } | |
| 82 |
2/3✓ Branch 1 taken 10 times.
✓ Branch 3 taken 10 times.
✗ Branch 4 not taken.
|
20 | if (OptionalCurve intermediate = optionalEnergyInputRatioFunctionOfFlowFractionCurve()) { |
| 83 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
10 | result.push_back(*intermediate); |
| 84 | 10 | } | |
| 85 |
2/3✓ Branch 1 taken 10 times.
✓ Branch 3 taken 10 times.
✗ Branch 4 not taken.
|
20 | if (OptionalCurve intermediate = optionalPartLoadFractionCorrelationCurve()) { |
| 86 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
10 | result.push_back(*intermediate); |
| 87 | 10 | } | |
| 88 |
2/3✓ Branch 1 taken 10 times.
✓ Branch 3 taken 10 times.
✗ Branch 4 not taken.
|
20 | if (OptionalCurve intermediate = optionalLowSpeedTotalCoolingCapacityFunctionOfTemperatureCurve()) { |
| 89 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
10 | result.push_back(*intermediate); |
| 90 | 10 | } | |
| 91 |
2/3✓ Branch 1 taken 10 times.
✓ Branch 3 taken 10 times.
✗ Branch 4 not taken.
|
20 | if (OptionalCurve intermediate = optionalLowSpeedEnergyInputRatioFunctionOfTemperatureCurve()) { |
| 92 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
10 | result.push_back(*intermediate); |
| 93 | 10 | } | |
| 94 | std::vector<AirflowNetworkEquivalentDuct> myAFNItems = | ||
| 95 |
3/3✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
✓ Branch 7 taken 10 times.
|
10 | getObject<ModelObject>().getModelObjectSources<AirflowNetworkEquivalentDuct>(AirflowNetworkEquivalentDuct::iddObjectType()); |
| 96 |
1/1✓ Branch 5 taken 10 times.
|
10 | result.insert(result.end(), myAFNItems.begin(), myAFNItems.end()); |
| 97 | |||
| 98 | 20 | return result; | |
| 99 | 10 | } | |
| 100 | |||
| 101 | ✗ | const std::vector<std::string>& CoilCoolingDXTwoSpeed_Impl::outputVariableNames() const { | |
| 102 | // TODO: static for now | ||
| 103 | static const std::vector<std::string> result{ | ||
| 104 | "Cooling Coil Total Cooling Rate", "Cooling Coil Total Cooling Energy", "Cooling Coil Sensible Cooling Rate", | ||
| 105 | "Cooling Coil Sensible Cooling Energy", "Cooling Coil Latent Cooling Rate", "Cooling Coil Latent Cooling Energy", | ||
| 106 | "Cooling Coil Electricity Rate", "Cooling Coil Electricity Energy", "Cooling Coil Runtime Fraction", | ||
| 107 | |||
| 108 | // condenserType = [AirCooled, EvaporativelyCooled] | ||
| 109 | // if (this->condenserType() == "EvaporativelyCooled") { | ||
| 110 | "Cooling Coil Condenser Inlet Temperature", "Cooling Coil Evaporative Condenser Water Volume", | ||
| 111 | "Cooling Coil Evaporative Condenser Pump Electricity Rate", "Cooling Coil Evaporative Condenser Pump Electricity Energy", | ||
| 112 | "Cooling Coil Basin Heater Electricity Rate", "Cooling Coil Basin Heater Electricity Energy", | ||
| 113 | "Cooling Coil Evaporative Condenser Mains Supply Water Volume" | ||
| 114 | // } | ||
| 115 | |||
| 116 | // Storage tank isn't implemented | ||
| 117 | // if has storage tank: | ||
| 118 | // "Cooling Coil Condensate Volume Flow Rate", | ||
| 119 | // "Cooling Coil Condensate Volume", | ||
| 120 | // | ||
| 121 | |||
| 122 | // If not part of AirLoopHVAC:UnitaryHeatPump:AirToAir | ||
| 123 | // (if part of a heat pump, crankcase heater is reported only for the heating coil): | ||
| 124 | // if ( !this->containingHVACComponent().empty() ) { | ||
| 125 | // "Cooling Coil Crankcase Heater Electricity Rate", | ||
| 126 | // "Cooling Coil Crankcase Heater Electricity Energy", | ||
| 127 | // } | ||
| 128 | |||
| 129 | ✗ | }; | |
| 130 | ✗ | return result; | |
| 131 | ✗ | } | |
| 132 | |||
| 133 | 39 | IddObjectType CoilCoolingDXTwoSpeed_Impl::iddObjectType() const { | |
| 134 | 39 | return CoilCoolingDXTwoSpeed::iddObjectType(); | |
| 135 | } | ||
| 136 | |||
| 137 | ✗ | std::vector<ScheduleTypeKey> CoilCoolingDXTwoSpeed_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 138 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 139 | ✗ | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 140 | ✗ | UnsignedVector::const_iterator b(fieldIndices.begin()); | |
| 141 | ✗ | UnsignedVector::const_iterator e(fieldIndices.end()); | |
| 142 | ✗ | if (std::find(b, e, OS_Coil_Cooling_DX_TwoSpeedFields::AvailabilityScheduleName) != e) { | |
| 143 | ✗ | result.push_back(ScheduleTypeKey("CoilCoolingDXTwoSpeed", "Availability")); | |
| 144 | } | ||
| 145 | ✗ | if (std::find(b, e, OS_Coil_Cooling_DX_TwoSpeedFields::BasinHeaterOperatingScheduleName) != e) { | |
| 146 | ✗ | result.push_back(ScheduleTypeKey("CoilCoolingDXTwoSpeed", "Basin Heater Operation")); | |
| 147 | } | ||
| 148 | ✗ | return result; | |
| 149 | ✗ | } | |
| 150 | |||
| 151 | 19 | Schedule CoilCoolingDXTwoSpeed_Impl::availabilitySchedule() const { | |
| 152 |
1/1✓ Branch 1 taken 19 times.
|
19 | boost::optional<Schedule> value = optionalAvailabilitySchedule(); |
| 153 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 19 times.
|
19 | if (!value) { |
| 154 | // it is an error if we get here, however we don't want to crash | ||
| 155 | // so we hook up to global always on schedule | ||
| 156 | ✗ | LOG(Error, "Required availability schedule not set, using 'Always On' schedule"); | |
| 157 | ✗ | value = this->model().alwaysOnDiscreteSchedule(); | |
| 158 | ✗ | OS_ASSERT(value); | |
| 159 | ✗ | const_cast<CoilCoolingDXTwoSpeed_Impl*>(this)->setAvailabilitySchedule(*value); | |
| 160 | ✗ | value = optionalAvailabilitySchedule(); | |
| 161 | } | ||
| 162 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 19 times.
✗ Branch 4 not taken.
|
19 | OS_ASSERT(value); |
| 163 |
2/2✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
|
38 | return value.get(); |
| 164 | 19 | } | |
| 165 | |||
| 166 | 19 | bool CoilCoolingDXTwoSpeed_Impl::setAvailabilitySchedule(Schedule& schedule) { | |
| 167 |
3/3✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
✓ Branch 7 taken 19 times.
|
76 | bool result = setSchedule(OS_Coil_Cooling_DX_TwoSpeedFields::AvailabilityScheduleName, "CoilCoolingDXTwoSpeed", "Availability", schedule); |
| 168 | 19 | return result; | |
| 169 | } | ||
| 170 | |||
| 171 | // N1 , \field Rated High Speed Total Cooling Capacity | ||
| 172 | 10 | OptionalDouble CoilCoolingDXTwoSpeed_Impl::ratedHighSpeedTotalCoolingCapacity() const { | |
| 173 | 10 | return getDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedHighSpeedTotalCoolingCapacity); | |
| 174 | } | ||
| 175 | |||
| 176 | 17 | bool CoilCoolingDXTwoSpeed_Impl::setRatedHighSpeedTotalCoolingCapacity(OptionalDouble value) { | |
| 177 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 17 times.
|
17 | if (value) { |
| 178 | ✗ | return setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedHighSpeedTotalCoolingCapacity, *value); | |
| 179 | } else { | ||
| 180 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
51 | return setString(OS_Coil_Cooling_DX_TwoSpeedFields::RatedHighSpeedTotalCoolingCapacity, "Autosize"); |
| 181 | } | ||
| 182 | } | ||
| 183 | |||
| 184 | 2 | bool CoilCoolingDXTwoSpeed_Impl::setRatedHighSpeedTotalCoolingCapacity(double value) { | |
| 185 | 2 | return setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedHighSpeedTotalCoolingCapacity, value); | |
| 186 | } | ||
| 187 | |||
| 188 | // N2 , \field Rated High Speed Sensible Heat Ratio | ||
| 189 | 10 | OptionalDouble CoilCoolingDXTwoSpeed_Impl::ratedHighSpeedSensibleHeatRatio() const { | |
| 190 | 10 | return getDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedHighSpeedSensibleHeatRatio); | |
| 191 | } | ||
| 192 | 17 | bool CoilCoolingDXTwoSpeed_Impl::setRatedHighSpeedSensibleHeatRatio(OptionalDouble value) { | |
| 193 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 17 times.
|
17 | if (value) { |
| 194 | ✗ | return setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedHighSpeedSensibleHeatRatio, *value); | |
| 195 | } else { | ||
| 196 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
51 | return setString(OS_Coil_Cooling_DX_TwoSpeedFields::RatedHighSpeedSensibleHeatRatio, "Autosize"); |
| 197 | } | ||
| 198 | } | ||
| 199 | |||
| 200 | 2 | bool CoilCoolingDXTwoSpeed_Impl::setRatedHighSpeedSensibleHeatRatio(double value) { | |
| 201 | 2 | return setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedHighSpeedSensibleHeatRatio, value); | |
| 202 | } | ||
| 203 | |||
| 204 | // N3 , \field Rated High Speed COP | ||
| 205 | 11 | double CoilCoolingDXTwoSpeed_Impl::ratedHighSpeedCOP() const { | |
| 206 |
1/1✓ Branch 1 taken 11 times.
|
11 | boost::optional<double> value = getDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedHighSpeedCOP); |
| 207 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 11 times.
✗ Branch 4 not taken.
|
11 | OS_ASSERT(value); |
| 208 |
1/1✓ Branch 1 taken 11 times.
|
22 | return value.get(); |
| 209 | } | ||
| 210 | |||
| 211 | 19 | bool CoilCoolingDXTwoSpeed_Impl::setRatedHighSpeedCOP(double value) { | |
| 212 | 19 | return setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedHighSpeedCOP, value); | |
| 213 | } | ||
| 214 | |||
| 215 | // N4 , \field Rated High Speed Air Flow Rate | ||
| 216 | 10 | OptionalDouble CoilCoolingDXTwoSpeed_Impl::ratedHighSpeedAirFlowRate() const { | |
| 217 | 10 | return getDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedHighSpeedAirFlowRate); | |
| 218 | } | ||
| 219 | |||
| 220 | 17 | bool CoilCoolingDXTwoSpeed_Impl::setRatedHighSpeedAirFlowRate(OptionalDouble value) { | |
| 221 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 17 times.
|
17 | if (value) { |
| 222 | ✗ | return setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedHighSpeedAirFlowRate, *value); | |
| 223 | } else { | ||
| 224 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
51 | return setString(OS_Coil_Cooling_DX_TwoSpeedFields::RatedHighSpeedAirFlowRate, "Autosize"); |
| 225 | } | ||
| 226 | } | ||
| 227 | |||
| 228 | 2 | bool CoilCoolingDXTwoSpeed_Impl::setRatedHighSpeedAirFlowRate(double value) { | |
| 229 | 2 | return setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedHighSpeedAirFlowRate, value); | |
| 230 | } | ||
| 231 | |||
| 232 | // A5 , \field Total Cooling Capacity Function of Temperature Curve Name | ||
| 233 | //\object-list BiquadraticCurves | ||
| 234 | 13 | Curve CoilCoolingDXTwoSpeed_Impl::totalCoolingCapacityFunctionOfTemperatureCurve() const { | |
| 235 |
1/1✓ Branch 1 taken 13 times.
|
13 | OptionalCurve result = optionalTotalCoolingCapacityFunctionOfTemperatureCurve(); |
| 236 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 13 times.
✗ Branch 4 not taken.
|
13 | OS_ASSERT(result); |
| 237 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
26 | return result.get(); |
| 238 | 13 | } | |
| 239 | |||
| 240 | 18 | bool CoilCoolingDXTwoSpeed_Impl::setTotalCoolingCapacityFunctionOfTemperatureCurve(const Curve& curve) { | |
| 241 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
18 | return setPointer(OS_Coil_Cooling_DX_TwoSpeedFields::TotalCoolingCapacityFunctionofTemperatureCurveName, curve.handle()); |
| 242 | } | ||
| 243 | |||
| 244 | // A6 , \field Total Cooling Capacity Function of Flow Fraction Curve Name | ||
| 245 | //\object-list QuadraticCubicCurves | ||
| 246 | 14 | Curve CoilCoolingDXTwoSpeed_Impl::totalCoolingCapacityFunctionOfFlowFractionCurve() const { | |
| 247 |
1/1✓ Branch 1 taken 14 times.
|
14 | OptionalCurve result = optionalTotalCoolingCapacityFunctionOfFlowFractionCurve(); |
| 248 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 14 times.
✗ Branch 4 not taken.
|
14 | OS_ASSERT(result); |
| 249 |
2/2✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
|
28 | return result.get(); |
| 250 | 14 | } | |
| 251 | 19 | bool CoilCoolingDXTwoSpeed_Impl::setTotalCoolingCapacityFunctionOfFlowFractionCurve(const Curve& curve) { | |
| 252 |
2/2✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
|
19 | return setPointer(OS_Coil_Cooling_DX_TwoSpeedFields::TotalCoolingCapacityFunctionofFlowFractionCurveName, curve.handle()); |
| 253 | } | ||
| 254 | |||
| 255 | // A7 , \field Energy Input Ratio Function of Temperature Curve Name | ||
| 256 | //\object-list BiquadraticCurves | ||
| 257 | 13 | Curve CoilCoolingDXTwoSpeed_Impl::energyInputRatioFunctionOfTemperatureCurve() const { | |
| 258 |
1/1✓ Branch 1 taken 13 times.
|
13 | OptionalCurve result = optionalEnergyInputRatioFunctionOfTemperatureCurve(); |
| 259 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 13 times.
✗ Branch 4 not taken.
|
13 | OS_ASSERT(result); |
| 260 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
26 | return result.get(); |
| 261 | 13 | } | |
| 262 | |||
| 263 | 18 | bool CoilCoolingDXTwoSpeed_Impl::setEnergyInputRatioFunctionOfTemperatureCurve(const Curve& curve) { | |
| 264 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
18 | return setPointer(OS_Coil_Cooling_DX_TwoSpeedFields::EnergyInputRatioFunctionofTemperatureCurveName, curve.handle()); |
| 265 | } | ||
| 266 | |||
| 267 | // A8 , \field Energy Input Ratio Function of Flow Fraction Curve Name | ||
| 268 | //\object-list QuadraticCubicCurves | ||
| 269 | 14 | Curve CoilCoolingDXTwoSpeed_Impl::energyInputRatioFunctionOfFlowFractionCurve() const { | |
| 270 |
1/1✓ Branch 1 taken 14 times.
|
14 | OptionalCurve result = optionalEnergyInputRatioFunctionOfFlowFractionCurve(); |
| 271 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 14 times.
✗ Branch 4 not taken.
|
14 | OS_ASSERT(result); |
| 272 |
2/2✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
|
28 | return result.get(); |
| 273 | 14 | } | |
| 274 | |||
| 275 | 19 | bool CoilCoolingDXTwoSpeed_Impl::setEnergyInputRatioFunctionOfFlowFractionCurve(const Curve& curve) { | |
| 276 |
2/2✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
|
19 | return setPointer(OS_Coil_Cooling_DX_TwoSpeedFields::EnergyInputRatioFunctionofFlowFractionCurveName, curve.handle()); |
| 277 | } | ||
| 278 | |||
| 279 | // A9 , \field Part Load Fraction Correlation Curve Name | ||
| 280 | //\object-list QuadraticCubicCurves | ||
| 281 | 14 | Curve CoilCoolingDXTwoSpeed_Impl::partLoadFractionCorrelationCurve() const { | |
| 282 |
1/1✓ Branch 1 taken 14 times.
|
14 | OptionalCurve result = optionalPartLoadFractionCorrelationCurve(); |
| 283 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 14 times.
✗ Branch 4 not taken.
|
14 | OS_ASSERT(result); |
| 284 |
2/2✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
|
28 | return result.get(); |
| 285 | 14 | } | |
| 286 | |||
| 287 | 19 | bool CoilCoolingDXTwoSpeed_Impl::setPartLoadFractionCorrelationCurve(const Curve& curve) { | |
| 288 |
2/2✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
|
19 | return setPointer(OS_Coil_Cooling_DX_TwoSpeedFields::PartLoadFractionCorrelationCurveName, curve.handle()); |
| 289 | } | ||
| 290 | |||
| 291 | // N5 , \field Rated Low Speed Total Cooling Capacity | ||
| 292 | 10 | OptionalDouble CoilCoolingDXTwoSpeed_Impl::ratedLowSpeedTotalCoolingCapacity() const { | |
| 293 | 10 | return getDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedLowSpeedTotalCoolingCapacity); | |
| 294 | } | ||
| 295 | |||
| 296 | 17 | bool CoilCoolingDXTwoSpeed_Impl::setRatedLowSpeedTotalCoolingCapacity(OptionalDouble value) { | |
| 297 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 17 times.
|
17 | if (value) { |
| 298 | ✗ | return setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedLowSpeedTotalCoolingCapacity, *value); | |
| 299 | } else { | ||
| 300 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
51 | return setString(OS_Coil_Cooling_DX_TwoSpeedFields::RatedLowSpeedTotalCoolingCapacity, "Autosize"); |
| 301 | } | ||
| 302 | } | ||
| 303 | |||
| 304 | 2 | bool CoilCoolingDXTwoSpeed_Impl::setRatedLowSpeedTotalCoolingCapacity(double value) { | |
| 305 | 2 | return setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedLowSpeedTotalCoolingCapacity, value); | |
| 306 | } | ||
| 307 | |||
| 308 | // N6 , \field Rated Low Speed Sensible Heat Ratio | ||
| 309 | 10 | OptionalDouble CoilCoolingDXTwoSpeed_Impl::ratedLowSpeedSensibleHeatRatio() const { | |
| 310 | 10 | return getDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedLowSpeedSensibleHeatRatio); | |
| 311 | } | ||
| 312 | |||
| 313 | 10 | bool CoilCoolingDXTwoSpeed_Impl::setRatedLowSpeedSensibleHeatRatio(OptionalDouble value) { | |
| 314 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
|
10 | if (value) { |
| 315 | ✗ | return setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedLowSpeedSensibleHeatRatio, *value); | |
| 316 | } else { | ||
| 317 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
30 | return setString(OS_Coil_Cooling_DX_TwoSpeedFields::RatedLowSpeedSensibleHeatRatio, "Autosize"); |
| 318 | } | ||
| 319 | } | ||
| 320 | |||
| 321 | 9 | bool CoilCoolingDXTwoSpeed_Impl::setRatedLowSpeedSensibleHeatRatio(double value) { | |
| 322 | 9 | return setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedLowSpeedSensibleHeatRatio, value); | |
| 323 | } | ||
| 324 | |||
| 325 | // N7 , \field Rated Low Speed COP | ||
| 326 | 11 | double CoilCoolingDXTwoSpeed_Impl::ratedLowSpeedCOP() const { | |
| 327 |
1/1✓ Branch 1 taken 11 times.
|
11 | boost::optional<double> value = getDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedLowSpeedCOP); |
| 328 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 11 times.
✗ Branch 4 not taken.
|
11 | OS_ASSERT(value); |
| 329 |
1/1✓ Branch 1 taken 11 times.
|
22 | return value.get(); |
| 330 | } | ||
| 331 | |||
| 332 | 19 | bool CoilCoolingDXTwoSpeed_Impl::setRatedLowSpeedCOP(double value) { | |
| 333 | 19 | return setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedLowSpeedCOP, value); | |
| 334 | } | ||
| 335 | |||
| 336 | // N8 , \field Rated Low Speed Air Flow Rate | ||
| 337 | 10 | OptionalDouble CoilCoolingDXTwoSpeed_Impl::ratedLowSpeedAirFlowRate() const { | |
| 338 | 10 | return getDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedLowSpeedAirFlowRate); | |
| 339 | } | ||
| 340 | |||
| 341 | 17 | bool CoilCoolingDXTwoSpeed_Impl::setRatedLowSpeedAirFlowRate(OptionalDouble value) { | |
| 342 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 17 times.
|
17 | if (value) { |
| 343 | ✗ | return setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedLowSpeedAirFlowRate, *value); | |
| 344 | } else { | ||
| 345 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
51 | return setString(OS_Coil_Cooling_DX_TwoSpeedFields::RatedLowSpeedAirFlowRate, "Autosize"); |
| 346 | } | ||
| 347 | } | ||
| 348 | |||
| 349 | 2 | bool CoilCoolingDXTwoSpeed_Impl::setRatedLowSpeedAirFlowRate(double value) { | |
| 350 | 2 | return setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedLowSpeedAirFlowRate, value); | |
| 351 | } | ||
| 352 | |||
| 353 | // A10, \field Low Speed Total Cooling Capacity Function of Temperature Curve Name | ||
| 354 | //\object-list BiquadraticCurves | ||
| 355 | 13 | Curve CoilCoolingDXTwoSpeed_Impl::lowSpeedTotalCoolingCapacityFunctionOfTemperatureCurve() const { | |
| 356 |
1/1✓ Branch 1 taken 13 times.
|
13 | OptionalCurve result = optionalLowSpeedTotalCoolingCapacityFunctionOfTemperatureCurve(); |
| 357 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 13 times.
✗ Branch 4 not taken.
|
13 | OS_ASSERT(result); |
| 358 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
26 | return result.get(); |
| 359 | 13 | } | |
| 360 | |||
| 361 | 18 | bool CoilCoolingDXTwoSpeed_Impl::setLowSpeedTotalCoolingCapacityFunctionOfTemperatureCurve(const Curve& curve) { | |
| 362 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
18 | return setPointer(OS_Coil_Cooling_DX_TwoSpeedFields::LowSpeedTotalCoolingCapacityFunctionofTemperatureCurveName, curve.handle()); |
| 363 | } | ||
| 364 | |||
| 365 | // A11, \field Low Speed Energy Input Ratio Function of Temperature Curve Name | ||
| 366 | //\object-list BiquadraticCurves | ||
| 367 | 13 | Curve CoilCoolingDXTwoSpeed_Impl::lowSpeedEnergyInputRatioFunctionOfTemperatureCurve() const { | |
| 368 |
1/1✓ Branch 1 taken 13 times.
|
13 | OptionalCurve result = optionalLowSpeedEnergyInputRatioFunctionOfTemperatureCurve(); |
| 369 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 13 times.
✗ Branch 4 not taken.
|
13 | OS_ASSERT(result); |
| 370 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
26 | return result.get(); |
| 371 | 13 | } | |
| 372 | |||
| 373 | 18 | bool CoilCoolingDXTwoSpeed_Impl::setLowSpeedEnergyInputRatioFunctionOfTemperatureCurve(const Curve& curve) { | |
| 374 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
18 | return setPointer(OS_Coil_Cooling_DX_TwoSpeedFields::LowSpeedEnergyInputRatioFunctionofTemperatureCurveName, curve.handle()); |
| 375 | } | ||
| 376 | |||
| 377 | // A12, \field Condenser Air Inlet Node Name | ||
| 378 | 10 | OptionalString CoilCoolingDXTwoSpeed_Impl::condenserAirInletNodeName() const { | |
| 379 | 10 | return getString(OS_Coil_Cooling_DX_TwoSpeedFields::CondenserAirInletNodeName); | |
| 380 | } | ||
| 381 | |||
| 382 | 1 | bool CoilCoolingDXTwoSpeed_Impl::setCondenserAirInletNodeName(const std::string& value) { | |
| 383 | 1 | return setString(OS_Coil_Cooling_DX_TwoSpeedFields::CondenserAirInletNodeName, value); | |
| 384 | } | ||
| 385 | |||
| 386 | // A13, \field Condenser Type | ||
| 387 | 11 | std::string CoilCoolingDXTwoSpeed_Impl::condenserType() const { | |
| 388 |
3/3✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
✓ Branch 7 taken 11 times.
|
11 | return getString(OS_Coil_Cooling_DX_TwoSpeedFields::CondenserType).get(); |
| 389 | } | ||
| 390 | |||
| 391 | 19 | bool CoilCoolingDXTwoSpeed_Impl::setCondenserType(const std::string& value) { | |
| 392 | 19 | return setString(OS_Coil_Cooling_DX_TwoSpeedFields::CondenserType, value); | |
| 393 | } | ||
| 394 | |||
| 395 | // N9, \field High Speed Evaporative Condenser Effectiveness | ||
| 396 | 11 | double CoilCoolingDXTwoSpeed_Impl::highSpeedEvaporativeCondenserEffectiveness() const { | |
| 397 |
1/1✓ Branch 1 taken 11 times.
|
11 | boost::optional<double> value = getDouble(OS_Coil_Cooling_DX_TwoSpeedFields::HighSpeedEvaporativeCondenserEffectiveness); |
| 398 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 11 times.
✗ Branch 4 not taken.
|
11 | OS_ASSERT(value); |
| 399 |
1/1✓ Branch 1 taken 11 times.
|
22 | return value.get(); |
| 400 | } | ||
| 401 | |||
| 402 | 19 | bool CoilCoolingDXTwoSpeed_Impl::setHighSpeedEvaporativeCondenserEffectiveness(double value) { | |
| 403 | 19 | return setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::HighSpeedEvaporativeCondenserEffectiveness, value); | |
| 404 | } | ||
| 405 | |||
| 406 | // N10, \field High Speed Evaporative Condenser Air Flow Rate | ||
| 407 | 10 | OptionalDouble CoilCoolingDXTwoSpeed_Impl::highSpeedEvaporativeCondenserAirFlowRate() const { | |
| 408 | 10 | return getDouble(OS_Coil_Cooling_DX_TwoSpeedFields::HighSpeedEvaporativeCondenserAirFlowRate); | |
| 409 | } | ||
| 410 | |||
| 411 | 17 | bool CoilCoolingDXTwoSpeed_Impl::setHighSpeedEvaporativeCondenserAirFlowRate(OptionalDouble value) { | |
| 412 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 17 times.
|
17 | if (value) { |
| 413 | ✗ | return setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::HighSpeedEvaporativeCondenserAirFlowRate, *value); | |
| 414 | } else { | ||
| 415 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
51 | return setString(OS_Coil_Cooling_DX_TwoSpeedFields::HighSpeedEvaporativeCondenserAirFlowRate, "Autosize"); |
| 416 | } | ||
| 417 | } | ||
| 418 | |||
| 419 | 2 | bool CoilCoolingDXTwoSpeed_Impl::setHighSpeedEvaporativeCondenserAirFlowRate(double value) { | |
| 420 | 2 | return setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::HighSpeedEvaporativeCondenserAirFlowRate, value); | |
| 421 | } | ||
| 422 | |||
| 423 | // N11, \field High Speed Evaporative Condenser Pump Rated Power Consumption | ||
| 424 | 10 | OptionalDouble CoilCoolingDXTwoSpeed_Impl::highSpeedEvaporativeCondenserPumpRatedPowerConsumption() const { | |
| 425 | 10 | return getDouble(OS_Coil_Cooling_DX_TwoSpeedFields::HighSpeedEvaporativeCondenserPumpRatedPowerConsumption); | |
| 426 | } | ||
| 427 | 17 | bool CoilCoolingDXTwoSpeed_Impl::setHighSpeedEvaporativeCondenserPumpRatedPowerConsumption(OptionalDouble value) { | |
| 428 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 17 times.
|
17 | if (value) { |
| 429 | ✗ | return setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::HighSpeedEvaporativeCondenserPumpRatedPowerConsumption, *value); | |
| 430 | } else { | ||
| 431 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
51 | return setString(OS_Coil_Cooling_DX_TwoSpeedFields::HighSpeedEvaporativeCondenserPumpRatedPowerConsumption, "Autosize"); |
| 432 | } | ||
| 433 | } | ||
| 434 | |||
| 435 | 2 | bool CoilCoolingDXTwoSpeed_Impl::setHighSpeedEvaporativeCondenserPumpRatedPowerConsumption(double value) { | |
| 436 | 2 | return setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::HighSpeedEvaporativeCondenserPumpRatedPowerConsumption, value); | |
| 437 | } | ||
| 438 | |||
| 439 | // N12, \field Low Speed Evaporative Condenser Effectiveness | ||
| 440 | 11 | double CoilCoolingDXTwoSpeed_Impl::lowSpeedEvaporativeCondenserEffectiveness() const { | |
| 441 |
1/1✓ Branch 1 taken 11 times.
|
11 | boost::optional<double> value = getDouble(OS_Coil_Cooling_DX_TwoSpeedFields::LowSpeedEvaporativeCondenserEffectiveness); |
| 442 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 11 times.
✗ Branch 4 not taken.
|
11 | OS_ASSERT(value); |
| 443 |
1/1✓ Branch 1 taken 11 times.
|
22 | return value.get(); |
| 444 | } | ||
| 445 | |||
| 446 | 19 | bool CoilCoolingDXTwoSpeed_Impl::setLowSpeedEvaporativeCondenserEffectiveness(double value) { | |
| 447 | 19 | return setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::LowSpeedEvaporativeCondenserEffectiveness, value); | |
| 448 | } | ||
| 449 | |||
| 450 | // N13, \field Low Speed Evaporative Condenser Air Flow Rate | ||
| 451 | 10 | OptionalDouble CoilCoolingDXTwoSpeed_Impl::lowSpeedEvaporativeCondenserAirFlowRate() const { | |
| 452 | 10 | return getDouble(OS_Coil_Cooling_DX_TwoSpeedFields::LowSpeedEvaporativeCondenserAirFlowRate); | |
| 453 | } | ||
| 454 | |||
| 455 | 17 | bool CoilCoolingDXTwoSpeed_Impl::setLowSpeedEvaporativeCondenserAirFlowRate(OptionalDouble value) { | |
| 456 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 17 times.
|
17 | if (value) { |
| 457 | ✗ | return setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::LowSpeedEvaporativeCondenserAirFlowRate, *value); | |
| 458 | } else { | ||
| 459 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
51 | return setString(OS_Coil_Cooling_DX_TwoSpeedFields::LowSpeedEvaporativeCondenserAirFlowRate, "Autosize"); |
| 460 | } | ||
| 461 | } | ||
| 462 | |||
| 463 | 2 | bool CoilCoolingDXTwoSpeed_Impl::setLowSpeedEvaporativeCondenserAirFlowRate(double value) { | |
| 464 | 2 | return setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::LowSpeedEvaporativeCondenserAirFlowRate, value); | |
| 465 | } | ||
| 466 | |||
| 467 | // N14, \field Low Speed Evaporative Condenser Pump Rated Power Consumption | ||
| 468 | 10 | OptionalDouble CoilCoolingDXTwoSpeed_Impl::lowSpeedEvaporativeCondenserPumpRatedPowerConsumption() const { | |
| 469 | 10 | return getDouble(OS_Coil_Cooling_DX_TwoSpeedFields::LowSpeedEvaporativeCondenserPumpRatedPowerConsumption); | |
| 470 | } | ||
| 471 | |||
| 472 | 17 | bool CoilCoolingDXTwoSpeed_Impl::setLowSpeedEvaporativeCondenserPumpRatedPowerConsumption(OptionalDouble value) { | |
| 473 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 17 times.
|
17 | if (value) { |
| 474 | ✗ | return setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::LowSpeedEvaporativeCondenserPumpRatedPowerConsumption, *value); | |
| 475 | } else { | ||
| 476 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
51 | return setString(OS_Coil_Cooling_DX_TwoSpeedFields::LowSpeedEvaporativeCondenserPumpRatedPowerConsumption, "Autosize"); |
| 477 | } | ||
| 478 | } | ||
| 479 | |||
| 480 | 2 | bool CoilCoolingDXTwoSpeed_Impl::setLowSpeedEvaporativeCondenserPumpRatedPowerConsumption(double value) { | |
| 481 | 2 | return setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::LowSpeedEvaporativeCondenserPumpRatedPowerConsumption, value); | |
| 482 | } | ||
| 483 | |||
| 484 | //TODO | ||
| 485 | // A14, \field Supply Water Storage Tank Name | ||
| 486 | // getSupplyWaterStorageTankName | ||
| 487 | // setSupplyWaterStorageTankName | ||
| 488 | |||
| 489 | //TODO | ||
| 490 | // A15, \field Condensate Collection Water Storage Tank Name | ||
| 491 | // getCondensateCollectionWaterStorageTankName | ||
| 492 | // setCondensateCollectionWaterStorageTankName | ||
| 493 | |||
| 494 | // N15, \field Basin Heater Capacity | ||
| 495 | 11 | double CoilCoolingDXTwoSpeed_Impl::basinHeaterCapacity() const { | |
| 496 |
1/1✓ Branch 1 taken 11 times.
|
11 | boost::optional<double> value = getDouble(OS_Coil_Cooling_DX_TwoSpeedFields::BasinHeaterCapacity); |
| 497 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 11 times.
✗ Branch 4 not taken.
|
11 | OS_ASSERT(value); |
| 498 |
1/1✓ Branch 1 taken 11 times.
|
22 | return value.get(); |
| 499 | } | ||
| 500 | |||
| 501 | 19 | bool CoilCoolingDXTwoSpeed_Impl::setBasinHeaterCapacity(double value) { | |
| 502 | 19 | return setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::BasinHeaterCapacity, value); | |
| 503 | } | ||
| 504 | |||
| 505 | // N16, \field Basin Heater Setpoint Temperature | ||
| 506 | 11 | double CoilCoolingDXTwoSpeed_Impl::basinHeaterSetpointTemperature() const { | |
| 507 |
1/1✓ Branch 1 taken 11 times.
|
11 | boost::optional<double> value = getDouble(OS_Coil_Cooling_DX_TwoSpeedFields::BasinHeaterSetpointTemperature); |
| 508 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 11 times.
✗ Branch 4 not taken.
|
11 | OS_ASSERT(value); |
| 509 |
1/1✓ Branch 1 taken 11 times.
|
22 | return value.get(); |
| 510 | } | ||
| 511 | |||
| 512 | 19 | bool CoilCoolingDXTwoSpeed_Impl::setBasinHeaterSetpointTemperature(double value) { | |
| 513 | 19 | return setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::BasinHeaterSetpointTemperature, value); | |
| 514 | } | ||
| 515 | |||
| 516 | // A16; \field Basin Heater Operating Schedule Name | ||
| 517 | 10 | boost::optional<Schedule> CoilCoolingDXTwoSpeed_Impl::basinHeaterOperatingSchedule() const { | |
| 518 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
10 | return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_Coil_Cooling_DX_TwoSpeedFields::BasinHeaterOperatingScheduleName); |
| 519 | } | ||
| 520 | |||
| 521 | 2 | bool CoilCoolingDXTwoSpeed_Impl::setBasinHeaterOperatingSchedule(Schedule& schedule) { | |
| 522 | bool result = | ||
| 523 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
|
8 | setSchedule(OS_Coil_Cooling_DX_TwoSpeedFields::BasinHeaterOperatingScheduleName, "CoilCoolingDXTwoSpeed", "Basin Heater Operation", schedule); |
| 524 | 2 | return result; | |
| 525 | } | ||
| 526 | |||
| 527 | ✗ | void CoilCoolingDXTwoSpeed_Impl::resetBasinHeaterOperatingSchedule() { | |
| 528 | ✗ | bool result = setString(OS_Coil_Cooling_DX_TwoSpeedFields::BasinHeaterOperatingScheduleName, ""); | |
| 529 | ✗ | OS_ASSERT(result); | |
| 530 | ✗ | } | |
| 531 | |||
| 532 | // A3 , \field Air Inlet Node Name | ||
| 533 | 135 | unsigned CoilCoolingDXTwoSpeed_Impl::inletPort() const { | |
| 534 | 135 | return OS_Coil_Cooling_DX_TwoSpeedFields::AirInletNodeName; | |
| 535 | } | ||
| 536 | |||
| 537 | // A4 , \field Air Outlet Node Name | ||
| 538 | 150 | unsigned CoilCoolingDXTwoSpeed_Impl::outletPort() const { | |
| 539 | 150 | return OS_Coil_Cooling_DX_TwoSpeedFields::AirOutletNodeName; | |
| 540 | } | ||
| 541 | |||
| 542 | 19 | boost::optional<Schedule> CoilCoolingDXTwoSpeed_Impl::optionalAvailabilitySchedule() const { | |
| 543 |
2/2✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
|
19 | return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_Coil_Cooling_DX_TwoSpeedFields::AvailabilityScheduleName); |
| 544 | } | ||
| 545 | |||
| 546 | 23 | boost::optional<Curve> CoilCoolingDXTwoSpeed_Impl::optionalTotalCoolingCapacityFunctionOfTemperatureCurve() const { | |
| 547 |
1/1✓ Branch 1 taken 23 times.
|
46 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 548 |
1/1✓ Branch 1 taken 23 times.
|
46 | OS_Coil_Cooling_DX_TwoSpeedFields::TotalCoolingCapacityFunctionofTemperatureCurveName); |
| 549 | } | ||
| 550 | |||
| 551 | 24 | boost::optional<Curve> CoilCoolingDXTwoSpeed_Impl::optionalTotalCoolingCapacityFunctionOfFlowFractionCurve() const { | |
| 552 |
1/1✓ Branch 1 taken 24 times.
|
48 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 553 |
1/1✓ Branch 1 taken 24 times.
|
48 | OS_Coil_Cooling_DX_TwoSpeedFields::TotalCoolingCapacityFunctionofFlowFractionCurveName); |
| 554 | } | ||
| 555 | |||
| 556 | 23 | boost::optional<Curve> CoilCoolingDXTwoSpeed_Impl::optionalEnergyInputRatioFunctionOfTemperatureCurve() const { | |
| 557 |
2/2✓ Branch 1 taken 23 times.
✓ Branch 4 taken 23 times.
|
23 | return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_Coil_Cooling_DX_TwoSpeedFields::EnergyInputRatioFunctionofTemperatureCurveName); |
| 558 | } | ||
| 559 | |||
| 560 | 24 | boost::optional<Curve> CoilCoolingDXTwoSpeed_Impl::optionalEnergyInputRatioFunctionOfFlowFractionCurve() const { | |
| 561 |
2/2✓ Branch 1 taken 24 times.
✓ Branch 4 taken 24 times.
|
24 | return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_Coil_Cooling_DX_TwoSpeedFields::EnergyInputRatioFunctionofFlowFractionCurveName); |
| 562 | } | ||
| 563 | |||
| 564 | 24 | boost::optional<Curve> CoilCoolingDXTwoSpeed_Impl::optionalPartLoadFractionCorrelationCurve() const { | |
| 565 |
2/2✓ Branch 1 taken 24 times.
✓ Branch 4 taken 24 times.
|
24 | return getObject<ModelObject>().getModelObjectTarget<Curve>(OS_Coil_Cooling_DX_TwoSpeedFields::PartLoadFractionCorrelationCurveName); |
| 566 | } | ||
| 567 | |||
| 568 | 23 | boost::optional<Curve> CoilCoolingDXTwoSpeed_Impl::optionalLowSpeedTotalCoolingCapacityFunctionOfTemperatureCurve() const { | |
| 569 |
1/1✓ Branch 1 taken 23 times.
|
46 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 570 |
1/1✓ Branch 1 taken 23 times.
|
46 | OS_Coil_Cooling_DX_TwoSpeedFields::LowSpeedTotalCoolingCapacityFunctionofTemperatureCurveName); |
| 571 | } | ||
| 572 | |||
| 573 | 23 | boost::optional<Curve> CoilCoolingDXTwoSpeed_Impl::optionalLowSpeedEnergyInputRatioFunctionOfTemperatureCurve() const { | |
| 574 |
1/1✓ Branch 1 taken 23 times.
|
46 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 575 |
1/1✓ Branch 1 taken 23 times.
|
46 | OS_Coil_Cooling_DX_TwoSpeedFields::LowSpeedEnergyInputRatioFunctionofTemperatureCurveName); |
| 576 | } | ||
| 577 | |||
| 578 | ✗ | boost::optional<ModelObject> CoilCoolingDXTwoSpeed_Impl::availabilityScheduleAsModelObject() const { | |
| 579 | ✗ | OptionalModelObject result = availabilitySchedule(); | |
| 580 | ✗ | return result; | |
| 581 | } | ||
| 582 | |||
| 583 | ✗ | boost::optional<ModelObject> CoilCoolingDXTwoSpeed_Impl::basinHeaterOperatingScheduleAsModelObject() const { | |
| 584 | ✗ | OptionalModelObject result; | |
| 585 | ✗ | OptionalSchedule intermediate = basinHeaterOperatingSchedule(); | |
| 586 | ✗ | if (intermediate) { | |
| 587 | ✗ | result = *intermediate; | |
| 588 | } | ||
| 589 | ✗ | return result; | |
| 590 | ✗ | } | |
| 591 | |||
| 592 | ✗ | bool CoilCoolingDXTwoSpeed_Impl::setAvailabilityScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) { | |
| 593 | ✗ | if (modelObject) { | |
| 594 | ✗ | OptionalSchedule intermediate = modelObject->optionalCast<Schedule>(); | |
| 595 | ✗ | if (intermediate) { | |
| 596 | ✗ | Schedule schedule(*intermediate); | |
| 597 | ✗ | return setAvailabilitySchedule(schedule); | |
| 598 | ✗ | } | |
| 599 | ✗ | } | |
| 600 | ✗ | return false; | |
| 601 | } | ||
| 602 | |||
| 603 | ✗ | bool CoilCoolingDXTwoSpeed_Impl::setBasinHeaterOperatingScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) { | |
| 604 | ✗ | if (modelObject) { | |
| 605 | ✗ | OptionalSchedule intermediate = modelObject->optionalCast<Schedule>(); | |
| 606 | ✗ | if (intermediate) { | |
| 607 | ✗ | Schedule schedule(*intermediate); | |
| 608 | ✗ | return setBasinHeaterOperatingSchedule(schedule); | |
| 609 | ✗ | } else { | |
| 610 | ✗ | return false; | |
| 611 | } | ||
| 612 | ✗ | } else { | |
| 613 | ✗ | resetBasinHeaterOperatingSchedule(); | |
| 614 | } | ||
| 615 | ✗ | return true; | |
| 616 | } | ||
| 617 | |||
| 618 | 11 | double CoilCoolingDXTwoSpeed_Impl::minimumOutdoorDryBulbTemperatureforCompressorOperation() const { | |
| 619 |
1/1✓ Branch 1 taken 11 times.
|
11 | boost::optional<double> value = getDouble(OS_Coil_Cooling_DX_TwoSpeedFields::MinimumOutdoorDryBulbTemperatureforCompressorOperation, true); |
| 620 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 11 times.
✗ Branch 4 not taken.
|
11 | OS_ASSERT(value); |
| 621 |
1/1✓ Branch 1 taken 11 times.
|
22 | return value.get(); |
| 622 | } | ||
| 623 | |||
| 624 | 19 | bool CoilCoolingDXTwoSpeed_Impl::setMinimumOutdoorDryBulbTemperatureforCompressorOperation( | |
| 625 | double minimumOutdoorDryBulbTemperatureforCompressorOperation) { | ||
| 626 | 19 | bool result = setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::MinimumOutdoorDryBulbTemperatureforCompressorOperation, | |
| 627 | minimumOutdoorDryBulbTemperatureforCompressorOperation); | ||
| 628 | 19 | return result; | |
| 629 | } | ||
| 630 | |||
| 631 | 11 | double CoilCoolingDXTwoSpeed_Impl::unitInternalStaticAirPressure() const { | |
| 632 |
1/1✓ Branch 1 taken 11 times.
|
11 | boost::optional<double> value = getDouble(OS_Coil_Cooling_DX_TwoSpeedFields::UnitInternalStaticAirPressure, true); |
| 633 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 11 times.
✗ Branch 4 not taken.
|
11 | OS_ASSERT(value); |
| 634 |
1/1✓ Branch 1 taken 11 times.
|
22 | return value.get(); |
| 635 | } | ||
| 636 | |||
| 637 | 19 | bool CoilCoolingDXTwoSpeed_Impl::setUnitInternalStaticAirPressure(double unitInternalStaticAirPressure) { | |
| 638 | 19 | bool result = setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::UnitInternalStaticAirPressure, unitInternalStaticAirPressure); | |
| 639 | 19 | return result; | |
| 640 | } | ||
| 641 | |||
| 642 | 9 | double CoilCoolingDXTwoSpeed_Impl::ratedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2017() const { | |
| 643 |
1/1✓ Branch 1 taken 9 times.
|
9 | boost::optional<double> value = getDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2017, true); |
| 644 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 9 times.
✗ Branch 4 not taken.
|
9 | OS_ASSERT(value); |
| 645 |
1/1✓ Branch 1 taken 9 times.
|
18 | return value.get(); |
| 646 | } | ||
| 647 | |||
| 648 | 18 | bool CoilCoolingDXTwoSpeed_Impl::setRatedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2017( | |
| 649 | double ratedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2017) { | ||
| 650 | 18 | bool result = setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2017, | |
| 651 | ratedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2017); | ||
| 652 | 18 | return result; | |
| 653 | } | ||
| 654 | |||
| 655 | 9 | double CoilCoolingDXTwoSpeed_Impl::ratedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2023() const { | |
| 656 |
1/1✓ Branch 1 taken 9 times.
|
9 | boost::optional<double> value = getDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2023, true); |
| 657 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 9 times.
✗ Branch 4 not taken.
|
9 | OS_ASSERT(value); |
| 658 |
1/1✓ Branch 1 taken 9 times.
|
18 | return value.get(); |
| 659 | } | ||
| 660 | |||
| 661 | 18 | bool CoilCoolingDXTwoSpeed_Impl::setRatedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2023( | |
| 662 | double ratedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2023) { | ||
| 663 | 18 | bool result = setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2023, | |
| 664 | ratedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2023); | ||
| 665 | 18 | return result; | |
| 666 | } | ||
| 667 | |||
| 668 | 9 | double CoilCoolingDXTwoSpeed_Impl::ratedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2017() const { | |
| 669 |
1/1✓ Branch 1 taken 9 times.
|
9 | boost::optional<double> value = getDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2017, true); |
| 670 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 9 times.
✗ Branch 4 not taken.
|
9 | OS_ASSERT(value); |
| 671 |
1/1✓ Branch 1 taken 9 times.
|
18 | return value.get(); |
| 672 | } | ||
| 673 | |||
| 674 | 18 | bool CoilCoolingDXTwoSpeed_Impl::setRatedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2017( | |
| 675 | double ratedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2017) { | ||
| 676 | 18 | bool result = setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2017, | |
| 677 | ratedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2017); | ||
| 678 | 18 | return result; | |
| 679 | } | ||
| 680 | |||
| 681 | 9 | double CoilCoolingDXTwoSpeed_Impl::ratedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2023() const { | |
| 682 |
1/1✓ Branch 1 taken 9 times.
|
9 | boost::optional<double> value = getDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2023, true); |
| 683 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 9 times.
✗ Branch 4 not taken.
|
9 | OS_ASSERT(value); |
| 684 |
1/1✓ Branch 1 taken 9 times.
|
18 | return value.get(); |
| 685 | } | ||
| 686 | |||
| 687 | 18 | bool CoilCoolingDXTwoSpeed_Impl::setRatedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2023( | |
| 688 | double ratedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2023) { | ||
| 689 | 18 | bool result = setDouble(OS_Coil_Cooling_DX_TwoSpeedFields::RatedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2023, | |
| 690 | ratedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2023); | ||
| 691 | 18 | return result; | |
| 692 | } | ||
| 693 | |||
| 694 | 12 | bool CoilCoolingDXTwoSpeed_Impl::addToNode(Node& node) { | |
| 695 |
3/3✓ Branch 1 taken 12 times.
✓ Branch 3 taken 8 times.
✓ Branch 4 taken 4 times.
|
24 | if (boost::optional<AirLoopHVAC> airLoop = node.airLoopHVAC()) { |
| 696 |
5/5✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
✓ Branch 11 taken 7 times.
✓ Branch 12 taken 1 time.
|
8 | if (!airLoop->demandComponent(node.handle())) { |
| 697 |
1/1✓ Branch 1 taken 7 times.
|
7 | return StraightComponent_Impl::addToNode(node); |
| 698 | } | ||
| 699 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 2 times.
|
8 | } else if (boost::optional<AirLoopHVACOutdoorAirSystem> oas = node.airLoopHVACOutdoorAirSystem()) { |
| 700 |
3/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✗ Branch 8 not taken.
|
4 | if (oas->airLoopHVACDedicatedOutdoorAirSystem()) { |
| 701 |
1/1✓ Branch 1 taken 2 times.
|
2 | return StraightComponent_Impl::addToNode(node); |
| 702 | } | ||
| 703 | 16 | } | |
| 704 | |||
| 705 | 3 | return false; | |
| 706 | } | ||
| 707 | |||
| 708 | 11 | boost::optional<HVACComponent> CoilCoolingDXTwoSpeed_Impl::containingHVACComponent() const { | |
| 709 | // AirLoopHVACUnitarySystem | ||
| 710 |
2/2✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
|
11 | std::vector<AirLoopHVACUnitarySystem> airLoopHVACUnitarySystems = this->model().getConcreteModelObjects<AirLoopHVACUnitarySystem>(); |
| 711 | |||
| 712 |
2/2✓ Branch 5 taken 1 time.
✓ Branch 6 taken 10 times.
|
11 | for (const auto& airLoopHVACUnitarySystem : airLoopHVACUnitarySystems) { |
| 713 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<HVACComponent> coolingCoil = airLoopHVACUnitarySystem.coolingCoil()) { |
| 714 |
5/6✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 12 taken 1 time.
✗ Branch 13 not taken.
|
1 | if (coolingCoil->handle() == this->handle()) { |
| 715 |
1/1✓ Branch 1 taken 1 time.
|
1 | return airLoopHVACUnitarySystem; |
| 716 | } | ||
| 717 | 1 | } | |
| 718 | } | ||
| 719 | 10 | return boost::none; | |
| 720 | 11 | } | |
| 721 | |||
| 722 | ✗ | AirflowNetworkEquivalentDuct CoilCoolingDXTwoSpeed_Impl::getAirflowNetworkEquivalentDuct(double length, double diameter) { | |
| 723 | ✗ | boost::optional<AirflowNetworkEquivalentDuct> opt = airflowNetworkEquivalentDuct(); | |
| 724 | ✗ | if (opt) { | |
| 725 | ✗ | if (opt->airPathLength() != length) { | |
| 726 | ✗ | opt->setAirPathLength(length); | |
| 727 | } | ||
| 728 | ✗ | if (opt->airPathHydraulicDiameter() != diameter) { | |
| 729 | ✗ | opt->setAirPathHydraulicDiameter(diameter); | |
| 730 | } | ||
| 731 | } | ||
| 732 | ✗ | return AirflowNetworkEquivalentDuct(model(), length, diameter, handle()); | |
| 733 | ✗ | } | |
| 734 | |||
| 735 | ✗ | boost::optional<AirflowNetworkEquivalentDuct> CoilCoolingDXTwoSpeed_Impl::airflowNetworkEquivalentDuct() const { | |
| 736 | std::vector<AirflowNetworkEquivalentDuct> myAFN = | ||
| 737 | ✗ | getObject<ModelObject>().getModelObjectSources<AirflowNetworkEquivalentDuct>(AirflowNetworkEquivalentDuct::iddObjectType()); | |
| 738 | ✗ | auto count = myAFN.size(); | |
| 739 | ✗ | if (count == 1) { | |
| 740 | ✗ | return myAFN[0]; | |
| 741 | ✗ | } else if (count > 1) { | |
| 742 | ✗ | LOG(Warn, briefDescription() << " has more than one AirflowNetwork EquivalentDuct attached, returning first."); | |
| 743 | ✗ | return myAFN[0]; | |
| 744 | } | ||
| 745 | ✗ | return boost::none; | |
| 746 | ✗ | } | |
| 747 | |||
| 748 | ✗ | boost::optional<double> CoilCoolingDXTwoSpeed_Impl::autosizedRatedHighSpeedTotalCoolingCapacity() const { | |
| 749 | ✗ | return getAutosizedValue("Design Size High Speed Gross Rated Total Cooling Capacity", "W"); | |
| 750 | } | ||
| 751 | |||
| 752 | ✗ | boost::optional<double> CoilCoolingDXTwoSpeed_Impl::autosizedRatedHighSpeedSensibleHeatRatio() const { | |
| 753 | ✗ | return getAutosizedValue("Design Size High Speed Rated Sensible Heat Ratio", ""); | |
| 754 | } | ||
| 755 | |||
| 756 | ✗ | boost::optional<double> CoilCoolingDXTwoSpeed_Impl::autosizedRatedHighSpeedAirFlowRate() const { | |
| 757 | ✗ | return getAutosizedValue("Design Size High Speed Rated Air Flow Rate", "m3/s"); | |
| 758 | } | ||
| 759 | |||
| 760 | ✗ | boost::optional<double> CoilCoolingDXTwoSpeed_Impl::autosizedRatedLowSpeedTotalCoolingCapacity() const { | |
| 761 | ✗ | return getAutosizedValue("Design Size Low Speed Gross Rated Total Cooling Capacity", "W"); | |
| 762 | } | ||
| 763 | |||
| 764 | ✗ | boost::optional<double> CoilCoolingDXTwoSpeed_Impl::autosizedRatedLowSpeedSensibleHeatRatio() const { | |
| 765 | ✗ | return getAutosizedValue("Design Size Low Speed Gross Rated Sensible Heat Ratio", ""); | |
| 766 | } | ||
| 767 | |||
| 768 | ✗ | boost::optional<double> CoilCoolingDXTwoSpeed_Impl::autosizedRatedLowSpeedAirFlowRate() const { | |
| 769 | ✗ | return getAutosizedValue("Design Size Low Speed Rated Air Flow Rate", "m3/s"); | |
| 770 | } | ||
| 771 | |||
| 772 | // E+ output has a bug where this field label is incorrect | ||
| 773 | ✗ | boost::optional<double> CoilCoolingDXTwoSpeed_Impl::autosizedHighSpeedEvaporativeCondenserAirFlowRate() const { | |
| 774 | ✗ | return getAutosizedValue("Design Size High Speed Evaporative Condenser Air Flow Rate", "m3/s"); | |
| 775 | } | ||
| 776 | |||
| 777 | // E+ output has a bug where this field label is incorrect | ||
| 778 | ✗ | boost::optional<double> CoilCoolingDXTwoSpeed_Impl::autosizedHighSpeedEvaporativeCondenserPumpRatedPowerConsumption() const { | |
| 779 | ✗ | return getAutosizedValue("Design Size High Speed Evaporative Condenser Pump Rated Power Consumption", "W"); | |
| 780 | } | ||
| 781 | |||
| 782 | // E+ output has a bug where this field label is incorrect | ||
| 783 | ✗ | boost::optional<double> CoilCoolingDXTwoSpeed_Impl::autosizedLowSpeedEvaporativeCondenserAirFlowRate() const { | |
| 784 | ✗ | return getAutosizedValue("Design Size Low Speed Evaporative Condenser Air Flow Rate", "m3/s"); | |
| 785 | } | ||
| 786 | |||
| 787 | // E+ output has a bug where this field label is incorrect | ||
| 788 | ✗ | boost::optional<double> CoilCoolingDXTwoSpeed_Impl::autosizedLowSpeedEvaporativeCondenserPumpRatedPowerConsumption() const { | |
| 789 | ✗ | return getAutosizedValue("Design Size Low Speed Evaporative Condenser Pump Rated Power Consumption", "W"); | |
| 790 | } | ||
| 791 | |||
| 792 | ✗ | void CoilCoolingDXTwoSpeed_Impl::autosize() { | |
| 793 | ✗ | boost::optional<double> emptyVal; | |
| 794 | ✗ | setRatedHighSpeedTotalCoolingCapacity(emptyVal); | |
| 795 | ✗ | setRatedHighSpeedSensibleHeatRatio(emptyVal); | |
| 796 | ✗ | setRatedHighSpeedAirFlowRate(emptyVal); | |
| 797 | ✗ | setRatedLowSpeedTotalCoolingCapacity(emptyVal); | |
| 798 | ✗ | setRatedLowSpeedSensibleHeatRatio(emptyVal); | |
| 799 | ✗ | setRatedLowSpeedAirFlowRate(emptyVal); | |
| 800 | ✗ | setHighSpeedEvaporativeCondenserAirFlowRate(emptyVal); | |
| 801 | ✗ | setHighSpeedEvaporativeCondenserPumpRatedPowerConsumption(emptyVal); | |
| 802 | ✗ | setLowSpeedEvaporativeCondenserAirFlowRate(emptyVal); | |
| 803 | ✗ | setLowSpeedEvaporativeCondenserPumpRatedPowerConsumption(emptyVal); | |
| 804 | ✗ | } | |
| 805 | |||
| 806 | ✗ | void CoilCoolingDXTwoSpeed_Impl::applySizingValues() { | |
| 807 | ✗ | boost::optional<double> val; | |
| 808 | ✗ | val = autosizedRatedHighSpeedTotalCoolingCapacity(); | |
| 809 | ✗ | if (val) { | |
| 810 | ✗ | setRatedHighSpeedTotalCoolingCapacity(val.get()); | |
| 811 | } | ||
| 812 | |||
| 813 | ✗ | val = autosizedRatedHighSpeedSensibleHeatRatio(); | |
| 814 | ✗ | if (val) { | |
| 815 | ✗ | setRatedHighSpeedSensibleHeatRatio(val.get()); | |
| 816 | } | ||
| 817 | |||
| 818 | ✗ | val = autosizedRatedHighSpeedAirFlowRate(); | |
| 819 | ✗ | if (val) { | |
| 820 | ✗ | setRatedHighSpeedAirFlowRate(val.get()); | |
| 821 | } | ||
| 822 | |||
| 823 | ✗ | val = autosizedRatedLowSpeedTotalCoolingCapacity(); | |
| 824 | ✗ | if (val) { | |
| 825 | ✗ | setRatedLowSpeedTotalCoolingCapacity(val.get()); | |
| 826 | } | ||
| 827 | |||
| 828 | ✗ | val = autosizedRatedLowSpeedSensibleHeatRatio(); | |
| 829 | ✗ | if (val) { | |
| 830 | ✗ | setRatedLowSpeedSensibleHeatRatio(val.get()); | |
| 831 | } | ||
| 832 | |||
| 833 | ✗ | val = autosizedRatedLowSpeedAirFlowRate(); | |
| 834 | ✗ | if (val) { | |
| 835 | ✗ | setRatedLowSpeedAirFlowRate(val.get()); | |
| 836 | } | ||
| 837 | |||
| 838 | ✗ | val = autosizedHighSpeedEvaporativeCondenserAirFlowRate(); | |
| 839 | ✗ | if (val) { | |
| 840 | ✗ | setHighSpeedEvaporativeCondenserAirFlowRate(val.get()); | |
| 841 | } | ||
| 842 | |||
| 843 | ✗ | val = autosizedHighSpeedEvaporativeCondenserPumpRatedPowerConsumption(); | |
| 844 | ✗ | if (val) { | |
| 845 | ✗ | setHighSpeedEvaporativeCondenserPumpRatedPowerConsumption(val.get()); | |
| 846 | } | ||
| 847 | |||
| 848 | ✗ | val = autosizedLowSpeedEvaporativeCondenserAirFlowRate(); | |
| 849 | ✗ | if (val) { | |
| 850 | ✗ | setLowSpeedEvaporativeCondenserAirFlowRate(val.get()); | |
| 851 | } | ||
| 852 | |||
| 853 | ✗ | val = autosizedLowSpeedEvaporativeCondenserPumpRatedPowerConsumption(); | |
| 854 | ✗ | if (val) { | |
| 855 | ✗ | setLowSpeedEvaporativeCondenserPumpRatedPowerConsumption(val.get()); | |
| 856 | } | ||
| 857 | ✗ | } | |
| 858 | |||
| 859 | ✗ | ComponentType CoilCoolingDXTwoSpeed_Impl::componentType() const { | |
| 860 | ✗ | return ComponentType::Cooling; | |
| 861 | } | ||
| 862 | |||
| 863 | ✗ | std::vector<FuelType> CoilCoolingDXTwoSpeed_Impl::coolingFuelTypes() const { | |
| 864 | ✗ | return {FuelType::Electricity}; | |
| 865 | } | ||
| 866 | |||
| 867 | ✗ | std::vector<FuelType> CoilCoolingDXTwoSpeed_Impl::heatingFuelTypes() const { | |
| 868 | ✗ | return {}; | |
| 869 | } | ||
| 870 | |||
| 871 | ✗ | std::vector<AppGFuelType> CoilCoolingDXTwoSpeed_Impl::appGHeatingFuelTypes() const { | |
| 872 | ✗ | return {}; | |
| 873 | } | ||
| 874 | |||
| 875 | } // namespace detail | ||
| 876 | |||
| 877 | //This section defines the default values the object gets when created. | ||
| 878 | |||
| 879 | //Coil:Cooling:DX:TwoSpeed, | ||
| 880 | //Main Cooling Coil 1, !- Name | ||
| 881 | //CoolingCoilAvailSched, !- Availability Schedule Name | ||
| 882 | //autosize, !- Rated High Speed Total Cooling Capacity {W} | ||
| 883 | //0.68, !- Rated High Speed Sensible Heat Ratio | ||
| 884 | //3.0, !- Rated High Speed COP | ||
| 885 | //autosize, !- Rated High Speed Air Flow Rate {m3/s} | ||
| 886 | //Mixed Air Node 1, !- Air Inlet Node Name | ||
| 887 | //Main Cooling Coil 1 Outlet Node, !- Air Outlet Node Name | ||
| 888 | //VarSpeedCoolCapFT, !- Total Cooling Capacity Function of Temperature Curve Name | ||
| 889 | //PackagedRatedCoolCapFFlow, !- Total Cooling Capacity Function of Flow Fraction Curve Name | ||
| 890 | //VarSpeedCoolEIRFT, !- Energy Input Ratio Function of Temperature Curve Name | ||
| 891 | //PackagedRatedCoolEIRFFlow, !- Energy Input Ratio Function of Flow Fraction Curve Name | ||
| 892 | //VarSpeedCyclingPLFFPLR, !- Part Load Fraction Correlation Curve Name | ||
| 893 | //autosize, !- Rated Low Speed Total Cooling Capacity {W} | ||
| 894 | //0.69, !- Rated Low Speed Sensible Heat Ratio | ||
| 895 | //4.2, !- Rated Low Speed COP | ||
| 896 | //autosize, !- Rated Low Speed Air Flow Rate {m3/s} | ||
| 897 | //VarSpeedCoolCapLSFT, !- Low Speed Total Cooling Capacity Function of Temperature Curve Name | ||
| 898 | //VarSpeedCoolEIRLSFT, !- Low Speed Energy Input Ratio Function of Temperature Curve Name | ||
| 899 | //Main Cooling Coil 1 Condenser Node; !- Condenser Air Inlet Node Name | ||
| 900 | |||
| 901 | // create a new CoilCoolingDXTwoSpeed object in the model's workspace | ||
| 902 | 10 | CoilCoolingDXTwoSpeed::CoilCoolingDXTwoSpeed(const Model& model, Schedule& availabilitySchedule, const Curve& coolingCurveFofTemp, | |
| 903 | const Curve& coolingCurveFofFlow, const Curve& energyInputRatioFofTemp, | ||
| 904 | const Curve& energyInputRatioFofFlow, const Curve& partLoadFraction, | ||
| 905 | 10 | const Curve& lowSpeedCoolingCurveFofTemp, const Curve& lowSpeedEnergyInputRatioFofTemp) | |
| 906 | 10 | : StraightComponent(CoilCoolingDXTwoSpeed::iddObjectType(), model) { | |
| 907 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 10 times.
✗ Branch 5 not taken.
|
10 | OS_ASSERT(getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()); |
| 908 | // A2 , \field Availability Schedule Name | ||
| 909 |
1/1✓ Branch 1 taken 10 times.
|
10 | bool ok = setAvailabilitySchedule(availabilitySchedule); |
| 910 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
|
10 | if (!ok) { |
| 911 | ✗ | remove(); | |
| 912 | ✗ | LOG_AND_THROW("Unable to set " << briefDescription() << "'s availability schedule to " << availabilitySchedule.briefDescription() << "."); | |
| 913 | } | ||
| 914 | // N1 , \field Rated High Speed Total Cooling Capacity | ||
| 915 |
1/1✓ Branch 2 taken 10 times.
|
10 | setRatedHighSpeedTotalCoolingCapacity(OptionalDouble()); //autosize |
| 916 | // N2 , \field Rated High Speed Sensible Heat Ratio | ||
| 917 |
1/1✓ Branch 2 taken 10 times.
|
10 | setRatedHighSpeedSensibleHeatRatio(OptionalDouble()); //autosize |
| 918 | // N3 , \field Rated High Speed COP | ||
| 919 |
1/1✓ Branch 1 taken 10 times.
|
10 | setRatedHighSpeedCOP(3.0); |
| 920 | // N4 , \field Rated High Speed Air Flow Rate | ||
| 921 |
1/1✓ Branch 2 taken 10 times.
|
10 | setRatedHighSpeedAirFlowRate(OptionalDouble()); //autosize |
| 922 | |||
| 923 |
1/1✓ Branch 1 taken 10 times.
|
10 | setRatedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2017(773.3); |
| 924 |
1/1✓ Branch 1 taken 10 times.
|
10 | setRatedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2023(934.4); |
| 925 | |||
| 926 | // A5 , \field Total Cooling Capacity Function of Temperature Curve Name | ||
| 927 |
1/1✓ Branch 1 taken 10 times.
|
10 | setTotalCoolingCapacityFunctionOfTemperatureCurve(coolingCurveFofTemp); |
| 928 | // A6 , \field Total Cooling Capacity Function of Flow Fraction Curve Name | ||
| 929 |
1/1✓ Branch 1 taken 10 times.
|
10 | setTotalCoolingCapacityFunctionOfFlowFractionCurve(coolingCurveFofFlow); |
| 930 | // A7 , \field Energy Input Ratio Function of Temperature Curve Name | ||
| 931 |
1/1✓ Branch 1 taken 10 times.
|
10 | setEnergyInputRatioFunctionOfTemperatureCurve(energyInputRatioFofTemp); |
| 932 | // A8 , \field Energy Input Ratio Function of Flow Fraction Curve Name | ||
| 933 |
1/1✓ Branch 1 taken 10 times.
|
10 | setEnergyInputRatioFunctionOfFlowFractionCurve(energyInputRatioFofFlow); |
| 934 | // A9 , \field Part Load Fraction Correlation Curve Name | ||
| 935 |
1/1✓ Branch 1 taken 10 times.
|
10 | setPartLoadFractionCorrelationCurve(partLoadFraction); |
| 936 | // N5 , \field Rated Low Speed Total Cooling Capacity | ||
| 937 |
1/1✓ Branch 2 taken 10 times.
|
10 | setRatedLowSpeedTotalCoolingCapacity(OptionalDouble()); //autosize |
| 938 | // N6 , \field Rated Low Speed Sensible Heat Ratio | ||
| 939 |
1/1✓ Branch 2 taken 10 times.
|
10 | setRatedLowSpeedSensibleHeatRatio(OptionalDouble()); //autosize |
| 940 | // N7 , \field Rated Low Speed COP | ||
| 941 |
1/1✓ Branch 1 taken 10 times.
|
10 | setRatedLowSpeedCOP(3.0); |
| 942 | // N8 , \field Rated Low Speed Air Flow Rate | ||
| 943 |
1/1✓ Branch 2 taken 10 times.
|
10 | setRatedLowSpeedAirFlowRate(OptionalDouble()); //autosize |
| 944 | |||
| 945 |
1/1✓ Branch 1 taken 10 times.
|
10 | setRatedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2017(773.3); |
| 946 |
1/1✓ Branch 1 taken 10 times.
|
10 | setRatedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2023(934.4); |
| 947 | |||
| 948 | // A10, \field Low Speed Total Cooling Capacity Function of Temperature Curve Name | ||
| 949 |
1/1✓ Branch 1 taken 10 times.
|
10 | setLowSpeedTotalCoolingCapacityFunctionOfTemperatureCurve(lowSpeedCoolingCurveFofTemp); |
| 950 | // A11, \field Low Speed Energy Input Ratio Function of Temperature Curve Name | ||
| 951 |
1/1✓ Branch 1 taken 10 times.
|
10 | setLowSpeedEnergyInputRatioFunctionOfTemperatureCurve(lowSpeedEnergyInputRatioFofTemp); |
| 952 | // A13, \field Condenser Type | ||
| 953 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
10 | setCondenserType("AirCooled"); |
| 954 | // N9, \field High Speed Evaporative Condenser Effectiveness | ||
| 955 |
1/1✓ Branch 1 taken 10 times.
|
10 | setHighSpeedEvaporativeCondenserEffectiveness(0.9); |
| 956 | // N10, \field High Speed Evaporative Condenser Air Flow Rate | ||
| 957 |
1/1✓ Branch 2 taken 10 times.
|
10 | setHighSpeedEvaporativeCondenserAirFlowRate(boost::none); //autosize |
| 958 | // N11, \field High Speed Evaporative Condenser Pump Rated Power Consumption | ||
| 959 |
1/1✓ Branch 2 taken 10 times.
|
10 | setHighSpeedEvaporativeCondenserPumpRatedPowerConsumption(boost::none); //autosize |
| 960 | // N12, \field Low Speed Evaporative Condenser Effectiveness | ||
| 961 |
1/1✓ Branch 1 taken 10 times.
|
10 | setLowSpeedEvaporativeCondenserEffectiveness(0.9); |
| 962 | // N13, \field Low Speed Evaporative Condenser Air Flow Rate | ||
| 963 |
1/1✓ Branch 2 taken 10 times.
|
10 | setLowSpeedEvaporativeCondenserAirFlowRate(boost::none); //autosize |
| 964 | // N14, \field Low Speed Evaporative Condenser Pump Rated Power Consumption | ||
| 965 |
1/1✓ Branch 2 taken 10 times.
|
10 | setLowSpeedEvaporativeCondenserPumpRatedPowerConsumption(boost::none); //autosize |
| 966 | // A14, \field Supply Water Storage Tank Name | ||
| 967 | //setSupplyWaterStorageTankName | ||
| 968 | // A15, \field Condensate Collection Water Storage Tank Name | ||
| 969 | //setCondensateCollectionWaterStorageTankName | ||
| 970 | // N15, \field Basin Heater Capacity | ||
| 971 |
1/1✓ Branch 1 taken 10 times.
|
10 | setBasinHeaterCapacity(0.0); |
| 972 | // N16, \field Basin Heater Setpoint Temperature | ||
| 973 |
1/1✓ Branch 1 taken 10 times.
|
10 | setBasinHeaterSetpointTemperature(2.0); |
| 974 | // A16; \field Basin Heater Operating Schedule Name | ||
| 975 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
20 | setString(OS_Coil_Cooling_DX_TwoSpeedFields::BasinHeaterOperatingScheduleName, ""); |
| 976 |
1/1✓ Branch 1 taken 10 times.
|
10 | setMinimumOutdoorDryBulbTemperatureforCompressorOperation(-25.0); // Per E+ IDD default |
| 977 |
1/1✓ Branch 1 taken 10 times.
|
10 | setUnitInternalStaticAirPressure(773.3); // Per I/O ref |
| 978 | 10 | } | |
| 979 | |||
| 980 | 7 | CoilCoolingDXTwoSpeed::CoilCoolingDXTwoSpeed(const Model& model) : StraightComponent(CoilCoolingDXTwoSpeed::iddObjectType(), model) { | |
| 981 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 7 times.
✗ Branch 5 not taken.
|
7 | OS_ASSERT(getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()); |
| 982 | |||
| 983 |
1/1✓ Branch 1 taken 7 times.
|
7 | auto availabilitySchedule = model.alwaysOnDiscreteSchedule(); |
| 984 |
1/1✓ Branch 1 taken 7 times.
|
7 | setAvailabilitySchedule(availabilitySchedule); |
| 985 | |||
| 986 |
1/1✓ Branch 1 taken 7 times.
|
7 | CurveBiquadratic coolingCurveFofTemp = CurveBiquadratic(model); |
| 987 |
1/1✓ Branch 1 taken 7 times.
|
7 | coolingCurveFofTemp.setCoefficient1Constant(0.42415); |
| 988 |
1/1✓ Branch 1 taken 7 times.
|
7 | coolingCurveFofTemp.setCoefficient2x(0.04426); |
| 989 |
1/1✓ Branch 1 taken 7 times.
|
7 | coolingCurveFofTemp.setCoefficient3xPOW2(-0.00042); |
| 990 |
1/1✓ Branch 1 taken 7 times.
|
7 | coolingCurveFofTemp.setCoefficient4y(0.00333); |
| 991 |
1/1✓ Branch 1 taken 7 times.
|
7 | coolingCurveFofTemp.setCoefficient5yPOW2(-0.00008); |
| 992 |
1/1✓ Branch 1 taken 7 times.
|
7 | coolingCurveFofTemp.setCoefficient6xTIMESY(-0.00021); |
| 993 |
1/1✓ Branch 1 taken 7 times.
|
7 | coolingCurveFofTemp.setMinimumValueofx(17.0); |
| 994 |
1/1✓ Branch 1 taken 7 times.
|
7 | coolingCurveFofTemp.setMaximumValueofx(22.0); |
| 995 |
1/1✓ Branch 1 taken 7 times.
|
7 | coolingCurveFofTemp.setMinimumValueofy(13.0); |
| 996 |
1/1✓ Branch 1 taken 7 times.
|
7 | coolingCurveFofTemp.setMaximumValueofy(46.0); |
| 997 | |||
| 998 |
1/1✓ Branch 1 taken 7 times.
|
7 | CurveQuadratic coolingCurveFofFlow = CurveQuadratic(model); |
| 999 |
1/1✓ Branch 1 taken 7 times.
|
7 | coolingCurveFofFlow.setCoefficient1Constant(0.77136); |
| 1000 |
1/1✓ Branch 1 taken 7 times.
|
7 | coolingCurveFofFlow.setCoefficient2x(0.34053); |
| 1001 |
1/1✓ Branch 1 taken 7 times.
|
7 | coolingCurveFofFlow.setCoefficient3xPOW2(-0.11088); |
| 1002 |
1/1✓ Branch 1 taken 7 times.
|
7 | coolingCurveFofFlow.setMinimumValueofx(0.75918); |
| 1003 |
1/1✓ Branch 1 taken 7 times.
|
7 | coolingCurveFofFlow.setMaximumValueofx(1.13877); |
| 1004 | |||
| 1005 |
1/1✓ Branch 1 taken 7 times.
|
7 | CurveBiquadratic energyInputRatioFofTemp = CurveBiquadratic(model); |
| 1006 |
1/1✓ Branch 1 taken 7 times.
|
7 | energyInputRatioFofTemp.setCoefficient1Constant(1.23649); |
| 1007 |
1/1✓ Branch 1 taken 7 times.
|
7 | energyInputRatioFofTemp.setCoefficient2x(-0.02431); |
| 1008 |
1/1✓ Branch 1 taken 7 times.
|
7 | energyInputRatioFofTemp.setCoefficient3xPOW2(0.00057); |
| 1009 |
1/1✓ Branch 1 taken 7 times.
|
7 | energyInputRatioFofTemp.setCoefficient4y(-0.01434); |
| 1010 |
1/1✓ Branch 1 taken 7 times.
|
7 | energyInputRatioFofTemp.setCoefficient5yPOW2(0.00063); |
| 1011 |
1/1✓ Branch 1 taken 7 times.
|
7 | energyInputRatioFofTemp.setCoefficient6xTIMESY(-0.00038); |
| 1012 |
1/1✓ Branch 1 taken 7 times.
|
7 | energyInputRatioFofTemp.setMinimumValueofx(17.0); |
| 1013 |
1/1✓ Branch 1 taken 7 times.
|
7 | energyInputRatioFofTemp.setMaximumValueofx(22.0); |
| 1014 |
1/1✓ Branch 1 taken 7 times.
|
7 | energyInputRatioFofTemp.setMinimumValueofy(13.0); |
| 1015 |
1/1✓ Branch 1 taken 7 times.
|
7 | energyInputRatioFofTemp.setMaximumValueofy(46.0); |
| 1016 | |||
| 1017 |
1/1✓ Branch 1 taken 7 times.
|
7 | CurveQuadratic energyInputRatioFofFlow = CurveQuadratic(model); |
| 1018 |
1/1✓ Branch 1 taken 7 times.
|
7 | energyInputRatioFofFlow.setCoefficient1Constant(1.20550); |
| 1019 |
1/1✓ Branch 1 taken 7 times.
|
7 | energyInputRatioFofFlow.setCoefficient2x(-0.32953); |
| 1020 |
1/1✓ Branch 1 taken 7 times.
|
7 | energyInputRatioFofFlow.setCoefficient3xPOW2(0.12308); |
| 1021 |
1/1✓ Branch 1 taken 7 times.
|
7 | energyInputRatioFofFlow.setMinimumValueofx(0.75918); |
| 1022 |
1/1✓ Branch 1 taken 7 times.
|
7 | energyInputRatioFofFlow.setMaximumValueofx(1.13877); |
| 1023 | |||
| 1024 |
1/1✓ Branch 1 taken 7 times.
|
7 | CurveQuadratic partLoadFraction = CurveQuadratic(model); |
| 1025 |
1/1✓ Branch 1 taken 7 times.
|
7 | partLoadFraction.setCoefficient1Constant(0.77100); |
| 1026 |
1/1✓ Branch 1 taken 7 times.
|
7 | partLoadFraction.setCoefficient2x(0.22900); |
| 1027 |
1/1✓ Branch 1 taken 7 times.
|
7 | partLoadFraction.setCoefficient3xPOW2(0.0); |
| 1028 |
1/1✓ Branch 1 taken 7 times.
|
7 | partLoadFraction.setMinimumValueofx(0.0); |
| 1029 |
1/1✓ Branch 1 taken 7 times.
|
7 | partLoadFraction.setMaximumValueofx(1.0); |
| 1030 | |||
| 1031 |
1/1✓ Branch 1 taken 7 times.
|
7 | CurveBiquadratic coolingLowSpdCurveFofTemp = CurveBiquadratic(model); |
| 1032 |
1/1✓ Branch 1 taken 7 times.
|
7 | coolingLowSpdCurveFofTemp.setCoefficient1Constant(0.42415); |
| 1033 |
1/1✓ Branch 1 taken 7 times.
|
7 | coolingLowSpdCurveFofTemp.setCoefficient2x(0.04426); |
| 1034 |
1/1✓ Branch 1 taken 7 times.
|
7 | coolingLowSpdCurveFofTemp.setCoefficient3xPOW2(-0.00042); |
| 1035 |
1/1✓ Branch 1 taken 7 times.
|
7 | coolingLowSpdCurveFofTemp.setCoefficient4y(0.00333); |
| 1036 |
1/1✓ Branch 1 taken 7 times.
|
7 | coolingLowSpdCurveFofTemp.setCoefficient5yPOW2(-0.00008); |
| 1037 |
1/1✓ Branch 1 taken 7 times.
|
7 | coolingLowSpdCurveFofTemp.setCoefficient6xTIMESY(-0.00021); |
| 1038 |
1/1✓ Branch 1 taken 7 times.
|
7 | coolingLowSpdCurveFofTemp.setMinimumValueofx(17.0); |
| 1039 |
1/1✓ Branch 1 taken 7 times.
|
7 | coolingLowSpdCurveFofTemp.setMaximumValueofx(22.0); |
| 1040 |
1/1✓ Branch 1 taken 7 times.
|
7 | coolingLowSpdCurveFofTemp.setMinimumValueofy(13.0); |
| 1041 |
1/1✓ Branch 1 taken 7 times.
|
7 | coolingLowSpdCurveFofTemp.setMaximumValueofy(46.0); |
| 1042 | |||
| 1043 |
1/1✓ Branch 1 taken 7 times.
|
7 | CurveBiquadratic energyLowSpdInputRatioFofTemp = CurveBiquadratic(model); |
| 1044 |
1/1✓ Branch 1 taken 7 times.
|
7 | energyLowSpdInputRatioFofTemp.setCoefficient1Constant(1.23649); |
| 1045 |
1/1✓ Branch 1 taken 7 times.
|
7 | energyLowSpdInputRatioFofTemp.setCoefficient2x(-0.02431); |
| 1046 |
1/1✓ Branch 1 taken 7 times.
|
7 | energyLowSpdInputRatioFofTemp.setCoefficient3xPOW2(0.00057); |
| 1047 |
1/1✓ Branch 1 taken 7 times.
|
7 | energyLowSpdInputRatioFofTemp.setCoefficient4y(-0.01434); |
| 1048 |
1/1✓ Branch 1 taken 7 times.
|
7 | energyLowSpdInputRatioFofTemp.setCoefficient5yPOW2(0.00063); |
| 1049 |
1/1✓ Branch 1 taken 7 times.
|
7 | energyLowSpdInputRatioFofTemp.setCoefficient6xTIMESY(-0.00038); |
| 1050 |
1/1✓ Branch 1 taken 7 times.
|
7 | energyLowSpdInputRatioFofTemp.setMinimumValueofx(17.0); |
| 1051 |
1/1✓ Branch 1 taken 7 times.
|
7 | energyLowSpdInputRatioFofTemp.setMaximumValueofx(22.0); |
| 1052 |
1/1✓ Branch 1 taken 7 times.
|
7 | energyLowSpdInputRatioFofTemp.setMinimumValueofy(13.0); |
| 1053 |
1/1✓ Branch 1 taken 7 times.
|
7 | energyLowSpdInputRatioFofTemp.setMaximumValueofy(46.0); |
| 1054 | |||
| 1055 |
1/1✓ Branch 2 taken 7 times.
|
7 | setRatedHighSpeedTotalCoolingCapacity(OptionalDouble()); //autosize |
| 1056 |
1/1✓ Branch 2 taken 7 times.
|
7 | setRatedHighSpeedSensibleHeatRatio(OptionalDouble()); //autosize |
| 1057 |
1/1✓ Branch 1 taken 7 times.
|
7 | setRatedHighSpeedCOP(3.0); |
| 1058 |
1/1✓ Branch 2 taken 7 times.
|
7 | setRatedHighSpeedAirFlowRate(OptionalDouble()); //autosize |
| 1059 |
1/1✓ Branch 1 taken 7 times.
|
7 | setRatedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2017(773.3); |
| 1060 |
1/1✓ Branch 1 taken 7 times.
|
7 | setRatedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2023(934.4); |
| 1061 |
1/1✓ Branch 1 taken 7 times.
|
7 | setTotalCoolingCapacityFunctionOfTemperatureCurve(coolingCurveFofTemp); |
| 1062 |
1/1✓ Branch 1 taken 7 times.
|
7 | setTotalCoolingCapacityFunctionOfFlowFractionCurve(coolingCurveFofFlow); |
| 1063 |
1/1✓ Branch 1 taken 7 times.
|
7 | setEnergyInputRatioFunctionOfTemperatureCurve(energyInputRatioFofTemp); |
| 1064 |
1/1✓ Branch 1 taken 7 times.
|
7 | setEnergyInputRatioFunctionOfFlowFractionCurve(energyInputRatioFofFlow); |
| 1065 |
1/1✓ Branch 1 taken 7 times.
|
7 | setPartLoadFractionCorrelationCurve(partLoadFraction); |
| 1066 |
1/1✓ Branch 2 taken 7 times.
|
7 | setRatedLowSpeedTotalCoolingCapacity(OptionalDouble()); //autosize |
| 1067 |
1/1✓ Branch 1 taken 7 times.
|
7 | setRatedLowSpeedSensibleHeatRatio(0.69); //autosize |
| 1068 |
1/1✓ Branch 1 taken 7 times.
|
7 | setRatedLowSpeedCOP(3.0); |
| 1069 |
1/1✓ Branch 2 taken 7 times.
|
7 | setRatedLowSpeedAirFlowRate(OptionalDouble()); //autosize |
| 1070 |
1/1✓ Branch 1 taken 7 times.
|
7 | setRatedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2017(773.3); |
| 1071 |
1/1✓ Branch 1 taken 7 times.
|
7 | setRatedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2023(934.4); |
| 1072 |
1/1✓ Branch 1 taken 7 times.
|
7 | setLowSpeedTotalCoolingCapacityFunctionOfTemperatureCurve(coolingLowSpdCurveFofTemp); |
| 1073 |
1/1✓ Branch 1 taken 7 times.
|
7 | setLowSpeedEnergyInputRatioFunctionOfTemperatureCurve(energyLowSpdInputRatioFofTemp); |
| 1074 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | setCondenserType("AirCooled"); |
| 1075 |
1/1✓ Branch 1 taken 7 times.
|
7 | setHighSpeedEvaporativeCondenserEffectiveness(0.9); |
| 1076 |
1/1✓ Branch 2 taken 7 times.
|
7 | setHighSpeedEvaporativeCondenserAirFlowRate(boost::none); //autosize |
| 1077 |
1/1✓ Branch 2 taken 7 times.
|
7 | setHighSpeedEvaporativeCondenserPumpRatedPowerConsumption(boost::none); //autosize |
| 1078 |
1/1✓ Branch 1 taken 7 times.
|
7 | setLowSpeedEvaporativeCondenserEffectiveness(0.9); |
| 1079 |
1/1✓ Branch 2 taken 7 times.
|
7 | setLowSpeedEvaporativeCondenserAirFlowRate(boost::none); //autosize |
| 1080 |
1/1✓ Branch 2 taken 7 times.
|
7 | setLowSpeedEvaporativeCondenserPumpRatedPowerConsumption(boost::none); //autosize |
| 1081 |
1/1✓ Branch 1 taken 7 times.
|
7 | setBasinHeaterCapacity(0.0); |
| 1082 |
1/1✓ Branch 1 taken 7 times.
|
7 | setBasinHeaterSetpointTemperature(2.0); |
| 1083 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
14 | setString(OS_Coil_Cooling_DX_TwoSpeedFields::BasinHeaterOperatingScheduleName, ""); |
| 1084 |
1/1✓ Branch 1 taken 7 times.
|
7 | setMinimumOutdoorDryBulbTemperatureforCompressorOperation(-25.0); // Per E+ IDD default |
| 1085 |
1/1✓ Branch 1 taken 7 times.
|
7 | setUnitInternalStaticAirPressure(773.3); // Per I/O ref |
| 1086 | 7 | } | |
| 1087 | |||
| 1088 |
1/1✓ Branch 3 taken 15 times.
|
15 | CoilCoolingDXTwoSpeed::CoilCoolingDXTwoSpeed(std::shared_ptr<detail::CoilCoolingDXTwoSpeed_Impl> p) : StraightComponent(std::move(p)) {} |
| 1089 | |||
| 1090 | // A2 , \field Availability Schedule Name | ||
| 1091 | 19 | Schedule CoilCoolingDXTwoSpeed::availabilitySchedule() const { | |
| 1092 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->availabilitySchedule(); |
| 1093 | } | ||
| 1094 | |||
| 1095 | 19 | bool CoilCoolingDXTwoSpeed::setAvailabilitySchedule(Schedule& schedule) { | |
| 1096 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setAvailabilitySchedule(schedule); |
| 1097 | } | ||
| 1098 | |||
| 1099 | // N1 , \field Rated High Speed Total Cooling Capacity | ||
| 1100 | 10 | OptionalDouble CoilCoolingDXTwoSpeed::ratedHighSpeedTotalCoolingCapacity() const { | |
| 1101 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->ratedHighSpeedTotalCoolingCapacity(); |
| 1102 | } | ||
| 1103 | |||
| 1104 | 17 | bool CoilCoolingDXTwoSpeed::setRatedHighSpeedTotalCoolingCapacity(OptionalDouble value) { | |
| 1105 |
1/1✓ Branch 3 taken 17 times.
|
17 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setRatedHighSpeedTotalCoolingCapacity(value); |
| 1106 | } | ||
| 1107 | |||
| 1108 | 2 | bool CoilCoolingDXTwoSpeed::setRatedHighSpeedTotalCoolingCapacity(double value) { | |
| 1109 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setRatedHighSpeedTotalCoolingCapacity(value); |
| 1110 | } | ||
| 1111 | |||
| 1112 | // N2 , \field Rated High Speed Sensible Heat Ratio | ||
| 1113 | 10 | OptionalDouble CoilCoolingDXTwoSpeed::ratedHighSpeedSensibleHeatRatio() const { | |
| 1114 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->ratedHighSpeedSensibleHeatRatio(); |
| 1115 | } | ||
| 1116 | |||
| 1117 | 17 | bool CoilCoolingDXTwoSpeed::setRatedHighSpeedSensibleHeatRatio(OptionalDouble value) { | |
| 1118 |
1/1✓ Branch 3 taken 17 times.
|
17 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setRatedHighSpeedSensibleHeatRatio(value); |
| 1119 | } | ||
| 1120 | |||
| 1121 | 2 | bool CoilCoolingDXTwoSpeed::setRatedHighSpeedSensibleHeatRatio(double value) { | |
| 1122 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setRatedHighSpeedSensibleHeatRatio(value); |
| 1123 | } | ||
| 1124 | |||
| 1125 | // N3 , \field Rated High Speed COP | ||
| 1126 | 11 | double CoilCoolingDXTwoSpeed::ratedHighSpeedCOP() const { | |
| 1127 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->ratedHighSpeedCOP(); |
| 1128 | } | ||
| 1129 | |||
| 1130 | 19 | bool CoilCoolingDXTwoSpeed::setRatedHighSpeedCOP(double value) { | |
| 1131 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setRatedHighSpeedCOP(value); |
| 1132 | } | ||
| 1133 | |||
| 1134 | // N4 , \field Rated High Speed Air Flow Rate | ||
| 1135 | 10 | OptionalDouble CoilCoolingDXTwoSpeed::ratedHighSpeedAirFlowRate() const { | |
| 1136 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->ratedHighSpeedAirFlowRate(); |
| 1137 | } | ||
| 1138 | |||
| 1139 | 17 | bool CoilCoolingDXTwoSpeed::setRatedHighSpeedAirFlowRate(OptionalDouble value) { | |
| 1140 |
1/1✓ Branch 3 taken 17 times.
|
17 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setRatedHighSpeedAirFlowRate(value); |
| 1141 | } | ||
| 1142 | 2 | bool CoilCoolingDXTwoSpeed::setRatedHighSpeedAirFlowRate(double value) { | |
| 1143 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setRatedHighSpeedAirFlowRate(value); |
| 1144 | } | ||
| 1145 | |||
| 1146 | // A5 , \field Total Cooling Capacity Function of Temperature Curve Name | ||
| 1147 | 13 | Curve CoilCoolingDXTwoSpeed::totalCoolingCapacityFunctionOfTemperatureCurve() const { | |
| 1148 |
1/1✓ Branch 3 taken 13 times.
|
13 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->totalCoolingCapacityFunctionOfTemperatureCurve(); |
| 1149 | } | ||
| 1150 | |||
| 1151 | 18 | bool CoilCoolingDXTwoSpeed::setTotalCoolingCapacityFunctionOfTemperatureCurve(const Curve& curve) { | |
| 1152 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setTotalCoolingCapacityFunctionOfTemperatureCurve(curve); |
| 1153 | } | ||
| 1154 | |||
| 1155 | // A6 , \field Total Cooling Capacity Function of Flow Fraction Curve Name | ||
| 1156 | 14 | Curve CoilCoolingDXTwoSpeed::totalCoolingCapacityFunctionOfFlowFractionCurve() const { | |
| 1157 |
1/1✓ Branch 3 taken 14 times.
|
14 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->totalCoolingCapacityFunctionOfFlowFractionCurve(); |
| 1158 | } | ||
| 1159 | |||
| 1160 | 19 | bool CoilCoolingDXTwoSpeed::setTotalCoolingCapacityFunctionOfFlowFractionCurve(const Curve& curve) { | |
| 1161 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setTotalCoolingCapacityFunctionOfFlowFractionCurve(curve); |
| 1162 | } | ||
| 1163 | |||
| 1164 | // A7 , \field Energy Input Ratio Function of Temperature Curve Name | ||
| 1165 | 13 | Curve CoilCoolingDXTwoSpeed::energyInputRatioFunctionOfTemperatureCurve() const { | |
| 1166 |
1/1✓ Branch 3 taken 13 times.
|
13 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->energyInputRatioFunctionOfTemperatureCurve(); |
| 1167 | } | ||
| 1168 | |||
| 1169 | 18 | bool CoilCoolingDXTwoSpeed::setEnergyInputRatioFunctionOfTemperatureCurve(const Curve& curve) { | |
| 1170 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setEnergyInputRatioFunctionOfTemperatureCurve(curve); |
| 1171 | } | ||
| 1172 | |||
| 1173 | // A8 , \field Energy Input Ratio Function of Flow Fraction Curve Name | ||
| 1174 | 14 | Curve CoilCoolingDXTwoSpeed::energyInputRatioFunctionOfFlowFractionCurve() const { | |
| 1175 |
1/1✓ Branch 3 taken 14 times.
|
14 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->energyInputRatioFunctionOfFlowFractionCurve(); |
| 1176 | } | ||
| 1177 | |||
| 1178 | 19 | bool CoilCoolingDXTwoSpeed::setEnergyInputRatioFunctionOfFlowFractionCurve(const Curve& curve) { | |
| 1179 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setEnergyInputRatioFunctionOfFlowFractionCurve(curve); |
| 1180 | } | ||
| 1181 | |||
| 1182 | // A9 , \field Part Load Fraction Correlation Curve Name | ||
| 1183 | 14 | Curve CoilCoolingDXTwoSpeed::partLoadFractionCorrelationCurve() const { | |
| 1184 |
1/1✓ Branch 3 taken 14 times.
|
14 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->partLoadFractionCorrelationCurve(); |
| 1185 | } | ||
| 1186 | |||
| 1187 | 19 | bool CoilCoolingDXTwoSpeed::setPartLoadFractionCorrelationCurve(const Curve& curve) { | |
| 1188 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setPartLoadFractionCorrelationCurve(curve); |
| 1189 | } | ||
| 1190 | |||
| 1191 | // N5 , \field Rated Low Speed Total Cooling Capacity | ||
| 1192 | 10 | OptionalDouble CoilCoolingDXTwoSpeed::ratedLowSpeedTotalCoolingCapacity() const { | |
| 1193 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->ratedLowSpeedTotalCoolingCapacity(); |
| 1194 | } | ||
| 1195 | |||
| 1196 | 17 | bool CoilCoolingDXTwoSpeed::setRatedLowSpeedTotalCoolingCapacity(OptionalDouble value) { | |
| 1197 |
1/1✓ Branch 3 taken 17 times.
|
17 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setRatedLowSpeedTotalCoolingCapacity(value); |
| 1198 | } | ||
| 1199 | |||
| 1200 | 2 | bool CoilCoolingDXTwoSpeed::setRatedLowSpeedTotalCoolingCapacity(double value) { | |
| 1201 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setRatedLowSpeedTotalCoolingCapacity(value); |
| 1202 | } | ||
| 1203 | |||
| 1204 | // N6 , \field Rated Low Speed Sensible Heat Ratio | ||
| 1205 | 10 | OptionalDouble CoilCoolingDXTwoSpeed::ratedLowSpeedSensibleHeatRatio() const { | |
| 1206 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->ratedLowSpeedSensibleHeatRatio(); |
| 1207 | } | ||
| 1208 | |||
| 1209 | 10 | bool CoilCoolingDXTwoSpeed::setRatedLowSpeedSensibleHeatRatio(OptionalDouble value) { | |
| 1210 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setRatedLowSpeedSensibleHeatRatio(value); |
| 1211 | } | ||
| 1212 | |||
| 1213 | 9 | bool CoilCoolingDXTwoSpeed::setRatedLowSpeedSensibleHeatRatio(double value) { | |
| 1214 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setRatedLowSpeedSensibleHeatRatio(value); |
| 1215 | } | ||
| 1216 | |||
| 1217 | // N7 , \field Rated Low Speed COP | ||
| 1218 | 11 | double CoilCoolingDXTwoSpeed::ratedLowSpeedCOP() const { | |
| 1219 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->ratedLowSpeedCOP(); |
| 1220 | } | ||
| 1221 | |||
| 1222 | 19 | bool CoilCoolingDXTwoSpeed::setRatedLowSpeedCOP(double value) { | |
| 1223 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setRatedLowSpeedCOP(value); |
| 1224 | } | ||
| 1225 | |||
| 1226 | // N8 , \field Rated Low Speed Air Flow Rate | ||
| 1227 | 10 | OptionalDouble CoilCoolingDXTwoSpeed::ratedLowSpeedAirFlowRate() const { | |
| 1228 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->ratedLowSpeedAirFlowRate(); |
| 1229 | } | ||
| 1230 | |||
| 1231 | 17 | bool CoilCoolingDXTwoSpeed::setRatedLowSpeedAirFlowRate(OptionalDouble value) { | |
| 1232 |
1/1✓ Branch 3 taken 17 times.
|
17 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setRatedLowSpeedAirFlowRate(value); |
| 1233 | } | ||
| 1234 | 2 | bool CoilCoolingDXTwoSpeed::setRatedLowSpeedAirFlowRate(double value) { | |
| 1235 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setRatedLowSpeedAirFlowRate(value); |
| 1236 | } | ||
| 1237 | |||
| 1238 | // A10, \field Low Speed Total Cooling Capacity Function of Temperature Curve Name | ||
| 1239 | 13 | Curve CoilCoolingDXTwoSpeed::lowSpeedTotalCoolingCapacityFunctionOfTemperatureCurve() const { | |
| 1240 |
1/1✓ Branch 3 taken 13 times.
|
13 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->lowSpeedTotalCoolingCapacityFunctionOfTemperatureCurve(); |
| 1241 | } | ||
| 1242 | |||
| 1243 | 18 | bool CoilCoolingDXTwoSpeed::setLowSpeedTotalCoolingCapacityFunctionOfTemperatureCurve(const Curve& curve) { | |
| 1244 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setLowSpeedTotalCoolingCapacityFunctionOfTemperatureCurve(curve); |
| 1245 | } | ||
| 1246 | |||
| 1247 | // A11, \field Low Speed Energy Input Ratio Function of Temperature Curve Name | ||
| 1248 | 13 | Curve CoilCoolingDXTwoSpeed::lowSpeedEnergyInputRatioFunctionOfTemperatureCurve() const { | |
| 1249 |
1/1✓ Branch 3 taken 13 times.
|
13 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->lowSpeedEnergyInputRatioFunctionOfTemperatureCurve(); |
| 1250 | } | ||
| 1251 | |||
| 1252 | 18 | bool CoilCoolingDXTwoSpeed::setLowSpeedEnergyInputRatioFunctionOfTemperatureCurve(const Curve& curve) { | |
| 1253 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setLowSpeedEnergyInputRatioFunctionOfTemperatureCurve(curve); |
| 1254 | } | ||
| 1255 | |||
| 1256 | // A12, \field Condenser Air Inlet Node Name | ||
| 1257 | 10 | OptionalString CoilCoolingDXTwoSpeed::condenserAirInletNodeName() const { | |
| 1258 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->condenserAirInletNodeName(); |
| 1259 | } | ||
| 1260 | |||
| 1261 | 1 | bool CoilCoolingDXTwoSpeed::setCondenserAirInletNodeName(const std::string& value) { | |
| 1262 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setCondenserAirInletNodeName(value); |
| 1263 | } | ||
| 1264 | |||
| 1265 | // A13, \field Condenser Type | ||
| 1266 | 11 | std::string CoilCoolingDXTwoSpeed::condenserType() const { | |
| 1267 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->condenserType(); |
| 1268 | } | ||
| 1269 | |||
| 1270 | 19 | bool CoilCoolingDXTwoSpeed::setCondenserType(const std::string& value) { | |
| 1271 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setCondenserType(value); |
| 1272 | } | ||
| 1273 | |||
| 1274 | // N9, \field High Speed Evaporative Condenser Effectiveness | ||
| 1275 | 11 | double CoilCoolingDXTwoSpeed::highSpeedEvaporativeCondenserEffectiveness() const { | |
| 1276 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->highSpeedEvaporativeCondenserEffectiveness(); |
| 1277 | } | ||
| 1278 | |||
| 1279 | 19 | bool CoilCoolingDXTwoSpeed::setHighSpeedEvaporativeCondenserEffectiveness(double value) { | |
| 1280 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setHighSpeedEvaporativeCondenserEffectiveness(value); |
| 1281 | } | ||
| 1282 | |||
| 1283 | // N10, \field High Speed Evaporative Condenser Air Flow Rate | ||
| 1284 | 10 | OptionalDouble CoilCoolingDXTwoSpeed::highSpeedEvaporativeCondenserAirFlowRate() const { | |
| 1285 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->highSpeedEvaporativeCondenserAirFlowRate(); |
| 1286 | } | ||
| 1287 | |||
| 1288 | 17 | bool CoilCoolingDXTwoSpeed::setHighSpeedEvaporativeCondenserAirFlowRate(OptionalDouble value) { | |
| 1289 |
1/1✓ Branch 3 taken 17 times.
|
17 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setHighSpeedEvaporativeCondenserAirFlowRate(value); |
| 1290 | } | ||
| 1291 | |||
| 1292 | 2 | bool CoilCoolingDXTwoSpeed::setHighSpeedEvaporativeCondenserAirFlowRate(double value) { | |
| 1293 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setHighSpeedEvaporativeCondenserAirFlowRate(value); |
| 1294 | } | ||
| 1295 | |||
| 1296 | // N11, \field High Speed Evaporative Condenser Pump Rated Power Consumption | ||
| 1297 | 10 | OptionalDouble CoilCoolingDXTwoSpeed::highSpeedEvaporativeCondenserPumpRatedPowerConsumption() const { | |
| 1298 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->highSpeedEvaporativeCondenserPumpRatedPowerConsumption(); |
| 1299 | } | ||
| 1300 | |||
| 1301 | 17 | bool CoilCoolingDXTwoSpeed::setHighSpeedEvaporativeCondenserPumpRatedPowerConsumption(OptionalDouble value) { | |
| 1302 |
1/1✓ Branch 3 taken 17 times.
|
17 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setHighSpeedEvaporativeCondenserPumpRatedPowerConsumption(value); |
| 1303 | } | ||
| 1304 | |||
| 1305 | 2 | bool CoilCoolingDXTwoSpeed::setHighSpeedEvaporativeCondenserPumpRatedPowerConsumption(double value) { | |
| 1306 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setHighSpeedEvaporativeCondenserPumpRatedPowerConsumption(value); |
| 1307 | } | ||
| 1308 | |||
| 1309 | // N12, \field Low Speed Evaporative Condenser Effectiveness | ||
| 1310 | 11 | double CoilCoolingDXTwoSpeed::lowSpeedEvaporativeCondenserEffectiveness() const { | |
| 1311 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->lowSpeedEvaporativeCondenserEffectiveness(); |
| 1312 | } | ||
| 1313 | |||
| 1314 | 19 | bool CoilCoolingDXTwoSpeed::setLowSpeedEvaporativeCondenserEffectiveness(double value) { | |
| 1315 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setLowSpeedEvaporativeCondenserEffectiveness(value); |
| 1316 | } | ||
| 1317 | |||
| 1318 | // N13, \field Low Speed Evaporative Condenser Air Flow Rate | ||
| 1319 | 10 | OptionalDouble CoilCoolingDXTwoSpeed::lowSpeedEvaporativeCondenserAirFlowRate() const { | |
| 1320 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->lowSpeedEvaporativeCondenserAirFlowRate(); |
| 1321 | } | ||
| 1322 | |||
| 1323 | 17 | bool CoilCoolingDXTwoSpeed::setLowSpeedEvaporativeCondenserAirFlowRate(OptionalDouble value) { | |
| 1324 |
1/1✓ Branch 3 taken 17 times.
|
17 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setLowSpeedEvaporativeCondenserAirFlowRate(value); |
| 1325 | } | ||
| 1326 | |||
| 1327 | 2 | bool CoilCoolingDXTwoSpeed::setLowSpeedEvaporativeCondenserAirFlowRate(double value) { | |
| 1328 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setLowSpeedEvaporativeCondenserAirFlowRate(value); |
| 1329 | } | ||
| 1330 | |||
| 1331 | // N14, \field Low Speed Evaporative Condenser Pump Rated Power Consumption | ||
| 1332 | 10 | OptionalDouble CoilCoolingDXTwoSpeed::lowSpeedEvaporativeCondenserPumpRatedPowerConsumption() const { | |
| 1333 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->lowSpeedEvaporativeCondenserPumpRatedPowerConsumption(); |
| 1334 | } | ||
| 1335 | |||
| 1336 | 17 | bool CoilCoolingDXTwoSpeed::setLowSpeedEvaporativeCondenserPumpRatedPowerConsumption(OptionalDouble value) { | |
| 1337 |
1/1✓ Branch 3 taken 17 times.
|
17 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setLowSpeedEvaporativeCondenserPumpRatedPowerConsumption(value); |
| 1338 | } | ||
| 1339 | |||
| 1340 | 2 | bool CoilCoolingDXTwoSpeed::setLowSpeedEvaporativeCondenserPumpRatedPowerConsumption(double value) { | |
| 1341 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setLowSpeedEvaporativeCondenserPumpRatedPowerConsumption(value); |
| 1342 | } | ||
| 1343 | |||
| 1344 | // A14, \field Supply Water Storage Tank Name | ||
| 1345 | //getSupplyWaterStorageTankName | ||
| 1346 | //setSupplyWaterStorageTankName | ||
| 1347 | |||
| 1348 | // A15, \field Condensate Collection Water Storage Tank Name | ||
| 1349 | //getCondensateCollectionWaterStorageTankName | ||
| 1350 | //setCondensateCollectionWaterStorageTankName | ||
| 1351 | |||
| 1352 | // N15, \field Basin Heater Capacity | ||
| 1353 | 11 | double CoilCoolingDXTwoSpeed::basinHeaterCapacity() const { | |
| 1354 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->basinHeaterCapacity(); |
| 1355 | } | ||
| 1356 | |||
| 1357 | 19 | bool CoilCoolingDXTwoSpeed::setBasinHeaterCapacity(double value) { | |
| 1358 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setBasinHeaterCapacity(value); |
| 1359 | } | ||
| 1360 | |||
| 1361 | // N16, \field Basin Heater Setpoint Temperature | ||
| 1362 | 11 | double CoilCoolingDXTwoSpeed::basinHeaterSetpointTemperature() const { | |
| 1363 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->basinHeaterSetpointTemperature(); |
| 1364 | } | ||
| 1365 | |||
| 1366 | 19 | bool CoilCoolingDXTwoSpeed::setBasinHeaterSetpointTemperature(double value) { | |
| 1367 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setBasinHeaterSetpointTemperature(value); |
| 1368 | } | ||
| 1369 | |||
| 1370 | // A16; \field Basin Heater Operating Schedule Name | ||
| 1371 | 10 | OptionalSchedule CoilCoolingDXTwoSpeed::basinHeaterOperatingSchedule() const { | |
| 1372 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->basinHeaterOperatingSchedule(); |
| 1373 | } | ||
| 1374 | |||
| 1375 | 2 | bool CoilCoolingDXTwoSpeed::setBasinHeaterOperatingSchedule(Schedule& schedule) { | |
| 1376 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setBasinHeaterOperatingSchedule(schedule); |
| 1377 | } | ||
| 1378 | ✗ | void CoilCoolingDXTwoSpeed::resetBasinHeaterOperatingSchedule() { | |
| 1379 | ✗ | getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->resetBasinHeaterOperatingSchedule(); | |
| 1380 | ✗ | } | |
| 1381 | |||
| 1382 | 7676 | IddObjectType CoilCoolingDXTwoSpeed::iddObjectType() { | |
| 1383 |
1/1✓ Branch 1 taken 7676 times.
|
7676 | IddObjectType result(IddObjectType::OS_Coil_Cooling_DX_TwoSpeed); |
| 1384 | 7676 | return result; | |
| 1385 | } | ||
| 1386 | |||
| 1387 | 11 | double CoilCoolingDXTwoSpeed::minimumOutdoorDryBulbTemperatureforCompressorOperation() const { | |
| 1388 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->minimumOutdoorDryBulbTemperatureforCompressorOperation(); |
| 1389 | } | ||
| 1390 | |||
| 1391 | bool | ||
| 1392 | 19 | CoilCoolingDXTwoSpeed::setMinimumOutdoorDryBulbTemperatureforCompressorOperation(double minimumOutdoorDryBulbTemperatureforCompressorOperation) { | |
| 1393 |
1/1✓ Branch 3 taken 19 times.
|
38 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setMinimumOutdoorDryBulbTemperatureforCompressorOperation( |
| 1394 | 38 | minimumOutdoorDryBulbTemperatureforCompressorOperation); | |
| 1395 | } | ||
| 1396 | |||
| 1397 | 11 | double CoilCoolingDXTwoSpeed::unitInternalStaticAirPressure() const { | |
| 1398 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->unitInternalStaticAirPressure(); |
| 1399 | } | ||
| 1400 | |||
| 1401 | 19 | bool CoilCoolingDXTwoSpeed::setUnitInternalStaticAirPressure(double unitInternalStaticAirPressure) { | |
| 1402 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setUnitInternalStaticAirPressure(unitInternalStaticAirPressure); |
| 1403 | } | ||
| 1404 | |||
| 1405 | 9 | double CoilCoolingDXTwoSpeed::ratedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2017() const { | |
| 1406 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->ratedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2017(); |
| 1407 | } | ||
| 1408 | |||
| 1409 | 18 | bool CoilCoolingDXTwoSpeed::setRatedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2017(double ratedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2017) { | |
| 1410 |
1/1✓ Branch 3 taken 18 times.
|
36 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setRatedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2017( |
| 1411 | 36 | ratedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2017); | |
| 1412 | } | ||
| 1413 | |||
| 1414 | 9 | double CoilCoolingDXTwoSpeed::ratedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2023() const { | |
| 1415 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->ratedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2023(); |
| 1416 | } | ||
| 1417 | |||
| 1418 | 18 | bool CoilCoolingDXTwoSpeed::setRatedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2023(double ratedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2023) { | |
| 1419 |
1/1✓ Branch 3 taken 18 times.
|
36 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setRatedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2023( |
| 1420 | 36 | ratedHighSpeedEvaporatorFanPowerPerVolumeFlowRate2023); | |
| 1421 | } | ||
| 1422 | |||
| 1423 | 9 | double CoilCoolingDXTwoSpeed::ratedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2017() const { | |
| 1424 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->ratedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2017(); |
| 1425 | } | ||
| 1426 | |||
| 1427 | 18 | bool CoilCoolingDXTwoSpeed::setRatedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2017(double ratedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2017) { | |
| 1428 |
1/1✓ Branch 3 taken 18 times.
|
36 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setRatedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2017( |
| 1429 | 36 | ratedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2017); | |
| 1430 | } | ||
| 1431 | |||
| 1432 | 9 | double CoilCoolingDXTwoSpeed::ratedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2023() const { | |
| 1433 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->ratedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2023(); |
| 1434 | } | ||
| 1435 | |||
| 1436 | 18 | bool CoilCoolingDXTwoSpeed::setRatedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2023(double ratedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2023) { | |
| 1437 |
1/1✓ Branch 3 taken 18 times.
|
36 | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->setRatedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2023( |
| 1438 | 36 | ratedLowSpeedEvaporatorFanPowerPerVolumeFlowRate2023); | |
| 1439 | } | ||
| 1440 | |||
| 1441 | ✗ | AirflowNetworkEquivalentDuct CoilCoolingDXTwoSpeed::getAirflowNetworkEquivalentDuct(double length, double diameter) { | |
| 1442 | ✗ | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->getAirflowNetworkEquivalentDuct(length, diameter); | |
| 1443 | } | ||
| 1444 | |||
| 1445 | ✗ | boost::optional<AirflowNetworkEquivalentDuct> CoilCoolingDXTwoSpeed::airflowNetworkEquivalentDuct() const { | |
| 1446 | ✗ | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->airflowNetworkEquivalentDuct(); | |
| 1447 | } | ||
| 1448 | |||
| 1449 | ✗ | boost::optional<double> CoilCoolingDXTwoSpeed::autosizedRatedHighSpeedTotalCoolingCapacity() const { | |
| 1450 | ✗ | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->autosizedRatedHighSpeedTotalCoolingCapacity(); | |
| 1451 | } | ||
| 1452 | |||
| 1453 | ✗ | boost::optional<double> CoilCoolingDXTwoSpeed::autosizedRatedHighSpeedSensibleHeatRatio() const { | |
| 1454 | ✗ | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->autosizedRatedHighSpeedSensibleHeatRatio(); | |
| 1455 | } | ||
| 1456 | |||
| 1457 | ✗ | boost::optional<double> CoilCoolingDXTwoSpeed::autosizedRatedHighSpeedAirFlowRate() const { | |
| 1458 | ✗ | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->autosizedRatedHighSpeedAirFlowRate(); | |
| 1459 | } | ||
| 1460 | |||
| 1461 | ✗ | boost::optional<double> CoilCoolingDXTwoSpeed::autosizedRatedLowSpeedTotalCoolingCapacity() const { | |
| 1462 | ✗ | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->autosizedRatedLowSpeedTotalCoolingCapacity(); | |
| 1463 | } | ||
| 1464 | |||
| 1465 | ✗ | boost::optional<double> CoilCoolingDXTwoSpeed::autosizedRatedLowSpeedSensibleHeatRatio() const { | |
| 1466 | ✗ | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->autosizedRatedLowSpeedSensibleHeatRatio(); | |
| 1467 | } | ||
| 1468 | |||
| 1469 | ✗ | boost::optional<double> CoilCoolingDXTwoSpeed::autosizedRatedLowSpeedAirFlowRate() const { | |
| 1470 | ✗ | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->autosizedRatedLowSpeedAirFlowRate(); | |
| 1471 | } | ||
| 1472 | |||
| 1473 | ✗ | boost::optional<double> CoilCoolingDXTwoSpeed::autosizedHighSpeedEvaporativeCondenserAirFlowRate() const { | |
| 1474 | ✗ | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->autosizedHighSpeedEvaporativeCondenserAirFlowRate(); | |
| 1475 | } | ||
| 1476 | |||
| 1477 | ✗ | boost::optional<double> CoilCoolingDXTwoSpeed::autosizedHighSpeedEvaporativeCondenserPumpRatedPowerConsumption() const { | |
| 1478 | ✗ | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->autosizedHighSpeedEvaporativeCondenserPumpRatedPowerConsumption(); | |
| 1479 | } | ||
| 1480 | |||
| 1481 | ✗ | boost::optional<double> CoilCoolingDXTwoSpeed::autosizedLowSpeedEvaporativeCondenserAirFlowRate() const { | |
| 1482 | ✗ | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->autosizedLowSpeedEvaporativeCondenserAirFlowRate(); | |
| 1483 | } | ||
| 1484 | |||
| 1485 | ✗ | boost::optional<double> CoilCoolingDXTwoSpeed::autosizedLowSpeedEvaporativeCondenserPumpRatedPowerConsumption() const { | |
| 1486 | ✗ | return getImpl<detail::CoilCoolingDXTwoSpeed_Impl>()->autosizedLowSpeedEvaporativeCondenserPumpRatedPowerConsumption(); | |
| 1487 | } | ||
| 1488 | |||
| 1489 | } // namespace model | ||
| 1490 | } // namespace openstudio | ||
| 1491 |