OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
Divider.hpp File Reference

Flow divider node logic — cutoff, overflow, tabular, weir. More...

#include "../data/NodeData.hpp"
#include <vector>
Include dependency graph for Divider.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  openswmm::divider::DividerSoA
 

Namespaces

namespace  openswmm
 
namespace  openswmm::divider
 

Enumerations

enum class  openswmm::divider::DividerMethod : int {
  openswmm::divider::CUTOFF = 0 ,
  openswmm::divider::OVERFLOW_DIV = 1 ,
  openswmm::divider::TABULAR = 2 ,
  openswmm::divider::WEIR = 3
}
 

Functions

void openswmm::divider::computeDividerFlows (SimulationContext &ctx, const DividerSoA &soa)
 Compute diversion flows for all divider nodes.
 

Detailed Description

Flow divider node logic — cutoff, overflow, tabular, weir.

Divider nodes split incoming flow between a primary and diversion link. The split depends on divider type:

  • CUTOFF: diversion gets flow above cutoff value
  • OVERFLOW: diversion gets flow exceeding primary link capacity
  • TABULAR: fraction from lookup table
  • WEIR: weir equation determines diversion flow

Batch: group dividers by type, compute split per type group.

Note
Legacy reference: src/legacy/engine/node.c (divider_getOutflow)
Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n MIT License