src/model/HeatPumpWaterToWaterEquationFitHeating_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_HEATPUMPWATERTOWATEREQUATIONFITHEATING_IMPL_HPP | ||
| 7 | #define MODEL_HEATPUMPWATERTOWATEREQUATIONFITHEATING_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "WaterToWaterComponent_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | |||
| 14 | namespace model { | ||
| 15 | |||
| 16 | class HeatPumpWaterToWaterEquationFitCooling; | ||
| 17 | class CurveQuadLinear; | ||
| 18 | |||
| 19 | namespace detail { | ||
| 20 | |||
| 21 | /** HeatPumpWaterToWaterEquationFitHeating_Impl is a WaterToWaterComponent_Impl that is the implementation class for HeatPumpWaterToWaterEquationFitHeating.*/ | ||
| 22 | class MODEL_API HeatPumpWaterToWaterEquationFitHeating_Impl : public WaterToWaterComponent_Impl | ||
| 23 | { | ||
| 24 | public: | ||
| 25 | /** @name Constructors and Destructors */ | ||
| 26 | //@{ | ||
| 27 | |||
| 28 | HeatPumpWaterToWaterEquationFitHeating_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 29 | |||
| 30 | HeatPumpWaterToWaterEquationFitHeating_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 31 | |||
| 32 | HeatPumpWaterToWaterEquationFitHeating_Impl(const HeatPumpWaterToWaterEquationFitHeating_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 33 | |||
| 34 | 5 | virtual ~HeatPumpWaterToWaterEquationFitHeating_Impl() override = default; | |
| 35 | |||
| 36 | //@} | ||
| 37 | /** @name Virtual Methods */ | ||
| 38 | //@{ | ||
| 39 | |||
| 40 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 41 | |||
| 42 | virtual IddObjectType iddObjectType() const override; | ||
| 43 | |||
| 44 | virtual unsigned supplyInletPort() const override; | ||
| 45 | |||
| 46 | virtual unsigned supplyOutletPort() const override; | ||
| 47 | |||
| 48 | virtual unsigned demandInletPort() const override; | ||
| 49 | |||
| 50 | virtual unsigned demandOutletPort() const override; | ||
| 51 | |||
| 52 | virtual void autosize() override; | ||
| 53 | |||
| 54 | virtual void applySizingValues() override; | ||
| 55 | |||
| 56 | virtual ComponentType componentType() const override; | ||
| 57 | virtual std::vector<FuelType> coolingFuelTypes() const override; | ||
| 58 | virtual std::vector<FuelType> heatingFuelTypes() const override; | ||
| 59 | virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override; | ||
| 60 | |||
| 61 | //@} | ||
| 62 | /** @name Getters */ | ||
| 63 | //@{ | ||
| 64 | |||
| 65 | boost::optional<double> referenceLoadSideFlowRate() const; | ||
| 66 | |||
| 67 | double ratedLoadSideFlowRate() const; | ||
| 68 | |||
| 69 | bool isReferenceLoadSideFlowRateAutosized() const; | ||
| 70 | |||
| 71 | boost::optional<double> referenceSourceSideFlowRate() const; | ||
| 72 | |||
| 73 | double ratedSourceSideFlowRate() const; | ||
| 74 | |||
| 75 | bool isReferenceSourceSideFlowRateAutosized() const; | ||
| 76 | |||
| 77 | boost::optional<double> ratedHeatingCapacity() const; | ||
| 78 | |||
| 79 | bool isRatedHeatingCapacityAutosized() const; | ||
| 80 | |||
| 81 | boost::optional<double> ratedHeatingPowerConsumption() const; | ||
| 82 | |||
| 83 | bool isRatedHeatingPowerConsumptionAutosized() const; | ||
| 84 | |||
| 85 | CurveQuadLinear heatingCapacityCurve() const; | ||
| 86 | |||
| 87 | CurveQuadLinear heatingCompressorPowerCurve() const; | ||
| 88 | |||
| 89 | double referenceCoefficientofPerformance() const; | ||
| 90 | |||
| 91 | double sizingFactor() const; | ||
| 92 | |||
| 93 | boost::optional<HeatPumpWaterToWaterEquationFitCooling> companionCoolingHeatPump() const; | ||
| 94 | |||
| 95 | boost::optional<double> autosizedReferenceLoadSideFlowRate() const; | ||
| 96 | |||
| 97 | boost::optional<double> autosizedReferenceSourceSideFlowRate() const; | ||
| 98 | |||
| 99 | boost::optional<double> autosizedRatedHeatingCapacity() const; | ||
| 100 | |||
| 101 | boost::optional<double> autosizedRatedHeatingPowerConsumption() const; | ||
| 102 | |||
| 103 | //@} | ||
| 104 | /** @name Setters */ | ||
| 105 | //@{ | ||
| 106 | |||
| 107 | bool setReferenceLoadSideFlowRate(double referenceLoadSideFlowRate); | ||
| 108 | |||
| 109 | bool setRatedLoadSideFlowRate(double ratedLoadSideFlowRate); | ||
| 110 | |||
| 111 | void autosizeReferenceLoadSideFlowRate(); | ||
| 112 | |||
| 113 | bool setReferenceSourceSideFlowRate(double referenceSourceSideFlowRate); | ||
| 114 | |||
| 115 | bool setRatedSourceSideFlowRate(double ratedLoadSideFlowRate); | ||
| 116 | |||
| 117 | void autosizeReferenceSourceSideFlowRate(); | ||
| 118 | |||
| 119 | bool setRatedHeatingCapacity(double ratedHeatingCapacity); | ||
| 120 | |||
| 121 | void autosizeRatedHeatingCapacity(); | ||
| 122 | |||
| 123 | bool setRatedHeatingPowerConsumption(double ratedHeatingPowerConsumption); | ||
| 124 | |||
| 125 | void autosizeRatedHeatingPowerConsumption(); | ||
| 126 | |||
| 127 | bool setHeatingCapacityCurve(const CurveQuadLinear& heatingCapacityCurve); | ||
| 128 | |||
| 129 | bool setHeatingCompressorPowerCurve(const CurveQuadLinear& heatingCompressorPowerCurve); | ||
| 130 | |||
| 131 | bool setReferenceCoefficientofPerformance(double referenceCoefficientofPerformance); | ||
| 132 | |||
| 133 | bool setSizingFactor(double sizingFactor); | ||
| 134 | |||
| 135 | bool setCompanionCoolingHeatPump(const HeatPumpWaterToWaterEquationFitCooling& companionHP); | ||
| 136 | |||
| 137 | //@} | ||
| 138 | /** @name Other */ | ||
| 139 | //@{ | ||
| 140 | |||
| 141 | //@} | ||
| 142 | protected: | ||
| 143 | private: | ||
| 144 | REGISTER_LOGGER("openstudio.model.HeatPumpWaterToWaterEquationFitHeating"); | ||
| 145 | }; | ||
| 146 | |||
| 147 | } // namespace detail | ||
| 148 | |||
| 149 | } // namespace model | ||
| 150 | } // namespace openstudio | ||
| 151 | |||
| 152 | #endif // MODEL_HEATPUMPWATERTOWATEREQUATIONFITHEATING_IMPL_HPP | ||
| 153 |