src/model/RefrigerationSecondarySystem_Impl.hpp
| 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 | #ifndef MODEL_REFRIGERATIONSECONDARYSYSTEM_IMPL_HPP | ||
| 7 | #define MODEL_REFRIGERATIONSECONDARYSYSTEM_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ParentObject_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class ModelObjectList; | ||
| 16 | class CurveCubic; | ||
| 17 | class ThermalZone; | ||
| 18 | class RefrigerationSystem; | ||
| 19 | class RefrigerationAirChiller; | ||
| 20 | class RefrigerationCase; | ||
| 21 | class RefrigerationWalkIn; | ||
| 22 | |||
| 23 | namespace detail { | ||
| 24 | |||
| 25 | /** RefrigerationSecondarySystem_Impl is a ParentObject_Impl that is the implementation class for RefrigerationSecondarySystem.*/ | ||
| 26 | class MODEL_API RefrigerationSecondarySystem_Impl : public ParentObject_Impl | ||
| 27 | { | ||
| 28 | public: | ||
| 29 | /** @name Constructors and Destructors */ | ||
| 30 | //@{ | ||
| 31 | |||
| 32 | RefrigerationSecondarySystem_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 33 | |||
| 34 | RefrigerationSecondarySystem_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 35 | |||
| 36 | RefrigerationSecondarySystem_Impl(const RefrigerationSecondarySystem_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 37 | |||
| 38 | 42 | virtual ~RefrigerationSecondarySystem_Impl() override = default; | |
| 39 | |||
| 40 | //@} | ||
| 41 | /** @name Virtual Methods */ | ||
| 42 | //@{ | ||
| 43 | |||
| 44 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 45 | |||
| 46 | virtual IddObjectType iddObjectType() const override; | ||
| 47 | |||
| 48 | virtual ModelObject clone(Model model) const override; | ||
| 49 | |||
| 50 | virtual std::vector<IdfObject> remove() override; | ||
| 51 | |||
| 52 | virtual std::vector<IddObjectType> allowableChildTypes() const override; | ||
| 53 | |||
| 54 | virtual std::vector<ModelObject> children() const override; | ||
| 55 | |||
| 56 | //@} | ||
| 57 | /** @name Getters */ | ||
| 58 | //@{ | ||
| 59 | |||
| 60 | std::vector<RefrigerationCase> cases() const; | ||
| 61 | |||
| 62 | std::vector<RefrigerationWalkIn> walkins() const; | ||
| 63 | |||
| 64 | std::vector<RefrigerationAirChiller> airChillers() const; | ||
| 65 | |||
| 66 | template <class T> | ||
| 67 | std::vector<T> listTemplate(const boost::optional<ModelObjectList>& modelObjectList) const; | ||
| 68 | |||
| 69 | boost::optional<ModelObjectList> refrigeratedCaseAndWalkInList() const; | ||
| 70 | |||
| 71 | std::string circulatingFluidName() const; | ||
| 72 | |||
| 73 | boost::optional<int> glycolConcentration() const; | ||
| 74 | |||
| 75 | boost::optional<double> evaporatorCapacity() const; | ||
| 76 | |||
| 77 | boost::optional<double> evaporatorFlowRateforSecondaryFluid() const; | ||
| 78 | |||
| 79 | double evaporatorEvaporatingTemperature() const; | ||
| 80 | |||
| 81 | double evaporatorApproachTemperatureDifference() const; | ||
| 82 | |||
| 83 | boost::optional<double> evaporatorRangeTemperatureDifference() const; | ||
| 84 | |||
| 85 | int numberofPumpsinLoop() const; | ||
| 86 | |||
| 87 | bool isNumberofPumpsinLoopDefaulted() const; | ||
| 88 | |||
| 89 | boost::optional<double> totalPumpFlowRate() const; | ||
| 90 | |||
| 91 | boost::optional<double> totalPumpPower() const; | ||
| 92 | |||
| 93 | boost::optional<double> totalPumpHead() const; | ||
| 94 | |||
| 95 | double phaseChangeCirculatingRate() const; | ||
| 96 | |||
| 97 | bool isPhaseChangeCirculatingRateDefaulted() const; | ||
| 98 | |||
| 99 | std::string pumpDriveType() const; | ||
| 100 | |||
| 101 | bool isPumpDriveTypeDefaulted() const; | ||
| 102 | |||
| 103 | boost::optional<CurveCubic> variableSpeedPumpCubicCurve() const; | ||
| 104 | |||
| 105 | double pumpMotorHeattoFluid() const; | ||
| 106 | |||
| 107 | bool isPumpMotorHeattoFluidDefaulted() const; | ||
| 108 | |||
| 109 | double sumUADistributionPiping() const; | ||
| 110 | |||
| 111 | bool isSumUADistributionPipingDefaulted() const; | ||
| 112 | |||
| 113 | boost::optional<ThermalZone> distributionPipingZone() const; | ||
| 114 | |||
| 115 | double sumUAReceiverSeparatorShell() const; | ||
| 116 | |||
| 117 | bool isSumUAReceiverSeparatorShellDefaulted() const; | ||
| 118 | |||
| 119 | boost::optional<ThermalZone> receiverSeparatorZone() const; | ||
| 120 | |||
| 121 | double evaporatorRefrigerantInventory() const; | ||
| 122 | |||
| 123 | bool isEvaporatorRefrigerantInventoryDefaulted() const; | ||
| 124 | |||
| 125 | std::string endUseSubcategory() const; | ||
| 126 | |||
| 127 | bool isEndUseSubcategoryDefaulted() const; | ||
| 128 | |||
| 129 | boost::optional<RefrigerationSystem> system() const; | ||
| 130 | |||
| 131 | //@} | ||
| 132 | /** @name Setters */ | ||
| 133 | //@{ | ||
| 134 | |||
| 135 | template <class T> | ||
| 136 | void removeAllTemplate(boost::optional<ModelObjectList>& modelObjectList); | ||
| 137 | |||
| 138 | template <class T> | ||
| 139 | void removeTemplate(const T& modelObject, boost::optional<ModelObjectList>& modelObjectList); | ||
| 140 | |||
| 141 | template <class T> | ||
| 142 | bool addTemplate(const T& modelObject, boost::optional<ModelObjectList>& modelObjectList); | ||
| 143 | |||
| 144 | bool addCase(const RefrigerationCase& refrigerationCase); | ||
| 145 | |||
| 146 | void removeCase(const RefrigerationCase& refrigerationCase); | ||
| 147 | |||
| 148 | void removeAllCases(); | ||
| 149 | |||
| 150 | bool addWalkin(const RefrigerationWalkIn& refrigerationWalkin); | ||
| 151 | |||
| 152 | void removeWalkin(const RefrigerationWalkIn& refrigerationWalkin); | ||
| 153 | |||
| 154 | void removeAllWalkins(); | ||
| 155 | |||
| 156 | bool addAirChiller(const RefrigerationAirChiller& airChiller); | ||
| 157 | |||
| 158 | void removeAirChiller(const RefrigerationAirChiller& airChiller); | ||
| 159 | |||
| 160 | void removeAllAirChillers(); | ||
| 161 | |||
| 162 | bool setRefrigeratedCaseAndWalkInList(const boost::optional<ModelObjectList>& modelObjectList); | ||
| 163 | |||
| 164 | void resetRefrigeratedCaseAndWalkInList(); | ||
| 165 | |||
| 166 | bool setCirculatingFluidName(const std::string& circulatingFluidName); | ||
| 167 | |||
| 168 | bool setGlycolConcentration(boost::optional<int> glycolConcentration); | ||
| 169 | |||
| 170 | void resetGlycolConcentration(); | ||
| 171 | |||
| 172 | bool setEvaporatorCapacity(boost::optional<double> evaporatorCapacity); | ||
| 173 | |||
| 174 | void resetEvaporatorCapacity(); | ||
| 175 | |||
| 176 | bool setEvaporatorFlowRateforSecondaryFluid(boost::optional<double> evaporatorFlowRateforSecondaryFluid); | ||
| 177 | |||
| 178 | void resetEvaporatorFlowRateforSecondaryFluid(); | ||
| 179 | |||
| 180 | bool setEvaporatorEvaporatingTemperature(double evaporatorEvaporatingTemperature); | ||
| 181 | |||
| 182 | bool setEvaporatorApproachTemperatureDifference(double evaporatorApproachTemperatureDifference); | ||
| 183 | |||
| 184 | bool setEvaporatorRangeTemperatureDifference(boost::optional<double> evaporatorRangeTemperatureDifference); | ||
| 185 | |||
| 186 | void resetEvaporatorRangeTemperatureDifference(); | ||
| 187 | |||
| 188 | bool setNumberofPumpsinLoop(int numberofPumpsinLoop); | ||
| 189 | |||
| 190 | void resetNumberofPumpsinLoop(); | ||
| 191 | |||
| 192 | bool setTotalPumpFlowRate(boost::optional<double> totalPumpFlowRate); | ||
| 193 | |||
| 194 | void resetTotalPumpFlowRate(); | ||
| 195 | |||
| 196 | bool setTotalPumpPower(boost::optional<double> totalPumpPower); | ||
| 197 | |||
| 198 | void resetTotalPumpPower(); | ||
| 199 | |||
| 200 | bool setTotalPumpHead(boost::optional<double> totalPumpHead); | ||
| 201 | |||
| 202 | void resetTotalPumpHead(); | ||
| 203 | |||
| 204 | bool setPhaseChangeCirculatingRate(double phaseChangeCirculatingRate); | ||
| 205 | |||
| 206 | void resetPhaseChangeCirculatingRate(); | ||
| 207 | |||
| 208 | bool setPumpDriveType(const std::string& pumpDriveType); | ||
| 209 | |||
| 210 | void resetPumpDriveType(); | ||
| 211 | |||
| 212 | bool setVariableSpeedPumpCubicCurve(const boost::optional<CurveCubic>& curveCubic); | ||
| 213 | |||
| 214 | void resetVariableSpeedPumpCubicCurve(); | ||
| 215 | |||
| 216 | bool setPumpMotorHeattoFluid(double pumpMotorHeattoFluid); | ||
| 217 | |||
| 218 | void resetPumpMotorHeattoFluid(); | ||
| 219 | |||
| 220 | bool setSumUADistributionPiping(double sumUADistributionPiping); | ||
| 221 | |||
| 222 | void resetSumUADistributionPiping(); | ||
| 223 | |||
| 224 | bool setDistributionPipingZone(const boost::optional<ThermalZone>& thermalZone); | ||
| 225 | |||
| 226 | void resetDistributionPipingZone(); | ||
| 227 | |||
| 228 | bool setSumUAReceiverSeparatorShell(double sumUAReceiverSeparatorShell); | ||
| 229 | |||
| 230 | void resetSumUAReceiverSeparatorShell(); | ||
| 231 | |||
| 232 | bool setReceiverSeparatorZone(const boost::optional<ThermalZone>& thermalZone); | ||
| 233 | |||
| 234 | void resetReceiverSeparatorZone(); | ||
| 235 | |||
| 236 | bool setEvaporatorRefrigerantInventory(double evaporatorRefrigerantInventory); | ||
| 237 | |||
| 238 | void resetEvaporatorRefrigerantInventory(); | ||
| 239 | |||
| 240 | bool setEndUseSubcategory(const std::string& endUseSubcategory); | ||
| 241 | |||
| 242 | void resetEndUseSubcategory(); | ||
| 243 | |||
| 244 | void removeFromSystem(); | ||
| 245 | |||
| 246 | //@} | ||
| 247 | /** @name Other */ | ||
| 248 | //@{ | ||
| 249 | |||
| 250 | //@} | ||
| 251 | protected: | ||
| 252 | private: | ||
| 253 | − | REGISTER_LOGGER("openstudio.model.RefrigerationSecondarySystem"); | |
| 254 | }; | ||
| 255 | |||
| 256 | } // namespace detail | ||
| 257 | |||
| 258 | } // namespace model | ||
| 259 | } // namespace openstudio | ||
| 260 | |||
| 261 | #endif // MODEL_REFRIGERATIONSECONDARYSYSTEM_IMPL_HPP | ||
| 262 |