src/model/RefrigerationCondenserEvaporativeCooled.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_REFRIGERATIONCONDENSEREVAPORATIVECOOLED_HPP | ||
| 7 | #define MODEL_REFRIGERATIONCONDENSEREVAPORATIVECOOLED_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ParentObject.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | |||
| 14 | namespace model { | ||
| 15 | |||
| 16 | // WaterStorageTank object not used | ||
| 17 | //class WaterStorageTank; | ||
| 18 | class Schedule; | ||
| 19 | class RefrigerationSystem; | ||
| 20 | |||
| 21 | namespace detail { | ||
| 22 | |||
| 23 | class RefrigerationCondenserEvaporativeCooled_Impl; | ||
| 24 | |||
| 25 | } // namespace detail | ||
| 26 | |||
| 27 | /** RefrigerationCondenserEvaporativeCooled is a ParentObject that wraps the OpenStudio IDD object 'OS:Refrigeration:Condenser:EvaporativeCooled'. */ | ||
| 28 | class MODEL_API RefrigerationCondenserEvaporativeCooled : public ParentObject | ||
| 29 | { | ||
| 30 | public: | ||
| 31 | /** @name Constructors and Destructors */ | ||
| 32 | //@{ | ||
| 33 | |||
| 34 | explicit RefrigerationCondenserEvaporativeCooled(const Model& model); | ||
| 35 | |||
| 36 | 49 | virtual ~RefrigerationCondenserEvaporativeCooled() override = default; | |
| 37 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 38 | ✗ | RefrigerationCondenserEvaporativeCooled(const RefrigerationCondenserEvaporativeCooled& other) = default; | |
| 39 | 7 | RefrigerationCondenserEvaporativeCooled(RefrigerationCondenserEvaporativeCooled&& other) = default; | |
| 40 | ✗ | RefrigerationCondenserEvaporativeCooled& operator=(const RefrigerationCondenserEvaporativeCooled&) = default; | |
| 41 | ✗ | RefrigerationCondenserEvaporativeCooled& operator=(RefrigerationCondenserEvaporativeCooled&&) = default; | |
| 42 | |||
| 43 | //@} | ||
| 44 | |||
| 45 | static IddObjectType iddObjectType(); | ||
| 46 | |||
| 47 | static std::vector<std::string> fanSpeedControlTypeValues(); | ||
| 48 | |||
| 49 | /** @name Getters */ | ||
| 50 | //@{ | ||
| 51 | |||
| 52 | double ratedEffectiveTotalHeatRejectionRate() const; | ||
| 53 | |||
| 54 | double ratedSubcoolingTemperatureDifference() const; | ||
| 55 | |||
| 56 | bool isRatedSubcoolingTemperatureDifferenceDefaulted() const; | ||
| 57 | |||
| 58 | std::string fanSpeedControlType() const; | ||
| 59 | |||
| 60 | bool isFanSpeedControlTypeDefaulted() const; | ||
| 61 | |||
| 62 | double ratedFanPower() const; | ||
| 63 | |||
| 64 | double minimumFanAirFlowRatio() const; | ||
| 65 | |||
| 66 | bool isMinimumFanAirFlowRatioDefaulted() const; | ||
| 67 | |||
| 68 | double approachTemperatureConstantTerm() const; | ||
| 69 | |||
| 70 | bool isApproachTemperatureConstantTermDefaulted() const; | ||
| 71 | |||
| 72 | double approachTemperatureCoefficient2() const; | ||
| 73 | |||
| 74 | bool isApproachTemperatureCoefficient2Defaulted() const; | ||
| 75 | |||
| 76 | double approachTemperatureCoefficient3() const; | ||
| 77 | |||
| 78 | bool isApproachTemperatureCoefficient3Defaulted() const; | ||
| 79 | |||
| 80 | double approachTemperatureCoefficient4() const; | ||
| 81 | |||
| 82 | bool isApproachTemperatureCoefficient4Defaulted() const; | ||
| 83 | |||
| 84 | double minimumCapacityFactor() const; | ||
| 85 | |||
| 86 | bool isMinimumCapacityFactorDefaulted() const; | ||
| 87 | |||
| 88 | double maximumCapacityFactor() const; | ||
| 89 | |||
| 90 | bool isMaximumCapacityFactorDefaulted() const; | ||
| 91 | |||
| 92 | //std::string airInletNode() const; | ||
| 93 | |||
| 94 | boost::optional<double> ratedAirFlowRate() const; | ||
| 95 | |||
| 96 | bool isRatedAirFlowRateDefaulted() const; | ||
| 97 | |||
| 98 | bool isRatedAirFlowRateAutocalculated() const; | ||
| 99 | |||
| 100 | double basinHeaterCapacity() const; | ||
| 101 | |||
| 102 | bool isBasinHeaterCapacityDefaulted() const; | ||
| 103 | |||
| 104 | double basinHeaterSetpointTemperature() const; | ||
| 105 | |||
| 106 | bool isBasinHeaterSetpointTemperatureDefaulted() const; | ||
| 107 | |||
| 108 | boost::optional<double> ratedWaterPumpPower() const; | ||
| 109 | |||
| 110 | bool isRatedWaterPumpPowerDefaulted() const; | ||
| 111 | |||
| 112 | bool isRatedWaterPumpPowerAutocalculated() const; | ||
| 113 | |||
| 114 | //boost::optional<WaterStorageTank> evaporativeWaterSupplyTank() const; | ||
| 115 | |||
| 116 | boost::optional<Schedule> evaporativeCondenserAvailabilitySchedule() const; | ||
| 117 | |||
| 118 | std::string endUseSubcategory() const; | ||
| 119 | |||
| 120 | bool isEndUseSubcategoryDefaulted() const; | ||
| 121 | |||
| 122 | double condenserRefrigerantOperatingChargeInventory() const; | ||
| 123 | |||
| 124 | bool isCondenserRefrigerantOperatingChargeInventoryDefaulted() const; | ||
| 125 | |||
| 126 | double condensateReceiverRefrigerantInventory() const; | ||
| 127 | |||
| 128 | bool isCondensateReceiverRefrigerantInventoryDefaulted() const; | ||
| 129 | |||
| 130 | double condensatePipingRefrigerantInventory() const; | ||
| 131 | |||
| 132 | bool isCondensatePipingRefrigerantInventoryDefaulted() const; | ||
| 133 | |||
| 134 | //@} | ||
| 135 | /** @name Setters */ | ||
| 136 | //@{ | ||
| 137 | |||
| 138 | bool setRatedEffectiveTotalHeatRejectionRate(double ratedEffectiveTotalHeatRejectionRate); | ||
| 139 | |||
| 140 | bool setRatedSubcoolingTemperatureDifference(double ratedSubcoolingTemperatureDifference); | ||
| 141 | |||
| 142 | void resetRatedSubcoolingTemperatureDifference(); | ||
| 143 | |||
| 144 | bool setFanSpeedControlType(const std::string& fanSpeedControlType); | ||
| 145 | |||
| 146 | void resetFanSpeedControlType(); | ||
| 147 | |||
| 148 | bool setRatedFanPower(double ratedFanPower); | ||
| 149 | |||
| 150 | bool setMinimumFanAirFlowRatio(double minimumFanAirFlowRatio); | ||
| 151 | |||
| 152 | void resetMinimumFanAirFlowRatio(); | ||
| 153 | |||
| 154 | bool setApproachTemperatureConstantTerm(double approachTemperatureConstantTerm); | ||
| 155 | |||
| 156 | void resetApproachTemperatureConstantTerm(); | ||
| 157 | |||
| 158 | bool setApproachTemperatureCoefficient2(double approachTemperatureCoefficient2); | ||
| 159 | |||
| 160 | void resetApproachTemperatureCoefficient2(); | ||
| 161 | |||
| 162 | bool setApproachTemperatureCoefficient3(double approachTemperatureCoefficient3); | ||
| 163 | |||
| 164 | void resetApproachTemperatureCoefficient3(); | ||
| 165 | |||
| 166 | bool setApproachTemperatureCoefficient4(double approachTemperatureCoefficient4); | ||
| 167 | |||
| 168 | void resetApproachTemperatureCoefficient4(); | ||
| 169 | |||
| 170 | bool setMinimumCapacityFactor(double minimumCapacityFactor); | ||
| 171 | |||
| 172 | void resetMinimumCapacityFactor(); | ||
| 173 | |||
| 174 | bool setMaximumCapacityFactor(double maximumCapacityFactor); | ||
| 175 | |||
| 176 | void resetMaximumCapacityFactor(); | ||
| 177 | |||
| 178 | //bool setAirInletNode(const std::string& airInletNode); | ||
| 179 | |||
| 180 | //void resetAirInletNode(); | ||
| 181 | |||
| 182 | bool setRatedAirFlowRate(double ratedAirFlowRate); | ||
| 183 | |||
| 184 | void resetRatedAirFlowRate(); | ||
| 185 | |||
| 186 | void autocalculateRatedAirFlowRate(); | ||
| 187 | |||
| 188 | bool setBasinHeaterCapacity(double basinHeaterCapacity); | ||
| 189 | |||
| 190 | void resetBasinHeaterCapacity(); | ||
| 191 | |||
| 192 | bool setBasinHeaterSetpointTemperature(double basinHeaterSetpointTemperature); | ||
| 193 | |||
| 194 | void resetBasinHeaterSetpointTemperature(); | ||
| 195 | |||
| 196 | bool setRatedWaterPumpPower(double ratedWaterPumpPower); | ||
| 197 | |||
| 198 | void resetRatedWaterPumpPower(); | ||
| 199 | |||
| 200 | void autocalculateRatedWaterPumpPower(); | ||
| 201 | |||
| 202 | //bool setEvaporativeWaterSupplyTank(const WaterStorageTank& waterStorageTank); | ||
| 203 | |||
| 204 | //void resetEvaporativeWaterSupplyTank(); | ||
| 205 | |||
| 206 | bool setEvaporativeCondenserAvailabilitySchedule(Schedule& schedule); | ||
| 207 | |||
| 208 | void resetEvaporativeCondenserAvailabilitySchedule(); | ||
| 209 | |||
| 210 | bool setEndUseSubcategory(const std::string& endUseSubcategory); | ||
| 211 | |||
| 212 | void resetEndUseSubcategory(); | ||
| 213 | |||
| 214 | bool setCondenserRefrigerantOperatingChargeInventory(double condenserRefrigerantOperatingChargeInventory); | ||
| 215 | |||
| 216 | void resetCondenserRefrigerantOperatingChargeInventory(); | ||
| 217 | |||
| 218 | bool setCondensateReceiverRefrigerantInventory(double condensateReceiverRefrigerantInventory); | ||
| 219 | |||
| 220 | void resetCondensateReceiverRefrigerantInventory(); | ||
| 221 | |||
| 222 | bool setCondensatePipingRefrigerantInventory(double condensatePipingRefrigerantInventory); | ||
| 223 | |||
| 224 | void resetCondensatePipingRefrigerantInventory(); | ||
| 225 | |||
| 226 | //@} | ||
| 227 | /** @name Other */ | ||
| 228 | //@{ | ||
| 229 | |||
| 230 | // The parent RefrigerationSystem, which rejects heat to this condenser | ||
| 231 | // This is a convenience method to find any RefrigerationSystem that uses this condenser | ||
| 232 | boost::optional<RefrigerationSystem> system() const; | ||
| 233 | |||
| 234 | //@} | ||
| 235 | protected: | ||
| 236 | /// @cond | ||
| 237 | using ImplType = detail::RefrigerationCondenserEvaporativeCooled_Impl; | ||
| 238 | |||
| 239 | explicit RefrigerationCondenserEvaporativeCooled(std::shared_ptr<detail::RefrigerationCondenserEvaporativeCooled_Impl> impl); | ||
| 240 | |||
| 241 | friend class detail::RefrigerationCondenserEvaporativeCooled_Impl; | ||
| 242 | friend class Model; | ||
| 243 | friend class IdfObject; | ||
| 244 | friend class openstudio::detail::IdfObject_Impl; | ||
| 245 | /// @endcond | ||
| 246 | private: | ||
| 247 | REGISTER_LOGGER("openstudio.model.RefrigerationCondenserEvaporativeCooled"); | ||
| 248 | }; | ||
| 249 | |||
| 250 | /** \relates RefrigerationCondenserEvaporativeCooled*/ | ||
| 251 | using OptionalRefrigerationCondenserEvaporativeCooled = boost::optional<RefrigerationCondenserEvaporativeCooled>; | ||
| 252 | |||
| 253 | /** \relates RefrigerationCondenserEvaporativeCooled*/ | ||
| 254 | using RefrigerationCondenserEvaporativeCooledVector = std::vector<RefrigerationCondenserEvaporativeCooled>; | ||
| 255 | |||
| 256 | } // namespace model | ||
| 257 | } // namespace openstudio | ||
| 258 | |||
| 259 | #endif // MODEL_REFRIGERATIONCONDENSEREVAPORATIVECOOLED_HPP | ||
| 260 |