DRG< CompType, ThermoType > Class Template Reference

Implementation of the Directed Relation Graph (DRG) method. More...

Inheritance diagram for DRG< CompType, ThermoType >:
Collaboration diagram for DRG< CompType, ThermoType >:

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 IOdictionarydict_
 
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...
 

Detailed Description

template<class CompType, class ThermoType>
class Foam::chemistryReductionMethods::DRG< CompType, ThermoType >

Implementation of the Directed Relation Graph (DRG) method.

Source files

Definition at line 51 of file DRG.H.

Constructor & Destructor Documentation

◆ DRG()

DRG ( const IOdictionary dict,
TDACChemistryModel< CompType, ThermoType > &  chemistry 
)

◆ ~DRG()

~DRG ( )
virtual

Definition at line 63 of file DRG.C.

References DRG< CompType, ThermoType >::reduceMechanism().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "DRG< CompType, ThermoType >"  )

Runtime type information.

◆ reduceMechanism()

void reduceMechanism ( const scalar  p,
const scalar  T,
const scalarField c,
const label  li 
)
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().

Here is the call graph for this function:
Here is the caller graph for this function:

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