src/model/CoilWaterHeatingAirToWaterHeatPumpVariableSpeed_Impl.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_IMPL_HPP | ||
| 7 | #define MODEL_COILWATERHEATINGAIRTOWATERHEATPUMPVARIABLESPEED_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "HVACComponent_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData; | ||
| 16 | class Curve; | ||
| 17 | class ModelObjectList; | ||
| 18 | |||
| 19 | namespace detail { | ||
| 20 | |||
| 21 | /** CoilWaterHeatingAirToWaterHeatPumpVariableSpeed_Impl is a ModelObject_Impl that is the implementation class for CoilWaterHeatingAirToWaterHeatPumpVariableSpeed.*/ | ||
| 22 | class MODEL_API CoilWaterHeatingAirToWaterHeatPumpVariableSpeed_Impl : public HVACComponent_Impl | ||
| 23 | { | ||
| 24 | public: | ||
| 25 | /** @name Constructors and Destructors */ | ||
| 26 | //@{ | ||
| 27 | |||
| 28 | CoilWaterHeatingAirToWaterHeatPumpVariableSpeed_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 29 | |||
| 30 | CoilWaterHeatingAirToWaterHeatPumpVariableSpeed_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 31 | |||
| 32 | CoilWaterHeatingAirToWaterHeatPumpVariableSpeed_Impl(const CoilWaterHeatingAirToWaterHeatPumpVariableSpeed_Impl& other, Model_Impl* model, | ||
| 33 | bool keepHandle); | ||
| 34 | |||
| 35 | 101 | virtual ~CoilWaterHeatingAirToWaterHeatPumpVariableSpeed_Impl() override = default; | |
| 36 | |||
| 37 | //@} | ||
| 38 | /** @name Virtual Methods */ | ||
| 39 | //@{ | ||
| 40 | |||
| 41 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 42 | |||
| 43 | virtual IddObjectType iddObjectType() const override; | ||
| 44 | |||
| 45 | virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override; | ||
| 46 | |||
| 47 | std::vector<ModelObject> children() const override; | ||
| 48 | |||
| 49 | ModelObject clone(Model model) const override; | ||
| 50 | |||
| 51 | virtual std::vector<IdfObject> remove() override; | ||
| 52 | |||
| 53 | virtual void autosize() override; | ||
| 54 | |||
| 55 | virtual void applySizingValues() override; | ||
| 56 | |||
| 57 | virtual boost::optional<HVACComponent> containingHVACComponent() const override; | ||
| 58 | |||
| 59 | virtual ComponentType componentType() const override; | ||
| 60 | virtual std::vector<FuelType> coolingFuelTypes() const override; | ||
| 61 | virtual std::vector<FuelType> heatingFuelTypes() const override; | ||
| 62 | virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override; | ||
| 63 | |||
| 64 | //@} | ||
| 65 | /** @name Getters */ | ||
| 66 | //@{ | ||
| 67 | |||
| 68 | Schedule availabilitySchedule() const; | ||
| 69 | |||
| 70 | int nominalSpeedLevel() const; | ||
| 71 | |||
| 72 | double ratedWaterHeatingCapacity() const; | ||
| 73 | |||
| 74 | double ratedEvaporatorInletAirDryBulbTemperature() const; | ||
| 75 | |||
| 76 | double ratedEvaporatorInletAirWetBulbTemperature() const; | ||
| 77 | |||
| 78 | double ratedCondenserInletWaterTemperature() const; | ||
| 79 | |||
| 80 | boost::optional<double> ratedEvaporatorAirFlowRate() const; | ||
| 81 | |||
| 82 | bool isRatedEvaporatorAirFlowRateAutocalculated() const; | ||
| 83 | |||
| 84 | boost::optional<double> ratedCondenserWaterFlowRate() const; | ||
| 85 | |||
| 86 | bool isRatedCondenserWaterFlowRateAutocalculated() const; | ||
| 87 | |||
| 88 | std::string evaporatorFanPowerIncludedinRatedCOP() const; | ||
| 89 | |||
| 90 | std::string condenserPumpPowerIncludedinRatedCOP() const; | ||
| 91 | |||
| 92 | std::string condenserPumpHeatIncludedinRatedHeatingCapacityandRatedCOP() const; | ||
| 93 | |||
| 94 | double fractionofCondenserPumpHeattoWater() const; | ||
| 95 | |||
| 96 | double crankcaseHeaterCapacity() const; | ||
| 97 | |||
| 98 | boost::optional<Curve> crankcaseHeaterCapacityFunctionofTemperatureCurve() const; | ||
| 99 | |||
| 100 | double maximumAmbientTemperatureforCrankcaseHeaterOperation() const; | ||
| 101 | |||
| 102 | std::string evaporatorAirTemperatureTypeforCurveObjects() const; | ||
| 103 | |||
| 104 | Curve partLoadFractionCorrelationCurve() const; | ||
| 105 | |||
| 106 | //@} | ||
| 107 | /** @name Setters */ | ||
| 108 | //@{ | ||
| 109 | |||
| 110 | bool setAvailabilitySchedule(Schedule& schedule); | ||
| 111 | |||
| 112 | bool setNominalSpeedLevel(int nominalSpeedLevel); | ||
| 113 | |||
| 114 | bool setRatedWaterHeatingCapacity(double ratedWaterHeatingCapacity); | ||
| 115 | |||
| 116 | bool setRatedEvaporatorInletAirDryBulbTemperature(double ratedEvaporatorInletAirDryBulbTemperature); | ||
| 117 | |||
| 118 | bool setRatedEvaporatorInletAirWetBulbTemperature(double ratedEvaporatorInletWetDryBulbTemperature); | ||
| 119 | |||
| 120 | bool setRatedCondenserInletWaterTemperature(double ratedCondenserInletWaterTemperature); | ||
| 121 | |||
| 122 | bool setRatedEvaporatorAirFlowRate(boost::optional<double> ratedEvaporatorAirFlowRate); | ||
| 123 | |||
| 124 | void autocalculateRatedEvaporatorAirFlowRate(); | ||
| 125 | |||
| 126 | bool setRatedCondenserWaterFlowRate(boost::optional<double> ratedCondenserWaterFlowRate); | ||
| 127 | |||
| 128 | void autocalculateRatedCondenserWaterFlowRate(); | ||
| 129 | |||
| 130 | bool setEvaporatorFanPowerIncludedinRatedCOP(const std::string& evaporatorFanPowerIncludedinRatedCOP); | ||
| 131 | |||
| 132 | bool setCondenserPumpPowerIncludedinRatedCOP(const std::string& condenserPumpPowerIncludedinRatedCOP); | ||
| 133 | |||
| 134 | bool | ||
| 135 | setCondenserPumpHeatIncludedinRatedHeatingCapacityandRatedCOP(const std::string& condenserPumpHeatIncludedinRatedHeatingCapacityandRatedCOP); | ||
| 136 | |||
| 137 | bool setFractionofCondenserPumpHeattoWater(double fractionofCondenserPumpHeattoWater); | ||
| 138 | |||
| 139 | bool setCrankcaseHeaterCapacity(double crankcaseHeaterCapacity); | ||
| 140 | |||
| 141 | bool setCrankcaseHeaterCapacityFunctionofTemperatureCurve(const Curve& curve); | ||
| 142 | void resetCrankcaseHeaterCapacityFunctionofTemperatureCurve(); | ||
| 143 | |||
| 144 | bool setMaximumAmbientTemperatureforCrankcaseHeaterOperation(double maximumAmbientTemperatureforCrankcaseHeaterOperation); | ||
| 145 | |||
| 146 | bool setEvaporatorAirTemperatureTypeforCurveObjects(const std::string& evaporatorAirTemperatureTypeforCurveObjects); | ||
| 147 | |||
| 148 | bool setPartLoadFractionCorrelationCurve(const Curve& partLoadFractionCorrelationCurve); | ||
| 149 | |||
| 150 | //@} | ||
| 151 | /** @name Other */ | ||
| 152 | //@{ | ||
| 153 | |||
| 154 | bool setSpeedDataList(const boost::optional<ModelObjectList>& modelObjectList); | ||
| 155 | |||
| 156 | void resetSpeedDataList(); | ||
| 157 | |||
| 158 | boost::optional<ModelObjectList> speedDataList() const; | ||
| 159 | |||
| 160 | std::vector<CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData> speeds() const; | ||
| 161 | |||
| 162 | bool addSpeed(const CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData& speed); | ||
| 163 | |||
| 164 | void removeSpeed(const CoilWaterHeatingAirToWaterHeatPumpVariableSpeedSpeedData& speed); | ||
| 165 | |||
| 166 | void removeAllSpeeds(); | ||
| 167 | |||
| 168 | // Autosize methods | ||
| 169 | boost::optional<double> autocalculatedRatedEvaporatorAirFlowRate() const; | ||
| 170 | |||
| 171 | boost::optional<double> autocalculatedRatedCondenserWaterFlowRate() const; | ||
| 172 | |||
| 173 | //@} | ||
| 174 | protected: | ||
| 175 | private: | ||
| 176 | − | REGISTER_LOGGER("openstudio.model.CoilWaterHeatingAirToWaterHeatPumpVariableSpeed"); | |
| 177 | |||
| 178 | // Optional getters for use by methods like children() so can remove() if the constructor fails. | ||
| 179 | // There are other ways for the public versions of these getters to fail--perhaps all required | ||
| 180 | // objects should be returned as boost::optionals | ||
| 181 | boost::optional<Schedule> optionalAvailabilitySchedule() const; | ||
| 182 | boost::optional<Curve> optionalPartLoadFractionCorrelationCurve() const; | ||
| 183 | }; | ||
| 184 | |||
| 185 | } // namespace detail | ||
| 186 | |||
| 187 | } // namespace model | ||
| 188 | } // namespace openstudio | ||
| 189 | |||
| 190 | #endif // MODEL_COILWATERHEATINGAIRTOWATERHEATPUMPVARIABLESPEED_IMPL_HPP | ||
| 191 |