SootLib
Loading...
Searching...
No Matches
growthModel.cc
Go to the documentation of this file.
2#include "sootDefs.h"
3
4using namespace std;
5using namespace soot;
6
15
16void growthModel::getGrowthGasRates( const double &msootDotGrow,
17 vector<double> &gasSourcesGrow) 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 gasSourcesGrow[sp] += msootDotGrow * growthRxnRatios[sp] * gasSpMW[sp] /
24 (growthRxnRatios[(size_t)gasSp::C] * gasSpMW[(size_t)gasSp::C]);
25 }
26}
std::vector< double > growthRxnRatios
mole ratios for gas species rate coupling
Definition: growthModel.h:26
void getGrowthGasRates(const double &msootDotGrow, std::vector< double > &gasSourcesGrow) const
Definition: growthModel.cc:16
Definition: sootDefs.h:11
const std::vector< double > gasSpMW
(kg/kmol); make sure the order corresponds to the gasSp enum
Definition: sootDefs.h:74