Go to the documentation of this file.
40 #ifndef StandardChemistryModel_H
41 #define StandardChemistryModel_H
61 template<
class ReactionThermo,
class ThermoType>
71 template<
class DeltaTType>
72 scalar solve(
const DeltaTType& deltaT);
154 virtual inline label
nSpecie()
const;
160 inline scalar
Treact()
const;
229 const label reactionI,
235 virtual scalar
solve(
const scalar deltaT);
251 inline virtual label
nEqns()
const;
TypeName("standard")
Runtime type information.
PtrList< volScalarField::Internal > & RR()
Write access to chemical source terms.
virtual ~StandardChemistryModel()
Destructor.
scalarField dcdt_
Temporary rate-of-change of concentration field.
A class for managing temporary objects.
scalar Treact_
Temperature below which the reaction rates are assumed 0.
virtual label nEqns() const
Number of ODE's to solve.
Basic chemistry model templated on thermodynamics.
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
virtual void jacobian(const scalar t, const scalarField &c, scalarField &dcdt, scalarSquareMatrix &dfdc) const
Calculate the Jacobian of the system.
const PtrList< ThermoType > & specieThermo_
Thermodynamic data of the species.
const PtrList< Reaction< ThermoType > > & reactions_
Reactions.
virtual void derivatives(const scalar t, const scalarField &c, scalarField &dcdt) const
Calculate the derivatives in dydx.
const PtrList< Reaction< ThermoType > > & reactions() const
The reactions.
PtrList< volScalarField::Internal > RR_
List of reaction rate per specie [kg/m3/s].
virtual label nSpecie() const
The number of species.
scalar Treact() const
Temperature below which the reaction rates are assumed 0.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
virtual void calculate()
Calculates the reaction rates.
virtual tmp< volScalarField > tc() const
Return the chemical time scale.
const PtrList< ThermoType > & specieThermo() const
Thermodynamic data of the species.
virtual void omega(const scalarField &c, const scalar T, const scalar p, scalarField &dcdt) const
dc/dt = omega, rate of change in concentration, for each species
Abstract base class for the systems of ordinary differential equations.
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.
label nSpecie_
Number of species.
PtrList< volScalarField > & Y_
Reference to the field of specie mass fractions.
const dimensionedScalar c
Speed of light in a vacuum.
label nReaction_
Number of reactions.
scalarField c_
Temporary concentration field.
virtual tmp< volScalarField > Qdot() const
Return the heat release rate [kg/m/s3].
Simple extension of ReactionThermo to handle reaction kinetics in addition to the equilibrium thermod...
virtual label nReaction() const
The number of reactions.
virtual tmp< volScalarField::Internal > calculateRR(const label reactionI, const label speciei) const
Return reaction rate of the speciei in reactionI.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Extends base chemistry model by adding a thermo package, and ODE functions. Introduces chemistry equa...