![]() |
OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
|
Classes | |
| struct | Params |
Functions | |
| double | effectiveSaturation (const Params &p, double psi) noexcept |
Effective saturation at suction head psi (m, ≥ 0). Se ∈ (0, 1]. | |
| double | waterContent (const Params &p, double psi) noexcept |
| Water content θ(ψ) = θ_r + Se·(θ_s − θ_r). | |
| double | relativeConductivity (const Params &p, double psi) noexcept |
Relative conductivity Kr(ψ) ∈ [0, 1]. | |
| double | conductivity (const Params &p, double psi) noexcept |
Unsaturated conductivity K(ψ) = Ks·Kr(ψ) (m/s). | |
| double | suctionAtSaturation (const Params &p, double Se) noexcept |
Suction head at a given effective saturation — the retention inverse, needed to give the σ column a ψ from its θ. Returns 0 at Se ≥ 1. | |
| double | diffusivity (const Params &p, double psi) noexcept |
Soil-moisture diffusivity D(θ) = K(ψ)/|dθ/dψ| (m²/s) at suction psi. Evaluated from a centered finite difference of the retention curve. Callers decide whether the capillary term is enabled. | |
| double | equilibriumStorage (const Params &p, double L) noexcept |
Hydrostatic-equilibrium storage of a column of thickness L (m of water): ∫₀ᴸ θ(ψ) dψ. Gardner and Brooks–Corey are closed form; Russo and van Genuchten use fixed-order Gauss–Legendre. | |
| double | enslavedStorage (const Params &p, double L) noexcept |
The ENSLAVED reduction: hᵤ algebraic in h_g — the storage at which rechargeQ0 vanishes. For Gardner this is eq. 39. | |
| double | rechargeQ0 (const Params &p, double L, double hu) noexcept |
Closure-A quasi-steady recharge (m/s). + down, − capillary rise. | |
| double | alphaL (const Params &p, double L) noexcept |
αL, the dimensionless group the AUTO closure selection reads. For Brooks–Corey and van Genuchten the law's own inverse length replaces α (1/ψ_b, and the van Genuchten α), so the thresholds mean the same thing across laws. | |
| double | feddesStress (double psi, double psi_w) noexcept |
Feddes-style smooth stress multiplier on potential ET, from the column's mean suction. 1 in the readily-available range, falling smoothly to 0 at the wilting point — no if (infil <= 0) gate, which is the behaviour §7 retires. psi_w wilting suction (m). | |
|
noexcept |
αL, the dimensionless group the AUTO closure selection reads. For Brooks–Corey and van Genuchten the law's own inverse length replaces α (1/ψ_b, and the van Genuchten α), so the thresholds mean the same thing across laws.
| [in] | p | Borrowed validated SI soil law: Ks m/s, alpha 1/m, psi_b m, 0 <= theta_r < theta_s <= 1, lambda > 0, vg_n > 1 and admissible dimensionless vg_L. |
| [in] | L | Finite unsaturated column thickness in m; storage clamps negative L to zero, alphaL uses a 1e-3 m thickness floor. |
|
noexcept |
Unsaturated conductivity K(ψ) = Ks·Kr(ψ) (m/s).
| [in] | p | Borrowed validated SI soil law: Ks m/s, alpha 1/m, psi_b m, 0 <= theta_r < theta_s <= 1, lambda > 0, vg_n > 1 and admissible dimensionless vg_L. |
| [in] | psi | Finite suction magnitude in m; nonpositive suction is treated as saturated by retention/conductivity. |
|
noexcept |
Soil-moisture diffusivity D(θ) = K(ψ)/|dθ/dψ| (m²/s) at suction psi. Evaluated from a centered finite difference of the retention curve. Callers decide whether the capillary term is enabled.
| [in] | p | Borrowed validated SI soil law: Ks m/s, alpha 1/m, psi_b m, 0 <= theta_r < theta_s <= 1, lambda > 0, vg_n > 1 and admissible dimensionless vg_L. |
| [in] | psi | Finite suction magnitude in m; nonpositive suction is treated as saturated by retention/conductivity. |
|
noexcept |
Effective saturation at suction head psi (m, ≥ 0). Se ∈ (0, 1].
| [in] | p | Borrowed validated SI soil law: Ks m/s, alpha 1/m, psi_b m, 0 <= theta_r < theta_s <= 1, lambda > 0, vg_n > 1 and admissible dimensionless vg_L. |
| [in] | psi | Finite suction magnitude in m; nonpositive suction is treated as saturated by retention/conductivity. |
|
noexcept |
The ENSLAVED reduction: hᵤ algebraic in h_g — the storage at which rechargeQ0 vanishes. For Gardner this is eq. 39.
| [in] | p | Borrowed validated SI soil law: Ks m/s, alpha 1/m, psi_b m, 0 <= theta_r < theta_s <= 1, lambda > 0, vg_n > 1 and admissible dimensionless vg_L. |
| [in] | L | Finite unsaturated column thickness in m; storage clamps negative L to zero, alphaL uses a 1e-3 m thickness floor. |
|
noexcept |
Hydrostatic-equilibrium storage of a column of thickness L (m of water): ∫₀ᴸ θ(ψ) dψ. Gardner and Brooks–Corey are closed form; Russo and van Genuchten use fixed-order Gauss–Legendre.
| [in] | p | Borrowed validated SI soil law: Ks m/s, alpha 1/m, psi_b m, 0 <= theta_r < theta_s <= 1, lambda > 0, vg_n > 1 and admissible dimensionless vg_L. |
| [in] | L | Finite unsaturated column thickness in m; storage clamps negative L to zero, alphaL uses a 1e-3 m thickness floor. |
|
noexcept |
Feddes-style smooth stress multiplier on potential ET, from the column's mean suction. 1 in the readily-available range, falling smoothly to 0 at the wilting point — no if (infil <= 0) gate, which is the behaviour §7 retires. psi_w wilting suction (m).
| [in] | psi | Finite suction in m; <= 0 receives no water-stress reduction. |
| [in] | psi_w | Finite wilting suction in m, numerically floored at 1e-6 m. |
|
noexcept |
Closure-A quasi-steady recharge (m/s). + down, − capillary rise.
| [in] | L | unsaturated column thickness z_s − h_g (m) |
| [in] | hu | bulk unsaturated storage as an equivalent water depth (m) For Gardner this IS eq. 22; see the file header for the other three. |
| [in] | p | Borrowed validated SI soil law: Ks m/s, alpha 1/m, psi_b m, 0 <= theta_r < theta_s <= 1, lambda > 0, vg_n > 1 and admissible dimensionless vg_L. |
|
noexcept |
Relative conductivity Kr(ψ) ∈ [0, 1].
| [in] | p | Borrowed validated SI soil law: Ks m/s, alpha 1/m, psi_b m, 0 <= theta_r < theta_s <= 1, lambda > 0, vg_n > 1 and admissible dimensionless vg_L. |
| [in] | psi | Finite suction magnitude in m; nonpositive suction is treated as saturated by retention/conductivity. |
|
noexcept |
Suction head at a given effective saturation — the retention inverse, needed to give the σ column a ψ from its θ. Returns 0 at Se ≥ 1.
| [in] | p | Borrowed validated SI soil law: Ks m/s, alpha 1/m, psi_b m, 0 <= theta_r < theta_s <= 1, lambda > 0, vg_n > 1 and admissible dimensionless vg_L. |
| [in] | Se | Finite dimensionless effective saturation, numerically clamped to [1e-8,1]. |
|
noexcept |
Water content θ(ψ) = θ_r + Se·(θ_s − θ_r).
| [in] | p | Borrowed validated SI soil law: Ks m/s, alpha 1/m, psi_b m, 0 <= theta_r < theta_s <= 1, lambda > 0, vg_n > 1 and admissible dimensionless vg_L. |
| [in] | psi | Finite suction magnitude in m; nonpositive suction is treated as saturated by retention/conductivity. |