37#ifndef chemistryReductionMethod_H
38#define chemistryReductionMethod_H
49template<
class CompType,
class ThermoType>
50class TDACChemistryModel;
56template<
class CompType,
class ThermoType>
91 TypeName(
"chemistryReductionMethod");
134 inline bool active()
const;
137 inline bool log()
const;
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
Extends StandardChemistryModel by adding the TDAC method.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
An abstract class for methods of chemical mechanism reduction.
Switch active_
Is mechanism reduction active?
TDACChemistryModel< CompType, ThermoType > & chemistry_
virtual void reduceMechanism(const scalarField &c, const scalar T, const scalar p)=0
Reduce the mechanism.
const List< bool > & activeSpecies() const
Return the active species.
TypeName("chemistryReductionMethod")
Runtime type information.
virtual ~chemistryReductionMethod()
Destructor.
declareRunTimeSelectionTable(autoPtr, chemistryReductionMethod, dictionary,(const IOdictionary &dict, TDACChemistryModel< CompType, ThermoType > &chemistry),(dict, chemistry))
scalar tolerance_
Tolerance for the mechanism reduction algorithm.
const label nSpecie_
Number of species.
static autoPtr< chemistryReductionMethod< CompType, ThermoType > > New(const IOdictionary &dict, TDACChemistryModel< CompType, ThermoType > &chemistry)
label NsSimp_
Number of active species.
List< bool > activeSpecies_
List of active species (active = true)
const dictionary coeffsDict_
Dictionary that store the algorithm data.
bool log() const
Is performance data logging enabled?
scalar tolerance() const
Return the tolerance.
label NsSimp()
Return the number of active species.
const IOdictionary & dict_
label nSpecie()
Return the initial number of species.
bool active() const
Is mechanism reduction active?
Switch log_
Switch to select performance logging.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
BasicChemistryModel< psiReactionThermo > & chemistry
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.