SootLib
Loading...
Searching...
No Matches
growthModel_LL.cc
Go to the documentation of this file.
2#include "sootDefs.h"
3#include "sootModel.h" // for the SM back pointer
4
5using namespace std;
6using namespace soot;
7
9
11
12 growthRxnRatios[(int)gasSp::C2H2] = -1; // C2H2 --> 2C(soot) + H2
13 growthRxnRatios[(int)gasSp::H2] = 1;
14 growthRxnRatios[(int)gasSp::C] = 2;
15
17}
18
32
34
35 double Am2m3 = 0; // soot surface area available for reaction (m2_soot/m3_total)
36 double rSoot = 0; // rate soot growth (kg/m2*s)
37
38 double M0, M1; // #/m3, kg/m3
39
43 }
44 else {
45 M0 = state.sootVar[0];
46 M1 = state.sootVar[1];
47 }
48
49 if (M0 > 0)
50 Am2m3 = M_PI * pow(6 / (M_PI * rhoSoot) * M1 / M0, 2.0/3.0) * M0;
51
52 if (Am2m3 > 0)
53 rSoot = 0.6E4 * exp(-12100 / state.T) * state.getGasSpC(gasSp::C2H2) / sqrt(Am2m3) * 2 * gasSpMW[(int)gasSp::C];
54
55 return rSoot;
56
57}
double getGrowthSootRate(const state &state) const override
std::vector< double > growthRxnRatios
mole ratios for gas species rate coupling
Definition: growthModel.h:26
growthMech mechType
identity of the type of growth (child)
Definition: growthModel.h:24
sootModel * SM
back pointer to soot model
Definition: growthModel.h:23
virtual double get_M0_sectional(const state &state)
Definition: sootModel.h:56
psdMech psdMechType
one of MONO, LOGN, QMOM, MOMIC, SECT, etc.
Definition: sootModel.h:37
virtual double get_M1_sectional(const state &state)
Definition: sootModel.h:60
double T
gas temperature (K)
Definition: state.h:23
double getGasSpC(gasSp sp) const
Definition: state.h:46
std::vector< double > sootVar
soot variables (moments or # in sections>
Definition: state.h:32
Definition: sootDefs.h:11
const double rhoSoot
soot particle density
Definition: sootDefs.h:21
const std::vector< double > gasSpMW
(kg/kmol); make sure the order corresponds to the gasSp enum
Definition: sootDefs.h:74