OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
Global Flow/Quality Routing Methods

Global flow/quality routing methods. More...

Collaboration diagram for Global Flow/Quality Routing Methods:

Functions

void flowrout_init (int routingModel)
 Initializes flow routing system.
 
void flowrout_close (int routingModel)
 Closes down flow routing system.
 
double flowrout_getRoutingStep (int routingModel, double fixedStep)
 Finds variable time step for dynamic wave routing.
 
int flowrout_execute (int links[], int routingModel, double tStep)
 Routes flow through conveyance network over current time step.
 
void toposort_sortLinks (int sortedLinks[])
 Sorts links from upstream to downstream.
 
int kinwave_execute (int linkIndex, double *qin, double *qout, double tStep)
 Finds outflow over time step tStep given flow entering a conduit using Kinematic Wave flow routing.
 
void dynwave_validate (void)
 Adjusts dynamic wave routing options.
 
void dynwave_init (void)
 Initializes dynamic wave routing method.
 
void dynwave_close (void)
 Frees memory allocated for dynamic wave routing method.
 
double dynwave_getRoutingStep (double fixedStep)
 Computes variable routing time step if applicable.
 
int dynwave_execute (double tStep)
 Routes flows through drainage network over current time step.
 
void dwflow_findConduitFlow (int linkIndex, int steps, double omega, double dt)
 Updates flow in conduit link by solving finite difference form of continuity and momentum equations.
 
void qualrout_init (void)
 Initializes water quality concentrations in all nodes and links.
 
void qualrout_execute (double tStep)
 Routes water quality constituents through the drainage network over the current time step.
 

Detailed Description

Global flow/quality routing methods.

Function Documentation

◆ dwflow_findConduitFlow()

void dwflow_findConduitFlow ( int  linkIndex,
int  steps,
double  omega,
double  dt 
)

Updates flow in conduit link by solving finite difference form of continuity and momentum equations.

Parameters
[in]linkIndexLink index
[in]stepsNumber of iteration steps taken
[in]omegaUnder-relaxation parameter
[in]dtTime step (sec)
Here is the call graph for this function:

◆ dynwave_close()

void dynwave_close ( void  )

Frees memory allocated for dynamic wave routing method.

Here is the caller graph for this function:

◆ dynwave_execute()

int dynwave_execute ( double  tStep)

Routes flows through drainage network over current time step.

Parameters
[in]tStepTime step (sec)
Here is the caller graph for this function:

◆ dynwave_getRoutingStep()

double dynwave_getRoutingStep ( double  fixedStep)

Computes variable routing time step if applicable.

Parameters
[in]fixedStepUser-supplied fixed time step (sec)
Returns
Returns routing time step (sec)
Here is the caller graph for this function:

◆ dynwave_init()

void dynwave_init ( void  )

Initializes dynamic wave routing method.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dynwave_validate()

void dynwave_validate ( void  )

Adjusts dynamic wave routing options.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ flowrout_close()

void flowrout_close ( int  routingModel)

Closes down flow routing system.

Parameters
[in]routingModelRouting model code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ flowrout_execute()

int flowrout_execute ( int  links[],
int  routingModel,
double  tStep 
)

Routes flow through conveyance network over current time step.

Parameters
[in]linksArray of link indices
[in]routingModelRouting model code
[in]tStepTime step (sec)
Returns
Returns number of computational steps taken
Here is the call graph for this function:

◆ flowrout_getRoutingStep()

double flowrout_getRoutingStep ( int  routingModel,
double  fixedStep 
)

Finds variable time step for dynamic wave routing.

Parameters
[in]routingModelType of routing model
[in]fixedStepUser-supplied time step (sec)
Returns
Returns adjusted value of routing time step (sec)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ flowrout_init()

void flowrout_init ( int  routingModel)

Initializes flow routing system.

Parameters
[in]routingModelRouting model code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ kinwave_execute()

int kinwave_execute ( int  linkIndex,
double *  qinflow,
double *  qoutflow,
double  tStep 
)

Finds outflow over time step tStep given flow entering a conduit using Kinematic Wave flow routing.

Parameters
[in]linkIndexLink index
[in]qinflowInflow at current time (cfs)
[out]qoutflowOutflow at current time (cfs)
[in]tStepTime step (sec)
Returns
Returns number of iterations used

Orientation of link and variables: q1, a1, q2, a2, q3, a3, x, t ^ q3 t |
| qin, ain |----------------—| qout, aout | | Flow —> | |-—> x q1, a1 |----------------—| q2, a2

Here is the call graph for this function:
Here is the caller graph for this function:

◆ qualrout_execute()

void qualrout_execute ( double  tStep)

Routes water quality constituents through the drainage network over the current time step.

Parameters
[in]tStepRouting time step (sec)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ qualrout_init()

void qualrout_init ( void  )

Initializes water quality concentrations in all nodes and links.

Here is the caller graph for this function:

◆ toposort_sortLinks()

void toposort_sortLinks ( int  sortedLinks[])

Sorts links from upstream to downstream.

Parameters
[in,out]sortedLinksArray of link indexes in sorted order

Sorts links from upstream to downstream.

Parameters
[in,out]sortedLinksArray of link indices
Here is the call graph for this function:
Here is the caller graph for this function: