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

Infiltration models — Horton, Green-Ampt, SCS Curve Number. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  openswmm::HortonState
 
struct  openswmm::GreenAmptState
 
struct  openswmm::CurveNumState
 

Namespaces

namespace  openswmm
 
namespace  openswmm::infil
 

Enumerations

enum class  openswmm::InfilModel : int {
  openswmm::HORTON = 0 ,
  openswmm::MOD_HORTON = 1 ,
  openswmm::GREEN_AMPT = 2 ,
  openswmm::CURVE_NUM = 3
}
 

Functions

double openswmm::infil::horton_getInfil (HortonState &state, double precip, double depth, double dt)
 Compute Horton infiltration rate for one timestep.
 
double openswmm::infil::modHorton_getInfil (HortonState &state, double precip, double depth, double dt)
 Compute Modified Horton infiltration rate for one timestep.
 
double openswmm::infil::grnampt_getInfil (GreenAmptState &state, double precip, double depth, double dt)
 Compute Green-Ampt infiltration rate.
 
double openswmm::infil::curvenum_getInfil (CurveNumState &state, double precip, double depth, double dt)
 Compute SCS Curve Number infiltration rate.
 
void openswmm::infil::horton_init (HortonState &state, double f0, double fmin, double decay, double regen, double Fmax, const SimulationOptions &opts)
 Initialise Horton parameters from user input.
 
void openswmm::infil::grnampt_init (GreenAmptState &state, double S, double Ks, double IMD, const SimulationOptions &opts)
 Initialise Green-Ampt parameters.
 
void openswmm::infil::curvenum_init (CurveNumState &state, double CN, double regen)
 Initialise Curve Number parameters.
 

Detailed Description

Infiltration models — Horton, Green-Ampt, SCS Curve Number.

All three models are implemented with exact numerical parity to legacy infil.c. Each model maintains per-subcatchment state and computes infiltration rate given current precipitation, ponded depth, and timestep.

Note
Legacy reference: src/legacy/engine/infil.c
Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n MIT License