![]() |
OpenSWMM Engine
6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
|
Global conveyance system node methods. More...
Functions | |
| int | node_readParams (int nodeIndex, int type, int subIndex, char *tok[], int ntoks) |
| Reads node properties from a tokenized line of input. | |
| void | node_validate (int nodeIndex) |
| Validates a node's properties. | |
| void | node_initState (int nodeIndex) |
| Initializes a node's state variables at start of simulation. | |
| void | node_initFlows (int nodeIndex, double tStep) |
| Initializes a node's inflow/outflow/overflow at start of time step. | |
| void | node_setOldHydState (int nodeIndex) |
| Replaces a node's old hydraulic state values with new ones. | |
| void | node_setOldQualState (int nodeIndex) |
| Replaces a node's old water quality state values with new ones. | |
| void | node_setOutletDepth (int nodeIndex, double yNorm, double yCrit, double z) |
| Sets water depth at a node that serves as an outlet point. | |
| double | node_getSurfArea (int nodeIndex, double depth) |
| Computes surface area of water stored at a node from water depth. | |
| double | node_getDepth (int nodeIndex, double volume) |
| Computes a node's water depth from its volume. | |
| double | node_getVolume (int nodeIndex, double depth) |
| Computes volume stored at a node from its water depth. | |
| double | node_getPondedArea (int nodeIndex, double depth) |
| Computes surface area of water at a node based on depth. | |
| double | node_getOutflow (int nodeIndex, int linkIndex) |
| Computes outflow from node available for inflow into a link. | |
| double | node_getLosses (int nodeIndex, double tStep) |
| Computes the rates of evaporation and infiltration over a given time step for a node. | |
| double | node_getMaxOutflow (int nodeIndex, double q, double tStep) |
| Limits outflow rate from a node with storage volume. | |
| double | node_getSystemOutflow (int nodeIndex, int *isFlooded) |
| Computes flow rate at outfalls and flooded nodes. | |
| void | node_getResults (int nodeIndex, double wt, float x[]) |
| Computes weighted average of old and new results at a node. | |
Global conveyance system node methods.
| double node_getDepth | ( | int | nodeIndex, |
| double | v | ||
| ) |
Computes a node's water depth from its volume.
| [in] | nodeIndex | Node index |
| [in] | volume | Volume of water stored at node (ft3) |
| double node_getLosses | ( | int | nodeIndex, |
| double | tStep | ||
| ) |
Computes the rates of evaporation and infiltration over a given time step for a node.
| [in] | nodeIndex | Node index |
| [in] | tStep | Time step (sec) |
| double node_getMaxOutflow | ( | int | nodeIndex, |
| double | q, | ||
| double | tStep | ||
| ) |
Limits outflow rate from a node with storage volume.
| [in] | nodeIndex | Node index |
| [in] | q | Flow rate leaving node (cfs) |
| [in] | tStep | Time step (sec) |
| double node_getOutflow | ( | int | nodeIndex, |
| int | linkIndex | ||
| ) |
Computes outflow from node available for inflow into a link.
| [in] | nodeIndex | Node index |
| [in] | linkIndex | Link index |
| double node_getPondedArea | ( | int | nodeIndex, |
| double | depth | ||
| ) |
Computes surface area of water at a node based on depth.
| [in] | nodeIndex | Node index |
| [in] | depth | Water depth at node (ft) |
| void node_getResults | ( | int | nodeIndex, |
| double | wt, | ||
| float | x[] | ||
| ) |
Computes weighted average of old and new results at a node.
| [in] | nodeIndex | Node index |
| [in] | wt | Weighting factor |
| [out] | x | Array of node results |
| double node_getSurfArea | ( | int | j, |
| double | d | ||
| ) |
Computes surface area of water stored at a node from water depth.
| [in] | nodeIndex | Node index |
| [in] | depth | Water depth (ft) |
| double node_getSystemOutflow | ( | int | nodeIndex, |
| int * | isFlooded | ||
| ) |
Computes flow rate at outfalls and flooded nodes.
| [in] | nodeIndex | Node index |
| [out] | isFlooded | TRUE if node is flooded |
| double node_getVolume | ( | int | nodeIndex, |
| double | depth | ||
| ) |
Computes volume stored at a node from its water depth.
| [in] | nodeIndex | Node index |
| [in] | depth | Water depth at node (ft) |
| void node_initFlows | ( | int | nodeIndex, |
| double | tStep | ||
| ) |
Initializes a node's inflow/outflow/overflow at start of time step.
| [in] | nodeIndex | Node index |
| [in] | tStep | Time step (sec) |
| void node_initState | ( | int | nodeIndex | ) |
Initializes a node's state variables at start of simulation.
| [in] | nodeIndex | Node index |
| int node_readParams | ( | int | nodeIndex, |
| int | type, | ||
| int | k, | ||
| char * | tok[], | ||
| int | ntoks | ||
| ) |
Reads node properties from a tokenized line of input.
| [in] | nodeIndex | Node index |
| [in] | type | Node type code |
| [in] | subIndex | Node sub-type code |
| [in] | tok | Array of string tokens |
| [in] | ntoks | Number of tokens |
| void node_setOldHydState | ( | int | nodeIndex | ) |
Replaces a node's old hydraulic state values with new ones.
| [in] | nodeIndex | Node index |
| void node_setOldQualState | ( | int | nodeIndex | ) |
Replaces a node's old water quality state values with new ones.
| [in] | nodeIndex | Node index |
| void node_setOutletDepth | ( | int | j, |
| double | yNorm, | ||
| double | yCrit, | ||
| double | z | ||
| ) |
Sets water depth at a node that serves as an outlet point.
| [in] | nodeIndex | Node index |
| [in] | yNorm | Normal flow depth (ft) |
| [in] | yCrit | Critical flow depth (ft) |
| [in] | z | Offset of connecting outfall link from node invert (ft) |
| void node_validate | ( | int | nodeIndex | ) |
Validates a node's properties.
| [in] | nodeIndex | Node index |