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

Classes

struct  OrificeGroup
 
struct  OutletGroup
 
struct  PumpGroup
 
class  StructureSolver
 
struct  WeirGroup
 

Functions

bool flapGateBlocks (const SimulationContext &ctx, int j, int n1, int n2, double q)
 Test reverse flow against the link gate and its donor outfall gate.
 

Variables

constexpr double GRAVITY = 32.2
 
constexpr double FUDGE = 0.0001
 

Function Documentation

◆ flapGateBlocks()

bool openswmm::hydstruct::flapGateBlocks ( const SimulationContext & ctx,
int j,
int n1,
int n2,
double q )

Test reverse flow against the link gate and its donor outfall gate.

Link gate tests q*stored direction<0, preserving authored orientation. Outfall test uses the inflow/donor end. Does not mutate flow, apply hydraulic caps or validate arbitrary indices.

Parameters
[in]ctxBorrowed coherent link direction/gate flags and node/outfall subtype data.
[in]jValid global link index.
[in]n1Valid current node1 endpoint index when q>0.
[in]n2Valid current node2 endpoint index when q<0.
[in]qSigned flow/direction indicator; only sign is used, positive node1 to node2.
Returns
True for reverse link-gate flow or flow donated by a gated outfall; false for zero/no applicable gate.
Here is the call graph for this function:

Variable Documentation

◆ FUDGE

double openswmm::hydstruct::FUDGE = 0.0001
constexpr

◆ GRAVITY

double openswmm::hydstruct::GRAVITY = 32.2
constexpr