src/model/CoilCoolingDXTwoStageWithHumidityControlMode.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 "CoilCoolingDXTwoStageWithHumidityControlMode.hpp" | ||
| 7 | #include "CoilCoolingDXTwoStageWithHumidityControlMode_Impl.hpp" | ||
| 8 | #include "Model.hpp" | ||
| 9 | #include "Model_Impl.hpp" | ||
| 10 | #include "Node.hpp" | ||
| 11 | #include "Node_Impl.hpp" | ||
| 12 | #include "Schedule.hpp" | ||
| 13 | #include "Schedule_Impl.hpp" | ||
| 14 | #include "Curve.hpp" | ||
| 15 | #include "Curve_Impl.hpp" | ||
| 16 | #include "CurveQuadratic.hpp" | ||
| 17 | #include "CurveQuadratic_Impl.hpp" | ||
| 18 | #include "CurveBiquadratic.hpp" | ||
| 19 | #include "CurveBiquadratic_Impl.hpp" | ||
| 20 | #include "CoilPerformanceDXCooling.hpp" | ||
| 21 | #include "CoilPerformanceDXCooling_Impl.hpp" | ||
| 22 | #include "AirLoopHVACUnitaryHeatPumpAirToAir.hpp" | ||
| 23 | #include "AirLoopHVACUnitaryHeatPumpAirToAir_Impl.hpp" | ||
| 24 | #include "AirLoopHVACUnitarySystem.hpp" | ||
| 25 | #include "AirLoopHVACUnitarySystem_Impl.hpp" | ||
| 26 | #include "AirLoopHVACUnitaryHeatCoolVAVChangeoverBypass.hpp" | ||
| 27 | #include "AirLoopHVACUnitaryHeatCoolVAVChangeoverBypass_Impl.hpp" | ||
| 28 | #include "AirLoopHVACOutdoorAirSystem.hpp" | ||
| 29 | #include "AirLoopHVACOutdoorAirSystem_Impl.hpp" | ||
| 30 | #include "AirLoopHVACDedicatedOutdoorAirSystem.hpp" | ||
| 31 | #include "AirLoopHVACDedicatedOutdoorAirSystem_Impl.hpp" | ||
| 32 | #include "ScheduleTypeLimits.hpp" | ||
| 33 | #include "ScheduleTypeRegistry.hpp" | ||
| 34 | #include "AirflowNetworkEquivalentDuct.hpp" | ||
| 35 | #include "AirflowNetworkEquivalentDuct_Impl.hpp" | ||
| 36 | #include <utilities/idd/OS_Coil_Cooling_DX_TwoStageWithHumidityControlMode_FieldEnums.hxx> | ||
| 37 | #include "../utilities/core/Assert.hpp" | ||
| 38 | #include "../utilities/data/DataEnums.hpp" | ||
| 39 | #include <utilities/idd/IddFactory.hxx> | ||
| 40 | |||
| 41 | namespace openstudio { | ||
| 42 | namespace model { | ||
| 43 | |||
| 44 | namespace detail { | ||
| 45 | |||
| 46 | 10 | CoilCoolingDXTwoStageWithHumidityControlMode_Impl::CoilCoolingDXTwoStageWithHumidityControlMode_Impl(const IdfObject& idfObject, | |
| 47 | 10 | Model_Impl* model, bool keepHandle) | |
| 48 | 10 | : StraightComponent_Impl(idfObject, model, keepHandle) { | |
| 49 |
4/6✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
✓ Branch 7 taken 10 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 10 times.
✗ Branch 13 not taken.
|
10 | OS_ASSERT(idfObject.iddObject().type() == CoilCoolingDXTwoStageWithHumidityControlMode::iddObjectType()); |
| 50 | 10 | } | |
| 51 | |||
| 52 | 2 | CoilCoolingDXTwoStageWithHumidityControlMode_Impl::CoilCoolingDXTwoStageWithHumidityControlMode_Impl( | |
| 53 | 2 | const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle) | |
| 54 | 2 | : StraightComponent_Impl(other, model, keepHandle) { | |
| 55 |
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() == CoilCoolingDXTwoStageWithHumidityControlMode::iddObjectType()); |
| 56 | 2 | } | |
| 57 | |||
| 58 | 13 | CoilCoolingDXTwoStageWithHumidityControlMode_Impl::CoilCoolingDXTwoStageWithHumidityControlMode_Impl( | |
| 59 | 13 | const CoilCoolingDXTwoStageWithHumidityControlMode_Impl& other, Model_Impl* model, bool keepHandle) | |
| 60 | 13 | : StraightComponent_Impl(other, model, keepHandle) {} | |
| 61 | |||
| 62 | ✗ | const std::vector<std::string>& CoilCoolingDXTwoStageWithHumidityControlMode_Impl::outputVariableNames() const { | |
| 63 | // TODO: static for now | ||
| 64 | static const std::vector<std::string> result{ | ||
| 65 | "Cooling Coil Total Cooling Rate", "Cooling Coil Total Cooling Energy", "Cooling Coil Sensible Cooling Rate", | ||
| 66 | "Cooling Coil Sensible Cooling Energy", "Cooling Coil Latent Cooling Rate", "Cooling Coil Latent Cooling Energy", | ||
| 67 | "Cooling Coil Electricity Rate", "Cooling Coil Electricity Energy", "Cooling Coil Runtime Fraction", | ||
| 68 | |||
| 69 | // condenserType = [AirCooled, EvaporativelyCooled] | ||
| 70 | // if (this->condenserType() == "EvaporativelyCooled") { | ||
| 71 | "Cooling Coil Condenser Inlet Temperature", "Cooling Coil Evaporative Condenser Water Volume", | ||
| 72 | "Cooling Coil Evaporative Condenser Pump Electricity Rate", "Cooling Coil Evaporative Condenser Pump Electricity Energy", | ||
| 73 | "Cooling Coil Basin Heater Electricity Rate", "Cooling Coil Basin Heater Electricity Energy", | ||
| 74 | "Cooling Coil Evaporative Condenser Mains Supply Water Volume", | ||
| 75 | // } | ||
| 76 | |||
| 77 | // Storage tank isn't implemented | ||
| 78 | // if has storage tank: | ||
| 79 | // "Cooling Coil Condensate Volume Flow Rate", | ||
| 80 | // "Cooling Coil Condensate Volume", | ||
| 81 | // | ||
| 82 | |||
| 83 | // Additional variables for Coil:Cooling:DX:TwoStageWithHumidityControlMode only: | ||
| 84 | "Cooling Coil Stage 2 Runtime Fraction", "Cooling Coil Dehumidification Mode" | ||
| 85 | |||
| 86 | // If not part of AirLoopHVAC:UnitaryHeatPump:AirToAir | ||
| 87 | // (if part of a heat pump, crankcase heater is reported only for the heating coil): | ||
| 88 | // if ( !this->containingHVACComponent().empty() ) { | ||
| 89 | // "Cooling Coil Crankcase Heater Electricity Rate", | ||
| 90 | // "Cooling Coil Crankcase Heater Electricity Energy" | ||
| 91 | // } | ||
| 92 | |||
| 93 | ✗ | }; | |
| 94 | ✗ | return result; | |
| 95 | ✗ | } | |
| 96 | |||
| 97 | 1 | IddObjectType CoilCoolingDXTwoStageWithHumidityControlMode_Impl::iddObjectType() const { | |
| 98 | 1 | return CoilCoolingDXTwoStageWithHumidityControlMode::iddObjectType(); | |
| 99 | } | ||
| 100 | |||
| 101 | ✗ | std::vector<ScheduleTypeKey> CoilCoolingDXTwoStageWithHumidityControlMode_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 102 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 103 | ✗ | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 104 | ✗ | UnsignedVector::const_iterator b(fieldIndices.begin()); | |
| 105 | ✗ | UnsignedVector::const_iterator e(fieldIndices.end()); | |
| 106 | ✗ | if (std::find(b, e, OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::AvailabilitySchedule) != e) { | |
| 107 | ✗ | result.push_back(ScheduleTypeKey("CoilCoolingDXTwoStageWithHumidityControlMode", "Availability Schedule")); | |
| 108 | } | ||
| 109 | ✗ | if (std::find(b, e, OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::BasinHeaterOperatingSchedule) != e) { | |
| 110 | ✗ | result.push_back(ScheduleTypeKey("CoilCoolingDXTwoStageWithHumidityControlMode", "Basin Heater Operating Schedule")); | |
| 111 | } | ||
| 112 | ✗ | return result; | |
| 113 | ✗ | } | |
| 114 | |||
| 115 | 6 | boost::optional<Schedule> CoilCoolingDXTwoStageWithHumidityControlMode_Impl::availabilitySchedule() const { | |
| 116 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | return getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::AvailabilitySchedule); |
| 117 | } | ||
| 118 | |||
| 119 | 4 | double CoilCoolingDXTwoStageWithHumidityControlMode_Impl::crankcaseHeaterCapacity() const { | |
| 120 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::CrankcaseHeaterCapacity, true); |
| 121 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 122 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 123 | } | ||
| 124 | |||
| 125 | 4 | double CoilCoolingDXTwoStageWithHumidityControlMode_Impl::maximumOutdoorDryBulbTemperatureforCrankcaseHeaterOperation() const { | |
| 126 | boost::optional<double> value = | ||
| 127 |
1/1✓ Branch 1 taken 4 times.
|
4 | getDouble(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::MaximumOutdoorDryBulbTemperatureforCrankcaseHeaterOperation, true); |
| 128 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 129 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 130 | } | ||
| 131 | |||
| 132 | 4 | int CoilCoolingDXTwoStageWithHumidityControlMode_Impl::numberofCapacityStages() const { | |
| 133 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<int> value = getInt(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::NumberofCapacityStages, true); |
| 134 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 135 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 136 | } | ||
| 137 | |||
| 138 | 4 | int CoilCoolingDXTwoStageWithHumidityControlMode_Impl::numberofEnhancedDehumidificationModes() const { | |
| 139 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<int> value = getInt(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::NumberofEnhancedDehumidificationModes, true); |
| 140 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 141 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 142 | } | ||
| 143 | |||
| 144 | 16 | boost::optional<CoilPerformanceDXCooling> CoilCoolingDXTwoStageWithHumidityControlMode_Impl::normalModeStage1CoilPerformance() const { | |
| 145 |
1/1✓ Branch 1 taken 16 times.
|
32 | return getObject<ModelObject>().getModelObjectTarget<CoilPerformanceDXCooling>( |
| 146 |
1/1✓ Branch 1 taken 16 times.
|
32 | OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::NormalModeStage1CoilPerformance); |
| 147 | } | ||
| 148 | |||
| 149 | 16 | boost::optional<CoilPerformanceDXCooling> CoilCoolingDXTwoStageWithHumidityControlMode_Impl::normalModeStage1Plus2CoilPerformance() const { | |
| 150 |
1/1✓ Branch 1 taken 16 times.
|
32 | return getObject<ModelObject>().getModelObjectTarget<CoilPerformanceDXCooling>( |
| 151 |
1/1✓ Branch 1 taken 16 times.
|
32 | OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::NormalModeStage1Plus2CoilPerformance); |
| 152 | } | ||
| 153 | |||
| 154 | 16 | boost::optional<CoilPerformanceDXCooling> CoilCoolingDXTwoStageWithHumidityControlMode_Impl::dehumidificationMode1Stage1CoilPerformance() const { | |
| 155 |
1/1✓ Branch 1 taken 16 times.
|
32 | return getObject<ModelObject>().getModelObjectTarget<CoilPerformanceDXCooling>( |
| 156 |
1/1✓ Branch 1 taken 16 times.
|
32 | OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::DehumidificationMode1Stage1CoilPerformance); |
| 157 | } | ||
| 158 | |||
| 159 | boost::optional<CoilPerformanceDXCooling> | ||
| 160 | 16 | CoilCoolingDXTwoStageWithHumidityControlMode_Impl::dehumidificationMode1Stage1Plus2CoilPerformance() const { | |
| 161 |
1/1✓ Branch 1 taken 16 times.
|
32 | return getObject<ModelObject>().getModelObjectTarget<CoilPerformanceDXCooling>( |
| 162 |
1/1✓ Branch 1 taken 16 times.
|
32 | OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::DehumidificationMode1Stage1Plus2CoilPerformance); |
| 163 | } | ||
| 164 | |||
| 165 | 4 | double CoilCoolingDXTwoStageWithHumidityControlMode_Impl::basinHeaterCapacity() const { | |
| 166 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::BasinHeaterCapacity, true); |
| 167 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 168 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 169 | } | ||
| 170 | |||
| 171 | 4 | double CoilCoolingDXTwoStageWithHumidityControlMode_Impl::basinHeaterSetpointTemperature() const { | |
| 172 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::BasinHeaterSetpointTemperature, true); |
| 173 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 174 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 175 | } | ||
| 176 | |||
| 177 | 4 | boost::optional<Schedule> CoilCoolingDXTwoStageWithHumidityControlMode_Impl::basinHeaterOperatingSchedule() const { | |
| 178 |
1/1✓ Branch 1 taken 4 times.
|
8 | return getObject<ModelObject>().getModelObjectTarget<Schedule>( |
| 179 |
1/1✓ Branch 1 taken 4 times.
|
8 | OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::BasinHeaterOperatingSchedule); |
| 180 | } | ||
| 181 | |||
| 182 | 1 | bool CoilCoolingDXTwoStageWithHumidityControlMode_Impl::setAvailabilitySchedule(Schedule& schedule) { | |
| 183 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
4 | bool result = setSchedule(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::AvailabilitySchedule, |
| 184 | "CoilCoolingDXTwoStageWithHumidityControlMode", "Availability Schedule", schedule); | ||
| 185 | 1 | return result; | |
| 186 | } | ||
| 187 | |||
| 188 | ✗ | void CoilCoolingDXTwoStageWithHumidityControlMode_Impl::resetAvailabilitySchedule() { | |
| 189 | ✗ | bool result = setString(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::AvailabilitySchedule, ""); | |
| 190 | ✗ | OS_ASSERT(result); | |
| 191 | ✗ | } | |
| 192 | |||
| 193 | 9 | bool CoilCoolingDXTwoStageWithHumidityControlMode_Impl::setCrankcaseHeaterCapacity(double crankcaseHeaterCapacity) { | |
| 194 | 9 | bool result = setDouble(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::CrankcaseHeaterCapacity, crankcaseHeaterCapacity); | |
| 195 | 9 | return result; | |
| 196 | } | ||
| 197 | |||
| 198 | 9 | bool CoilCoolingDXTwoStageWithHumidityControlMode_Impl::setMaximumOutdoorDryBulbTemperatureforCrankcaseHeaterOperation( | |
| 199 | double maximumOutdoorDryBulbTemperatureforCrankcaseHeaterOperation) { | ||
| 200 | 9 | bool result = setDouble(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::MaximumOutdoorDryBulbTemperatureforCrankcaseHeaterOperation, | |
| 201 | maximumOutdoorDryBulbTemperatureforCrankcaseHeaterOperation); | ||
| 202 | 9 | return result; | |
| 203 | } | ||
| 204 | |||
| 205 | 9 | bool CoilCoolingDXTwoStageWithHumidityControlMode_Impl::setNumberofCapacityStages(int numberofCapacityStages) { | |
| 206 | 9 | bool result = setInt(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::NumberofCapacityStages, numberofCapacityStages); | |
| 207 | 9 | return result; | |
| 208 | } | ||
| 209 | |||
| 210 | 9 | bool CoilCoolingDXTwoStageWithHumidityControlMode_Impl::setNumberofEnhancedDehumidificationModes(int numberofEnhancedDehumidificationModes) { | |
| 211 | 9 | bool result = setInt(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::NumberofEnhancedDehumidificationModes, | |
| 212 | numberofEnhancedDehumidificationModes); | ||
| 213 | 9 | return result; | |
| 214 | } | ||
| 215 | |||
| 216 | 9 | bool CoilCoolingDXTwoStageWithHumidityControlMode_Impl::setNormalModeStage1CoilPerformance( | |
| 217 | const boost::optional<CoilPerformanceDXCooling>& coilPerformanceDX) { | ||
| 218 | 9 | bool result(false); | |
| 219 |
1/2✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
|
9 | if (coilPerformanceDX) { |
| 220 | result = | ||
| 221 |
3/3✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
|
9 | setPointer(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::NormalModeStage1CoilPerformance, coilPerformanceDX.get().handle()); |
| 222 | } else { | ||
| 223 | ✗ | resetNormalModeStage1CoilPerformance(); | |
| 224 | ✗ | result = true; | |
| 225 | } | ||
| 226 | 9 | return result; | |
| 227 | } | ||
| 228 | |||
| 229 | ✗ | void CoilCoolingDXTwoStageWithHumidityControlMode_Impl::resetNormalModeStage1CoilPerformance() { | |
| 230 | ✗ | bool result = setString(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::NormalModeStage1CoilPerformance, ""); | |
| 231 | ✗ | OS_ASSERT(result); | |
| 232 | ✗ | } | |
| 233 | |||
| 234 | 9 | bool CoilCoolingDXTwoStageWithHumidityControlMode_Impl::setNormalModeStage1Plus2CoilPerformance( | |
| 235 | const boost::optional<CoilPerformanceDXCooling>& coilPerformanceDX) { | ||
| 236 | 9 | bool result(false); | |
| 237 |
1/2✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
|
9 | if (coilPerformanceDX) { |
| 238 |
1/1✓ Branch 1 taken 9 times.
|
9 | result = setPointer(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::NormalModeStage1Plus2CoilPerformance, |
| 239 |
2/2✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
|
18 | coilPerformanceDX.get().handle()); |
| 240 | } else { | ||
| 241 | ✗ | resetNormalModeStage1Plus2CoilPerformance(); | |
| 242 | ✗ | result = true; | |
| 243 | } | ||
| 244 | 9 | return result; | |
| 245 | } | ||
| 246 | |||
| 247 | ✗ | void CoilCoolingDXTwoStageWithHumidityControlMode_Impl::resetNormalModeStage1Plus2CoilPerformance() { | |
| 248 | ✗ | bool result = setString(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::NormalModeStage1Plus2CoilPerformance, ""); | |
| 249 | ✗ | OS_ASSERT(result); | |
| 250 | ✗ | } | |
| 251 | |||
| 252 | 9 | bool CoilCoolingDXTwoStageWithHumidityControlMode_Impl::setDehumidificationMode1Stage1CoilPerformance( | |
| 253 | const boost::optional<CoilPerformanceDXCooling>& coilPerformanceDX) { | ||
| 254 | 9 | bool result(false); | |
| 255 |
1/2✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
|
9 | if (coilPerformanceDX) { |
| 256 |
1/1✓ Branch 1 taken 9 times.
|
9 | result = setPointer(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::DehumidificationMode1Stage1CoilPerformance, |
| 257 |
2/2✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
|
18 | coilPerformanceDX.get().handle()); |
| 258 | } else { | ||
| 259 | ✗ | resetDehumidificationMode1Stage1CoilPerformance(); | |
| 260 | ✗ | result = true; | |
| 261 | } | ||
| 262 | 9 | return result; | |
| 263 | } | ||
| 264 | |||
| 265 | ✗ | void CoilCoolingDXTwoStageWithHumidityControlMode_Impl::resetDehumidificationMode1Stage1CoilPerformance() { | |
| 266 | ✗ | bool result = setString(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::DehumidificationMode1Stage1CoilPerformance, ""); | |
| 267 | ✗ | OS_ASSERT(result); | |
| 268 | ✗ | } | |
| 269 | |||
| 270 | 9 | bool CoilCoolingDXTwoStageWithHumidityControlMode_Impl::setDehumidificationMode1Stage1Plus2CoilPerformance( | |
| 271 | const boost::optional<CoilPerformanceDXCooling>& coilPerformanceDX) { | ||
| 272 | 9 | bool result(false); | |
| 273 |
1/2✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
|
9 | if (coilPerformanceDX) { |
| 274 |
1/1✓ Branch 1 taken 9 times.
|
9 | result = setPointer(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::DehumidificationMode1Stage1Plus2CoilPerformance, |
| 275 |
2/2✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
|
18 | coilPerformanceDX.get().handle()); |
| 276 | } else { | ||
| 277 | ✗ | resetDehumidificationMode1Stage1Plus2CoilPerformance(); | |
| 278 | ✗ | result = true; | |
| 279 | } | ||
| 280 | 9 | return result; | |
| 281 | } | ||
| 282 | |||
| 283 | ✗ | void CoilCoolingDXTwoStageWithHumidityControlMode_Impl::resetDehumidificationMode1Stage1Plus2CoilPerformance() { | |
| 284 | ✗ | bool result = setString(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::DehumidificationMode1Stage1Plus2CoilPerformance, ""); | |
| 285 | ✗ | OS_ASSERT(result); | |
| 286 | ✗ | } | |
| 287 | |||
| 288 | 9 | bool CoilCoolingDXTwoStageWithHumidityControlMode_Impl::setBasinHeaterCapacity(double basinHeaterCapacity) { | |
| 289 | 9 | bool result = setDouble(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::BasinHeaterCapacity, basinHeaterCapacity); | |
| 290 | 9 | return result; | |
| 291 | } | ||
| 292 | |||
| 293 | 9 | bool CoilCoolingDXTwoStageWithHumidityControlMode_Impl::setBasinHeaterSetpointTemperature(double basinHeaterSetpointTemperature) { | |
| 294 | bool result = | ||
| 295 | 9 | setDouble(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::BasinHeaterSetpointTemperature, basinHeaterSetpointTemperature); | |
| 296 | 9 | return result; | |
| 297 | } | ||
| 298 | |||
| 299 | 1 | bool CoilCoolingDXTwoStageWithHumidityControlMode_Impl::setBasinHeaterOperatingSchedule(Schedule& schedule) { | |
| 300 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
4 | bool result = setSchedule(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::BasinHeaterOperatingSchedule, |
| 301 | "CoilCoolingDXTwoStageWithHumidityControlMode", "Basin Heater Operating Schedule", schedule); | ||
| 302 | 1 | return result; | |
| 303 | } | ||
| 304 | |||
| 305 | ✗ | void CoilCoolingDXTwoStageWithHumidityControlMode_Impl::resetBasinHeaterOperatingSchedule() { | |
| 306 | ✗ | bool result = setString(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::BasinHeaterOperatingSchedule, ""); | |
| 307 | ✗ | OS_ASSERT(result); | |
| 308 | ✗ | } | |
| 309 | |||
| 310 | 6 | double CoilCoolingDXTwoStageWithHumidityControlMode_Impl::minimumOutdoorDryBulbTemperatureforCompressorOperation() const { | |
| 311 | boost::optional<double> value = | ||
| 312 |
1/1✓ Branch 1 taken 6 times.
|
6 | getDouble(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::MinimumOutdoorDryBulbTemperatureforCompressorOperation, true); |
| 313 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 314 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 315 | } | ||
| 316 | |||
| 317 | 10 | bool CoilCoolingDXTwoStageWithHumidityControlMode_Impl::setMinimumOutdoorDryBulbTemperatureforCompressorOperation( | |
| 318 | double minimumOutdoorDryBulbTemperatureforCompressorOperation) { | ||
| 319 | 10 | bool result = setDouble(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::MinimumOutdoorDryBulbTemperatureforCompressorOperation, | |
| 320 | minimumOutdoorDryBulbTemperatureforCompressorOperation); | ||
| 321 | 10 | return result; | |
| 322 | } | ||
| 323 | |||
| 324 | 4 | boost::optional<Curve> CoilCoolingDXTwoStageWithHumidityControlMode_Impl::crankcaseHeaterCapacityFunctionofTemperatureCurve() const { | |
| 325 |
1/1✓ Branch 1 taken 4 times.
|
8 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 326 |
1/1✓ Branch 1 taken 4 times.
|
8 | OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::CrankcaseHeaterCapacityFunctionofTemperatureCurveName); |
| 327 | } | ||
| 328 | |||
| 329 | 1 | bool CoilCoolingDXTwoStageWithHumidityControlMode_Impl::setCrankcaseHeaterCapacityFunctionofTemperatureCurve(const Curve& curve) { | |
| 330 | const bool result = | ||
| 331 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | setPointer(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::CrankcaseHeaterCapacityFunctionofTemperatureCurveName, curve.handle()); |
| 332 | 1 | return result; | |
| 333 | } | ||
| 334 | |||
| 335 | ✗ | void CoilCoolingDXTwoStageWithHumidityControlMode_Impl::resetCrankcaseHeaterCapacityFunctionofTemperatureCurve() { | |
| 336 | const bool result = | ||
| 337 | ✗ | setString(OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::CrankcaseHeaterCapacityFunctionofTemperatureCurveName, ""); | |
| 338 | ✗ | OS_ASSERT(result); | |
| 339 | ✗ | } | |
| 340 | |||
| 341 | 94 | unsigned CoilCoolingDXTwoStageWithHumidityControlMode_Impl::inletPort() const { | |
| 342 | 94 | return OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::AirInletNodeName; | |
| 343 | } | ||
| 344 | |||
| 345 | 15 | unsigned CoilCoolingDXTwoStageWithHumidityControlMode_Impl::outletPort() const { | |
| 346 | 15 | return OS_Coil_Cooling_DX_TwoStageWithHumidityControlModeFields::AirOutletNodeName; | |
| 347 | } | ||
| 348 | |||
| 349 | 2 | boost::optional<HVACComponent> CoilCoolingDXTwoStageWithHumidityControlMode_Impl::containingHVACComponent() const { | |
| 350 | // AirLoopHVACUnitarySystem | ||
| 351 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | std::vector<AirLoopHVACUnitarySystem> airLoopHVACUnitarySystems = model().getConcreteModelObjects<AirLoopHVACUnitarySystem>(); |
| 352 | |||
| 353 |
1/2✗ Branch 5 not taken.
✓ Branch 6 taken 2 times.
|
2 | for (const auto& airLoopHVACUnitarySystem : airLoopHVACUnitarySystems) { |
| 354 | ✗ | if (boost::optional<HVACComponent> coolingCoil = airLoopHVACUnitarySystem.coolingCoil()) { | |
| 355 | ✗ | if (coolingCoil->handle() == this->handle()) { | |
| 356 | ✗ | return airLoopHVACUnitarySystem; | |
| 357 | } | ||
| 358 | ✗ | } | |
| 359 | } | ||
| 360 | |||
| 361 | // AirLoopHVACUnitaryHeatCoolVAVChangeoverBypass | ||
| 362 | std::vector<AirLoopHVACUnitaryHeatCoolVAVChangeoverBypass> bypassSystems = | ||
| 363 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | model().getConcreteModelObjects<AirLoopHVACUnitaryHeatCoolVAVChangeoverBypass>(); |
| 364 | |||
| 365 |
1/2✗ Branch 5 not taken.
✓ Branch 6 taken 2 times.
|
2 | for (const auto& bypassSystem : bypassSystems) { |
| 366 | ✗ | if (boost::optional<HVACComponent> coolingCoil = bypassSystem.coolingCoil()) { | |
| 367 | ✗ | if (coolingCoil->handle() == this->handle()) { | |
| 368 | ✗ | return bypassSystem; | |
| 369 | } | ||
| 370 | ✗ | } | |
| 371 | } | ||
| 372 | |||
| 373 | // AirLoopHVACUnitaryHeatPumpAirToAir | ||
| 374 | |||
| 375 | 2 | std::vector<AirLoopHVACUnitaryHeatPumpAirToAir> airLoopHVACUnitaryHeatPumpAirToAirs; | |
| 376 | |||
| 377 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | airLoopHVACUnitaryHeatPumpAirToAirs = model().getConcreteModelObjects<AirLoopHVACUnitaryHeatPumpAirToAir>(); |
| 378 | |||
| 379 |
1/2✗ Branch 5 not taken.
✓ Branch 6 taken 2 times.
|
2 | for (const auto& airLoopHVACUnitaryHeatPumpAirToAir : airLoopHVACUnitaryHeatPumpAirToAirs) { |
| 380 | ✗ | if (boost::optional<HVACComponent> coil = airLoopHVACUnitaryHeatPumpAirToAir.coolingCoil()) { | |
| 381 | ✗ | if (coil->handle() == this->handle()) { | |
| 382 | ✗ | return airLoopHVACUnitaryHeatPumpAirToAir; | |
| 383 | } | ||
| 384 | ✗ | } | |
| 385 | } | ||
| 386 | |||
| 387 | 2 | return boost::none; | |
| 388 | 2 | } | |
| 389 | |||
| 390 | 2 | ModelObject CoilCoolingDXTwoStageWithHumidityControlMode_Impl::clone(Model model) const { | |
| 391 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
|
2 | auto newCoil = StraightComponent_Impl::clone(model).cast<CoilCoolingDXTwoStageWithHumidityControlMode>(); |
| 392 | |||
| 393 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 1 time.
✓ Branch 8 taken 1 time.
|
2 | if (model != this->model()) { |
| 394 | // If there are CoilPerformanceDXCooling objects, clone them as well | ||
| 395 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<CoilPerformanceDXCooling> coilPerf1 = normalModeStage1CoilPerformance()) { |
| 396 |
4/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
|
1 | auto coilPerf1Clone = coilPerf1->clone(model).cast<CoilPerformanceDXCooling>(); |
| 397 |
1/1✓ Branch 1 taken 1 time.
|
1 | newCoil.setNormalModeStage1CoilPerformance(coilPerf1Clone); |
| 398 | 2 | } | |
| 399 | |||
| 400 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<CoilPerformanceDXCooling> coilPerf2 = normalModeStage1Plus2CoilPerformance()) { |
| 401 |
4/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
|
1 | auto coilPerf2Clone = coilPerf2->clone(model).cast<CoilPerformanceDXCooling>(); |
| 402 |
1/1✓ Branch 1 taken 1 time.
|
1 | newCoil.setNormalModeStage1Plus2CoilPerformance(coilPerf2Clone); |
| 403 | 2 | } | |
| 404 | |||
| 405 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<CoilPerformanceDXCooling> coilPerf3 = dehumidificationMode1Stage1CoilPerformance()) { |
| 406 |
4/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
|
1 | auto coilPerf3Clone = coilPerf3->clone(model).cast<CoilPerformanceDXCooling>(); |
| 407 |
1/1✓ Branch 1 taken 1 time.
|
1 | newCoil.setDehumidificationMode1Stage1CoilPerformance(coilPerf3Clone); |
| 408 | 2 | } | |
| 409 | |||
| 410 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<CoilPerformanceDXCooling> coilPerf4 = dehumidificationMode1Stage1Plus2CoilPerformance()) { |
| 411 |
4/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
|
1 | auto coilPerf4Clone = coilPerf4->clone(model).cast<CoilPerformanceDXCooling>(); |
| 412 |
1/1✓ Branch 1 taken 1 time.
|
1 | newCoil.setDehumidificationMode1Stage1Plus2CoilPerformance(coilPerf4Clone); |
| 413 | 2 | } | |
| 414 | } | ||
| 415 | |||
| 416 | 4 | return std::move(newCoil); | |
| 417 | 2 | } | |
| 418 | |||
| 419 | ✗ | std::vector<IddObjectType> CoilCoolingDXTwoStageWithHumidityControlMode_Impl::allowableChildTypes() const { | |
| 420 | ✗ | std::vector<IddObjectType> result; | |
| 421 | ✗ | result.push_back(IddObjectType::OS_CoilPerformance_DX_Cooling); | |
| 422 | ✗ | return result; | |
| 423 | ✗ | } | |
| 424 | |||
| 425 | 2 | std::vector<ModelObject> CoilCoolingDXTwoStageWithHumidityControlMode_Impl::children() const { | |
| 426 | 2 | std::vector<ModelObject> result; | |
| 427 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (auto mo = normalModeStage1CoilPerformance()) { |
| 428 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | result.push_back(mo.get()); |
| 429 | 2 | } | |
| 430 | |||
| 431 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (auto mo = normalModeStage1Plus2CoilPerformance()) { |
| 432 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | result.push_back(mo.get()); |
| 433 | 2 | } | |
| 434 | |||
| 435 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (auto mo = dehumidificationMode1Stage1CoilPerformance()) { |
| 436 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | result.push_back(mo.get()); |
| 437 | 2 | } | |
| 438 | |||
| 439 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (auto mo = dehumidificationMode1Stage1Plus2CoilPerformance()) { |
| 440 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | result.push_back(mo.get()); |
| 441 | 2 | } | |
| 442 | std::vector<AirflowNetworkEquivalentDuct> myAFNItems = | ||
| 443 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
|
2 | getObject<ModelObject>().getModelObjectSources<AirflowNetworkEquivalentDuct>(AirflowNetworkEquivalentDuct::iddObjectType()); |
| 444 |
1/1✓ Branch 5 taken 2 times.
|
2 | result.insert(result.end(), myAFNItems.begin(), myAFNItems.end()); |
| 445 | |||
| 446 | 4 | return result; | |
| 447 | 2 | } | |
| 448 | |||
| 449 | ✗ | AirflowNetworkEquivalentDuct CoilCoolingDXTwoStageWithHumidityControlMode_Impl::getAirflowNetworkEquivalentDuct(double length, double diameter) { | |
| 450 | ✗ | boost::optional<AirflowNetworkEquivalentDuct> opt = airflowNetworkEquivalentDuct(); | |
| 451 | ✗ | if (opt) { | |
| 452 | ✗ | if (opt->airPathLength() != length) { | |
| 453 | ✗ | opt->setAirPathLength(length); | |
| 454 | } | ||
| 455 | ✗ | if (opt->airPathHydraulicDiameter() != diameter) { | |
| 456 | ✗ | opt->setAirPathHydraulicDiameter(diameter); | |
| 457 | } | ||
| 458 | } | ||
| 459 | ✗ | return AirflowNetworkEquivalentDuct(model(), length, diameter, handle()); | |
| 460 | ✗ | } | |
| 461 | |||
| 462 | ✗ | boost::optional<AirflowNetworkEquivalentDuct> CoilCoolingDXTwoStageWithHumidityControlMode_Impl::airflowNetworkEquivalentDuct() const { | |
| 463 | std::vector<AirflowNetworkEquivalentDuct> myAFN = | ||
| 464 | ✗ | getObject<ModelObject>().getModelObjectSources<AirflowNetworkEquivalentDuct>(AirflowNetworkEquivalentDuct::iddObjectType()); | |
| 465 | ✗ | auto count = myAFN.size(); | |
| 466 | ✗ | if (count == 1) { | |
| 467 | ✗ | return myAFN[0]; | |
| 468 | ✗ | } else if (count > 1) { | |
| 469 | ✗ | LOG(Warn, briefDescription() << " has more than one AirflowNetwork EquivalentDuct attached, returning first."); | |
| 470 | ✗ | return myAFN[0]; | |
| 471 | } | ||
| 472 | ✗ | return boost::none; | |
| 473 | ✗ | } | |
| 474 | |||
| 475 | 2 | bool CoilCoolingDXTwoStageWithHumidityControlMode_Impl::addToNode(Node& node) { | |
| 476 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
|
4 | if (auto airLoop = node.airLoopHVAC()) { |
| 477 |
4/5✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 11 taken 1 time.
✗ Branch 12 not taken.
|
1 | if (!airLoop->demandComponent(node.handle())) { |
| 478 |
1/1✓ Branch 1 taken 1 time.
|
1 | return StraightComponent_Impl::addToNode(node); |
| 479 | } | ||
| 480 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | } else if (boost::optional<AirLoopHVACOutdoorAirSystem> oas = node.airLoopHVACOutdoorAirSystem()) { |
| 481 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
|
2 | if (oas->airLoopHVACDedicatedOutdoorAirSystem()) { |
| 482 |
1/1✓ Branch 1 taken 1 time.
|
1 | return StraightComponent_Impl::addToNode(node); |
| 483 | } | ||
| 484 | 3 | } | |
| 485 | |||
| 486 | ✗ | return false; | |
| 487 | } | ||
| 488 | |||
| 489 | ✗ | ComponentType CoilCoolingDXTwoStageWithHumidityControlMode_Impl::componentType() const { | |
| 490 | ✗ | return ComponentType::Cooling; | |
| 491 | } | ||
| 492 | |||
| 493 | ✗ | std::vector<FuelType> CoilCoolingDXTwoStageWithHumidityControlMode_Impl::coolingFuelTypes() const { | |
| 494 | ✗ | return {FuelType::Electricity}; | |
| 495 | } | ||
| 496 | |||
| 497 | ✗ | std::vector<FuelType> CoilCoolingDXTwoStageWithHumidityControlMode_Impl::heatingFuelTypes() const { | |
| 498 | ✗ | return {}; | |
| 499 | } | ||
| 500 | |||
| 501 | ✗ | std::vector<AppGFuelType> CoilCoolingDXTwoStageWithHumidityControlMode_Impl::appGHeatingFuelTypes() const { | |
| 502 | ✗ | return {}; | |
| 503 | } | ||
| 504 | |||
| 505 | } // namespace detail | ||
| 506 | |||
| 507 | 8 | CoilCoolingDXTwoStageWithHumidityControlMode::CoilCoolingDXTwoStageWithHumidityControlMode(const Model& model) | |
| 508 | 8 | : StraightComponent(CoilCoolingDXTwoStageWithHumidityControlMode::iddObjectType(), model) { | |
| 509 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 8 times.
✗ Branch 5 not taken.
|
8 | OS_ASSERT(getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()); |
| 510 | |||
| 511 |
1/1✓ Branch 1 taken 8 times.
|
8 | setNumberofCapacityStages(2); |
| 512 |
1/1✓ Branch 1 taken 8 times.
|
8 | setNumberofEnhancedDehumidificationModes(1); |
| 513 |
1/1✓ Branch 1 taken 8 times.
|
8 | setCrankcaseHeaterCapacity(0.0); |
| 514 |
1/1✓ Branch 1 taken 8 times.
|
8 | setMaximumOutdoorDryBulbTemperatureforCrankcaseHeaterOperation(10.0); |
| 515 |
1/1✓ Branch 1 taken 8 times.
|
8 | setBasinHeaterCapacity(0.0); |
| 516 |
1/1✓ Branch 1 taken 8 times.
|
8 | setBasinHeaterSetpointTemperature(2.0); |
| 517 |
1/1✓ Branch 1 taken 8 times.
|
8 | setMinimumOutdoorDryBulbTemperatureforCompressorOperation(-25.0); // Per E+ IDD default |
| 518 | |||
| 519 | { | ||
| 520 |
1/1✓ Branch 1 taken 8 times.
|
8 | CurveBiquadratic totalCoolingCapacityFunctionofTemperatureCurve(model); |
| 521 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setCoefficient1Constant(1.067939449); |
| 522 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setCoefficient2x(-0.031261829); |
| 523 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setCoefficient3xPOW2(0.001974308); |
| 524 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setCoefficient4y(-0.002726426); |
| 525 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setCoefficient5yPOW2(-5.52654E-05); |
| 526 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setCoefficient6xTIMESY(-6.31169E-05); |
| 527 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setMinimumValueofx(-100); |
| 528 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setMaximumValueofx(100); |
| 529 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setMinimumValueofy(-100); |
| 530 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setMaximumValueofy(100); |
| 531 | |||
| 532 |
1/1✓ Branch 1 taken 8 times.
|
8 | CurveQuadratic totalCoolingCapacityFunctionofFlowFractionCurve(model); |
| 533 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofFlowFractionCurve.setCoefficient1Constant(0.8); |
| 534 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofFlowFractionCurve.setCoefficient2x(0.2); |
| 535 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofFlowFractionCurve.setCoefficient3xPOW2(0.0); |
| 536 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofFlowFractionCurve.setMinimumValueofx(0.5); |
| 537 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofFlowFractionCurve.setMaximumValueofx(1.5); |
| 538 | |||
| 539 |
1/1✓ Branch 1 taken 8 times.
|
8 | CurveBiquadratic energyInputRatioFunctionofTemperatureCurve(model); |
| 540 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setCoefficient1Constant(0.174059889); |
| 541 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setCoefficient2x(0.022281508); |
| 542 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setCoefficient3xPOW2(-0.000134077); |
| 543 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setCoefficient4y(0.028298025); |
| 544 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setCoefficient5yPOW2(0.00048510); |
| 545 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setCoefficient6xTIMESY(-0.001677095); |
| 546 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setMinimumValueofx(-100); |
| 547 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setMaximumValueofx(100); |
| 548 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setMinimumValueofy(-100); |
| 549 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setMaximumValueofy(100); |
| 550 | |||
| 551 |
1/1✓ Branch 1 taken 8 times.
|
8 | CurveQuadratic energyInputRatioFunctionofFlowFractionCurve(model); |
| 552 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofFlowFractionCurve.setCoefficient1Constant(1.1552); |
| 553 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofFlowFractionCurve.setCoefficient2x(-0.1808); |
| 554 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofFlowFractionCurve.setCoefficient3xPOW2(0.0256); |
| 555 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofFlowFractionCurve.setMinimumValueofx(0.5); |
| 556 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofFlowFractionCurve.setMaximumValueofx(1.5); |
| 557 | |||
| 558 |
1/1✓ Branch 1 taken 8 times.
|
8 | CurveQuadratic partLoadFractionCorrelationCurve(model); |
| 559 |
1/1✓ Branch 1 taken 8 times.
|
8 | partLoadFractionCorrelationCurve.setCoefficient1Constant(0.85); |
| 560 |
1/1✓ Branch 1 taken 8 times.
|
8 | partLoadFractionCorrelationCurve.setCoefficient2x(0.15); |
| 561 |
1/1✓ Branch 1 taken 8 times.
|
8 | partLoadFractionCorrelationCurve.setCoefficient3xPOW2(0.0); |
| 562 |
1/1✓ Branch 1 taken 8 times.
|
8 | partLoadFractionCorrelationCurve.setMinimumValueofx(0.0); |
| 563 |
1/1✓ Branch 1 taken 8 times.
|
8 | partLoadFractionCorrelationCurve.setMaximumValueofx(1.0); |
| 564 | |||
| 565 | CoilPerformanceDXCooling coilPerformanceDXCooling(model, totalCoolingCapacityFunctionofTemperatureCurve, | ||
| 566 | totalCoolingCapacityFunctionofFlowFractionCurve, energyInputRatioFunctionofTemperatureCurve, | ||
| 567 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofFlowFractionCurve, partLoadFractionCorrelationCurve); |
| 568 | |||
| 569 |
1/1✓ Branch 1 taken 8 times.
|
8 | coilPerformanceDXCooling.setGrossRatedCoolingCOP(3.0); |
| 570 |
1/1✓ Branch 1 taken 8 times.
|
8 | coilPerformanceDXCooling.setFractionofAirFlowBypassedAroundCoil(0.5); |
| 571 | |||
| 572 |
1/1✓ Branch 1 taken 8 times.
|
8 | setNormalModeStage1CoilPerformance(coilPerformanceDXCooling); |
| 573 | 8 | } | |
| 574 | |||
| 575 | { | ||
| 576 |
1/1✓ Branch 1 taken 8 times.
|
8 | CurveBiquadratic totalCoolingCapacityFunctionofTemperatureCurve(model); |
| 577 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setCoefficient1Constant(1.067939449); |
| 578 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setCoefficient2x(-0.031261829); |
| 579 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setCoefficient3xPOW2(0.001974308); |
| 580 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setCoefficient4y(-0.002726426); |
| 581 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setCoefficient5yPOW2(-5.52654E-05); |
| 582 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setCoefficient6xTIMESY(-6.31169E-05); |
| 583 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setMinimumValueofx(-100); |
| 584 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setMaximumValueofx(100); |
| 585 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setMinimumValueofy(-100); |
| 586 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setMaximumValueofy(100); |
| 587 | |||
| 588 |
1/1✓ Branch 1 taken 8 times.
|
8 | CurveQuadratic totalCoolingCapacityFunctionofFlowFractionCurve(model); |
| 589 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofFlowFractionCurve.setCoefficient1Constant(0.8); |
| 590 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofFlowFractionCurve.setCoefficient2x(0.2); |
| 591 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofFlowFractionCurve.setCoefficient3xPOW2(0.0); |
| 592 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofFlowFractionCurve.setMinimumValueofx(0.5); |
| 593 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofFlowFractionCurve.setMaximumValueofx(1.5); |
| 594 | |||
| 595 |
1/1✓ Branch 1 taken 8 times.
|
8 | CurveBiquadratic energyInputRatioFunctionofTemperatureCurve(model); |
| 596 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setCoefficient1Constant(0.174059889); |
| 597 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setCoefficient2x(0.022281508); |
| 598 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setCoefficient3xPOW2(-0.000134077); |
| 599 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setCoefficient4y(0.028298025); |
| 600 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setCoefficient5yPOW2(0.00048510); |
| 601 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setCoefficient6xTIMESY(-0.001677095); |
| 602 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setMinimumValueofx(-100); |
| 603 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setMaximumValueofx(100); |
| 604 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setMinimumValueofy(-100); |
| 605 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setMaximumValueofy(100); |
| 606 | |||
| 607 |
1/1✓ Branch 1 taken 8 times.
|
8 | CurveQuadratic energyInputRatioFunctionofFlowFractionCurve(model); |
| 608 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofFlowFractionCurve.setCoefficient1Constant(1.1552); |
| 609 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofFlowFractionCurve.setCoefficient2x(-0.1808); |
| 610 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofFlowFractionCurve.setCoefficient3xPOW2(0.0256); |
| 611 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofFlowFractionCurve.setMinimumValueofx(0.5); |
| 612 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofFlowFractionCurve.setMaximumValueofx(1.5); |
| 613 | |||
| 614 |
1/1✓ Branch 1 taken 8 times.
|
8 | CurveQuadratic partLoadFractionCorrelationCurve(model); |
| 615 |
1/1✓ Branch 1 taken 8 times.
|
8 | partLoadFractionCorrelationCurve.setCoefficient1Constant(0.85); |
| 616 |
1/1✓ Branch 1 taken 8 times.
|
8 | partLoadFractionCorrelationCurve.setCoefficient2x(0.15); |
| 617 |
1/1✓ Branch 1 taken 8 times.
|
8 | partLoadFractionCorrelationCurve.setCoefficient3xPOW2(0.0); |
| 618 |
1/1✓ Branch 1 taken 8 times.
|
8 | partLoadFractionCorrelationCurve.setMinimumValueofx(0.0); |
| 619 |
1/1✓ Branch 1 taken 8 times.
|
8 | partLoadFractionCorrelationCurve.setMaximumValueofx(1.0); |
| 620 | |||
| 621 | CoilPerformanceDXCooling coilPerformanceDXCooling(model, totalCoolingCapacityFunctionofTemperatureCurve, | ||
| 622 | totalCoolingCapacityFunctionofFlowFractionCurve, energyInputRatioFunctionofTemperatureCurve, | ||
| 623 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofFlowFractionCurve, partLoadFractionCorrelationCurve); |
| 624 | |||
| 625 |
1/1✓ Branch 1 taken 8 times.
|
8 | coilPerformanceDXCooling.setGrossRatedCoolingCOP(3.0); |
| 626 |
1/1✓ Branch 1 taken 8 times.
|
8 | coilPerformanceDXCooling.setFractionofAirFlowBypassedAroundCoil(0.0); |
| 627 | |||
| 628 |
1/1✓ Branch 1 taken 8 times.
|
8 | setNormalModeStage1Plus2CoilPerformance(coilPerformanceDXCooling); |
| 629 | 8 | } | |
| 630 | |||
| 631 | { | ||
| 632 |
1/1✓ Branch 1 taken 8 times.
|
8 | CurveBiquadratic totalCoolingCapacityFunctionofTemperatureCurve(model); |
| 633 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setCoefficient1Constant(0.596779741); |
| 634 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setCoefficient2x(0.034216637); |
| 635 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setCoefficient3xPOW2(0.000113924); |
| 636 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setCoefficient4y(-0.00375859); |
| 637 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setCoefficient5yPOW2(-9.17495E-05); |
| 638 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setCoefficient6xTIMESY(-8.98373E-05); |
| 639 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setMinimumValueofx(-100); |
| 640 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setMaximumValueofx(100); |
| 641 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setMinimumValueofy(-100); |
| 642 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setMaximumValueofy(100); |
| 643 | |||
| 644 |
1/1✓ Branch 1 taken 8 times.
|
8 | CurveQuadratic totalCoolingCapacityFunctionofFlowFractionCurve(model); |
| 645 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofFlowFractionCurve.setCoefficient1Constant(0.8); |
| 646 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofFlowFractionCurve.setCoefficient2x(0.2); |
| 647 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofFlowFractionCurve.setCoefficient3xPOW2(0.0); |
| 648 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofFlowFractionCurve.setMinimumValueofx(0.5); |
| 649 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofFlowFractionCurve.setMaximumValueofx(1.5); |
| 650 | |||
| 651 |
1/1✓ Branch 1 taken 8 times.
|
8 | CurveBiquadratic energyInputRatioFunctionofTemperatureCurve(model); |
| 652 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setCoefficient1Constant(0.435347586); |
| 653 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setCoefficient2x(0.004015641); |
| 654 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setCoefficient3xPOW2(0.000604235); |
| 655 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setCoefficient4y(0.015824043); |
| 656 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setCoefficient5yPOW2(0.000747287); |
| 657 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setCoefficient6xTIMESY(-0.001779745); |
| 658 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setMinimumValueofx(-100); |
| 659 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setMaximumValueofx(100); |
| 660 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setMinimumValueofy(-100); |
| 661 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setMaximumValueofy(100); |
| 662 | |||
| 663 |
1/1✓ Branch 1 taken 8 times.
|
8 | CurveQuadratic energyInputRatioFunctionofFlowFractionCurve(model); |
| 664 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofFlowFractionCurve.setCoefficient1Constant(1.1552); |
| 665 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofFlowFractionCurve.setCoefficient2x(-0.1808); |
| 666 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofFlowFractionCurve.setCoefficient3xPOW2(0.0256); |
| 667 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofFlowFractionCurve.setMinimumValueofx(0.5); |
| 668 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofFlowFractionCurve.setMaximumValueofx(1.5); |
| 669 | |||
| 670 |
1/1✓ Branch 1 taken 8 times.
|
8 | CurveQuadratic partLoadFractionCorrelationCurve(model); |
| 671 |
1/1✓ Branch 1 taken 8 times.
|
8 | partLoadFractionCorrelationCurve.setCoefficient1Constant(0.85); |
| 672 |
1/1✓ Branch 1 taken 8 times.
|
8 | partLoadFractionCorrelationCurve.setCoefficient2x(0.15); |
| 673 |
1/1✓ Branch 1 taken 8 times.
|
8 | partLoadFractionCorrelationCurve.setCoefficient3xPOW2(0.0); |
| 674 |
1/1✓ Branch 1 taken 8 times.
|
8 | partLoadFractionCorrelationCurve.setMinimumValueofx(0.0); |
| 675 |
1/1✓ Branch 1 taken 8 times.
|
8 | partLoadFractionCorrelationCurve.setMaximumValueofx(1.0); |
| 676 | |||
| 677 | CoilPerformanceDXCooling coilPerformanceDXCooling(model, totalCoolingCapacityFunctionofTemperatureCurve, | ||
| 678 | totalCoolingCapacityFunctionofFlowFractionCurve, energyInputRatioFunctionofTemperatureCurve, | ||
| 679 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofFlowFractionCurve, partLoadFractionCorrelationCurve); |
| 680 | |||
| 681 |
1/1✓ Branch 1 taken 8 times.
|
8 | coilPerformanceDXCooling.setGrossRatedCoolingCOP(2.7); |
| 682 |
1/1✓ Branch 1 taken 8 times.
|
8 | coilPerformanceDXCooling.setFractionofAirFlowBypassedAroundCoil(0.5); |
| 683 | |||
| 684 |
1/1✓ Branch 1 taken 8 times.
|
8 | setDehumidificationMode1Stage1CoilPerformance(coilPerformanceDXCooling); |
| 685 | 8 | } | |
| 686 | |||
| 687 | { | ||
| 688 |
1/1✓ Branch 1 taken 8 times.
|
8 | CurveBiquadratic totalCoolingCapacityFunctionofTemperatureCurve(model); |
| 689 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setCoefficient1Constant(0.596779741); |
| 690 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setCoefficient2x(0.034216637); |
| 691 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setCoefficient3xPOW2(0.000113924); |
| 692 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setCoefficient4y(-0.00375859); |
| 693 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setCoefficient5yPOW2(-9.17495E-05); |
| 694 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setCoefficient6xTIMESY(-8.98373E-05); |
| 695 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setMinimumValueofx(-100); |
| 696 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setMaximumValueofx(100); |
| 697 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setMinimumValueofy(-100); |
| 698 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofTemperatureCurve.setMaximumValueofy(100); |
| 699 | |||
| 700 |
1/1✓ Branch 1 taken 8 times.
|
8 | CurveQuadratic totalCoolingCapacityFunctionofFlowFractionCurve(model); |
| 701 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofFlowFractionCurve.setCoefficient1Constant(0.8); |
| 702 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofFlowFractionCurve.setCoefficient2x(0.2); |
| 703 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofFlowFractionCurve.setCoefficient3xPOW2(0.0); |
| 704 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofFlowFractionCurve.setMinimumValueofx(0.5); |
| 705 |
1/1✓ Branch 1 taken 8 times.
|
8 | totalCoolingCapacityFunctionofFlowFractionCurve.setMaximumValueofx(1.5); |
| 706 | |||
| 707 |
1/1✓ Branch 1 taken 8 times.
|
8 | CurveBiquadratic energyInputRatioFunctionofTemperatureCurve(model); |
| 708 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setCoefficient1Constant(0.435347586); |
| 709 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setCoefficient2x(0.004015641); |
| 710 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setCoefficient3xPOW2(0.000604235); |
| 711 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setCoefficient4y(0.015824043); |
| 712 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setCoefficient5yPOW2(0.000747287); |
| 713 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setCoefficient6xTIMESY(-0.001779745); |
| 714 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setMinimumValueofx(-100); |
| 715 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setMaximumValueofx(100); |
| 716 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setMinimumValueofy(-100); |
| 717 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofTemperatureCurve.setMaximumValueofy(100); |
| 718 | |||
| 719 |
1/1✓ Branch 1 taken 8 times.
|
8 | CurveQuadratic energyInputRatioFunctionofFlowFractionCurve(model); |
| 720 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofFlowFractionCurve.setCoefficient1Constant(1.1552); |
| 721 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofFlowFractionCurve.setCoefficient2x(-0.1808); |
| 722 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofFlowFractionCurve.setCoefficient3xPOW2(0.0256); |
| 723 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofFlowFractionCurve.setMinimumValueofx(0.5); |
| 724 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofFlowFractionCurve.setMaximumValueofx(1.5); |
| 725 | |||
| 726 |
1/1✓ Branch 1 taken 8 times.
|
8 | CurveQuadratic partLoadFractionCorrelationCurve(model); |
| 727 |
1/1✓ Branch 1 taken 8 times.
|
8 | partLoadFractionCorrelationCurve.setCoefficient1Constant(0.85); |
| 728 |
1/1✓ Branch 1 taken 8 times.
|
8 | partLoadFractionCorrelationCurve.setCoefficient2x(0.15); |
| 729 |
1/1✓ Branch 1 taken 8 times.
|
8 | partLoadFractionCorrelationCurve.setCoefficient3xPOW2(0.0); |
| 730 |
1/1✓ Branch 1 taken 8 times.
|
8 | partLoadFractionCorrelationCurve.setMinimumValueofx(0.0); |
| 731 |
1/1✓ Branch 1 taken 8 times.
|
8 | partLoadFractionCorrelationCurve.setMaximumValueofx(1.0); |
| 732 | |||
| 733 | CoilPerformanceDXCooling coilPerformanceDXCooling(model, totalCoolingCapacityFunctionofTemperatureCurve, | ||
| 734 | totalCoolingCapacityFunctionofFlowFractionCurve, energyInputRatioFunctionofTemperatureCurve, | ||
| 735 |
1/1✓ Branch 1 taken 8 times.
|
8 | energyInputRatioFunctionofFlowFractionCurve, partLoadFractionCorrelationCurve); |
| 736 | |||
| 737 |
1/1✓ Branch 1 taken 8 times.
|
8 | coilPerformanceDXCooling.setGrossRatedCoolingCOP(2.7); |
| 738 |
1/1✓ Branch 1 taken 8 times.
|
8 | coilPerformanceDXCooling.setFractionofAirFlowBypassedAroundCoil(0.0); |
| 739 | |||
| 740 |
1/1✓ Branch 1 taken 8 times.
|
8 | setDehumidificationMode1Stage1Plus2CoilPerformance(coilPerformanceDXCooling); |
| 741 | 8 | } | |
| 742 | 8 | } | |
| 743 | |||
| 744 | 7749 | IddObjectType CoilCoolingDXTwoStageWithHumidityControlMode::iddObjectType() { | |
| 745 |
1/1✓ Branch 1 taken 7749 times.
|
7749 | return {IddObjectType::OS_Coil_Cooling_DX_TwoStageWithHumidityControlMode}; |
| 746 | } | ||
| 747 | |||
| 748 | 6 | boost::optional<Schedule> CoilCoolingDXTwoStageWithHumidityControlMode::availabilitySchedule() const { | |
| 749 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->availabilitySchedule(); |
| 750 | } | ||
| 751 | |||
| 752 | 4 | double CoilCoolingDXTwoStageWithHumidityControlMode::crankcaseHeaterCapacity() const { | |
| 753 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->crankcaseHeaterCapacity(); |
| 754 | } | ||
| 755 | |||
| 756 | 4 | double CoilCoolingDXTwoStageWithHumidityControlMode::maximumOutdoorDryBulbTemperatureforCrankcaseHeaterOperation() const { | |
| 757 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->maximumOutdoorDryBulbTemperatureforCrankcaseHeaterOperation(); |
| 758 | } | ||
| 759 | |||
| 760 | 4 | int CoilCoolingDXTwoStageWithHumidityControlMode::numberofCapacityStages() const { | |
| 761 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->numberofCapacityStages(); |
| 762 | } | ||
| 763 | |||
| 764 | 4 | int CoilCoolingDXTwoStageWithHumidityControlMode::numberofEnhancedDehumidificationModes() const { | |
| 765 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->numberofEnhancedDehumidificationModes(); |
| 766 | } | ||
| 767 | |||
| 768 | 13 | boost::optional<CoilPerformanceDXCooling> CoilCoolingDXTwoStageWithHumidityControlMode::normalModeStage1CoilPerformance() const { | |
| 769 |
1/1✓ Branch 3 taken 13 times.
|
13 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->normalModeStage1CoilPerformance(); |
| 770 | } | ||
| 771 | |||
| 772 | 13 | boost::optional<CoilPerformanceDXCooling> CoilCoolingDXTwoStageWithHumidityControlMode::normalModeStage1Plus2CoilPerformance() const { | |
| 773 |
1/1✓ Branch 3 taken 13 times.
|
13 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->normalModeStage1Plus2CoilPerformance(); |
| 774 | } | ||
| 775 | |||
| 776 | 13 | boost::optional<CoilPerformanceDXCooling> CoilCoolingDXTwoStageWithHumidityControlMode::dehumidificationMode1Stage1CoilPerformance() const { | |
| 777 |
1/1✓ Branch 3 taken 13 times.
|
13 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->dehumidificationMode1Stage1CoilPerformance(); |
| 778 | } | ||
| 779 | |||
| 780 | 13 | boost::optional<CoilPerformanceDXCooling> CoilCoolingDXTwoStageWithHumidityControlMode::dehumidificationMode1Stage1Plus2CoilPerformance() const { | |
| 781 |
1/1✓ Branch 3 taken 13 times.
|
13 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->dehumidificationMode1Stage1Plus2CoilPerformance(); |
| 782 | } | ||
| 783 | |||
| 784 | 4 | double CoilCoolingDXTwoStageWithHumidityControlMode::basinHeaterCapacity() const { | |
| 785 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->basinHeaterCapacity(); |
| 786 | } | ||
| 787 | |||
| 788 | 4 | double CoilCoolingDXTwoStageWithHumidityControlMode::basinHeaterSetpointTemperature() const { | |
| 789 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->basinHeaterSetpointTemperature(); |
| 790 | } | ||
| 791 | |||
| 792 | 4 | boost::optional<Schedule> CoilCoolingDXTwoStageWithHumidityControlMode::basinHeaterOperatingSchedule() const { | |
| 793 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->basinHeaterOperatingSchedule(); |
| 794 | } | ||
| 795 | |||
| 796 | 1 | bool CoilCoolingDXTwoStageWithHumidityControlMode::setAvailabilitySchedule(Schedule& schedule) { | |
| 797 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->setAvailabilitySchedule(schedule); |
| 798 | } | ||
| 799 | |||
| 800 | ✗ | void CoilCoolingDXTwoStageWithHumidityControlMode::resetAvailabilitySchedule() { | |
| 801 | ✗ | getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->resetAvailabilitySchedule(); | |
| 802 | ✗ | } | |
| 803 | |||
| 804 | 9 | bool CoilCoolingDXTwoStageWithHumidityControlMode::setCrankcaseHeaterCapacity(double crankcaseHeaterCapacity) { | |
| 805 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->setCrankcaseHeaterCapacity(crankcaseHeaterCapacity); |
| 806 | } | ||
| 807 | |||
| 808 | 9 | bool CoilCoolingDXTwoStageWithHumidityControlMode::setMaximumOutdoorDryBulbTemperatureforCrankcaseHeaterOperation( | |
| 809 | double maximumOutdoorDryBulbTemperatureforCrankcaseHeaterOperation) { | ||
| 810 |
1/1✓ Branch 3 taken 9 times.
|
18 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->setMaximumOutdoorDryBulbTemperatureforCrankcaseHeaterOperation( |
| 811 | 18 | maximumOutdoorDryBulbTemperatureforCrankcaseHeaterOperation); | |
| 812 | } | ||
| 813 | |||
| 814 | 9 | bool CoilCoolingDXTwoStageWithHumidityControlMode::setNumberofCapacityStages(int numberofCapacityStages) { | |
| 815 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->setNumberofCapacityStages(numberofCapacityStages); |
| 816 | } | ||
| 817 | |||
| 818 | 9 | bool CoilCoolingDXTwoStageWithHumidityControlMode::setNumberofEnhancedDehumidificationModes(int numberofEnhancedDehumidificationModes) { | |
| 819 |
1/1✓ Branch 3 taken 9 times.
|
18 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->setNumberofEnhancedDehumidificationModes( |
| 820 | 18 | numberofEnhancedDehumidificationModes); | |
| 821 | } | ||
| 822 | |||
| 823 | 9 | bool CoilCoolingDXTwoStageWithHumidityControlMode::setNormalModeStage1CoilPerformance(const CoilPerformanceDXCooling& coilPerformanceDX) { | |
| 824 |
2/2✓ Branch 3 taken 9 times.
✓ Branch 6 taken 9 times.
|
9 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->setNormalModeStage1CoilPerformance(coilPerformanceDX); |
| 825 | } | ||
| 826 | |||
| 827 | ✗ | void CoilCoolingDXTwoStageWithHumidityControlMode::resetNormalModeStage1CoilPerformance() { | |
| 828 | ✗ | getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->resetNormalModeStage1CoilPerformance(); | |
| 829 | ✗ | } | |
| 830 | |||
| 831 | 9 | bool CoilCoolingDXTwoStageWithHumidityControlMode::setNormalModeStage1Plus2CoilPerformance(const CoilPerformanceDXCooling& coilPerformanceDX) { | |
| 832 |
2/2✓ Branch 3 taken 9 times.
✓ Branch 6 taken 9 times.
|
9 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->setNormalModeStage1Plus2CoilPerformance(coilPerformanceDX); |
| 833 | } | ||
| 834 | |||
| 835 | ✗ | void CoilCoolingDXTwoStageWithHumidityControlMode::resetNormalModeStage1Plus2CoilPerformance() { | |
| 836 | ✗ | getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->resetNormalModeStage1Plus2CoilPerformance(); | |
| 837 | ✗ | } | |
| 838 | |||
| 839 | bool | ||
| 840 | 9 | CoilCoolingDXTwoStageWithHumidityControlMode::setDehumidificationMode1Stage1CoilPerformance(const CoilPerformanceDXCooling& coilPerformanceDX) { | |
| 841 |
2/2✓ Branch 3 taken 9 times.
✓ Branch 6 taken 9 times.
|
9 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->setDehumidificationMode1Stage1CoilPerformance(coilPerformanceDX); |
| 842 | } | ||
| 843 | |||
| 844 | ✗ | void CoilCoolingDXTwoStageWithHumidityControlMode::resetDehumidificationMode1Stage1CoilPerformance() { | |
| 845 | ✗ | getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->resetDehumidificationMode1Stage1CoilPerformance(); | |
| 846 | ✗ | } | |
| 847 | |||
| 848 | 9 | bool CoilCoolingDXTwoStageWithHumidityControlMode::setDehumidificationMode1Stage1Plus2CoilPerformance( | |
| 849 | const CoilPerformanceDXCooling& coilPerformanceDX) { | ||
| 850 |
2/2✓ Branch 3 taken 9 times.
✓ Branch 6 taken 9 times.
|
18 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->setDehumidificationMode1Stage1Plus2CoilPerformance( |
| 851 | 18 | coilPerformanceDX); | |
| 852 | } | ||
| 853 | |||
| 854 | ✗ | void CoilCoolingDXTwoStageWithHumidityControlMode::resetDehumidificationMode1Stage1Plus2CoilPerformance() { | |
| 855 | ✗ | getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->resetDehumidificationMode1Stage1Plus2CoilPerformance(); | |
| 856 | ✗ | } | |
| 857 | |||
| 858 | 9 | bool CoilCoolingDXTwoStageWithHumidityControlMode::setBasinHeaterCapacity(double basinHeaterCapacity) { | |
| 859 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->setBasinHeaterCapacity(basinHeaterCapacity); |
| 860 | } | ||
| 861 | |||
| 862 | 9 | bool CoilCoolingDXTwoStageWithHumidityControlMode::setBasinHeaterSetpointTemperature(double basinHeaterSetpointTemperature) { | |
| 863 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->setBasinHeaterSetpointTemperature(basinHeaterSetpointTemperature); |
| 864 | } | ||
| 865 | |||
| 866 | 1 | bool CoilCoolingDXTwoStageWithHumidityControlMode::setBasinHeaterOperatingSchedule(Schedule& schedule) { | |
| 867 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->setBasinHeaterOperatingSchedule(schedule); |
| 868 | } | ||
| 869 | |||
| 870 | ✗ | void CoilCoolingDXTwoStageWithHumidityControlMode::resetBasinHeaterOperatingSchedule() { | |
| 871 | ✗ | getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->resetBasinHeaterOperatingSchedule(); | |
| 872 | ✗ | } | |
| 873 | |||
| 874 | 6 | double CoilCoolingDXTwoStageWithHumidityControlMode::minimumOutdoorDryBulbTemperatureforCompressorOperation() const { | |
| 875 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->minimumOutdoorDryBulbTemperatureforCompressorOperation(); |
| 876 | } | ||
| 877 | |||
| 878 | 10 | bool CoilCoolingDXTwoStageWithHumidityControlMode::setMinimumOutdoorDryBulbTemperatureforCompressorOperation( | |
| 879 | double minimumOutdoorDryBulbTemperatureforCompressorOperation) { | ||
| 880 |
1/1✓ Branch 3 taken 10 times.
|
20 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->setMinimumOutdoorDryBulbTemperatureforCompressorOperation( |
| 881 | 20 | minimumOutdoorDryBulbTemperatureforCompressorOperation); | |
| 882 | } | ||
| 883 | |||
| 884 | 4 | boost::optional<Curve> CoilCoolingDXTwoStageWithHumidityControlMode::crankcaseHeaterCapacityFunctionofTemperatureCurve() const { | |
| 885 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->crankcaseHeaterCapacityFunctionofTemperatureCurve(); |
| 886 | } | ||
| 887 | |||
| 888 | 1 | bool CoilCoolingDXTwoStageWithHumidityControlMode::setCrankcaseHeaterCapacityFunctionofTemperatureCurve(const Curve& curve) { | |
| 889 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->setCrankcaseHeaterCapacityFunctionofTemperatureCurve(curve); |
| 890 | } | ||
| 891 | |||
| 892 | ✗ | void CoilCoolingDXTwoStageWithHumidityControlMode::resetCrankcaseHeaterCapacityFunctionofTemperatureCurve() { | |
| 893 | ✗ | getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->resetCrankcaseHeaterCapacityFunctionofTemperatureCurve(); | |
| 894 | ✗ | } | |
| 895 | |||
| 896 | ✗ | AirflowNetworkEquivalentDuct CoilCoolingDXTwoStageWithHumidityControlMode::getAirflowNetworkEquivalentDuct(double length, double diameter) { | |
| 897 | ✗ | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->getAirflowNetworkEquivalentDuct(length, diameter); | |
| 898 | } | ||
| 899 | |||
| 900 | ✗ | boost::optional<AirflowNetworkEquivalentDuct> CoilCoolingDXTwoStageWithHumidityControlMode::airflowNetworkEquivalentDuct() const { | |
| 901 | ✗ | return getImpl<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl>()->airflowNetworkEquivalentDuct(); | |
| 902 | } | ||
| 903 | |||
| 904 | /// @cond | ||
| 905 | 8 | CoilCoolingDXTwoStageWithHumidityControlMode::CoilCoolingDXTwoStageWithHumidityControlMode( | |
| 906 | 8 | std::shared_ptr<detail::CoilCoolingDXTwoStageWithHumidityControlMode_Impl> impl) | |
| 907 |
1/1✓ Branch 3 taken 8 times.
|
8 | : StraightComponent(std::move(impl)) {} |
| 908 | /// @endcond | ||
| 909 | |||
| 910 | } // namespace model | ||
| 911 | } // namespace openstudio | ||
| 912 |