src/model/CoolingTowerVariableSpeed_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_COOLINGTOWERVARIABLESPEED_IMPL_HPP | ||
| 7 | #define MODEL_COOLINGTOWERVARIABLESPEED_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "StraightComponent_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | |||
| 14 | namespace model { | ||
| 15 | |||
| 16 | class CurveCubic; | ||
| 17 | class Schedule; | ||
| 18 | |||
| 19 | namespace detail { | ||
| 20 | |||
| 21 | /** CoolingTowerVariableSpeed_Impl is a StraightComponent_Impl that is the implementation class for CoolingTowerVariableSpeed.*/ | ||
| 22 | class MODEL_API CoolingTowerVariableSpeed_Impl : public StraightComponent_Impl | ||
| 23 | { | ||
| 24 | |||
| 25 | public: | ||
| 26 | /** @name Constructors and Destructors */ | ||
| 27 | //@{ | ||
| 28 | |||
| 29 | CoolingTowerVariableSpeed_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | CoolingTowerVariableSpeed_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 32 | |||
| 33 | CoolingTowerVariableSpeed_Impl(const CoolingTowerVariableSpeed_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 34 | |||
| 35 | 4 | virtual ~CoolingTowerVariableSpeed_Impl() override = default; | |
| 36 | |||
| 37 | //@} | ||
| 38 | /** @name Virtual Methods */ | ||
| 39 | //@{ | ||
| 40 | |||
| 41 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 42 | |||
| 43 | virtual IddObjectType iddObjectType() const override; | ||
| 44 | |||
| 45 | virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override; | ||
| 46 | |||
| 47 | virtual unsigned inletPort() const override; | ||
| 48 | |||
| 49 | virtual unsigned outletPort() const override; | ||
| 50 | |||
| 51 | virtual ComponentType componentType() const override; | ||
| 52 | virtual std::vector<FuelType> coolingFuelTypes() const override; | ||
| 53 | virtual std::vector<FuelType> heatingFuelTypes() const override; | ||
| 54 | virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override; | ||
| 55 | |||
| 56 | //@} | ||
| 57 | /** @name Getters */ | ||
| 58 | //@{ | ||
| 59 | |||
| 60 | boost::optional<std::string> modelType() const; | ||
| 61 | |||
| 62 | boost::optional<ModelObject> modelCoefficient() const; | ||
| 63 | |||
| 64 | boost::optional<double> designInletAirWetBulbTemperature() const; | ||
| 65 | |||
| 66 | boost::optional<double> designApproachTemperature() const; | ||
| 67 | |||
| 68 | boost::optional<double> designRangeTemperature() const; | ||
| 69 | |||
| 70 | boost::optional<double> designWaterFlowRate() const; | ||
| 71 | |||
| 72 | bool isDesignWaterFlowRateAutosized() const; | ||
| 73 | |||
| 74 | boost::optional<double> designAirFlowRate() const; | ||
| 75 | |||
| 76 | bool isDesignAirFlowRateAutosized() const; | ||
| 77 | |||
| 78 | boost::optional<double> designFanPower() const; | ||
| 79 | |||
| 80 | bool isDesignFanPowerAutosized() const; | ||
| 81 | |||
| 82 | boost::optional<CurveCubic> fanPowerRatioFunctionofAirFlowRateRatioCurve() const; | ||
| 83 | |||
| 84 | boost::optional<double> minimumAirFlowRateRatio() const; | ||
| 85 | |||
| 86 | boost::optional<double> fractionofTowerCapacityinFreeConvectionRegime() const; | ||
| 87 | |||
| 88 | boost::optional<double> basinHeaterCapacity() const; | ||
| 89 | |||
| 90 | boost::optional<double> basinHeaterSetpointTemperature() const; | ||
| 91 | |||
| 92 | boost::optional<Schedule> basinHeaterOperatingSchedule() const; | ||
| 93 | |||
| 94 | std::string evaporationLossMode() const; | ||
| 95 | |||
| 96 | bool isEvaporationLossModeDefaulted() const; | ||
| 97 | |||
| 98 | double evaporationLossFactor() const; | ||
| 99 | |||
| 100 | bool isEvaporationLossFactorDefaulted() const; | ||
| 101 | |||
| 102 | boost::optional<double> driftLossPercent() const; | ||
| 103 | |||
| 104 | std::string blowdownCalculationMode() const; | ||
| 105 | |||
| 106 | bool isBlowdownCalculationModeDefaulted() const; | ||
| 107 | |||
| 108 | boost::optional<double> blowdownConcentrationRatio() const; | ||
| 109 | |||
| 110 | boost::optional<Schedule> blowdownMakeupWaterUsageSchedule() const; | ||
| 111 | |||
| 112 | boost::optional<int> numberofCells() const; | ||
| 113 | |||
| 114 | std::string cellControl() const; | ||
| 115 | |||
| 116 | bool isCellControlDefaulted() const; | ||
| 117 | |||
| 118 | boost::optional<double> cellMinimumWaterFlowRateFraction() const; | ||
| 119 | |||
| 120 | boost::optional<double> cellMaximumWaterFlowRateFraction() const; | ||
| 121 | |||
| 122 | boost::optional<double> sizingFactor() const; | ||
| 123 | |||
| 124 | boost::optional<double> autosizedDesignWaterFlowRate() const; | ||
| 125 | |||
| 126 | boost::optional<double> autosizedDesignAirFlowRate() const; | ||
| 127 | |||
| 128 | boost::optional<double> autosizedDesignFanPower() const; | ||
| 129 | |||
| 130 | virtual void autosize() override; | ||
| 131 | |||
| 132 | virtual void applySizingValues() override; | ||
| 133 | |||
| 134 | //@} | ||
| 135 | /** @name Setters */ | ||
| 136 | //@{ | ||
| 137 | |||
| 138 | bool setModelType(boost::optional<std::string> modelType); | ||
| 139 | |||
| 140 | void resetModelType(); | ||
| 141 | |||
| 142 | bool setModelCoefficient(const boost::optional<ModelObject>& variableSpeedTowerCoefficient); | ||
| 143 | |||
| 144 | void resetModelCoefficient(); | ||
| 145 | |||
| 146 | bool setDesignInletAirWetBulbTemperature(boost::optional<double> designInletAirWetBulbTemperature); | ||
| 147 | |||
| 148 | void resetDesignInletAirWetBulbTemperature(); | ||
| 149 | |||
| 150 | bool setDesignApproachTemperature(boost::optional<double> designApproachTemperature); | ||
| 151 | |||
| 152 | void resetDesignApproachTemperature(); | ||
| 153 | |||
| 154 | bool setDesignRangeTemperature(boost::optional<double> designRangeTemperature); | ||
| 155 | |||
| 156 | void resetDesignRangeTemperature(); | ||
| 157 | |||
| 158 | bool setDesignWaterFlowRate(boost::optional<double> designWaterFlowRate); | ||
| 159 | |||
| 160 | void autosizeDesignWaterFlowRate(); | ||
| 161 | |||
| 162 | bool setDesignAirFlowRate(boost::optional<double> designAirFlowRate); | ||
| 163 | |||
| 164 | void autosizeDesignAirFlowRate(); | ||
| 165 | |||
| 166 | bool setDesignFanPower(boost::optional<double> designFanPower); | ||
| 167 | |||
| 168 | void autosizeDesignFanPower(); | ||
| 169 | |||
| 170 | bool setFanPowerRatioFunctionofAirFlowRateRatioCurve(const boost::optional<CurveCubic>& curve); | ||
| 171 | |||
| 172 | void resetFanPowerRatioFunctionofAirFlowRateRatioCurve(); | ||
| 173 | |||
| 174 | bool setMinimumAirFlowRateRatio(boost::optional<double> minimumAirFlowRateRatio); | ||
| 175 | |||
| 176 | void resetMinimumAirFlowRateRatio(); | ||
| 177 | |||
| 178 | bool setFractionofTowerCapacityinFreeConvectionRegime(boost::optional<double> fractionofTowerCapacityinFreeConvectionRegime); | ||
| 179 | |||
| 180 | void resetFractionofTowerCapacityinFreeConvectionRegime(); | ||
| 181 | |||
| 182 | bool setBasinHeaterCapacity(boost::optional<double> basinHeaterCapacity); | ||
| 183 | |||
| 184 | void resetBasinHeaterCapacity(); | ||
| 185 | |||
| 186 | bool setBasinHeaterSetpointTemperature(boost::optional<double> basinHeaterSetpointTemperature); | ||
| 187 | |||
| 188 | void resetBasinHeaterSetpointTemperature(); | ||
| 189 | |||
| 190 | bool setBasinHeaterOperatingSchedule(Schedule& schedule); | ||
| 191 | |||
| 192 | void resetBasinHeaterOperatingSchedule(); | ||
| 193 | |||
| 194 | bool setEvaporationLossMode(boost::optional<std::string> evaporationLossMode); | ||
| 195 | |||
| 196 | void resetEvaporationLossMode(); | ||
| 197 | |||
| 198 | bool setEvaporationLossFactor(double evaporationLossFactor); | ||
| 199 | |||
| 200 | void resetEvaporationLossFactor(); | ||
| 201 | |||
| 202 | bool setDriftLossPercent(boost::optional<double> driftLossPercent); | ||
| 203 | |||
| 204 | void resetDriftLossPercent(); | ||
| 205 | |||
| 206 | bool setBlowdownCalculationMode(boost::optional<std::string> blowdownCalculationMode); | ||
| 207 | |||
| 208 | void resetBlowdownCalculationMode(); | ||
| 209 | |||
| 210 | bool setBlowdownConcentrationRatio(boost::optional<double> blowdownConcentrationRatio); | ||
| 211 | |||
| 212 | void resetBlowdownConcentrationRatio(); | ||
| 213 | |||
| 214 | bool setBlowdownMakeupWaterUsageSchedule(Schedule& schedule); | ||
| 215 | |||
| 216 | void resetBlowdownMakeupWaterUsageSchedule(); | ||
| 217 | |||
| 218 | bool setNumberofCells(boost::optional<int> numberofCells); | ||
| 219 | |||
| 220 | void resetNumberofCells(); | ||
| 221 | |||
| 222 | bool setCellControl(boost::optional<std::string> cellControl); | ||
| 223 | |||
| 224 | void resetCellControl(); | ||
| 225 | |||
| 226 | bool setCellMinimumWaterFlowRateFraction(boost::optional<double> cellMinimumWaterFlowRateFraction); | ||
| 227 | |||
| 228 | void resetCellMinimumWaterFlowRateFraction(); | ||
| 229 | |||
| 230 | bool setCellMaximumWaterFlowRateFraction(boost::optional<double> cellMaximumWaterFlowRateFraction); | ||
| 231 | |||
| 232 | void resetCellMaximumWaterFlowRateFraction(); | ||
| 233 | |||
| 234 | bool setSizingFactor(boost::optional<double> sizingFactor); | ||
| 235 | |||
| 236 | void resetSizingFactor(); | ||
| 237 | |||
| 238 | ModelObject clone(Model model) const override; | ||
| 239 | |||
| 240 | std::vector<IddObjectType> allowableChildTypes() const override; | ||
| 241 | |||
| 242 | std::vector<ModelObject> children() const override; | ||
| 243 | |||
| 244 | bool addToNode(Node& node) override; | ||
| 245 | |||
| 246 | std::string endUseSubcategory() const; | ||
| 247 | |||
| 248 | bool setEndUseSubcategory(const std::string& endUseSubcategory); | ||
| 249 | |||
| 250 | private: | ||
| 251 | REGISTER_LOGGER("openstudio.model.CoolingTowerVariableSpeed"); | ||
| 252 | }; | ||
| 253 | |||
| 254 | } // namespace detail | ||
| 255 | |||
| 256 | } // namespace model | ||
| 257 | } // namespace openstudio | ||
| 258 | |||
| 259 | #endif // MODEL_COOLINGTOWERVARIABLESPEED_IMPL_HPP | ||
| 260 |