OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
PollutantData.hpp File Reference

Structure-of-Arrays (SoA) storage for pollutants and water quality. More...

#include <vector>
#include <string>
#include <cstdint>
Include dependency graph for PollutantData.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  openswmm::PollutantData
 Static properties for each pollutant species. More...
 

Namespaces

namespace  openswmm
 

Enumerations

enum class  openswmm::MassUnits : int8_t {
  openswmm::MG_PER_L = 0 ,
  openswmm::UG_PER_L = 1 ,
  openswmm::COUNTS_PER_L = 2
}
 Pollutant concentration units. More...
 

Detailed Description

Structure-of-Arrays (SoA) storage for pollutants and water quality.

Replaces the global Pollut[] array and TPollut struct from src/solver/objects.h. Per-object quality arrays (concentrations at nodes/links/subcatchments) are stored as flat 2D arrays indexed as: [object_index * n_pollutants + pollutant_index]

See also
Legacy reference: src/solver/objects.h — TPollut
Legacy reference: src/solver/globals.h — Pollut[], Npolluts
Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n MIT License