src/model/CoilPerformanceDXCooling_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_COILPERFORMANCEDXCOOLING_IMPL_HPP | ||
| 7 | #define MODEL_COILPERFORMANCEDXCOOLING_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 Node; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | /** CoilPerformanceDXCooling_Impl is a ModelObject_Impl that is the implementation class for CoilPerformanceDXCooling.*/ | ||
| 21 | class MODEL_API CoilPerformanceDXCooling_Impl : public ParentObject_Impl | ||
| 22 | { | ||
| 23 | public: | ||
| 24 | /** @name Constructors and Destructors */ | ||
| 25 | //@{ | ||
| 26 | |||
| 27 | CoilPerformanceDXCooling_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 28 | |||
| 29 | CoilPerformanceDXCooling_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | CoilPerformanceDXCooling_Impl(const CoilPerformanceDXCooling_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | 88 | virtual ~CoilPerformanceDXCooling_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 | //@} | ||
| 44 | /** @name Getters */ | ||
| 45 | //@{ | ||
| 46 | |||
| 47 | boost::optional<double> grossRatedTotalCoolingCapacity() const; | ||
| 48 | |||
| 49 | bool isGrossRatedTotalCoolingCapacityAutosized() const; | ||
| 50 | |||
| 51 | boost::optional<double> grossRatedSensibleHeatRatio() const; | ||
| 52 | |||
| 53 | bool isGrossRatedSensibleHeatRatioAutosized() const; | ||
| 54 | |||
| 55 | double grossRatedCoolingCOP() const; | ||
| 56 | |||
| 57 | boost::optional<double> ratedAirFlowRate() const; | ||
| 58 | |||
| 59 | bool isRatedAirFlowRateAutosized() const; | ||
| 60 | |||
| 61 | double fractionofAirFlowBypassedAroundCoil() const; | ||
| 62 | |||
| 63 | Curve totalCoolingCapacityFunctionofTemperatureCurve() const; | ||
| 64 | |||
| 65 | Curve totalCoolingCapacityFunctionofFlowFractionCurve() const; | ||
| 66 | |||
| 67 | Curve energyInputRatioFunctionofTemperatureCurve() const; | ||
| 68 | |||
| 69 | Curve energyInputRatioFunctionofFlowFractionCurve() const; | ||
| 70 | |||
| 71 | Curve partLoadFractionCorrelationCurve() const; | ||
| 72 | |||
| 73 | double nominalTimeforCondensateRemovaltoBegin() const; | ||
| 74 | |||
| 75 | double ratioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity() const; | ||
| 76 | |||
| 77 | double maximumCyclingRate() const; | ||
| 78 | |||
| 79 | double latentCapacityTimeConstant() const; | ||
| 80 | |||
| 81 | boost::optional<Node> condenserAirInletNode() const; | ||
| 82 | |||
| 83 | std::string condenserType() const; | ||
| 84 | |||
| 85 | double evaporativeCondenserEffectiveness() const; | ||
| 86 | |||
| 87 | boost::optional<double> evaporativeCondenserAirFlowRate() const; | ||
| 88 | |||
| 89 | bool isEvaporativeCondenserAirFlowRateAutosized() const; | ||
| 90 | |||
| 91 | boost::optional<double> evaporativeCondenserPumpRatedPowerConsumption() const; | ||
| 92 | |||
| 93 | bool isEvaporativeCondenserPumpRatedPowerConsumptionAutosized() const; | ||
| 94 | |||
| 95 | boost::optional<Curve> sensibleHeatRatioFunctionofTemperatureCurve() const; | ||
| 96 | |||
| 97 | boost::optional<Curve> sensibleHeatRatioFunctionofFlowFractionCurve() const; | ||
| 98 | |||
| 99 | boost::optional<double> autosizedGrossRatedTotalCoolingCapacity() const; | ||
| 100 | |||
| 101 | boost::optional<double> autosizedGrossRatedSensibleHeatRatio() const; | ||
| 102 | |||
| 103 | boost::optional<double> autosizedRatedAirFlowRate() const; | ||
| 104 | |||
| 105 | boost::optional<double> autosizedEvaporativeCondenserAirFlowRate() const; | ||
| 106 | |||
| 107 | boost::optional<double> autosizedEvaporativeCondenserPumpRatedPowerConsumption() const; | ||
| 108 | |||
| 109 | void autosize(); | ||
| 110 | |||
| 111 | void applySizingValues(); | ||
| 112 | |||
| 113 | //@} | ||
| 114 | /** @name Setters */ | ||
| 115 | //@{ | ||
| 116 | |||
| 117 | bool setGrossRatedTotalCoolingCapacity(boost::optional<double> grossRatedTotalCoolingCapacity); | ||
| 118 | |||
| 119 | void autosizeGrossRatedTotalCoolingCapacity(); | ||
| 120 | |||
| 121 | bool setGrossRatedSensibleHeatRatio(boost::optional<double> grossRatedSensibleHeatRatio); | ||
| 122 | |||
| 123 | void autosizeGrossRatedSensibleHeatRatio(); | ||
| 124 | |||
| 125 | bool setGrossRatedCoolingCOP(double grossRatedCoolingCOP); | ||
| 126 | |||
| 127 | bool setRatedAirFlowRate(boost::optional<double> ratedAirFlowRate); | ||
| 128 | |||
| 129 | void autosizeRatedAirFlowRate(); | ||
| 130 | |||
| 131 | bool setFractionofAirFlowBypassedAroundCoil(double fractionofAirFlowBypassedAroundCoil); | ||
| 132 | |||
| 133 | bool setTotalCoolingCapacityFunctionofTemperatureCurve(const Curve& curve); | ||
| 134 | |||
| 135 | bool setTotalCoolingCapacityFunctionofFlowFractionCurve(const Curve& curve); | ||
| 136 | |||
| 137 | bool setEnergyInputRatioFunctionofTemperatureCurve(const Curve& curve); | ||
| 138 | |||
| 139 | bool setEnergyInputRatioFunctionofFlowFractionCurve(const Curve& curve); | ||
| 140 | |||
| 141 | bool setPartLoadFractionCorrelationCurve(const Curve& curve); | ||
| 142 | |||
| 143 | bool setNominalTimeforCondensateRemovaltoBegin(double nominalTimeforCondensateRemovaltoBegin); | ||
| 144 | |||
| 145 | bool setRatioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity( | ||
| 146 | double ratioofInitialMoistureEvaporationRateandSteadyStateLatentCapacity); | ||
| 147 | |||
| 148 | bool setMaximumCyclingRate(double maximumCyclingRate); | ||
| 149 | |||
| 150 | bool setLatentCapacityTimeConstant(double latentCapacityTimeConstant); | ||
| 151 | |||
| 152 | bool setCondenserAirInletNode(const boost::optional<Node>& node); | ||
| 153 | |||
| 154 | void resetCondenserAirInletNode(); | ||
| 155 | |||
| 156 | bool setCondenserType(const std::string& condenserType); | ||
| 157 | |||
| 158 | bool setEvaporativeCondenserEffectiveness(double evaporativeCondenserEffectiveness); | ||
| 159 | |||
| 160 | bool setEvaporativeCondenserAirFlowRate(boost::optional<double> evaporativeCondenserAirFlowRate); | ||
| 161 | |||
| 162 | void autosizeEvaporativeCondenserAirFlowRate(); | ||
| 163 | |||
| 164 | bool setEvaporativeCondenserPumpRatedPowerConsumption(boost::optional<double> evaporativeCondenserPumpRatedPowerConsumption); | ||
| 165 | |||
| 166 | void autosizeEvaporativeCondenserPumpRatedPowerConsumption(); | ||
| 167 | |||
| 168 | bool setSensibleHeatRatioFunctionofTemperatureCurve(const boost::optional<Curve>& curve); | ||
| 169 | |||
| 170 | void resetSensibleHeatRatioFunctionofTemperatureCurve(); | ||
| 171 | |||
| 172 | bool setSensibleHeatRatioFunctionofFlowFractionCurve(const boost::optional<Curve>& curve); | ||
| 173 | |||
| 174 | void resetSensibleHeatRatioFunctionofFlowFractionCurve(); | ||
| 175 | |||
| 176 | //@} | ||
| 177 | /** @name Other */ | ||
| 178 | //@{ | ||
| 179 | ModelObject clone(Model model) const override; | ||
| 180 | std::vector<ModelObject> children() const override; | ||
| 181 | |||
| 182 | //@} | ||
| 183 | protected: | ||
| 184 | private: | ||
| 185 | − | REGISTER_LOGGER("openstudio.model.CoilPerformanceDXCooling"); | |
| 186 | |||
| 187 | boost::optional<double> getAutosizedValueCustom(std::string valueName, std::string units) const; | ||
| 188 | |||
| 189 | boost::optional<Curve> optionalTotalCoolingCapacityFunctionofTemperatureCurve() const; | ||
| 190 | boost::optional<Curve> optionalTotalCoolingCapacityFunctionofFlowFractionCurve() const; | ||
| 191 | boost::optional<Curve> optionalEnergyInputRatioFunctionofTemperatureCurve() const; | ||
| 192 | boost::optional<Curve> optionalEnergyInputRatioFunctionofFlowFractionCurve() const; | ||
| 193 | boost::optional<Curve> optionalPartLoadFractionCorrelationCurve() const; | ||
| 194 | }; | ||
| 195 | |||
| 196 | } // namespace detail | ||
| 197 | |||
| 198 | } // namespace model | ||
| 199 | } // namespace openstudio | ||
| 200 | |||
| 201 | #endif // MODEL_COILPERFORMANCEDXCOOLING_IMPL_HPP | ||
| 202 |