src/model/CoilWaterHeatingAirToWaterHeatPumpVariableSpeed.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_COILWATERHEATINGAIRTOWATERHEATPUMPVARIABLESPEED_HPP | ||
| 7 | #define MODEL_COILWATERHEATINGAIRTOWATERHEATPUMPVARIABLESPEED_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "HVACComponent.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | |||
| 14 | namespace model { | ||
| 15 | |||
| 16 | class Curve; | ||
| 17 | class CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData; | ||
| 18 | |||
| 19 | namespace detail { | ||
| 20 | |||
| 21 | class CoilWaterHeatingAirToWaterHeatPumpVariableSpeed_Impl; | ||
| 22 | |||
| 23 | } // namespace detail | ||
| 24 | |||
| 25 | /** CoilWaterHeatingAirToWaterHeatPumpVariableSpeed is a ModelObject that wraps the OpenStudio IDD object 'OS:Coil:WaterHeating:AirToWaterHeatPump:VariableSpeed'. */ | ||
| 26 | class MODEL_API CoilWaterHeatingAirToWaterHeatPumpVariableSpeed : public HVACComponent | ||
| 27 | { | ||
| 28 | public: | ||
| 29 | /** @name Constructors and Destructors */ | ||
| 30 | //@{ | ||
| 31 | |||
| 32 | explicit CoilWaterHeatingAirToWaterHeatPumpVariableSpeed(const Model& model); | ||
| 33 | |||
| 34 | 143 | virtual ~CoilWaterHeatingAirToWaterHeatPumpVariableSpeed() override = default; | |
| 35 | // Default the copy and move operators because the virtual dtor is explicit | ||
| 36 | ✗ | CoilWaterHeatingAirToWaterHeatPumpVariableSpeed(const CoilWaterHeatingAirToWaterHeatPumpVariableSpeed& other) = default; | |
| 37 | 31 | CoilWaterHeatingAirToWaterHeatPumpVariableSpeed(CoilWaterHeatingAirToWaterHeatPumpVariableSpeed&& other) = default; | |
| 38 | ✗ | CoilWaterHeatingAirToWaterHeatPumpVariableSpeed& operator=(const CoilWaterHeatingAirToWaterHeatPumpVariableSpeed&) = default; | |
| 39 | ✗ | CoilWaterHeatingAirToWaterHeatPumpVariableSpeed& operator=(CoilWaterHeatingAirToWaterHeatPumpVariableSpeed&&) = default; | |
| 40 | |||
| 41 | //@} | ||
| 42 | |||
| 43 | static IddObjectType iddObjectType(); | ||
| 44 | |||
| 45 | /** @name Getters */ | ||
| 46 | //@{ | ||
| 47 | |||
| 48 | Schedule availabilitySchedule() const; | ||
| 49 | |||
| 50 | int nominalSpeedLevel() const; | ||
| 51 | |||
| 52 | double ratedWaterHeatingCapacity() const; | ||
| 53 | |||
| 54 | double ratedEvaporatorInletAirDryBulbTemperature() const; | ||
| 55 | |||
| 56 | double ratedEvaporatorInletAirWetBulbTemperature() const; | ||
| 57 | |||
| 58 | double ratedCondenserInletWaterTemperature() const; | ||
| 59 | |||
| 60 | boost::optional<double> ratedEvaporatorAirFlowRate() const; | ||
| 61 | |||
| 62 | bool isRatedEvaporatorAirFlowRateAutocalculated() const; | ||
| 63 | |||
| 64 | boost::optional<double> ratedCondenserWaterFlowRate() const; | ||
| 65 | |||
| 66 | bool isRatedCondenserWaterFlowRateAutocalculated() const; | ||
| 67 | |||
| 68 | std::string evaporatorFanPowerIncludedinRatedCOP() const; | ||
| 69 | |||
| 70 | std::string condenserPumpPowerIncludedinRatedCOP() const; | ||
| 71 | |||
| 72 | std::string condenserPumpHeatIncludedinRatedHeatingCapacityandRatedCOP() const; | ||
| 73 | |||
| 74 | double fractionofCondenserPumpHeattoWater() const; | ||
| 75 | |||
| 76 | double crankcaseHeaterCapacity() const; | ||
| 77 | |||
| 78 | boost::optional<Curve> crankcaseHeaterCapacityFunctionofTemperatureCurve() const; | ||
| 79 | |||
| 80 | double maximumAmbientTemperatureforCrankcaseHeaterOperation() const; | ||
| 81 | |||
| 82 | std::string evaporatorAirTemperatureTypeforCurveObjects() const; | ||
| 83 | |||
| 84 | Curve partLoadFractionCorrelationCurve() const; | ||
| 85 | |||
| 86 | //@} | ||
| 87 | /** @name Setters */ | ||
| 88 | //@{ | ||
| 89 | |||
| 90 | bool setAvailabilitySchedule(Schedule& schedule); | ||
| 91 | |||
| 92 | bool setNominalSpeedLevel(int nominalSpeedLevel); | ||
| 93 | |||
| 94 | bool setRatedWaterHeatingCapacity(double ratedWaterHeatingCapacity); | ||
| 95 | |||
| 96 | bool setRatedEvaporatorInletAirDryBulbTemperature(double ratedEvaporatorInletAirDryBulbTemperature); | ||
| 97 | |||
| 98 | bool setRatedEvaporatorInletAirWetBulbTemperature(double ratedEvaporatorInletWetDryBulbTemperature); | ||
| 99 | |||
| 100 | bool setRatedCondenserInletWaterTemperature(double ratedCondenserInletWaterTemperature); | ||
| 101 | |||
| 102 | bool setRatedEvaporatorAirFlowRate(double ratedEvaporatorAirFlowRate); | ||
| 103 | |||
| 104 | void autocalculateRatedEvaporatorAirFlowRate(); | ||
| 105 | |||
| 106 | bool setRatedCondenserWaterFlowRate(double ratedCondenserWaterFlowRate); | ||
| 107 | |||
| 108 | void autocalculateRatedCondenserWaterFlowRate(); | ||
| 109 | |||
| 110 | bool setEvaporatorFanPowerIncludedinRatedCOP(const std::string& evaporatorFanPowerIncludedinRatedCOP); | ||
| 111 | |||
| 112 | bool setCondenserPumpPowerIncludedinRatedCOP(const std::string& condenserPumpPowerIncludedinRatedCOP); | ||
| 113 | |||
| 114 | bool setCondenserPumpHeatIncludedinRatedHeatingCapacityandRatedCOP(const std::string& condenserPumpHeatIncludedinRatedHeatingCapacityandRatedCOP); | ||
| 115 | |||
| 116 | bool setFractionofCondenserPumpHeattoWater(double fractionofCondenserPumpHeattoWater); | ||
| 117 | |||
| 118 | bool setCrankcaseHeaterCapacity(double crankcaseHeaterCapacity); | ||
| 119 | |||
| 120 | bool setCrankcaseHeaterCapacityFunctionofTemperatureCurve(const Curve& curve); | ||
| 121 | void resetCrankcaseHeaterCapacityFunctionofTemperatureCurve(); | ||
| 122 | |||
| 123 | bool setMaximumAmbientTemperatureforCrankcaseHeaterOperation(double maximumAmbientTemperatureforCrankcaseHeaterOperation); | ||
| 124 | |||
| 125 | bool setEvaporatorAirTemperatureTypeforCurveObjects(const std::string& evaporatorAirTemperatureTypeforCurveObjects); | ||
| 126 | |||
| 127 | bool setPartLoadFractionCorrelationCurve(const Curve& partLoadFractionCorrelationCurve); | ||
| 128 | |||
| 129 | //@} | ||
| 130 | /** @name Other */ | ||
| 131 | //@{ | ||
| 132 | |||
| 133 | std::vector<CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData> speeds() const; | ||
| 134 | |||
| 135 | bool addSpeed(const CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData& speed); | ||
| 136 | |||
| 137 | void removeSpeed(const CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData& speed); | ||
| 138 | |||
| 139 | void removeAllSpeeds(); | ||
| 140 | |||
| 141 | boost::optional<double> autocalculatedRatedEvaporatorAirFlowRate() const; | ||
| 142 | |||
| 143 | boost::optional<double> autocalculatedRatedCondenserWaterFlowRate() const; | ||
| 144 | |||
| 145 | //@} | ||
| 146 | protected: | ||
| 147 | /// @cond | ||
| 148 | using ImplType = detail::CoilWaterHeatingAirToWaterHeatPumpVariableSpeed_Impl; | ||
| 149 | |||
| 150 | explicit CoilWaterHeatingAirToWaterHeatPumpVariableSpeed(std::shared_ptr<detail::CoilWaterHeatingAirToWaterHeatPumpVariableSpeed_Impl> impl); | ||
| 151 | |||
| 152 | friend class detail::CoilWaterHeatingAirToWaterHeatPumpVariableSpeed_Impl; | ||
| 153 | friend class Model; | ||
| 154 | friend class IdfObject; | ||
| 155 | friend class openstudio::detail::IdfObject_Impl; | ||
| 156 | /// @endcond | ||
| 157 | private: | ||
| 158 | REGISTER_LOGGER("openstudio.model.CoilWaterHeatingAirToWaterHeatPumpVariableSpeed"); | ||
| 159 | }; | ||
| 160 | |||
| 161 | /** \relates CoilWaterHeatingAirToWaterHeatPumpVariableSpeed*/ | ||
| 162 | using OptionalCoilWaterHeatingAirToWaterHeatPumpVariableSpeed = boost::optional<CoilWaterHeatingAirToWaterHeatPumpVariableSpeed>; | ||
| 163 | |||
| 164 | /** \relates CoilWaterHeatingAirToWaterHeatPumpVariableSpeed*/ | ||
| 165 | using CoilWaterHeatingAirToWaterHeatPumpVariableSpeedVector = std::vector<CoilWaterHeatingAirToWaterHeatPumpVariableSpeed>; | ||
| 166 | |||
| 167 | } // namespace model | ||
| 168 | } // namespace openstudio | ||
| 169 | |||
| 170 | #endif // MODEL_COILWATERHEATINGAIRTOWATERHEATPUMPVARIABLESPEED_HPP | ||
| 171 |