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

Global treatment methods. More...

Collaboration diagram for Global Treatment Methods:

Functions

int treatmnt_open (void)
 Allocates memory for computing pollutant removals by treatment.
 
void treatmnt_close (void)
 Frees memory used for computing pollutant removals by treatment.
 
int treatmnt_readExpression (char *tok[], int ntoks)
 Reads a treatment expression from a tokenized line of input.
 
void treatmnt_delete (int nodeIndex)
 Deletes the treatment objects for each pollutant at a node.
 
void treatmnt_treat (int nodeIndex, double q, double v, double tStep)
 Updates pollutant concentrations at a node after treatment.
 
void treatmnt_setInflow (double qIn, double wIn[])
 Computes and saves array of inflow concentrations to a node.
 

Detailed Description

Global treatment methods.

Function Documentation

◆ treatmnt_close()

void treatmnt_close ( void  )

Frees memory used for computing pollutant removals by treatment.

Here is the caller graph for this function:

◆ treatmnt_delete()

void treatmnt_delete ( int  nodeIndex)

Deletes the treatment objects for each pollutant at a node.

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

◆ treatmnt_open()

int treatmnt_open ( void  )

Allocates memory for computing pollutant removals by treatment.

Returns
Returns True if successful, False if not
Here is the call graph for this function:
Here is the caller graph for this function:

◆ treatmnt_readExpression()

int treatmnt_readExpression ( char *  tok[],
int  ntoks 
)

Reads a treatment expression from a tokenized line of input.

Parameters
[in]tokArray of string tokens
[in]ntoksNumber of tokens
Returns
Error code
Here is the call graph for this function:

◆ treatmnt_setInflow()

void treatmnt_setInflow ( double  qIn,
double  wIn[] 
)

Computes and saves array of inflow concentrations to a node.

Parameters
[in]qInFlow inflow rate (cfs)
[in]wInPollutant mass inflow rates (mass/sec)
Here is the caller graph for this function:

◆ treatmnt_treat()

void treatmnt_treat ( int  j,
double  q,
double  v,
double  tStep 
)

Updates pollutant concentrations at a node after treatment.

Parameters
[in]nodeIndexNode index
[in]qInflow to node (cfs)
[in]vVolume of node (ft3)
[in]tStepRouting time step (sec)
Here is the call graph for this function:
Here is the caller graph for this function: