![]() |
OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
|
#include <SimulationContext.hpp>
Public Member Functions | |
| void | ensure (int nn, int np, int ns) |
| Ensure node and flattened species accumulator dimensions. | |
| void | clear () |
| Zero accumulated inflow and clear the pending-data flag. | |
Public Attributes | |
| std::vector< double > | vol |
| std::vector< double > | mass |
| std::vector< double > | msx |
| std::vector< double > | age_vol |
| std::vector< double > | temp_vol |
| bool | any = false |
Review D2 / gaining conduits (2026-10-15): quality for water that has ALREADY reached a node hydraulically outside the lateral-inflow assembly — mesh water entering through a surface outfall, aquifer water a conduit gained (delivered to its end nodes as inflow). The next quality step adds the volume to the node's mixing volume and the mass to its loads (QualitySolver::addQualityOnlyInflows), then clears it. 1D units: ft³, concentration × ft³, age·ft³ (hours), °C·ft³.
|
inline |
Zero accumulated inflow and clear the pending-data flag.
Preserves all vector sizes/capacities; no hydraulic or mass-balance ledger is modified.
|
inline |
Ensure node and flattened species accumulator dimensions.
Only arrays with a changed shape are zero-initialized; matching shapes retain accumulated values and any is unchanged. Node volume is ft3, mass concentration*ft3, age hours*ft3 and heat degC*ft3. Caller ensures products fit size_t and age_vol/temp_vol remain aligned whenever vol already has the requested length. Allocation failures can leave a partially resized object.
| [in] | nn | Node count; negative counts are treated as zero. |
| [in] | np | Pollutants per node; negative counts are treated as zero. |
| [in] | ns | MSX species per node; negative counts are treated as zero. |
| std::vector<double> openswmm::SimulationContext::QualityOnlyInflow::age_vol |
| bool openswmm::SimulationContext::QualityOnlyInflow::any = false |
| std::vector<double> openswmm::SimulationContext::QualityOnlyInflow::mass |
| std::vector<double> openswmm::SimulationContext::QualityOnlyInflow::msx |
| std::vector<double> openswmm::SimulationContext::QualityOnlyInflow::temp_vol |
| std::vector<double> openswmm::SimulationContext::QualityOnlyInflow::vol |