SootLib
Loading...
Searching...
No Matches
soot::sootModel_LOGN Class Reference

Detailed Description

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 ()
 
- Public Member Functions inherited from soot::sootModel
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

- Public Attributes inherited from soot::sootModel
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...
 

Constructor & Destructor Documentation

◆ sootModel_LOGN() [1/2]

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.

Parameters
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() [2/2]

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.

Parameters
nsoot_input: number of soot moments (should be 3).
Nmechinput: one of enum class nucleationMech in sootDefs.h
Gmechinput: one of enum class growthMech in sootDefs.h
Omechinput: one of enum class oxidationMech in sootDefs.h
Cmechinput: one of enum class coagulationMech in sootDefs.h

Definition at line 50 of file sootModel_LOGN.cc.

◆ ~sootModel_LOGN()

virtual soot::sootModel_LOGN::~sootModel_LOGN ( )
inlinevirtual

Definition at line 43 of file sootModel_LOGN.h.

Member Function Documentation

◆ setSourceTerms()

void sootModel_LOGN::setSourceTerms ( state &  state)
virtual

Primary user interface.

Parameters
stateinput: 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.

◆ Mr()

double sootModel_LOGN::Mr ( double  r,
double  M0,
double  M1,
double  M2 
) const

Compute fractional moment Mr for integer fraction r

Parameters
rinput: fraction of the moment.
M0input: moment 0 (#/m3)
M1input: moment 1 (kg_soot/m3)
M2input: moment 2 (kg^2/m3)

Definition at line 326 of file sootModel_LOGN.cc.

◆ pahSootCollisionRatePerDimer()

double sootModel_LOGN::pahSootCollisionRatePerDimer ( const state &  state,
const double  mDimer 
) const
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

Parameters
stateinput: gas and soot state, set by user.
mDimerinput: dimer mass (kg)
Returns
pah/soot sollision rate per dimer. Call it I. I*mDimer*nDimer = Cnd1 (=) kg/m3*s

Definition at line 83 of file sootModel_LOGN.cc.


The documentation for this class was generated from the following files: