OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
openswmm::infil Namespace Reference

Functions

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

Function Documentation

◆ curvenum_getInfil()

double openswmm::infil::curvenum_getInfil ( CurveNumState state,
double  precip,
double  depth,
double  dt 
)

Compute SCS Curve Number infiltration rate.

Parameters
state[in/out] CN state.
precipRainfall rate (ft/sec).
depthPonded depth (ft).
dtTimestep (seconds).
Returns
Infiltration rate (ft/sec).
Here is the caller graph for this function:

◆ curvenum_init()

void openswmm::infil::curvenum_init ( CurveNumState state,
double  CN,
double  regen 
)

Initialise Curve Number parameters.

Parameters
state[out] State to initialise.
CNSCS Curve Number (1-100).
regenRegeneration rate.
Here is the caller graph for this function:

◆ grnampt_getInfil()

double openswmm::infil::grnampt_getInfil ( GreenAmptState state,
double  precip,
double  depth,
double  dt 
)

Compute Green-Ampt infiltration rate.

Parameters
state[in/out] Green-Ampt state.
precipRainfall rate (ft/sec).
depthPonded depth (ft).
dtTimestep (seconds).
Returns
Infiltration rate (ft/sec).
Here is the caller graph for this function:

◆ grnampt_init()

void openswmm::infil::grnampt_init ( GreenAmptState state,
double  S,
double  Ks,
double  IMD,
const SimulationOptions opts 
)

Initialise Green-Ampt parameters.

Parameters
state[out] State to initialise.
SSuction head (in or mm).
KsHydraulic conductivity (in/hr or mm/hr).
IMDInitial moisture deficit (0-1).
optsSimulation options (for unit system).
Here is the call graph for this function:
Here is the caller graph for this function:

◆ horton_getInfil()

double openswmm::infil::horton_getInfil ( HortonState state,
double  precip,
double  depth,
double  dt 
)

Compute Horton infiltration rate for one timestep.

Parameters
state[in/out] Horton state for this subcatchment.
precipRainfall rate (ft/sec).
depthPonded depth (ft).
dtTimestep (seconds).
Returns
Infiltration rate (ft/sec).
Here is the caller graph for this function:

◆ horton_init()

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.

Parameters
state[out] State to initialise.
f0Max infiltration rate (in/hr or mm/hr — converted internally).
fminMin infiltration rate.
decayDecay constant (1/hr).
regenRegeneration constant (1/hr).
FmaxMax cumulative infiltration (0 = unlimited).
optsSimulation options (for unit system).
Here is the call graph for this function:
Here is the caller graph for this function:

◆ modHorton_getInfil()

double openswmm::infil::modHorton_getInfil ( HortonState state,
double  precip,
double  depth,
double  dt 
)

Compute Modified Horton infiltration rate for one timestep.

Modified Horton uses a linear decay formula: fp = f0 - kd * Fe instead of the exponential decay of standard Horton.

Parameters
state[in/out] Horton state for this subcatchment.
precipRainfall rate (ft/sec).
depthPonded depth (ft).
dtTimestep (seconds).
Returns
Infiltration rate (ft/sec).
Note
Legacy reference: infil.cmodHorton_getInfil()
Here is the caller graph for this function: