![]() |
OpenSWMM Engine
6.0.0-alpha.3
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.3)
|
#include <Inflow.hpp>
Public Member Functions | |
| void | init (SimulationContext &ctx) |
| void | refreshPatterns (const SimulationContext &ctx) |
| Re-copy time-pattern factors from the context into the solver's per-step lookup cache. | |
| void | computeAll (SimulationContext &ctx, double current_date, double dt) |
| Compute all external + DWF inflows and add to node lateral flow. | |
| void openswmm::inflow::InflowSolver::computeAll | ( | SimulationContext & | ctx, |
| double | current_date, | ||
| double | dt ) |
Compute all external + DWF inflows and add to node lateral flow.
Batch operations:
| ctx | Simulation context. |
| current_date | Current absolute date (decimal days). |
| dt | Timestep (seconds). |
| void openswmm::inflow::InflowSolver::init | ( | SimulationContext & | ctx | ) |
| void openswmm::inflow::InflowSolver::refreshPatterns | ( | const SimulationContext & | ctx | ) |
Re-copy time-pattern factors from the context into the solver's per-step lookup cache.
init copies ctx.patterns into a private cache for fast per-step DWF/external-inflow scaling. A runtime pattern edit (swmm_pattern_set_factors) mutates ctx.patterns only, so the C API calls this to refresh the cache and let mid-run pattern changes take effect on the next step. Pattern count is assumed unchanged.
| ctx | Simulation context holding the authoritative pattern data. |