Global treatment methods.
More...
|
| 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.
|
| |
Global treatment methods.
◆ treatmnt_close()
| void treatmnt_close |
( |
void |
| ) |
|
Frees memory used for computing pollutant removals by treatment.
◆ treatmnt_delete()
| void treatmnt_delete |
( |
int |
nodeIndex | ) |
|
Deletes the treatment objects for each pollutant at a node.
- Parameters
-
◆ treatmnt_open()
| int treatmnt_open |
( |
void |
| ) |
|
Allocates memory for computing pollutant removals by treatment.
- Returns
- Returns True if successful, False if not
◆ treatmnt_readExpression()
| int treatmnt_readExpression |
( |
char * |
tok[], |
|
|
int |
ntoks |
|
) |
| |
Reads a treatment expression from a tokenized line of input.
- Parameters
-
| [in] | tok | Array of string tokens |
| [in] | ntoks | Number of tokens |
- Returns
- Error code
◆ treatmnt_setInflow()
| void treatmnt_setInflow |
( |
double |
qIn, |
|
|
double |
wIn[] |
|
) |
| |
Computes and saves array of inflow concentrations to a node.
- Parameters
-
| [in] | qIn | Flow inflow rate (cfs) |
| [in] | wIn | Pollutant mass inflow rates (mass/sec) |
◆ treatmnt_treat()
| void treatmnt_treat |
( |
int |
j, |
|
|
double |
q, |
|
|
double |
v, |
|
|
double |
tStep |
|
) |
| |
Updates pollutant concentrations at a node after treatment.
- Parameters
-
| [in] | nodeIndex | Node index |
| [in] | q | Inflow to node (cfs) |
| [in] | v | Volume of node (ft3) |
| [in] | tStep | Routing time step (sec) |