SootLib
Loading...
Searching...
No Matches
oxidationModel.cc
Go to the documentation of this file.
2#include "sootDefs.h"
3
4using namespace std;
5using namespace soot;
6
15
16void oxidationModel::getOxidationGasRates(const double &msootDotOxid,
17 vector<double> &gasSourcesOxid) 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 gasSourcesOxid[sp] += msootDotOxid * oxidationRxnRatios[sp] * gasSpMW[sp] /
24 (oxidationRxnRatios[(size_t)gasSp::C] * gasSpMW[(size_t)gasSp::C]);
25 }
26}
void getOxidationGasRates(const double &msootDotOxid, std::vector< double > &gasSourcesOxid) const
std::vector< double > oxidationRxnRatios
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