OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
Global Conveyance System Node Methods

Global conveyance system node methods. More...

Collaboration diagram for Global Conveyance System Node Methods:

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.
 

Detailed Description

Global conveyance system node methods.

Function Documentation

◆ node_getDepth()

double node_getDepth ( int  nodeIndex,
double  v 
)

Computes a node's water depth from its volume.

Parameters
[in]nodeIndexNode index
[in]volumeVolume of water stored at node (ft3)
Returns
Returns water depth at node (ft)

◆ node_getLosses()

double node_getLosses ( int  nodeIndex,
double  tStep 
)

Computes the rates of evaporation and infiltration over a given time step for a node.

Parameters
[in]nodeIndexNode index
[in]tStepTime step (sec)
Returns
Returns water loss rate at node (ft3)

◆ node_getMaxOutflow()

double node_getMaxOutflow ( int  nodeIndex,
double  q,
double  tStep 
)

Limits outflow rate from a node with storage volume.

Parameters
[in]nodeIndexNode index
[in]qFlow rate leaving node (cfs)
[in]tStepTime step (sec)
Returns
Returns modified flow rate (cfs)

◆ node_getOutflow()

double node_getOutflow ( int  nodeIndex,
int  linkIndex 
)

Computes outflow from node available for inflow into a link.

Parameters
[in]nodeIndexNode index
[in]linkIndexLink index
Returns
Returns flow rate leaving node (cfs)
Here is the caller graph for this function:

◆ node_getPondedArea()

double node_getPondedArea ( int  nodeIndex,
double  depth 
)

Computes surface area of water at a node based on depth.

Parameters
[in]nodeIndexNode index
[in]depthWater depth at node (ft)
Returns
Returns surface area of water at node (ft2)
Here is the call graph for this function:

◆ node_getResults()

void node_getResults ( int  nodeIndex,
double  wt,
float  x[] 
)

Computes weighted average of old and new results at a node.

Parameters
[in]nodeIndexNode index
[in]wtWeighting factor
[out]xArray of node results
Here is the call graph for this function:
Here is the caller graph for this function:

◆ node_getSurfArea()

double node_getSurfArea ( int  j,
double  d 
)

Computes surface area of water stored at a node from water depth.

Parameters
[in]nodeIndexNode index
[in]depthWater depth (ft)
Returns
Returns surface area of water stored at node (ft2)
Here is the caller graph for this function:

◆ node_getSystemOutflow()

double node_getSystemOutflow ( int  nodeIndex,
int *  isFlooded 
)

Computes flow rate at outfalls and flooded nodes.

Parameters
[in]nodeIndexNode index
[out]isFloodedTRUE if node is flooded
Returns
Returns flow rate lost from system (cfs)

◆ node_getVolume()

double node_getVolume ( int  nodeIndex,
double  depth 
)

Computes volume stored at a node from its water depth.

Parameters
[in]nodeIndexNode index
[in]depthWater depth at node (ft)
Returns
Returns volume of water stored at node (ft3)
Here is the caller graph for this function:

◆ node_initFlows()

void node_initFlows ( int  nodeIndex,
double  tStep 
)

Initializes a node's inflow/outflow/overflow at start of time step.

Parameters
[in]nodeIndexNode index
[in]tStepTime step (sec)

◆ node_initState()

void node_initState ( int  nodeIndex)

Initializes a node's state variables at start of simulation.

Parameters
[in]nodeIndexNode index
Here is the call graph for this function:
Here is the caller graph for this function:

◆ node_readParams()

int node_readParams ( int  nodeIndex,
int  type,
int  k,
char *  tok[],
int  ntoks 
)

Reads node properties from a tokenized line of input.

Parameters
[in]nodeIndexNode index
[in]typeNode type code
[in]subIndexNode sub-type code
[in]tokArray of string tokens
[in]ntoksNumber of tokens
Returns
Error code

◆ node_setOldHydState()

void node_setOldHydState ( int  nodeIndex)

Replaces a node's old hydraulic state values with new ones.

Parameters
[in]nodeIndexNode index

◆ node_setOldQualState()

void node_setOldQualState ( int  nodeIndex)

Replaces a node's old water quality state values with new ones.

Parameters
[in]nodeIndexNode index

◆ node_setOutletDepth()

void node_setOutletDepth ( int  j,
double  yNorm,
double  yCrit,
double  z 
)

Sets water depth at a node that serves as an outlet point.

Parameters
[in]nodeIndexNode index
[in]yNormNormal flow depth (ft)
[in]yCritCritical flow depth (ft)
[in]zOffset of connecting outfall link from node invert (ft)
Here is the caller graph for this function:

◆ node_validate()

void node_validate ( int  nodeIndex)

Validates a node's properties.

Parameters
[in]nodeIndexNode index
Here is the call graph for this function:
Here is the caller graph for this function: