src/model/CoilCoolingDXMultiSpeedStageData_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_COILCOOLINGDXMULTISPEEDSTAGEDATA_IMPL_HPP | ||
| 7 | #define MODEL_COILCOOLINGDXMULTISPEEDSTAGEDATA_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ParentObject_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | namespace model { | ||
| 14 | |||
| 15 | class Curve; | ||
| 16 | class CoilCoolingDXMultiSpeed; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | /** CoilCoolingDXMultiSpeedStageData_Impl is a ParentObject_Impl that is the implementation class for CoilCoolingDXMultiSpeedStageData.*/ | ||
| 21 | class MODEL_API CoilCoolingDXMultiSpeedStageData_Impl : public ParentObject_Impl | ||
| 22 | { | ||
| 23 | public: | ||
| 24 | /** @name Constructors and Destructors */ | ||
| 25 | //@{ | ||
| 26 | |||
| 27 | CoilCoolingDXMultiSpeedStageData_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 28 | |||
| 29 | CoilCoolingDXMultiSpeedStageData_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | CoilCoolingDXMultiSpeedStageData_Impl(const CoilCoolingDXMultiSpeedStageData_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | 60 | virtual ~CoilCoolingDXMultiSpeedStageData_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<ModelObject> children() const override; | ||
| 44 | |||
| 45 | virtual ModelObject clone(Model model) const override; | ||
| 46 | |||
| 47 | // If this object is used by any CoilCoolingDXMultiSpeed, remove the corresponding extensible group to avoid having 'blanks' | ||
| 48 | virtual std::vector<IdfObject> remove() override; | ||
| 49 | |||
| 50 | //@} | ||
| 51 | /** @name Getters */ | ||
| 52 | //@{ | ||
| 53 | |||
| 54 | boost::optional<double> grossRatedTotalCoolingCapacity() const; | ||
| 55 | |||
| 56 | bool isGrossRatedTotalCoolingCapacityAutosized() const; | ||
| 57 | |||
| 58 | boost::optional<double> grossRatedSensibleHeatRatio() const; | ||
| 59 | |||
| 60 | bool isGrossRatedSensibleHeatRatioAutosized() const; | ||
| 61 | |||
| 62 | double grossRatedCoolingCOP() const; | ||
| 63 | |||
| 64 | boost::optional<double> ratedAirFlowRate() const; | ||
| 65 | |||
| 66 | bool isRatedAirFlowRateAutosized() const; | ||
| 67 | |||
| 68 | double ratedEvaporatorFanPowerPerVolumeFlowRate2017() const; | ||
| 69 | |||
| 70 | double ratedEvaporatorFanPowerPerVolumeFlowRate2023() const; | ||
| 71 | |||
| 72 | Curve totalCoolingCapacityFunctionofTemperatureCurve() const; | ||
| 73 | |||
| 74 | Curve totalCoolingCapacityFunctionofFlowFractionCurve() const; | ||
| 75 | |||
| 76 | Curve energyInputRatioFunctionofTemperatureCurve() const; | ||
| 77 | |||
| 78 | Curve energyInputRatioFunctionofFlowFractionCurve() const; | ||
| 79 | |||
| 80 | Curve partLoadFractionCorrelationCurve() const; | ||
| 81 | |||
| 82 | double nominalTimeforCondensateRemovaltoBegin() const; | ||
| 83 | |||
| 84 | double ratioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity() const; | ||
| 85 | |||
| 86 | double maximumCyclingRate() const; | ||
| 87 | |||
| 88 | double latentCapacityTimeConstant() const; | ||
| 89 | |||
| 90 | double ratedWasteHeatFractionofPowerInput() const; | ||
| 91 | |||
| 92 | Curve wasteHeatFunctionofTemperatureCurve() const; | ||
| 93 | |||
| 94 | double evaporativeCondenserEffectiveness() const; | ||
| 95 | |||
| 96 | boost::optional<double> evaporativeCondenserAirFlowRate() const; | ||
| 97 | |||
| 98 | bool isEvaporativeCondenserAirFlowRateAutosized() const; | ||
| 99 | |||
| 100 | boost::optional<double> ratedEvaporativeCondenserPumpPowerConsumption() const; | ||
| 101 | |||
| 102 | bool isRatedEvaporativeCondenserPumpPowerConsumptionAutosized() const; | ||
| 103 | |||
| 104 | //@} | ||
| 105 | /** @name Setters */ | ||
| 106 | //@{ | ||
| 107 | |||
| 108 | bool setGrossRatedTotalCoolingCapacity(boost::optional<double> grossRatedTotalCoolingCapacity); | ||
| 109 | |||
| 110 | void autosizeGrossRatedTotalCoolingCapacity(); | ||
| 111 | |||
| 112 | bool setGrossRatedSensibleHeatRatio(boost::optional<double> grossRatedSensibleHeatRatio); | ||
| 113 | |||
| 114 | void autosizeGrossRatedSensibleHeatRatio(); | ||
| 115 | |||
| 116 | bool setGrossRatedCoolingCOP(double grossRatedCoolingCOP); | ||
| 117 | |||
| 118 | bool setRatedAirFlowRate(boost::optional<double> ratedAirFlowRate); | ||
| 119 | |||
| 120 | void autosizeRatedAirFlowRate(); | ||
| 121 | |||
| 122 | bool setRatedEvaporatorFanPowerPerVolumeFlowRate2017(double ratedEvaporatorFanPowerPerVolumeFlowRate2017); | ||
| 123 | |||
| 124 | bool setRatedEvaporatorFanPowerPerVolumeFlowRate2023(double ratedEvaporatorFanPowerPerVolumeFlowRate2023); | ||
| 125 | |||
| 126 | bool setTotalCoolingCapacityFunctionofTemperatureCurve(const Curve& curve); | ||
| 127 | |||
| 128 | bool setTotalCoolingCapacityFunctionofFlowFractionCurve(const Curve& curve); | ||
| 129 | |||
| 130 | bool setEnergyInputRatioFunctionofTemperatureCurve(const Curve& curve); | ||
| 131 | |||
| 132 | bool setEnergyInputRatioFunctionofFlowFractionCurve(const Curve& curve); | ||
| 133 | |||
| 134 | bool setPartLoadFractionCorrelationCurve(const Curve& curve); | ||
| 135 | |||
| 136 | bool setNominalTimeforCondensateRemovaltoBegin(double nominalTimeforCondensateRemovaltoBegin); | ||
| 137 | |||
| 138 | bool setRatioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity( | ||
| 139 | double ratioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity); | ||
| 140 | |||
| 141 | bool setMaximumCyclingRate(double maximumCyclingRate); | ||
| 142 | |||
| 143 | bool setLatentCapacityTimeConstant(double latentCapacityTimeConstant); | ||
| 144 | |||
| 145 | bool setRatedWasteHeatFractionofPowerInput(double ratedWasteHeatFractionofPowerInput); | ||
| 146 | |||
| 147 | bool setWasteHeatFunctionofTemperatureCurve(const Curve& curve); | ||
| 148 | |||
| 149 | bool setEvaporativeCondenserEffectiveness(double evaporativeCondenserEffectiveness); | ||
| 150 | |||
| 151 | bool setEvaporativeCondenserAirFlowRate(boost::optional<double> evaporativeCondenserAirFlowRate); | ||
| 152 | |||
| 153 | void autosizeEvaporativeCondenserAirFlowRate(); | ||
| 154 | |||
| 155 | bool setRatedEvaporativeCondenserPumpPowerConsumption(boost::optional<double> ratedEvaporativeCondenserPumpPowerConsumption); | ||
| 156 | |||
| 157 | void autosizeRatedEvaporativeCondenserPumpPowerConsumption(); | ||
| 158 | |||
| 159 | //@} | ||
| 160 | /** @name Other */ | ||
| 161 | //@{ | ||
| 162 | |||
| 163 | boost::optional<double> autosizedGrossRatedTotalCoolingCapacity() const; | ||
| 164 | |||
| 165 | boost::optional<double> autosizedGrossRatedSensibleHeatRatio() const; | ||
| 166 | |||
| 167 | boost::optional<double> autosizedRatedAirFlowRate() const; | ||
| 168 | |||
| 169 | boost::optional<double> autosizedEvaporativeCondenserAirFlowRate() const; | ||
| 170 | |||
| 171 | boost::optional<double> autosizedRatedEvaporativeCondenserPumpPowerConsumption() const; | ||
| 172 | |||
| 173 | void autosize(); | ||
| 174 | |||
| 175 | void applySizingValues(); | ||
| 176 | |||
| 177 | // Returns the CoilCoolingDXMultiSpeed that references it if any | ||
| 178 | boost::optional<CoilCoolingDXMultiSpeed> parentCoil() const; | ||
| 179 | |||
| 180 | // Used to determine the index of this performance data in the | ||
| 181 | // list of stages in the parent object. | ||
| 182 | boost::optional<std::tuple<int, CoilCoolingDXMultiSpeed>> stageIndexAndParentCoil() const; | ||
| 183 | |||
| 184 | //@} | ||
| 185 | protected: | ||
| 186 | private: | ||
| 187 | − | REGISTER_LOGGER("openstudio.model.CoilCoolingDXMultiSpeedStageData"); | |
| 188 | |||
| 189 | // Optional getters for use by methods like children() so can remove() if the constructor fails. | ||
| 190 | // There are other ways for the public versions of these getters to fail--perhaps all required | ||
| 191 | // objects should be returned as boost::optionals | ||
| 192 | boost::optional<Curve> optionalTotalCoolingCapacityFunctionofTemperatureCurve() const; | ||
| 193 | boost::optional<Curve> optionalTotalCoolingCapacityFunctionofFlowFractionCurve() const; | ||
| 194 | boost::optional<Curve> optionalEnergyInputRatioFunctionofTemperatureCurve() const; | ||
| 195 | boost::optional<Curve> optionalEnergyInputRatioFunctionofFlowFractionCurve() const; | ||
| 196 | boost::optional<Curve> optionalPartLoadFractionCorrelationCurve() const; | ||
| 197 | }; | ||
| 198 | |||
| 199 | } // namespace detail | ||
| 200 | |||
| 201 | } // namespace model | ||
| 202 | } // namespace openstudio | ||
| 203 | |||
| 204 | #endif // MODEL_COILCOOLINGDXMULTISPEEDSTAGEDATA_IMPL_HPP | ||
| 205 |