31 template<
class ThermoType>
39 coeffsDict_(dict.
subDict(
"reduction")),
40 active_(coeffsDict_.lookupOrDefault<
Switch>(
"active",
false)),
41 log_(coeffsDict_.lookupOrDefault<
Switch>(
"log",
false)),
42 chemistry_(chemistry),
43 activeSpecies_(chemistry.
nSpecie(),
false),
46 tolerance_(coeffsDict_.lookupOrDefault<scalar>(
"tolerance", 1
e-4))
52 template<
class ThermoType>
virtual label nSpecie() const
The number of species.
Extends standardChemistryModel by adding the TDAC method.
chemistryReductionMethod(const IOdictionary &dict, TDACChemistryModel< ThermoType > &chemistry)
Construct from components.
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.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
const dimensionedScalar e
Elementary charge.