35#ifndef OPENSWMM_ENGINE_POLLUTANT_DATA_HPP
36#define OPENSWMM_ENGINE_POLLUTANT_DATA_HPP
87 std::vector<double>
mwt;
162 const auto un =
static_cast<std::size_t
>(n);
167 c_gw.assign(un, 0.0);
169 c_dwf.assign(un, 0.0);
179 units.shrink_to_fit();
183 c_gw.shrink_to_fit();
185 c_dwf.shrink_to_fit();
Definition NodeCoupling.cpp:16
MassUnits
Pollutant concentration units.
Definition PollutantData.hpp:52
@ MG_PER_L
Milligrams per liter.
Definition PollutantData.hpp:53
@ UG_PER_L
Micrograms per liter.
Definition PollutantData.hpp:54
@ COUNTS_PER_L
Counts per liter (bacteria)
Definition PollutantData.hpp:55
Static properties for each pollutant species.
Definition PollutantData.hpp:71
std::vector< double > init_conc
Initial concentration everywhere in the network.
Definition PollutantData.hpp:126
std::vector< double > c_dwf
Dry weather sanitary flow concentration.
Definition PollutantData.hpp:120
int n_pollutants() const noexcept
Definition PollutantData.hpp:158
void shrink_to_fit()
Release excess vector capacity.
Definition PollutantData.hpp:178
void resize_pollutants(int n)
Resize pollutant definition arrays to hold n pollutants.
Definition PollutantData.hpp:161
std::vector< double > c_gw
Groundwater concentration.
Definition PollutantData.hpp:108
std::vector< int > co_pollut
Co-pollutant index (-1 if none).
Definition PollutantData.hpp:133
std::vector< double > c_rain
Rain concentration (project mass/volume units).
Definition PollutantData.hpp:102
std::vector< std::string > comments
Object comment from the INP file (';'-prefixed lines immediately above this pollutant's data row),...
Definition PollutantData.hpp:152
std::vector< double > mwt
Molecular weight (g/mol). Used for unit conversions.
Definition PollutantData.hpp:87
std::vector< double > k_decay
First-order decay coefficient (1/sec). The [POLLUTANTS] Kdecay column is 1/day: the parser divides by...
Definition PollutantData.hpp:96
std::vector< bool > snow_only
True if the pollutant should be printed in output.
Definition PollutantData.hpp:145
std::vector< double > c_rdii
RDII concentration.
Definition PollutantData.hpp:114
std::vector< MassUnits > units
Concentration units for each pollutant.
Definition PollutantData.hpp:81
std::vector< double > co_frac
Co-fraction (fraction of co-pollutant concentration).
Definition PollutantData.hpp:139