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