src/model/RefrigerationCondenserWaterCooled.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 "RefrigerationCondenserWaterCooled.hpp" | ||
| 7 | #include "RefrigerationCondenserWaterCooled_Impl.hpp" | ||
| 8 | |||
| 9 | #include "RefrigerationSystem.hpp" | ||
| 10 | #include "RefrigerationSystem_Impl.hpp" | ||
| 11 | |||
| 12 | #include "Schedule.hpp" | ||
| 13 | #include "Schedule_Impl.hpp" | ||
| 14 | #include "ScheduleTypeLimits.hpp" | ||
| 15 | #include "ScheduleTypeRegistry.hpp" | ||
| 16 | #include "Node.hpp" | ||
| 17 | |||
| 18 | #include "../utilities/core/Assert.hpp" | ||
| 19 | #include "../utilities/data/DataEnums.hpp" | ||
| 20 | |||
| 21 | #include <utilities/idd/IddFactory.hxx> | ||
| 22 | #include <utilities/idd/OS_Refrigeration_Condenser_WaterCooled_FieldEnums.hxx> | ||
| 23 | #include <utilities/idd/IddEnums.hxx> | ||
| 24 | |||
| 25 | namespace openstudio { | ||
| 26 | namespace model { | ||
| 27 | |||
| 28 | namespace detail { | ||
| 29 | |||
| 30 | 26 | RefrigerationCondenserWaterCooled_Impl::RefrigerationCondenserWaterCooled_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 31 | 26 | : StraightComponent_Impl(idfObject, model, keepHandle) { | |
| 32 |
4/6✓ Branch 1 taken 26 times.
✓ Branch 4 taken 26 times.
✓ Branch 7 taken 26 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 26 times.
✗ Branch 13 not taken.
|
26 | OS_ASSERT(idfObject.iddObject().type() == RefrigerationCondenserWaterCooled::iddObjectType()); |
| 33 | 26 | } | |
| 34 | |||
| 35 | ✗ | RefrigerationCondenserWaterCooled_Impl::RefrigerationCondenserWaterCooled_Impl(const openstudio::detail::WorkspaceObject_Impl& other, | |
| 36 | ✗ | Model_Impl* model, bool keepHandle) | |
| 37 | ✗ | : StraightComponent_Impl(other, model, keepHandle) { | |
| 38 | ✗ | OS_ASSERT(other.iddObject().type() == RefrigerationCondenserWaterCooled::iddObjectType()); | |
| 39 | ✗ | } | |
| 40 | |||
| 41 | 15 | RefrigerationCondenserWaterCooled_Impl::RefrigerationCondenserWaterCooled_Impl(const RefrigerationCondenserWaterCooled_Impl& other, | |
| 42 | 15 | Model_Impl* model, bool keepHandle) | |
| 43 | 15 | : StraightComponent_Impl(other, model, keepHandle) {} | |
| 44 | |||
| 45 | 13 | unsigned RefrigerationCondenserWaterCooled_Impl::inletPort() const { | |
| 46 | 13 | return OS_Refrigeration_Condenser_WaterCooledFields::WaterInletNodeName; | |
| 47 | } | ||
| 48 | |||
| 49 | 21 | unsigned RefrigerationCondenserWaterCooled_Impl::outletPort() const { | |
| 50 | 21 | return OS_Refrigeration_Condenser_WaterCooledFields::WaterOutletNodeName; | |
| 51 | } | ||
| 52 | |||
| 53 | ✗ | const std::vector<std::string>& RefrigerationCondenserWaterCooled_Impl::outputVariableNames() const { | |
| 54 | static const std::vector<std::string> result{ | ||
| 55 | // TODO: Implement checks | ||
| 56 | // FOR CONDENSERS COOLING SYSTEMS SERVING CASES AND/OR WALKINS: | ||
| 57 | "Refrigeration System Condenser Heat Transfer Rate", "Refrigeration System Condenser Heat Transfer Energy", | ||
| 58 | "Refrigeration System Condenser Total Recovered Heat Transfer Rate", | ||
| 59 | "Refrigeration System Condenser Non Refrigeration Recovered Heat Transfer Rate", | ||
| 60 | "Refrigeration System Condenser Heat Recovered for Non-Refrigeration Purposes Energy", | ||
| 61 | "Refrigeration System Condenser Defrost Recovered Heat Transfer Rate", | ||
| 62 | "Refrigeration System Condenser Defrost Recovered Heat Transfer Energy", "Refrigeration System Condenser Water Mass Flow Rate", | ||
| 63 | // FOR CONDENSERS COOLING SYSTEMS SERVING AIR CHILLERS: | ||
| 64 | "Refrigeration Air Chiller System Condenser Heat Transfer Rate", "Refrigeration Air Chiller System Condenser Heat Transfer Energy", | ||
| 65 | "Refrigeration Air Chiller System Condenser Total Recovered Heat Transfer Rate", | ||
| 66 | "Refrigeration Air Chiller System Condenser Non Refrigeration Recovered Heat Transfer Rate", | ||
| 67 | "Refrigeration Air Chiller System Condenser Non Refrigeration Recovered Heat Transfer Energy", | ||
| 68 | "Refrigeration Air Chiller System Condenser Defrost Recovered Heat Transfer Rate", | ||
| 69 | "Refrigeration Air Chiller System Condenser Defrost Recovered Heat Transfer Energy", | ||
| 70 | ✗ | "Refrigeration Air Chiller System Condenser Fluid Mass Flow Rate"}; | |
| 71 | ✗ | return result; | |
| 72 | ✗ | } | |
| 73 | |||
| 74 | 1 | IddObjectType RefrigerationCondenserWaterCooled_Impl::iddObjectType() const { | |
| 75 | 1 | return RefrigerationCondenserWaterCooled::iddObjectType(); | |
| 76 | } | ||
| 77 | |||
| 78 | ✗ | std::vector<ScheduleTypeKey> RefrigerationCondenserWaterCooled_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 79 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 80 | ✗ | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 81 | ✗ | UnsignedVector::const_iterator b(fieldIndices.begin()); | |
| 82 | ✗ | UnsignedVector::const_iterator e(fieldIndices.end()); | |
| 83 | ✗ | if (std::find(b, e, OS_Refrigeration_Condenser_WaterCooledFields::WaterOutletTemperatureScheduleName) != e) { | |
| 84 | ✗ | result.push_back(ScheduleTypeKey("RefrigerationCondenserWaterCooled", "Water Outlet Temperature")); | |
| 85 | } | ||
| 86 | ✗ | return result; | |
| 87 | ✗ | } | |
| 88 | |||
| 89 | 6 | bool RefrigerationCondenserWaterCooled_Impl::addToNode(Node& node) { | |
| 90 |
3/3✓ Branch 1 taken 6 times.
✓ Branch 3 taken 4 times.
✓ Branch 4 taken 2 times.
|
12 | if (boost::optional<PlantLoop> plant = node.plantLoop()) { |
| 91 |
5/5✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 3 times.
✓ Branch 11 taken 1 time.
|
8 | if (plant->demandComponent(node.handle())) { |
| 92 |
1/1✓ Branch 1 taken 3 times.
|
3 | return StraightComponent_Impl::addToNode(node); |
| 93 | } | ||
| 94 | 6 | } | |
| 95 | |||
| 96 | 3 | return false; | |
| 97 | } | ||
| 98 | |||
| 99 | 6 | boost::optional<double> RefrigerationCondenserWaterCooled_Impl::ratedEffectiveTotalHeatRejectionRate() const { | |
| 100 | 6 | return getDouble(OS_Refrigeration_Condenser_WaterCooledFields::RatedEffectiveTotalHeatRejectionRate, true); | |
| 101 | } | ||
| 102 | |||
| 103 | 6 | double RefrigerationCondenserWaterCooled_Impl::ratedCondensingTemperature() const { | |
| 104 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_Refrigeration_Condenser_WaterCooledFields::RatedCondensingTemperature, true); |
| 105 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 106 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 107 | } | ||
| 108 | |||
| 109 | 6 | double RefrigerationCondenserWaterCooled_Impl::ratedSubcoolingTemperatureDifference() const { | |
| 110 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_Refrigeration_Condenser_WaterCooledFields::RatedSubcoolingTemperatureDifference, true); |
| 111 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 112 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 113 | } | ||
| 114 | |||
| 115 | ✗ | bool RefrigerationCondenserWaterCooled_Impl::isRatedSubcoolingTemperatureDifferenceDefaulted() const { | |
| 116 | ✗ | return isEmpty(OS_Refrigeration_Condenser_WaterCooledFields::RatedSubcoolingTemperatureDifference); | |
| 117 | } | ||
| 118 | |||
| 119 | 6 | double RefrigerationCondenserWaterCooled_Impl::ratedWaterInletTemperature() const { | |
| 120 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_Refrigeration_Condenser_WaterCooledFields::RatedWaterInletTemperature, true); |
| 121 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 122 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 123 | } | ||
| 124 | |||
| 125 | 7 | std::string RefrigerationCondenserWaterCooled_Impl::waterCooledLoopFlowType() const { | |
| 126 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<std::string> value = getString(OS_Refrigeration_Condenser_WaterCooledFields::WaterCooledLoopFlowType, true); |
| 127 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
✗ Branch 4 not taken.
|
7 | OS_ASSERT(value); |
| 128 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
14 | return value.get(); |
| 129 | 7 | } | |
| 130 | |||
| 131 | ✗ | bool RefrigerationCondenserWaterCooled_Impl::isWaterCooledLoopFlowTypeDefaulted() const { | |
| 132 | ✗ | return isEmpty(OS_Refrigeration_Condenser_WaterCooledFields::WaterCooledLoopFlowType); | |
| 133 | } | ||
| 134 | |||
| 135 | 2 | boost::optional<Schedule> RefrigerationCondenserWaterCooled_Impl::waterOutletTemperatureSchedule() const { | |
| 136 |
1/1✓ Branch 1 taken 2 times.
|
4 | return getObject<ModelObject>().getModelObjectTarget<Schedule>( |
| 137 |
1/1✓ Branch 1 taken 2 times.
|
4 | OS_Refrigeration_Condenser_WaterCooledFields::WaterOutletTemperatureScheduleName); |
| 138 | } | ||
| 139 | |||
| 140 | 6 | boost::optional<double> RefrigerationCondenserWaterCooled_Impl::waterDesignFlowRate() const { | |
| 141 | 6 | return getDouble(OS_Refrigeration_Condenser_WaterCooledFields::WaterDesignFlowRate, true); | |
| 142 | } | ||
| 143 | |||
| 144 | 6 | boost::optional<double> RefrigerationCondenserWaterCooled_Impl::waterMaximumFlowRate() const { | |
| 145 | 6 | return getDouble(OS_Refrigeration_Condenser_WaterCooledFields::WaterMaximumFlowRate, true); | |
| 146 | } | ||
| 147 | |||
| 148 | 9 | double RefrigerationCondenserWaterCooled_Impl::waterMaximumWaterOutletTemperature() const { | |
| 149 |
1/1✓ Branch 1 taken 9 times.
|
9 | boost::optional<double> value = getDouble(OS_Refrigeration_Condenser_WaterCooledFields::WaterMaximumWaterOutletTemperature, true); |
| 150 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 9 times.
✗ Branch 4 not taken.
|
9 | OS_ASSERT(value); |
| 151 |
1/1✓ Branch 1 taken 9 times.
|
18 | return value.get(); |
| 152 | } | ||
| 153 | |||
| 154 | ✗ | bool RefrigerationCondenserWaterCooled_Impl::isWaterMaximumWaterOutletTemperatureDefaulted() const { | |
| 155 | ✗ | return isEmpty(OS_Refrigeration_Condenser_WaterCooledFields::WaterMaximumWaterOutletTemperature); | |
| 156 | } | ||
| 157 | |||
| 158 | 9 | double RefrigerationCondenserWaterCooled_Impl::waterMinimumWaterInletTemperature() const { | |
| 159 |
1/1✓ Branch 1 taken 9 times.
|
9 | boost::optional<double> value = getDouble(OS_Refrigeration_Condenser_WaterCooledFields::WaterMinimumWaterInletTemperature, true); |
| 160 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 9 times.
✗ Branch 4 not taken.
|
9 | OS_ASSERT(value); |
| 161 |
1/1✓ Branch 1 taken 9 times.
|
18 | return value.get(); |
| 162 | } | ||
| 163 | |||
| 164 | ✗ | bool RefrigerationCondenserWaterCooled_Impl::isWaterMinimumWaterInletTemperatureDefaulted() const { | |
| 165 | ✗ | return isEmpty(OS_Refrigeration_Condenser_WaterCooledFields::WaterMinimumWaterInletTemperature); | |
| 166 | } | ||
| 167 | |||
| 168 | 4 | std::string RefrigerationCondenserWaterCooled_Impl::endUseSubcategory() const { | |
| 169 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<std::string> value = getString(OS_Refrigeration_Condenser_WaterCooledFields::EndUseSubcategory, true); |
| 170 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 171 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | return value.get(); |
| 172 | 4 | } | |
| 173 | |||
| 174 | ✗ | bool RefrigerationCondenserWaterCooled_Impl::isEndUseSubcategoryDefaulted() const { | |
| 175 | ✗ | return isEmpty(OS_Refrigeration_Condenser_WaterCooledFields::EndUseSubcategory); | |
| 176 | } | ||
| 177 | |||
| 178 | 3 | boost::optional<double> RefrigerationCondenserWaterCooled_Impl::condenserRefrigerantOperatingChargeInventory() const { | |
| 179 | 3 | return getDouble(OS_Refrigeration_Condenser_WaterCooledFields::CondenserRefrigerantOperatingChargeInventory, true); | |
| 180 | } | ||
| 181 | |||
| 182 | 3 | boost::optional<double> RefrigerationCondenserWaterCooled_Impl::condensateReceiverRefrigerantInventory() const { | |
| 183 | 3 | return getDouble(OS_Refrigeration_Condenser_WaterCooledFields::CondensateReceiverRefrigerantInventory, true); | |
| 184 | } | ||
| 185 | |||
| 186 | 3 | boost::optional<double> RefrigerationCondenserWaterCooled_Impl::condensatePipingRefrigerantInventory() const { | |
| 187 | 3 | return getDouble(OS_Refrigeration_Condenser_WaterCooledFields::CondensatePipingRefrigerantInventory, true); | |
| 188 | } | ||
| 189 | |||
| 190 | bool | ||
| 191 | 37 | RefrigerationCondenserWaterCooled_Impl::setRatedEffectiveTotalHeatRejectionRate(boost::optional<double> ratedEffectiveTotalHeatRejectionRate) { | |
| 192 | 37 | bool result(false); | |
| 193 |
1/2✓ Branch 0 taken 37 times.
✗ Branch 1 not taken.
|
37 | if (ratedEffectiveTotalHeatRejectionRate) { |
| 194 | result = | ||
| 195 | 37 | setDouble(OS_Refrigeration_Condenser_WaterCooledFields::RatedEffectiveTotalHeatRejectionRate, ratedEffectiveTotalHeatRejectionRate.get()); | |
| 196 | } else { | ||
| 197 | ✗ | resetRatedEffectiveTotalHeatRejectionRate(); | |
| 198 | ✗ | result = true; | |
| 199 | } | ||
| 200 | 37 | return result; | |
| 201 | } | ||
| 202 | |||
| 203 | ✗ | void RefrigerationCondenserWaterCooled_Impl::resetRatedEffectiveTotalHeatRejectionRate() { | |
| 204 | ✗ | bool result = setString(OS_Refrigeration_Condenser_WaterCooledFields::RatedEffectiveTotalHeatRejectionRate, ""); | |
| 205 | ✗ | OS_ASSERT(result); | |
| 206 | ✗ | } | |
| 207 | |||
| 208 | 28 | bool RefrigerationCondenserWaterCooled_Impl::setRatedCondensingTemperature(double ratedCondensingTemperature) { | |
| 209 | 28 | bool result = setDouble(OS_Refrigeration_Condenser_WaterCooledFields::RatedCondensingTemperature, ratedCondensingTemperature); | |
| 210 | 28 | return result; | |
| 211 | } | ||
| 212 | |||
| 213 | 28 | bool RefrigerationCondenserWaterCooled_Impl::setRatedSubcoolingTemperatureDifference(double ratedSubcoolingTemperatureDifference) { | |
| 214 | bool result = | ||
| 215 | 28 | setDouble(OS_Refrigeration_Condenser_WaterCooledFields::RatedSubcoolingTemperatureDifference, ratedSubcoolingTemperatureDifference); | |
| 216 | 28 | return result; | |
| 217 | } | ||
| 218 | |||
| 219 | ✗ | void RefrigerationCondenserWaterCooled_Impl::resetRatedSubcoolingTemperatureDifference() { | |
| 220 | ✗ | bool result = setString(OS_Refrigeration_Condenser_WaterCooledFields::RatedSubcoolingTemperatureDifference, ""); | |
| 221 | ✗ | OS_ASSERT(result); | |
| 222 | ✗ | } | |
| 223 | |||
| 224 | 31 | bool RefrigerationCondenserWaterCooled_Impl::setRatedWaterInletTemperature(double ratedWaterInletTemperature) { | |
| 225 | 31 | bool result = setDouble(OS_Refrigeration_Condenser_WaterCooledFields::RatedWaterInletTemperature, ratedWaterInletTemperature); | |
| 226 | 31 | return result; | |
| 227 | } | ||
| 228 | |||
| 229 | 29 | bool RefrigerationCondenserWaterCooled_Impl::setWaterCooledLoopFlowType(const std::string& waterCooledLoopFlowType) { | |
| 230 | 29 | bool result = setString(OS_Refrigeration_Condenser_WaterCooledFields::WaterCooledLoopFlowType, waterCooledLoopFlowType); | |
| 231 | 29 | return result; | |
| 232 | } | ||
| 233 | |||
| 234 | 1 | void RefrigerationCondenserWaterCooled_Impl::resetWaterCooledLoopFlowType() { | |
| 235 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Refrigeration_Condenser_WaterCooledFields::WaterCooledLoopFlowType, ""); |
| 236 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 237 | 1 | } | |
| 238 | |||
| 239 | 2 | bool RefrigerationCondenserWaterCooled_Impl::setWaterOutletTemperatureSchedule(Schedule& schedule) { | |
| 240 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
|
8 | bool result = setSchedule(OS_Refrigeration_Condenser_WaterCooledFields::WaterOutletTemperatureScheduleName, "RefrigerationCondenserWaterCooled", |
| 241 | "Water Outlet Temperature", schedule); | ||
| 242 | 2 | return result; | |
| 243 | } | ||
| 244 | |||
| 245 | ✗ | void RefrigerationCondenserWaterCooled_Impl::resetWaterOutletTemperatureSchedule() { | |
| 246 | ✗ | bool result = setString(OS_Refrigeration_Condenser_WaterCooledFields::WaterOutletTemperatureScheduleName, ""); | |
| 247 | ✗ | OS_ASSERT(result); | |
| 248 | ✗ | } | |
| 249 | |||
| 250 | 31 | bool RefrigerationCondenserWaterCooled_Impl::setWaterDesignFlowRate(boost::optional<double> waterDesignFlowRate) { | |
| 251 | 31 | bool result(false); | |
| 252 |
1/2✓ Branch 0 taken 31 times.
✗ Branch 1 not taken.
|
31 | if (waterDesignFlowRate) { |
| 253 | 31 | result = setDouble(OS_Refrigeration_Condenser_WaterCooledFields::WaterDesignFlowRate, waterDesignFlowRate.get()); | |
| 254 | } else { | ||
| 255 | ✗ | resetWaterDesignFlowRate(); | |
| 256 | ✗ | result = true; | |
| 257 | } | ||
| 258 | 31 | return result; | |
| 259 | } | ||
| 260 | |||
| 261 | ✗ | void RefrigerationCondenserWaterCooled_Impl::resetWaterDesignFlowRate() { | |
| 262 | ✗ | bool result = setString(OS_Refrigeration_Condenser_WaterCooledFields::WaterDesignFlowRate, ""); | |
| 263 | ✗ | OS_ASSERT(result); | |
| 264 | ✗ | } | |
| 265 | |||
| 266 | 31 | bool RefrigerationCondenserWaterCooled_Impl::setWaterMaximumFlowRate(boost::optional<double> waterMaximumFlowRate) { | |
| 267 | 31 | bool result(false); | |
| 268 |
1/2✓ Branch 0 taken 31 times.
✗ Branch 1 not taken.
|
31 | if (waterMaximumFlowRate) { |
| 269 | 31 | result = setDouble(OS_Refrigeration_Condenser_WaterCooledFields::WaterMaximumFlowRate, waterMaximumFlowRate.get()); | |
| 270 | } else { | ||
| 271 | ✗ | resetWaterMaximumFlowRate(); | |
| 272 | ✗ | result = true; | |
| 273 | } | ||
| 274 | 31 | return result; | |
| 275 | } | ||
| 276 | |||
| 277 | ✗ | void RefrigerationCondenserWaterCooled_Impl::resetWaterMaximumFlowRate() { | |
| 278 | ✗ | bool result = setString(OS_Refrigeration_Condenser_WaterCooledFields::WaterMaximumFlowRate, ""); | |
| 279 | ✗ | OS_ASSERT(result); | |
| 280 | ✗ | } | |
| 281 | |||
| 282 | 32 | bool RefrigerationCondenserWaterCooled_Impl::setWaterMaximumWaterOutletTemperature(double waterMaximumWaterOutletTemperature) { | |
| 283 | 32 | bool result = setDouble(OS_Refrigeration_Condenser_WaterCooledFields::WaterMaximumWaterOutletTemperature, waterMaximumWaterOutletTemperature); | |
| 284 | 32 | return result; | |
| 285 | } | ||
| 286 | |||
| 287 | 1 | void RefrigerationCondenserWaterCooled_Impl::resetWaterMaximumWaterOutletTemperature() { | |
| 288 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Refrigeration_Condenser_WaterCooledFields::WaterMaximumWaterOutletTemperature, ""); |
| 289 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 290 | 1 | } | |
| 291 | |||
| 292 | 32 | bool RefrigerationCondenserWaterCooled_Impl::setWaterMinimumWaterInletTemperature(double waterMinimumWaterInletTemperature) { | |
| 293 | 32 | bool result = setDouble(OS_Refrigeration_Condenser_WaterCooledFields::WaterMinimumWaterInletTemperature, waterMinimumWaterInletTemperature); | |
| 294 | 32 | return result; | |
| 295 | } | ||
| 296 | |||
| 297 | 1 | void RefrigerationCondenserWaterCooled_Impl::resetWaterMinimumWaterInletTemperature() { | |
| 298 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Refrigeration_Condenser_WaterCooledFields::WaterMinimumWaterInletTemperature, ""); |
| 299 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 300 | 1 | } | |
| 301 | |||
| 302 | 1 | bool RefrigerationCondenserWaterCooled_Impl::setEndUseSubcategory(const std::string& endUseSubcategory) { | |
| 303 | 1 | bool result = setString(OS_Refrigeration_Condenser_WaterCooledFields::EndUseSubcategory, endUseSubcategory); | |
| 304 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 305 | 1 | return result; | |
| 306 | } | ||
| 307 | |||
| 308 | 1 | void RefrigerationCondenserWaterCooled_Impl::resetEndUseSubcategory() { | |
| 309 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Refrigeration_Condenser_WaterCooledFields::EndUseSubcategory, ""); |
| 310 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 311 | 1 | } | |
| 312 | |||
| 313 | 2 | bool RefrigerationCondenserWaterCooled_Impl::setCondenserRefrigerantOperatingChargeInventory( | |
| 314 | boost::optional<double> condenserRefrigerantOperatingChargeInventory) { | ||
| 315 | 2 | bool result(false); | |
| 316 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (condenserRefrigerantOperatingChargeInventory) { |
| 317 | 2 | result = setDouble(OS_Refrigeration_Condenser_WaterCooledFields::CondenserRefrigerantOperatingChargeInventory, | |
| 318 | 2 | condenserRefrigerantOperatingChargeInventory.get()); | |
| 319 | } else { | ||
| 320 | ✗ | resetCondenserRefrigerantOperatingChargeInventory(); | |
| 321 | ✗ | result = true; | |
| 322 | } | ||
| 323 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
|
2 | OS_ASSERT(result); |
| 324 | 2 | return result; | |
| 325 | } | ||
| 326 | |||
| 327 | ✗ | void RefrigerationCondenserWaterCooled_Impl::resetCondenserRefrigerantOperatingChargeInventory() { | |
| 328 | ✗ | bool result = setString(OS_Refrigeration_Condenser_WaterCooledFields::CondenserRefrigerantOperatingChargeInventory, ""); | |
| 329 | ✗ | OS_ASSERT(result); | |
| 330 | ✗ | } | |
| 331 | |||
| 332 | 2 | bool RefrigerationCondenserWaterCooled_Impl::setCondensateReceiverRefrigerantInventory( | |
| 333 | boost::optional<double> condensateReceiverRefrigerantInventory) { | ||
| 334 | 2 | bool result(false); | |
| 335 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (condensateReceiverRefrigerantInventory) { |
| 336 | 2 | result = setDouble(OS_Refrigeration_Condenser_WaterCooledFields::CondensateReceiverRefrigerantInventory, | |
| 337 | 2 | condensateReceiverRefrigerantInventory.get()); | |
| 338 | } else { | ||
| 339 | ✗ | resetCondensateReceiverRefrigerantInventory(); | |
| 340 | ✗ | result = true; | |
| 341 | } | ||
| 342 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
|
2 | OS_ASSERT(result); |
| 343 | 2 | return result; | |
| 344 | } | ||
| 345 | |||
| 346 | ✗ | void RefrigerationCondenserWaterCooled_Impl::resetCondensateReceiverRefrigerantInventory() { | |
| 347 | ✗ | bool result = setString(OS_Refrigeration_Condenser_WaterCooledFields::CondensateReceiverRefrigerantInventory, ""); | |
| 348 | ✗ | OS_ASSERT(result); | |
| 349 | ✗ | } | |
| 350 | |||
| 351 | bool | ||
| 352 | 2 | RefrigerationCondenserWaterCooled_Impl::setCondensatePipingRefrigerantInventory(boost::optional<double> condensatePipingRefrigerantInventory) { | |
| 353 | 2 | bool result(false); | |
| 354 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (condensatePipingRefrigerantInventory) { |
| 355 | result = | ||
| 356 | 2 | setDouble(OS_Refrigeration_Condenser_WaterCooledFields::CondensatePipingRefrigerantInventory, condensatePipingRefrigerantInventory.get()); | |
| 357 | } else { | ||
| 358 | ✗ | resetCondensatePipingRefrigerantInventory(); | |
| 359 | ✗ | result = true; | |
| 360 | } | ||
| 361 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
|
2 | OS_ASSERT(result); |
| 362 | 2 | return result; | |
| 363 | } | ||
| 364 | |||
| 365 | ✗ | void RefrigerationCondenserWaterCooled_Impl::resetCondensatePipingRefrigerantInventory() { | |
| 366 | ✗ | bool result = setString(OS_Refrigeration_Condenser_WaterCooledFields::CondensatePipingRefrigerantInventory, ""); | |
| 367 | ✗ | OS_ASSERT(result); | |
| 368 | ✗ | } | |
| 369 | |||
| 370 | 8 | boost::optional<RefrigerationSystem> RefrigerationCondenserWaterCooled_Impl::system() const { | |
| 371 | |||
| 372 | 8 | boost::optional<RefrigerationSystem> system; | |
| 373 | // We use getModelObjectSources to check if more than one | ||
| 374 | std::vector<RefrigerationSystem> systems = | ||
| 375 |
3/3✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
✓ Branch 7 taken 8 times.
|
8 | getObject<ModelObject>().getModelObjectSources<RefrigerationSystem>(RefrigerationSystem::iddObjectType()); |
| 376 | |||
| 377 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 2 taken 3 times.
|
8 | if (!systems.empty()) { |
| 378 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
|
5 | if (systems.size() > 1u) { |
| 379 | ✗ | LOG(Error, briefDescription() << " is referenced by more than one RefrigerationSystem, returning the first"); | |
| 380 | } | ||
| 381 |
1/1✓ Branch 2 taken 5 times.
|
5 | system = systems[0]; |
| 382 | } | ||
| 383 | 16 | return system; | |
| 384 | 8 | } | |
| 385 | |||
| 386 | ✗ | ComponentType RefrigerationCondenserWaterCooled_Impl::componentType() const { | |
| 387 | ✗ | return ComponentType::Cooling; | |
| 388 | } | ||
| 389 | |||
| 390 | ✗ | std::vector<FuelType> RefrigerationCondenserWaterCooled_Impl::coolingFuelTypes() const { | |
| 391 | ✗ | if (auto p_ = plantLoop()) { | |
| 392 | ✗ | return p_->coolingFuelTypes(); | |
| 393 | ✗ | } | |
| 394 | ✗ | return {}; | |
| 395 | } | ||
| 396 | |||
| 397 | ✗ | std::vector<FuelType> RefrigerationCondenserWaterCooled_Impl::heatingFuelTypes() const { | |
| 398 | ✗ | return {}; | |
| 399 | } | ||
| 400 | |||
| 401 | ✗ | std::vector<AppGFuelType> RefrigerationCondenserWaterCooled_Impl::appGHeatingFuelTypes() const { | |
| 402 | ✗ | return {}; | |
| 403 | } | ||
| 404 | |||
| 405 | } // namespace detail | ||
| 406 | |||
| 407 | 26 | RefrigerationCondenserWaterCooled::RefrigerationCondenserWaterCooled(const Model& model) | |
| 408 | 26 | : StraightComponent(RefrigerationCondenserWaterCooled::iddObjectType(), model) { | |
| 409 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 26 times.
✗ Branch 5 not taken.
|
26 | OS_ASSERT(getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()); |
| 410 | |||
| 411 | // 58000., !- Rated Effective Total Heat Rejection Rate {W} | ||
| 412 |
1/1✓ Branch 1 taken 26 times.
|
26 | setRatedEffectiveTotalHeatRejectionRate(58000.0); |
| 413 | |||
| 414 | // 29.4, !- Rated Condensing Temperature {C} | ||
| 415 |
1/1✓ Branch 1 taken 26 times.
|
26 | setRatedCondensingTemperature(29.4); |
| 416 | |||
| 417 | // 0.0, !- Rated Subcooling Temperature Difference {DeltaC} | ||
| 418 |
1/1✓ Branch 1 taken 26 times.
|
26 | setRatedSubcoolingTemperatureDifference(0.0); |
| 419 | |||
| 420 | // 10.0, !- Rated Water Inlet Temperature {C} | ||
| 421 |
1/1✓ Branch 1 taken 26 times.
|
26 | setRatedWaterInletTemperature(10.0); |
| 422 | |||
| 423 | // VariableFlow, !- Water-Cooled Loop Flow Type | ||
| 424 |
2/2✓ Branch 1 taken 26 times.
✓ Branch 4 taken 26 times.
|
26 | setWaterCooledLoopFlowType("ConstantFlow"); |
| 425 | |||
| 426 | // Brian provided value for 'ConstantFlow' | ||
| 427 |
1/1✓ Branch 1 taken 26 times.
|
26 | setWaterDesignFlowRate(0.0025); |
| 428 | |||
| 429 | // 0.003, !- Water Maximum Flow Rate {m3/s} | ||
| 430 |
1/1✓ Branch 1 taken 26 times.
|
26 | setWaterMaximumFlowRate(0.003); |
| 431 | |||
| 432 | // 55., !- Water Maximum Water Outlet Temperature {C} | ||
| 433 |
1/1✓ Branch 1 taken 26 times.
|
26 | setWaterMaximumWaterOutletTemperature(55.0); |
| 434 | |||
| 435 | // , !- Water Minimum Water Inlet Temperature {C} | ||
| 436 |
1/1✓ Branch 1 taken 26 times.
|
26 | setWaterMinimumWaterInletTemperature(10.0); |
| 437 | 26 | } | |
| 438 | |||
| 439 | 7658 | IddObjectType RefrigerationCondenserWaterCooled::iddObjectType() { | |
| 440 |
1/1✓ Branch 1 taken 7658 times.
|
7658 | return {IddObjectType::OS_Refrigeration_Condenser_WaterCooled}; |
| 441 | } | ||
| 442 | |||
| 443 | ✗ | std::vector<std::string> RefrigerationCondenserWaterCooled::waterCooledLoopFlowTypeValues() { | |
| 444 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), | |
| 445 | ✗ | OS_Refrigeration_Condenser_WaterCooledFields::WaterCooledLoopFlowType); | |
| 446 | } | ||
| 447 | |||
| 448 | 6 | boost::optional<double> RefrigerationCondenserWaterCooled::ratedEffectiveTotalHeatRejectionRate() const { | |
| 449 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->ratedEffectiveTotalHeatRejectionRate(); |
| 450 | } | ||
| 451 | |||
| 452 | 6 | double RefrigerationCondenserWaterCooled::ratedCondensingTemperature() const { | |
| 453 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->ratedCondensingTemperature(); |
| 454 | } | ||
| 455 | |||
| 456 | 6 | double RefrigerationCondenserWaterCooled::ratedSubcoolingTemperatureDifference() const { | |
| 457 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->ratedSubcoolingTemperatureDifference(); |
| 458 | } | ||
| 459 | |||
| 460 | ✗ | bool RefrigerationCondenserWaterCooled::isRatedSubcoolingTemperatureDifferenceDefaulted() const { | |
| 461 | ✗ | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->isRatedSubcoolingTemperatureDifferenceDefaulted(); | |
| 462 | } | ||
| 463 | |||
| 464 | 6 | double RefrigerationCondenserWaterCooled::ratedWaterInletTemperature() const { | |
| 465 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->ratedWaterInletTemperature(); |
| 466 | } | ||
| 467 | |||
| 468 | 7 | std::string RefrigerationCondenserWaterCooled::waterCooledLoopFlowType() const { | |
| 469 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->waterCooledLoopFlowType(); |
| 470 | } | ||
| 471 | |||
| 472 | ✗ | bool RefrigerationCondenserWaterCooled::isWaterCooledLoopFlowTypeDefaulted() const { | |
| 473 | ✗ | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->isWaterCooledLoopFlowTypeDefaulted(); | |
| 474 | } | ||
| 475 | |||
| 476 | 2 | boost::optional<Schedule> RefrigerationCondenserWaterCooled::waterOutletTemperatureSchedule() const { | |
| 477 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->waterOutletTemperatureSchedule(); |
| 478 | } | ||
| 479 | |||
| 480 | 6 | boost::optional<double> RefrigerationCondenserWaterCooled::waterDesignFlowRate() const { | |
| 481 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->waterDesignFlowRate(); |
| 482 | } | ||
| 483 | |||
| 484 | 6 | boost::optional<double> RefrigerationCondenserWaterCooled::waterMaximumFlowRate() const { | |
| 485 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->waterMaximumFlowRate(); |
| 486 | } | ||
| 487 | |||
| 488 | 9 | double RefrigerationCondenserWaterCooled::waterMaximumWaterOutletTemperature() const { | |
| 489 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->waterMaximumWaterOutletTemperature(); |
| 490 | } | ||
| 491 | |||
| 492 | ✗ | bool RefrigerationCondenserWaterCooled::isWaterMaximumWaterOutletTemperatureDefaulted() const { | |
| 493 | ✗ | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->isWaterMaximumWaterOutletTemperatureDefaulted(); | |
| 494 | } | ||
| 495 | |||
| 496 | 9 | double RefrigerationCondenserWaterCooled::waterMinimumWaterInletTemperature() const { | |
| 497 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->waterMinimumWaterInletTemperature(); |
| 498 | } | ||
| 499 | |||
| 500 | ✗ | bool RefrigerationCondenserWaterCooled::isWaterMinimumWaterInletTemperatureDefaulted() const { | |
| 501 | ✗ | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->isWaterMinimumWaterInletTemperatureDefaulted(); | |
| 502 | } | ||
| 503 | |||
| 504 | 4 | std::string RefrigerationCondenserWaterCooled::endUseSubcategory() const { | |
| 505 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->endUseSubcategory(); |
| 506 | } | ||
| 507 | |||
| 508 | ✗ | bool RefrigerationCondenserWaterCooled::isEndUseSubcategoryDefaulted() const { | |
| 509 | ✗ | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->isEndUseSubcategoryDefaulted(); | |
| 510 | } | ||
| 511 | |||
| 512 | 3 | boost::optional<double> RefrigerationCondenserWaterCooled::condenserRefrigerantOperatingChargeInventory() const { | |
| 513 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->condenserRefrigerantOperatingChargeInventory(); |
| 514 | } | ||
| 515 | |||
| 516 | 3 | boost::optional<double> RefrigerationCondenserWaterCooled::condensateReceiverRefrigerantInventory() const { | |
| 517 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->condensateReceiverRefrigerantInventory(); |
| 518 | } | ||
| 519 | |||
| 520 | 3 | boost::optional<double> RefrigerationCondenserWaterCooled::condensatePipingRefrigerantInventory() const { | |
| 521 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->condensatePipingRefrigerantInventory(); |
| 522 | } | ||
| 523 | |||
| 524 | 37 | bool RefrigerationCondenserWaterCooled::setRatedEffectiveTotalHeatRejectionRate(double ratedEffectiveTotalHeatRejectionRate) { | |
| 525 |
2/2✓ Branch 3 taken 37 times.
✓ Branch 6 taken 37 times.
|
37 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->setRatedEffectiveTotalHeatRejectionRate(ratedEffectiveTotalHeatRejectionRate); |
| 526 | } | ||
| 527 | |||
| 528 | ✗ | void RefrigerationCondenserWaterCooled::resetRatedEffectiveTotalHeatRejectionRate() { | |
| 529 | ✗ | getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->resetRatedEffectiveTotalHeatRejectionRate(); | |
| 530 | ✗ | } | |
| 531 | |||
| 532 | 28 | bool RefrigerationCondenserWaterCooled::setRatedCondensingTemperature(double ratedCondensingTemperature) { | |
| 533 |
1/1✓ Branch 3 taken 28 times.
|
28 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->setRatedCondensingTemperature(ratedCondensingTemperature); |
| 534 | } | ||
| 535 | |||
| 536 | 28 | bool RefrigerationCondenserWaterCooled::setRatedSubcoolingTemperatureDifference(double ratedSubcoolingTemperatureDifference) { | |
| 537 |
1/1✓ Branch 3 taken 28 times.
|
28 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->setRatedSubcoolingTemperatureDifference(ratedSubcoolingTemperatureDifference); |
| 538 | } | ||
| 539 | |||
| 540 | ✗ | void RefrigerationCondenserWaterCooled::resetRatedSubcoolingTemperatureDifference() { | |
| 541 | ✗ | getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->resetRatedSubcoolingTemperatureDifference(); | |
| 542 | ✗ | } | |
| 543 | |||
| 544 | 31 | bool RefrigerationCondenserWaterCooled::setRatedWaterInletTemperature(double ratedWaterInletTemperature) { | |
| 545 |
1/1✓ Branch 3 taken 31 times.
|
31 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->setRatedWaterInletTemperature(ratedWaterInletTemperature); |
| 546 | } | ||
| 547 | |||
| 548 | 29 | bool RefrigerationCondenserWaterCooled::setWaterCooledLoopFlowType(const std::string& waterCooledLoopFlowType) { | |
| 549 |
1/1✓ Branch 3 taken 29 times.
|
29 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->setWaterCooledLoopFlowType(waterCooledLoopFlowType); |
| 550 | } | ||
| 551 | |||
| 552 | 1 | void RefrigerationCondenserWaterCooled::resetWaterCooledLoopFlowType() { | |
| 553 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->resetWaterCooledLoopFlowType(); |
| 554 | 1 | } | |
| 555 | |||
| 556 | 2 | bool RefrigerationCondenserWaterCooled::setWaterOutletTemperatureSchedule(Schedule& schedule) { | |
| 557 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->setWaterOutletTemperatureSchedule(schedule); |
| 558 | } | ||
| 559 | |||
| 560 | ✗ | void RefrigerationCondenserWaterCooled::resetWaterOutletTemperatureSchedule() { | |
| 561 | ✗ | getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->resetWaterOutletTemperatureSchedule(); | |
| 562 | ✗ | } | |
| 563 | |||
| 564 | 31 | bool RefrigerationCondenserWaterCooled::setWaterDesignFlowRate(double waterDesignFlowRate) { | |
| 565 |
2/2✓ Branch 3 taken 31 times.
✓ Branch 6 taken 31 times.
|
31 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->setWaterDesignFlowRate(waterDesignFlowRate); |
| 566 | } | ||
| 567 | |||
| 568 | ✗ | void RefrigerationCondenserWaterCooled::resetWaterDesignFlowRate() { | |
| 569 | ✗ | getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->resetWaterDesignFlowRate(); | |
| 570 | ✗ | } | |
| 571 | |||
| 572 | 31 | bool RefrigerationCondenserWaterCooled::setWaterMaximumFlowRate(double waterMaximumFlowRate) { | |
| 573 |
2/2✓ Branch 3 taken 31 times.
✓ Branch 6 taken 31 times.
|
31 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->setWaterMaximumFlowRate(waterMaximumFlowRate); |
| 574 | } | ||
| 575 | |||
| 576 | ✗ | void RefrigerationCondenserWaterCooled::resetWaterMaximumFlowRate() { | |
| 577 | ✗ | getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->resetWaterMaximumFlowRate(); | |
| 578 | ✗ | } | |
| 579 | |||
| 580 | 32 | bool RefrigerationCondenserWaterCooled::setWaterMaximumWaterOutletTemperature(double waterMaximumWaterOutletTemperature) { | |
| 581 |
1/1✓ Branch 3 taken 32 times.
|
32 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->setWaterMaximumWaterOutletTemperature(waterMaximumWaterOutletTemperature); |
| 582 | } | ||
| 583 | |||
| 584 | 1 | void RefrigerationCondenserWaterCooled::resetWaterMaximumWaterOutletTemperature() { | |
| 585 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->resetWaterMaximumWaterOutletTemperature(); |
| 586 | 1 | } | |
| 587 | |||
| 588 | 32 | bool RefrigerationCondenserWaterCooled::setWaterMinimumWaterInletTemperature(double waterMinimumWaterInletTemperature) { | |
| 589 |
1/1✓ Branch 3 taken 32 times.
|
32 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->setWaterMinimumWaterInletTemperature(waterMinimumWaterInletTemperature); |
| 590 | } | ||
| 591 | |||
| 592 | 1 | void RefrigerationCondenserWaterCooled::resetWaterMinimumWaterInletTemperature() { | |
| 593 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->resetWaterMinimumWaterInletTemperature(); |
| 594 | 1 | } | |
| 595 | |||
| 596 | 1 | bool RefrigerationCondenserWaterCooled::setEndUseSubcategory(const std::string& endUseSubcategory) { | |
| 597 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->setEndUseSubcategory(endUseSubcategory); |
| 598 | } | ||
| 599 | |||
| 600 | 1 | void RefrigerationCondenserWaterCooled::resetEndUseSubcategory() { | |
| 601 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->resetEndUseSubcategory(); |
| 602 | 1 | } | |
| 603 | |||
| 604 | 2 | bool RefrigerationCondenserWaterCooled::setCondenserRefrigerantOperatingChargeInventory(double condenserRefrigerantOperatingChargeInventory) { | |
| 605 |
2/2✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
|
4 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->setCondenserRefrigerantOperatingChargeInventory( |
| 606 | 4 | condenserRefrigerantOperatingChargeInventory); | |
| 607 | } | ||
| 608 | |||
| 609 | ✗ | void RefrigerationCondenserWaterCooled::resetCondenserRefrigerantOperatingChargeInventory() { | |
| 610 | ✗ | getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->resetCondenserRefrigerantOperatingChargeInventory(); | |
| 611 | ✗ | } | |
| 612 | |||
| 613 | 2 | bool RefrigerationCondenserWaterCooled::setCondensateReceiverRefrigerantInventory(double condensateReceiverRefrigerantInventory) { | |
| 614 |
2/2✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
|
4 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->setCondensateReceiverRefrigerantInventory( |
| 615 | 4 | condensateReceiverRefrigerantInventory); | |
| 616 | } | ||
| 617 | |||
| 618 | ✗ | void RefrigerationCondenserWaterCooled::resetCondensateReceiverRefrigerantInventory() { | |
| 619 | ✗ | getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->resetCondensateReceiverRefrigerantInventory(); | |
| 620 | ✗ | } | |
| 621 | |||
| 622 | 2 | bool RefrigerationCondenserWaterCooled::setCondensatePipingRefrigerantInventory(double condensatePipingRefrigerantInventory) { | |
| 623 |
2/2✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
|
2 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->setCondensatePipingRefrigerantInventory(condensatePipingRefrigerantInventory); |
| 624 | } | ||
| 625 | |||
| 626 | ✗ | void RefrigerationCondenserWaterCooled::resetCondensatePipingRefrigerantInventory() { | |
| 627 | ✗ | getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->resetCondensatePipingRefrigerantInventory(); | |
| 628 | ✗ | } | |
| 629 | |||
| 630 | 8 | boost::optional<RefrigerationSystem> RefrigerationCondenserWaterCooled::system() const { | |
| 631 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::RefrigerationCondenserWaterCooled_Impl>()->system(); |
| 632 | } | ||
| 633 | |||
| 634 | /// @cond | ||
| 635 | 13 | RefrigerationCondenserWaterCooled::RefrigerationCondenserWaterCooled(std::shared_ptr<detail::RefrigerationCondenserWaterCooled_Impl> impl) | |
| 636 |
1/1✓ Branch 3 taken 13 times.
|
13 | : StraightComponent(std::move(impl)) {} |
| 637 | /// @endcond | ||
| 638 | |||
| 639 | } // namespace model | ||
| 640 | } // namespace openstudio | ||
| 641 |