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 static autoPtr< chemistryReductionMethod< ThermoType > > New(const IOdictionary &dict, chemistryModel< ThermoType > &chemistry)
A list of keyword definitions, which are a keyword followed by any number of values (e...
const List< bool > & activeSpecies() const
Return the active species.
void initReduceMechanism()
Protected Member Functions.
scalar tolerance() const
Return the tolerance.
declareRunTimeSelectionTable(autoPtr, chemistryReductionMethod, dictionary,(const IOdictionary &dict, chemistryModel< ThermoType > &chemistry),(dict, chemistry))
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)
const dimensionedScalar c
Speed of light in a vacuum.
void endReduceMechanism(List< label > &ctos, DynamicList< label > &stoc)
End reduction of the mechanism.
label nActiveSpecies() const
Return the number of active species.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
label nActiveSpecies_
Number of active species.
Field< bool > reactionsDisabled_
List of disabled reactions (disabled = true)
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
Pre-declare SubField and related Field type.
const label nSpecie_
Total number of species.
chemistryReductionMethod(chemistryModel< ThermoType > &chemistry)
Construct from components.
basicChemistryModel & chemistry
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
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.
Extends base chemistry model by adding a thermo package, and ODE functions. Introduces chemistry equa...
const dictionary coeffsDict_
Dictionary that store the algorithm data.
bool reactionDisabled(const label i) const
Return whether or not a reaction is disabled.
label nSpecie()
Return the 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.
Starts timing CPU usage and return elapsed time from start.
chemistryModel< ThermoType > & chemistry_
Reference to the chemistry model.
virtual bool active() const
Return mechanism reduction active.