![]() |
OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
|
Classes | |
| class | TimestepController |
| Static utility class for explicit timestep computation. More... | |
Functions | |
| double | aquiferSeepFactor (double depth, double gw_head_rel, double d_c) noexcept |
| Compute the signed conductance multiplier for conduit-to-aquifer seepage. | |
| double | capAquiferGain (double seep_rate, double gain_max) noexcept |
| Limit the gaining direction of a signed conduit seepage rate. | |
| void | applySeepageForcing (const SimulationContext &ctx, std::size_t link, double &seep_rate) noexcept |
| Apply the registered host seepage override or addition to a conduit rate. | |
|
inlinenoexcept |
Apply the registered host seepage override or addition to a conduit rate.
Other modes leave the rate unchanged. Does not validate values, enforce donor/gain caps or consume SINGLE forcing; routing invokes it after physical caps. Caller serializes forcing edits and evaluation.
| [in] | ctx | Borrowed aligned forcing mode/value vectors, stored in native cfs. |
| [in] | link | Zero-based global link slot; out-of-mode-vector range is a no-op. |
| [in,out] | seep_rate | Signed native cfs rate, positive out of conduit; OVERRIDE replaces and ADD increments. |
|
inlinenoexcept |
Compute the signed conductance multiplier for conduit-to-aquifer seepage.
Does not bound gaining magnitude or reject nonfinite inputs; caller applies donor/gain caps separately. All three lengths may share another consistent unit without changing the dimensionless result.
| [in] | depth | Conduit water depth, normally native ft. |
| [in] | gw_head_rel | Aquifer table elevation relative to conduit mid-invert in matching length units; negative means below bed. |
| [in] | d_c | Positive characteristic bed path length in matching units; nonpositive or NaN selects legacy factor1. |
|
inlinenoexcept |
Limit the gaining direction of a signed conduit seepage rate.
No finite/nonnegative validation or inventory booking; caller supplies a physically valid cap.
| [in] | seep_rate | Signed cfs for one barrel: positive conduit loss, negative aquifer gain. |
| [in] | gain_max | Nonnegative available aquifer gain cap in the same cfs/barrel convention. |