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


Public Member Functions | |
| TypeName ("DRG") | |
| Runtime type information. More... | |
| DRG (const dictionary &dict, chemistryModel< ThermoType > &chemistry) | |
| Construct from components. More... | |
| virtual | ~DRG () |
| virtual void | reduceMechanism (const scalar p, const scalar T, const scalarField &c, List< label > &ctos, DynamicList< label > &stoc, const label li) |
| Reduce the mechanism. More... | |
Public Member Functions inherited from chemistryReductionMethod< ThermoType > | |
| TypeName ("chemistryReductionMethod") | |
| Runtime type information. More... | |
| declareRunTimeSelectionTable (autoPtr, chemistryReductionMethod, dictionary,(const dictionary &dict, chemistryModel< ThermoType > &chemistry),(dict, chemistry)) | |
| chemistryReductionMethod (chemistryModel< ThermoType > &chemistry) | |
| Construct from components. More... | |
| chemistryReductionMethod (const dictionary &dict, chemistryModel< ThermoType > &chemistry) | |
| Construct from components. More... | |
| virtual | ~chemistryReductionMethod () |
| Destructor. More... | |
| virtual bool | active () const |
| Return mechanism reduction active. More... | |
| label | nSpecie () |
| Return the number of species. More... | |
| label | nActiveSpecies () const |
| Return the number of active species. More... | |
| scalar | tolerance () const |
| Return the tolerance. More... | |
| const List< bool > & | activeSpecies () const |
| Return the active species. More... | |
| bool | reactionDisabled (const label i) const |
| Return whether or not a reaction is disabled. More... | |
| virtual void | update () |
| ... More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from chemistryReductionMethod< ThermoType > | |
| static autoPtr< chemistryReductionMethod< ThermoType > > | New (const dictionary &dict, chemistryModel< ThermoType > &chemistry) |
Protected Member Functions inherited from chemistryReductionMethod< ThermoType > | |
| const dictionary & | coeffDict (const dictionary &dict) const |
| Protected Member Functions. More... | |
| void | initReduceMechanism () |
| Initialise reduction of the mechanism. More... | |
| void | endReduceMechanism (List< label > &ctos, DynamicList< label > &stoc) |
| End reduction of the mechanism. More... | |
Protected Attributes inherited from chemistryReductionMethod< ThermoType > | |
| chemistryModel< ThermoType > & | chemistry_ |
| Reference to the chemistry model. More... | |
| const label | nSpecie_ |
| Total number of species. More... | |
| label | nActiveSpecies_ |
| Number of active species. More... | |
| Field< bool > | reactionsDisabled_ |
| List of disabled reactions (disabled = true) More... | |
| List< bool > | activeSpecies_ |
| List of active species (active = true) More... | |
Implementation of the Directed Relation Graph (DRG) method.
| DRG | ( | const dictionary & | dict, |
| chemistryModel< ThermoType > & | chemistry | ||
| ) |
Construct from components.
Definition at line 31 of file DRG.C.
References List< T >::append(), chemistry, chemistryReductionMethod< ThermoType >::coeffDict(), and forAllConstIter.

| TypeName | ( | "DRG< ThermoType >" | ) |
Runtime type information.
|
virtual |
Reduce the mechanism.
Implements chemistryReductionMethod< ThermoType >.
Definition at line 58 of file DRG.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), Foam::constant::universal::c, Foam::constant::physicoChemical::c1, chemistryReductionMethod< ThermoType >::endReduceMechanism(), forAll, found, chemistryReductionMethod< ThermoType >::initReduceMechanism(), nSpecie, p, FIFOStack< T >::pop(), FIFOStack< T >::push(), Foam::R(), s(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::shrink(), and Foam::T().
