src/model/CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFit_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_COILHEATINGWATERTOAIRHEATPUMPVARIABLESPEEDEQUATIONFIT_IMPL_HPP | ||
| 7 | #define MODEL_COILHEATINGWATERTOAIRHEATPUMPVARIABLESPEEDEQUATIONFIT_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "WaterToAirComponent_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class Curve; | ||
| 16 | class CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData; | ||
| 17 | class ModelObjectList; | ||
| 18 | |||
| 19 | namespace detail { | ||
| 20 | |||
| 21 | /** CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFit_Impl is a WaterToAirComponent_Impl that is the implementation class for CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFit.*/ | ||
| 22 | class MODEL_API CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFit_Impl : public WaterToAirComponent_Impl | ||
| 23 | { | ||
| 24 | public: | ||
| 25 | /** @name Constructors and Destructors */ | ||
| 26 | //@{ | ||
| 27 | |||
| 28 | CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFit_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 29 | |||
| 30 | CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFit_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, | ||
| 31 | bool keepHandle); | ||
| 32 | |||
| 33 | CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFit_Impl(const CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFit_Impl& other, | ||
| 34 | Model_Impl* model, bool keepHandle); | ||
| 35 | |||
| 36 | 18 | virtual ~CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFit_Impl() override = default; | |
| 37 | |||
| 38 | //@} | ||
| 39 | /** @name Virtual Methods */ | ||
| 40 | //@{ | ||
| 41 | |||
| 42 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 43 | |||
| 44 | virtual IddObjectType iddObjectType() const override; | ||
| 45 | |||
| 46 | virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override; | ||
| 47 | |||
| 48 | virtual unsigned airInletPort() const override; | ||
| 49 | |||
| 50 | virtual unsigned airOutletPort() const override; | ||
| 51 | |||
| 52 | virtual unsigned waterInletPort() const override; | ||
| 53 | |||
| 54 | virtual unsigned waterOutletPort() const override; | ||
| 55 | |||
| 56 | virtual ModelObject clone(Model model) const override; | ||
| 57 | |||
| 58 | virtual std::vector<ModelObject> children() const override; | ||
| 59 | |||
| 60 | virtual std::vector<IdfObject> remove() override; | ||
| 61 | |||
| 62 | virtual boost::optional<HVACComponent> containingHVACComponent() const override; | ||
| 63 | |||
| 64 | virtual boost::optional<ZoneHVACComponent> containingZoneHVACComponent() const override; | ||
| 65 | |||
| 66 | virtual ComponentType componentType() const override; | ||
| 67 | virtual std::vector<FuelType> coolingFuelTypes() const override; | ||
| 68 | virtual std::vector<FuelType> heatingFuelTypes() const override; | ||
| 69 | virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override; | ||
| 70 | |||
| 71 | //@} | ||
| 72 | /** @name Getters */ | ||
| 73 | //@{ | ||
| 74 | |||
| 75 | Schedule availabilitySchedule() const; | ||
| 76 | |||
| 77 | int nominalSpeedLevel() const; | ||
| 78 | |||
| 79 | boost::optional<double> ratedHeatingCapacityAtSelectedNominalSpeedLevel() const; | ||
| 80 | |||
| 81 | bool isRatedHeatingCapacityAtSelectedNominalSpeedLevelAutosized() const; | ||
| 82 | |||
| 83 | boost::optional<double> ratedAirFlowRateAtSelectedNominalSpeedLevel() const; | ||
| 84 | |||
| 85 | bool isRatedAirFlowRateAtSelectedNominalSpeedLevelAutosized() const; | ||
| 86 | |||
| 87 | boost::optional<double> ratedWaterFlowRateAtSelectedNominalSpeedLevel() const; | ||
| 88 | |||
| 89 | bool isRatedWaterFlowRateAtSelectedNominalSpeedLevelAutosized() const; | ||
| 90 | |||
| 91 | Curve energyPartLoadFractionCurve() const; | ||
| 92 | |||
| 93 | boost::optional<double> autosizedRatedHeatingCapacityAtSelectedNominalSpeedLevel() const; | ||
| 94 | |||
| 95 | boost::optional<double> autosizedRatedAirFlowRateAtSelectedNominalSpeedLevel() const; | ||
| 96 | |||
| 97 | boost::optional<double> autosizedRatedWaterFlowRateAtSelectedNominalSpeedLevel() const; | ||
| 98 | |||
| 99 | virtual void autosize() override; | ||
| 100 | |||
| 101 | virtual void applySizingValues() override; | ||
| 102 | |||
| 103 | //@} | ||
| 104 | /** @name Setters */ | ||
| 105 | //@{ | ||
| 106 | |||
| 107 | bool setAvailabilitySchedule(Schedule& schedule); | ||
| 108 | |||
| 109 | bool setNominalSpeedLevel(int nominalSpeedLevel); | ||
| 110 | |||
| 111 | bool setRatedHeatingCapacityAtSelectedNominalSpeedLevel(boost::optional<double> ratedHeatingCapacityAtSelectedNominalSpeedLevel); | ||
| 112 | |||
| 113 | void autosizeRatedHeatingCapacityAtSelectedNominalSpeedLevel(); | ||
| 114 | |||
| 115 | bool setRatedAirFlowRateAtSelectedNominalSpeedLevel(boost::optional<double> ratedAirFlowRateAtSelectedNominalSpeedLevel); | ||
| 116 | |||
| 117 | void autosizeRatedAirFlowRateAtSelectedNominalSpeedLevel(); | ||
| 118 | |||
| 119 | bool setRatedWaterFlowRateAtSelectedNominalSpeedLevel(boost::optional<double> ratedWaterFlowRateAtSelectedNominalSpeedLevel); | ||
| 120 | |||
| 121 | void autosizeRatedWaterFlowRateAtSelectedNominalSpeedLevel(); | ||
| 122 | |||
| 123 | bool setEnergyPartLoadFractionCurve(const Curve& curve); | ||
| 124 | |||
| 125 | //@} | ||
| 126 | /** @name Other */ | ||
| 127 | //@{ | ||
| 128 | |||
| 129 | bool setSpeedDataList(const boost::optional<ModelObjectList>& modelObjectList); | ||
| 130 | |||
| 131 | void resetSpeedDataList(); | ||
| 132 | |||
| 133 | boost::optional<ModelObjectList> speedDataList() const; | ||
| 134 | |||
| 135 | std::vector<CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData> speeds() const; | ||
| 136 | |||
| 137 | bool addSpeed(const CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData& speed); | ||
| 138 | |||
| 139 | void removeSpeed(const CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData& speed); | ||
| 140 | |||
| 141 | void removeAllSpeeds(); | ||
| 142 | |||
| 143 | AirflowNetworkEquivalentDuct getAirflowNetworkEquivalentDuct(double length, double diameter); | ||
| 144 | |||
| 145 | boost::optional<AirflowNetworkEquivalentDuct> airflowNetworkEquivalentDuct() const; | ||
| 146 | |||
| 147 | //@} | ||
| 148 | protected: | ||
| 149 | private: | ||
| 150 | − | REGISTER_LOGGER("openstudio.model.CoilHeatingWaterToAirHeatPumpVariableSpeedEquationFit"); | |
| 151 | |||
| 152 | // Optional getters for use by methods like children() so can remove() if the constructor fails. | ||
| 153 | // There are other ways for the public versions of these getters to fail--perhaps all required | ||
| 154 | // objects should be returned as boost::optionals | ||
| 155 | boost::optional<Schedule> optionalAvailabilitySchedule() const; | ||
| 156 | boost::optional<Curve> optionalEnergyPartLoadFractionCurve() const; | ||
| 157 | }; | ||
| 158 | |||
| 159 | } // namespace detail | ||
| 160 | |||
| 161 | } // namespace model | ||
| 162 | } // namespace openstudio | ||
| 163 | |||
| 164 | #endif // MODEL_COILHEATINGWATERTOAIRHEATPUMPVARIABLESPEEDEQUATIONFIT_IMPL_HPP | ||
| 165 |