9int main(
int argc,
char** argv) {
34 vector<double> yGas{3E-4, 0.002, 0.001, 0.05, 0.003, 0.07, 0.1, 0.002};
35 vector<double> yPAH{0, 0, 0, 0, 0, 0};
36 vector<double> Msoot{0.003, 1.5E-5, 1E-7, 1E-10};
38 S.
setState(T, P, rhoGas, muGas, yGas, yPAH, Msoot, nsoot);
46 cout << setprecision(2) << fixed;
48 cout << endl <<
"T (K) = " << setw(14) << T;
49 cout << endl <<
"P (Pa) = " << setw(14) << P;
51 cout << setprecision(4) << scientific;
53 cout << endl <<
"M0 = " << setw(14) << Msoot[0];
54 cout << endl <<
"M1 = " << setw(14) << Msoot[1];
55 cout << endl <<
"M2 = " << setw(14) << Msoot[2];
59 cout << endl <<
"Soot source terms" << endl;
66 cout << endl <<
"Gas source terms" << endl;
72 cout << endl <<
"xH2O = " << setw(14) << SM.
sources.
gasSources[(size_t)gasSp::H2O];
74 cout << endl <<
"xC2H2 = " << setw(14) << SM.
sources.
gasSources[(size_t)gasSp::C2H2];
75 cout << endl <<
"xC6H6 = " << setw(14) << SM.
sources.
gasSources[(size_t)gasSp::C6H6];
78 if (nucl->
mechType==nucleationMech::PAH) {
79 cout << endl <<
"PAH source terms" << endl;
80 cout << endl <<
"xC10H8 = " << setw(14) << SM.
sources.
pahSources[(size_t)pahSp::C10H8];
81 cout << endl <<
"xC12H8 = " << setw(14) << SM.
sources.
pahSources[(size_t)pahSp::C12H8];
82 cout << endl <<
"xC12H10 = " << setw(14) << SM.
sources.
pahSources[(size_t)pahSp::C12H10];
83 cout << endl <<
"xC14H10 = " << setw(14) << SM.
sources.
pahSources[(size_t)pahSp::C14H10];
84 cout << endl <<
"xC16H10 = " << setw(14) << SM.
sources.
pahSources[(size_t)pahSp::C16H10];
85 cout << endl <<
"xC18H10 = " << setw(14) << SM.
sources.
pahSources[(size_t)pahSp::C18H10];
void set_FM_multiplier(double FM_multiplier_)
nucleationMech mechType
identity of the type of nucleation (child)
virtual void setSourceTerms(state &state)
coagulationModel * coag
pointer to coagulation mechanism
sourceTerms sources
struct containing soot, gas, and pah source terms vectors
void 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)
int main(int argc, char **argv)
std::vector< double > pahSources
kg/m3*s
std::vector< double > gasSources
kg/m3*s
std::vector< double > sootSources
kg^r/m3*s (moments), or #/m3*s (sections)