src/model/SizingSystem_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_SIZINGSYSTEM_IMPL_HPP | ||
| 7 | #define MODEL_SIZINGSYSTEM_IMPL_HPP | ||
| 8 | |||
| 9 | #include "ModelAPI.hpp" | ||
| 10 | #include "ModelObject_Impl.hpp" | ||
| 11 | |||
| 12 | namespace openstudio { | ||
| 13 | |||
| 14 | namespace model { | ||
| 15 | |||
| 16 | class AirLoopHVAC; | ||
| 17 | |||
| 18 | namespace detail { | ||
| 19 | |||
| 20 | /** SizingSystem_Impl is a ModelObject_Impl that is the implementation class for SizingSystem.*/ | ||
| 21 | class MODEL_API SizingSystem_Impl : public ModelObject_Impl | ||
| 22 | { | ||
| 23 | |||
| 24 | public: | ||
| 25 | SizingSystem_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle); | ||
| 26 | |||
| 27 | SizingSystem_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 28 | |||
| 29 | SizingSystem_Impl(const SizingSystem_Impl& other, Model_Impl* model, bool keepHandle); | ||
| 30 | |||
| 31 | 1070 | virtual ~SizingSystem_Impl() override = default; | |
| 32 | |||
| 33 | virtual const std::vector<std::string>& outputVariableNames() const override; | ||
| 34 | |||
| 35 | virtual IddObjectType iddObjectType() const override; | ||
| 36 | |||
| 37 | virtual bool setParent(ParentObject& newParent) override; | ||
| 38 | |||
| 39 | std::string typeofLoadtoSizeOn() const; | ||
| 40 | |||
| 41 | bool isTypeofLoadtoSizeOnDefaulted() const; | ||
| 42 | |||
| 43 | boost::optional<double> designOutdoorAirFlowRate() const; | ||
| 44 | |||
| 45 | bool isDesignOutdoorAirFlowRateDefaulted() const; | ||
| 46 | |||
| 47 | bool isDesignOutdoorAirFlowRateAutosized() const; | ||
| 48 | |||
| 49 | boost::optional<double> centralHeatingMaximumSystemAirFlowRatio() const; | ||
| 50 | |||
| 51 | bool isCentralHeatingMaximumSystemAirFlowRatioDefaulted() const; | ||
| 52 | |||
| 53 | bool isCentralHeatingMaximumSystemAirFlowRatioAutosized() const; | ||
| 54 | |||
| 55 | double preheatDesignTemperature() const; | ||
| 56 | |||
| 57 | double preheatDesignHumidityRatio() const; | ||
| 58 | |||
| 59 | double precoolDesignTemperature() const; | ||
| 60 | |||
| 61 | double precoolDesignHumidityRatio() const; | ||
| 62 | |||
| 63 | double centralCoolingDesignSupplyAirTemperature() const; | ||
| 64 | |||
| 65 | double centralHeatingDesignSupplyAirTemperature() const; | ||
| 66 | |||
| 67 | std::string sizingOption() const; | ||
| 68 | |||
| 69 | bool isSizingOptionDefaulted() const; | ||
| 70 | |||
| 71 | bool allOutdoorAirinCooling() const; | ||
| 72 | |||
| 73 | bool isAllOutdoorAirinCoolingDefaulted() const; | ||
| 74 | |||
| 75 | bool allOutdoorAirinHeating() const; | ||
| 76 | |||
| 77 | bool isAllOutdoorAirinHeatingDefaulted() const; | ||
| 78 | |||
| 79 | double centralCoolingDesignSupplyAirHumidityRatio() const; | ||
| 80 | |||
| 81 | bool isCentralCoolingDesignSupplyAirHumidityRatioDefaulted() const; | ||
| 82 | |||
| 83 | double centralHeatingDesignSupplyAirHumidityRatio() const; | ||
| 84 | |||
| 85 | bool isCentralHeatingDesignSupplyAirHumidityRatioDefaulted() const; | ||
| 86 | |||
| 87 | std::string coolingDesignAirFlowMethod() const; | ||
| 88 | |||
| 89 | bool isCoolingDesignAirFlowMethodDefaulted() const; | ||
| 90 | |||
| 91 | double coolingDesignAirFlowRate() const; | ||
| 92 | |||
| 93 | bool isCoolingDesignAirFlowRateDefaulted() const; | ||
| 94 | |||
| 95 | std::string heatingDesignAirFlowMethod() const; | ||
| 96 | |||
| 97 | bool isHeatingDesignAirFlowMethodDefaulted() const; | ||
| 98 | |||
| 99 | double heatingDesignAirFlowRate() const; | ||
| 100 | |||
| 101 | bool isHeatingDesignAirFlowRateDefaulted() const; | ||
| 102 | |||
| 103 | std::string systemOutdoorAirMethod() const; | ||
| 104 | |||
| 105 | bool isSystemOutdoorAirMethodDefaulted() const; | ||
| 106 | |||
| 107 | double zoneMaximumOutdoorAirFraction() const; | ||
| 108 | |||
| 109 | double coolingSupplyAirFlowRatePerFloorArea() const; | ||
| 110 | |||
| 111 | double coolingFractionofAutosizedCoolingSupplyAirFlowRate() const; | ||
| 112 | |||
| 113 | double coolingSupplyAirFlowRatePerUnitCoolingCapacity() const; | ||
| 114 | |||
| 115 | double heatingSupplyAirFlowRatePerFloorArea() const; | ||
| 116 | |||
| 117 | double heatingFractionofAutosizedHeatingSupplyAirFlowRate() const; | ||
| 118 | |||
| 119 | double heatingFractionofAutosizedCoolingSupplyAirFlowRate() const; | ||
| 120 | |||
| 121 | double heatingSupplyAirFlowRatePerUnitHeatingCapacity() const; | ||
| 122 | |||
| 123 | std::string coolingDesignCapacityMethod() const; | ||
| 124 | |||
| 125 | boost::optional<double> coolingDesignCapacity() const; | ||
| 126 | |||
| 127 | bool isCoolingDesignCapacityAutosized() const; | ||
| 128 | |||
| 129 | double coolingDesignCapacityPerFloorArea() const; | ||
| 130 | |||
| 131 | double fractionofAutosizedCoolingDesignCapacity() const; | ||
| 132 | |||
| 133 | std::string heatingDesignCapacityMethod() const; | ||
| 134 | |||
| 135 | boost::optional<double> heatingDesignCapacity() const; | ||
| 136 | |||
| 137 | bool isHeatingDesignCapacityAutosized() const; | ||
| 138 | |||
| 139 | double heatingDesignCapacityPerFloorArea() const; | ||
| 140 | |||
| 141 | double fractionofAutosizedHeatingDesignCapacity() const; | ||
| 142 | |||
| 143 | std::string centralCoolingCapacityControlMethod() const; | ||
| 144 | |||
| 145 | boost::optional<double> occupantDiversity() const; | ||
| 146 | |||
| 147 | bool isOccupantDiversityAutosized() const; | ||
| 148 | |||
| 149 | std::string heatingCoilSizingMethod() const; | ||
| 150 | |||
| 151 | double maximumHeatingCapacityToCoolingCapacitySizingRatio() const; | ||
| 152 | |||
| 153 | bool setTypeofLoadtoSizeOn(const std::string& typeofLoadtoSizeOn); | ||
| 154 | |||
| 155 | void resetTypeofLoadtoSizeOn(); | ||
| 156 | |||
| 157 | bool setDesignOutdoorAirFlowRate(boost::optional<double> designOutdoorAirFlowRate); | ||
| 158 | |||
| 159 | void resetDesignOutdoorAirFlowRate(); | ||
| 160 | |||
| 161 | void autosizeDesignOutdoorAirFlowRate(); | ||
| 162 | |||
| 163 | bool setCentralHeatingMaximumSystemAirFlowRatio(boost::optional<double> centralHeatingMaximumSystemAirFlowRatio); | ||
| 164 | |||
| 165 | void resetCentralHeatingMaximumSystemAirFlowRatio(); | ||
| 166 | |||
| 167 | void autosizeCentralHeatingMaximumSystemAirFlowRatio(); | ||
| 168 | |||
| 169 | bool setPreheatDesignTemperature(double preheatDesignTemperature); | ||
| 170 | |||
| 171 | bool setPreheatDesignHumidityRatio(double preheatDesignHumidityRatio); | ||
| 172 | |||
| 173 | bool setPrecoolDesignTemperature(double precoolDesignTemperature); | ||
| 174 | |||
| 175 | bool setPrecoolDesignHumidityRatio(double precoolDesignHumidityRatio); | ||
| 176 | |||
| 177 | bool setCentralCoolingDesignSupplyAirTemperature(double centralCoolingDesignSupplyAirTemperature); | ||
| 178 | |||
| 179 | bool setCentralHeatingDesignSupplyAirTemperature(double centralHeatingDesignSupplyAirTemperature); | ||
| 180 | |||
| 181 | bool setSizingOption(const std::string& sizingOption); | ||
| 182 | |||
| 183 | void resetSizingOption(); | ||
| 184 | |||
| 185 | bool setAllOutdoorAirinCooling(bool allOutdoorAirinCooling); | ||
| 186 | |||
| 187 | void resetAllOutdoorAirinCooling(); | ||
| 188 | |||
| 189 | bool setAllOutdoorAirinHeating(bool allOutdoorAirinHeating); | ||
| 190 | |||
| 191 | void resetAllOutdoorAirinHeating(); | ||
| 192 | |||
| 193 | bool setCentralCoolingDesignSupplyAirHumidityRatio(double centralCoolingDesignSupplyAirHumidityRatio); | ||
| 194 | |||
| 195 | void resetCentralCoolingDesignSupplyAirHumidityRatio(); | ||
| 196 | |||
| 197 | bool setCentralHeatingDesignSupplyAirHumidityRatio(double centralHeatingDesignSupplyAirHumidityRatio); | ||
| 198 | |||
| 199 | void resetCentralHeatingDesignSupplyAirHumidityRatio(); | ||
| 200 | |||
| 201 | bool setCoolingDesignAirFlowMethod(const std::string& coolingDesignAirFlowMethod); | ||
| 202 | |||
| 203 | void resetCoolingDesignAirFlowMethod(); | ||
| 204 | |||
| 205 | bool setCoolingDesignAirFlowRate(double coolingDesignAirFlowRate); | ||
| 206 | |||
| 207 | void resetCoolingDesignAirFlowRate(); | ||
| 208 | |||
| 209 | bool setHeatingDesignAirFlowMethod(const std::string& heatingDesignAirFlowMethod); | ||
| 210 | |||
| 211 | void resetHeatingDesignAirFlowMethod(); | ||
| 212 | |||
| 213 | bool setHeatingDesignAirFlowRate(double heatingDesignAirFlowRate); | ||
| 214 | |||
| 215 | void resetHeatingDesignAirFlowRate(); | ||
| 216 | |||
| 217 | bool setSystemOutdoorAirMethod(const std::string& systemOutdoorAirMethod); | ||
| 218 | |||
| 219 | void resetSystemOutdoorAirMethod(); | ||
| 220 | |||
| 221 | bool setZoneMaximumOutdoorAirFraction(double zoneMaximumOutdoorAirFraction); | ||
| 222 | |||
| 223 | bool setCoolingSupplyAirFlowRatePerFloorArea(double coolingSupplyAirFlowRatePerFloorArea); | ||
| 224 | |||
| 225 | bool setCoolingFractionofAutosizedCoolingSupplyAirFlowRate(double coolingFractionofAutosizedCoolingSupplyAirFlowRate); | ||
| 226 | |||
| 227 | bool setCoolingSupplyAirFlowRatePerUnitCoolingCapacity(double coolingSupplyAirFlowRatePerUnitCoolingCapacity); | ||
| 228 | |||
| 229 | bool setHeatingSupplyAirFlowRatePerFloorArea(double heatingSupplyAirFlowRatePerFloorArea); | ||
| 230 | |||
| 231 | bool setHeatingFractionofAutosizedHeatingSupplyAirFlowRate(double heatingFractionofAutosizedHeatingSupplyAirFlowRate); | ||
| 232 | |||
| 233 | bool setHeatingFractionofAutosizedCoolingSupplyAirFlowRate(double heatingFractionofAutosizedCoolingSupplyAirFlowRate); | ||
| 234 | |||
| 235 | bool setHeatingSupplyAirFlowRatePerUnitHeatingCapacity(double heatingSupplyAirFlowRatePerUnitHeatingCapacity); | ||
| 236 | |||
| 237 | bool setCoolingDesignCapacityMethod(const std::string& coolingDesignCapacityMethod); | ||
| 238 | |||
| 239 | bool setCoolingDesignCapacity(boost::optional<double> coolingDesignCapacity); | ||
| 240 | |||
| 241 | void autosizeCoolingDesignCapacity(); | ||
| 242 | |||
| 243 | bool setCoolingDesignCapacityPerFloorArea(double coolingDesignCapacityPerFloorArea); | ||
| 244 | |||
| 245 | bool setFractionofAutosizedCoolingDesignCapacity(double fractionofAutosizedCoolingDesignCapacity); | ||
| 246 | |||
| 247 | bool setHeatingDesignCapacityMethod(const std::string& heatingDesignCapacityMethod); | ||
| 248 | |||
| 249 | bool setHeatingDesignCapacity(boost::optional<double> heatingDesignCapacity); | ||
| 250 | |||
| 251 | void autosizeHeatingDesignCapacity(); | ||
| 252 | |||
| 253 | bool setHeatingDesignCapacityPerFloorArea(double heatingDesignCapacityPerFloorArea); | ||
| 254 | |||
| 255 | bool setFractionofAutosizedHeatingDesignCapacity(double fractionofAutosizedHeatingDesignCapacity); | ||
| 256 | |||
| 257 | bool setCentralCoolingCapacityControlMethod(const std::string& centralCoolingCapacityControlMethod); | ||
| 258 | |||
| 259 | bool setOccupantDiversity(double occupantDiversity); | ||
| 260 | |||
| 261 | void autosizeOccupantDiversity(); | ||
| 262 | |||
| 263 | bool setHeatingCoilSizingMethod(const std::string& heatingCoilSizingMethod); | ||
| 264 | |||
| 265 | bool setMaximumHeatingCapacityToCoolingCapacitySizingRatio(double maximumHeatingCapacityToCoolingCapacitySizingRatio); | ||
| 266 | |||
| 267 | AirLoopHVAC airLoopHVAC() const; | ||
| 268 | |||
| 269 | bool setAirLoopHVAC(const AirLoopHVAC& airLoopHVAC); | ||
| 270 | |||
| 271 | boost::optional<double> autosizedDesignOutdoorAirFlowRate() const; | ||
| 272 | |||
| 273 | boost::optional<double> autosizedCentralHeatingMaximumSystemAirFlowRatio() const; | ||
| 274 | |||
| 275 | boost::optional<double> autosizedCoolingDesignCapacity() const; | ||
| 276 | |||
| 277 | boost::optional<double> autosizedHeatingDesignCapacity() const; | ||
| 278 | |||
| 279 | boost::optional<double> autosizedOccupantDiversity() const; | ||
| 280 | |||
| 281 | void autosize(); | ||
| 282 | |||
| 283 | void applySizingValues(); | ||
| 284 | |||
| 285 | virtual std::vector<EMSActuatorNames> emsActuatorNames() const override; | ||
| 286 | |||
| 287 | virtual std::vector<std::string> emsInternalVariableNames() const override; | ||
| 288 | |||
| 289 | protected: | ||
| 290 | private: | ||
| 291 | − | REGISTER_LOGGER("openstudio.model.SizingSystem"); | |
| 292 | }; | ||
| 293 | |||
| 294 | } // namespace detail | ||
| 295 | |||
| 296 | } // namespace model | ||
| 297 | |||
| 298 | } // namespace openstudio | ||
| 299 | |||
| 300 | #endif // MODEL_SIZINGSYSTEM_IMPL_HPP | ||
| 301 |