Implementation of the Directed Relation Graph (DRG) method. More...
Public Member Functions | |
TypeName ("DRG") | |
Runtime type information. More... | |
DRG (const IOdictionary &dict, TDACChemistryModel< CompType, ThermoType > &chemistry) | |
Construct from components. More... | |
virtual | ~DRG () |
virtual void | reduceMechanism (const scalar p, const scalar T, const scalarField &c, const label li) |
Reduce the mechanism. More... | |
Public Member Functions inherited from chemistryReductionMethod< CompType, ThermoType > | |
TypeName ("chemistryReductionMethod") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, chemistryReductionMethod, dictionary,(const IOdictionary &dict, TDACChemistryModel< CompType, ThermoType > &chemistry),(dict, chemistry)) | |
chemistryReductionMethod (const IOdictionary &dict, TDACChemistryModel< CompType, ThermoType > &chemistry) | |
Construct from components. More... | |
virtual | ~chemistryReductionMethod () |
Destructor. More... | |
bool | active () const |
Is mechanism reduction active? More... | |
bool | log () const |
Is performance data logging enabled? More... | |
const List< bool > & | activeSpecies () const |
Return the active species. More... | |
label | NsSimp () |
Return the number of active species. More... | |
label | nSpecie () |
Return the initial number of species. More... | |
scalar | tolerance () const |
Return the tolerance. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from chemistryReductionMethod< CompType, ThermoType > | |
static autoPtr< chemistryReductionMethod< CompType, ThermoType > > | New (const IOdictionary &dict, TDACChemistryModel< CompType, ThermoType > &chemistry) |
Protected Attributes inherited from chemistryReductionMethod< CompType, ThermoType > | |
const IOdictionary & | dict_ |
const dictionary | coeffsDict_ |
Dictionary that store the algorithm data. More... | |
Switch | active_ |
Is mechanism reduction active? More... | |
Switch | log_ |
Switch to select performance logging. More... | |
TDACChemistryModel< CompType, ThermoType > & | chemistry_ |
List< bool > | activeSpecies_ |
List of active species (active = true) More... | |
label | NsSimp_ |
Number of active species. More... | |
const label | nSpecie_ |
Number of species. More... | |
scalar | tolerance_ |
Tolerance for the mechanism reduction algorithm. More... | |
Implementation of the Directed Relation Graph (DRG) method.
DRG | ( | const IOdictionary & | dict, |
TDACChemistryModel< CompType, ThermoType > & | chemistry | ||
) |
Construct from components.
Definition at line 32 of file DRG.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, dictionary::found(), StandardChemistryModel< ReactionThermo, ThermoType >::nSpecie(), dictionary::subDict(), and TDACChemistryModel< ReactionThermo, ThermoType >::Y().
|
virtual |
Definition at line 63 of file DRG.C.
References DRG< CompType, ThermoType >::reduceMechanism().
TypeName | ( | "DRG< CompType, ThermoType >" | ) |
Runtime type information.
|
virtual |
Reduce the mechanism.
Implements chemistryReductionMethod< CompType, ThermoType >.
Definition at line 71 of file DRG.C.
References Foam::constant::physicoChemical::c1, forAll, found, Reaction< ReactionThermo >::lhs(), p, FIFOStack< T >::pop(), FIFOStack< T >::push(), R, Reaction< ReactionThermo >::rhs(), s(), and T.
Referenced by DRG< CompType, ThermoType >::~DRG().