OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
openswmm::TreatmentData Struct Reference

#include <QualityData.hpp>

Collaboration diagram for openswmm::TreatmentData:

Public Member Functions

void resize (int nn, int npoll)
 
void shrink_to_fit ()
 
bool hasAny () const
 

Public Attributes

std::vector< std::string > expressions
 Index: [node * n_pollutants + pollutant].
 
int n_nodes = 0
 
int n_pollutants = 0
 
std::vector< openswmm::treatment::TreatExprcompiled
 Compiled treatment expressions (same indexing as expressions[])
 
std::vector< bool > has_treatment
 Per-node flag: true if any pollutant has a treatment expression.
 
std::vector< double > cin
 Per-node inflow concentrations (size = n_pollutants, reused each timestep)
 
std::vector< double > removal
 

Member Function Documentation

◆ hasAny()

bool openswmm::TreatmentData::hasAny ( ) const
inline
Here is the caller graph for this function:

◆ resize()

void openswmm::TreatmentData::resize ( int  nn,
int  npoll 
)
inline
Here is the caller graph for this function:

◆ shrink_to_fit()

void openswmm::TreatmentData::shrink_to_fit ( )
inline
Here is the caller graph for this function:

Member Data Documentation

◆ cin

std::vector<double> openswmm::TreatmentData::cin

Per-node inflow concentrations (size = n_pollutants, reused each timestep)

◆ compiled

std::vector<openswmm::treatment::TreatExpr> openswmm::TreatmentData::compiled

Compiled treatment expressions (same indexing as expressions[])

◆ expressions

std::vector<std::string> openswmm::TreatmentData::expressions

Index: [node * n_pollutants + pollutant].

e.g. "R = 0.5 * exp(-0.1 * DT)"

◆ has_treatment

std::vector<bool> openswmm::TreatmentData::has_treatment

Per-node flag: true if any pollutant has a treatment expression.

◆ n_nodes

int openswmm::TreatmentData::n_nodes = 0

◆ n_pollutants

int openswmm::TreatmentData::n_pollutants = 0

◆ removal

std::vector<double> openswmm::TreatmentData::removal

Per-node removal fractions (size = n_pollutants, reused each timestep) -1.0 = not computed, 0-1 = computed, > 1.0 = currently being evaluated (cycle detect)


The documentation for this struct was generated from the following file: