Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
chemistryReductionMethod< CompType, ThermoType > Class Template Referenceabstract

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

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

Public Member Functions

 TypeName ("chemistryReductionMethod")
 
 declareRunTimeSelectionTable (autoPtr, chemistryReductionMethod, dictionary,(const IOdictionary &dict, TDACChemistryModel< CompType, ThermoType > &chemistry),(dict, chemistry))
 
 chemistryReductionMethod (const IOdictionary &dict, TDACChemistryModel< CompType, ThermoType > &chemistry)
 
virtual ~chemistryReductionMethod ()
 
bool active () const
 
bool log () const
 
const List< bool > & activeSpecies () const
 
label NsSimp ()
 
label nSpecie ()
 
scalar tolerance () const
 
virtual void reduceMechanism (const scalarField &c, const scalar T, const scalar p)=0
 

Static Public Member Functions

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

Protected Attributes

const IOdictionarydict_
 
const dictionary coeffsDict_
 
Switch active_
 
Switch log_
 
TDACChemistryModel< CompType, ThermoType > & chemistry_
 
List< boolactiveSpecies_
 
label NsSimp_
 
const label nSpecie_
 
scalar tolerance_
 

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 52 of file chemistryReductionMethod.H.

Constructor & Destructor Documentation

◆ chemistryReductionMethod()

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

Definition at line 29 of file chemistryReductionMethod.C.

◆ ~chemistryReductionMethod()

Definition at line 50 of file chemistryReductionMethod.C.

Member Function Documentation

◆ TypeName()

TypeName ( "chemistryReductionMethod< CompType, ThermoType >"  )

◆ 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 30 of file chemistryReductionMethodNew.C.

References DynamicList::append(), chemistry, dict, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInLookup, dictionary::get(), Foam::Info, Foam::PtrListOps::names(), Foam::nl, and Foam::printTable().

Here is the call graph for this function:

◆ active()

bool active
inline

Definition at line 36 of file chemistryReductionMethodI.H.

◆ log()

bool log
inline

Definition at line 44 of file chemistryReductionMethodI.H.

◆ activeSpecies()

const Foam::List< bool > & activeSpecies
inline

Definition at line 52 of file chemistryReductionMethodI.H.

◆ NsSimp()

Foam::label NsSimp
inline

Definition at line 60 of file chemistryReductionMethodI.H.

◆ nSpecie()

Foam::label nSpecie
inline

Definition at line 68 of file chemistryReductionMethodI.H.

◆ tolerance()

Foam::scalar tolerance
inline

Definition at line 76 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 57 of file chemistryReductionMethod.H.

◆ coeffsDict_

const dictionary coeffsDict_
protected

Definition at line 60 of file chemistryReductionMethod.H.

◆ active_

Switch active_
protected

Definition at line 63 of file chemistryReductionMethod.H.

◆ log_

Switch log_
protected

Definition at line 66 of file chemistryReductionMethod.H.

◆ chemistry_

TDACChemistryModel<CompType, ThermoType>& chemistry_
protected

Definition at line 68 of file chemistryReductionMethod.H.

◆ activeSpecies_

List<bool> activeSpecies_
protected

Definition at line 71 of file chemistryReductionMethod.H.

◆ NsSimp_

label NsSimp_
protected

Definition at line 74 of file chemistryReductionMethod.H.

◆ nSpecie_

const label nSpecie_
protected

Definition at line 77 of file chemistryReductionMethod.H.

◆ tolerance_

scalar tolerance_
protected

Definition at line 80 of file chemistryReductionMethod.H.


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