src/model/CoilHeatingWaterToAirHeatPumpEquationFit_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_COILHEATINGWATERTOAIRHEATPUMPEQUATIONFIT_IMPL_HPP | ||
| 7 | #define MODEL_COILHEATINGWATERTOAIRHEATPUMPEQUATIONFIT_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "WaterToAirComponent_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class Curve; | ||
| 16 | |||
| 17 | namespace detail { | ||
| 18 | |||
| 19 | /** CoilHeatingWaterToAirHeatPumpEquationFit_Impl is a WaterToAirComponent_Impl that is the implementation class for CoilHeatingWaterToAirHeatPumpEquationFit.*/ | ||
| 20 | class MODEL_API CoilHeatingWaterToAirHeatPumpEquationFit_Impl : public WaterToAirComponent_Impl | ||
| 21 | { | ||
| 22 | |||
| 23 | public: | ||
| 24 | /** @name Constructors and Destructors */ | ||
| 25 | //@{ | ||
| 26 | |||
| 27 | CoilHeatingWaterToAirHeatPumpEquationFit_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 28 | |||
| 29 | CoilHeatingWaterToAirHeatPumpEquationFit_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | CoilHeatingWaterToAirHeatPumpEquationFit_Impl(const CoilHeatingWaterToAirHeatPumpEquationFit_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | 34 | virtual ~CoilHeatingWaterToAirHeatPumpEquationFit_Impl() override = default; | |
| 34 | |||
| 35 | //@} | ||
| 36 | /** @name Virtual Methods */ | ||
| 37 | //@{ | ||
| 38 | |||
| 39 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 40 | |||
| 41 | virtual IddObjectType iddObjectType() const override; | ||
| 42 | |||
| 43 | virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override; | ||
| 44 | |||
| 45 | virtual unsigned airInletPort() const override; | ||
| 46 | |||
| 47 | virtual unsigned airOutletPort() const override; | ||
| 48 | |||
| 49 | virtual unsigned waterInletPort() const override; | ||
| 50 | |||
| 51 | virtual unsigned waterOutletPort() const override; | ||
| 52 | |||
| 53 | virtual std::vector<ModelObject> children() const override; | ||
| 54 | |||
| 55 | virtual boost::optional<ZoneHVACComponent> containingZoneHVACComponent() const override; | ||
| 56 | |||
| 57 | virtual ComponentType componentType() const override; | ||
| 58 | virtual std::vector<FuelType> coolingFuelTypes() const override; | ||
| 59 | virtual std::vector<FuelType> heatingFuelTypes() const override; | ||
| 60 | virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override; | ||
| 61 | |||
| 62 | //@} | ||
| 63 | /** @name Getters */ | ||
| 64 | //@{ | ||
| 65 | |||
| 66 | Schedule availabilitySchedule() const; | ||
| 67 | |||
| 68 | boost::optional<double> ratedAirFlowRate() const; | ||
| 69 | |||
| 70 | bool isRatedAirFlowRateDefaulted() const; | ||
| 71 | |||
| 72 | bool isRatedAirFlowRateAutosized() const; | ||
| 73 | |||
| 74 | boost::optional<double> ratedWaterFlowRate() const; | ||
| 75 | |||
| 76 | bool isRatedWaterFlowRateDefaulted() const; | ||
| 77 | |||
| 78 | bool isRatedWaterFlowRateAutosized() const; | ||
| 79 | |||
| 80 | boost::optional<double> ratedHeatingCapacity() const; | ||
| 81 | |||
| 82 | bool isRatedHeatingCapacityDefaulted() const; | ||
| 83 | |||
| 84 | bool isRatedHeatingCapacityAutosized() const; | ||
| 85 | |||
| 86 | double ratedHeatingCoefficientofPerformance() const; | ||
| 87 | |||
| 88 | bool isRatedHeatingCoefficientofPerformanceDefaulted() const; | ||
| 89 | |||
| 90 | double ratedEnteringWaterTemperature() const; | ||
| 91 | |||
| 92 | double ratedEnteringAirDryBulbTemperature() const; | ||
| 93 | |||
| 94 | double ratioofRatedHeatingCapacitytoRatedCoolingCapacity() const; | ||
| 95 | |||
| 96 | Curve heatingCapacityCurve() const; | ||
| 97 | |||
| 98 | Curve heatingPowerConsumptionCurve() const; | ||
| 99 | |||
| 100 | Curve partLoadFractionCorrelationCurve() const; | ||
| 101 | |||
| 102 | boost::optional<double> autosizedRatedAirFlowRate() const; | ||
| 103 | |||
| 104 | boost::optional<double> autosizedRatedWaterFlowRate() const; | ||
| 105 | |||
| 106 | boost::optional<double> autosizedRatedHeatingCapacity() const; | ||
| 107 | |||
| 108 | virtual void autosize() override; | ||
| 109 | |||
| 110 | virtual void applySizingValues() override; | ||
| 111 | |||
| 112 | //@} | ||
| 113 | /** @name Setters */ | ||
| 114 | //@{ | ||
| 115 | |||
| 116 | bool setAvailabilitySchedule(Schedule& schedule); | ||
| 117 | |||
| 118 | bool setRatedAirFlowRate(boost::optional<double> ratedAirFlowRate); | ||
| 119 | |||
| 120 | bool setRatedAirFlowRate(double ratedAirFlowRate); | ||
| 121 | |||
| 122 | void resetRatedAirFlowRate(); | ||
| 123 | |||
| 124 | void autosizeRatedAirFlowRate(); | ||
| 125 | |||
| 126 | bool setRatedWaterFlowRate(boost::optional<double> ratedWaterFlowRate); | ||
| 127 | |||
| 128 | bool setRatedWaterFlowRate(double ratedWaterFlowRate); | ||
| 129 | |||
| 130 | void resetRatedWaterFlowRate(); | ||
| 131 | |||
| 132 | void autosizeRatedWaterFlowRate(); | ||
| 133 | |||
| 134 | bool setRatedHeatingCapacity(boost::optional<double> ratedHeatingCapacity); | ||
| 135 | |||
| 136 | bool setRatedHeatingCapacity(double ratedHeatingCapacity); | ||
| 137 | |||
| 138 | void resetRatedHeatingCapacity(); | ||
| 139 | |||
| 140 | void autosizeRatedHeatingCapacity(); | ||
| 141 | |||
| 142 | bool setRatedHeatingCoefficientofPerformance(double ratedHeatingCoefficientofPerformance); | ||
| 143 | |||
| 144 | void resetRatedHeatingCoefficientofPerformance(); | ||
| 145 | |||
| 146 | bool setRatedEnteringWaterTemperature(double ratedEnteringWaterTemperature); | ||
| 147 | |||
| 148 | bool setRatedEnteringAirDryBulbTemperature(double ratedEnteringAirDryBulbTemperature); | ||
| 149 | |||
| 150 | bool setRatioofRatedHeatingCapacitytoRatedCoolingCapacity(double ratioofRatedHeatingCapacitytoRatedCoolingCapacity); | ||
| 151 | |||
| 152 | bool setHeatingCapacityCurve(const Curve& heatingCapacityCurve); | ||
| 153 | |||
| 154 | bool setHeatingPowerConsumptionCurve(const Curve& heatingPowerConsumptionCurve); | ||
| 155 | |||
| 156 | bool setPartLoadFractionCorrelationCurve(const Curve& partLoadFractionCorrelationCurve); | ||
| 157 | |||
| 158 | //@} | ||
| 159 | /** @name Other */ | ||
| 160 | //@{ | ||
| 161 | |||
| 162 | AirflowNetworkEquivalentDuct getAirflowNetworkEquivalentDuct(double length, double diameter); | ||
| 163 | |||
| 164 | boost::optional<AirflowNetworkEquivalentDuct> airflowNetworkEquivalentDuct() const; | ||
| 165 | |||
| 166 | //@} | ||
| 167 | protected: | ||
| 168 | private: | ||
| 169 | − | REGISTER_LOGGER("openstudio.model.CoilHeatingWaterToAirHeatPumpEquationFit"); | |
| 170 | |||
| 171 | boost::optional<Schedule> optionalAvailabilitySchedule() const; | ||
| 172 | boost::optional<Curve> optionalHeatingCapacityCurve() const; | ||
| 173 | boost::optional<Curve> optionalHeatingPowerConsumptionCurve() const; | ||
| 174 | boost::optional<Curve> optionalPartLoadFractionCorrelationCurve() const; | ||
| 175 | |||
| 176 | virtual boost::optional<HVACComponent> containingHVACComponent() const override; | ||
| 177 | }; | ||
| 178 | |||
| 179 | } // namespace detail | ||
| 180 | |||
| 181 | } // namespace model | ||
| 182 | } // namespace openstudio | ||
| 183 | |||
| 184 | #endif // MODEL_COILHEATINGWATERTOAIRHEATPUMPEQUATIONFIT_IMPL_HPP | ||
| 185 |