37 #ifndef chemistryReductionMethod_H 38 #define chemistryReductionMethod_H 49 template<
class CompType,
class ThermoType>
56 template<
class CompType,
class ThermoType>
91 TypeName(
"chemistryReductionMethod");
134 inline bool active()
const;
137 inline bool log()
const;
Extends StandardChemistryModel by adding the TDAC method.
TDACChemistryModel< CompType, ThermoType > & chemistry_
A list of keyword definitions, which are a keyword followed by a number of values (eg...
const List< bool > & activeSpecies() const
Return the active species.
static autoPtr< chemistryReductionMethod< CompType, ThermoType > > New(const IOdictionary &dict, TDACChemistryModel< CompType, ThermoType > &chemistry)
scalar tolerance() const
Return the tolerance.
bool active() const
Is mechanism reduction active?
chemistryReductionMethod(const IOdictionary &dict, TDACChemistryModel< CompType, ThermoType > &chemistry)
Construct from components.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, any/none. Also accepts 0/1 as a string and shortcuts t/f, y/n.
virtual ~chemistryReductionMethod()
Destructor.
BasicChemistryModel< psiReactionThermo > & chemistry
List< bool > activeSpecies_
List of active species (active = true)
scalar tolerance_
Tolerance for the mechanism reduction algorithm.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
const label nSpecie_
Number of species.
bool log() const
Is performance data logging enabled?
Switch active_
Is mechanism reduction active?
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Switch log_
Switch to select performance logging.
const dictionary coeffsDict_
Dictionary that store the algorithm data.
label NsSimp()
Return the number of active species.
virtual void reduceMechanism(const scalarField &c, const scalar T, const scalar p)=0
Reduce the mechanism.
declareRunTimeSelectionTable(autoPtr, chemistryReductionMethod, dictionary,(const IOdictionary &dict, TDACChemistryModel< CompType, ThermoType > &chemistry),(dict, chemistry))
const dimensionedScalar c
Speed of light in a vacuum.
label nSpecie()
Return the initial number of species.
TypeName("chemistryReductionMethod")
Runtime type information.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
An abstract class for methods of chemical mechanism reduction.
label NsSimp_
Number of active species.
const IOdictionary & dict_