src/model/CoilWaterHeatingAirToWaterHeatPump_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_COILWATERHEATINGAIRTOWATERHEATPUMP_IMPL_HPP | ||
| 7 | #define MODEL_COILWATERHEATINGAIRTOWATERHEATPUMP_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "HVACComponent_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class Curve; | ||
| 16 | |||
| 17 | namespace detail { | ||
| 18 | |||
| 19 | /** CoilWaterHeatingAirToWaterHeatPump_Impl is a ModelObject_Impl that is the implementation class for CoilWaterHeatingAirToWaterHeatPump.*/ | ||
| 20 | class MODEL_API CoilWaterHeatingAirToWaterHeatPump_Impl : public HVACComponent_Impl | ||
| 21 | { | ||
| 22 | public: | ||
| 23 | /** @name Constructors and Destructors */ | ||
| 24 | //@{ | ||
| 25 | |||
| 26 | CoilWaterHeatingAirToWaterHeatPump_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 27 | |||
| 28 | CoilWaterHeatingAirToWaterHeatPump_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 29 | |||
| 30 | CoilWaterHeatingAirToWaterHeatPump_Impl(const CoilWaterHeatingAirToWaterHeatPump_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 31 | |||
| 32 | 29 | virtual ~CoilWaterHeatingAirToWaterHeatPump_Impl() override = default; | |
| 33 | |||
| 34 | //@} | ||
| 35 | /** @name Virtual Methods */ | ||
| 36 | //@{ | ||
| 37 | |||
| 38 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 39 | |||
| 40 | virtual IddObjectType iddObjectType() const override; | ||
| 41 | |||
| 42 | virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override; | ||
| 43 | |||
| 44 | virtual ComponentType componentType() const override; | ||
| 45 | virtual std::vector<FuelType> coolingFuelTypes() const override; | ||
| 46 | virtual std::vector<FuelType> heatingFuelTypes() const override; | ||
| 47 | virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override; | ||
| 48 | |||
| 49 | //@} | ||
| 50 | /** @name Getters */ | ||
| 51 | //@{ | ||
| 52 | |||
| 53 | Schedule availabilitySchedule() const; | ||
| 54 | |||
| 55 | double ratedHeatingCapacity() const; | ||
| 56 | |||
| 57 | double ratedCOP() const; | ||
| 58 | |||
| 59 | double ratedSensibleHeatRatio() const; | ||
| 60 | |||
| 61 | double ratedEvaporatorInletAirDryBulbTemperature() const; | ||
| 62 | |||
| 63 | double ratedEvaporatorInletAirWetBulbTemperature() const; | ||
| 64 | |||
| 65 | double ratedCondenserInletWaterTemperature() const; | ||
| 66 | |||
| 67 | boost::optional<double> ratedEvaporatorAirFlowRate() const; | ||
| 68 | |||
| 69 | bool isRatedEvaporatorAirFlowRateAutosized() const; | ||
| 70 | |||
| 71 | boost::optional<double> ratedCondenserWaterFlowRate() const; | ||
| 72 | |||
| 73 | bool isRatedCondenserWaterFlowRateAutosized() const; | ||
| 74 | |||
| 75 | bool evaporatorFanPowerIncludedinRatedCOP() const; | ||
| 76 | |||
| 77 | bool condenserPumpPowerIncludedinRatedCOP() const; | ||
| 78 | |||
| 79 | bool condenserPumpHeatIncludedinRatedHeatingCapacityandRatedCOP() const; | ||
| 80 | |||
| 81 | double condenserWaterPumpPower() const; | ||
| 82 | |||
| 83 | double fractionofCondenserPumpHeattoWater() const; | ||
| 84 | |||
| 85 | double crankcaseHeaterCapacity() const; | ||
| 86 | |||
| 87 | boost::optional<Curve> crankcaseHeaterCapacityFunctionofTemperatureCurve() const; | ||
| 88 | |||
| 89 | double maximumAmbientTemperatureforCrankcaseHeaterOperation() const; | ||
| 90 | |||
| 91 | std::string evaporatorAirTemperatureTypeforCurveObjects() const; | ||
| 92 | |||
| 93 | Curve heatingCapacityFunctionofTemperatureCurve() const; | ||
| 94 | |||
| 95 | Curve heatingCapacityFunctionofAirFlowFractionCurve() const; | ||
| 96 | |||
| 97 | Curve heatingCapacityFunctionofWaterFlowFractionCurve() const; | ||
| 98 | |||
| 99 | Curve heatingCOPFunctionofTemperatureCurve() const; | ||
| 100 | |||
| 101 | Curve heatingCOPFunctionofAirFlowFractionCurve() const; | ||
| 102 | |||
| 103 | Curve heatingCOPFunctionofWaterFlowFractionCurve() const; | ||
| 104 | |||
| 105 | Curve partLoadFractionCorrelationCurve() const; | ||
| 106 | |||
| 107 | boost::optional<double> autosizedRatedEvaporatorAirFlowRate() const; | ||
| 108 | |||
| 109 | boost::optional<double> autosizedRatedCondenserWaterFlowRate() const; | ||
| 110 | |||
| 111 | virtual void autosize() override; | ||
| 112 | |||
| 113 | virtual void applySizingValues() override; | ||
| 114 | |||
| 115 | //@} | ||
| 116 | /** @name Setters */ | ||
| 117 | //@{ | ||
| 118 | |||
| 119 | bool setAvailabilitySchedule(Schedule& schedule); | ||
| 120 | |||
| 121 | bool setRatedHeatingCapacity(double ratedHeatingCapacity); | ||
| 122 | |||
| 123 | bool setRatedCOP(double ratedCOP); | ||
| 124 | |||
| 125 | bool setRatedSensibleHeatRatio(double ratedSensibleHeatRatio); | ||
| 126 | |||
| 127 | bool setRatedEvaporatorInletAirDryBulbTemperature(double ratedEvaporatorInletAirDryBulbTemperature); | ||
| 128 | |||
| 129 | bool setRatedEvaporatorInletAirWetBulbTemperature(double ratedEvaporatorInletAirWetBulbTemperature); | ||
| 130 | |||
| 131 | bool setRatedCondenserInletWaterTemperature(double ratedCondenserInletWaterTemperature); | ||
| 132 | |||
| 133 | bool setRatedEvaporatorAirFlowRate(boost::optional<double> ratedEvaporatorAirFlowRate); | ||
| 134 | |||
| 135 | void autosizeRatedEvaporatorAirFlowRate(); | ||
| 136 | |||
| 137 | bool setRatedCondenserWaterFlowRate(boost::optional<double> ratedCondenserWaterFlowRate); | ||
| 138 | |||
| 139 | void autosizeRatedCondenserWaterFlowRate(); | ||
| 140 | |||
| 141 | bool setEvaporatorFanPowerIncludedinRatedCOP(bool evaporatorFanPowerIncludedinRatedCOP); | ||
| 142 | |||
| 143 | bool setCondenserPumpPowerIncludedinRatedCOP(bool condenserPumpPowerIncludedinRatedCOP); | ||
| 144 | |||
| 145 | bool setCondenserPumpHeatIncludedinRatedHeatingCapacityandRatedCOP(bool condenserPumpHeatIncludedinRatedHeatingCapacityandRatedCOP); | ||
| 146 | |||
| 147 | bool setCondenserWaterPumpPower(double condenserWaterPumpPower); | ||
| 148 | |||
| 149 | bool setFractionofCondenserPumpHeattoWater(double fractionofCondenserPumpHeattoWater); | ||
| 150 | |||
| 151 | bool setCrankcaseHeaterCapacity(double crankcaseHeaterCapacity); | ||
| 152 | |||
| 153 | bool setCrankcaseHeaterCapacityFunctionofTemperatureCurve(const Curve& curve); | ||
| 154 | void resetCrankcaseHeaterCapacityFunctionofTemperatureCurve(); | ||
| 155 | |||
| 156 | bool setMaximumAmbientTemperatureforCrankcaseHeaterOperation(double maximumAmbientTemperatureforCrankcaseHeaterOperation); | ||
| 157 | |||
| 158 | bool setEvaporatorAirTemperatureTypeforCurveObjects(const std::string& evaporatorAirTemperatureTypeforCurveObjects); | ||
| 159 | |||
| 160 | bool setHeatingCapacityFunctionofTemperatureCurve(const Curve& curve); | ||
| 161 | |||
| 162 | bool setHeatingCapacityFunctionofAirFlowFractionCurve(const Curve& curve); | ||
| 163 | |||
| 164 | bool setHeatingCapacityFunctionofWaterFlowFractionCurve(const Curve& curve); | ||
| 165 | |||
| 166 | bool setHeatingCOPFunctionofTemperatureCurve(const Curve& curve); | ||
| 167 | |||
| 168 | bool setHeatingCOPFunctionofAirFlowFractionCurve(const Curve& curve); | ||
| 169 | |||
| 170 | bool setHeatingCOPFunctionofWaterFlowFractionCurve(const Curve& curve); | ||
| 171 | |||
| 172 | bool setPartLoadFractionCorrelationCurve(const Curve& curve); | ||
| 173 | |||
| 174 | //@} | ||
| 175 | /** @name Other */ | ||
| 176 | //@{ | ||
| 177 | |||
| 178 | std::vector<ModelObject> children() const override; | ||
| 179 | ModelObject clone(Model model) const override; | ||
| 180 | |||
| 181 | //@} | ||
| 182 | protected: | ||
| 183 | private: | ||
| 184 | − | REGISTER_LOGGER("openstudio.model.CoilWaterHeatingAirToWaterHeatPump"); | |
| 185 | |||
| 186 | boost::optional<Schedule> optionalAvailabilitySchedule() const; | ||
| 187 | boost::optional<Curve> optionalHeatingCapacityFunctionofTemperatureCurve() const; | ||
| 188 | boost::optional<Curve> optionalHeatingCapacityFunctionofAirFlowFractionCurve() const; | ||
| 189 | boost::optional<Curve> optionalHeatingCapacityFunctionofWaterFlowFractionCurve() const; | ||
| 190 | boost::optional<Curve> optionalHeatingCOPFunctionofTemperatureCurve() const; | ||
| 191 | boost::optional<Curve> optionalHeatingCOPFunctionofAirFlowFractionCurve() const; | ||
| 192 | boost::optional<Curve> optionalHeatingCOPFunctionofWaterFlowFractionCurve() const; | ||
| 193 | boost::optional<Curve> optionalPartLoadFractionCorrelationCurve() const; | ||
| 194 | }; | ||
| 195 | |||
| 196 | } // namespace detail | ||
| 197 | |||
| 198 | } // namespace model | ||
| 199 | } // namespace openstudio | ||
| 200 | |||
| 201 | #endif // MODEL_COILWATERHEATINGAIRTOWATERHEATPUMP_IMPL_HPP | ||
| 202 |