38 #ifndef chemistryReductionMethod_H
39 #define chemistryReductionMethod_H
52 template<
class ThermoType>
59 template<
class ThermoType>
86 return dict.subDict(
"reduction");
110 int64_t sumnActiveSpecies_;
116 scalar reduceMechCpuTime_;
128 TypeName(
"chemistryReductionMethod");
177 virtual bool active()
const
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Extends base chemistry model by adding a thermo package, and ODE functions. Introduces chemistry equa...
An abstract class for methods of chemical mechanism reduction.
chemistryModel< ThermoType > & chemistry_
Reference to the chemistry model.
const List< bool > & activeSpecies() const
Return the active species.
TypeName("chemistryReductionMethod")
Runtime type information.
declareRunTimeSelectionTable(autoPtr, chemistryReductionMethod, dictionary,(const dictionary &dict, chemistryModel< ThermoType > &chemistry),(dict, chemistry))
virtual ~chemistryReductionMethod()
Destructor.
const dictionary & coeffDict(const dictionary &dict) const
Protected Member Functions.
void initReduceMechanism()
Initialise reduction of the mechanism.
const label nSpecie_
Total number of species.
List< bool > activeSpecies_
List of active species (active = true)
Field< bool > reactionsDisabled_
List of disabled reactions (disabled = true)
bool reactionDisabled(const label i) const
Return whether or not a reaction is disabled.
scalar tolerance() const
Return the tolerance.
static autoPtr< chemistryReductionMethod< ThermoType > > New(const dictionary &dict, chemistryModel< ThermoType > &chemistry)
label nSpecie()
Return the number of species.
void endReduceMechanism(List< label > &ctos, DynamicList< label > &stoc)
End reduction of the mechanism.
label nActiveSpecies() const
Return the number of active species.
label nActiveSpecies_
Number of active species.
chemistryReductionMethod(chemistryModel< ThermoType > &chemistry)
Construct from components.
virtual bool active() const
Return mechanism reduction active.
virtual void reduceMechanism(const scalar p, const scalar T, const scalarField &c, List< label > &ctos, DynamicList< label > &stoc, const label li)=0
Reduce the mechanism.
Starts timing CPU usage and return elapsed time from start.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
const dimensionedScalar c
Speed of light in a vacuum.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void T(LagrangianPatchField< Type > &f, const LagrangianPatchField< Type > &f1)
basicChemistryModel & chemistry