Go to the documentation of this file.
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 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
A class for handling words, derived from string.
speciesTable pyrolisisGases_
List of gas species present in reaction system.
A class for managing temporary objects.
label nGases() const
The number of solids.
PtrList< DimensionedField< scalar, volMesh > > RRg_
List of reaction rate per gas [kg/m3/s].
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.
PtrList< volScalarField > Ys0_
List of accumulative solid concentrations.
virtual label nEqns() const
Number of ODE's to solve.
TypeName("pyrolysis")
Runtime type information.
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.
A wordList with hashed indices for faster lookup by name.
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. Introduces chemistr...
label cellCounter_
Cell counter.
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)
pyrolysisChemistryModel(const fvMesh &mesh, const word &phaseName)
Construct from mesh and phase name.
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.
PtrList< DimensionedField< scalar, volMesh > > & RRg()
Write access to source terms for gases.
Mesh data needed to do the Finite Volume discretisation.
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.
void operator=(const pyrolysisChemistryModel &)
Disallow default bitwise assignment.
Generic GeometricField class.
Simple extension of ReactionThermo to handle reaction kinetics in addition to the equilibrium thermod...
label nGases_
Number of gas species.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...