src/model/RefrigerationCompressorRack.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 "RefrigerationCompressorRack.hpp" | ||
| 7 | #include "RefrigerationCompressorRack_Impl.hpp" | ||
| 8 | |||
| 9 | #include "RefrigerationAirChiller.hpp" | ||
| 10 | #include "RefrigerationAirChiller_Impl.hpp" | ||
| 11 | #include "RefrigerationCase.hpp" | ||
| 12 | #include "RefrigerationCase_Impl.hpp" | ||
| 13 | #include "RefrigerationWalkIn.hpp" | ||
| 14 | #include "RefrigerationWalkIn_Impl.hpp" | ||
| 15 | |||
| 16 | #include "Curve.hpp" | ||
| 17 | #include "Curve_Impl.hpp" | ||
| 18 | #include "CurveQuadratic.hpp" | ||
| 19 | #include "CurveQuadratic_Impl.hpp" | ||
| 20 | #include "Schedule.hpp" | ||
| 21 | #include "Schedule_Impl.hpp" | ||
| 22 | #include "ThermalZone.hpp" | ||
| 23 | #include "ThermalZone_Impl.hpp" | ||
| 24 | #include "ModelObjectList.hpp" | ||
| 25 | #include "ModelObjectList_Impl.hpp" | ||
| 26 | #include "Model.hpp" | ||
| 27 | #include "Model_Impl.hpp" | ||
| 28 | #include "ScheduleTypeLimits.hpp" | ||
| 29 | #include "ScheduleTypeRegistry.hpp" | ||
| 30 | #include "Node.hpp" | ||
| 31 | |||
| 32 | #include "../utilities/core/Assert.hpp" | ||
| 33 | #include "../utilities/data/DataEnums.hpp" | ||
| 34 | |||
| 35 | #include <utilities/idd/IddFactory.hxx> | ||
| 36 | #include <utilities/idd/OS_Refrigeration_CompressorRack_FieldEnums.hxx> | ||
| 37 | #include <utilities/idd/IddEnums.hxx> | ||
| 38 | |||
| 39 | namespace openstudio { | ||
| 40 | namespace model { | ||
| 41 | |||
| 42 | namespace detail { | ||
| 43 | |||
| 44 | 6 | RefrigerationCompressorRack_Impl::RefrigerationCompressorRack_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 45 | 6 | : StraightComponent_Impl(idfObject, model, keepHandle) { | |
| 46 |
4/6✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 6 times.
✗ Branch 13 not taken.
|
6 | OS_ASSERT(idfObject.iddObject().type() == RefrigerationCompressorRack::iddObjectType()); |
| 47 | 6 | } | |
| 48 | |||
| 49 | ✗ | RefrigerationCompressorRack_Impl::RefrigerationCompressorRack_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, | |
| 50 | ✗ | bool keepHandle) | |
| 51 | ✗ | : StraightComponent_Impl(other, model, keepHandle) { | |
| 52 | ✗ | OS_ASSERT(other.iddObject().type() == RefrigerationCompressorRack::iddObjectType()); | |
| 53 | ✗ | } | |
| 54 | |||
| 55 | 6 | RefrigerationCompressorRack_Impl::RefrigerationCompressorRack_Impl(const RefrigerationCompressorRack_Impl& other, Model_Impl* model, | |
| 56 | 6 | bool keepHandle) | |
| 57 | 6 | : StraightComponent_Impl(other, model, keepHandle) {} | |
| 58 | |||
| 59 | 5 | unsigned RefrigerationCompressorRack_Impl::inletPort() const { | |
| 60 | 5 | return OS_Refrigeration_CompressorRackFields::WaterCooledCondenserInletNodeName; | |
| 61 | } | ||
| 62 | |||
| 63 | 12 | unsigned RefrigerationCompressorRack_Impl::outletPort() const { | |
| 64 | 12 | return OS_Refrigeration_CompressorRackFields::WaterCooledCondenserOutletNodeName; | |
| 65 | } | ||
| 66 | |||
| 67 | ✗ | const std::vector<std::string>& RefrigerationCompressorRack_Impl::outputVariableNames() const { | |
| 68 | static const std::vector<std::string> result{"Refrigeration Compressor Rack Electricity Rate", | ||
| 69 | "Refrigeration Compressor Rack Electricity Energy", | ||
| 70 | "Refrigeration Compressor Rack Condenser Fan Electricity Rate", | ||
| 71 | "Refrigeration Compressor Rack Condenser Fan Electricity Energy", | ||
| 72 | "Refrigeration Compressor Rack Total Heat Transfer Rate", | ||
| 73 | "Refrigeration Compressor Rack Total Heat Transfer Energy", | ||
| 74 | ✗ | "Refrigeration Compressor Rack COP"}; | |
| 75 | ✗ | return result; | |
| 76 | ✗ | } | |
| 77 | |||
| 78 | ✗ | IddObjectType RefrigerationCompressorRack_Impl::iddObjectType() const { | |
| 79 | ✗ | return RefrigerationCompressorRack::iddObjectType(); | |
| 80 | } | ||
| 81 | |||
| 82 | ✗ | std::vector<ScheduleTypeKey> RefrigerationCompressorRack_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 83 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 84 | ✗ | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 85 | ✗ | UnsignedVector::const_iterator b(fieldIndices.begin()); | |
| 86 | ✗ | UnsignedVector::const_iterator e(fieldIndices.end()); | |
| 87 | ✗ | if (std::find(b, e, OS_Refrigeration_CompressorRackFields::WaterCooledCondenserOutletTemperatureScheduleName) != e) { | |
| 88 | ✗ | result.push_back(ScheduleTypeKey("RefrigerationCompressorRack", "Water Cooled Condenser Outlet Temperature")); | |
| 89 | } | ||
| 90 | ✗ | if (std::find(b, e, OS_Refrigeration_CompressorRackFields::EvaporativeCondenserAvailabilityScheduleName) != e) { | |
| 91 | ✗ | result.push_back(ScheduleTypeKey("RefrigerationCompressorRack", "Evaporative Condenser Availability")); | |
| 92 | } | ||
| 93 | ✗ | return result; | |
| 94 | ✗ | } | |
| 95 | |||
| 96 | 5 | bool RefrigerationCompressorRack_Impl::addToNode(Node& node) { | |
| 97 |
3/3✓ Branch 1 taken 5 times.
✓ Branch 3 taken 3 times.
✓ Branch 4 taken 2 times.
|
10 | if (boost::optional<PlantLoop> plant = node.plantLoop()) { |
| 98 |
5/5✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 2 times.
✓ Branch 11 taken 1 time.
|
6 | if (plant->demandComponent(node.handle())) { |
| 99 |
1/1✓ Branch 1 taken 2 times.
|
2 | return StraightComponent_Impl::addToNode(node); |
| 100 | } | ||
| 101 | 5 | } | |
| 102 | |||
| 103 | 3 | return false; | |
| 104 | } | ||
| 105 | |||
| 106 | 3 | ModelObject RefrigerationCompressorRack_Impl::clone(Model model) const { | |
| 107 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
3 | auto modelObjectClone = StraightComponent_Impl::clone(model).cast<RefrigerationCompressorRack>(); |
| 108 | |||
| 109 |
2/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 3 times.
✗ Branch 4 not taken.
|
6 | if (boost::optional<ModelObjectList> caseAndWalkinList = this->refrigeratedCaseAndWalkInList()) { |
| 110 |
4/4✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
|
3 | auto caseAndWalkinListClone = caseAndWalkinList->clone(model).cast<ModelObjectList>(); |
| 111 |
2/2✓ Branch 3 taken 3 times.
✓ Branch 6 taken 3 times.
|
3 | modelObjectClone.getImpl<detail::RefrigerationCompressorRack_Impl>()->setRefrigeratedCaseAndWalkInList(caseAndWalkinListClone); |
| 112 | 6 | } | |
| 113 | |||
| 114 |
1/1✓ Branch 1 taken 3 times.
|
3 | modelObjectClone.resetHeatRejectionZone(); |
| 115 | |||
| 116 | 6 | return std::move(modelObjectClone); | |
| 117 | 3 | } | |
| 118 | |||
| 119 | ✗ | std::vector<IddObjectType> RefrigerationCompressorRack_Impl::allowableChildTypes() const { | |
| 120 | ✗ | std::vector<IddObjectType> result; | |
| 121 | ✗ | result.push_back(IddObjectType::OS_Curve_Quadratic); | |
| 122 | ✗ | result.push_back(IddObjectType::OS_Curve_Cubic); | |
| 123 | ✗ | return result; | |
| 124 | ✗ | } | |
| 125 | |||
| 126 | 1 | std::vector<ModelObject> RefrigerationCompressorRack_Impl::children() const { | |
| 127 | 1 | std::vector<ModelObject> result; | |
| 128 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<Curve> intermediate = optionalCompressorRackCOPFunctionofTemperatureCurve()) { |
| 129 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | result.push_back(*intermediate); |
| 130 | 1 | } | |
| 131 |
2/3✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
|
2 | if (boost::optional<Curve> intermediate = condenserFanPowerFunctionofTemperatureCurve()) { |
| 132 | ✗ | result.push_back(*intermediate); | |
| 133 | 1 | } | |
| 134 | 1 | return result; | |
| 135 | ✗ | } | |
| 136 | |||
| 137 | 1 | std::vector<IdfObject> RefrigerationCompressorRack_Impl::remove() { | |
| 138 | 1 | std::vector<IdfObject> result; | |
| 139 | |||
| 140 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<ModelObjectList> caseAndWalkinList = this->refrigeratedCaseAndWalkInList()) { |
| 141 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | std::vector<IdfObject> removedCasesAndWalkins = caseAndWalkinList->remove(); |
| 142 |
1/1✓ Branch 5 taken 1 time.
|
1 | result.insert(result.end(), removedCasesAndWalkins.begin(), removedCasesAndWalkins.end()); |
| 143 | 2 | } | |
| 144 | |||
| 145 |
1/1✓ Branch 1 taken 1 time.
|
1 | std::vector<IdfObject> removedRefrigerationCompressorRack = StraightComponent_Impl::remove(); |
| 146 |
1/1✓ Branch 5 taken 1 time.
|
1 | result.insert(result.end(), removedRefrigerationCompressorRack.begin(), removedRefrigerationCompressorRack.end()); |
| 147 | |||
| 148 | 2 | return result; | |
| 149 | 1 | } | |
| 150 | |||
| 151 | 2 | std::string RefrigerationCompressorRack_Impl::heatRejectionLocation() const { | |
| 152 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<std::string> value = getString(OS_Refrigeration_CompressorRackFields::HeatRejectionLocation, true); |
| 153 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(value); |
| 154 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
4 | return value.get(); |
| 155 | 2 | } | |
| 156 | |||
| 157 | 4 | double RefrigerationCompressorRack_Impl::designCompressorRackCOP() const { | |
| 158 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Refrigeration_CompressorRackFields::DesignCompressorRackCOP, true); |
| 159 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 160 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 161 | } | ||
| 162 | |||
| 163 | 2 | Curve RefrigerationCompressorRack_Impl::compressorRackCOPFunctionofTemperatureCurve() const { | |
| 164 |
1/1✓ Branch 1 taken 2 times.
|
2 | OptionalCurve result = optionalCompressorRackCOPFunctionofTemperatureCurve(); |
| 165 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(result); |
| 166 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
4 | return result.get(); |
| 167 | 2 | } | |
| 168 | |||
| 169 | 3 | boost::optional<Curve> RefrigerationCompressorRack_Impl::optionalCompressorRackCOPFunctionofTemperatureCurve() const { | |
| 170 |
1/1✓ Branch 1 taken 3 times.
|
6 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 171 |
1/1✓ Branch 1 taken 3 times.
|
6 | OS_Refrigeration_CompressorRackFields::CompressorRackCOPFunctionofTemperatureCurveName); |
| 172 | } | ||
| 173 | |||
| 174 | 2 | double RefrigerationCompressorRack_Impl::designCondenserFanPower() const { | |
| 175 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<double> value = getDouble(OS_Refrigeration_CompressorRackFields::DesignCondenserFanPower, true); |
| 176 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(value); |
| 177 |
1/1✓ Branch 1 taken 2 times.
|
4 | return value.get(); |
| 178 | } | ||
| 179 | |||
| 180 | 4 | boost::optional<Curve> RefrigerationCompressorRack_Impl::condenserFanPowerFunctionofTemperatureCurve() const { | |
| 181 |
1/1✓ Branch 1 taken 4 times.
|
8 | return getObject<ModelObject>().getModelObjectTarget<Curve>( |
| 182 |
1/1✓ Branch 1 taken 4 times.
|
8 | OS_Refrigeration_CompressorRackFields::CondenserFanPowerFunctionofTemperatureCurveName); |
| 183 | } | ||
| 184 | |||
| 185 | 2 | std::string RefrigerationCompressorRack_Impl::condenserType() const { | |
| 186 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<std::string> value = getString(OS_Refrigeration_CompressorRackFields::CondenserType, true); |
| 187 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(value); |
| 188 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
4 | return value.get(); |
| 189 | 2 | } | |
| 190 | |||
| 191 | 2 | std::string RefrigerationCompressorRack_Impl::waterCooledLoopFlowType() const { | |
| 192 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<std::string> value = getString(OS_Refrigeration_CompressorRackFields::WaterCooledLoopFlowType, true); |
| 193 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(value); |
| 194 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
4 | return value.get(); |
| 195 | 2 | } | |
| 196 | |||
| 197 | 3 | boost::optional<Schedule> RefrigerationCompressorRack_Impl::waterCooledCondenserOutletTemperatureSchedule() const { | |
| 198 |
1/1✓ Branch 1 taken 3 times.
|
6 | return getObject<ModelObject>().getModelObjectTarget<Schedule>( |
| 199 |
1/1✓ Branch 1 taken 3 times.
|
6 | OS_Refrigeration_CompressorRackFields::WaterCooledCondenserOutletTemperatureScheduleName); |
| 200 | } | ||
| 201 | |||
| 202 | 4 | boost::optional<double> RefrigerationCompressorRack_Impl::waterCooledCondenserDesignFlowRate() const { | |
| 203 | 4 | return getDouble(OS_Refrigeration_CompressorRackFields::WaterCooledCondenserDesignFlowRate, true); | |
| 204 | } | ||
| 205 | |||
| 206 | 4 | boost::optional<double> RefrigerationCompressorRack_Impl::waterCooledCondenserMaximumFlowRate() const { | |
| 207 | 4 | return getDouble(OS_Refrigeration_CompressorRackFields::WaterCooledCondenserMaximumFlowRate, true); | |
| 208 | } | ||
| 209 | |||
| 210 | 2 | double RefrigerationCompressorRack_Impl::waterCooledCondenserMaximumWaterOutletTemperature() const { | |
| 211 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<double> value = getDouble(OS_Refrigeration_CompressorRackFields::WaterCooledCondenserMaximumWaterOutletTemperature, true); |
| 212 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(value); |
| 213 |
1/1✓ Branch 1 taken 2 times.
|
4 | return value.get(); |
| 214 | } | ||
| 215 | |||
| 216 | 2 | double RefrigerationCompressorRack_Impl::waterCooledCondenserMinimumWaterInletTemperature() const { | |
| 217 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<double> value = getDouble(OS_Refrigeration_CompressorRackFields::WaterCooledCondenserMinimumWaterInletTemperature, true); |
| 218 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(value); |
| 219 |
1/1✓ Branch 1 taken 2 times.
|
4 | return value.get(); |
| 220 | } | ||
| 221 | |||
| 222 | 3 | boost::optional<Schedule> RefrigerationCompressorRack_Impl::evaporativeCondenserAvailabilitySchedule() const { | |
| 223 |
1/1✓ Branch 1 taken 3 times.
|
6 | return getObject<ModelObject>().getModelObjectTarget<Schedule>( |
| 224 |
1/1✓ Branch 1 taken 3 times.
|
6 | OS_Refrigeration_CompressorRackFields::EvaporativeCondenserAvailabilityScheduleName); |
| 225 | } | ||
| 226 | |||
| 227 | 2 | double RefrigerationCompressorRack_Impl::evaporativeCondenserEffectiveness() const { | |
| 228 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<double> value = getDouble(OS_Refrigeration_CompressorRackFields::EvaporativeCondenserEffectiveness, true); |
| 229 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(value); |
| 230 |
1/1✓ Branch 1 taken 2 times.
|
4 | return value.get(); |
| 231 | } | ||
| 232 | |||
| 233 | 3 | boost::optional<double> RefrigerationCompressorRack_Impl::evaporativeCondenserAirFlowRate() const { | |
| 234 | 3 | return getDouble(OS_Refrigeration_CompressorRackFields::EvaporativeCondenserAirFlowRate, true); | |
| 235 | } | ||
| 236 | |||
| 237 | 3 | bool RefrigerationCompressorRack_Impl::isEvaporativeCondenserAirFlowRateAutocalculated() const { | |
| 238 | 3 | bool result = false; | |
| 239 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<std::string> value = getString(OS_Refrigeration_CompressorRackFields::EvaporativeCondenserAirFlowRate, true); |
| 240 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | if (value) { |
| 241 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
6 | result = openstudio::istringEqual(value.get(), "Autocalculate"); |
| 242 | } | ||
| 243 | 3 | return result; | |
| 244 | 3 | } | |
| 245 | |||
| 246 | 2 | double RefrigerationCompressorRack_Impl::basinHeaterCapacity() const { | |
| 247 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<double> value = getDouble(OS_Refrigeration_CompressorRackFields::BasinHeaterCapacity, true); |
| 248 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(value); |
| 249 |
1/1✓ Branch 1 taken 2 times.
|
4 | return value.get(); |
| 250 | } | ||
| 251 | |||
| 252 | 2 | double RefrigerationCompressorRack_Impl::basinHeaterSetpointTemperature() const { | |
| 253 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<double> value = getDouble(OS_Refrigeration_CompressorRackFields::BasinHeaterSetpointTemperature, true); |
| 254 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(value); |
| 255 |
1/1✓ Branch 1 taken 2 times.
|
4 | return value.get(); |
| 256 | } | ||
| 257 | |||
| 258 | 3 | boost::optional<double> RefrigerationCompressorRack_Impl::designEvaporativeCondenserWaterPumpPower() const { | |
| 259 | 3 | return getDouble(OS_Refrigeration_CompressorRackFields::DesignEvaporativeCondenserWaterPumpPower, true); | |
| 260 | } | ||
| 261 | |||
| 262 | 3 | bool RefrigerationCompressorRack_Impl::isDesignEvaporativeCondenserWaterPumpPowerAutocalculated() const { | |
| 263 | 3 | bool result = false; | |
| 264 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<std::string> value = getString(OS_Refrigeration_CompressorRackFields::DesignEvaporativeCondenserWaterPumpPower, true); |
| 265 |
1/2✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
3 | if (value) { |
| 266 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
6 | result = openstudio::istringEqual(value.get(), "Autocalculate"); |
| 267 | } | ||
| 268 | 3 | return result; | |
| 269 | 3 | } | |
| 270 | |||
| 271 | // boost::optional<HVACComponent> RefrigerationCompressorRack_Impl::evaporativeWaterSupplyTank() const { | ||
| 272 | |||
| 273 | // } | ||
| 274 | |||
| 275 | // boost::optional<std::string> RefrigerationCompressorRack_Impl::condenserAirInletNodeName() const { | ||
| 276 | |||
| 277 | // } | ||
| 278 | |||
| 279 | 2 | std::string RefrigerationCompressorRack_Impl::endUseSubcategory() const { | |
| 280 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<std::string> value = getString(OS_Refrigeration_CompressorRackFields::EndUseSubcategory, true); |
| 281 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 2 times.
✗ Branch 4 not taken.
|
2 | OS_ASSERT(value); |
| 282 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
4 | return value.get(); |
| 283 | 2 | } | |
| 284 | |||
| 285 | 3 | bool RefrigerationCompressorRack_Impl::isEndUseSubcategoryDefaulted() const { | |
| 286 | 3 | return isEmpty(OS_Refrigeration_CompressorRackFields::EndUseSubcategory); | |
| 287 | } | ||
| 288 | |||
| 289 | template <class T> | ||
| 290 | 13 | std::vector<T> RefrigerationCompressorRack_Impl::listTemplate(const boost::optional<ModelObjectList>& modelObjectList) const { | |
| 291 | 13 | std::vector<T> result; | |
| 292 | |||
| 293 |
3/6std::vector<openstudio::model::RefrigerationAirChiller, std::allocator<openstudio::model::RefrigerationAirChiller> > openstudio::model::detail::RefrigerationCompressorRack_Impl::listTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
std::vector<openstudio::model::RefrigerationCase, std::allocator<openstudio::model::RefrigerationCase> > openstudio::model::detail::RefrigerationCompressorRack_Impl::listTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
std::vector<openstudio::model::RefrigerationWalkIn, std::allocator<openstudio::model::RefrigerationWalkIn> > openstudio::model::detail::RefrigerationCompressorRack_Impl::listTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
13 | if (modelObjectList) { |
| 294 |
6/6std::vector<openstudio::model::RefrigerationAirChiller, std::allocator<openstudio::model::RefrigerationAirChiller> > openstudio::model::detail::RefrigerationCompressorRack_Impl::listTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
std::vector<openstudio::model::RefrigerationCase, std::allocator<openstudio::model::RefrigerationCase> > openstudio::model::detail::RefrigerationCompressorRack_Impl::listTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
std::vector<openstudio::model::RefrigerationWalkIn, std::allocator<openstudio::model::RefrigerationWalkIn> > openstudio::model::detail::RefrigerationCompressorRack_Impl::listTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
13 | std::vector<ModelObject> modelObjects = modelObjectList->modelObjects(); |
| 295 | |||
| 296 |
6/6std::vector<openstudio::model::RefrigerationAirChiller, std::allocator<openstudio::model::RefrigerationAirChiller> > openstudio::model::detail::RefrigerationCompressorRack_Impl::listTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 6 taken 3 times.
✓ Branch 7 taken 5 times.
std::vector<openstudio::model::RefrigerationCase, std::allocator<openstudio::model::RefrigerationCase> > openstudio::model::detail::RefrigerationCompressorRack_Impl::listTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 6 taken 2 times.
✓ Branch 7 taken 4 times.
std::vector<openstudio::model::RefrigerationWalkIn, std::allocator<openstudio::model::RefrigerationWalkIn> > openstudio::model::detail::RefrigerationCompressorRack_Impl::listTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 6 taken 3 times.
✓ Branch 7 taken 4 times.
|
21 | for (const auto& elem : modelObjects) { |
| 297 |
3/3std::vector<openstudio::model::RefrigerationAirChiller, std::allocator<openstudio::model::RefrigerationAirChiller> > openstudio::model::detail::RefrigerationCompressorRack_Impl::listTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 3 times.
std::vector<openstudio::model::RefrigerationCase, std::allocator<openstudio::model::RefrigerationCase> > openstudio::model::detail::RefrigerationCompressorRack_Impl::listTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 2 times.
std::vector<openstudio::model::RefrigerationWalkIn, std::allocator<openstudio::model::RefrigerationWalkIn> > openstudio::model::detail::RefrigerationCompressorRack_Impl::listTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 3 times.
|
8 | boost::optional<T> modelObject = elem.optionalCast<T>(); |
| 298 |
5/6std::vector<openstudio::model::RefrigerationAirChiller, std::allocator<openstudio::model::RefrigerationAirChiller> > openstudio::model::detail::RefrigerationCompressorRack_Impl::listTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
std::vector<openstudio::model::RefrigerationCase, std::allocator<openstudio::model::RefrigerationCase> > openstudio::model::detail::RefrigerationCompressorRack_Impl::listTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
std::vector<openstudio::model::RefrigerationWalkIn, std::allocator<openstudio::model::RefrigerationWalkIn> > openstudio::model::detail::RefrigerationCompressorRack_Impl::listTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 0 taken 1 time.
✓ Branch 1 taken 2 times.
|
8 | if (modelObject) { |
| 299 |
4/6std::vector<openstudio::model::RefrigerationAirChiller, std::allocator<openstudio::model::RefrigerationAirChiller> > openstudio::model::detail::RefrigerationCompressorRack_Impl::listTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✗ Branch 1 not taken.
✗ Branch 4 not taken.
std::vector<openstudio::model::RefrigerationCase, std::allocator<openstudio::model::RefrigerationCase> > openstudio::model::detail::RefrigerationCompressorRack_Impl::listTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
std::vector<openstudio::model::RefrigerationWalkIn, std::allocator<openstudio::model::RefrigerationWalkIn> > openstudio::model::detail::RefrigerationCompressorRack_Impl::listTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | result.push_back(modelObject.get()); |
| 300 | } | ||
| 301 | } | ||
| 302 | 13 | } | |
| 303 | |||
| 304 | 13 | return result; | |
| 305 | ✗ | } | |
| 306 | |||
| 307 | 4 | std::vector<RefrigerationCase> RefrigerationCompressorRack_Impl::cases() const { | |
| 308 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | return RefrigerationCompressorRack_Impl::listTemplate<RefrigerationCase>(refrigeratedCaseAndWalkInList()); |
| 309 | } | ||
| 310 | |||
| 311 | 4 | std::vector<RefrigerationWalkIn> RefrigerationCompressorRack_Impl::walkins() const { | |
| 312 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | return RefrigerationCompressorRack_Impl::listTemplate<RefrigerationWalkIn>(refrigeratedCaseAndWalkInList()); |
| 313 | } | ||
| 314 | |||
| 315 | 5 | std::vector<RefrigerationAirChiller> RefrigerationCompressorRack_Impl::airChillers() const { | |
| 316 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | return RefrigerationCompressorRack_Impl::listTemplate<RefrigerationAirChiller>(refrigeratedCaseAndWalkInList()); |
| 317 | } | ||
| 318 | |||
| 319 | 23 | boost::optional<ModelObjectList> RefrigerationCompressorRack_Impl::refrigeratedCaseAndWalkInList() const { | |
| 320 |
2/2✓ Branch 1 taken 23 times.
✓ Branch 4 taken 23 times.
|
23 | return getObject<ModelObject>().getModelObjectTarget<ModelObjectList>(OS_Refrigeration_CompressorRackFields::RefrigeratedCaseAndWalkInListName); |
| 321 | } | ||
| 322 | |||
| 323 | 3 | boost::optional<ThermalZone> RefrigerationCompressorRack_Impl::heatRejectionZone() const { | |
| 324 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | return getObject<ModelObject>().getModelObjectTarget<ThermalZone>(OS_Refrigeration_CompressorRackFields::HeatRejectionZoneName); |
| 325 | } | ||
| 326 | |||
| 327 | 7 | bool RefrigerationCompressorRack_Impl::setHeatRejectionLocation(const std::string& heatRejectionLocation) { | |
| 328 | 7 | bool result = setString(OS_Refrigeration_CompressorRackFields::HeatRejectionLocation, heatRejectionLocation); | |
| 329 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
|
7 | OS_ASSERT(result); |
| 330 | 7 | return result; | |
| 331 | } | ||
| 332 | |||
| 333 | 8 | bool RefrigerationCompressorRack_Impl::setDesignCompressorRackCOP(double designCompressorRackCOP) { | |
| 334 | 8 | bool result = setDouble(OS_Refrigeration_CompressorRackFields::DesignCompressorRackCOP, designCompressorRackCOP); | |
| 335 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 8 times.
|
8 | OS_ASSERT(result); |
| 336 | 8 | return result; | |
| 337 | } | ||
| 338 | |||
| 339 | 7 | bool RefrigerationCompressorRack_Impl::setCompressorRackCOPFunctionofTemperatureCurve(const Curve& curve) { | |
| 340 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | bool result = this->setPointer(OS_Refrigeration_CompressorRackFields::CompressorRackCOPFunctionofTemperatureCurveName, curve.handle()); |
| 341 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
|
7 | OS_ASSERT(result); |
| 342 | 7 | return result; | |
| 343 | } | ||
| 344 | |||
| 345 | 7 | bool RefrigerationCompressorRack_Impl::setDesignCondenserFanPower(double designCondenserFanPower) { | |
| 346 | 7 | bool result = setDouble(OS_Refrigeration_CompressorRackFields::DesignCondenserFanPower, designCondenserFanPower); | |
| 347 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
|
7 | OS_ASSERT(result); |
| 348 | 7 | return result; | |
| 349 | } | ||
| 350 | |||
| 351 | 1 | bool RefrigerationCompressorRack_Impl::setCondenserFanPowerFunctionofTemperatureCurve(const Curve& curve) { | |
| 352 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | bool result = this->setPointer(OS_Refrigeration_CompressorRackFields::CondenserFanPowerFunctionofTemperatureCurveName, curve.handle()); |
| 353 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 354 | 1 | return result; | |
| 355 | } | ||
| 356 | |||
| 357 | 1 | void RefrigerationCompressorRack_Impl::resetCondenserFanPowerFunctionofTemperatureCurve() { | |
| 358 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Refrigeration_CompressorRackFields::CondenserFanPowerFunctionofTemperatureCurveName, ""); |
| 359 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 360 | 1 | } | |
| 361 | |||
| 362 | 7 | bool RefrigerationCompressorRack_Impl::setCondenserType(const std::string& condenserType) { | |
| 363 | 7 | bool result = setString(OS_Refrigeration_CompressorRackFields::CondenserType, condenserType); | |
| 364 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
|
7 | OS_ASSERT(result); |
| 365 | 7 | return result; | |
| 366 | } | ||
| 367 | |||
| 368 | 7 | bool RefrigerationCompressorRack_Impl::setWaterCooledLoopFlowType(const std::string& waterCooledLoopFlowType) { | |
| 369 | 7 | bool result = setString(OS_Refrigeration_CompressorRackFields::WaterCooledLoopFlowType, waterCooledLoopFlowType); | |
| 370 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
|
7 | OS_ASSERT(result); |
| 371 | 7 | return result; | |
| 372 | } | ||
| 373 | |||
| 374 | 1 | bool RefrigerationCompressorRack_Impl::setWaterCooledCondenserOutletTemperatureSchedule(Schedule& schedule) { | |
| 375 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | bool result = this->setPointer(OS_Refrigeration_CompressorRackFields::WaterCooledCondenserOutletTemperatureScheduleName, schedule.handle()); |
| 376 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 377 | 1 | return result; | |
| 378 | } | ||
| 379 | |||
| 380 | 1 | void RefrigerationCompressorRack_Impl::resetWaterCooledCondenserOutletTemperatureSchedule() { | |
| 381 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Refrigeration_CompressorRackFields::WaterCooledCondenserOutletTemperatureScheduleName, ""); |
| 382 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 383 | 1 | } | |
| 384 | |||
| 385 | 1 | bool RefrigerationCompressorRack_Impl::setWaterCooledCondenserDesignFlowRate(double waterCooledCondenserDesignFlowRate) { | |
| 386 | 1 | bool result = setDouble(OS_Refrigeration_CompressorRackFields::WaterCooledCondenserDesignFlowRate, waterCooledCondenserDesignFlowRate); | |
| 387 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 388 | 1 | return result; | |
| 389 | } | ||
| 390 | |||
| 391 | 1 | void RefrigerationCompressorRack_Impl::resetWaterCooledCondenserDesignFlowRate() { | |
| 392 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Refrigeration_CompressorRackFields::WaterCooledCondenserDesignFlowRate, ""); |
| 393 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 394 | 1 | } | |
| 395 | |||
| 396 | 1 | bool RefrigerationCompressorRack_Impl::setWaterCooledCondenserMaximumFlowRate(double waterCooledCondenserMaximumFlowRate) { | |
| 397 | 1 | bool result = setDouble(OS_Refrigeration_CompressorRackFields::WaterCooledCondenserMaximumFlowRate, waterCooledCondenserMaximumFlowRate); | |
| 398 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 399 | 1 | return result; | |
| 400 | } | ||
| 401 | |||
| 402 | 1 | void RefrigerationCompressorRack_Impl::resetWaterCooledCondenserMaximumFlowRate() { | |
| 403 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Refrigeration_CompressorRackFields::WaterCooledCondenserMaximumFlowRate, ""); |
| 404 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 405 | 1 | } | |
| 406 | |||
| 407 | 7 | bool RefrigerationCompressorRack_Impl::setWaterCooledCondenserMaximumWaterOutletTemperature( | |
| 408 | double waterCooledCondenserMaximumWaterOutletTemperature) { | ||
| 409 | 7 | bool result = setDouble(OS_Refrigeration_CompressorRackFields::WaterCooledCondenserMaximumWaterOutletTemperature, | |
| 410 | waterCooledCondenserMaximumWaterOutletTemperature); | ||
| 411 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
|
7 | OS_ASSERT(result); |
| 412 | 7 | return result; | |
| 413 | } | ||
| 414 | |||
| 415 | bool | ||
| 416 | 7 | RefrigerationCompressorRack_Impl::setWaterCooledCondenserMinimumWaterInletTemperature(double waterCooledCondenserMinimumWaterInletTemperature) { | |
| 417 | 7 | bool result = setDouble(OS_Refrigeration_CompressorRackFields::WaterCooledCondenserMinimumWaterInletTemperature, | |
| 418 | waterCooledCondenserMinimumWaterInletTemperature); | ||
| 419 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
|
7 | OS_ASSERT(result); |
| 420 | 7 | return result; | |
| 421 | } | ||
| 422 | |||
| 423 | 1 | bool RefrigerationCompressorRack_Impl::setEvaporativeCondenserAvailabilitySchedule(Schedule& schedule) { | |
| 424 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | bool result = this->setPointer(OS_Refrigeration_CompressorRackFields::EvaporativeCondenserAvailabilityScheduleName, schedule.handle()); |
| 425 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 426 | 1 | return result; | |
| 427 | } | ||
| 428 | |||
| 429 | 1 | void RefrigerationCompressorRack_Impl::resetEvaporativeCondenserAvailabilitySchedule() { | |
| 430 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Refrigeration_CompressorRackFields::EvaporativeCondenserAvailabilityScheduleName, ""); |
| 431 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 432 | 1 | } | |
| 433 | |||
| 434 | 7 | bool RefrigerationCompressorRack_Impl::setEvaporativeCondenserEffectiveness(double evaporativeCondenserEffectiveness) { | |
| 435 | 7 | bool result = setDouble(OS_Refrigeration_CompressorRackFields::EvaporativeCondenserEffectiveness, evaporativeCondenserEffectiveness); | |
| 436 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
|
7 | OS_ASSERT(result); |
| 437 | 7 | return result; | |
| 438 | } | ||
| 439 | |||
| 440 | 1 | bool RefrigerationCompressorRack_Impl::setEvaporativeCondenserAirFlowRate(double evaporativeCondenserAirFlowRate) { | |
| 441 | 1 | bool result = setDouble(OS_Refrigeration_CompressorRackFields::EvaporativeCondenserAirFlowRate, evaporativeCondenserAirFlowRate); | |
| 442 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 443 | 1 | return result; | |
| 444 | } | ||
| 445 | |||
| 446 | 7 | bool RefrigerationCompressorRack_Impl::autocalculateEvaporativeCondenserAirFlowRate() { | |
| 447 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
14 | bool result = setString(OS_Refrigeration_CompressorRackFields::EvaporativeCondenserAirFlowRate, "Autocalculate"); |
| 448 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
|
7 | OS_ASSERT(result); |
| 449 | 7 | return result; | |
| 450 | } | ||
| 451 | |||
| 452 | 7 | bool RefrigerationCompressorRack_Impl::setBasinHeaterCapacity(double basinHeaterCapacity) { | |
| 453 | 7 | bool result = setDouble(OS_Refrigeration_CompressorRackFields::BasinHeaterCapacity, basinHeaterCapacity); | |
| 454 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
|
7 | OS_ASSERT(result); |
| 455 | 7 | return result; | |
| 456 | } | ||
| 457 | |||
| 458 | 7 | bool RefrigerationCompressorRack_Impl::setBasinHeaterSetpointTemperature(double basinHeaterSetpointTemperature) { | |
| 459 | 7 | bool result = setDouble(OS_Refrigeration_CompressorRackFields::BasinHeaterSetpointTemperature, basinHeaterSetpointTemperature); | |
| 460 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 7 times.
|
7 | OS_ASSERT(result); |
| 461 | 7 | return result; | |
| 462 | } | ||
| 463 | |||
| 464 | 6 | bool RefrigerationCompressorRack_Impl::setDesignEvaporativeCondenserWaterPumpPower(double designEvaporativeCondenserWaterPumpPower) { | |
| 465 | bool result = | ||
| 466 | 6 | setDouble(OS_Refrigeration_CompressorRackFields::DesignEvaporativeCondenserWaterPumpPower, designEvaporativeCondenserWaterPumpPower); | |
| 467 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
|
6 | OS_ASSERT(result); |
| 468 | 6 | return result; | |
| 469 | } | ||
| 470 | |||
| 471 | 2 | bool RefrigerationCompressorRack_Impl::autocalculateDesignEvaporativeCondenserWaterPumpPower() { | |
| 472 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
4 | bool result = setString(OS_Refrigeration_CompressorRackFields::DesignEvaporativeCondenserWaterPumpPower, "Autocalculate"); |
| 473 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
|
2 | OS_ASSERT(result); |
| 474 | 2 | return result; | |
| 475 | } | ||
| 476 | |||
| 477 | // bool RefrigerationCompressorRack_Impl::setEvaporativeWaterSupplyTank(const HVACComponent& evaporativeWaterSupplyTank) { | ||
| 478 | |||
| 479 | // } | ||
| 480 | |||
| 481 | // void RefrigerationCompressorRack_Impl::resetEvaporativeWaterSupplyTank() { | ||
| 482 | |||
| 483 | // } | ||
| 484 | |||
| 485 | // bool RefrigerationCompressorRack_Impl::setCondenserAirInletNodeName(const boost::optional<std::string>& condenserAirInletNodeName) { | ||
| 486 | |||
| 487 | // } | ||
| 488 | |||
| 489 | // void RefrigerationCompressorRack_Impl::resetCondenserAirInletNodeName() { | ||
| 490 | |||
| 491 | // } | ||
| 492 | |||
| 493 | 1 | bool RefrigerationCompressorRack_Impl::setEndUseSubcategory(const std::string& endUseSubcategory) { | |
| 494 | 1 | bool result = setString(OS_Refrigeration_CompressorRackFields::EndUseSubcategory, endUseSubcategory); | |
| 495 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 496 | 1 | return result; | |
| 497 | } | ||
| 498 | |||
| 499 | 1 | void RefrigerationCompressorRack_Impl::resetEndUseSubcategory() { | |
| 500 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Refrigeration_CompressorRackFields::EndUseSubcategory, ""); |
| 501 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 502 | 1 | } | |
| 503 | |||
| 504 | template <class T> | ||
| 505 | 3 | void RefrigerationCompressorRack_Impl::removeAllTemplate(boost::optional<ModelObjectList>& modelObjectList) { | |
| 506 |
3/6void openstudio::model::detail::RefrigerationCompressorRack_Impl::removeAllTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
void openstudio::model::detail::RefrigerationCompressorRack_Impl::removeAllTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
void openstudio::model::detail::RefrigerationCompressorRack_Impl::removeAllTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
3 | if (modelObjectList) { |
| 507 |
6/6void openstudio::model::detail::RefrigerationCompressorRack_Impl::removeAllTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
void openstudio::model::detail::RefrigerationCompressorRack_Impl::removeAllTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
void openstudio::model::detail::RefrigerationCompressorRack_Impl::removeAllTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
3 | std::vector<ModelObject> modelObjects = modelObjectList->modelObjects(); |
| 508 | |||
| 509 |
5/6void openstudio::model::detail::RefrigerationCompressorRack_Impl::removeAllTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList>&):
✗ Branch 6 not taken.
✓ Branch 7 taken 1 time.
void openstudio::model::detail::RefrigerationCompressorRack_Impl::removeAllTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 6 taken 2 times.
✓ Branch 7 taken 1 time.
void openstudio::model::detail::RefrigerationCompressorRack_Impl::removeAllTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 6 taken 1 time.
✓ Branch 7 taken 1 time.
|
6 | for (const auto& elem : modelObjects) { |
| 510 |
2/3void openstudio::model::detail::RefrigerationCompressorRack_Impl::removeAllTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList>&):
✗ Branch 1 not taken.
void openstudio::model::detail::RefrigerationCompressorRack_Impl::removeAllTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 2 times.
void openstudio::model::detail::RefrigerationCompressorRack_Impl::removeAllTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 1 time.
|
3 | boost::optional<T> modelObject = elem.optionalCast<T>(); |
| 511 |
3/6void openstudio::model::detail::RefrigerationCompressorRack_Impl::removeAllTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList>&):
✗ Branch 0 not taken.
✗ Branch 1 not taken.
void openstudio::model::detail::RefrigerationCompressorRack_Impl::removeAllTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
void openstudio::model::detail::RefrigerationCompressorRack_Impl::removeAllTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
3 | if (modelObject) { |
| 512 |
4/6void openstudio::model::detail::RefrigerationCompressorRack_Impl::removeAllTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList>&):
✗ Branch 1 not taken.
✗ Branch 4 not taken.
void openstudio::model::detail::RefrigerationCompressorRack_Impl::removeAllTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
void openstudio::model::detail::RefrigerationCompressorRack_Impl::removeAllTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | modelObjectList->removeModelObject(elem); |
| 513 | } | ||
| 514 | } | ||
| 515 | 3 | } | |
| 516 | 3 | } | |
| 517 | |||
| 518 | template <class T> | ||
| 519 | ✗ | void RefrigerationCompressorRack_Impl::removeTemplate(const T& modelObject, boost::optional<ModelObjectList>& modelObjectList) { | |
| 520 | ✗ | if (modelObjectList) { | |
| 521 | ✗ | modelObjectList->removeModelObject(modelObject); | |
| 522 | } | ||
| 523 | ✗ | } | |
| 524 | |||
| 525 | template <class T> | ||
| 526 | 2 | bool RefrigerationCompressorRack_Impl::addTemplate(const T& modelObject, boost::optional<ModelObjectList>& modelObjectList) { | |
| 527 |
2/6bool openstudio::model::detail::RefrigerationCompressorRack_Impl::addTemplate<openstudio::model::RefrigerationAirChiller>(openstudio::model::RefrigerationAirChiller const&, boost::optional<openstudio::model::ModelObjectList>&):
✗ Branch 0 not taken.
✗ Branch 1 not taken.
bool openstudio::model::detail::RefrigerationCompressorRack_Impl::addTemplate<openstudio::model::RefrigerationCase>(openstudio::model::RefrigerationCase const&, boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
bool openstudio::model::detail::RefrigerationCompressorRack_Impl::addTemplate<openstudio::model::RefrigerationWalkIn>(openstudio::model::RefrigerationWalkIn const&, boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
2 | if (modelObjectList) { |
| 528 | 2 | return modelObjectList->addModelObject(modelObject); | |
| 529 | } | ||
| 530 | ✗ | return false; | |
| 531 | } | ||
| 532 | |||
| 533 | 1 | bool RefrigerationCompressorRack_Impl::addCase(const RefrigerationCase& refrigerationCase) { | |
| 534 | // From 9.2 IO ref: | ||
| 535 | // > This list may contain a combination of case and walk-in names OR a list of air chiller names. | ||
| 536 | // > Air chillers may not be included in any list that also includes cases or walk-ins. | ||
| 537 |
2/3✓ Branch 1 taken 1 time.
✗ Branch 5 not taken.
✓ Branch 6 taken 1 time.
|
1 | if (!this->airChillers().empty()) { |
| 538 | ✗ | LOG(Warn, "You cannot mix RefigerationCase/RefrigerationWalkins with RefrigerationAirChillers, occurred for " << briefDescription()); | |
| 539 | ✗ | return false; | |
| 540 | } | ||
| 541 | |||
| 542 | // Enforce unicity | ||
| 543 |
2/3✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
|
2 | if (boost::optional<RefrigerationCompressorRack> currentCompressorRack = refrigerationCase.compressorRack()) { |
| 544 | ✗ | LOG(Warn, refrigerationCase.briefDescription() | |
| 545 | << " was removed from its existing RefrigerationCompressorRack named '" << currentCompressorRack->nameString() << "'."); | ||
| 546 | ✗ | currentCompressorRack->removeCase(refrigerationCase); | |
| 547 | 1 | } | |
| 548 | |||
| 549 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList(); |
| 550 |
1/1✓ Branch 1 taken 1 time.
|
1 | return addTemplate<RefrigerationCase>(refrigerationCase, modelObjectList); |
| 551 | 1 | } | |
| 552 | |||
| 553 | ✗ | void RefrigerationCompressorRack_Impl::removeCase(const RefrigerationCase& refrigerationCase) { | |
| 554 | ✗ | boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList(); | |
| 555 | ✗ | removeTemplate<RefrigerationCase>(refrigerationCase, modelObjectList); | |
| 556 | ✗ | } | |
| 557 | |||
| 558 | 1 | void RefrigerationCompressorRack_Impl::removeAllCases() { | |
| 559 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList(); |
| 560 |
1/1✓ Branch 1 taken 1 time.
|
1 | removeAllTemplate<RefrigerationCase>(modelObjectList); |
| 561 | 1 | } | |
| 562 | |||
| 563 | 1 | bool RefrigerationCompressorRack_Impl::addWalkin(const RefrigerationWalkIn& refrigerationWalkin) { | |
| 564 | // From 9.2 IO ref: | ||
| 565 | // > This list may contain a combination of case and walk-in names OR a list of air chiller names. | ||
| 566 | // > Air chillers may not be included in any list that also includes cases or walk-ins. | ||
| 567 |
2/3✓ Branch 1 taken 1 time.
✗ Branch 5 not taken.
✓ Branch 6 taken 1 time.
|
1 | if (!this->airChillers().empty()) { |
| 568 | ✗ | LOG(Warn, "You cannot mix RefigerationCase/RefrigerationWalkins with RefrigerationAirChillers, occurred for " << briefDescription()); | |
| 569 | ✗ | return false; | |
| 570 | } | ||
| 571 | |||
| 572 | // Enforce unicity | ||
| 573 |
2/3✓ Branch 1 taken 1 time.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 time.
|
2 | if (boost::optional<RefrigerationCompressorRack> currentCompressorRack = refrigerationWalkin.compressorRack()) { |
| 574 | ✗ | LOG(Warn, refrigerationWalkin.briefDescription() | |
| 575 | << " was removed from its existing RefrigerationCompressorRack named '" << currentCompressorRack->nameString() << "'."); | ||
| 576 | ✗ | currentCompressorRack->removeWalkin(refrigerationWalkin); | |
| 577 | 1 | } | |
| 578 | |||
| 579 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList(); |
| 580 |
1/1✓ Branch 1 taken 1 time.
|
1 | return addTemplate<RefrigerationWalkIn>(refrigerationWalkin, modelObjectList); |
| 581 | 1 | } | |
| 582 | |||
| 583 | ✗ | void RefrigerationCompressorRack_Impl::removeWalkin(const RefrigerationWalkIn& refrigerationWalkin) { | |
| 584 | ✗ | boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList(); | |
| 585 | ✗ | removeTemplate<RefrigerationWalkIn>(refrigerationWalkin, modelObjectList); | |
| 586 | ✗ | } | |
| 587 | |||
| 588 | 1 | void RefrigerationCompressorRack_Impl::removeAllWalkins() { | |
| 589 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList(); |
| 590 |
1/1✓ Branch 1 taken 1 time.
|
1 | removeAllTemplate<RefrigerationWalkIn>(modelObjectList); |
| 591 | 1 | } | |
| 592 | |||
| 593 | 1 | bool RefrigerationCompressorRack_Impl::addAirChiller(const RefrigerationAirChiller& refrigerationAirChiller) { | |
| 594 | // From 9.2 IO ref: | ||
| 595 | // > This list may contain a combination of case and walk-in names OR a list of air chiller names. | ||
| 596 | // > Air chillers may not be included in any list that also includes cases or walk-ins. | ||
| 597 |
2/3✓ Branch 1 taken 1 time.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
2 | if (boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList()) { |
| 598 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | std::vector<ModelObject> modelObjects = modelObjectList->modelObjects(); |
| 599 | |||
| 600 |
1/2✓ Branch 5 taken 1 time.
✗ Branch 6 not taken.
|
1 | for (const auto& elem : modelObjects) { |
| 601 |
7/16✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✗ Branch 5 not taken.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✗ Branch 11 not taken.
✓ Branch 12 taken 1 time.
✗ Branch 13 not taken.
✓ Branch 15 taken 1 time.
✗ Branch 16 not taken.
✓ Branch 18 taken 1 time.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 23 not taken.
✗ Branch 24 not taken.
|
3 | if (elem.optionalCast<RefrigerationWalkIn>() || elem.optionalCast<RefrigerationCase>()) { |
| 602 |
7/7✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 14 taken 1 time.
✓ Branch 17 taken 1 time.
✓ Branch 20 taken 1 time.
|
1 | LOG(Warn, "You cannot mix RefigerationCase/RefrigerationWalkins with RefrigerationAirChillers, occurred for " << briefDescription()); |
| 603 | 1 | return false; | |
| 604 | } | ||
| 605 | } | ||
| 606 | 2 | } | |
| 607 | |||
| 608 | // Enforce unicity | ||
| 609 | ✗ | if (boost::optional<RefrigerationCompressorRack> currentCompressorRack = refrigerationAirChiller.compressorRack()) { | |
| 610 | ✗ | LOG(Warn, refrigerationAirChiller.briefDescription() | |
| 611 | << " was removed from its existing RefrigerationCompressorRack named '" << currentCompressorRack->nameString() << "'."); | ||
| 612 | ✗ | currentCompressorRack->removeAirChiller(refrigerationAirChiller); | |
| 613 | ✗ | } | |
| 614 | |||
| 615 | ✗ | boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList(); | |
| 616 | ✗ | return addTemplate<RefrigerationAirChiller>(refrigerationAirChiller, modelObjectList); | |
| 617 | ✗ | } | |
| 618 | |||
| 619 | ✗ | void RefrigerationCompressorRack_Impl::removeAirChiller(const RefrigerationAirChiller& refrigerationAirChiller) { | |
| 620 | ✗ | boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList(); | |
| 621 | ✗ | removeTemplate<RefrigerationAirChiller>(refrigerationAirChiller, modelObjectList); | |
| 622 | ✗ | } | |
| 623 | |||
| 624 | 1 | void RefrigerationCompressorRack_Impl::removeAllAirChillers() { | |
| 625 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList(); |
| 626 |
1/1✓ Branch 1 taken 1 time.
|
1 | removeAllTemplate<RefrigerationAirChiller>(modelObjectList); |
| 627 | 1 | } | |
| 628 | |||
| 629 | 9 | bool RefrigerationCompressorRack_Impl::setRefrigeratedCaseAndWalkInList(const boost::optional<ModelObjectList>& modelObjectList) { | |
| 630 | 9 | bool result(false); | |
| 631 |
1/2✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
|
9 | if (modelObjectList) { |
| 632 |
3/3✓ Branch 1 taken 9 times.
✓ Branch 4 taken 9 times.
✓ Branch 7 taken 9 times.
|
9 | result = setPointer(OS_Refrigeration_CompressorRackFields::RefrigeratedCaseAndWalkInListName, modelObjectList.get().handle()); |
| 633 | } else { | ||
| 634 | ✗ | resetRefrigeratedCaseAndWalkInList(); | |
| 635 | ✗ | result = true; | |
| 636 | } | ||
| 637 | 9 | return result; | |
| 638 | } | ||
| 639 | |||
| 640 | ✗ | void RefrigerationCompressorRack_Impl::resetRefrigeratedCaseAndWalkInList() { | |
| 641 | ✗ | bool result = setString(OS_Refrigeration_CompressorRackFields::RefrigeratedCaseAndWalkInListName, ""); | |
| 642 | ✗ | OS_ASSERT(result); | |
| 643 | ✗ | } | |
| 644 | |||
| 645 | 1 | bool RefrigerationCompressorRack_Impl::setHeatRejectionZone(const boost::optional<ThermalZone>& thermalZone) { | |
| 646 | 1 | bool result(false); | |
| 647 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (thermalZone) { |
| 648 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | result = setPointer(OS_Refrigeration_CompressorRackFields::HeatRejectionZoneName, thermalZone.get().handle()); |
| 649 | } else { | ||
| 650 | ✗ | resetHeatRejectionZone(); | |
| 651 | ✗ | result = true; | |
| 652 | } | ||
| 653 | 1 | return result; | |
| 654 | } | ||
| 655 | |||
| 656 | 4 | void RefrigerationCompressorRack_Impl::resetHeatRejectionZone() { | |
| 657 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | bool result = setString(OS_Refrigeration_CompressorRackFields::HeatRejectionZoneName, ""); |
| 658 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 659 | 4 | } | |
| 660 | |||
| 661 | ✗ | ComponentType RefrigerationCompressorRack_Impl::componentType() const { | |
| 662 | ✗ | return ComponentType::Cooling; | |
| 663 | } | ||
| 664 | |||
| 665 | ✗ | std::vector<FuelType> RefrigerationCompressorRack_Impl::coolingFuelTypes() const { | |
| 666 | ✗ | return {FuelType::Electricity}; | |
| 667 | } | ||
| 668 | |||
| 669 | ✗ | std::vector<FuelType> RefrigerationCompressorRack_Impl::heatingFuelTypes() const { | |
| 670 | ✗ | return {}; | |
| 671 | } | ||
| 672 | |||
| 673 | ✗ | std::vector<AppGFuelType> RefrigerationCompressorRack_Impl::appGHeatingFuelTypes() const { | |
| 674 | ✗ | return {}; | |
| 675 | } | ||
| 676 | |||
| 677 | } // namespace detail | ||
| 678 | |||
| 679 | 6 | RefrigerationCompressorRack::RefrigerationCompressorRack(const Model& model) | |
| 680 | 6 | : StraightComponent(RefrigerationCompressorRack::iddObjectType(), model) { | |
| 681 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 6 times.
✗ Branch 5 not taken.
|
6 | OS_ASSERT(getImpl<detail::RefrigerationCompressorRack_Impl>()); |
| 682 | |||
| 683 |
1/1✓ Branch 1 taken 6 times.
|
6 | CurveQuadratic compressorRackCOPFunctionofTemperatureCurve = CurveQuadratic(model); |
| 684 |
1/1✓ Branch 1 taken 6 times.
|
6 | compressorRackCOPFunctionofTemperatureCurve.setCoefficient1Constant(1.7603); |
| 685 |
1/1✓ Branch 1 taken 6 times.
|
6 | compressorRackCOPFunctionofTemperatureCurve.setCoefficient2x(-0.0377); |
| 686 |
1/1✓ Branch 1 taken 6 times.
|
6 | compressorRackCOPFunctionofTemperatureCurve.setCoefficient3xPOW2(0.0004); |
| 687 |
1/1✓ Branch 1 taken 6 times.
|
6 | compressorRackCOPFunctionofTemperatureCurve.setMinimumValueofx(10.0000); |
| 688 |
1/1✓ Branch 1 taken 6 times.
|
6 | compressorRackCOPFunctionofTemperatureCurve.setMaximumValueofx(35.0000); |
| 689 | |||
| 690 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setHeatRejectionLocation("Outdoors"); |
| 691 |
1/1✓ Branch 1 taken 6 times.
|
6 | setDesignCompressorRackCOP(2.0); |
| 692 |
1/1✓ Branch 1 taken 6 times.
|
6 | setCompressorRackCOPFunctionofTemperatureCurve(compressorRackCOPFunctionofTemperatureCurve); |
| 693 |
1/1✓ Branch 1 taken 6 times.
|
6 | setDesignCondenserFanPower(250.0); |
| 694 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
12 | setCondenserType("AirCooled"); |
| 695 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | setWaterCooledLoopFlowType("VariableFlow"); |
| 696 |
1/1✓ Branch 1 taken 6 times.
|
6 | setWaterCooledCondenserMaximumWaterOutletTemperature(55.0); |
| 697 |
1/1✓ Branch 1 taken 6 times.
|
6 | setWaterCooledCondenserMinimumWaterInletTemperature(10.0); |
| 698 |
1/1✓ Branch 1 taken 6 times.
|
6 | setEvaporativeCondenserEffectiveness(0.9); |
| 699 |
1/1✓ Branch 1 taken 6 times.
|
6 | autocalculateEvaporativeCondenserAirFlowRate(); |
| 700 |
1/1✓ Branch 1 taken 6 times.
|
6 | setBasinHeaterCapacity(200.0); |
| 701 |
1/1✓ Branch 1 taken 6 times.
|
6 | setBasinHeaterSetpointTemperature(2.0); |
| 702 |
1/1✓ Branch 1 taken 6 times.
|
6 | setDesignEvaporativeCondenserWaterPumpPower(1000.0); |
| 703 |
1/1✓ Branch 1 taken 6 times.
|
6 | ModelObjectList caseAndWalkinList = ModelObjectList(model); |
| 704 |
4/4✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
✓ Branch 10 taken 6 times.
|
6 | caseAndWalkinList.setName(this->name().get() + " Case and Walkin List"); |
| 705 |
2/2✓ Branch 3 taken 6 times.
✓ Branch 6 taken 6 times.
|
6 | bool ok = getImpl<detail::RefrigerationCompressorRack_Impl>()->setRefrigeratedCaseAndWalkInList(caseAndWalkinList); |
| 706 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
✗ Branch 3 not taken.
|
6 | OS_ASSERT(ok); |
| 707 | 6 | } | |
| 708 | |||
| 709 | 7750 | IddObjectType RefrigerationCompressorRack::iddObjectType() { | |
| 710 |
1/1✓ Branch 1 taken 7750 times.
|
7750 | return {IddObjectType::OS_Refrigeration_CompressorRack}; |
| 711 | } | ||
| 712 | |||
| 713 | ✗ | std::vector<std::string> RefrigerationCompressorRack::condenserTypeValues() { | |
| 714 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Refrigeration_CompressorRackFields::CondenserType); | |
| 715 | } | ||
| 716 | |||
| 717 | ✗ | std::vector<std::string> RefrigerationCompressorRack::waterCooledLoopFlowTypeValues() { | |
| 718 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Refrigeration_CompressorRackFields::WaterCooledLoopFlowType); | |
| 719 | } | ||
| 720 | |||
| 721 | 2 | std::string RefrigerationCompressorRack::heatRejectionLocation() const { | |
| 722 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->heatRejectionLocation(); |
| 723 | } | ||
| 724 | |||
| 725 | 4 | double RefrigerationCompressorRack::designCompressorRackCOP() const { | |
| 726 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->designCompressorRackCOP(); |
| 727 | } | ||
| 728 | |||
| 729 | 2 | Curve RefrigerationCompressorRack::compressorRackCOPFunctionofTemperatureCurve() const { | |
| 730 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->compressorRackCOPFunctionofTemperatureCurve(); |
| 731 | } | ||
| 732 | |||
| 733 | 2 | double RefrigerationCompressorRack::designCondenserFanPower() const { | |
| 734 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->designCondenserFanPower(); |
| 735 | } | ||
| 736 | |||
| 737 | 3 | boost::optional<Curve> RefrigerationCompressorRack::condenserFanPowerFunctionofTemperatureCurve() const { | |
| 738 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->condenserFanPowerFunctionofTemperatureCurve(); |
| 739 | } | ||
| 740 | |||
| 741 | 2 | std::string RefrigerationCompressorRack::condenserType() const { | |
| 742 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->condenserType(); |
| 743 | } | ||
| 744 | |||
| 745 | 2 | std::string RefrigerationCompressorRack::waterCooledLoopFlowType() const { | |
| 746 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->waterCooledLoopFlowType(); |
| 747 | } | ||
| 748 | |||
| 749 | 3 | boost::optional<Schedule> RefrigerationCompressorRack::waterCooledCondenserOutletTemperatureSchedule() const { | |
| 750 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->waterCooledCondenserOutletTemperatureSchedule(); |
| 751 | } | ||
| 752 | |||
| 753 | 4 | boost::optional<double> RefrigerationCompressorRack::waterCooledCondenserDesignFlowRate() const { | |
| 754 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->waterCooledCondenserDesignFlowRate(); |
| 755 | } | ||
| 756 | |||
| 757 | 4 | boost::optional<double> RefrigerationCompressorRack::waterCooledCondenserMaximumFlowRate() const { | |
| 758 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->waterCooledCondenserMaximumFlowRate(); |
| 759 | } | ||
| 760 | |||
| 761 | 2 | double RefrigerationCompressorRack::waterCooledCondenserMaximumWaterOutletTemperature() const { | |
| 762 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->waterCooledCondenserMaximumWaterOutletTemperature(); |
| 763 | } | ||
| 764 | |||
| 765 | 2 | double RefrigerationCompressorRack::waterCooledCondenserMinimumWaterInletTemperature() const { | |
| 766 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->waterCooledCondenserMinimumWaterInletTemperature(); |
| 767 | } | ||
| 768 | |||
| 769 | 3 | boost::optional<Schedule> RefrigerationCompressorRack::evaporativeCondenserAvailabilitySchedule() const { | |
| 770 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->evaporativeCondenserAvailabilitySchedule(); |
| 771 | } | ||
| 772 | |||
| 773 | 2 | double RefrigerationCompressorRack::evaporativeCondenserEffectiveness() const { | |
| 774 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->evaporativeCondenserEffectiveness(); |
| 775 | } | ||
| 776 | |||
| 777 | 3 | boost::optional<double> RefrigerationCompressorRack::evaporativeCondenserAirFlowRate() const { | |
| 778 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->evaporativeCondenserAirFlowRate(); |
| 779 | } | ||
| 780 | |||
| 781 | 3 | bool RefrigerationCompressorRack::isEvaporativeCondenserAirFlowRateAutocalculated() const { | |
| 782 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->isEvaporativeCondenserAirFlowRateAutocalculated(); |
| 783 | } | ||
| 784 | |||
| 785 | 2 | double RefrigerationCompressorRack::basinHeaterCapacity() const { | |
| 786 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->basinHeaterCapacity(); |
| 787 | } | ||
| 788 | |||
| 789 | 2 | double RefrigerationCompressorRack::basinHeaterSetpointTemperature() const { | |
| 790 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->basinHeaterSetpointTemperature(); |
| 791 | } | ||
| 792 | |||
| 793 | 3 | boost::optional<double> RefrigerationCompressorRack::designEvaporativeCondenserWaterPumpPower() const { | |
| 794 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->designEvaporativeCondenserWaterPumpPower(); |
| 795 | } | ||
| 796 | |||
| 797 | 3 | bool RefrigerationCompressorRack::isDesignEvaporativeCondenserWaterPumpPowerAutocalculated() const { | |
| 798 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->isDesignEvaporativeCondenserWaterPumpPowerAutocalculated(); |
| 799 | } | ||
| 800 | |||
| 801 | // boost::optional<HVACComponent> RefrigerationCompressorRack::evaporativeWaterSupplyTank() const { | ||
| 802 | // return getImpl<detail::RefrigerationCompressorRack_Impl>()->evaporativeWaterSupplyTank(); | ||
| 803 | // } | ||
| 804 | |||
| 805 | // boost::optional<std::string> RefrigerationCompressorRack::condenserAirInletNodeName() const { | ||
| 806 | // return getImpl<detail::RefrigerationCompressorRack_Impl>()->condenserAirInletNodeName(); | ||
| 807 | // } | ||
| 808 | |||
| 809 | 2 | std::string RefrigerationCompressorRack::endUseSubcategory() const { | |
| 810 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->endUseSubcategory(); |
| 811 | } | ||
| 812 | |||
| 813 | 3 | bool RefrigerationCompressorRack::isEndUseSubcategoryDefaulted() const { | |
| 814 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->isEndUseSubcategoryDefaulted(); |
| 815 | } | ||
| 816 | |||
| 817 | 4 | std::vector<RefrigerationCase> RefrigerationCompressorRack::cases() const { | |
| 818 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->cases(); |
| 819 | } | ||
| 820 | |||
| 821 | 4 | std::vector<RefrigerationWalkIn> RefrigerationCompressorRack::walkins() const { | |
| 822 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->walkins(); |
| 823 | } | ||
| 824 | |||
| 825 | 3 | std::vector<RefrigerationAirChiller> RefrigerationCompressorRack::airChillers() const { | |
| 826 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->airChillers(); |
| 827 | } | ||
| 828 | |||
| 829 | 3 | boost::optional<ThermalZone> RefrigerationCompressorRack::heatRejectionZone() const { | |
| 830 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->heatRejectionZone(); |
| 831 | } | ||
| 832 | |||
| 833 | 7 | bool RefrigerationCompressorRack::setHeatRejectionLocation(const std::string& heatRejectionLocation) { | |
| 834 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->setHeatRejectionLocation(heatRejectionLocation); |
| 835 | } | ||
| 836 | |||
| 837 | 8 | bool RefrigerationCompressorRack::setDesignCompressorRackCOP(double designCompressorRackCOP) { | |
| 838 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->setDesignCompressorRackCOP(designCompressorRackCOP); |
| 839 | } | ||
| 840 | |||
| 841 | 7 | bool RefrigerationCompressorRack::setCompressorRackCOPFunctionofTemperatureCurve(const Curve& curve) { | |
| 842 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->setCompressorRackCOPFunctionofTemperatureCurve(curve); |
| 843 | } | ||
| 844 | |||
| 845 | 7 | bool RefrigerationCompressorRack::setDesignCondenserFanPower(double designCondenserFanPower) { | |
| 846 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->setDesignCondenserFanPower(designCondenserFanPower); |
| 847 | } | ||
| 848 | |||
| 849 | 1 | bool RefrigerationCompressorRack::setCondenserFanPowerFunctionofTemperatureCurve(const Curve& curve) { | |
| 850 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->setCondenserFanPowerFunctionofTemperatureCurve(curve); |
| 851 | } | ||
| 852 | |||
| 853 | 1 | void RefrigerationCompressorRack::resetCondenserFanPowerFunctionofTemperatureCurve() { | |
| 854 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RefrigerationCompressorRack_Impl>()->resetCondenserFanPowerFunctionofTemperatureCurve(); |
| 855 | 1 | } | |
| 856 | |||
| 857 | 7 | bool RefrigerationCompressorRack::setCondenserType(const std::string& condenserType) { | |
| 858 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->setCondenserType(condenserType); |
| 859 | } | ||
| 860 | |||
| 861 | 7 | bool RefrigerationCompressorRack::setWaterCooledLoopFlowType(const std::string& waterCooledLoopFlowType) { | |
| 862 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->setWaterCooledLoopFlowType(waterCooledLoopFlowType); |
| 863 | } | ||
| 864 | |||
| 865 | 1 | bool RefrigerationCompressorRack::setWaterCooledCondenserOutletTemperatureSchedule(Schedule& schedule) { | |
| 866 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->setWaterCooledCondenserOutletTemperatureSchedule(schedule); |
| 867 | } | ||
| 868 | |||
| 869 | 1 | void RefrigerationCompressorRack::resetWaterCooledCondenserOutletTemperatureSchedule() { | |
| 870 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RefrigerationCompressorRack_Impl>()->resetWaterCooledCondenserOutletTemperatureSchedule(); |
| 871 | 1 | } | |
| 872 | |||
| 873 | 1 | bool RefrigerationCompressorRack::setWaterCooledCondenserDesignFlowRate(double waterCooledCondenserDesignFlowRate) { | |
| 874 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->setWaterCooledCondenserDesignFlowRate(waterCooledCondenserDesignFlowRate); |
| 875 | } | ||
| 876 | |||
| 877 | 1 | void RefrigerationCompressorRack::resetWaterCooledCondenserDesignFlowRate() { | |
| 878 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RefrigerationCompressorRack_Impl>()->resetWaterCooledCondenserDesignFlowRate(); |
| 879 | 1 | } | |
| 880 | |||
| 881 | 1 | bool RefrigerationCompressorRack::setWaterCooledCondenserMaximumFlowRate(double waterCooledCondenserMaximumFlowRate) { | |
| 882 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->setWaterCooledCondenserMaximumFlowRate(waterCooledCondenserMaximumFlowRate); |
| 883 | } | ||
| 884 | |||
| 885 | 1 | void RefrigerationCompressorRack::resetWaterCooledCondenserMaximumFlowRate() { | |
| 886 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->resetWaterCooledCondenserMaximumFlowRate(); |
| 887 | } | ||
| 888 | |||
| 889 | 7 | bool RefrigerationCompressorRack::setWaterCooledCondenserMaximumWaterOutletTemperature(double waterCooledCondenserMaximumWaterOutletTemperature) { | |
| 890 |
1/1✓ Branch 3 taken 7 times.
|
14 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->setWaterCooledCondenserMaximumWaterOutletTemperature( |
| 891 | 14 | waterCooledCondenserMaximumWaterOutletTemperature); | |
| 892 | } | ||
| 893 | |||
| 894 | 7 | bool RefrigerationCompressorRack::setWaterCooledCondenserMinimumWaterInletTemperature(double waterCooledCondenserMinimumWaterInletTemperature) { | |
| 895 |
1/1✓ Branch 3 taken 7 times.
|
14 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->setWaterCooledCondenserMinimumWaterInletTemperature( |
| 896 | 14 | waterCooledCondenserMinimumWaterInletTemperature); | |
| 897 | } | ||
| 898 | |||
| 899 | 1 | bool RefrigerationCompressorRack::setEvaporativeCondenserAvailabilitySchedule(Schedule& schedule) { | |
| 900 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->setEvaporativeCondenserAvailabilitySchedule(schedule); |
| 901 | } | ||
| 902 | |||
| 903 | 1 | void RefrigerationCompressorRack::resetEvaporativeCondenserAvailabilitySchedule() { | |
| 904 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RefrigerationCompressorRack_Impl>()->resetEvaporativeCondenserAvailabilitySchedule(); |
| 905 | 1 | } | |
| 906 | |||
| 907 | 7 | bool RefrigerationCompressorRack::setEvaporativeCondenserEffectiveness(double evaporativeCondenserEffectiveness) { | |
| 908 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->setEvaporativeCondenserEffectiveness(evaporativeCondenserEffectiveness); |
| 909 | } | ||
| 910 | |||
| 911 | 1 | bool RefrigerationCompressorRack::setEvaporativeCondenserAirFlowRate(double evaporativeCondenserAirFlowRate) { | |
| 912 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->setEvaporativeCondenserAirFlowRate(evaporativeCondenserAirFlowRate); |
| 913 | } | ||
| 914 | |||
| 915 | 7 | bool RefrigerationCompressorRack::autocalculateEvaporativeCondenserAirFlowRate() { | |
| 916 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->autocalculateEvaporativeCondenserAirFlowRate(); |
| 917 | } | ||
| 918 | |||
| 919 | 7 | bool RefrigerationCompressorRack::setBasinHeaterCapacity(double basinHeaterCapacity) { | |
| 920 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->setBasinHeaterCapacity(basinHeaterCapacity); |
| 921 | } | ||
| 922 | |||
| 923 | 7 | bool RefrigerationCompressorRack::setBasinHeaterSetpointTemperature(double basinHeaterSetpointTemperature) { | |
| 924 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->setBasinHeaterSetpointTemperature(basinHeaterSetpointTemperature); |
| 925 | } | ||
| 926 | |||
| 927 | 6 | bool RefrigerationCompressorRack::setDesignEvaporativeCondenserWaterPumpPower(double designEvaporativeCondenserWaterPumpPower) { | |
| 928 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->setDesignEvaporativeCondenserWaterPumpPower(designEvaporativeCondenserWaterPumpPower); |
| 929 | } | ||
| 930 | |||
| 931 | 2 | bool RefrigerationCompressorRack::autocalculateDesignEvaporativeCondenserWaterPumpPower() { | |
| 932 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->autocalculateDesignEvaporativeCondenserWaterPumpPower(); |
| 933 | } | ||
| 934 | |||
| 935 | // bool RefrigerationCompressorRack::setEvaporativeWaterSupplyTank(const HVACComponent& evaporativeWaterSupplyTank) { | ||
| 936 | // return getImpl<detail::RefrigerationCompressorRack_Impl>()->setEvaporativeWaterSupplyTank(evaporativeWaterSupplyTank); | ||
| 937 | // } | ||
| 938 | |||
| 939 | // void RefrigerationCompressorRack::resetEvaporativeWaterSupplyTank() { | ||
| 940 | // return getImpl<detail::RefrigerationCompressorRack_Impl>()->resetEvaporativeWaterSupplyTank(); | ||
| 941 | // } | ||
| 942 | |||
| 943 | // bool RefrigerationCompressorRack::setCondenserAirInletNodeName(std::string condenserAirInletNodeName) { | ||
| 944 | // return getImpl<detail::RefrigerationCompressorRack_Impl>()->setCondenserAirInletNodeName(condenserAirInletNodeName); | ||
| 945 | // } | ||
| 946 | |||
| 947 | // void RefrigerationCompressorRack::resetCondenserAirInletNodeName() { | ||
| 948 | /// return getImpl<detail::RefrigerationCompressorRack_Impl>()->resetCondenserAirInletNodeName(); | ||
| 949 | // } | ||
| 950 | |||
| 951 | 1 | bool RefrigerationCompressorRack::setEndUseSubcategory(const std::string& endUseSubcategory) { | |
| 952 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->setEndUseSubcategory(endUseSubcategory); |
| 953 | } | ||
| 954 | |||
| 955 | 1 | void RefrigerationCompressorRack::resetEndUseSubcategory() { | |
| 956 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RefrigerationCompressorRack_Impl>()->resetEndUseSubcategory(); |
| 957 | 1 | } | |
| 958 | |||
| 959 | 1 | bool RefrigerationCompressorRack::addCase(const RefrigerationCase& refrigerationCase) { | |
| 960 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->addCase(refrigerationCase); |
| 961 | } | ||
| 962 | |||
| 963 | ✗ | void RefrigerationCompressorRack::removeCase(const RefrigerationCase& refrigerationCase) { | |
| 964 | ✗ | return getImpl<detail::RefrigerationCompressorRack_Impl>()->removeCase(refrigerationCase); | |
| 965 | } | ||
| 966 | |||
| 967 | 1 | void RefrigerationCompressorRack::removeAllCases() { | |
| 968 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->removeAllCases(); |
| 969 | } | ||
| 970 | |||
| 971 | 1 | bool RefrigerationCompressorRack::addWalkin(const RefrigerationWalkIn& refrigerationWalkin) { | |
| 972 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->addWalkin(refrigerationWalkin); |
| 973 | } | ||
| 974 | |||
| 975 | ✗ | void RefrigerationCompressorRack::removeWalkin(const RefrigerationWalkIn& refrigerationWalkin) { | |
| 976 | ✗ | return getImpl<detail::RefrigerationCompressorRack_Impl>()->removeWalkin(refrigerationWalkin); | |
| 977 | } | ||
| 978 | |||
| 979 | 1 | void RefrigerationCompressorRack::removeAllWalkins() { | |
| 980 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->removeAllWalkins(); |
| 981 | } | ||
| 982 | |||
| 983 | 1 | bool RefrigerationCompressorRack::addAirChiller(const RefrigerationAirChiller& refrigerationAirChiller) { | |
| 984 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->addAirChiller(refrigerationAirChiller); |
| 985 | } | ||
| 986 | |||
| 987 | ✗ | void RefrigerationCompressorRack::removeAirChiller(const RefrigerationAirChiller& refrigerationAirChiller) { | |
| 988 | ✗ | return getImpl<detail::RefrigerationCompressorRack_Impl>()->removeAirChiller(refrigerationAirChiller); | |
| 989 | } | ||
| 990 | |||
| 991 | 1 | void RefrigerationCompressorRack::removeAllAirChillers() { | |
| 992 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->removeAllAirChillers(); |
| 993 | } | ||
| 994 | |||
| 995 | ✗ | void RefrigerationCompressorRack::resetRefrigeratedCaseAndWalkInList() { | |
| 996 | ✗ | getImpl<detail::RefrigerationCompressorRack_Impl>()->resetRefrigeratedCaseAndWalkInList(); | |
| 997 | ✗ | } | |
| 998 | |||
| 999 | 1 | bool RefrigerationCompressorRack::setHeatRejectionZone(const ThermalZone& thermalZone) { | |
| 1000 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::RefrigerationCompressorRack_Impl>()->setHeatRejectionZone(thermalZone); |
| 1001 | } | ||
| 1002 | |||
| 1003 | 4 | void RefrigerationCompressorRack::resetHeatRejectionZone() { | |
| 1004 |
1/1✓ Branch 3 taken 4 times.
|
4 | getImpl<detail::RefrigerationCompressorRack_Impl>()->resetHeatRejectionZone(); |
| 1005 | 4 | } | |
| 1006 | |||
| 1007 | /// @cond | ||
| 1008 | 9 | RefrigerationCompressorRack::RefrigerationCompressorRack(std::shared_ptr<detail::RefrigerationCompressorRack_Impl> impl) | |
| 1009 |
1/1✓ Branch 3 taken 9 times.
|
9 | : StraightComponent(std::move(impl)) {} |
| 1010 | /// @endcond | ||
| 1011 | |||
| 1012 | } // namespace model | ||
| 1013 | } // namespace openstudio | ||
| 1014 |