66 #ifndef chemistryModel_H
67 #define chemistryModel_H
87 template<
class ThermoType>
97 class reactionEvaluationScope
103 reactionEvaluationScope
116 ~reactionEvaluationScope()
188 template<
class DeltaTType>
189 scalar solve(
const DeltaTType& deltaT);
236 const label reactioni
244 virtual scalar
solve(
const scalar deltaT);
#define forAll(list, i)
Loop across all elements in list.
A 1D vector of objects of type <T> with a fixed size <Size>.
List of templated reactions.
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...
const fluidMulticomponentThermo & thermo() const
Return const access to the thermo.
jacobianType
Enumeration for the type of Jacobian to be calculated by the.
Switch chemistry_
Chemistry activation switch.
Switch chemistry() const
Chemistry activation switch.
Extends base chemistry model by adding a thermo package, and ODE functions. Introduces chemistry equa...
TypeName("chemistryModel")
Runtime type information.
virtual void jacobian(const scalar t, const scalarField &YTp, const label li, scalarField &dYTpdt, scalarSquareMatrix &J) const
Calculate the ODE jacobian.
virtual tmp< volScalarField > tc() const
Return the chemical time scale.
const PtrList< ThermoType > & specieThermos() const
Thermodynamic data of the species.
virtual void derivatives(const scalar t, const scalarField &YTp, const label li, scalarField &dYTpdt) const
Calculate the ODE derivatives.
void operator=(const chemistryModel &)=delete
Disallow default bitwise assignment.
virtual label nReaction() const
The number of reactions.
const multicomponentMixture< ThermoType > & mixture() const
Return reference to the mixture.
virtual ~chemistryModel()
Destructor.
virtual PtrList< volScalarField::Internal > reactionRR(const label reactioni) const
Return reaction rates of the species in reactioni [kg/m^3/s].
const PtrList< Reaction< ThermoType > > & reactions() const
The reactions.
virtual tmp< volScalarField > Qdot() const
Return the heat release rate [kg/m/s^3].
virtual void calculate()
Calculates the reaction rates.
virtual const PtrList< volScalarField::Internal > & RR() const
Return reaction rates of the species [kg/m^3/s].
An abstract class for methods of chemical mechanism reduction.
An abstract class for chemistry tabulation.
Base-class for multi-component fluid thermodynamic properties.
Foam::multicomponentMixture.
Extends base chemistry model adding an ODESystem and the reduction maps needed for tabulation.
friend class chemistryModel
const PtrList< volScalarField > & Y() const
Return a reference to the list of mass fraction fields.
A class for managing temporary objects.
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)