src/model/RefrigerationCondenserAirCooled.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_REFRIGERATIONCONDENSERAIRCOOLED_HPP | ||
| 7 | #define MODEL_REFRIGERATIONCONDENSERAIRCOOLED_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ParentObject.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | |||
| 14 | namespace model { | ||
| 15 | |||
| 16 | class CurveLinear; | ||
| 17 | class ThermalZone; | ||
| 18 | class RefrigerationSystem; | ||
| 19 | |||
| 20 | namespace detail { | ||
| 21 | |||
| 22 | class RefrigerationCondenserAirCooled_Impl; | ||
| 23 | |||
| 24 | } // namespace detail | ||
| 25 | |||
| 26 | /** RefrigerationCondenserAirCooled is a ParentObject that wraps the OpenStudio IDD object 'OS:Refrigeration:Condenser:AirCooled'. */ | ||
| 27 | class MODEL_API RefrigerationCondenserAirCooled : public ParentObject | ||
| 28 | { | ||
| 29 | public: | ||
| 30 | /** @name Constructors and Destructors */ | ||
| 31 | //@{ | ||
| 32 | |||
| 33 | explicit RefrigerationCondenserAirCooled(const Model& model); | ||
| 34 | |||
| 35 | 50 | virtual ~RefrigerationCondenserAirCooled() override = default; | |
| 36 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 37 | ✗ | RefrigerationCondenserAirCooled(const RefrigerationCondenserAirCooled& other) = default; | |
| 38 | 13 | RefrigerationCondenserAirCooled(RefrigerationCondenserAirCooled&& other) = default; | |
| 39 | ✗ | RefrigerationCondenserAirCooled& operator=(const RefrigerationCondenserAirCooled&) = default; | |
| 40 | ✗ | RefrigerationCondenserAirCooled& operator=(RefrigerationCondenserAirCooled&&) = default; | |
| 41 | |||
| 42 | //@} | ||
| 43 | |||
| 44 | static IddObjectType iddObjectType(); | ||
| 45 | |||
| 46 | static std::vector<std::string> condenserFanSpeedControlTypeValues(); | ||
| 47 | |||
| 48 | /** @name Getters */ | ||
| 49 | //@{ | ||
| 50 | |||
| 51 | boost::optional<CurveLinear> ratedEffectiveTotalHeatRejectionRateCurve() const; | ||
| 52 | |||
| 53 | double ratedSubcoolingTemperatureDifference() const; | ||
| 54 | |||
| 55 | bool isRatedSubcoolingTemperatureDifferenceDefaulted() const; | ||
| 56 | |||
| 57 | std::string condenserFanSpeedControlType() const; | ||
| 58 | |||
| 59 | bool isCondenserFanSpeedControlTypeDefaulted() const; | ||
| 60 | |||
| 61 | double ratedFanPower() const; | ||
| 62 | |||
| 63 | bool isRatedFanPowerDefaulted() const; | ||
| 64 | |||
| 65 | double minimumFanAirFlowRatio() const; | ||
| 66 | |||
| 67 | bool isMinimumFanAirFlowRatioDefaulted() const; | ||
| 68 | |||
| 69 | boost::optional<ThermalZone> airInletZone() const; | ||
| 70 | |||
| 71 | std::string endUseSubcategory() const; | ||
| 72 | |||
| 73 | bool isEndUseSubcategoryDefaulted() const; | ||
| 74 | |||
| 75 | double condenserRefrigerantOperatingChargeInventory() const; | ||
| 76 | |||
| 77 | bool isCondenserRefrigerantOperatingChargeInventoryDefaulted() const; | ||
| 78 | |||
| 79 | double condensateReceiverRefrigerantInventory() const; | ||
| 80 | |||
| 81 | bool isCondensateReceiverRefrigerantInventoryDefaulted() const; | ||
| 82 | |||
| 83 | double condensatePipingRefrigerantInventory() const; | ||
| 84 | |||
| 85 | bool isCondensatePipingRefrigerantInventoryDefaulted() const; | ||
| 86 | |||
| 87 | //@} | ||
| 88 | /** @name Setters */ | ||
| 89 | //@{ | ||
| 90 | |||
| 91 | bool setRatedEffectiveTotalHeatRejectionRateCurve(const CurveLinear& curveLinear); | ||
| 92 | |||
| 93 | void resetRatedEffectiveTotalHeatRejectionRateCurve(); | ||
| 94 | |||
| 95 | bool setRatedSubcoolingTemperatureDifference(double ratedSubcoolingTemperatureDifference); | ||
| 96 | |||
| 97 | void resetRatedSubcoolingTemperatureDifference(); | ||
| 98 | |||
| 99 | bool setCondenserFanSpeedControlType(const std::string& condenserFanSpeedControlType); | ||
| 100 | |||
| 101 | void resetCondenserFanSpeedControlType(); | ||
| 102 | |||
| 103 | bool setRatedFanPower(double ratedFanPower); | ||
| 104 | |||
| 105 | void resetRatedFanPower(); | ||
| 106 | |||
| 107 | bool setMinimumFanAirFlowRatio(double minimumFanAirFlowRatio); | ||
| 108 | |||
| 109 | void resetMinimumFanAirFlowRatio(); | ||
| 110 | |||
| 111 | bool setAirInletZone(const ThermalZone& thermalZone); | ||
| 112 | |||
| 113 | void resetAirInletZone(); | ||
| 114 | |||
| 115 | bool setEndUseSubcategory(const std::string& endUseSubcategory); | ||
| 116 | |||
| 117 | void resetEndUseSubcategory(); | ||
| 118 | |||
| 119 | bool setCondenserRefrigerantOperatingChargeInventory(double condenserRefrigerantOperatingChargeInventory); | ||
| 120 | |||
| 121 | void resetCondenserRefrigerantOperatingChargeInventory(); | ||
| 122 | |||
| 123 | bool setCondensateReceiverRefrigerantInventory(double condensateReceiverRefrigerantInventory); | ||
| 124 | |||
| 125 | void resetCondensateReceiverRefrigerantInventory(); | ||
| 126 | |||
| 127 | bool setCondensatePipingRefrigerantInventory(double condensatePipingRefrigerantInventory); | ||
| 128 | |||
| 129 | void resetCondensatePipingRefrigerantInventory(); | ||
| 130 | |||
| 131 | //@} | ||
| 132 | /** @name Other */ | ||
| 133 | //@{ | ||
| 134 | |||
| 135 | // The parent RefrigerationSystem, which rejects heat to this condenser | ||
| 136 | // This is a convenience method to find any RefrigerationSystem that uses this condenser | ||
| 137 | boost::optional<RefrigerationSystem> system() const; | ||
| 138 | |||
| 139 | //@} | ||
| 140 | protected: | ||
| 141 | /// @cond | ||
| 142 | using ImplType = detail::RefrigerationCondenserAirCooled_Impl; | ||
| 143 | |||
| 144 | explicit RefrigerationCondenserAirCooled(std::shared_ptr<detail::RefrigerationCondenserAirCooled_Impl> impl); | ||
| 145 | |||
| 146 | friend class detail::RefrigerationCondenserAirCooled_Impl; | ||
| 147 | friend class Model; | ||
| 148 | friend class IdfObject; | ||
| 149 | friend class openstudio::detail::IdfObject_Impl; | ||
| 150 | /// @endcond | ||
| 151 | private: | ||
| 152 | REGISTER_LOGGER("openstudio.model.RefrigerationCondenserAirCooled"); | ||
| 153 | }; | ||
| 154 | |||
| 155 | /** \relates RefrigerationCondenserAirCooled*/ | ||
| 156 | using OptionalRefrigerationCondenserAirCooled = boost::optional<RefrigerationCondenserAirCooled>; | ||
| 157 | |||
| 158 | /** \relates RefrigerationCondenserAirCooled*/ | ||
| 159 | using RefrigerationCondenserAirCooledVector = std::vector<RefrigerationCondenserAirCooled>; | ||
| 160 | |||
| 161 | } // namespace model | ||
| 162 | } // namespace openstudio | ||
| 163 | |||
| 164 | #endif // MODEL_REFRIGERATIONCONDENSERAIRCOOLED_HPP | ||
| 165 |