43 #ifndef Standard_chemistryModel_H
44 #define Standard_chemistryModel_H
56 namespace chemistryModels
63 template<
class ThermoType>
73 class reactionEvaluationScope
79 reactionEvaluationScope
92 ~reactionEvaluationScope()
164 template<
class DeltaTType>
165 scalar solve(
const DeltaTType& deltaT);
212 const label reactioni
218 const label reactioni
224 const label reactioni
232 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.
Switch chemistry_
Chemistry activation switch.
Switch chemistry() const
Chemistry activation switch.
Extension to Foam::chemistryModels::standard templated on thermo and provides stiff ODE integration f...
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.
virtual tmp< volScalarField::Internal > reactionRR(const label reactioni) const
Return the rate of reactioni [kmol/m^3/s].
const PtrList< ThermoType > & specieThermos() const
Thermodynamic data of the species.
Standard(const fluidMulticomponentThermo &thermo)
Construct from thermo.
virtual void derivatives(const scalar t, const scalarField &YTp, const label li, scalarField &dYTpdt) const
Calculate the ODE derivatives.
virtual label nReaction() const
The number of reactions.
const multicomponentMixture< ThermoType > & mixture() const
Return reference to the mixture.
TypeName("standard")
Runtime type information.
virtual const word & reactionName(const label reactioni) const
Return the name of reactioni.
virtual ~Standard()
Destructor.
void operator=(const Standard &)=delete
Disallow default bitwise assignment.
virtual PtrList< volScalarField::Internal > specieReactionRR(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 const PtrList< volScalarField::Internal > & RR() const
Return reaction rates of the species [kg/m^3/s].
virtual void calculate()
Calculates the reaction rates.
Non-templated Base class for Foam::chemistryModels::Standard.
jacobianType
Enumeration for the type of Jacobian to be calculated by the.
const PtrList< volScalarField > & Y() const
Return a reference to the list of mass fraction fields.
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.
A class for managing temporary objects.
A class for handling words, derived from string.
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)