SootLib
|
Lognormal distribution model (LOGN)
Definition at line 15 of file sootModel_LOGN.h.
#include <sootModel_LOGN.h>
Public Member Functions | |
virtual void | setSourceTerms (state &state) |
double | Mr (double k, double M0, double M1, double M2) const |
virtual double | pahSootCollisionRatePerDimer (const state &state, const double mDimer) const |
sootModel_LOGN (size_t nsoot_, nucleationModel *nucl_, growthModel *grow_, oxidationModel *oxid_, coagulationModel *coag_) | |
sootModel_LOGN (size_t nsoot_, nucleationMech Nmech, growthMech Gmech, oxidationMech Omech, coagulationMech Cmech) | |
virtual | ~sootModel_LOGN () |
![]() | |
virtual void | setSourceTerms (state &state)=0 |
void | checkSpec () |
virtual double | pahSootCollisionRatePerDimer (const double mDimer) const |
virtual double | get_M0_sectional (const state &state) |
virtual double | get_M1_sectional (const state &state) |
sootModel (size_t nsoot_, nucleationModel *nucl_, growthModel *grow_, oxidationModel *oxid_, coagulationModel *coag_) | |
sootModel (size_t nsoot_, nucleationMech Nmech, growthMech Gmech, oxidationMech Omech, coagulationMech Cmech) | |
virtual | ~sootModel () |
Additional Inherited Members | |
![]() | |
size_t | nsoot |
# of soot variables: moments or sections More... | |
nucleationModel * | nucl |
pointer to nucleation mechanism More... | |
growthModel * | grow |
pointer to growth mechanism More... | |
oxidationModel * | oxid |
pointer to oxidation mechanism More... | |
coagulationModel * | coag |
pointer to coagulation mechanism More... | |
bool | mechsNewedHere |
flag to delete "new" objects More... | |
psdMech | psdMechType |
one of MONO, LOGN, QMOM, MOMIC, SECT, etc. More... | |
std::vector< double > | mBins |
mass in sections for the sectional model More... | |
sourceTerms | sources |
struct containing soot, gas, and pah source terms vectors More... | |
sootModel_LOGN::sootModel_LOGN | ( | size_t | nsoot_, |
nucleationModel * | nucl_, | ||
growthModel * | grow_, | ||
oxidationModel * | oxid_, | ||
coagulationModel * | coag_ | ||
) |
Constructor taking pointers to chemistry models as input. User creates these pointers nominally by "new-ing" them.
nsoot_ | input: number of soot moments (should be 3). |
nucl_ | input: pointer to nucleation model. |
grow_ | input: pointer to growth model. |
oxid_ | input: pointer to oxidation model. |
coag_ | input: pointer to coagulation model. |
Definition at line 19 of file sootModel_LOGN.cc.
sootModel_LOGN::sootModel_LOGN | ( | size_t | nsoot_, |
nucleationMech | Nmech, | ||
growthMech | Gmech, | ||
oxidationMech | Omech, | ||
coagulationMech | Cmech | ||
) |
Constructor taking enumerations names as input. Chemistry pointers are created (new-ed) here based on those enumerations.
nsoot_ | input: number of soot moments (should be 3). |
Nmech | input: one of enum class nucleationMech in sootDefs.h |
Gmech | input: one of enum class growthMech in sootDefs.h |
Omech | input: one of enum class oxidationMech in sootDefs.h |
Cmech | input: one of enum class coagulationMech in sootDefs.h |
Definition at line 50 of file sootModel_LOGN.cc.
|
inlinevirtual |
Definition at line 43 of file sootModel_LOGN.h.
|
virtual |
Primary user interface.
state | input: gas and soot state, set by user. |
sets sources.sootSources vector sets sources.gasSources vector sets sources.pahSources vector
Implements soot::sootModel.
Definition at line 143 of file sootModel_LOGN.cc.
double sootModel_LOGN::Mr | ( | double | r, |
double | M0, | ||
double | M1, | ||
double | M2 | ||
) | const |
Compute fractional moment Mr for integer fraction r
r | input: fraction of the moment. |
M0 | input: moment 0 (#/m3) |
M1 | input: moment 1 (kg_soot/m3) |
M2 | input: moment 2 (kg^2/m3) |
Definition at line 326 of file sootModel_LOGN.cc.
|
virtual |
Compute PAH condensation terms for LOGN model. Function split out from setSourceTerms so that it can be called in nucleationModel_PAH for computing the pah dimer concentration.
Function only called if nucleationMech::PAH. Function called by nucleationModel_PAH::getNucleationSootRate
state | input: gas and soot state, set by user. |
mDimer | input: dimer mass (kg) |
Definition at line 83 of file sootModel_LOGN.cc.