![]() |
OpenSWMM Engine
6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
|
Functions | |
| void | buildOutfallLinkMap (SimulationContext &ctx) |
| Precompute outfall → connecting-conduit index map. | |
| void | setAllOutfallDepths (SimulationContext &ctx, double current_time) |
| Compute boundary depth at all outfall nodes. | |
| void openswmm::outfall::buildOutfallLinkMap | ( | SimulationContext & | ctx | ) |
Precompute outfall → connecting-conduit index map.
Walks the link table once at init and, for every outfall node, records the first conduit whose node2 (or node1) is that outfall, together with its offset at the outfall end. Results are stored in ctx.outfall_link_idx / outfall_link_offset so that setAllOutfallDepths can skip the O(N_links) inner scan per Picard iteration.
| ctx | Simulation context (populates outfall_link_idx / offset). |
| void openswmm::outfall::setAllOutfallDepths | ( | SimulationContext & | ctx, |
| double | current_time | ||
| ) |
Compute boundary depth at all outfall nodes.
For each outfall:
| ctx | Simulation context. |
| current_time | Current simulation time (decimal days). |