Global flow/quality routing methods.
More...
|
| 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.
|
| |
Global flow/quality routing methods.
◆ 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] | linkIndex | Link index |
| [in] | steps | Number of iteration steps taken |
| [in] | omega | Under-relaxation parameter |
| [in] | dt | Time step (sec) |
◆ dynwave_close()
| void dynwave_close |
( |
void |
| ) |
|
Frees memory allocated for dynamic wave routing method.
◆ dynwave_execute()
| int dynwave_execute |
( |
double |
tStep | ) |
|
Routes flows through drainage network over current time step.
- Parameters
-
◆ dynwave_getRoutingStep()
| double dynwave_getRoutingStep |
( |
double |
fixedStep | ) |
|
Computes variable routing time step if applicable.
- Parameters
-
| [in] | fixedStep | User-supplied fixed time step (sec) |
- Returns
- Returns routing time step (sec)
◆ dynwave_init()
| void dynwave_init |
( |
void |
| ) |
|
Initializes dynamic wave routing method.
◆ dynwave_validate()
| void dynwave_validate |
( |
void |
| ) |
|
Adjusts dynamic wave routing options.
◆ flowrout_close()
| void flowrout_close |
( |
int |
routingModel | ) |
|
Closes down flow routing system.
- Parameters
-
| [in] | routingModel | Routing model code |
◆ flowrout_execute()
| int flowrout_execute |
( |
int |
links[], |
|
|
int |
routingModel, |
|
|
double |
tStep |
|
) |
| |
Routes flow through conveyance network over current time step.
- Parameters
-
| [in] | links | Array of link indices |
| [in] | routingModel | Routing model code |
| [in] | tStep | Time step (sec) |
- Returns
- Returns number of computational steps taken
◆ flowrout_getRoutingStep()
| double flowrout_getRoutingStep |
( |
int |
routingModel, |
|
|
double |
fixedStep |
|
) |
| |
Finds variable time step for dynamic wave routing.
- Parameters
-
| [in] | routingModel | Type of routing model |
| [in] | fixedStep | User-supplied time step (sec) |
- Returns
- Returns adjusted value of routing time step (sec)
◆ flowrout_init()
| void flowrout_init |
( |
int |
routingModel | ) |
|
Initializes flow routing system.
- Parameters
-
| [in] | routingModel | Routing model code |
◆ 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] | linkIndex | Link index |
| [in] | qinflow | Inflow at current time (cfs) |
| [out] | qoutflow | Outflow at current time (cfs) |
| [in] | tStep | Time 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
◆ qualrout_execute()
| void qualrout_execute |
( |
double |
tStep | ) |
|
Routes water quality constituents through the drainage network over the current time step.
- Parameters
-
| [in] | tStep | Routing time step (sec) |
◆ qualrout_init()
| void qualrout_init |
( |
void |
| ) |
|
Initializes water quality concentrations in all nodes and links.
◆ toposort_sortLinks()
| void toposort_sortLinks |
( |
int |
sortedLinks[] | ) |
|
Sorts links from upstream to downstream.
- Parameters
-
| [in,out] | sortedLinks | Array of link indexes in sorted order |
Sorts links from upstream to downstream.
- Parameters
-
| [in,out] | sortedLinks | Array of link indices |