37 #ifndef pyrolysisChemistryModel_H 38 #define pyrolysisChemistryModel_H 56 template<
class CompType,
class Sol
idThermo,
class GasThermo>
137 const bool updateC0 =
false 201 virtual scalar
solve(
const scalar deltaT);
virtual ~pyrolysisChemistryModel()
Destructor.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
PtrList< GasThermo > gasThermo_
Thermodynamic data of gases.
const PtrList< GasThermo > & gasThermo() const
Thermodynamic data of gases.
TypeName("pyrolysis")
Runtime type information.
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.
label nSpecie_
Number of components being solved by ODE.
virtual void derivatives(const scalar t, const scalarField &c, scalarField &dcdt) const
Calculate the derivatives in dydx.
PtrList< volScalarField::Internal > & RRg()
Write access to source terms for gases.
speciesTable pyrolisisGases_
List of gas species present in reaction system.
pyrolysisChemistryModel(const fvMesh &mesh, const word &phaseName)
Construct from mesh and phase name.
Pyrolysis chemistry model. It includes gas phase in the solid reaction.
Extends base solid chemistry model by adding a thermo package, and ODE functions. Introduces chemistr...
Simple extension of ReactionThermo to handle reaction kinetics in addition to the equilibrium thermod...
label nSpecie() const
The number of solids.
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
virtual label nEqns() const
Number of ODE's to solve.
virtual tmp< volScalarField > gasHs(const volScalarField &p, const volScalarField &T, const label i) const
Return sensible enthalpy for gas i [J/Kg].
label nGases() const
The number of solids.
A class for handling words, derived from string.
label nGases_
Number of gas species.
virtual scalar solve(const scalar deltaT)
Solve the reaction system for the given time step.
PtrList< volScalarField::Internal > RRg_
List of reaction rate per gas [kg/m3/s].
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
A wordList with hashed indices for faster lookup by name.
Mesh data needed to do the Finite Volume discretisation.
const dimensionedScalar c
Speed of light in a vacuum.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A class for managing temporary objects.
virtual void calculate()
Calculates the reaction rates.
virtual void jacobian(const scalar t, const scalarField &c, scalarField &dcdt, scalarSquareMatrix &dfdc) const
Calculate the Jacobian of the system.
const speciesTable & gasTable() const
Gases table.