66 #ifndef chemistryReductionMethod_H
67 #define chemistryReductionMethod_H
81 namespace chemistryModels
83 template<
class ThermoType>
91 template<
class ThermoType>
118 return dict.subDict(
"reduction");
142 int64_t sumnActiveSpecies_;
148 scalar reduceMechCpuTime_;
160 TypeName(
"chemistryReductionMethod");
209 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...
Extension to Foam::chemistryModels::standard templated on thermo and provides stiff ODE integration f...
An abstract class for methods of chemical mechanism reduction.
TypeName("chemistryReductionMethod")
Runtime type information.
chemistryReductionMethod(chemistryModels::Standard< ThermoType > &chemistry)
Construct from components.
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.
Field< bool > reactionsDisabled_
List of disabled reactions (disabled = true)
bool reactionDisabled(const label i) const
Return whether or not a reaction is disabled.
chemistryModels::Standard< ThermoType > & chemistry_
Reference to the chemistry model.
scalar tolerance() const
Return the tolerance.
static autoPtr< chemistryReductionMethod< ThermoType > > New(const dictionary &dict, chemistryModels::Standard< ThermoType > &chemistry)
declareRunTimeSelectionTable(autoPtr, chemistryReductionMethod, dictionary,(const dictionary &dict, chemistryModels::Standard< ThermoType > &chemistry),(dict, chemistry))
label nSpecie()
Return the number of species.
const boolList & activeSpecies() const
Return the active species.
boolList activeSpecies_
List of active species (active = true)
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.
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(GeometricField< Type, GeoMesh, PrimitiveField1 > &gf, const GeometricField< Type, GeoMesh, PrimitiveField2 > &gf1)
chemistryModel & chemistry