![]() |
OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
|
One infiltration specification — POD mirror of openswmm::twoD::Infil2DRow.
More...
#include <openswmm_infil2d.h>
Public Attributes | |
| int | has_method |
| int | method |
| double | p [SWMM_INFIL2D_MAX_PARAMS] |
| int | dest |
One infiltration specification — POD mirror of openswmm::twoD::Infil2DRow.
Parameters are POSITIONAL and in PROJECT UNITS, matching legacy [INFILTRATION] exactly:
| method | p[0] | p[1] | p[2] | p[3] | p[4] |
|---|---|---|---|---|---|
SWMM_INFIL2D_HORTON | f0 | fmin | decay (1/hr) | dry_time (d) | Fmax |
SWMM_INFIL2D_MOD_HORTON | f0 | fmin | decay (1/hr) | dry_time (d) | Fmax |
SWMM_INFIL2D_GREEN_AMPT | S suction | Ks | IMD | — | — |
SWMM_INFIL2D_MOD_GREEN_AMPT | S suction | Ks | IMD | — | — |
SWMM_INFIL2D_CURVE_NUMBER | CN | — | dry_time (d) | — | — |
SWMM_INFIL2D_CONSTANT | rate | — | — | — | — |
f0 / fmin / Ks / rate are in/hr (US) or mm/hr (SI); S and Fmax are in (US) or mm (SI). CURVE_NUMBER's p[1] is unused and ignored, matching the legacy column layout where the middle value is a no-op. Slots a method does not use are ignored; write 0.
| int SWMM_Infil2DRow::dest |
One of the SWMM_INFIL2D_DEST_* codes. Only SWMM_INFIL2D_DEST_LOST is accepted in this release (D-I4).
| int SWMM_Infil2DRow::has_method |
0 = NONE (the cell/tag has no infiltration model). When 0, every other field is meaningless and is ignored on write.
| int SWMM_Infil2DRow::method |
One of the SWMM_INFIL2D_* method codes.
| double SWMM_Infil2DRow::p[SWMM_INFIL2D_MAX_PARAMS] |
Positional parameters in PROJECT UNITS — see the table above.