35 #ifndef chemistryReductionMethod_H 36 #define chemistryReductionMethod_H 47 template<
class ThermoType>
54 template<
class ThermoType>
89 TypeName(
"chemistryReductionMethod");
132 inline bool active()
const;
135 inline bool log()
const;
TDACChemistryModel< ThermoType > & chemistry_
Extends standardChemistryModel by adding the TDAC method.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual void reduceMechanism(const scalar p, const scalar T, const scalarField &c, const label li)=0
Reduce the mechanism.
A list of keyword definitions, which are a keyword followed by any number of values (e...
chemistryReductionMethod(const IOdictionary &dict, TDACChemistryModel< ThermoType > &chemistry)
Construct from components.
const List< bool > & activeSpecies() const
Return the active species.
scalar tolerance() const
Return the tolerance.
bool active() const
Is mechanism reduction active?
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none/any.
virtual ~chemistryReductionMethod()
Destructor.
List< bool > activeSpecies_
List of active species (active = true)
static autoPtr< chemistryReductionMethod< ThermoType > > New(const IOdictionary &dict, TDACChemistryModel< ThermoType > &chemistry)
const dimensionedScalar c
Speed of light in a vacuum.
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?
basicChemistryModel & chemistry
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.
label nSpecie()
Return the initial number of species.
TypeName("chemistryReductionMethod")
Runtime type information.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
An abstract class for methods of chemical mechanism reduction.
label NsSimp_
Number of active species.
declareRunTimeSelectionTable(autoPtr, chemistryReductionMethod, dictionary,(const IOdictionary &dict, TDACChemistryModel< ThermoType > &chemistry),(dict, chemistry))
const IOdictionary & dict_