chemistryReductionMethod< CompType, ThermoType > Class Template Referenceabstract

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

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

Public Member Functions

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

Static Public Member Functions

static autoPtr< chemistryReductionMethod< CompType, ThermoType > > New (const IOdictionary &dict, TDACChemistryModel< CompType, ThermoType > &chemistry)
 

Protected Attributes

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::chemistryReductionMethod< CompType, ThermoType >

An abstract class for methods of chemical mechanism reduction.

An abstract class for reducing chemical mechanisms.

Source files

Source files

Definition at line 56 of file chemistryReductionMethod.H.

Constructor & Destructor Documentation

◆ chemistryReductionMethod()

chemistryReductionMethod ( const IOdictionary dict,
Foam::TDACChemistryModel< CompType, ThermoType > &  chemistry 
)

Construct from components.

Definition at line 35 of file chemistryReductionMethod.C.

◆ ~chemistryReductionMethod()

Destructor.

Definition at line 56 of file chemistryReductionMethod.C.

Member Function Documentation

◆ TypeName()

TypeName ( "chemistryReductionMethod< CompType, ThermoType >"  )

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
chemistryReductionMethod< CompType, ThermoType >  ,
dictionary  ,
(const IOdictionary &dict, TDACChemistryModel< CompType, ThermoType > &chemistry ,
(dict, chemistry  
)

◆ New()

Foam::autoPtr< Foam::chemistryReductionMethod< CompType, ThermoType > > New ( const IOdictionary dict,
TDACChemistryModel< CompType, ThermoType > &  chemistry 
)
static

DynamicList<word> thisCmpts(6); thisCmpts.append(CompType::typeName); thisCmpts.append ( basicThermo::splitThermoName(ThermoType::typeName(), 5) );

DynamicList<word> validNames;

if (thisCmpts == SubList<word>(cmpts, 6, 1)) { validNames.append(cmpts[0]); }

Definition at line 36 of file chemistryReductionMethodNew.C.

References DynamicList< T, SizeMin >::append(), dict, UList< T >::empty(), Foam::endl(), Foam::FatalError, FatalErrorInLookup, dictionary::get(), Foam::Info, Foam::nl, Foam::printTable(), UList< T >::size(), and ensightPTraits< Type >::typeName.

Here is the call graph for this function:

◆ active()

bool active
inline

Is mechanism reduction active?

Definition at line 40 of file chemistryReductionMethodI.H.

◆ log()

bool log
inline

Is performance data logging enabled?

Definition at line 48 of file chemistryReductionMethodI.H.

◆ activeSpecies()

const Foam::List< bool > & activeSpecies
inline

Return the active species.

Definition at line 56 of file chemistryReductionMethodI.H.

◆ NsSimp()

Foam::label NsSimp
inline

Return the number of active species.

Definition at line 64 of file chemistryReductionMethodI.H.

◆ nSpecie()

Foam::label nSpecie
inline

Return the initial number of species.

Definition at line 72 of file chemistryReductionMethodI.H.

◆ tolerance()

Foam::scalar tolerance
inline

Return the tolerance.

Definition at line 80 of file chemistryReductionMethodI.H.

◆ reduceMechanism()

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

Member Data Documentation

◆ dict_

const IOdictionary& dict_
protected

Definition at line 61 of file chemistryReductionMethod.H.

◆ coeffsDict_

◆ active_

Switch active_
protected

Is mechanism reduction active?

Definition at line 67 of file chemistryReductionMethod.H.

Referenced by none< CompType, ThermoType >::none().

◆ log_

Switch log_
protected

Switch to select performance logging.

Definition at line 70 of file chemistryReductionMethod.H.

◆ chemistry_

◆ activeSpecies_

List<bool> activeSpecies_
protected

List of active species (active = true)

Definition at line 75 of file chemistryReductionMethod.H.

◆ NsSimp_

label NsSimp_
protected

Number of active species.

Definition at line 78 of file chemistryReductionMethod.H.

◆ nSpecie_

const label nSpecie_
protected

◆ tolerance_

scalar tolerance_
protected

Tolerance for the mechanism reduction algorithm.

Definition at line 84 of file chemistryReductionMethod.H.


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