src/model/CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit_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_COILCOOLINGWATERTOAIRHEATPUMPVARIABLESPEEDEQUATIONFIT_IMPL_HPP | ||
| 7 | #define MODEL_COILCOOLINGWATERTOAIRHEATPUMPVARIABLESPEEDEQUATIONFIT_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 CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData; | ||
| 17 | class ModelObjectList; | ||
| 18 | |||
| 19 | namespace detail { | ||
| 20 | |||
| 21 | /** CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit_Impl is a WaterToAirComponent_Impl that is the implementation class for CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit.*/ | ||
| 22 | class MODEL_API CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit_Impl : public WaterToAirComponent_Impl | ||
| 23 | { | ||
| 24 | public: | ||
| 25 | /** @name Constructors and Destructors */ | ||
| 26 | //@{ | ||
| 27 | |||
| 28 | CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 29 | |||
| 30 | CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, | ||
| 31 | bool keepHandle); | ||
| 32 | |||
| 33 | CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit_Impl(const CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit_Impl& other, | ||
| 34 | Model_Impl* model, bool keepHandle); | ||
| 35 | |||
| 36 | 25 | virtual ~CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit_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> grossRatedTotalCoolingCapacityAtSelectedNominalSpeedLevel() const; | ||
| 80 | |||
| 81 | bool isGrossRatedTotalCoolingCapacityAtSelectedNominalSpeedLevelAutosized() 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 | double nominalTimeforCondensatetoBeginLeavingtheCoil() const; | ||
| 92 | |||
| 93 | double initialMoistureEvaporationRateDividedbySteadyStateACLatentCapacity() const; | ||
| 94 | |||
| 95 | double maximumCyclingRate() const; | ||
| 96 | double latentCapacityTimeConstant() const; | ||
| 97 | double fanDelayTime() const; | ||
| 98 | |||
| 99 | bool useHotGasReheat() const; | ||
| 100 | |||
| 101 | Curve energyPartLoadFractionCurve() const; | ||
| 102 | |||
| 103 | boost::optional<double> autosizedGrossRatedTotalCoolingCapacityAtSelectedNominalSpeedLevel() const; | ||
| 104 | |||
| 105 | boost::optional<double> autosizedRatedAirFlowRateAtSelectedNominalSpeedLevel() const; | ||
| 106 | |||
| 107 | boost::optional<double> autosizedRatedWaterFlowRateAtSelectedNominalSpeedLevel() const; | ||
| 108 | |||
| 109 | virtual void autosize() override; | ||
| 110 | |||
| 111 | virtual void applySizingValues() override; | ||
| 112 | |||
| 113 | //@} | ||
| 114 | /** @name Setters */ | ||
| 115 | //@{ | ||
| 116 | |||
| 117 | bool setAvailabilitySchedule(Schedule& schedule); | ||
| 118 | |||
| 119 | bool setNominalSpeedLevel(int nominalSpeedLevel); | ||
| 120 | |||
| 121 | bool setGrossRatedTotalCoolingCapacityAtSelectedNominalSpeedLevel( | ||
| 122 | boost::optional<double> grossRatedTotalCoolingCapacityAtSelectedNominalSpeedLevel); | ||
| 123 | |||
| 124 | void autosizeGrossRatedTotalCoolingCapacityAtSelectedNominalSpeedLevel(); | ||
| 125 | |||
| 126 | bool setRatedAirFlowRateAtSelectedNominalSpeedLevel(boost::optional<double> ratedAirFlowRateAtSelectedNominalSpeedLevel); | ||
| 127 | |||
| 128 | void autosizeRatedAirFlowRateAtSelectedNominalSpeedLevel(); | ||
| 129 | |||
| 130 | bool setRatedWaterFlowRateAtSelectedNominalSpeedLevel(boost::optional<double> ratedWaterFlowRateAtSelectedNominalSpeedLevel); | ||
| 131 | |||
| 132 | void autosizeRatedWaterFlowRateAtSelectedNominalSpeedLevel(); | ||
| 133 | |||
| 134 | bool setNominalTimeforCondensatetoBeginLeavingtheCoil(double nominalTimeforCondensatetoBeginLeavingtheCoil); | ||
| 135 | |||
| 136 | bool setInitialMoistureEvaporationRateDividedbySteadyStateACLatentCapacity( | ||
| 137 | double initialMoistureEvaporationRateDividedbySteadyStateACLatentCapacity); | ||
| 138 | |||
| 139 | bool setMaximumCyclingRate(double maximumCyclingRate); | ||
| 140 | bool setLatentCapacityTimeConstant(double latentCapacityTimeConstant); | ||
| 141 | bool setFanDelayTime(double fanDelayTime); | ||
| 142 | |||
| 143 | bool setUseHotGasReheat(bool useHotGasReheat); | ||
| 144 | |||
| 145 | bool setEnergyPartLoadFractionCurve(const Curve& curve); | ||
| 146 | |||
| 147 | //@} | ||
| 148 | /** @name Other */ | ||
| 149 | //@{ | ||
| 150 | |||
| 151 | bool setSpeedDataList(const boost::optional<ModelObjectList>& modelObjectList); | ||
| 152 | |||
| 153 | void resetSpeedDataList(); | ||
| 154 | |||
| 155 | boost::optional<ModelObjectList> speedDataList() const; | ||
| 156 | |||
| 157 | std::vector<CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData> speeds() const; | ||
| 158 | |||
| 159 | bool addSpeed(const CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData& speed); | ||
| 160 | |||
| 161 | void removeSpeed(const CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFitSpeedData& speed); | ||
| 162 | |||
| 163 | void removeAllSpeeds(); | ||
| 164 | |||
| 165 | AirflowNetworkEquivalentDuct getAirflowNetworkEquivalentDuct(double length, double diameter); | ||
| 166 | |||
| 167 | boost::optional<AirflowNetworkEquivalentDuct> airflowNetworkEquivalentDuct() const; | ||
| 168 | |||
| 169 | //@} | ||
| 170 | protected: | ||
| 171 | private: | ||
| 172 | − | REGISTER_LOGGER("openstudio.model.CoilCoolingWaterToAirHeatPumpVariableSpeedEquationFit"); | |
| 173 | |||
| 174 | // Optional getters for use by methods like children() so can remove() if the constructor fails. | ||
| 175 | // There are other ways for the public versions of these getters to fail--perhaps all required | ||
| 176 | // objects should be returned as boost::optionals | ||
| 177 | boost::optional<Schedule> optionalAvailabilitySchedule() const; | ||
| 178 | boost::optional<Curve> optionalEnergyPartLoadFractionCurve() const; | ||
| 179 | }; | ||
| 180 | |||
| 181 | } // namespace detail | ||
| 182 | |||
| 183 | } // namespace model | ||
| 184 | } // namespace openstudio | ||
| 185 | |||
| 186 | #endif // MODEL_COILCOOLINGWATERTOAIRHEATPUMPVARIABLESPEEDEQUATIONFIT_IMPL_HPP | ||
| 187 |