![]() |
OpenSWMM Engine
6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
|
Rain gage processing — numerically identical to legacy gage.c. More...
#include "Gage.hpp"#include "../core/SimulationContext.hpp"#include "../core/DateTime.hpp"#include <cmath>#include <algorithm>#include <cstdio>Namespaces | |
| namespace | openswmm |
| namespace | openswmm::gage |
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. | |
Rain gage processing — numerically identical to legacy gage.c.