Soot and gas state variables. Gas state includes T, P, yi (species mass fractions) density, molecular weight, viscosity. Soot state includes the soot variables (e.g., moments or number of particles in a section). Also includes scaling factors for soot.
Definition at line 17 of file state.h.
void state::setState |
( |
double |
T_, |
|
|
double |
P_, |
|
|
double |
rhoGas_, |
|
|
double |
muGas_, |
|
|
std::vector< double > |
yGas_, |
|
|
std::vector< double > |
yPAH_, |
|
|
std::vector< double > |
sootVar_, |
|
|
int |
nsoot_, |
|
|
double |
cMin_ = 100 |
|
) |
| |
Sets the thermodynamic state based on user input
Only point of contact between users and the state class. User provides relevant data to be assigned to sootlib's internal state variables.
- Parameters
-
T_ | input: temperature (K) |
P_ | input: pressure (Pa) |
rhoGas_ | input: density of gas mixture (kg/m3) |
muGas_ | input: dynamic viscosity (kg/m*s)
|
MWGas_ | input: gas mixture molecular weight (kg/kmol) |
yGas_ | input: gas species mass fractions [H, H2, O, O2, OH, H2O, CO, C2H2] |
yPAH_ | input: PAH species mass fractions [C10H8, C12H8, C12H10, C14H10, C16H10, C18H10] |
sootVar_ | input: soot variable (moments or section values) values |
nsoot_ | input: number of soot variables |
cMin_ | input: minimum number of carbon atoms in a soot particle |
IMPORTANT: gas and PAH species mass fractions MUST be provided in the order specified above within the yGas and yPAH vectors. Values must be non-negative. If a species is not represented or not present, DO NOT leave it out; instead, enter a mass fraction value of zero. If the user mechanism contains more than one species with the same molecular formula (C16H10 is a common culprit), enter the sum of the mass fractions for the applicable species. Any additional species information is not used by sootlib and will be ignored.
Definition at line 36 of file state.cc.