#include <Runoff.hpp>
|
| void | init (SimulationContext &ctx) |
| |
| void | execute (SimulationContext &ctx, double dt, double evap_rate=0.0, double infil_factor=1.0, double recovery_factor=1.0, int month=-1) |
| |
| const RunoffSoA & | soa () const |
| |
| void | infil_get_state (int i, int &model, double state[6]) const noexcept |
| | Pack infiltration state for subcatchment i into a flat 6-element array.
|
| |
| void | infil_set_state (int i, int model, const double state[6]) noexcept |
| | Restore infiltration state for subcatchment i from a flat 6-element array.
|
| |
◆ execute()
| void openswmm::runoff::RunoffSolver::execute |
( |
SimulationContext & |
ctx, |
|
|
double |
dt, |
|
|
double |
evap_rate = 0.0, |
|
|
double |
infil_factor = 1.0, |
|
|
double |
recovery_factor = 1.0, |
|
|
int |
month = -1 |
|
) |
| |
- Parameters
-
| infil_factor | Monthly infiltration rate multiplier (default 1.0). |
| recovery_factor | Monthly soil recovery multiplier (default 1.0). |
◆ infil_get_state()
| void openswmm::runoff::RunoffSolver::infil_get_state |
( |
int |
i, |
|
|
int & |
model, |
|
|
double |
state[6] |
|
) |
| const |
|
noexcept |
Pack infiltration state for subcatchment i into a flat 6-element array.
Layout (matches legacy infil_getState() encoding):
- Horton/ModHorton (0,1): [tp, Fe, Fmh, 0, 0, 0]
- GA/ModGA (2,3): [IMD, F, Fu, T, sat(0/1), 0]
- CurveNum (4): [S, Se, P, F, f, T]
- Parameters
-
| i | Subcatchment index. |
| model | [out] InfilModel enum value. |
| state | [out] 6-element flat state array. |
◆ infil_set_state()
| void openswmm::runoff::RunoffSolver::infil_set_state |
( |
int |
i, |
|
|
int |
model, |
|
|
const double |
state[6] |
|
) |
| |
|
noexcept |
Restore infiltration state for subcatchment i from a flat 6-element array.
Only updates the state fields; does not reinitialise parameters. Silently ignores out-of-range i or mismatched model type.
- Parameters
-
| i | Subcatchment index. |
| model | InfilModel enum value stored in the hot start file. |
| state | 6-element flat state array written by infil_get_state(). |
◆ init()
◆ soa()
| const RunoffSoA & openswmm::runoff::RunoffSolver::soa |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files:
- /home/runner/work/openswmm.engine/openswmm.engine/src/engine/hydrology/Runoff.hpp
- /home/runner/work/openswmm.engine/openswmm.engine/src/engine/hydrology/Runoff.cpp