src/model/RefrigerationSecondarySystem.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 "RefrigerationSecondarySystem.hpp" | ||
| 7 | #include "RefrigerationSecondarySystem_Impl.hpp" | ||
| 8 | |||
| 9 | #include "ModelObjectList.hpp" | ||
| 10 | #include "ModelObjectList_Impl.hpp" | ||
| 11 | #include "CurveCubic.hpp" | ||
| 12 | #include "CurveCubic_Impl.hpp" | ||
| 13 | #include "ThermalZone.hpp" | ||
| 14 | #include "ThermalZone_Impl.hpp" | ||
| 15 | #include "RefrigerationAirChiller.hpp" | ||
| 16 | #include "RefrigerationAirChiller_Impl.hpp" | ||
| 17 | #include "RefrigerationCase.hpp" | ||
| 18 | #include "RefrigerationCase_Impl.hpp" | ||
| 19 | #include "RefrigerationWalkIn.hpp" | ||
| 20 | #include "RefrigerationWalkIn_Impl.hpp" | ||
| 21 | #include "Model.hpp" | ||
| 22 | #include "Model_Impl.hpp" | ||
| 23 | #include "RefrigerationSystem.hpp" | ||
| 24 | #include "RefrigerationSystem_Impl.hpp" | ||
| 25 | |||
| 26 | #include <utilities/idd/IddFactory.hxx> | ||
| 27 | |||
| 28 | #include <utilities/idd/OS_Refrigeration_SecondarySystem_FieldEnums.hxx> | ||
| 29 | #include <utilities/idd/IddEnums.hxx> | ||
| 30 | |||
| 31 | #include "../utilities/units/Unit.hpp" | ||
| 32 | |||
| 33 | #include "../utilities/core/Assert.hpp" | ||
| 34 | |||
| 35 | namespace openstudio { | ||
| 36 | namespace model { | ||
| 37 | |||
| 38 | namespace detail { | ||
| 39 | |||
| 40 | 35 | RefrigerationSecondarySystem_Impl::RefrigerationSecondarySystem_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 41 | 35 | : ParentObject_Impl(idfObject, model, keepHandle) { | |
| 42 |
4/6✓ Branch 1 taken 35 times.
✓ Branch 4 taken 35 times.
✓ Branch 7 taken 35 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 35 times.
✗ Branch 13 not taken.
|
35 | OS_ASSERT(idfObject.iddObject().type() == RefrigerationSecondarySystem::iddObjectType()); |
| 43 | 35 | } | |
| 44 | |||
| 45 | ✗ | RefrigerationSecondarySystem_Impl::RefrigerationSecondarySystem_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, | |
| 46 | ✗ | bool keepHandle) | |
| 47 | ✗ | : ParentObject_Impl(other, model, keepHandle) { | |
| 48 | ✗ | OS_ASSERT(other.iddObject().type() == RefrigerationSecondarySystem::iddObjectType()); | |
| 49 | ✗ | } | |
| 50 | |||
| 51 | 8 | RefrigerationSecondarySystem_Impl::RefrigerationSecondarySystem_Impl(const RefrigerationSecondarySystem_Impl& other, Model_Impl* model, | |
| 52 | 8 | bool keepHandle) | |
| 53 | 8 | : ParentObject_Impl(other, model, keepHandle) {} | |
| 54 | |||
| 55 | ✗ | const std::vector<std::string>& RefrigerationSecondarySystem_Impl::outputVariableNames() const { | |
| 56 | static const std::vector<std::string> result{ | ||
| 57 | // TODO: implement checks | ||
| 58 | // FOR SECONDARY SYSTEMS SERVING CASES AND/OR WALKINS: | ||
| 59 | "Refrigeration Secondary Loop Pump Electricity Rate", "Refrigeration Secondary Loop Pump Electricity Energy", | ||
| 60 | "Refrigeration Secondary Loop Load Heat Transfer Rate", "Refrigeration Secondary Loop Load Heat Transfer Energy", | ||
| 61 | "Refrigeration Secondary Loop Total Heat Transfer Rate", "Refrigeration Secondary Loop Total Heat Transfer Energy", | ||
| 62 | "Refrigeration Secondary Loop Estimated Refrigerant Inventory Mass", "Refrigeration Secondary Loop Pipe Heat Gain Rate", | ||
| 63 | "Refrigeration Secondary Loop Pipe Heat Gain Energy", "Refrigeration Secondary Loop Receiver Heat Gain Rate", | ||
| 64 | "Refrigeration Secondary Loop Receiver Heat Gain Energy", | ||
| 65 | // FOR SECONDARY SYSTEMS SERVING AIR CHILLERS: | ||
| 66 | "Refrigeration Air Chiller Secondary Loop Pump Electricity Rate", "Refrigeration Air Chiller Secondary Loop Pump Electricity Energy", | ||
| 67 | "Refrigeration Air Chiller Secondary Loop Load Heat Transfer Rate", "Refrigeration Air Chiller Secondary Loop Load Heat Transfer Energy", | ||
| 68 | "Refrigeration Air Chiller Secondary Loop Total Heat Transfer Rate", "Refrigeration Air Chiller Secondary Loop Total Heat Transfer Energy", | ||
| 69 | "Refrigeration Air Chiller Secondary Loop Estimated Refrigerant Inventory Mass", "Refrigeration Air Chiller Secondary Loop Volume Flow Rate", | ||
| 70 | "Refrigeration Air Chiller Secondary Loop Pipe Heat Gain Rate", "Refrigeration Air Chiller Secondary Loop Pipe Heat Gain Energy", | ||
| 71 | ✗ | "Refrigeration Air Chiller Secondary Loop Receiver Heat Gain Rate", "Refrigeration Air Chiller Secondary Loop Receiver Heat Gain Energy"}; | |
| 72 | ✗ | return result; | |
| 73 | ✗ | } | |
| 74 | |||
| 75 | ✗ | IddObjectType RefrigerationSecondarySystem_Impl::iddObjectType() const { | |
| 76 | ✗ | return RefrigerationSecondarySystem::iddObjectType(); | |
| 77 | } | ||
| 78 | |||
| 79 | 3 | std::vector<IdfObject> RefrigerationSecondarySystem_Impl::remove() { | |
| 80 | 3 | std::vector<IdfObject> result; | |
| 81 | |||
| 82 | // Remove from ModelObjectList in RefrigerationSystem(s) if needed | ||
| 83 |
1/1✓ Branch 1 taken 3 times.
|
3 | this->removeFromSystem(); |
| 84 | |||
| 85 |
2/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 3 times.
✗ Branch 4 not taken.
|
6 | if (boost::optional<ModelObjectList> caseAndWalkinList = this->refrigeratedCaseAndWalkInList()) { |
| 86 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | std::vector<IdfObject> removedCasesAndWalkins = caseAndWalkinList->remove(); |
| 87 |
1/1✓ Branch 5 taken 3 times.
|
3 | result.insert(result.end(), removedCasesAndWalkins.begin(), removedCasesAndWalkins.end()); |
| 88 | 6 | } | |
| 89 | |||
| 90 |
1/1✓ Branch 1 taken 3 times.
|
3 | std::vector<IdfObject> removedRefrigerationSecondarySystem = ParentObject_Impl::remove(); |
| 91 |
1/1✓ Branch 5 taken 3 times.
|
3 | result.insert(result.end(), removedRefrigerationSecondarySystem.begin(), removedRefrigerationSecondarySystem.end()); |
| 92 | |||
| 93 | 6 | return result; | |
| 94 | 3 | } | |
| 95 | |||
| 96 | 4 | ModelObject RefrigerationSecondarySystem_Impl::clone(Model model) const { | |
| 97 |
3/3✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
|
4 | auto modelObjectClone = ModelObject_Impl::clone(model).cast<RefrigerationSecondarySystem>(); |
| 98 | |||
| 99 |
2/3✓ Branch 1 taken 4 times.
✓ Branch 3 taken 4 times.
✗ Branch 4 not taken.
|
8 | if (boost::optional<ModelObjectList> caseAndWalkinList = this->refrigeratedCaseAndWalkInList()) { |
| 100 |
4/4✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
|
4 | auto caseAndWalkinListClone = caseAndWalkinList->clone(model).cast<ModelObjectList>(); |
| 101 |
2/2✓ Branch 3 taken 4 times.
✓ Branch 6 taken 4 times.
|
4 | modelObjectClone.getImpl<detail::RefrigerationSecondarySystem_Impl>()->setRefrigeratedCaseAndWalkInList(caseAndWalkinListClone); |
| 102 | 8 | } | |
| 103 | |||
| 104 |
1/1✓ Branch 1 taken 4 times.
|
4 | modelObjectClone.resetDistributionPipingZone(); |
| 105 |
1/1✓ Branch 1 taken 4 times.
|
4 | modelObjectClone.resetReceiverSeparatorZone(); |
| 106 | |||
| 107 | 8 | return std::move(modelObjectClone); | |
| 108 | 4 | } | |
| 109 | |||
| 110 | ✗ | std::vector<IddObjectType> RefrigerationSecondarySystem_Impl::allowableChildTypes() const { | |
| 111 | ✗ | std::vector<IddObjectType> result; | |
| 112 | ✗ | result.push_back(IddObjectType::OS_Curve_Cubic); | |
| 113 | ✗ | return result; | |
| 114 | ✗ | } | |
| 115 | |||
| 116 | 3 | std::vector<ModelObject> RefrigerationSecondarySystem_Impl::children() const { | |
| 117 | 3 | std::vector<ModelObject> result; | |
| 118 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 2 times.
|
6 | if (boost::optional<CurveCubic> intermediate = variableSpeedPumpCubicCurve()) { |
| 119 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | result.push_back(*intermediate); |
| 120 | 3 | } | |
| 121 | 3 | return result; | |
| 122 | ✗ | } | |
| 123 | |||
| 124 | template <class T> | ||
| 125 | 75 | std::vector<T> RefrigerationSecondarySystem_Impl::listTemplate(const boost::optional<ModelObjectList>& modelObjectList) const { | |
| 126 | 75 | std::vector<T> result; | |
| 127 | |||
| 128 |
3/6std::vector<openstudio::model::RefrigerationAirChiller, std::allocator<openstudio::model::RefrigerationAirChiller> > openstudio::model::detail::RefrigerationSecondarySystem_Impl::listTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 0 taken 33 times.
✗ Branch 1 not taken.
std::vector<openstudio::model::RefrigerationCase, std::allocator<openstudio::model::RefrigerationCase> > openstudio::model::detail::RefrigerationSecondarySystem_Impl::listTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 0 taken 21 times.
✗ Branch 1 not taken.
std::vector<openstudio::model::RefrigerationWalkIn, std::allocator<openstudio::model::RefrigerationWalkIn> > openstudio::model::detail::RefrigerationSecondarySystem_Impl::listTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 0 taken 21 times.
✗ Branch 1 not taken.
|
75 | if (modelObjectList) { |
| 129 |
6/6std::vector<openstudio::model::RefrigerationAirChiller, std::allocator<openstudio::model::RefrigerationAirChiller> > openstudio::model::detail::RefrigerationSecondarySystem_Impl::listTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
std::vector<openstudio::model::RefrigerationCase, std::allocator<openstudio::model::RefrigerationCase> > openstudio::model::detail::RefrigerationSecondarySystem_Impl::listTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
std::vector<openstudio::model::RefrigerationWalkIn, std::allocator<openstudio::model::RefrigerationWalkIn> > openstudio::model::detail::RefrigerationSecondarySystem_Impl::listTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
|
75 | std::vector<ModelObject> modelObjects = modelObjectList->modelObjects(); |
| 130 | |||
| 131 |
6/6std::vector<openstudio::model::RefrigerationAirChiller, std::allocator<openstudio::model::RefrigerationAirChiller> > openstudio::model::detail::RefrigerationSecondarySystem_Impl::listTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 6 taken 19 times.
✓ Branch 7 taken 33 times.
std::vector<openstudio::model::RefrigerationCase, std::allocator<openstudio::model::RefrigerationCase> > openstudio::model::detail::RefrigerationSecondarySystem_Impl::listTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 6 taken 17 times.
✓ Branch 7 taken 21 times.
std::vector<openstudio::model::RefrigerationWalkIn, std::allocator<openstudio::model::RefrigerationWalkIn> > openstudio::model::detail::RefrigerationSecondarySystem_Impl::listTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 6 taken 9 times.
✓ Branch 7 taken 21 times.
|
120 | for (const auto& elem : modelObjects) { |
| 132 |
3/3std::vector<openstudio::model::RefrigerationAirChiller, std::allocator<openstudio::model::RefrigerationAirChiller> > openstudio::model::detail::RefrigerationSecondarySystem_Impl::listTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 19 times.
std::vector<openstudio::model::RefrigerationCase, std::allocator<openstudio::model::RefrigerationCase> > openstudio::model::detail::RefrigerationSecondarySystem_Impl::listTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 17 times.
std::vector<openstudio::model::RefrigerationWalkIn, std::allocator<openstudio::model::RefrigerationWalkIn> > openstudio::model::detail::RefrigerationSecondarySystem_Impl::listTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 9 times.
|
45 | boost::optional<T> modelObject = elem.optionalCast<T>(); |
| 133 |
6/6std::vector<openstudio::model::RefrigerationAirChiller, std::allocator<openstudio::model::RefrigerationAirChiller> > openstudio::model::detail::RefrigerationSecondarySystem_Impl::listTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 0 taken 4 times.
✓ Branch 1 taken 15 times.
std::vector<openstudio::model::RefrigerationCase, std::allocator<openstudio::model::RefrigerationCase> > openstudio::model::detail::RefrigerationSecondarySystem_Impl::listTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 0 taken 8 times.
✓ Branch 1 taken 9 times.
std::vector<openstudio::model::RefrigerationWalkIn, std::allocator<openstudio::model::RefrigerationWalkIn> > openstudio::model::detail::RefrigerationSecondarySystem_Impl::listTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 0 taken 8 times.
✓ Branch 1 taken 1 time.
|
45 | if (modelObject) { |
| 134 |
6/6std::vector<openstudio::model::RefrigerationAirChiller, std::allocator<openstudio::model::RefrigerationAirChiller> > openstudio::model::detail::RefrigerationSecondarySystem_Impl::listTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
std::vector<openstudio::model::RefrigerationCase, std::allocator<openstudio::model::RefrigerationCase> > openstudio::model::detail::RefrigerationSecondarySystem_Impl::listTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
std::vector<openstudio::model::RefrigerationWalkIn, std::allocator<openstudio::model::RefrigerationWalkIn> > openstudio::model::detail::RefrigerationSecondarySystem_Impl::listTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
20 | result.push_back(modelObject.get()); |
| 135 | } | ||
| 136 | } | ||
| 137 | 75 | } | |
| 138 | |||
| 139 | 75 | return result; | |
| 140 | ✗ | } | |
| 141 | |||
| 142 | 21 | std::vector<RefrigerationCase> RefrigerationSecondarySystem_Impl::cases() const { | |
| 143 |
2/2✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
|
21 | return RefrigerationSecondarySystem_Impl::listTemplate<RefrigerationCase>(refrigeratedCaseAndWalkInList()); |
| 144 | } | ||
| 145 | |||
| 146 | 21 | std::vector<RefrigerationWalkIn> RefrigerationSecondarySystem_Impl::walkins() const { | |
| 147 |
2/2✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
|
21 | return RefrigerationSecondarySystem_Impl::listTemplate<RefrigerationWalkIn>(refrigeratedCaseAndWalkInList()); |
| 148 | } | ||
| 149 | |||
| 150 | 33 | std::vector<RefrigerationAirChiller> RefrigerationSecondarySystem_Impl::airChillers() const { | |
| 151 |
2/2✓ Branch 1 taken 33 times.
✓ Branch 4 taken 33 times.
|
33 | return RefrigerationSecondarySystem_Impl::listTemplate<RefrigerationAirChiller>(refrigeratedCaseAndWalkInList()); |
| 152 | } | ||
| 153 | |||
| 154 | 154 | boost::optional<ModelObjectList> RefrigerationSecondarySystem_Impl::refrigeratedCaseAndWalkInList() const { | |
| 155 |
1/1✓ Branch 1 taken 154 times.
|
308 | return getObject<ModelObject>().getModelObjectTarget<ModelObjectList>( |
| 156 |
1/1✓ Branch 1 taken 154 times.
|
308 | OS_Refrigeration_SecondarySystemFields::RefrigeratedCaseAndWalkInListName); |
| 157 | } | ||
| 158 | |||
| 159 | 4 | std::string RefrigerationSecondarySystem_Impl::circulatingFluidName() const { | |
| 160 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<std::string> value = getString(OS_Refrigeration_SecondarySystemFields::CirculatingFluidName, true); |
| 161 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 162 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | return value.get(); |
| 163 | 4 | } | |
| 164 | |||
| 165 | 6 | boost::optional<int> RefrigerationSecondarySystem_Impl::glycolConcentration() const { | |
| 166 | 6 | return getInt(OS_Refrigeration_SecondarySystemFields::GlycolConcentration, true); | |
| 167 | } | ||
| 168 | |||
| 169 | 3 | boost::optional<double> RefrigerationSecondarySystem_Impl::evaporatorCapacity() const { | |
| 170 | 3 | return getDouble(OS_Refrigeration_SecondarySystemFields::EvaporatorCapacity, true); | |
| 171 | } | ||
| 172 | |||
| 173 | 3 | boost::optional<double> RefrigerationSecondarySystem_Impl::evaporatorFlowRateforSecondaryFluid() const { | |
| 174 | 3 | return getDouble(OS_Refrigeration_SecondarySystemFields::EvaporatorFlowRateforSecondaryFluid, true); | |
| 175 | } | ||
| 176 | |||
| 177 | 3 | double RefrigerationSecondarySystem_Impl::evaporatorEvaporatingTemperature() const { | |
| 178 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_Refrigeration_SecondarySystemFields::EvaporatorEvaporatingTemperature, true); |
| 179 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 180 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 181 | } | ||
| 182 | |||
| 183 | 3 | double RefrigerationSecondarySystem_Impl::evaporatorApproachTemperatureDifference() const { | |
| 184 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_Refrigeration_SecondarySystemFields::EvaporatorApproachTemperatureDifference, true); |
| 185 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 186 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 187 | } | ||
| 188 | |||
| 189 | 3 | boost::optional<double> RefrigerationSecondarySystem_Impl::evaporatorRangeTemperatureDifference() const { | |
| 190 | 3 | return getDouble(OS_Refrigeration_SecondarySystemFields::EvaporatorRangeTemperatureDifference, true); | |
| 191 | } | ||
| 192 | |||
| 193 | 3 | int RefrigerationSecondarySystem_Impl::numberofPumpsinLoop() const { | |
| 194 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<int> value = getInt(OS_Refrigeration_SecondarySystemFields::NumberofPumpsinLoop, true); |
| 195 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 196 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 197 | } | ||
| 198 | |||
| 199 | ✗ | bool RefrigerationSecondarySystem_Impl::isNumberofPumpsinLoopDefaulted() const { | |
| 200 | ✗ | return isEmpty(OS_Refrigeration_SecondarySystemFields::NumberofPumpsinLoop); | |
| 201 | } | ||
| 202 | |||
| 203 | 3 | boost::optional<double> RefrigerationSecondarySystem_Impl::totalPumpFlowRate() const { | |
| 204 | 3 | return getDouble(OS_Refrigeration_SecondarySystemFields::TotalPumpFlowRate, true); | |
| 205 | } | ||
| 206 | |||
| 207 | ✗ | boost::optional<double> RefrigerationSecondarySystem_Impl::totalPumpPower() const { | |
| 208 | ✗ | return getDouble(OS_Refrigeration_SecondarySystemFields::TotalPumpPower, true); | |
| 209 | } | ||
| 210 | |||
| 211 | 3 | boost::optional<double> RefrigerationSecondarySystem_Impl::totalPumpHead() const { | |
| 212 | 3 | return getDouble(OS_Refrigeration_SecondarySystemFields::TotalPumpHead, true); | |
| 213 | } | ||
| 214 | |||
| 215 | ✗ | double RefrigerationSecondarySystem_Impl::phaseChangeCirculatingRate() const { | |
| 216 | ✗ | boost::optional<double> value = getDouble(OS_Refrigeration_SecondarySystemFields::PhaseChangeCirculatingRate, true); | |
| 217 | ✗ | OS_ASSERT(value); | |
| 218 | ✗ | return value.get(); | |
| 219 | } | ||
| 220 | |||
| 221 | ✗ | bool RefrigerationSecondarySystem_Impl::isPhaseChangeCirculatingRateDefaulted() const { | |
| 222 | ✗ | return isEmpty(OS_Refrigeration_SecondarySystemFields::PhaseChangeCirculatingRate); | |
| 223 | } | ||
| 224 | |||
| 225 | ✗ | std::string RefrigerationSecondarySystem_Impl::pumpDriveType() const { | |
| 226 | ✗ | boost::optional<std::string> value = getString(OS_Refrigeration_SecondarySystemFields::PumpDriveType, true); | |
| 227 | ✗ | OS_ASSERT(value); | |
| 228 | ✗ | return value.get(); | |
| 229 | ✗ | } | |
| 230 | |||
| 231 | ✗ | bool RefrigerationSecondarySystem_Impl::isPumpDriveTypeDefaulted() const { | |
| 232 | ✗ | return isEmpty(OS_Refrigeration_SecondarySystemFields::PumpDriveType); | |
| 233 | } | ||
| 234 | |||
| 235 | 6 | boost::optional<CurveCubic> RefrigerationSecondarySystem_Impl::variableSpeedPumpCubicCurve() const { | |
| 236 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | return getObject<ModelObject>().getModelObjectTarget<CurveCubic>(OS_Refrigeration_SecondarySystemFields::VariableSpeedPumpCubicCurveName); |
| 237 | } | ||
| 238 | |||
| 239 | 3 | double RefrigerationSecondarySystem_Impl::pumpMotorHeattoFluid() const { | |
| 240 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_Refrigeration_SecondarySystemFields::PumpMotorHeattoFluid, true); |
| 241 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 242 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 243 | } | ||
| 244 | |||
| 245 | ✗ | bool RefrigerationSecondarySystem_Impl::isPumpMotorHeattoFluidDefaulted() const { | |
| 246 | ✗ | return isEmpty(OS_Refrigeration_SecondarySystemFields::PumpMotorHeattoFluid); | |
| 247 | } | ||
| 248 | |||
| 249 | ✗ | double RefrigerationSecondarySystem_Impl::sumUADistributionPiping() const { | |
| 250 | ✗ | boost::optional<double> value = getDouble(OS_Refrigeration_SecondarySystemFields::SumUADistributionPiping, true); | |
| 251 | ✗ | OS_ASSERT(value); | |
| 252 | ✗ | return value.get(); | |
| 253 | } | ||
| 254 | |||
| 255 | ✗ | bool RefrigerationSecondarySystem_Impl::isSumUADistributionPipingDefaulted() const { | |
| 256 | ✗ | return isEmpty(OS_Refrigeration_SecondarySystemFields::SumUADistributionPiping); | |
| 257 | } | ||
| 258 | |||
| 259 | 1 | boost::optional<ThermalZone> RefrigerationSecondarySystem_Impl::distributionPipingZone() const { | |
| 260 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | return getObject<ModelObject>().getModelObjectTarget<ThermalZone>(OS_Refrigeration_SecondarySystemFields::DistributionPipingZoneName); |
| 261 | } | ||
| 262 | |||
| 263 | ✗ | double RefrigerationSecondarySystem_Impl::sumUAReceiverSeparatorShell() const { | |
| 264 | ✗ | boost::optional<double> value = getDouble(OS_Refrigeration_SecondarySystemFields::SumUAReceiver_SeparatorShell, true); | |
| 265 | ✗ | OS_ASSERT(value); | |
| 266 | ✗ | return value.get(); | |
| 267 | } | ||
| 268 | |||
| 269 | ✗ | bool RefrigerationSecondarySystem_Impl::isSumUAReceiverSeparatorShellDefaulted() const { | |
| 270 | ✗ | return isEmpty(OS_Refrigeration_SecondarySystemFields::SumUAReceiver_SeparatorShell); | |
| 271 | } | ||
| 272 | |||
| 273 | 1 | boost::optional<ThermalZone> RefrigerationSecondarySystem_Impl::receiverSeparatorZone() const { | |
| 274 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | return getObject<ModelObject>().getModelObjectTarget<ThermalZone>(OS_Refrigeration_SecondarySystemFields::Receiver_SeparatorZoneName); |
| 275 | } | ||
| 276 | |||
| 277 | ✗ | double RefrigerationSecondarySystem_Impl::evaporatorRefrigerantInventory() const { | |
| 278 | ✗ | boost::optional<double> value = getDouble(OS_Refrigeration_SecondarySystemFields::EvaporatorRefrigerantInventory, true); | |
| 279 | ✗ | OS_ASSERT(value); | |
| 280 | ✗ | return value.get(); | |
| 281 | } | ||
| 282 | |||
| 283 | ✗ | bool RefrigerationSecondarySystem_Impl::isEvaporatorRefrigerantInventoryDefaulted() const { | |
| 284 | ✗ | return isEmpty(OS_Refrigeration_SecondarySystemFields::EvaporatorRefrigerantInventory); | |
| 285 | } | ||
| 286 | |||
| 287 | ✗ | std::string RefrigerationSecondarySystem_Impl::endUseSubcategory() const { | |
| 288 | ✗ | boost::optional<std::string> value = getString(OS_Refrigeration_SecondarySystemFields::EndUseSubcategory, true); | |
| 289 | ✗ | OS_ASSERT(value); | |
| 290 | ✗ | return value.get(); | |
| 291 | ✗ | } | |
| 292 | |||
| 293 | ✗ | bool RefrigerationSecondarySystem_Impl::isEndUseSubcategoryDefaulted() const { | |
| 294 | ✗ | return isEmpty(OS_Refrigeration_SecondarySystemFields::EndUseSubcategory); | |
| 295 | } | ||
| 296 | |||
| 297 | template <class T> | ||
| 298 | 5 | void RefrigerationSecondarySystem_Impl::removeAllTemplate(boost::optional<ModelObjectList>& modelObjectList) { | |
| 299 |
3/6void openstudio::model::detail::RefrigerationSecondarySystem_Impl::removeAllTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
void openstudio::model::detail::RefrigerationSecondarySystem_Impl::removeAllTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
void openstudio::model::detail::RefrigerationSecondarySystem_Impl::removeAllTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
5 | if (modelObjectList) { |
| 300 |
6/6void openstudio::model::detail::RefrigerationSecondarySystem_Impl::removeAllTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
void openstudio::model::detail::RefrigerationSecondarySystem_Impl::removeAllTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
void openstudio::model::detail::RefrigerationSecondarySystem_Impl::removeAllTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
5 | std::vector<ModelObject> modelObjects = modelObjectList->modelObjects(); |
| 301 | |||
| 302 |
6/6void openstudio::model::detail::RefrigerationSecondarySystem_Impl::removeAllTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 6 taken 2 times.
✓ Branch 7 taken 1 time.
void openstudio::model::detail::RefrigerationSecondarySystem_Impl::removeAllTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 6 taken 6 times.
✓ Branch 7 taken 2 times.
void openstudio::model::detail::RefrigerationSecondarySystem_Impl::removeAllTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 6 taken 4 times.
✓ Branch 7 taken 2 times.
|
17 | for (const auto& elem : modelObjects) { |
| 303 |
3/3void openstudio::model::detail::RefrigerationSecondarySystem_Impl::removeAllTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 2 times.
void openstudio::model::detail::RefrigerationSecondarySystem_Impl::removeAllTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 6 times.
void openstudio::model::detail::RefrigerationSecondarySystem_Impl::removeAllTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 4 times.
|
12 | boost::optional<T> modelObject = elem.optionalCast<T>(); |
| 304 |
4/6void openstudio::model::detail::RefrigerationSecondarySystem_Impl::removeAllTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
void openstudio::model::detail::RefrigerationSecondarySystem_Impl::removeAllTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 4 times.
✓ Branch 1 taken 2 times.
void openstudio::model::detail::RefrigerationSecondarySystem_Impl::removeAllTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
12 | if (modelObject) { |
| 305 |
6/6void openstudio::model::detail::RefrigerationSecondarySystem_Impl::removeAllTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
void openstudio::model::detail::RefrigerationSecondarySystem_Impl::removeAllTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
void openstudio::model::detail::RefrigerationSecondarySystem_Impl::removeAllTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
10 | modelObjectList->removeModelObject(elem); |
| 306 | } | ||
| 307 | } | ||
| 308 | 5 | } | |
| 309 | 5 | } | |
| 310 | |||
| 311 | template <class T> | ||
| 312 | 10 | void RefrigerationSecondarySystem_Impl::removeTemplate(const T& modelObject, boost::optional<ModelObjectList>& modelObjectList) { | |
| 313 |
3/6void openstudio::model::detail::RefrigerationSecondarySystem_Impl::removeTemplate<openstudio::model::RefrigerationAirChiller>(openstudio::model::RefrigerationAirChiller const&, boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
void openstudio::model::detail::RefrigerationSecondarySystem_Impl::removeTemplate<openstudio::model::RefrigerationCase>(openstudio::model::RefrigerationCase const&, boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
void openstudio::model::detail::RefrigerationSecondarySystem_Impl::removeTemplate<openstudio::model::RefrigerationWalkIn>(openstudio::model::RefrigerationWalkIn const&, boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
10 | if (modelObjectList) { |
| 314 | 10 | modelObjectList->removeModelObject(modelObject); | |
| 315 | } | ||
| 316 | 10 | } | |
| 317 | |||
| 318 | template <class T> | ||
| 319 | 28 | bool RefrigerationSecondarySystem_Impl::addTemplate(const T& modelObject, boost::optional<ModelObjectList>& modelObjectList) { | |
| 320 |
3/6bool openstudio::model::detail::RefrigerationSecondarySystem_Impl::addTemplate<openstudio::model::RefrigerationAirChiller>(openstudio::model::RefrigerationAirChiller const&, boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 6 times.
✗ Branch 1 not taken.
bool openstudio::model::detail::RefrigerationSecondarySystem_Impl::addTemplate<openstudio::model::RefrigerationCase>(openstudio::model::RefrigerationCase const&, boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 11 times.
✗ Branch 1 not taken.
bool openstudio::model::detail::RefrigerationSecondarySystem_Impl::addTemplate<openstudio::model::RefrigerationWalkIn>(openstudio::model::RefrigerationWalkIn const&, boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 11 times.
✗ Branch 1 not taken.
|
28 | if (modelObjectList) { |
| 321 | 28 | return modelObjectList->addModelObject(modelObject); | |
| 322 | } | ||
| 323 | ✗ | return false; | |
| 324 | } | ||
| 325 | |||
| 326 | 11 | bool RefrigerationSecondarySystem_Impl::addCase(const RefrigerationCase& refrigerationCase) { | |
| 327 | // From 9.2 IO ref: | ||
| 328 | // > This list may contain a combination of case and walk-in names OR a list of air chiller names. | ||
| 329 | // > Air chillers may not be included in any list that also includes cases or walk-ins. | ||
| 330 |
2/3✓ Branch 1 taken 11 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 11 times.
|
11 | if (!this->airChillers().empty()) { |
| 331 | ✗ | LOG(Warn, "You cannot mix RefigerationCase/RefrigerationWalkins with RefrigerationAirChillers, occurred for " << briefDescription()); | |
| 332 | ✗ | return false; | |
| 333 | } | ||
| 334 | |||
| 335 | // Enforce unicity | ||
| 336 |
2/3✓ Branch 1 taken 11 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 11 times.
|
22 | if (boost::optional<RefrigerationSecondarySystem> currentSecondarySystem = refrigerationCase.secondarySystem()) { |
| 337 | ✗ | LOG(Warn, refrigerationCase.briefDescription() | |
| 338 | << " was removed from its existing RefrigerationSecondarySystem named '" << currentSecondarySystem->nameString() << "'."); | ||
| 339 | ✗ | currentSecondarySystem->removeCase(refrigerationCase); | |
| 340 | 11 | } | |
| 341 | |||
| 342 |
1/1✓ Branch 1 taken 11 times.
|
11 | boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList(); |
| 343 |
1/1✓ Branch 1 taken 11 times.
|
11 | return addTemplate<RefrigerationCase>(refrigerationCase, modelObjectList); |
| 344 | 11 | } | |
| 345 | |||
| 346 | 4 | void RefrigerationSecondarySystem_Impl::removeCase(const RefrigerationCase& refrigerationCase) { | |
| 347 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList(); |
| 348 |
1/1✓ Branch 1 taken 4 times.
|
4 | removeTemplate<RefrigerationCase>(refrigerationCase, modelObjectList); |
| 349 | 4 | } | |
| 350 | |||
| 351 | 2 | void RefrigerationSecondarySystem_Impl::removeAllCases() { | |
| 352 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList(); |
| 353 |
1/1✓ Branch 1 taken 2 times.
|
2 | removeAllTemplate<RefrigerationCase>(modelObjectList); |
| 354 | 2 | } | |
| 355 | |||
| 356 | 11 | bool RefrigerationSecondarySystem_Impl::addWalkin(const RefrigerationWalkIn& refrigerationWalkin) { | |
| 357 | // From 9.2 IO ref: | ||
| 358 | // > This list may contain a combination of case and walk-in names OR a list of air chiller names. | ||
| 359 | // > Air chillers may not be included in any list that also includes cases or walk-ins. | ||
| 360 |
2/3✓ Branch 1 taken 11 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 11 times.
|
11 | if (!this->airChillers().empty()) { |
| 361 | ✗ | LOG(Warn, "You cannot mix RefigerationCase/RefrigerationWalkins with RefrigerationAirChillers, occurred for " << briefDescription()); | |
| 362 | ✗ | return false; | |
| 363 | } | ||
| 364 | |||
| 365 | // Enforce unicity | ||
| 366 |
2/3✓ Branch 1 taken 11 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 11 times.
|
22 | if (boost::optional<RefrigerationSecondarySystem> currentSecondarySystem = refrigerationWalkin.secondarySystem()) { |
| 367 | ✗ | LOG(Warn, refrigerationWalkin.briefDescription() | |
| 368 | << " was removed from its existing RefrigerationSecondarySystem named '" << currentSecondarySystem->nameString() << "'."); | ||
| 369 | ✗ | currentSecondarySystem->removeWalkin(refrigerationWalkin); | |
| 370 | 11 | } | |
| 371 | |||
| 372 |
1/1✓ Branch 1 taken 11 times.
|
11 | boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList(); |
| 373 |
1/1✓ Branch 1 taken 11 times.
|
11 | return addTemplate<RefrigerationWalkIn>(refrigerationWalkin, modelObjectList); |
| 374 | 11 | } | |
| 375 | |||
| 376 | 4 | void RefrigerationSecondarySystem_Impl::removeWalkin(const RefrigerationWalkIn& refrigerationWalkin) { | |
| 377 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList(); |
| 378 |
1/1✓ Branch 1 taken 4 times.
|
4 | removeTemplate<RefrigerationWalkIn>(refrigerationWalkin, modelObjectList); |
| 379 | 4 | } | |
| 380 | |||
| 381 | 2 | void RefrigerationSecondarySystem_Impl::removeAllWalkins() { | |
| 382 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList(); |
| 383 |
1/1✓ Branch 1 taken 2 times.
|
2 | removeAllTemplate<RefrigerationWalkIn>(modelObjectList); |
| 384 | 2 | } | |
| 385 | |||
| 386 | 6 | bool RefrigerationSecondarySystem_Impl::addAirChiller(const RefrigerationAirChiller& refrigerationAirChiller) { | |
| 387 | // From 9.2 IO ref: | ||
| 388 | // > This list may contain a combination of case and walk-in names OR a list of air chiller names. | ||
| 389 | // > Air chillers may not be included in any list that also includes cases or walk-ins. | ||
| 390 |
2/3✓ Branch 1 taken 6 times.
✓ Branch 3 taken 6 times.
✗ Branch 4 not taken.
|
12 | if (boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList()) { |
| 391 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | std::vector<ModelObject> modelObjects = modelObjectList->modelObjects(); |
| 392 | |||
| 393 |
2/2✓ Branch 5 taken 2 times.
✓ Branch 6 taken 6 times.
|
8 | for (const auto& elem : modelObjects) { |
| 394 |
7/16✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 2 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 2 times.
✓ Branch 12 taken 2 times.
✗ Branch 13 not taken.
✓ Branch 15 taken 2 times.
✗ Branch 16 not taken.
✗ Branch 18 not taken.
✓ Branch 19 taken 2 times.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 23 not taken.
✗ Branch 24 not taken.
|
6 | if (elem.optionalCast<RefrigerationWalkIn>() || elem.optionalCast<RefrigerationCase>()) { |
| 395 | ✗ | LOG(Warn, "You cannot mix RefigerationCase/RefrigerationWalkins with RefrigerationAirChillers, occurred for " << briefDescription()); | |
| 396 | ✗ | return false; | |
| 397 | } | ||
| 398 | } | ||
| 399 | 12 | } | |
| 400 | |||
| 401 | // Enforce unicity | ||
| 402 |
2/3✓ Branch 1 taken 6 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 6 times.
|
12 | if (boost::optional<RefrigerationSecondarySystem> currentSecondarySystem = refrigerationAirChiller.secondarySystem()) { |
| 403 | ✗ | LOG(Warn, refrigerationAirChiller.briefDescription() | |
| 404 | << " was removed from its existing RefrigerationSecondarySystem named '" << currentSecondarySystem->nameString() << "'."); | ||
| 405 | ✗ | currentSecondarySystem->removeAirChiller(refrigerationAirChiller); | |
| 406 | 6 | } | |
| 407 | |||
| 408 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList(); |
| 409 |
1/1✓ Branch 1 taken 6 times.
|
6 | return addTemplate<RefrigerationAirChiller>(refrigerationAirChiller, modelObjectList); |
| 410 | 6 | } | |
| 411 | |||
| 412 | 2 | void RefrigerationSecondarySystem_Impl::removeAirChiller(const RefrigerationAirChiller& refrigerationAirChiller) { | |
| 413 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList(); |
| 414 |
1/1✓ Branch 1 taken 2 times.
|
2 | removeTemplate<RefrigerationAirChiller>(refrigerationAirChiller, modelObjectList); |
| 415 | 2 | } | |
| 416 | |||
| 417 | 1 | void RefrigerationSecondarySystem_Impl::removeAllAirChillers() { | |
| 418 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList(); |
| 419 |
1/1✓ Branch 1 taken 1 time.
|
1 | removeAllTemplate<RefrigerationAirChiller>(modelObjectList); |
| 420 | 1 | } | |
| 421 | |||
| 422 | 39 | bool RefrigerationSecondarySystem_Impl::setRefrigeratedCaseAndWalkInList(const boost::optional<ModelObjectList>& modelObjectList) { | |
| 423 | 39 | bool result(false); | |
| 424 |
1/2✓ Branch 0 taken 39 times.
✗ Branch 1 not taken.
|
39 | if (modelObjectList) { |
| 425 |
3/3✓ Branch 1 taken 39 times.
✓ Branch 4 taken 39 times.
✓ Branch 7 taken 39 times.
|
39 | result = setPointer(OS_Refrigeration_SecondarySystemFields::RefrigeratedCaseAndWalkInListName, modelObjectList.get().handle()); |
| 426 | } else { | ||
| 427 | ✗ | resetRefrigeratedCaseAndWalkInList(); | |
| 428 | ✗ | result = true; | |
| 429 | } | ||
| 430 | 39 | return result; | |
| 431 | } | ||
| 432 | |||
| 433 | ✗ | void RefrigerationSecondarySystem_Impl::resetRefrigeratedCaseAndWalkInList() { | |
| 434 | ✗ | bool result = setString(OS_Refrigeration_SecondarySystemFields::RefrigeratedCaseAndWalkInListName, ""); | |
| 435 | ✗ | OS_ASSERT(result); | |
| 436 | ✗ | } | |
| 437 | |||
| 438 | 40 | bool RefrigerationSecondarySystem_Impl::setCirculatingFluidName(const std::string& circulatingFluidName) { | |
| 439 | 40 | bool result = setString(OS_Refrigeration_SecondarySystemFields::CirculatingFluidName, circulatingFluidName); | |
| 440 | 40 | return result; | |
| 441 | } | ||
| 442 | |||
| 443 | 40 | bool RefrigerationSecondarySystem_Impl::setGlycolConcentration(boost::optional<int> glycolConcentration) { | |
| 444 | 40 | bool result(false); | |
| 445 |
1/2✓ Branch 0 taken 40 times.
✗ Branch 1 not taken.
|
40 | if (glycolConcentration) { |
| 446 | 40 | result = setInt(OS_Refrigeration_SecondarySystemFields::GlycolConcentration, glycolConcentration.get()); | |
| 447 | } else { | ||
| 448 | ✗ | resetGlycolConcentration(); | |
| 449 | ✗ | result = true; | |
| 450 | } | ||
| 451 | 40 | return result; | |
| 452 | } | ||
| 453 | |||
| 454 | ✗ | void RefrigerationSecondarySystem_Impl::resetGlycolConcentration() { | |
| 455 | ✗ | bool result = setString(OS_Refrigeration_SecondarySystemFields::GlycolConcentration, ""); | |
| 456 | ✗ | OS_ASSERT(result); | |
| 457 | ✗ | } | |
| 458 | |||
| 459 | 36 | bool RefrigerationSecondarySystem_Impl::setEvaporatorCapacity(boost::optional<double> evaporatorCapacity) { | |
| 460 | 36 | bool result(false); | |
| 461 |
1/2✓ Branch 0 taken 36 times.
✗ Branch 1 not taken.
|
36 | if (evaporatorCapacity) { |
| 462 | 36 | result = setDouble(OS_Refrigeration_SecondarySystemFields::EvaporatorCapacity, evaporatorCapacity.get()); | |
| 463 | } else { | ||
| 464 | ✗ | resetEvaporatorCapacity(); | |
| 465 | ✗ | result = true; | |
| 466 | } | ||
| 467 | 36 | return result; | |
| 468 | } | ||
| 469 | |||
| 470 | ✗ | void RefrigerationSecondarySystem_Impl::resetEvaporatorCapacity() { | |
| 471 | ✗ | bool result = setString(OS_Refrigeration_SecondarySystemFields::EvaporatorCapacity, ""); | |
| 472 | ✗ | OS_ASSERT(result); | |
| 473 | ✗ | } | |
| 474 | |||
| 475 | 36 | bool RefrigerationSecondarySystem_Impl::setEvaporatorFlowRateforSecondaryFluid(boost::optional<double> evaporatorFlowRateforSecondaryFluid) { | |
| 476 | 36 | bool result(false); | |
| 477 |
1/2✓ Branch 0 taken 36 times.
✗ Branch 1 not taken.
|
36 | if (evaporatorFlowRateforSecondaryFluid) { |
| 478 | 36 | result = setDouble(OS_Refrigeration_SecondarySystemFields::EvaporatorFlowRateforSecondaryFluid, evaporatorFlowRateforSecondaryFluid.get()); | |
| 479 | } else { | ||
| 480 | ✗ | resetEvaporatorFlowRateforSecondaryFluid(); | |
| 481 | ✗ | result = true; | |
| 482 | } | ||
| 483 | 36 | return result; | |
| 484 | } | ||
| 485 | |||
| 486 | ✗ | void RefrigerationSecondarySystem_Impl::resetEvaporatorFlowRateforSecondaryFluid() { | |
| 487 | ✗ | bool result = setString(OS_Refrigeration_SecondarySystemFields::EvaporatorFlowRateforSecondaryFluid, ""); | |
| 488 | ✗ | OS_ASSERT(result); | |
| 489 | ✗ | } | |
| 490 | |||
| 491 | 36 | bool RefrigerationSecondarySystem_Impl::setEvaporatorEvaporatingTemperature(double evaporatorEvaporatingTemperature) { | |
| 492 | 36 | bool result = setDouble(OS_Refrigeration_SecondarySystemFields::EvaporatorEvaporatingTemperature, evaporatorEvaporatingTemperature); | |
| 493 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 36 times.
|
36 | OS_ASSERT(result); |
| 494 | 36 | return result; | |
| 495 | } | ||
| 496 | |||
| 497 | 36 | bool RefrigerationSecondarySystem_Impl::setEvaporatorApproachTemperatureDifference(double evaporatorApproachTemperatureDifference) { | |
| 498 | bool result = | ||
| 499 | 36 | setDouble(OS_Refrigeration_SecondarySystemFields::EvaporatorApproachTemperatureDifference, evaporatorApproachTemperatureDifference); | |
| 500 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 36 times.
|
36 | OS_ASSERT(result); |
| 501 | 36 | return result; | |
| 502 | } | ||
| 503 | |||
| 504 | 36 | bool RefrigerationSecondarySystem_Impl::setEvaporatorRangeTemperatureDifference(boost::optional<double> evaporatorRangeTemperatureDifference) { | |
| 505 | 36 | bool result(false); | |
| 506 |
1/2✓ Branch 0 taken 36 times.
✗ Branch 1 not taken.
|
36 | if (evaporatorRangeTemperatureDifference) { |
| 507 | 36 | result = setDouble(OS_Refrigeration_SecondarySystemFields::EvaporatorRangeTemperatureDifference, evaporatorRangeTemperatureDifference.get()); | |
| 508 | } else { | ||
| 509 | ✗ | resetEvaporatorRangeTemperatureDifference(); | |
| 510 | ✗ | result = true; | |
| 511 | } | ||
| 512 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 36 times.
|
36 | OS_ASSERT(result); |
| 513 | 36 | return result; | |
| 514 | } | ||
| 515 | |||
| 516 | ✗ | void RefrigerationSecondarySystem_Impl::resetEvaporatorRangeTemperatureDifference() { | |
| 517 | ✗ | bool result = setString(OS_Refrigeration_SecondarySystemFields::EvaporatorRangeTemperatureDifference, ""); | |
| 518 | ✗ | OS_ASSERT(result); | |
| 519 | ✗ | } | |
| 520 | |||
| 521 | 36 | bool RefrigerationSecondarySystem_Impl::setNumberofPumpsinLoop(int numberofPumpsinLoop) { | |
| 522 | 36 | bool result = setInt(OS_Refrigeration_SecondarySystemFields::NumberofPumpsinLoop, numberofPumpsinLoop); | |
| 523 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 36 times.
|
36 | OS_ASSERT(result); |
| 524 | 36 | return result; | |
| 525 | } | ||
| 526 | |||
| 527 | ✗ | void RefrigerationSecondarySystem_Impl::resetNumberofPumpsinLoop() { | |
| 528 | ✗ | bool result = setString(OS_Refrigeration_SecondarySystemFields::NumberofPumpsinLoop, ""); | |
| 529 | ✗ | OS_ASSERT(result); | |
| 530 | ✗ | } | |
| 531 | |||
| 532 | 36 | bool RefrigerationSecondarySystem_Impl::setTotalPumpFlowRate(boost::optional<double> totalPumpFlowRate) { | |
| 533 | 36 | bool result(false); | |
| 534 |
1/2✓ Branch 0 taken 36 times.
✗ Branch 1 not taken.
|
36 | if (totalPumpFlowRate) { |
| 535 | 36 | result = setDouble(OS_Refrigeration_SecondarySystemFields::TotalPumpFlowRate, totalPumpFlowRate.get()); | |
| 536 | } else { | ||
| 537 | ✗ | resetTotalPumpFlowRate(); | |
| 538 | ✗ | result = true; | |
| 539 | } | ||
| 540 | 36 | return result; | |
| 541 | } | ||
| 542 | |||
| 543 | ✗ | void RefrigerationSecondarySystem_Impl::resetTotalPumpFlowRate() { | |
| 544 | ✗ | bool result = setString(OS_Refrigeration_SecondarySystemFields::TotalPumpFlowRate, ""); | |
| 545 | ✗ | OS_ASSERT(result); | |
| 546 | ✗ | } | |
| 547 | |||
| 548 | ✗ | bool RefrigerationSecondarySystem_Impl::setTotalPumpPower(boost::optional<double> totalPumpPower) { | |
| 549 | ✗ | bool result(false); | |
| 550 | ✗ | if (totalPumpPower) { | |
| 551 | ✗ | result = setDouble(OS_Refrigeration_SecondarySystemFields::TotalPumpPower, totalPumpPower.get()); | |
| 552 | } else { | ||
| 553 | ✗ | resetTotalPumpPower(); | |
| 554 | ✗ | result = true; | |
| 555 | } | ||
| 556 | ✗ | return result; | |
| 557 | } | ||
| 558 | |||
| 559 | ✗ | void RefrigerationSecondarySystem_Impl::resetTotalPumpPower() { | |
| 560 | ✗ | bool result = setString(OS_Refrigeration_SecondarySystemFields::TotalPumpPower, ""); | |
| 561 | ✗ | OS_ASSERT(result); | |
| 562 | ✗ | } | |
| 563 | |||
| 564 | 36 | bool RefrigerationSecondarySystem_Impl::setTotalPumpHead(boost::optional<double> totalPumpHead) { | |
| 565 | 36 | bool result(false); | |
| 566 |
1/2✓ Branch 0 taken 36 times.
✗ Branch 1 not taken.
|
36 | if (totalPumpHead) { |
| 567 | 36 | result = setDouble(OS_Refrigeration_SecondarySystemFields::TotalPumpHead, totalPumpHead.get()); | |
| 568 | } else { | ||
| 569 | ✗ | resetTotalPumpHead(); | |
| 570 | ✗ | result = true; | |
| 571 | } | ||
| 572 | 36 | return result; | |
| 573 | } | ||
| 574 | |||
| 575 | ✗ | void RefrigerationSecondarySystem_Impl::resetTotalPumpHead() { | |
| 576 | ✗ | bool result = setString(OS_Refrigeration_SecondarySystemFields::TotalPumpHead, ""); | |
| 577 | ✗ | OS_ASSERT(result); | |
| 578 | ✗ | } | |
| 579 | |||
| 580 | ✗ | bool RefrigerationSecondarySystem_Impl::setPhaseChangeCirculatingRate(double phaseChangeCirculatingRate) { | |
| 581 | ✗ | bool result = setDouble(OS_Refrigeration_SecondarySystemFields::PhaseChangeCirculatingRate, phaseChangeCirculatingRate); | |
| 582 | ✗ | return result; | |
| 583 | } | ||
| 584 | |||
| 585 | ✗ | void RefrigerationSecondarySystem_Impl::resetPhaseChangeCirculatingRate() { | |
| 586 | ✗ | bool result = setString(OS_Refrigeration_SecondarySystemFields::PhaseChangeCirculatingRate, ""); | |
| 587 | ✗ | OS_ASSERT(result); | |
| 588 | ✗ | } | |
| 589 | |||
| 590 | ✗ | bool RefrigerationSecondarySystem_Impl::setPumpDriveType(const std::string& pumpDriveType) { | |
| 591 | ✗ | bool result = setString(OS_Refrigeration_SecondarySystemFields::PumpDriveType, pumpDriveType); | |
| 592 | ✗ | return result; | |
| 593 | } | ||
| 594 | |||
| 595 | ✗ | void RefrigerationSecondarySystem_Impl::resetPumpDriveType() { | |
| 596 | ✗ | bool result = setString(OS_Refrigeration_SecondarySystemFields::PumpDriveType, ""); | |
| 597 | ✗ | OS_ASSERT(result); | |
| 598 | ✗ | } | |
| 599 | |||
| 600 | 2 | bool RefrigerationSecondarySystem_Impl::setVariableSpeedPumpCubicCurve(const boost::optional<CurveCubic>& curveCubic) { | |
| 601 | 2 | bool result(false); | |
| 602 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (curveCubic) { |
| 603 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
|
2 | result = setPointer(OS_Refrigeration_SecondarySystemFields::VariableSpeedPumpCubicCurveName, curveCubic.get().handle()); |
| 604 | } else { | ||
| 605 | ✗ | resetVariableSpeedPumpCubicCurve(); | |
| 606 | ✗ | result = true; | |
| 607 | } | ||
| 608 | 2 | return result; | |
| 609 | } | ||
| 610 | |||
| 611 | ✗ | void RefrigerationSecondarySystem_Impl::resetVariableSpeedPumpCubicCurve() { | |
| 612 | ✗ | bool result = setString(OS_Refrigeration_SecondarySystemFields::VariableSpeedPumpCubicCurveName, ""); | |
| 613 | ✗ | OS_ASSERT(result); | |
| 614 | ✗ | } | |
| 615 | |||
| 616 | 36 | bool RefrigerationSecondarySystem_Impl::setPumpMotorHeattoFluid(double pumpMotorHeattoFluid) { | |
| 617 | 36 | bool result = setDouble(OS_Refrigeration_SecondarySystemFields::PumpMotorHeattoFluid, pumpMotorHeattoFluid); | |
| 618 | 36 | return result; | |
| 619 | } | ||
| 620 | |||
| 621 | ✗ | void RefrigerationSecondarySystem_Impl::resetPumpMotorHeattoFluid() { | |
| 622 | ✗ | bool result = setString(OS_Refrigeration_SecondarySystemFields::PumpMotorHeattoFluid, ""); | |
| 623 | ✗ | OS_ASSERT(result); | |
| 624 | ✗ | } | |
| 625 | |||
| 626 | ✗ | bool RefrigerationSecondarySystem_Impl::setSumUADistributionPiping(double sumUADistributionPiping) { | |
| 627 | ✗ | bool result = setDouble(OS_Refrigeration_SecondarySystemFields::SumUADistributionPiping, sumUADistributionPiping); | |
| 628 | ✗ | OS_ASSERT(result); | |
| 629 | ✗ | return result; | |
| 630 | } | ||
| 631 | |||
| 632 | ✗ | void RefrigerationSecondarySystem_Impl::resetSumUADistributionPiping() { | |
| 633 | ✗ | bool result = setString(OS_Refrigeration_SecondarySystemFields::SumUADistributionPiping, ""); | |
| 634 | ✗ | OS_ASSERT(result); | |
| 635 | ✗ | } | |
| 636 | |||
| 637 | 1 | bool RefrigerationSecondarySystem_Impl::setDistributionPipingZone(const boost::optional<ThermalZone>& thermalZone) { | |
| 638 | 1 | bool result(false); | |
| 639 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (thermalZone) { |
| 640 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | result = setPointer(OS_Refrigeration_SecondarySystemFields::DistributionPipingZoneName, thermalZone.get().handle()); |
| 641 | } else { | ||
| 642 | ✗ | resetDistributionPipingZone(); | |
| 643 | ✗ | result = true; | |
| 644 | } | ||
| 645 | 1 | return result; | |
| 646 | } | ||
| 647 | |||
| 648 | 4 | void RefrigerationSecondarySystem_Impl::resetDistributionPipingZone() { | |
| 649 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | bool result = setString(OS_Refrigeration_SecondarySystemFields::DistributionPipingZoneName, ""); |
| 650 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 651 | 4 | } | |
| 652 | |||
| 653 | ✗ | bool RefrigerationSecondarySystem_Impl::setSumUAReceiverSeparatorShell(double sumUAReceiverSeparatorShell) { | |
| 654 | ✗ | bool result = setDouble(OS_Refrigeration_SecondarySystemFields::SumUAReceiver_SeparatorShell, sumUAReceiverSeparatorShell); | |
| 655 | ✗ | OS_ASSERT(result); | |
| 656 | ✗ | return result; | |
| 657 | } | ||
| 658 | |||
| 659 | ✗ | void RefrigerationSecondarySystem_Impl::resetSumUAReceiverSeparatorShell() { | |
| 660 | ✗ | bool result = setString(OS_Refrigeration_SecondarySystemFields::SumUAReceiver_SeparatorShell, ""); | |
| 661 | ✗ | OS_ASSERT(result); | |
| 662 | ✗ | } | |
| 663 | |||
| 664 | 1 | bool RefrigerationSecondarySystem_Impl::setReceiverSeparatorZone(const boost::optional<ThermalZone>& thermalZone) { | |
| 665 | 1 | bool result(false); | |
| 666 |
1/2✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
|
1 | if (thermalZone) { |
| 667 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | result = setPointer(OS_Refrigeration_SecondarySystemFields::Receiver_SeparatorZoneName, thermalZone.get().handle()); |
| 668 | } else { | ||
| 669 | ✗ | resetReceiverSeparatorZone(); | |
| 670 | ✗ | result = true; | |
| 671 | } | ||
| 672 | 1 | return result; | |
| 673 | } | ||
| 674 | |||
| 675 | 4 | void RefrigerationSecondarySystem_Impl::resetReceiverSeparatorZone() { | |
| 676 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | bool result = setString(OS_Refrigeration_SecondarySystemFields::Receiver_SeparatorZoneName, ""); |
| 677 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 678 | 4 | } | |
| 679 | |||
| 680 | ✗ | bool RefrigerationSecondarySystem_Impl::setEvaporatorRefrigerantInventory(double evaporatorRefrigerantInventory) { | |
| 681 | ✗ | bool result = setDouble(OS_Refrigeration_SecondarySystemFields::EvaporatorRefrigerantInventory, evaporatorRefrigerantInventory); | |
| 682 | ✗ | OS_ASSERT(result); | |
| 683 | ✗ | return result; | |
| 684 | } | ||
| 685 | |||
| 686 | ✗ | void RefrigerationSecondarySystem_Impl::resetEvaporatorRefrigerantInventory() { | |
| 687 | ✗ | bool result = setString(OS_Refrigeration_SecondarySystemFields::EvaporatorRefrigerantInventory, ""); | |
| 688 | ✗ | OS_ASSERT(result); | |
| 689 | ✗ | } | |
| 690 | |||
| 691 | ✗ | bool RefrigerationSecondarySystem_Impl::setEndUseSubcategory(const std::string& endUseSubcategory) { | |
| 692 | ✗ | bool result = setString(OS_Refrigeration_SecondarySystemFields::EndUseSubcategory, endUseSubcategory); | |
| 693 | ✗ | OS_ASSERT(result); | |
| 694 | ✗ | return result; | |
| 695 | } | ||
| 696 | |||
| 697 | ✗ | void RefrigerationSecondarySystem_Impl::resetEndUseSubcategory() { | |
| 698 | ✗ | bool result = setString(OS_Refrigeration_SecondarySystemFields::EndUseSubcategory, ""); | |
| 699 | ✗ | OS_ASSERT(result); | |
| 700 | ✗ | } | |
| 701 | |||
| 702 | 17 | boost::optional<RefrigerationSystem> RefrigerationSecondarySystem_Impl::system() const { | |
| 703 | 17 | boost::optional<RefrigerationSystem> result; | |
| 704 | |||
| 705 |
1/1✓ Branch 1 taken 17 times.
|
17 | auto refrigerationSecondarySystem = this->getObject<RefrigerationSecondarySystem>(); |
| 706 |
4/4✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
✓ Branch 12 taken 16 times.
✓ Branch 13 taken 14 times.
|
30 | for (const RefrigerationSystem& refrigerationSystem : this->model().getConcreteModelObjects<RefrigerationSystem>()) { |
| 707 |
1/1✓ Branch 1 taken 16 times.
|
16 | RefrigerationSecondarySystemVector refrigerationSecondarySystems = refrigerationSystem.secondarySystemLoads(); |
| 708 | 16 | if (!refrigerationSecondarySystems.empty() | |
| 709 |
3/3✓ Branch 0 taken 7 times.
✓ Branch 1 taken 9 times.
✓ Branch 5 taken 7 times.
|
30 | && std::find(refrigerationSecondarySystems.begin(), refrigerationSecondarySystems.end(), refrigerationSecondarySystem) |
| 710 |
4/4✓ Branch 2 taken 3 times.
✓ Branch 3 taken 4 times.
✓ Branch 4 taken 3 times.
✓ Branch 5 taken 13 times.
|
30 | != refrigerationSecondarySystems.end()) { |
| 711 |
1/1✓ Branch 1 taken 3 times.
|
3 | result = refrigerationSystem; |
| 712 | 3 | break; | |
| 713 | } | ||
| 714 | 33 | } | |
| 715 | |||
| 716 | 34 | return result; | |
| 717 | 17 | } | |
| 718 | |||
| 719 | 3 | void RefrigerationSecondarySystem_Impl::removeFromSystem() { | |
| 720 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 1 time.
|
6 | if (boost::optional<RefrigerationSystem> refrigerationSystem = this->system()) { |
| 721 |
1/1✓ Branch 1 taken 2 times.
|
2 | auto refrigerationSecondarySystem = this->getObject<RefrigerationSecondarySystem>(); |
| 722 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | refrigerationSystem->removeSecondarySystemLoad(refrigerationSecondarySystem); |
| 723 | 5 | } | |
| 724 | 3 | } | |
| 725 | |||
| 726 | } // namespace detail | ||
| 727 | |||
| 728 | 35 | RefrigerationSecondarySystem::RefrigerationSecondarySystem(const Model& model) | |
| 729 | 35 | : ParentObject(RefrigerationSecondarySystem::iddObjectType(), model) { | |
| 730 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 35 times.
✗ Branch 5 not taken.
|
35 | OS_ASSERT(getImpl<detail::RefrigerationSecondarySystem_Impl>()); |
| 731 | |||
| 732 |
1/1✓ Branch 1 taken 35 times.
|
35 | ModelObjectList caseAndWalkinList = ModelObjectList(model); |
| 733 |
4/4✓ Branch 1 taken 35 times.
✓ Branch 4 taken 35 times.
✓ Branch 7 taken 35 times.
✓ Branch 10 taken 35 times.
|
35 | caseAndWalkinList.setName(this->name().get() + " Case and Walkin List"); |
| 734 |
2/2✓ Branch 3 taken 35 times.
✓ Branch 6 taken 35 times.
|
35 | bool ok = getImpl<detail::RefrigerationSecondarySystem_Impl>()->setRefrigeratedCaseAndWalkInList(caseAndWalkinList); |
| 735 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 35 times.
✗ Branch 3 not taken.
|
35 | OS_ASSERT(ok); |
| 736 |
2/2✓ Branch 1 taken 35 times.
✓ Branch 4 taken 35 times.
|
35 | ok = setCirculatingFluidName("PropyleneGlycol"); |
| 737 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 35 times.
✗ Branch 3 not taken.
|
35 | OS_ASSERT(ok); |
| 738 |
1/1✓ Branch 1 taken 35 times.
|
35 | ok = setGlycolConcentration(30); |
| 739 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 35 times.
✗ Branch 3 not taken.
|
35 | OS_ASSERT(ok); |
| 740 |
1/1✓ Branch 1 taken 35 times.
|
35 | ok = setEvaporatorCapacity(3.5E4); |
| 741 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 35 times.
✗ Branch 3 not taken.
|
35 | OS_ASSERT(ok); |
| 742 |
1/1✓ Branch 1 taken 35 times.
|
35 | ok = setEvaporatorFlowRateforSecondaryFluid(0.0021); |
| 743 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 35 times.
✗ Branch 3 not taken.
|
35 | OS_ASSERT(ok); |
| 744 |
1/1✓ Branch 1 taken 35 times.
|
35 | setEvaporatorEvaporatingTemperature(-12.6); |
| 745 |
1/1✓ Branch 1 taken 35 times.
|
35 | setEvaporatorApproachTemperatureDifference(2.7); |
| 746 |
1/1✓ Branch 1 taken 35 times.
|
35 | setEvaporatorRangeTemperatureDifference(4.0); |
| 747 |
1/1✓ Branch 1 taken 35 times.
|
35 | setNumberofPumpsinLoop(3); |
| 748 |
1/1✓ Branch 1 taken 35 times.
|
35 | ok = setTotalPumpFlowRate(0.0023); |
| 749 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 35 times.
✗ Branch 3 not taken.
|
35 | OS_ASSERT(ok); |
| 750 |
1/1✓ Branch 1 taken 35 times.
|
35 | ok = setTotalPumpHead(2.09E5); |
| 751 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 35 times.
✗ Branch 3 not taken.
|
35 | OS_ASSERT(ok); |
| 752 |
1/1✓ Branch 1 taken 35 times.
|
35 | ok = setPumpMotorHeattoFluid(1.0); |
| 753 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 35 times.
✗ Branch 3 not taken.
|
35 | OS_ASSERT(ok); |
| 754 | 35 | } | |
| 755 | |||
| 756 | 7846 | IddObjectType RefrigerationSecondarySystem::iddObjectType() { | |
| 757 |
1/1✓ Branch 1 taken 7846 times.
|
7846 | return {IddObjectType::OS_Refrigeration_SecondarySystem}; |
| 758 | } | ||
| 759 | |||
| 760 | ✗ | std::vector<std::string> RefrigerationSecondarySystem::circulatingFluidNameValues() { | |
| 761 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Refrigeration_SecondarySystemFields::CirculatingFluidName); | |
| 762 | } | ||
| 763 | |||
| 764 | ✗ | std::vector<std::string> RefrigerationSecondarySystem::pumpDriveTypeValues() { | |
| 765 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Refrigeration_SecondarySystemFields::PumpDriveType); | |
| 766 | } | ||
| 767 | |||
| 768 | 21 | std::vector<RefrigerationCase> RefrigerationSecondarySystem::cases() const { | |
| 769 |
1/1✓ Branch 3 taken 21 times.
|
21 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->cases(); |
| 770 | } | ||
| 771 | |||
| 772 | 21 | std::vector<RefrigerationWalkIn> RefrigerationSecondarySystem::walkins() const { | |
| 773 |
1/1✓ Branch 3 taken 21 times.
|
21 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->walkins(); |
| 774 | } | ||
| 775 | |||
| 776 | 11 | std::vector<RefrigerationAirChiller> RefrigerationSecondarySystem::airChillers() const { | |
| 777 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->airChillers(); |
| 778 | } | ||
| 779 | |||
| 780 | 4 | std::string RefrigerationSecondarySystem::circulatingFluidName() const { | |
| 781 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->circulatingFluidName(); |
| 782 | } | ||
| 783 | |||
| 784 | 6 | boost::optional<int> RefrigerationSecondarySystem::glycolConcentration() const { | |
| 785 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->glycolConcentration(); |
| 786 | } | ||
| 787 | |||
| 788 | 3 | boost::optional<double> RefrigerationSecondarySystem::evaporatorCapacity() const { | |
| 789 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->evaporatorCapacity(); |
| 790 | } | ||
| 791 | |||
| 792 | 3 | boost::optional<double> RefrigerationSecondarySystem::evaporatorFlowRateforSecondaryFluid() const { | |
| 793 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->evaporatorFlowRateforSecondaryFluid(); |
| 794 | } | ||
| 795 | |||
| 796 | 3 | double RefrigerationSecondarySystem::evaporatorEvaporatingTemperature() const { | |
| 797 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->evaporatorEvaporatingTemperature(); |
| 798 | } | ||
| 799 | |||
| 800 | 3 | double RefrigerationSecondarySystem::evaporatorApproachTemperatureDifference() const { | |
| 801 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->evaporatorApproachTemperatureDifference(); |
| 802 | } | ||
| 803 | |||
| 804 | 3 | boost::optional<double> RefrigerationSecondarySystem::evaporatorRangeTemperatureDifference() const { | |
| 805 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->evaporatorRangeTemperatureDifference(); |
| 806 | } | ||
| 807 | |||
| 808 | 3 | int RefrigerationSecondarySystem::numberofPumpsinLoop() const { | |
| 809 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->numberofPumpsinLoop(); |
| 810 | } | ||
| 811 | |||
| 812 | ✗ | bool RefrigerationSecondarySystem::isNumberofPumpsinLoopDefaulted() const { | |
| 813 | ✗ | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->isNumberofPumpsinLoopDefaulted(); | |
| 814 | } | ||
| 815 | |||
| 816 | 3 | boost::optional<double> RefrigerationSecondarySystem::totalPumpFlowRate() const { | |
| 817 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->totalPumpFlowRate(); |
| 818 | } | ||
| 819 | |||
| 820 | ✗ | boost::optional<double> RefrigerationSecondarySystem::totalPumpPower() const { | |
| 821 | ✗ | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->totalPumpPower(); | |
| 822 | } | ||
| 823 | |||
| 824 | 3 | boost::optional<double> RefrigerationSecondarySystem::totalPumpHead() const { | |
| 825 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->totalPumpHead(); |
| 826 | } | ||
| 827 | |||
| 828 | ✗ | double RefrigerationSecondarySystem::phaseChangeCirculatingRate() const { | |
| 829 | ✗ | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->phaseChangeCirculatingRate(); | |
| 830 | } | ||
| 831 | |||
| 832 | ✗ | bool RefrigerationSecondarySystem::isPhaseChangeCirculatingRateDefaulted() const { | |
| 833 | ✗ | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->isPhaseChangeCirculatingRateDefaulted(); | |
| 834 | } | ||
| 835 | |||
| 836 | ✗ | std::string RefrigerationSecondarySystem::pumpDriveType() const { | |
| 837 | ✗ | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->pumpDriveType(); | |
| 838 | } | ||
| 839 | |||
| 840 | ✗ | bool RefrigerationSecondarySystem::isPumpDriveTypeDefaulted() const { | |
| 841 | ✗ | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->isPumpDriveTypeDefaulted(); | |
| 842 | } | ||
| 843 | |||
| 844 | 3 | boost::optional<CurveCubic> RefrigerationSecondarySystem::variableSpeedPumpCubicCurve() const { | |
| 845 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->variableSpeedPumpCubicCurve(); |
| 846 | } | ||
| 847 | |||
| 848 | 3 | double RefrigerationSecondarySystem::pumpMotorHeattoFluid() const { | |
| 849 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->pumpMotorHeattoFluid(); |
| 850 | } | ||
| 851 | |||
| 852 | ✗ | bool RefrigerationSecondarySystem::isPumpMotorHeattoFluidDefaulted() const { | |
| 853 | ✗ | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->isPumpMotorHeattoFluidDefaulted(); | |
| 854 | } | ||
| 855 | |||
| 856 | ✗ | double RefrigerationSecondarySystem::sumUADistributionPiping() const { | |
| 857 | ✗ | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->sumUADistributionPiping(); | |
| 858 | } | ||
| 859 | |||
| 860 | ✗ | bool RefrigerationSecondarySystem::isSumUADistributionPipingDefaulted() const { | |
| 861 | ✗ | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->isSumUADistributionPipingDefaulted(); | |
| 862 | } | ||
| 863 | |||
| 864 | 1 | boost::optional<ThermalZone> RefrigerationSecondarySystem::distributionPipingZone() const { | |
| 865 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->distributionPipingZone(); |
| 866 | } | ||
| 867 | |||
| 868 | ✗ | double RefrigerationSecondarySystem::sumUAReceiverSeparatorShell() const { | |
| 869 | ✗ | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->sumUAReceiverSeparatorShell(); | |
| 870 | } | ||
| 871 | |||
| 872 | ✗ | bool RefrigerationSecondarySystem::isSumUAReceiverSeparatorShellDefaulted() const { | |
| 873 | ✗ | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->isSumUAReceiverSeparatorShellDefaulted(); | |
| 874 | } | ||
| 875 | |||
| 876 | 1 | boost::optional<ThermalZone> RefrigerationSecondarySystem::receiverSeparatorZone() const { | |
| 877 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->receiverSeparatorZone(); |
| 878 | } | ||
| 879 | |||
| 880 | ✗ | double RefrigerationSecondarySystem::evaporatorRefrigerantInventory() const { | |
| 881 | ✗ | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->evaporatorRefrigerantInventory(); | |
| 882 | } | ||
| 883 | |||
| 884 | ✗ | bool RefrigerationSecondarySystem::isEvaporatorRefrigerantInventoryDefaulted() const { | |
| 885 | ✗ | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->isEvaporatorRefrigerantInventoryDefaulted(); | |
| 886 | } | ||
| 887 | |||
| 888 | ✗ | std::string RefrigerationSecondarySystem::endUseSubcategory() const { | |
| 889 | ✗ | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->endUseSubcategory(); | |
| 890 | } | ||
| 891 | |||
| 892 | ✗ | bool RefrigerationSecondarySystem::isEndUseSubcategoryDefaulted() const { | |
| 893 | ✗ | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->isEndUseSubcategoryDefaulted(); | |
| 894 | } | ||
| 895 | |||
| 896 | 11 | bool RefrigerationSecondarySystem::addCase(const RefrigerationCase& refrigerationCase) { | |
| 897 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->addCase(refrigerationCase); |
| 898 | } | ||
| 899 | |||
| 900 | 4 | void RefrigerationSecondarySystem::removeCase(const RefrigerationCase& refrigerationCase) { | |
| 901 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->removeCase(refrigerationCase); |
| 902 | } | ||
| 903 | |||
| 904 | 2 | void RefrigerationSecondarySystem::removeAllCases() { | |
| 905 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->removeAllCases(); |
| 906 | } | ||
| 907 | |||
| 908 | 11 | bool RefrigerationSecondarySystem::addWalkin(const RefrigerationWalkIn& refrigerationWalkin) { | |
| 909 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->addWalkin(refrigerationWalkin); |
| 910 | } | ||
| 911 | |||
| 912 | 4 | void RefrigerationSecondarySystem::removeWalkin(const RefrigerationWalkIn& refrigerationWalkin) { | |
| 913 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->removeWalkin(refrigerationWalkin); |
| 914 | } | ||
| 915 | |||
| 916 | 2 | void RefrigerationSecondarySystem::removeAllWalkins() { | |
| 917 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->removeAllWalkins(); |
| 918 | } | ||
| 919 | |||
| 920 | 6 | bool RefrigerationSecondarySystem::addAirChiller(const RefrigerationAirChiller& refrigerationAirChiller) { | |
| 921 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->addAirChiller(refrigerationAirChiller); |
| 922 | } | ||
| 923 | |||
| 924 | 2 | void RefrigerationSecondarySystem::removeAirChiller(const RefrigerationAirChiller& refrigerationAirChiller) { | |
| 925 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->removeAirChiller(refrigerationAirChiller); |
| 926 | } | ||
| 927 | |||
| 928 | 1 | void RefrigerationSecondarySystem::removeAllAirChillers() { | |
| 929 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->removeAllAirChillers(); |
| 930 | } | ||
| 931 | |||
| 932 | ✗ | void RefrigerationSecondarySystem::resetRefrigeratedCaseAndWalkInList() { | |
| 933 | ✗ | getImpl<detail::RefrigerationSecondarySystem_Impl>()->resetRefrigeratedCaseAndWalkInList(); | |
| 934 | ✗ | } | |
| 935 | |||
| 936 | 40 | bool RefrigerationSecondarySystem::setCirculatingFluidName(const std::string& circulatingFluidName) { | |
| 937 |
1/1✓ Branch 3 taken 40 times.
|
40 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->setCirculatingFluidName(circulatingFluidName); |
| 938 | } | ||
| 939 | |||
| 940 | 40 | bool RefrigerationSecondarySystem::setGlycolConcentration(int glycolConcentration) { | |
| 941 |
2/2✓ Branch 3 taken 40 times.
✓ Branch 6 taken 40 times.
|
40 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->setGlycolConcentration(glycolConcentration); |
| 942 | } | ||
| 943 | |||
| 944 | ✗ | void RefrigerationSecondarySystem::resetGlycolConcentration() { | |
| 945 | ✗ | getImpl<detail::RefrigerationSecondarySystem_Impl>()->resetGlycolConcentration(); | |
| 946 | ✗ | } | |
| 947 | |||
| 948 | 36 | bool RefrigerationSecondarySystem::setEvaporatorCapacity(double evaporatorCapacity) { | |
| 949 |
2/2✓ Branch 3 taken 36 times.
✓ Branch 6 taken 36 times.
|
36 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->setEvaporatorCapacity(evaporatorCapacity); |
| 950 | } | ||
| 951 | |||
| 952 | ✗ | void RefrigerationSecondarySystem::resetEvaporatorCapacity() { | |
| 953 | ✗ | getImpl<detail::RefrigerationSecondarySystem_Impl>()->resetEvaporatorCapacity(); | |
| 954 | ✗ | } | |
| 955 | |||
| 956 | 36 | bool RefrigerationSecondarySystem::setEvaporatorFlowRateforSecondaryFluid(double evaporatorFlowRateforSecondaryFluid) { | |
| 957 |
2/2✓ Branch 3 taken 36 times.
✓ Branch 6 taken 36 times.
|
36 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->setEvaporatorFlowRateforSecondaryFluid(evaporatorFlowRateforSecondaryFluid); |
| 958 | } | ||
| 959 | |||
| 960 | ✗ | void RefrigerationSecondarySystem::resetEvaporatorFlowRateforSecondaryFluid() { | |
| 961 | ✗ | getImpl<detail::RefrigerationSecondarySystem_Impl>()->resetEvaporatorFlowRateforSecondaryFluid(); | |
| 962 | ✗ | } | |
| 963 | |||
| 964 | 36 | bool RefrigerationSecondarySystem::setEvaporatorEvaporatingTemperature(double evaporatorEvaporatingTemperature) { | |
| 965 |
1/1✓ Branch 3 taken 36 times.
|
36 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->setEvaporatorEvaporatingTemperature(evaporatorEvaporatingTemperature); |
| 966 | } | ||
| 967 | |||
| 968 | 36 | bool RefrigerationSecondarySystem::setEvaporatorApproachTemperatureDifference(double evaporatorApproachTemperatureDifference) { | |
| 969 |
1/1✓ Branch 3 taken 36 times.
|
36 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->setEvaporatorApproachTemperatureDifference(evaporatorApproachTemperatureDifference); |
| 970 | } | ||
| 971 | |||
| 972 | 36 | bool RefrigerationSecondarySystem::setEvaporatorRangeTemperatureDifference(double evaporatorRangeTemperatureDifference) { | |
| 973 |
2/2✓ Branch 3 taken 36 times.
✓ Branch 6 taken 36 times.
|
36 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->setEvaporatorRangeTemperatureDifference(evaporatorRangeTemperatureDifference); |
| 974 | } | ||
| 975 | |||
| 976 | ✗ | void RefrigerationSecondarySystem::resetEvaporatorRangeTemperatureDifference() { | |
| 977 | ✗ | getImpl<detail::RefrigerationSecondarySystem_Impl>()->resetEvaporatorRangeTemperatureDifference(); | |
| 978 | ✗ | } | |
| 979 | |||
| 980 | 36 | bool RefrigerationSecondarySystem::setNumberofPumpsinLoop(int numberofPumpsinLoop) { | |
| 981 |
1/1✓ Branch 3 taken 36 times.
|
36 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->setNumberofPumpsinLoop(numberofPumpsinLoop); |
| 982 | } | ||
| 983 | |||
| 984 | ✗ | void RefrigerationSecondarySystem::resetNumberofPumpsinLoop() { | |
| 985 | ✗ | getImpl<detail::RefrigerationSecondarySystem_Impl>()->resetNumberofPumpsinLoop(); | |
| 986 | ✗ | } | |
| 987 | |||
| 988 | 36 | bool RefrigerationSecondarySystem::setTotalPumpFlowRate(double totalPumpFlowRate) { | |
| 989 |
2/2✓ Branch 3 taken 36 times.
✓ Branch 6 taken 36 times.
|
36 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->setTotalPumpFlowRate(totalPumpFlowRate); |
| 990 | } | ||
| 991 | |||
| 992 | ✗ | void RefrigerationSecondarySystem::resetTotalPumpFlowRate() { | |
| 993 | ✗ | getImpl<detail::RefrigerationSecondarySystem_Impl>()->resetTotalPumpFlowRate(); | |
| 994 | ✗ | } | |
| 995 | |||
| 996 | ✗ | bool RefrigerationSecondarySystem::setTotalPumpPower(double totalPumpPower) { | |
| 997 | ✗ | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->setTotalPumpPower(totalPumpPower); | |
| 998 | } | ||
| 999 | |||
| 1000 | ✗ | void RefrigerationSecondarySystem::resetTotalPumpPower() { | |
| 1001 | ✗ | getImpl<detail::RefrigerationSecondarySystem_Impl>()->resetTotalPumpPower(); | |
| 1002 | ✗ | } | |
| 1003 | |||
| 1004 | 36 | bool RefrigerationSecondarySystem::setTotalPumpHead(double totalPumpHead) { | |
| 1005 |
2/2✓ Branch 3 taken 36 times.
✓ Branch 6 taken 36 times.
|
36 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->setTotalPumpHead(totalPumpHead); |
| 1006 | } | ||
| 1007 | |||
| 1008 | ✗ | void RefrigerationSecondarySystem::resetTotalPumpHead() { | |
| 1009 | ✗ | getImpl<detail::RefrigerationSecondarySystem_Impl>()->resetTotalPumpHead(); | |
| 1010 | ✗ | } | |
| 1011 | |||
| 1012 | ✗ | bool RefrigerationSecondarySystem::setPhaseChangeCirculatingRate(double phaseChangeCirculatingRate) { | |
| 1013 | ✗ | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->setPhaseChangeCirculatingRate(phaseChangeCirculatingRate); | |
| 1014 | } | ||
| 1015 | |||
| 1016 | ✗ | void RefrigerationSecondarySystem::resetPhaseChangeCirculatingRate() { | |
| 1017 | ✗ | getImpl<detail::RefrigerationSecondarySystem_Impl>()->resetPhaseChangeCirculatingRate(); | |
| 1018 | ✗ | } | |
| 1019 | |||
| 1020 | ✗ | bool RefrigerationSecondarySystem::setPumpDriveType(const std::string& pumpDriveType) { | |
| 1021 | ✗ | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->setPumpDriveType(pumpDriveType); | |
| 1022 | } | ||
| 1023 | |||
| 1024 | ✗ | void RefrigerationSecondarySystem::resetPumpDriveType() { | |
| 1025 | ✗ | getImpl<detail::RefrigerationSecondarySystem_Impl>()->resetPumpDriveType(); | |
| 1026 | ✗ | } | |
| 1027 | |||
| 1028 | 2 | bool RefrigerationSecondarySystem::setVariableSpeedPumpCubicCurve(const CurveCubic& curveCubic) { | |
| 1029 |
2/2✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
|
2 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->setVariableSpeedPumpCubicCurve(curveCubic); |
| 1030 | } | ||
| 1031 | |||
| 1032 | ✗ | void RefrigerationSecondarySystem::resetVariableSpeedPumpCubicCurve() { | |
| 1033 | ✗ | getImpl<detail::RefrigerationSecondarySystem_Impl>()->resetVariableSpeedPumpCubicCurve(); | |
| 1034 | ✗ | } | |
| 1035 | |||
| 1036 | 36 | bool RefrigerationSecondarySystem::setPumpMotorHeattoFluid(double pumpMotorHeattoFluid) { | |
| 1037 |
1/1✓ Branch 3 taken 36 times.
|
36 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->setPumpMotorHeattoFluid(pumpMotorHeattoFluid); |
| 1038 | } | ||
| 1039 | |||
| 1040 | ✗ | void RefrigerationSecondarySystem::resetPumpMotorHeattoFluid() { | |
| 1041 | ✗ | getImpl<detail::RefrigerationSecondarySystem_Impl>()->resetPumpMotorHeattoFluid(); | |
| 1042 | ✗ | } | |
| 1043 | |||
| 1044 | ✗ | bool RefrigerationSecondarySystem::setSumUADistributionPiping(double sumUADistributionPiping) { | |
| 1045 | ✗ | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->setSumUADistributionPiping(sumUADistributionPiping); | |
| 1046 | } | ||
| 1047 | |||
| 1048 | ✗ | void RefrigerationSecondarySystem::resetSumUADistributionPiping() { | |
| 1049 | ✗ | getImpl<detail::RefrigerationSecondarySystem_Impl>()->resetSumUADistributionPiping(); | |
| 1050 | ✗ | } | |
| 1051 | |||
| 1052 | 1 | bool RefrigerationSecondarySystem::setDistributionPipingZone(const ThermalZone& thermalZone) { | |
| 1053 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->setDistributionPipingZone(thermalZone); |
| 1054 | } | ||
| 1055 | |||
| 1056 | 4 | void RefrigerationSecondarySystem::resetDistributionPipingZone() { | |
| 1057 |
1/1✓ Branch 3 taken 4 times.
|
4 | getImpl<detail::RefrigerationSecondarySystem_Impl>()->resetDistributionPipingZone(); |
| 1058 | 4 | } | |
| 1059 | |||
| 1060 | ✗ | bool RefrigerationSecondarySystem::setSumUAReceiverSeparatorShell(double sumUAReceiverSeparatorShell) { | |
| 1061 | ✗ | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->setSumUAReceiverSeparatorShell(sumUAReceiverSeparatorShell); | |
| 1062 | } | ||
| 1063 | |||
| 1064 | ✗ | void RefrigerationSecondarySystem::resetSumUAReceiverSeparatorShell() { | |
| 1065 | ✗ | getImpl<detail::RefrigerationSecondarySystem_Impl>()->resetSumUAReceiverSeparatorShell(); | |
| 1066 | ✗ | } | |
| 1067 | |||
| 1068 | 1 | bool RefrigerationSecondarySystem::setReceiverSeparatorZone(const ThermalZone& thermalZone) { | |
| 1069 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->setReceiverSeparatorZone(thermalZone); |
| 1070 | } | ||
| 1071 | |||
| 1072 | 4 | void RefrigerationSecondarySystem::resetReceiverSeparatorZone() { | |
| 1073 |
1/1✓ Branch 3 taken 4 times.
|
4 | getImpl<detail::RefrigerationSecondarySystem_Impl>()->resetReceiverSeparatorZone(); |
| 1074 | 4 | } | |
| 1075 | |||
| 1076 | ✗ | bool RefrigerationSecondarySystem::setEvaporatorRefrigerantInventory(double evaporatorRefrigerantInventory) { | |
| 1077 | ✗ | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->setEvaporatorRefrigerantInventory(evaporatorRefrigerantInventory); | |
| 1078 | } | ||
| 1079 | |||
| 1080 | ✗ | void RefrigerationSecondarySystem::resetEvaporatorRefrigerantInventory() { | |
| 1081 | ✗ | getImpl<detail::RefrigerationSecondarySystem_Impl>()->resetEvaporatorRefrigerantInventory(); | |
| 1082 | ✗ | } | |
| 1083 | |||
| 1084 | ✗ | bool RefrigerationSecondarySystem::setEndUseSubcategory(const std::string& endUseSubcategory) { | |
| 1085 | ✗ | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->setEndUseSubcategory(endUseSubcategory); | |
| 1086 | } | ||
| 1087 | |||
| 1088 | ✗ | void RefrigerationSecondarySystem::resetEndUseSubcategory() { | |
| 1089 | ✗ | getImpl<detail::RefrigerationSecondarySystem_Impl>()->resetEndUseSubcategory(); | |
| 1090 | ✗ | } | |
| 1091 | |||
| 1092 | 14 | boost::optional<RefrigerationSystem> RefrigerationSecondarySystem::system() const { | |
| 1093 |
1/1✓ Branch 3 taken 14 times.
|
14 | return getImpl<detail::RefrigerationSecondarySystem_Impl>()->system(); |
| 1094 | } | ||
| 1095 | |||
| 1096 | ✗ | void RefrigerationSecondarySystem::removeFromSystem() { | |
| 1097 | ✗ | getImpl<detail::RefrigerationSecondarySystem_Impl>()->removeFromSystem(); | |
| 1098 | ✗ | } | |
| 1099 | |||
| 1100 | /// @cond | ||
| 1101 | 90 | RefrigerationSecondarySystem::RefrigerationSecondarySystem(std::shared_ptr<detail::RefrigerationSecondarySystem_Impl> impl) | |
| 1102 |
1/1✓ Branch 3 taken 90 times.
|
90 | : ParentObject(std::move(impl)) {} |
| 1103 | /// @endcond | ||
| 1104 | |||
| 1105 | } // namespace model | ||
| 1106 | } // namespace openstudio | ||
| 1107 |