OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
treatmnt.c File Reference

Node pollutant treatment expression evaluation. More...

#include <stdlib.h>
#include <string.h>
#include "headers.h"
Include dependency graph for treatmnt.c:

Macros

#define _CRT_SECURE_NO_DEPRECATE
 

Enumerations

enum  ProcessVarType {
  pvHRT ,
  pvDT ,
  pvFLOW ,
  pvDEPTH ,
  pvAREA
}
 

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)
 Release every pollutant treatment expression and the node treatment array.
 
void treatmnt_setInflow (double qIn, double wIn[])
 Computes and saves array of inflow concentrations to a node.
 
void treatmnt_treat (int j, double q, double v, double tStep)
 Updates pollutant concentrations at a node after treatment.
 

Detailed Description

Node pollutant treatment expression evaluation.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com (OpenSWMM maintenance and extensions)
License
Apache-2.0 for OpenSWMM contributions; original EPA SWMM provenance is retained.

Macro Definition Documentation

◆ _CRT_SECURE_NO_DEPRECATE

#define _CRT_SECURE_NO_DEPRECATE

Enumeration Type Documentation

◆ ProcessVarType

Enumerator
pvHRT 
pvDT 
pvFLOW 
pvDEPTH 
pvAREA