38 #ifndef chemistryReductionMethod_H
39 #define chemistryReductionMethod_H
52 template<
class ThermoType>
59 template<
class ThermoType>
108 int64_t sumnActiveSpecies_;
114 scalar reduceMechCpuTime_;
126 TypeName(
"chemistryReductionMethod");
175 virtual bool active()
const
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
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.
static autoPtr< chemistryReductionMethod< ThermoType > > New(const IOdictionary &dict, chemistryModel< ThermoType > &chemistry)
const List< bool > & activeSpecies() const
Return the active species.
TypeName("chemistryReductionMethod")
Runtime type information.
virtual ~chemistryReductionMethod()
Destructor.
void initReduceMechanism()
Protected Member Functions.
const label nSpecie_
Total number of species.
List< bool > activeSpecies_
List of active species (active = true)
const dictionary coeffsDict_
Dictionary that store the algorithm data.
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.
label nSpecie()
Return the number of species.
declareRunTimeSelectionTable(autoPtr, chemistryReductionMethod, dictionary,(const IOdictionary &dict, chemistryModel< ThermoType > &chemistry),(dict, chemistry))
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 keyword definitions, which are a keyword followed by any number of values (e....
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(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
basicChemistryModel & chemistry