Go to the documentation of this file.
39 #ifndef pyrolysisChemistryModel_H
40 #define pyrolysisChemistryModel_H
58 template<
class CompType,
class Sol
idThermo,
class GasThermo>
130 inline label
nGases()
const;
139 const bool updateC0 =
false
203 virtual scalar
solve(
const scalar deltaT);
209 virtual label
nEqns()
const;
virtual scalarField omega(const scalarField &c, const scalar T, const scalar p, const bool updateC0=false) const
dc/dt = omega, rate of change in concentration, for each species
PtrList< volScalarField::Internal > RRg_
List of reaction rate per gas [kg/m3/s].
speciesTable pyrolisisGases_
List of gas species present in reaction system.
A class for managing temporary objects.
label nGases() const
The number of solids.
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.
label nSpecie() const
The number of solids.
virtual label nEqns() const
Number of ODE's to solve.
TypeName("pyrolysis")
Runtime type information.
A wordList with hashed named lookup, which can be faster in some situations than using the normal lis...
virtual scalar solve(const scalar deltaT)
Solve the reaction system for the given time step.
Extends base solid chemistry model by adding a thermo package, and ODE functions.
virtual void derivatives(const scalar t, const scalarField &c, scalarField &dcdt) const
Calculate the derivatives in dydx.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
virtual tmp< volScalarField > gasHs(const volScalarField &p, const volScalarField &T, const label i) const
Return sensible enthalpy for gas i [J/Kg].
PtrList< GasThermo > gasThermo_
Thermodynamic data of gases.
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.
Pyrolysis chemistry model. It includes gas phase in the solid reaction.
const speciesTable & gasTable() const
Gases table.
label nSpecie_
Number of components being solved by ODE.
virtual void calculate()
Calculates the reaction rates.
virtual ~pyrolysisChemistryModel()
Destructor.
const PtrList< GasThermo > & gasThermo() const
Thermodynamic data of gases.
const dimensionedScalar c
Speed of light in a vacuum.
Simple extension of ReactionThermo to handle reaction kinetics in addition to the equilibrium thermod...
label nGases_
Number of gas species.
PtrList< volScalarField::Internal > & RRg()
Write access to source terms for gases.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
pyrolysisChemistryModel(typename CompType::reactionThermo &thermo)
Construct from thermo.