Go to the documentation of this file.
38 #ifndef chemistryModel_H
39 #define chemistryModel_H
59 template<
class CompType,
class ThermoType>
75 template<
class DeltaTType>
76 scalar
solve(
const DeltaTType& deltaT);
145 inline scalar
Treact()
const;
213 const label reactionI,
219 virtual scalar
solve(
const scalar deltaT);
scalar Treact() const
Temperature below which the reaction rates are assumed 0.
label nSpecie_
Number of species.
virtual void calculate()
Calculates the reaction rates.
virtual tmp< volScalarField > dQ() const
Return the heat release, i.e. enthalpy/sec [kg/m2/s3].
chemistryModel(const chemistryModel &)
Disallow copy constructor.
A class for handling words, derived from string.
virtual void derivatives(const scalar t, const scalarField &c, scalarField &dcdt) const
Calculate the derivatives in dydx.
A class for managing temporary objects.
const PtrList< Reaction< ThermoType > > & reactions_
Reactions.
label nReaction() const
The number of reactions.
const PtrList< Reaction< ThermoType > > & reactions() const
The reactions.
virtual tmp< DimensionedField< scalar, volMesh > > calculateRR(const label reactionI, const label speciei) const
Return reaction rate of the speciei in reactionI.
TypeName("chemistryModel")
Runtime type information.
PtrList< DimensionedField< scalar, volMesh > > RR_
List of reaction rate per specie [kg/m3/s].
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
PtrList< volScalarField > & Y_
Reference to the field of specie mass fractions.
virtual tmp< volScalarField > tc() const
Return the chemical time scale.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
const PtrList< ThermoType > & specieThermo() const
Thermodynamic data of the species.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Mesh data needed to do the Finite Volume discretisation.
void operator=(const chemistryModel &)
Disallow default bitwise assignment.
label nSpecie() const
The number of species.
virtual tmp< scalarField > omega(const scalarField &c, const scalar T, const scalar p) const
dc/dt = omega, rate of change in concentration, for each species
virtual scalar omegaI(label iReaction, const scalarField &c, const scalar T, const scalar p, scalar &pf, scalar &cf, label &lRef, scalar &pr, scalar &cr, label &rRef) const
Return the reaction rate for iReaction and the reference.
Abstract base class for the systems of ordinary differential equations.
scalar solve(const DeltaTType &deltaT)
Solve the reaction system for the given time step.
label nReaction_
Number of reactions.
virtual void jacobian(const scalar t, const scalarField &c, scalarField &dcdt, scalarSquareMatrix &dfdc) const
Calculate the Jacobian of the system.
PtrList< DimensionedField< scalar, volMesh > > & RR()
Write access to chemical source terms.
scalar Treact_
Temperature below which the reaction rates are assumed 0.
const dimensionedScalar c
Speed of light in a vacuum.
Extends base chemistry model by adding a thermo package, and ODE functions. Introduces chemistry equa...
Simple extension of ReactionThermo to handle reaction kinetics in addition to the equilibrium thermod...
virtual label nEqns() const
Number of ODE's to solve.
virtual tmp< volScalarField > Sh() const
Return source for enthalpy equation [kg/m/s3].
const PtrList< ThermoType > & specieThermo_
Thermodynamic data of the species.
virtual ~chemistryModel()
Destructor.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...