src/model/RefrigerationCondenserCascade.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 "RefrigerationCondenserCascade.hpp" | ||
| 7 | #include "RefrigerationCondenserCascade_Impl.hpp" | ||
| 8 | |||
| 9 | #include "Model.hpp" | ||
| 10 | #include "Model_Impl.hpp" | ||
| 11 | #include "RefrigerationSystem.hpp" | ||
| 12 | #include "RefrigerationSystem_Impl.hpp" | ||
| 13 | |||
| 14 | #include <utilities/idd/IddFactory.hxx> | ||
| 15 | |||
| 16 | #include <utilities/idd/OS_Refrigeration_Condenser_Cascade_FieldEnums.hxx> | ||
| 17 | #include <utilities/idd/IddEnums.hxx> | ||
| 18 | |||
| 19 | #include "../utilities/units/Unit.hpp" | ||
| 20 | |||
| 21 | #include "../utilities/core/Assert.hpp" | ||
| 22 | |||
| 23 | namespace openstudio { | ||
| 24 | namespace model { | ||
| 25 | |||
| 26 | namespace detail { | ||
| 27 | |||
| 28 | 29 | RefrigerationCondenserCascade_Impl::RefrigerationCondenserCascade_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 29 | 29 | : ModelObject_Impl(idfObject, model, keepHandle) { | |
| 30 |
4/6✓ Branch 1 taken 29 times.
✓ Branch 4 taken 29 times.
✓ Branch 7 taken 29 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 29 times.
✗ Branch 13 not taken.
|
29 | OS_ASSERT(idfObject.iddObject().type() == RefrigerationCondenserCascade::iddObjectType()); |
| 31 | 29 | } | |
| 32 | |||
| 33 | ✗ | RefrigerationCondenserCascade_Impl::RefrigerationCondenserCascade_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, | |
| 34 | ✗ | bool keepHandle) | |
| 35 | ✗ | : ModelObject_Impl(other, model, keepHandle) { | |
| 36 | ✗ | OS_ASSERT(other.iddObject().type() == RefrigerationCondenserCascade::iddObjectType()); | |
| 37 | ✗ | } | |
| 38 | |||
| 39 | 10 | RefrigerationCondenserCascade_Impl::RefrigerationCondenserCascade_Impl(const RefrigerationCondenserCascade_Impl& other, Model_Impl* model, | |
| 40 | 10 | bool keepHandle) | |
| 41 | 10 | : ModelObject_Impl(other, model, keepHandle) {} | |
| 42 | |||
| 43 | ✗ | const std::vector<std::string>& RefrigerationCondenserCascade_Impl::outputVariableNames() const { | |
| 44 | static const std::vector<std::string> result{ | ||
| 45 | // TODO implement checks and make sure there aren't any other variables | ||
| 46 | // FOR CONDENSERS COOLING SYSTEMS SERVING CASES AND/OR WALKINS: | ||
| 47 | "Refrigeration System Condenser Heat Transfer Rate", "Refrigeration System Condenser Heat Transfer Energy", | ||
| 48 | // FOR CONDENSERS COOLING SYSTEMS SERVING AIR CHILLERS: | ||
| 49 | "Refrigeration Air Chiller System Condenser Heat Transfer Rate", "Refrigeration Air Chiller System Condenser Heat Transfer Energy" | ||
| 50 | |||
| 51 | ✗ | }; | |
| 52 | ✗ | return result; | |
| 53 | ✗ | } | |
| 54 | |||
| 55 | ✗ | IddObjectType RefrigerationCondenserCascade_Impl::iddObjectType() const { | |
| 56 | ✗ | return RefrigerationCondenserCascade::iddObjectType(); | |
| 57 | } | ||
| 58 | |||
| 59 | 4 | double RefrigerationCondenserCascade_Impl::ratedCondensingTemperature() const { | |
| 60 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Refrigeration_Condenser_CascadeFields::RatedCondensingTemperature, true); |
| 61 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 62 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 63 | } | ||
| 64 | |||
| 65 | 5 | double RefrigerationCondenserCascade_Impl::ratedApproachTemperatureDifference() const { | |
| 66 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<double> value = getDouble(OS_Refrigeration_Condenser_CascadeFields::RatedApproachTemperatureDifference, true); |
| 67 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 68 |
1/1✓ Branch 1 taken 5 times.
|
10 | return value.get(); |
| 69 | } | ||
| 70 | |||
| 71 | ✗ | bool RefrigerationCondenserCascade_Impl::isRatedApproachTemperatureDifferenceDefaulted() const { | |
| 72 | ✗ | return isEmpty(OS_Refrigeration_Condenser_CascadeFields::RatedApproachTemperatureDifference); | |
| 73 | } | ||
| 74 | |||
| 75 | 4 | double RefrigerationCondenserCascade_Impl::ratedEffectiveTotalHeatRejectionRate() const { | |
| 76 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Refrigeration_Condenser_CascadeFields::RatedEffectiveTotalHeatRejectionRate, true); |
| 77 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 78 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 79 | } | ||
| 80 | |||
| 81 | 6 | std::string RefrigerationCondenserCascade_Impl::condensingTemperatureControlType() const { | |
| 82 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<std::string> value = getString(OS_Refrigeration_Condenser_CascadeFields::CondensingTemperatureControlType, true); |
| 83 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 84 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
12 | return value.get(); |
| 85 | 6 | } | |
| 86 | |||
| 87 | ✗ | bool RefrigerationCondenserCascade_Impl::isCondensingTemperatureControlTypeDefaulted() const { | |
| 88 | ✗ | return isEmpty(OS_Refrigeration_Condenser_CascadeFields::CondensingTemperatureControlType); | |
| 89 | } | ||
| 90 | |||
| 91 | 2 | boost::optional<double> RefrigerationCondenserCascade_Impl::condenserRefrigerantOperatingChargeInventory() const { | |
| 92 | 2 | return getDouble(OS_Refrigeration_Condenser_CascadeFields::CondenserRefrigerantOperatingChargeInventory, true); | |
| 93 | } | ||
| 94 | |||
| 95 | 2 | boost::optional<double> RefrigerationCondenserCascade_Impl::condensateReceiverRefrigerantInventory() const { | |
| 96 | 2 | return getDouble(OS_Refrigeration_Condenser_CascadeFields::CondensateReceiverRefrigerantInventory, true); | |
| 97 | } | ||
| 98 | |||
| 99 | 2 | boost::optional<double> RefrigerationCondenserCascade_Impl::condensatePipingRefrigerantInventory() const { | |
| 100 | 2 | return getDouble(OS_Refrigeration_Condenser_CascadeFields::CondensatePipingRefrigerantInventory, true); | |
| 101 | } | ||
| 102 | |||
| 103 | 31 | bool RefrigerationCondenserCascade_Impl::setRatedCondensingTemperature(double ratedCondensingTemperature) { | |
| 104 | 31 | bool result = setDouble(OS_Refrigeration_Condenser_CascadeFields::RatedCondensingTemperature, ratedCondensingTemperature); | |
| 105 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 31 times.
|
31 | OS_ASSERT(result); |
| 106 | 31 | return result; | |
| 107 | } | ||
| 108 | |||
| 109 | 34 | bool RefrigerationCondenserCascade_Impl::setRatedApproachTemperatureDifference(double ratedApproachTemperatureDifference) { | |
| 110 | 34 | bool result = setDouble(OS_Refrigeration_Condenser_CascadeFields::RatedApproachTemperatureDifference, ratedApproachTemperatureDifference); | |
| 111 | 34 | return result; | |
| 112 | } | ||
| 113 | |||
| 114 | 1 | void RefrigerationCondenserCascade_Impl::resetRatedApproachTemperatureDifference() { | |
| 115 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Refrigeration_Condenser_CascadeFields::RatedApproachTemperatureDifference, ""); |
| 116 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 117 | 1 | } | |
| 118 | |||
| 119 | 34 | bool RefrigerationCondenserCascade_Impl::setRatedEffectiveTotalHeatRejectionRate(double ratedEffectiveTotalHeatRejectionRate) { | |
| 120 | 34 | bool result = setDouble(OS_Refrigeration_Condenser_CascadeFields::RatedEffectiveTotalHeatRejectionRate, ratedEffectiveTotalHeatRejectionRate); | |
| 121 | 34 | return result; | |
| 122 | } | ||
| 123 | |||
| 124 | 32 | bool RefrigerationCondenserCascade_Impl::setCondensingTemperatureControlType(const std::string& condensingTemperatureControlType) { | |
| 125 | 32 | bool result = setString(OS_Refrigeration_Condenser_CascadeFields::CondensingTemperatureControlType, condensingTemperatureControlType); | |
| 126 | 32 | return result; | |
| 127 | } | ||
| 128 | |||
| 129 | 1 | void RefrigerationCondenserCascade_Impl::resetCondensingTemperatureControlType() { | |
| 130 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Refrigeration_Condenser_CascadeFields::CondensingTemperatureControlType, ""); |
| 131 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 132 | 1 | } | |
| 133 | |||
| 134 | 2 | bool RefrigerationCondenserCascade_Impl::setCondenserRefrigerantOperatingChargeInventory( | |
| 135 | boost::optional<double> condenserRefrigerantOperatingChargeInventory) { | ||
| 136 | 2 | bool result(false); | |
| 137 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (condenserRefrigerantOperatingChargeInventory) { |
| 138 | 2 | result = setDouble(OS_Refrigeration_Condenser_CascadeFields::CondenserRefrigerantOperatingChargeInventory, | |
| 139 | 2 | condenserRefrigerantOperatingChargeInventory.get()); | |
| 140 | } else { | ||
| 141 | ✗ | resetCondenserRefrigerantOperatingChargeInventory(); | |
| 142 | ✗ | result = true; | |
| 143 | } | ||
| 144 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
|
2 | OS_ASSERT(result); |
| 145 | 2 | return result; | |
| 146 | } | ||
| 147 | |||
| 148 | ✗ | void RefrigerationCondenserCascade_Impl::resetCondenserRefrigerantOperatingChargeInventory() { | |
| 149 | ✗ | bool result = setString(OS_Refrigeration_Condenser_CascadeFields::CondenserRefrigerantOperatingChargeInventory, ""); | |
| 150 | ✗ | OS_ASSERT(result); | |
| 151 | ✗ | } | |
| 152 | |||
| 153 | bool | ||
| 154 | 2 | RefrigerationCondenserCascade_Impl::setCondensateReceiverRefrigerantInventory(boost::optional<double> condensateReceiverRefrigerantInventory) { | |
| 155 | 2 | bool result(false); | |
| 156 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (condensateReceiverRefrigerantInventory) { |
| 157 | result = | ||
| 158 | 2 | setDouble(OS_Refrigeration_Condenser_CascadeFields::CondensateReceiverRefrigerantInventory, condensateReceiverRefrigerantInventory.get()); | |
| 159 | } else { | ||
| 160 | ✗ | resetCondensateReceiverRefrigerantInventory(); | |
| 161 | ✗ | result = true; | |
| 162 | } | ||
| 163 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
|
2 | OS_ASSERT(result); |
| 164 | 2 | return result; | |
| 165 | } | ||
| 166 | |||
| 167 | ✗ | void RefrigerationCondenserCascade_Impl::resetCondensateReceiverRefrigerantInventory() { | |
| 168 | ✗ | bool result = setString(OS_Refrigeration_Condenser_CascadeFields::CondensateReceiverRefrigerantInventory, ""); | |
| 169 | ✗ | OS_ASSERT(result); | |
| 170 | ✗ | } | |
| 171 | |||
| 172 | 2 | bool RefrigerationCondenserCascade_Impl::setCondensatePipingRefrigerantInventory(boost::optional<double> condensatePipingRefrigerantInventory) { | |
| 173 | 2 | bool result(false); | |
| 174 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (condensatePipingRefrigerantInventory) { |
| 175 | result = | ||
| 176 | 2 | setDouble(OS_Refrigeration_Condenser_CascadeFields::CondensatePipingRefrigerantInventory, condensatePipingRefrigerantInventory.get()); | |
| 177 | } else { | ||
| 178 | ✗ | resetCondensatePipingRefrigerantInventory(); | |
| 179 | ✗ | result = true; | |
| 180 | } | ||
| 181 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
|
2 | OS_ASSERT(result); |
| 182 | 2 | return result; | |
| 183 | } | ||
| 184 | |||
| 185 | ✗ | void RefrigerationCondenserCascade_Impl::resetCondensatePipingRefrigerantInventory() { | |
| 186 | ✗ | bool result = setString(OS_Refrigeration_Condenser_CascadeFields::CondensatePipingRefrigerantInventory, ""); | |
| 187 | ✗ | OS_ASSERT(result); | |
| 188 | ✗ | } | |
| 189 | |||
| 190 | 21 | boost::optional<RefrigerationSystem> RefrigerationCondenserCascade_Impl::system() const { | |
| 191 | 21 | boost::optional<RefrigerationSystem> result; | |
| 192 | |||
| 193 |
1/1✓ Branch 1 taken 21 times.
|
21 | auto refrigerationCondenserCascade = this->getObject<RefrigerationCondenserCascade>(); |
| 194 |
4/4✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
✓ Branch 12 taken 36 times.
✓ Branch 13 taken 18 times.
|
54 | for (const RefrigerationSystem& refrigerationSystem : this->model().getConcreteModelObjects<RefrigerationSystem>()) { |
| 195 |
1/1✓ Branch 1 taken 36 times.
|
36 | RefrigerationCondenserCascadeVector refrigerationCondenserCascades = refrigerationSystem.cascadeCondenserLoads(); |
| 196 | 36 | if (!refrigerationCondenserCascades.empty() | |
| 197 |
3/3✓ Branch 0 taken 7 times.
✓ Branch 1 taken 29 times.
✓ Branch 5 taken 7 times.
|
50 | && std::find(refrigerationCondenserCascades.begin(), refrigerationCondenserCascades.end(), refrigerationCondenserCascade) |
| 198 |
4/4✓ Branch 2 taken 3 times.
✓ Branch 3 taken 4 times.
✓ Branch 4 taken 3 times.
✓ Branch 5 taken 33 times.
|
50 | != refrigerationCondenserCascades.end()) { |
| 199 |
1/1✓ Branch 1 taken 3 times.
|
3 | result = refrigerationSystem; |
| 200 | 3 | break; | |
| 201 | } | ||
| 202 | 57 | } | |
| 203 | |||
| 204 | 42 | return result; | |
| 205 | 21 | } | |
| 206 | |||
| 207 | 4 | void RefrigerationCondenserCascade_Impl::removeFromSystem() { | |
| 208 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 2 times.
|
8 | if (boost::optional<RefrigerationSystem> refrigerationSystem = this->system()) { |
| 209 |
1/1✓ Branch 1 taken 2 times.
|
2 | auto refrigerationCondenserCascade = this->getObject<RefrigerationCondenserCascade>(); |
| 210 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | refrigerationSystem->removeCascadeCondenserLoad(refrigerationCondenserCascade); |
| 211 | 6 | } | |
| 212 | 4 | } | |
| 213 | |||
| 214 | 13 | boost::optional<RefrigerationSystem> RefrigerationCondenserCascade_Impl::heatRejectingSystem() const { | |
| 215 | 13 | boost::optional<RefrigerationSystem> result; | |
| 216 | |||
| 217 |
1/1✓ Branch 1 taken 13 times.
|
13 | auto refrigerationCondenserCascade = this->getObject<RefrigerationCondenserCascade>(); |
| 218 |
4/4✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
✓ Branch 12 taken 26 times.
✓ Branch 13 taken 8 times.
|
34 | for (const RefrigerationSystem& refrigerationSystem : this->model().getConcreteModelObjects<RefrigerationSystem>()) { |
| 219 |
3/3✓ Branch 1 taken 26 times.
✓ Branch 3 taken 10 times.
✓ Branch 4 taken 16 times.
|
52 | if (auto cond = refrigerationSystem.refrigerationCondenser()) { |
| 220 |
4/4✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
✓ Branch 6 taken 5 times.
✓ Branch 7 taken 5 times.
|
10 | if (cond.get() == refrigerationCondenserCascade) { |
| 221 |
1/1✓ Branch 1 taken 5 times.
|
5 | result = refrigerationSystem; |
| 222 | 5 | break; | |
| 223 | } | ||
| 224 | 26 | } | |
| 225 | 13 | } | |
| 226 | 26 | return result; | |
| 227 | 13 | } | |
| 228 | |||
| 229 | ✗ | void RefrigerationCondenserCascade_Impl::removeFromHeatRejectingSystem() { | |
| 230 | ✗ | if (boost::optional<RefrigerationSystem> refrigerationSystem = this->heatRejectingSystem()) { | |
| 231 | ✗ | refrigerationSystem->resetRefrigerationCondenser(); | |
| 232 | ✗ | } | |
| 233 | ✗ | } | |
| 234 | |||
| 235 | 4 | std::vector<IdfObject> RefrigerationCondenserCascade_Impl::remove() { | |
| 236 | // Remove from ModelObjectList in RefrigerationSystem(s) if needed | ||
| 237 | 4 | this->removeFromSystem(); | |
| 238 | |||
| 239 | // It's uncessary to remove it from the heatRejectingSystem since it's a classic object-list field | ||
| 240 | |||
| 241 | 4 | return ModelObject_Impl::remove(); | |
| 242 | } | ||
| 243 | |||
| 244 | } // namespace detail | ||
| 245 | |||
| 246 | 29 | RefrigerationCondenserCascade::RefrigerationCondenserCascade(const Model& model) | |
| 247 | 29 | : ModelObject(RefrigerationCondenserCascade::iddObjectType(), model) { | |
| 248 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 29 times.
✗ Branch 5 not taken.
|
29 | OS_ASSERT(getImpl<detail::RefrigerationCondenserCascade_Impl>()); |
| 249 | |||
| 250 | // -4.0, !- Rated Condensing Temperature {C} | ||
| 251 |
1/1✓ Branch 1 taken 29 times.
|
29 | setRatedCondensingTemperature(-4.0); |
| 252 | |||
| 253 | // 3., !- Rated Approach Temperature Difference {DeltaC} | ||
| 254 |
1/1✓ Branch 1 taken 29 times.
|
29 | setRatedApproachTemperatureDifference(3.0); |
| 255 | |||
| 256 | // 20000., !- Rated Effective Total Heat Rejection Rate {W} | ||
| 257 |
1/1✓ Branch 1 taken 29 times.
|
29 | setRatedEffectiveTotalHeatRejectionRate(20000.0); |
| 258 | |||
| 259 | // Fixed; !- Condensing Temperature Control Type | ||
| 260 |
2/2✓ Branch 1 taken 29 times.
✓ Branch 4 taken 29 times.
|
29 | setCondensingTemperatureControlType("Fixed"); |
| 261 | 29 | } | |
| 262 | |||
| 263 | 7673 | IddObjectType RefrigerationCondenserCascade::iddObjectType() { | |
| 264 |
1/1✓ Branch 1 taken 7673 times.
|
7673 | return {IddObjectType::OS_Refrigeration_Condenser_Cascade}; |
| 265 | } | ||
| 266 | |||
| 267 | ✗ | std::vector<std::string> RefrigerationCondenserCascade::condensingTemperatureControlTypeValues() { | |
| 268 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), | |
| 269 | ✗ | OS_Refrigeration_Condenser_CascadeFields::CondensingTemperatureControlType); | |
| 270 | } | ||
| 271 | |||
| 272 | 4 | double RefrigerationCondenserCascade::ratedCondensingTemperature() const { | |
| 273 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::RefrigerationCondenserCascade_Impl>()->ratedCondensingTemperature(); |
| 274 | } | ||
| 275 | |||
| 276 | 5 | double RefrigerationCondenserCascade::ratedApproachTemperatureDifference() const { | |
| 277 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::RefrigerationCondenserCascade_Impl>()->ratedApproachTemperatureDifference(); |
| 278 | } | ||
| 279 | |||
| 280 | ✗ | bool RefrigerationCondenserCascade::isRatedApproachTemperatureDifferenceDefaulted() const { | |
| 281 | ✗ | return getImpl<detail::RefrigerationCondenserCascade_Impl>()->isRatedApproachTemperatureDifferenceDefaulted(); | |
| 282 | } | ||
| 283 | |||
| 284 | 4 | double RefrigerationCondenserCascade::ratedEffectiveTotalHeatRejectionRate() const { | |
| 285 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::RefrigerationCondenserCascade_Impl>()->ratedEffectiveTotalHeatRejectionRate(); |
| 286 | } | ||
| 287 | |||
| 288 | 6 | std::string RefrigerationCondenserCascade::condensingTemperatureControlType() const { | |
| 289 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::RefrigerationCondenserCascade_Impl>()->condensingTemperatureControlType(); |
| 290 | } | ||
| 291 | |||
| 292 | ✗ | bool RefrigerationCondenserCascade::isCondensingTemperatureControlTypeDefaulted() const { | |
| 293 | ✗ | return getImpl<detail::RefrigerationCondenserCascade_Impl>()->isCondensingTemperatureControlTypeDefaulted(); | |
| 294 | } | ||
| 295 | |||
| 296 | 2 | boost::optional<double> RefrigerationCondenserCascade::condenserRefrigerantOperatingChargeInventory() const { | |
| 297 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefrigerationCondenserCascade_Impl>()->condenserRefrigerantOperatingChargeInventory(); |
| 298 | } | ||
| 299 | |||
| 300 | 2 | boost::optional<double> RefrigerationCondenserCascade::condensateReceiverRefrigerantInventory() const { | |
| 301 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefrigerationCondenserCascade_Impl>()->condensateReceiverRefrigerantInventory(); |
| 302 | } | ||
| 303 | |||
| 304 | 2 | boost::optional<double> RefrigerationCondenserCascade::condensatePipingRefrigerantInventory() const { | |
| 305 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefrigerationCondenserCascade_Impl>()->condensatePipingRefrigerantInventory(); |
| 306 | } | ||
| 307 | |||
| 308 | 31 | bool RefrigerationCondenserCascade::setRatedCondensingTemperature(double ratedCondensingTemperature) { | |
| 309 |
1/1✓ Branch 3 taken 31 times.
|
31 | return getImpl<detail::RefrigerationCondenserCascade_Impl>()->setRatedCondensingTemperature(ratedCondensingTemperature); |
| 310 | } | ||
| 311 | |||
| 312 | 34 | bool RefrigerationCondenserCascade::setRatedApproachTemperatureDifference(double ratedApproachTemperatureDifference) { | |
| 313 |
1/1✓ Branch 3 taken 34 times.
|
34 | return getImpl<detail::RefrigerationCondenserCascade_Impl>()->setRatedApproachTemperatureDifference(ratedApproachTemperatureDifference); |
| 314 | } | ||
| 315 | |||
| 316 | 1 | void RefrigerationCondenserCascade::resetRatedApproachTemperatureDifference() { | |
| 317 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RefrigerationCondenserCascade_Impl>()->resetRatedApproachTemperatureDifference(); |
| 318 | 1 | } | |
| 319 | |||
| 320 | 34 | bool RefrigerationCondenserCascade::setRatedEffectiveTotalHeatRejectionRate(double ratedEffectiveTotalHeatRejectionRate) { | |
| 321 |
1/1✓ Branch 3 taken 34 times.
|
34 | return getImpl<detail::RefrigerationCondenserCascade_Impl>()->setRatedEffectiveTotalHeatRejectionRate(ratedEffectiveTotalHeatRejectionRate); |
| 322 | } | ||
| 323 | |||
| 324 | 32 | bool RefrigerationCondenserCascade::setCondensingTemperatureControlType(const std::string& condensingTemperatureControlType) { | |
| 325 |
1/1✓ Branch 3 taken 32 times.
|
32 | return getImpl<detail::RefrigerationCondenserCascade_Impl>()->setCondensingTemperatureControlType(condensingTemperatureControlType); |
| 326 | } | ||
| 327 | |||
| 328 | 1 | void RefrigerationCondenserCascade::resetCondensingTemperatureControlType() { | |
| 329 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RefrigerationCondenserCascade_Impl>()->resetCondensingTemperatureControlType(); |
| 330 | 1 | } | |
| 331 | |||
| 332 | 2 | bool RefrigerationCondenserCascade::setCondenserRefrigerantOperatingChargeInventory(double condenserRefrigerantOperatingChargeInventory) { | |
| 333 |
2/2✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
|
4 | return getImpl<detail::RefrigerationCondenserCascade_Impl>()->setCondenserRefrigerantOperatingChargeInventory( |
| 334 | 4 | condenserRefrigerantOperatingChargeInventory); | |
| 335 | } | ||
| 336 | |||
| 337 | ✗ | void RefrigerationCondenserCascade::resetCondenserRefrigerantOperatingChargeInventory() { | |
| 338 | ✗ | getImpl<detail::RefrigerationCondenserCascade_Impl>()->resetCondenserRefrigerantOperatingChargeInventory(); | |
| 339 | ✗ | } | |
| 340 | |||
| 341 | 2 | bool RefrigerationCondenserCascade::setCondensateReceiverRefrigerantInventory(double condensateReceiverRefrigerantInventory) { | |
| 342 |
2/2✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
|
2 | return getImpl<detail::RefrigerationCondenserCascade_Impl>()->setCondensateReceiverRefrigerantInventory(condensateReceiverRefrigerantInventory); |
| 343 | } | ||
| 344 | |||
| 345 | ✗ | void RefrigerationCondenserCascade::resetCondensateReceiverRefrigerantInventory() { | |
| 346 | ✗ | getImpl<detail::RefrigerationCondenserCascade_Impl>()->resetCondensateReceiverRefrigerantInventory(); | |
| 347 | ✗ | } | |
| 348 | |||
| 349 | 2 | bool RefrigerationCondenserCascade::setCondensatePipingRefrigerantInventory(double condensatePipingRefrigerantInventory) { | |
| 350 |
2/2✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
|
2 | return getImpl<detail::RefrigerationCondenserCascade_Impl>()->setCondensatePipingRefrigerantInventory(condensatePipingRefrigerantInventory); |
| 351 | } | ||
| 352 | |||
| 353 | ✗ | void RefrigerationCondenserCascade::resetCondensatePipingRefrigerantInventory() { | |
| 354 | ✗ | getImpl<detail::RefrigerationCondenserCascade_Impl>()->resetCondensatePipingRefrigerantInventory(); | |
| 355 | ✗ | } | |
| 356 | |||
| 357 | 17 | boost::optional<RefrigerationSystem> RefrigerationCondenserCascade::system() const { | |
| 358 |
1/1✓ Branch 3 taken 17 times.
|
17 | return getImpl<detail::RefrigerationCondenserCascade_Impl>()->system(); |
| 359 | } | ||
| 360 | |||
| 361 | ✗ | void RefrigerationCondenserCascade::removeFromSystem() { | |
| 362 | ✗ | getImpl<detail::RefrigerationCondenserCascade_Impl>()->removeFromSystem(); | |
| 363 | ✗ | } | |
| 364 | |||
| 365 | 13 | boost::optional<RefrigerationSystem> RefrigerationCondenserCascade::heatRejectingSystem() const { | |
| 366 |
1/1✓ Branch 3 taken 13 times.
|
13 | return getImpl<detail::RefrigerationCondenserCascade_Impl>()->heatRejectingSystem(); |
| 367 | } | ||
| 368 | |||
| 369 | ✗ | void RefrigerationCondenserCascade::removeFromHeatRejectingSystem() { | |
| 370 | ✗ | getImpl<detail::RefrigerationCondenserCascade_Impl>()->removeFromHeatRejectingSystem(); | |
| 371 | ✗ | } | |
| 372 | |||
| 373 | /// @cond | ||
| 374 | 84 | RefrigerationCondenserCascade::RefrigerationCondenserCascade(std::shared_ptr<detail::RefrigerationCondenserCascade_Impl> impl) | |
| 375 |
1/1✓ Branch 3 taken 84 times.
|
84 | : ModelObject(std::move(impl)) {} |
| 376 | /// @endcond | ||
| 377 | |||
| 378 | } // namespace model | ||
| 379 | } // namespace openstudio | ||
| 380 |