OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
Gage.cpp File Reference

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>
Include dependency graph for Gage.cpp:

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.
 

Detailed Description

Rain gage processing — numerically identical to legacy gage.c.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n MIT License