![]() |
OpenSWMM Engine
6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
|
Rain gage processing — rainfall interpolation, type conversion. More...
Go to the source code of this file.
Classes | |
| struct | openswmm::gage::GageState |
Namespaces | |
| namespace | openswmm |
| namespace | openswmm::gage |
Enumerations | |
| enum class | openswmm::gage::RainType : int { openswmm::gage::INTENSITY = 0 , openswmm::gage::VOLUME = 1 , openswmm::gage::CUMULATIVE = 2 } |
Functions | |
| double | openswmm::gage::convertRainfall (double raw_value, GageState &state) |
| Convert raw rainfall value based on rain type. | |
| void | openswmm::gage::separatePrecip (GageState &state, double intensity, double temperature, double snow_temp) |
| Separate rainfall from snowfall based on temperature. | |
| void | openswmm::gage::updatePastRain (GageState &state, double current_time) |
| Update past n-hour rainfall accumulation. | |
| double | openswmm::gage::getPastRain (const GageState &state, int hours) |
| Get past n-hour rainfall total. | |
| void | openswmm::gage::updateAllGages (SimulationContext &ctx, double current_time) |
| Process all gages for one timestep. | |
Variables | |
| constexpr double | openswmm::gage::ONE_SECOND = 1.1574074e-5 |
| One second in days. | |
| constexpr int | openswmm::gage::MAXPASTRAIN = 48 |
| Max past hours tracked. | |
Rain gage processing — rainfall interpolation, type conversion.
Processes rainfall from timeseries or files for each gage, converts between INTENSITY/VOLUME/CUMULATIVE rain types, separates rainfall from snowfall based on temperature, and tracks past n-hour rainfall totals.