![]() |
OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
|
Phase R4 — reaction binding for the LEGACY (CSTR) quality engine. More...
#include <limits>Go to the source code of this file.
Namespaces | |
| namespace | openswmm |
| namespace | openswmm::transport |
Functions | |
| bool | openswmm::transport::legacyReactionsActive (const SimulationContext &ctx) |
| void | openswmm::transport::ensureMsxState (SimulationContext &ctx) |
| void | openswmm::transport::reactSpeciesBlock (SimulationContext &ctx, bool tank, double dt, double *species_block, const double *pollut, double hrt_seconds, double temp_c) |
| void | openswmm::transport::reactLegacyNodes (SimulationContext &ctx, double dt) |
| void | openswmm::transport::reactLegacyLinks (SimulationContext &ctx, double dt) |
| void | openswmm::transport::warnIfLegacyBindingBypassed (SimulationContext &ctx) |
Phase R4 — reaction binding for the LEGACY (CSTR) quality engine.
When a reactions component is configured:
(1 − k·dt) to the EXACT exponential exp(−k·dt) at nodes and links (the "kdecay-as-RATE" semantics realized in closed form — pollutant decay is exactly first-order, so the integrator would only approximate what the exponential IS). Bit-parity holds when NO reactions component is present: the legacy applyDecay / in-mix decay paths are untouched then.