37#ifndef chemistryReductionMethod_H
38#define chemistryReductionMethod_H
49template<
class CompType,
class ThermoType>
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.
TDACChemistryModel< psiReactionThermo, constGasHThermoPhysics > & 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))
static autoPtr< chemistryReductionMethod< CompType, ThermoType > > New(const IOdictionary &dict, TDACChemistryModel< CompType, ThermoType > &chemistry)
List< bool > activeSpecies_
const dictionary coeffsDict_
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.
chemistryReductionMethod(const IOdictionary &dict, TDACChemistryModel< CompType, ThermoType > &chemistry)
Construct from components.
bool active() const
Is mechanism reduction active?
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
BasicChemistryModel< psiReactionThermo > & chemistry
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
#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.