35#ifndef OPENSWMM_ENGINE_POLLUTANT_DATA_HPP
36#define OPENSWMM_ENGINE_POLLUTANT_DATA_HPP
87 std::vector<double>
mwt;
175 const auto un =
static_cast<std::size_t
>(n);
180 c_gw.assign(un, 0.0);
182 c_dwf.assign(un, 0.0);
192 units.shrink_to_fit();
196 c_gw.shrink_to_fit();
198 c_dwf.shrink_to_fit();
Definition ExchangeLaw.hpp:60
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
Count pollutant definitions from the unit-code column.
Definition PollutantData.hpp:162
void shrink_to_fit()
Release excess vector capacity.
Definition PollutantData.hpp:191
void resize_pollutants(int n)
Replace pollutant parameter columns with defaults.
Definition PollutantData.hpp:174
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