39 #ifndef pyrolysisChemistryModel_H 40 #define pyrolysisChemistryModel_H 58 template<
class CompType,
class Sol
idThermo,
class GasThermo>
129 inline label
nGases()
const;
138 const bool updateC0 =
false 202 virtual scalar
solve(
const scalar deltaT);
208 virtual label
nEqns()
const;
virtual ~pyrolysisChemistryModel()
Destructor.
PtrList< GasThermo > gasThermo_
Thermodynamic data of gases.
const PtrList< GasThermo > & gasThermo() const
Thermodynamic data of gases.
Forwards and collection of common volume field types.
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.
Pyrolysis chemistry model. It includes gas phase in the solid reaction.
Extends base solid chemistry model by adding a thermo package, and ODE functions. ...
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.
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].
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
void operator=(const pyrolysisChemistryModel &)=delete
No copy assignment.
PtrList< volScalarField > Ys0_
List of accumulative solid concentrations.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
pyrolysisChemistryModel(typename CompType::reactionThermo &thermo)
Construct from thermo.
A wordList with hashed named lookup, which can be faster in some situations than using the normal lis...
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.