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

Classes

struct  CulvertCoeffs
 Culvert curve coefficients (K, M, C, Y) per type code. More...
 

Functions

CulvertCoeffs getCoeffs (int culvert_code)
 Get coefficients for a culvert type code (1-57).
 
double getInflow (double q_proposed, double head, double y_full, double a_full, double slope, int code, double &dqdh)
 Compute culvert inlet-controlled inflow.
 
void batchComputeInletControl (const int *link_indices, int n, SimulationContext &ctx)
 Batch compute culvert inlet control for all culvert links.
 

Function Documentation

◆ batchComputeInletControl()

void openswmm::culvert::batchComputeInletControl ( const int *  link_indices,
int  n,
SimulationContext ctx 
)

Batch compute culvert inlet control for all culvert links.

Parameters
link_indicesIndices of culvert links.
nNumber of culvert links.
ctxSimulation context.
Here is the call graph for this function:

◆ getCoeffs()

CulvertCoeffs openswmm::culvert::getCoeffs ( int  code)

Get coefficients for a culvert type code (1-57).

Here is the caller graph for this function:

◆ getInflow()

double openswmm::culvert::getInflow ( double  q_proposed,
double  head,
double  y_full,
double  a_full,
double  slope,
int  code,
double &  dqdh 
)

Compute culvert inlet-controlled inflow.

Parameters
q_proposedProposed flow from routing (cfs).
headUpstream head above invert (ft).
y_fullFull depth of culvert (ft).
a_fullFull area (ft2).
slopeConduit slope.
codeCulvert type code.
[out]dqdhDerivative dQ/dH.
Returns
Inlet-controlled flow (cfs). If < q_proposed, inlet controls.
Here is the call graph for this function:
Here is the caller graph for this function: