src/model/EvaporativeFluidCoolerTwoSpeed_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_EVAPORATIVEFLUIDCOOLERTWOSPEED_IMPL_HPP | ||
| 7 | #define MODEL_EVAPORATIVEFLUIDCOOLERTWOSPEED_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "StraightComponent_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | |||
| 14 | namespace model { | ||
| 15 | |||
| 16 | class Schedule; | ||
| 17 | // class WaterStorageTank; | ||
| 18 | |||
| 19 | namespace detail { | ||
| 20 | |||
| 21 | /** EvaporativeFluidCoolerTwoSpeed_Impl is a StraightComponent_Impl that is the implementation class for EvaporativeFluidCoolerTwoSpeed.*/ | ||
| 22 | class MODEL_API EvaporativeFluidCoolerTwoSpeed_Impl : public StraightComponent_Impl | ||
| 23 | { | ||
| 24 | public: | ||
| 25 | /** @name Constructors and Destructors */ | ||
| 26 | //@{ | ||
| 27 | |||
| 28 | EvaporativeFluidCoolerTwoSpeed_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 29 | |||
| 30 | EvaporativeFluidCoolerTwoSpeed_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 31 | |||
| 32 | EvaporativeFluidCoolerTwoSpeed_Impl(const EvaporativeFluidCoolerTwoSpeed_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 33 | |||
| 34 | 5 | virtual ~EvaporativeFluidCoolerTwoSpeed_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 std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override; | ||
| 45 | |||
| 46 | virtual unsigned inletPort() const override; | ||
| 47 | |||
| 48 | virtual unsigned outletPort() const override; | ||
| 49 | |||
| 50 | virtual bool addToNode(Node& node) override; | ||
| 51 | |||
| 52 | virtual ComponentType componentType() const override; | ||
| 53 | virtual std::vector<FuelType> coolingFuelTypes() const override; | ||
| 54 | virtual std::vector<FuelType> heatingFuelTypes() const override; | ||
| 55 | virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override; | ||
| 56 | |||
| 57 | //@} | ||
| 58 | /** @name Getters */ | ||
| 59 | //@{ | ||
| 60 | |||
| 61 | boost::optional<double> highFanSpeedAirFlowRate() const; | ||
| 62 | |||
| 63 | bool isHighFanSpeedAirFlowRateAutosized() const; | ||
| 64 | |||
| 65 | boost::optional<double> highFanSpeedFanPower() const; | ||
| 66 | |||
| 67 | bool isHighFanSpeedFanPowerAutosized() const; | ||
| 68 | |||
| 69 | boost::optional<double> lowFanSpeedAirFlowRate() const; | ||
| 70 | |||
| 71 | bool isLowFanSpeedAirFlowRateAutosized() const; | ||
| 72 | |||
| 73 | double lowFanSpeedAirFlowRateSizingFactor() const; | ||
| 74 | |||
| 75 | boost::optional<double> lowFanSpeedFanPower() const; | ||
| 76 | |||
| 77 | bool isLowFanSpeedFanPowerAutosized() const; | ||
| 78 | |||
| 79 | double lowFanSpeedFanPowerSizingFactor() const; | ||
| 80 | |||
| 81 | double designSprayWaterFlowRate() const; | ||
| 82 | |||
| 83 | std::string performanceInputMethod() const; | ||
| 84 | |||
| 85 | boost::optional<std::string> outdoorAirInletNodeName() const; | ||
| 86 | |||
| 87 | double heatRejectionCapacityandNominalCapacitySizingRatio() const; | ||
| 88 | |||
| 89 | boost::optional<double> highSpeedStandardDesignCapacity() const; | ||
| 90 | |||
| 91 | boost::optional<double> lowSpeedStandardDesignCapacity() const; | ||
| 92 | |||
| 93 | bool isLowSpeedStandardDesignCapacityAutosized() const; | ||
| 94 | |||
| 95 | double lowSpeedStandardCapacitySizingFactor() const; | ||
| 96 | |||
| 97 | boost::optional<double> highFanSpeedUfactorTimesAreaValue() const; | ||
| 98 | |||
| 99 | bool isHighFanSpeedUfactorTimesAreaValueAutosized() const; | ||
| 100 | |||
| 101 | boost::optional<double> lowFanSpeedUfactorTimesAreaValue() const; | ||
| 102 | |||
| 103 | bool isLowFanSpeedUfactorTimesAreaValueAutosized() const; | ||
| 104 | |||
| 105 | double lowFanSpeedUFactorTimesAreaSizingFactor() const; | ||
| 106 | |||
| 107 | boost::optional<double> designWaterFlowRate() const; | ||
| 108 | |||
| 109 | bool isDesignWaterFlowRateAutosized() const; | ||
| 110 | |||
| 111 | boost::optional<double> highSpeedUserSpecifiedDesignCapacity() const; | ||
| 112 | |||
| 113 | boost::optional<double> lowSpeedUserSpecifiedDesignCapacity() const; | ||
| 114 | |||
| 115 | bool isLowSpeedUserSpecifiedDesignCapacityAutosized() const; | ||
| 116 | |||
| 117 | double lowSpeedUserSpecifiedDesignCapacitySizingFactor() const; | ||
| 118 | |||
| 119 | boost::optional<double> designEnteringWaterTemperature() const; | ||
| 120 | |||
| 121 | bool isDesignEnteringWaterTemperatureAutosized() const; | ||
| 122 | |||
| 123 | double designEnteringAirTemperature() const; | ||
| 124 | |||
| 125 | double designEnteringAirWetbulbTemperature() const; | ||
| 126 | |||
| 127 | double highSpeedSizingFactor() const; | ||
| 128 | |||
| 129 | std::string evaporationLossMode() const; | ||
| 130 | |||
| 131 | boost::optional<double> evaporationLossFactor() const; | ||
| 132 | |||
| 133 | double driftLossPercent() const; | ||
| 134 | |||
| 135 | std::string blowdownCalculationMode() const; | ||
| 136 | |||
| 137 | double blowdownConcentrationRatio() const; | ||
| 138 | |||
| 139 | boost::optional<Schedule> blowdownMakeupWaterUsageSchedule() const; | ||
| 140 | |||
| 141 | // boost::optional<WaterStorageTank> supplyWaterStorageTank() const; | ||
| 142 | |||
| 143 | boost::optional<double> autosizedHighFanSpeedAirFlowRate() const; | ||
| 144 | |||
| 145 | boost::optional<double> autosizedHighFanSpeedFanPower() const; | ||
| 146 | |||
| 147 | boost::optional<double> autosizedLowFanSpeedAirFlowRate() const; | ||
| 148 | |||
| 149 | boost::optional<double> autosizedLowFanSpeedFanPower() const; | ||
| 150 | |||
| 151 | boost::optional<double> autosizedLowSpeedStandardDesignCapacity() const; | ||
| 152 | |||
| 153 | boost::optional<double> autosizedHighFanSpeedUfactorTimesAreaValue() const; | ||
| 154 | |||
| 155 | boost::optional<double> autosizedLowFanSpeedUfactorTimesAreaValue() const; | ||
| 156 | |||
| 157 | boost::optional<double> autosizedDesignWaterFlowRate() const; | ||
| 158 | |||
| 159 | boost::optional<double> autosizedLowSpeedUserSpecifiedDesignCapacity() const; | ||
| 160 | |||
| 161 | boost::optional<double> autosizedDesignEnteringWaterTemperature() const; | ||
| 162 | |||
| 163 | virtual void autosize() override; | ||
| 164 | |||
| 165 | virtual void applySizingValues() override; | ||
| 166 | |||
| 167 | //@} | ||
| 168 | /** @name Setters */ | ||
| 169 | //@{ | ||
| 170 | |||
| 171 | bool setHighFanSpeedAirFlowRate(boost::optional<double> highFanSpeedAirFlowRate); | ||
| 172 | |||
| 173 | void autosizeHighFanSpeedAirFlowRate(); | ||
| 174 | |||
| 175 | bool setHighFanSpeedFanPower(boost::optional<double> highFanSpeedFanPower); | ||
| 176 | |||
| 177 | void autosizeHighFanSpeedFanPower(); | ||
| 178 | |||
| 179 | bool setLowFanSpeedAirFlowRate(boost::optional<double> lowFanSpeedAirFlowRate); | ||
| 180 | |||
| 181 | void autosizeLowFanSpeedAirFlowRate(); | ||
| 182 | |||
| 183 | bool setLowFanSpeedAirFlowRateSizingFactor(double lowFanSpeedAirFlowRateSizingFactor); | ||
| 184 | |||
| 185 | bool setLowFanSpeedFanPower(boost::optional<double> lowFanSpeedFanPower); | ||
| 186 | |||
| 187 | void autosizeLowFanSpeedFanPower(); | ||
| 188 | |||
| 189 | bool setLowFanSpeedFanPowerSizingFactor(double lowFanSpeedFanPowerSizingFactor); | ||
| 190 | |||
| 191 | bool setDesignSprayWaterFlowRate(double designSprayWaterFlowRate); | ||
| 192 | |||
| 193 | bool setPerformanceInputMethod(const std::string& performanceInputMethod); | ||
| 194 | |||
| 195 | bool setOutdoorAirInletNodeName(boost::optional<std::string> outdoorAirInletNodeName); | ||
| 196 | |||
| 197 | void resetOutdoorAirInletNodeName(); | ||
| 198 | |||
| 199 | bool setHeatRejectionCapacityandNominalCapacitySizingRatio(double heatRejectionCapacityandNominalCapacitySizingRatio); | ||
| 200 | |||
| 201 | bool setHighSpeedStandardDesignCapacity(boost::optional<double> highSpeedStandardDesignCapacity); | ||
| 202 | |||
| 203 | void resetHighSpeedStandardDesignCapacity(); | ||
| 204 | |||
| 205 | bool setLowSpeedStandardDesignCapacity(boost::optional<double> lowSpeedStandardDesignCapacity); | ||
| 206 | |||
| 207 | void resetLowSpeedStandardDesignCapacity(); | ||
| 208 | |||
| 209 | void autosizeLowSpeedStandardDesignCapacity(); | ||
| 210 | |||
| 211 | bool setLowSpeedStandardCapacitySizingFactor(double lowSpeedStandardCapacitySizingFactor); | ||
| 212 | |||
| 213 | bool setHighFanSpeedUfactorTimesAreaValue(boost::optional<double> highFanSpeedUfactorTimesAreaValue); | ||
| 214 | |||
| 215 | void resetHighFanSpeedUfactorTimesAreaValue(); | ||
| 216 | |||
| 217 | void autosizeHighFanSpeedUfactorTimesAreaValue(); | ||
| 218 | |||
| 219 | bool setLowFanSpeedUfactorTimesAreaValue(boost::optional<double> lowFanSpeedUfactorTimesAreaValue); | ||
| 220 | |||
| 221 | void resetLowFanSpeedUfactorTimesAreaValue(); | ||
| 222 | |||
| 223 | void autosizeLowFanSpeedUfactorTimesAreaValue(); | ||
| 224 | |||
| 225 | bool setLowFanSpeedUFactorTimesAreaSizingFactor(double lowFanSpeedUFactorTimesAreaSizingFactor); | ||
| 226 | |||
| 227 | bool setDesignWaterFlowRate(boost::optional<double> designWaterFlowRate); | ||
| 228 | |||
| 229 | void resetDesignWaterFlowRate(); | ||
| 230 | |||
| 231 | void autosizeDesignWaterFlowRate(); | ||
| 232 | |||
| 233 | bool setHighSpeedUserSpecifiedDesignCapacity(boost::optional<double> highSpeedUserSpecifiedDesignCapacity); | ||
| 234 | |||
| 235 | void resetHighSpeedUserSpecifiedDesignCapacity(); | ||
| 236 | |||
| 237 | bool setLowSpeedUserSpecifiedDesignCapacity(boost::optional<double> lowSpeedUserSpecifiedDesignCapacity); | ||
| 238 | |||
| 239 | void resetLowSpeedUserSpecifiedDesignCapacity(); | ||
| 240 | |||
| 241 | void autosizeLowSpeedUserSpecifiedDesignCapacity(); | ||
| 242 | |||
| 243 | bool setLowSpeedUserSpecifiedDesignCapacitySizingFactor(double lowSpeedUserSpecifiedDesignCapacitySizingFactor); | ||
| 244 | |||
| 245 | bool setDesignEnteringWaterTemperature(boost::optional<double> designEnteringWaterTemperature); | ||
| 246 | |||
| 247 | void autosizeDesignEnteringWaterTemperature(); | ||
| 248 | |||
| 249 | bool setDesignEnteringAirTemperature(boost::optional<double> designEnteringAirTemperature); | ||
| 250 | |||
| 251 | bool setDesignEnteringAirWetbulbTemperature(boost::optional<double> designEnteringAirWetbulbTemperature); | ||
| 252 | |||
| 253 | bool setHighSpeedSizingFactor(double highSpeedSizingFactor); | ||
| 254 | |||
| 255 | bool setEvaporationLossMode(const std::string& evaporationLossMode); | ||
| 256 | |||
| 257 | bool setEvaporationLossFactor(boost::optional<double> evaporationLossFactor); | ||
| 258 | |||
| 259 | void resetEvaporationLossFactor(); | ||
| 260 | |||
| 261 | bool setDriftLossPercent(double driftLossPercent); | ||
| 262 | |||
| 263 | bool setBlowdownCalculationMode(const std::string& blowdownCalculationMode); | ||
| 264 | |||
| 265 | bool setBlowdownConcentrationRatio(double blowdownConcentrationRatio); | ||
| 266 | |||
| 267 | bool setBlowdownMakeupWaterUsageSchedule(Schedule& schedule); | ||
| 268 | |||
| 269 | void resetBlowdownMakeupWaterUsageSchedule(); | ||
| 270 | |||
| 271 | // bool setSupplyWaterStorageTank(const boost::optional<WaterStorageTank>& waterStorageTank); | ||
| 272 | |||
| 273 | // void resetSupplyWaterStorageTank(); | ||
| 274 | |||
| 275 | //@} | ||
| 276 | /** @name Other */ | ||
| 277 | //@{ | ||
| 278 | |||
| 279 | //@} | ||
| 280 | protected: | ||
| 281 | private: | ||
| 282 | REGISTER_LOGGER("openstudio.model.EvaporativeFluidCoolerTwoSpeed"); | ||
| 283 | |||
| 284 | // Optional getters for use by methods like children() so can remove() if the constructor fails. | ||
| 285 | // There are other ways for the public versions of these getters to fail--perhaps all required | ||
| 286 | // objects should be returned as boost::optionals | ||
| 287 | }; | ||
| 288 | |||
| 289 | } // namespace detail | ||
| 290 | |||
| 291 | } // namespace model | ||
| 292 | } // namespace openstudio | ||
| 293 | |||
| 294 | #endif // MODEL_EVAPORATIVEFLUIDCOOLERTWOSPEED_IMPL_HPP | ||
| 295 |