chemistryReductionMethod< ThermoType > Class Template Referenceabstract

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

Inheritance diagram for chemistryReductionMethod< ThermoType >:
Collaboration diagram for chemistryReductionMethod< ThermoType >:

Public Member Functions

 TypeName ("chemistryReductionMethod")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, chemistryReductionMethod, dictionary,(const dictionary &dict, chemistryModels::Standard< ThermoType > &chemistry),(dict, chemistry))
 
 chemistryReductionMethod (chemistryModels::Standard< ThermoType > &chemistry)
 Construct from components. More...
 
 chemistryReductionMethod (const dictionary &dict, chemistryModels::Standard< 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 boolListactiveSpecies () 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, chemistryModels::Standard< ThermoType > &chemistry)
 

Protected Member Functions

const dictionarycoeffDict (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

chemistryModels::Standard< 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...
 
boolList activeSpecies_
 List of active species (active = true) More...
 

Detailed Description

template<class ThermoType>
class Foam::chemistryReductionMethod< ThermoType >

An abstract class for methods of chemical mechanism reduction.

References:

    Contino, F., Jeanmart, H., Lucchini, T., & D’Errico, G. (2011).
    Coupling of in situ adaptive tabulation and dynamic adaptive chemistry:
    An effective method for solving combustion in engine simulations.
    Proceedings of the Combustion Institute, 33(2), 3057-3064.

    Contino, F., Lucchini, T., D'Errico, G., Duynslaegher, C.,
    Dias, V., & Jeanmart, H. (2012).
    Simulations of advanced combustion modes using detailed chemistry
    combined with tabulation and mechanism reduction techniques.
    SAE International Journal of Engines,
    5(2012-01-0145), 185-196.

    Contino, F., Foucher, F., Dagaut, P., Lucchini, T., D’Errico, G., &
    Mounaïm-Rousselle, C. (2013).
    Experimental and numerical analysis of nitric oxide effect on the
    ignition of iso-octane in a single cylinder HCCI engine.
    Combustion and Flame, 160(8), 1476-1483.

    Contino, F., Masurier, J. B., Foucher, F., Lucchini, T., D’Errico, G., &
    Dagaut, P. (2014).
    CFD simulations using the TDAC method to model iso-octane combustion
    for a large range of ozone seeding and temperature conditions
    in a single cylinder HCCI engine.
    Fuel, 137, 179-184.
Source files

Definition at line 91 of file chemistryReductionMethod.H.

Constructor & Destructor Documentation

◆ chemistryReductionMethod() [1/2]

chemistryReductionMethod ( chemistryModels::Standard< ThermoType > &  chemistry)

Construct from components.

Definition at line 32 of file chemistryReductionMethod.C.

◆ chemistryReductionMethod() [2/2]

chemistryReductionMethod ( const dictionary dict,
chemistryModels::Standard< ThermoType > &  chemistry 
)

Construct from components.

Definition at line 51 of file chemistryReductionMethod.C.

References chemistry.

◆ ~chemistryReductionMethod()

Destructor.

Definition at line 85 of file chemistryReductionMethod.C.

Member Function Documentation

◆ coeffDict()

const dictionary& coeffDict ( const dictionary dict) const
inlineprotected

Protected Member Functions.

Definition at line 115 of file chemistryReductionMethod.H.

References dict.

Referenced by DAC< ThermoType >::DAC(), DRG< ThermoType >::DRG(), DRGEP< ThermoType >::DRGEP(), EFA< ThermoType >::EFA(), and PFA< ThermoType >::PFA().

Here is the caller graph for this function:

◆ initReduceMechanism()

void initReduceMechanism
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().

Here is the caller graph for this function:

◆ endReduceMechanism()

void endReduceMechanism ( List< label > &  ctos,
DynamicList< label > &  stoc 
)
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().

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

◆ TypeName()

TypeName ( "chemistryReductionMethod< ThermoType >"  )

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
chemistryReductionMethod< ThermoType >  ,
dictionary  ,
(const dictionary &dict, chemistryModels::Standard< ThermoType > &chemistry ,
(dict, chemistry  
)

◆ New()

Foam::autoPtr< Foam::chemistryReductionMethod< ThermoType > > New ( const dictionary dict,
chemistryModels::Standard< ThermoType > &  chemistry 
)
static

◆ active()

virtual bool active ( ) const
inlinevirtual

Return mechanism reduction active.

Reimplemented in none< ThermoType >.

Definition at line 208 of file chemistryReductionMethod.H.

◆ nSpecie()

Foam::label nSpecie
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().

Here is the caller graph for this function:

◆ nActiveSpecies()

Foam::label nActiveSpecies
inline

Return the number of active species.

Definition at line 39 of file chemistryReductionMethodI.H.

◆ tolerance()

Foam::scalar tolerance
inline

Return the tolerance.

Definition at line 55 of file chemistryReductionMethodI.H.

◆ activeSpecies()

const Foam::boolList & activeSpecies
inline

Return the active species.

Definition at line 47 of file chemistryReductionMethodI.H.

◆ reactionDisabled()

bool reactionDisabled ( const label  i) const
inline

Return whether or not a reaction is disabled.

Definition at line 62 of file chemistryReductionMethodI.H.

◆ reduceMechanism()

virtual void reduceMechanism ( const scalar  p,
const scalar  T,
const scalarField c,
List< label > &  ctos,
DynamicList< label > &  stoc,
const label  li 
)
pure virtual

◆ update()

void update
virtual

...

Reimplemented in none< ThermoType >.

Definition at line 173 of file chemistryReductionMethod.C.

References Foam::endl().

Here is the call graph for this function:

Member Data Documentation

◆ chemistry_

chemistryModels::Standard<ThermoType>& chemistry_
protected

Reference to the chemistry model.

Definition at line 98 of file chemistryReductionMethod.H.

Referenced by DAC< ThermoType >::DAC().

◆ nSpecie_

const label nSpecie_
protected

Total number of species.

Definition at line 101 of file chemistryReductionMethod.H.

◆ nActiveSpecies_

label nActiveSpecies_
protected

Number of active species.

Definition at line 104 of file chemistryReductionMethod.H.

◆ reactionsDisabled_

Field<bool> reactionsDisabled_
protected

List of disabled reactions (disabled = true)

Definition at line 107 of file chemistryReductionMethod.H.

◆ activeSpecies_

boolList activeSpecies_
protected

List of active species (active = true)

Definition at line 110 of file chemistryReductionMethod.H.


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