An abstract class for methods of chemical mechanism reduction. More...


Public Member Functions | |
| 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 | reduceMechanism (const scalar p, const scalar T, const scalarField &c, List< label > &ctos, DynamicList< label > &stoc, const label li)=0 |
| Reduce the mechanism. More... | |
| virtual void | update () |
| ... More... | |
Static Public Member Functions | |
| static autoPtr< chemistryReductionMethod< ThermoType > > | New (const dictionary &dict, chemistryModel< ThermoType > &chemistry) |
Protected Member Functions | |
| 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 | |
| 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... | |
An abstract class for methods of chemical mechanism reduction.
Definition at line 59 of file chemistryReductionMethod.H.
| chemistryReductionMethod | ( | Foam::chemistryModel< ThermoType > & | chemistry | ) |
Construct from components.
Definition at line 32 of file chemistryReductionMethod.C.
| chemistryReductionMethod | ( | const dictionary & | dict, |
| Foam::chemistryModel< ThermoType > & | chemistry | ||
| ) |
Construct from components.
Definition at line 51 of file chemistryReductionMethod.C.
References chemistry.
|
virtual |
Destructor.
Definition at line 85 of file chemistryReductionMethod.C.
|
inlineprotected |
Protected Member Functions.
Definition at line 83 of file chemistryReductionMethod.H.
References dict.
Referenced by DAC< ThermoType >::DAC(), DRG< ThermoType >::DRG(), DRGEP< ThermoType >::DRGEP(), EFA< ThermoType >::EFA(), and PFA< ThermoType >::PFA().

|
protected |
Initialise reduction of the mechanism.
Definition at line 92 of file chemistryReductionMethod.C.
Referenced by DRGEP< ThermoType >::DRGEP(), DAC< ThermoType >::reduceMechanism(), DRG< ThermoType >::reduceMechanism(), EFA< ThermoType >::reduceMechanism(), and PFA< ThermoType >::reduceMechanism().

|
protected |
End reduction of the mechanism.
Definition at line 102 of file chemistryReductionMethod.C.
References Foam::count(), forAll, nSpecie, Foam::R(), s(), and DynamicList< T, SizeInc, SizeMult, SizeDiv >::setSize().
Referenced by DAC< ThermoType >::reduceMechanism(), DRG< ThermoType >::reduceMechanism(), DRGEP< ThermoType >::reduceMechanism(), EFA< ThermoType >::reduceMechanism(), and PFA< ThermoType >::reduceMechanism().


| TypeName | ( | "chemistryReductionMethod< ThermoType >" | ) |
Runtime type information.
| declareRunTimeSelectionTable | ( | autoPtr | , |
| chemistryReductionMethod< ThermoType > | , | ||
| dictionary | , | ||
| (const dictionary &dict, chemistryModel< ThermoType > &chemistry) | , | ||
| (dict, chemistry) | |||
| ) |
|
static |
Definition at line 34 of file chemistryReductionMethodNew.C.
References List< T >::append(), chemistry, dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, forAll, Foam::Info, and dictionary::lookup().

|
inlinevirtual |
Return mechanism reduction active.
Reimplemented in none< ThermoType >.
Definition at line 176 of file chemistryReductionMethod.H.
|
inline |
Return the number of species.
Definition at line 31 of file chemistryReductionMethodI.H.
Referenced by DAC< ThermoType >::DAC(), DRGEP< ThermoType >::DRGEP(), and EFA< ThermoType >::EFA().

|
inline |
Return the number of active species.
Definition at line 39 of file chemistryReductionMethodI.H.
|
inline |
Return the tolerance.
Definition at line 55 of file chemistryReductionMethodI.H.
|
inline |
Return the active species.
Definition at line 47 of file chemistryReductionMethodI.H.
|
inline |
Return whether or not a reaction is disabled.
Definition at line 62 of file chemistryReductionMethodI.H.
|
pure virtual |
Reduce the mechanism.
Implemented in PFA< ThermoType >, none< ThermoType >, EFA< ThermoType >, DRGEP< ThermoType >, DRG< ThermoType >, and DAC< ThermoType >.
|
virtual |
...
Reimplemented in none< ThermoType >.
Definition at line 173 of file chemistryReductionMethod.C.
References Foam::endl().

|
protected |
Reference to the chemistry model.
Definition at line 66 of file chemistryReductionMethod.H.
Referenced by DAC< ThermoType >::DAC().
|
protected |
Total number of species.
Definition at line 69 of file chemistryReductionMethod.H.
|
protected |
Number of active species.
Definition at line 72 of file chemistryReductionMethod.H.
|
protected |
List of disabled reactions (disabled = true)
Definition at line 75 of file chemistryReductionMethod.H.
|
protected |
List of active species (active = true)
Definition at line 78 of file chemistryReductionMethod.H.