src/model/RefrigerationSubcoolerLiquidSuction.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_REFRIGERATIONSUBCOOLERLIQUIDSUCTION_HPP | ||
| 7 | #define MODEL_REFRIGERATIONSUBCOOLERLIQUIDSUCTION_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ModelObject.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | |||
| 14 | namespace model { | ||
| 15 | |||
| 16 | class RefrigerationSystem; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | class RefrigerationSubcoolerLiquidSuction_Impl; | ||
| 21 | |||
| 22 | } // namespace detail | ||
| 23 | |||
| 24 | /** RefrigerationSubcoolerLiquidSuction is a ModelObject that wraps the OpenStudio IDD object 'OS:Refrigeration:Subcooler:LiquidSuction'. */ | ||
| 25 | class MODEL_API RefrigerationSubcoolerLiquidSuction : public ModelObject | ||
| 26 | { | ||
| 27 | public: | ||
| 28 | /** @name Constructors and Destructors */ | ||
| 29 | //@{ | ||
| 30 | |||
| 31 | explicit RefrigerationSubcoolerLiquidSuction(const Model& model); | ||
| 32 | |||
| 33 | 104 | virtual ~RefrigerationSubcoolerLiquidSuction() override = default; | |
| 34 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 35 | 11 | RefrigerationSubcoolerLiquidSuction(const RefrigerationSubcoolerLiquidSuction& other) = default; | |
| 36 | 46 | RefrigerationSubcoolerLiquidSuction(RefrigerationSubcoolerLiquidSuction&& other) = default; | |
| 37 | ✗ | RefrigerationSubcoolerLiquidSuction& operator=(const RefrigerationSubcoolerLiquidSuction&) = default; | |
| 38 | ✗ | RefrigerationSubcoolerLiquidSuction& operator=(RefrigerationSubcoolerLiquidSuction&&) = default; | |
| 39 | |||
| 40 | //@} | ||
| 41 | |||
| 42 | static IddObjectType iddObjectType(); | ||
| 43 | |||
| 44 | /** @name Getters */ | ||
| 45 | //@{ | ||
| 46 | |||
| 47 | boost::optional<double> liquidSuctionDesignSubcoolingTemperatureDifference() const; | ||
| 48 | |||
| 49 | boost::optional<double> designLiquidInletTemperature() const; | ||
| 50 | |||
| 51 | boost::optional<double> designVaporInletTemperature() const; | ||
| 52 | |||
| 53 | //@} | ||
| 54 | /** @name Setters */ | ||
| 55 | //@{ | ||
| 56 | |||
| 57 | bool setLiquidSuctionDesignSubcoolingTemperatureDifference(double liquidSuctionDesignSubcoolingTemperatureDifference); | ||
| 58 | |||
| 59 | void resetLiquidSuctionDesignSubcoolingTemperatureDifference(); | ||
| 60 | |||
| 61 | bool setDesignLiquidInletTemperature(double designLiquidInletTemperature); | ||
| 62 | |||
| 63 | void resetDesignLiquidInletTemperature(); | ||
| 64 | |||
| 65 | bool setDesignVaporInletTemperature(double designVaporInletTemperature); | ||
| 66 | |||
| 67 | void resetDesignVaporInletTemperature(); | ||
| 68 | |||
| 69 | //@} | ||
| 70 | /** @name Other */ | ||
| 71 | //@{ | ||
| 72 | |||
| 73 | // The parent RefrigerationSystem, for which condensate is cooled. | ||
| 74 | // This is a convenience method to find any RefrigerationSystem that uses this subcooler | ||
| 75 | boost::optional<RefrigerationSystem> system() const; | ||
| 76 | |||
| 77 | //@} | ||
| 78 | protected: | ||
| 79 | /// @cond | ||
| 80 | using ImplType = detail::RefrigerationSubcoolerLiquidSuction_Impl; | ||
| 81 | |||
| 82 | explicit RefrigerationSubcoolerLiquidSuction(std::shared_ptr<detail::RefrigerationSubcoolerLiquidSuction_Impl> impl); | ||
| 83 | |||
| 84 | friend class detail::RefrigerationSubcoolerLiquidSuction_Impl; | ||
| 85 | friend class Model; | ||
| 86 | friend class IdfObject; | ||
| 87 | friend class openstudio::detail::IdfObject_Impl; | ||
| 88 | /// @endcond | ||
| 89 | private: | ||
| 90 | REGISTER_LOGGER("openstudio.model.RefrigerationSubcoolerLiquidSuction"); | ||
| 91 | }; | ||
| 92 | |||
| 93 | /** \relates RefrigerationSubcoolerLiquidSuction*/ | ||
| 94 | using OptionalRefrigerationSubcoolerLiquidSuction = boost::optional<RefrigerationSubcoolerLiquidSuction>; | ||
| 95 | |||
| 96 | /** \relates RefrigerationSubcoolerLiquidSuction*/ | ||
| 97 | using RefrigerationSubcoolerLiquidSuctionVector = std::vector<RefrigerationSubcoolerLiquidSuction>; | ||
| 98 | |||
| 99 | } // namespace model | ||
| 100 | } // namespace openstudio | ||
| 101 | |||
| 102 | #endif // MODEL_REFRIGERATIONSUBCOOLERLIQUIDSUCTION_HPP | ||
| 103 |