OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
openswmm::outfall Namespace Reference

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.
 

Function Documentation

◆ buildOutfallLinkMap()

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.

Parameters
ctxSimulation context (populates outfall_link_idx / offset).
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setAllOutfallDepths()

void openswmm::outfall::setAllOutfallDepths ( SimulationContext ctx,
double  current_time 
)

Compute boundary depth at all outfall nodes.

For each outfall:

  • FREE: critical depth from downstream conduit
  • NORMAL: normal depth from downstream conduit
  • FIXED: specified water surface elevation
  • TIDAL: elevation from tidal curve at current time
  • TIMESERIES: elevation from timeseries at current time
Parameters
ctxSimulation context.
current_timeCurrent simulation time (decimal days).
Here is the call graph for this function:
Here is the caller graph for this function: