src/model/RefrigerationCompressorRack.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_REFRIGERATIONCOMPRESSORRACK_HPP | ||
| 7 | #define MODEL_REFRIGERATIONCOMPRESSORRACK_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "StraightComponent.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | |||
| 14 | namespace model { | ||
| 15 | |||
| 16 | class Curve; | ||
| 17 | class Schedule; | ||
| 18 | class ThermalZone; | ||
| 19 | class RefrigerationAirChiller; | ||
| 20 | class RefrigerationCase; | ||
| 21 | class RefrigerationWalkIn; | ||
| 22 | |||
| 23 | namespace detail { | ||
| 24 | |||
| 25 | class RefrigerationCompressorRack_Impl; | ||
| 26 | |||
| 27 | } // namespace detail | ||
| 28 | |||
| 29 | /** RefrigerationCompressorRack is a StraightComponent that wraps the OpenStudio IDD object 'OS:Refrigeration:CompressorRack'. */ | ||
| 30 | class MODEL_API RefrigerationCompressorRack : public StraightComponent | ||
| 31 | { | ||
| 32 | public: | ||
| 33 | /** @name Constructors and Destructors */ | ||
| 34 | //@{ | ||
| 35 | |||
| 36 | explicit RefrigerationCompressorRack(const Model& model); | ||
| 37 | |||
| 38 | 17 | virtual ~RefrigerationCompressorRack() override = default; | |
| 39 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 40 | ✗ | RefrigerationCompressorRack(const RefrigerationCompressorRack& other) = default; | |
| 41 | 3 | RefrigerationCompressorRack(RefrigerationCompressorRack&& other) = default; | |
| 42 | ✗ | RefrigerationCompressorRack& operator=(const RefrigerationCompressorRack&) = default; | |
| 43 | ✗ | RefrigerationCompressorRack& operator=(RefrigerationCompressorRack&&) = default; | |
| 44 | |||
| 45 | //@} | ||
| 46 | |||
| 47 | static IddObjectType iddObjectType(); | ||
| 48 | |||
| 49 | static std::vector<std::string> condenserTypeValues(); | ||
| 50 | |||
| 51 | static std::vector<std::string> waterCooledLoopFlowTypeValues(); | ||
| 52 | |||
| 53 | /** @name Getters */ | ||
| 54 | //@{ | ||
| 55 | |||
| 56 | std::string heatRejectionLocation() const; | ||
| 57 | |||
| 58 | double designCompressorRackCOP() const; | ||
| 59 | |||
| 60 | Curve compressorRackCOPFunctionofTemperatureCurve() const; | ||
| 61 | |||
| 62 | double designCondenserFanPower() const; | ||
| 63 | |||
| 64 | boost::optional<Curve> condenserFanPowerFunctionofTemperatureCurve() const; | ||
| 65 | |||
| 66 | std::string condenserType() const; | ||
| 67 | |||
| 68 | std::string waterCooledLoopFlowType() const; | ||
| 69 | |||
| 70 | boost::optional<Schedule> waterCooledCondenserOutletTemperatureSchedule() const; | ||
| 71 | |||
| 72 | boost::optional<double> waterCooledCondenserDesignFlowRate() const; | ||
| 73 | |||
| 74 | boost::optional<double> waterCooledCondenserMaximumFlowRate() const; | ||
| 75 | |||
| 76 | double waterCooledCondenserMaximumWaterOutletTemperature() const; | ||
| 77 | |||
| 78 | double waterCooledCondenserMinimumWaterInletTemperature() const; | ||
| 79 | |||
| 80 | boost::optional<Schedule> evaporativeCondenserAvailabilitySchedule() const; | ||
| 81 | |||
| 82 | double evaporativeCondenserEffectiveness() const; | ||
| 83 | |||
| 84 | boost::optional<double> evaporativeCondenserAirFlowRate() const; | ||
| 85 | |||
| 86 | bool isEvaporativeCondenserAirFlowRateAutocalculated() const; | ||
| 87 | |||
| 88 | double basinHeaterCapacity() const; | ||
| 89 | |||
| 90 | double basinHeaterSetpointTemperature() const; | ||
| 91 | |||
| 92 | boost::optional<double> designEvaporativeCondenserWaterPumpPower() const; | ||
| 93 | |||
| 94 | bool isDesignEvaporativeCondenserWaterPumpPowerAutocalculated() const; | ||
| 95 | |||
| 96 | // boost::optional<HVACComponent> evaporativeWaterSupplyTank() const; | ||
| 97 | |||
| 98 | // boost::optional<std::string> condenserAirInletNodeName() const; | ||
| 99 | |||
| 100 | std::string endUseSubcategory() const; | ||
| 101 | |||
| 102 | bool isEndUseSubcategoryDefaulted() const; | ||
| 103 | |||
| 104 | std::vector<RefrigerationCase> cases() const; | ||
| 105 | |||
| 106 | std::vector<RefrigerationWalkIn> walkins() const; | ||
| 107 | |||
| 108 | std::vector<RefrigerationAirChiller> airChillers() const; | ||
| 109 | |||
| 110 | boost::optional<ThermalZone> heatRejectionZone() const; | ||
| 111 | |||
| 112 | //@} | ||
| 113 | /** @name Setters */ | ||
| 114 | //@{ | ||
| 115 | |||
| 116 | bool setHeatRejectionLocation(const std::string& heatRejectionLocation); | ||
| 117 | |||
| 118 | bool setDesignCompressorRackCOP(double designCompressorRackCOP); | ||
| 119 | |||
| 120 | bool setCompressorRackCOPFunctionofTemperatureCurve(const Curve& curve); | ||
| 121 | |||
| 122 | bool setDesignCondenserFanPower(double designCondenserFanPower); | ||
| 123 | |||
| 124 | bool setCondenserFanPowerFunctionofTemperatureCurve(const Curve& curve); | ||
| 125 | |||
| 126 | void resetCondenserFanPowerFunctionofTemperatureCurve(); | ||
| 127 | |||
| 128 | bool setCondenserType(const std::string& condenserType); | ||
| 129 | |||
| 130 | bool setWaterCooledLoopFlowType(const std::string& waterCooledLoopFlowType); | ||
| 131 | |||
| 132 | bool setWaterCooledCondenserOutletTemperatureSchedule(Schedule& schedule); | ||
| 133 | |||
| 134 | void resetWaterCooledCondenserOutletTemperatureSchedule(); | ||
| 135 | |||
| 136 | bool setWaterCooledCondenserDesignFlowRate(double waterCooledCondenserDesignFlowRate); | ||
| 137 | |||
| 138 | void resetWaterCooledCondenserDesignFlowRate(); | ||
| 139 | |||
| 140 | bool setWaterCooledCondenserMaximumFlowRate(double waterCooledCondenserMaximumFlowRate); | ||
| 141 | |||
| 142 | void resetWaterCooledCondenserMaximumFlowRate(); | ||
| 143 | |||
| 144 | bool setWaterCooledCondenserMaximumWaterOutletTemperature(double waterCooledCondenserMaximumWaterOutletTemperature); | ||
| 145 | |||
| 146 | bool setWaterCooledCondenserMinimumWaterInletTemperature(double waterCooledCondenserMinimumWaterInletTemperature); | ||
| 147 | |||
| 148 | bool setEvaporativeCondenserAvailabilitySchedule(Schedule& schedule); | ||
| 149 | |||
| 150 | void resetEvaporativeCondenserAvailabilitySchedule(); | ||
| 151 | |||
| 152 | bool setEvaporativeCondenserEffectiveness(double evaporativeCondenserEffectiveness); | ||
| 153 | |||
| 154 | bool setEvaporativeCondenserAirFlowRate(double evaporativeCondenserAirFlowRate); | ||
| 155 | |||
| 156 | bool autocalculateEvaporativeCondenserAirFlowRate(); | ||
| 157 | |||
| 158 | bool setBasinHeaterCapacity(double basinHeaterCapacity); | ||
| 159 | |||
| 160 | bool setBasinHeaterSetpointTemperature(double basinHeaterSetpointTemperature); | ||
| 161 | |||
| 162 | bool setDesignEvaporativeCondenserWaterPumpPower(double designEvaporativeCondenserWaterPumpPower); | ||
| 163 | |||
| 164 | bool autocalculateDesignEvaporativeCondenserWaterPumpPower(); | ||
| 165 | |||
| 166 | // bool setEvaporativeWaterSupplyTank(const HVACComponent& evaporativeWaterSupplyTank); | ||
| 167 | |||
| 168 | // void resetEvaporativeWaterSupplyTank(); | ||
| 169 | |||
| 170 | // bool setCondenserAirInletNodeName(const boost::optional<std::string>& condenserAirInletNodeName); | ||
| 171 | |||
| 172 | // void resetCondenserAirInletNodeName(); | ||
| 173 | |||
| 174 | bool setEndUseSubcategory(const std::string& endUseSubcategory); | ||
| 175 | |||
| 176 | void resetEndUseSubcategory(); | ||
| 177 | |||
| 178 | bool addCase(const RefrigerationCase& refrigerationCase); | ||
| 179 | |||
| 180 | void removeCase(const RefrigerationCase& refrigerationCase); | ||
| 181 | |||
| 182 | void removeAllCases(); | ||
| 183 | |||
| 184 | bool addWalkin(const RefrigerationWalkIn& refrigerationWalkin); | ||
| 185 | |||
| 186 | void removeWalkin(const RefrigerationWalkIn& refrigerationWalkin); | ||
| 187 | |||
| 188 | void removeAllWalkins(); | ||
| 189 | |||
| 190 | bool addAirChiller(const RefrigerationAirChiller& airChiller); | ||
| 191 | |||
| 192 | void removeAirChiller(const RefrigerationAirChiller& airChiller); | ||
| 193 | |||
| 194 | void removeAllAirChillers(); | ||
| 195 | |||
| 196 | void resetRefrigeratedCaseAndWalkInList(); | ||
| 197 | |||
| 198 | bool setHeatRejectionZone(const ThermalZone& thermalZone); | ||
| 199 | |||
| 200 | void resetHeatRejectionZone(); | ||
| 201 | |||
| 202 | //@} | ||
| 203 | /** @name Other */ | ||
| 204 | //@{ | ||
| 205 | |||
| 206 | //@} | ||
| 207 | protected: | ||
| 208 | /// @cond | ||
| 209 | using ImplType = detail::RefrigerationCompressorRack_Impl; | ||
| 210 | |||
| 211 | explicit RefrigerationCompressorRack(std::shared_ptr<detail::RefrigerationCompressorRack_Impl> impl); | ||
| 212 | |||
| 213 | friend class detail::RefrigerationCompressorRack_Impl; | ||
| 214 | friend class Model; | ||
| 215 | friend class IdfObject; | ||
| 216 | friend class openstudio::detail::IdfObject_Impl; | ||
| 217 | /// @endcond | ||
| 218 | private: | ||
| 219 | REGISTER_LOGGER("openstudio.model.RefrigerationCompressorRack"); | ||
| 220 | }; | ||
| 221 | |||
| 222 | /** \relates RefrigerationCompressorRack*/ | ||
| 223 | using OptionalRefrigerationCompressorRack = boost::optional<RefrigerationCompressorRack>; | ||
| 224 | |||
| 225 | /** \relates RefrigerationCompressorRack*/ | ||
| 226 | using RefrigerationCompressorRackVector = std::vector<RefrigerationCompressorRack>; | ||
| 227 | |||
| 228 | } // namespace model | ||
| 229 | } // namespace openstudio | ||
| 230 | |||
| 231 | #endif // MODEL_REFRIGERATIONCOMPRESSORRACK_HPP | ||
| 232 |