![]() |
OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
|
Enumerations | |
| enum class | DividerMethod : int { CUTOFF = 0 , OVERFLOW_DIV = 1 , TABULAR = 2 , WEIR = 3 } |
Functions | |
| double | getOutflow (SimulationContext &ctx, int node_idx, int link_idx) |
| Flow sent from a divider node into one of its outflow links. | |
|
strong |
| double openswmm::divider::getOutflow | ( | SimulationContext & | ctx, |
| int | node_idx, | ||
| int | link_idx ) |
Flow sent from a divider node into one of its outflow links.
Legacy-faithful divider_getOutflow (node.c:1237-1312): the diversion link receives the diverted portion of the node's inflow + overflow per the divider method; any other outflow link receives the undiverted remainder. Requires links be routed in topological order so the non-diversion link is evaluated before the diversion link (OVERFLOW dividers read the node's accumulated outflow).
| ctx | Simulation context. |
| node_idx | Divider node index. |
| link_idx | Outflow link being evaluated. |