SootLib
Loading...
Searching...
No Matches
nucleationModel.cc
Go to the documentation of this file.
2#include "sootDefs.h"
3
4using namespace std;
5using namespace soot;
6
15
16void nucleationModel::getNucleationGasRates(const double &msootDotNucl,
17 vector<double> &gasSourcesNucl) const {
18 // Compute S in: d(rho*y_k)/dt + ... = ... + S
19 // kg_k/m3*s (species k)
20
21 for (size_t sp=0; sp<(size_t)gasSp::size; sp++) {
22 if(sp == (size_t)gasSp::C) continue;
23 gasSourcesNucl[sp] += msootDotNucl * nucleationRxnRatios[sp] * gasSpMW[sp] /
24 (nucleationRxnRatios[(size_t)gasSp::C] * gasSpMW[(size_t)gasSp::C]);
25 }
26}
27
void getNucleationGasRates(const double &msootDotNucl, std::vector< double > &gasSourcesNucl) const
std::vector< double > nucleationRxnRatios
mole ratios for gas species rate coupling
Definition: sootDefs.h:11
const std::vector< double > gasSpMW
(kg/kmol); make sure the order corresponds to the gasSp enum
Definition: sootDefs.h:74