DRG< CompType, ThermoType > Class Template Reference

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

Inheritance diagram for DRG< CompType, ThermoType >:
[legend]
Collaboration diagram for DRG< CompType, ThermoType >:
[legend]

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 scalarField &c, const scalar T, const scalar p)
 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...
 
virtual void reduceMechanism (const scalarField &c, const scalar T, const scalar p)=0
 Reduce the mechanism. 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< boolactiveSpecies_
 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 53 of file DRG.H.

Constructor & Destructor Documentation

◆ DRG()

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

Construct from components.

Definition at line 33 of file DRG.C.

References chemistry, chemistryReductionMethod< CompType, ThermoType >::coeffsDict_, Foam::exit(), Foam::FatalError, FatalErrorInFunction, dictionary::found(), UList< T >::size(), and dictionary::subDict().

Here is the call graph for this function:

◆ ~DRG()

~DRG
virtual

Definition at line 65 of file DRG.C.

Member Function Documentation

◆ TypeName()

TypeName ( "DRG< CompType, ThermoType >"  )

Runtime type information.

◆ reduceMechanism()

void reduceMechanism ( const scalarField c,
const scalar  T,
const scalar  p 
)
virtual

Reduce the mechanism.

Implements chemistryReductionMethod< CompType, ThermoType >.

Definition at line 72 of file DRG.C.

References DynamicList< T, SizeMin >::append(), forAll, found, p, FIFOStack< T >::pop(), FIFOStack< T >::push(), R, s(), DynamicList< T, SizeMin >::shrink(), T, and Foam::Zero.

Here is the call graph for this function:

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