Extends base solid chemistry model by adding a thermo package, and ODE functions. Introduces chemistry equation system and evaluation of chemical source terms. More...
Public Member Functions | |
TypeName ("solidChemistryModel") | |
Runtime type information. More... | |
solidChemistryModel (const fvMesh &mesh, const word &phaseName) | |
Construct from mesh and phase name. More... | |
virtual | ~solidChemistryModel () |
Destructor. More... | |
const PtrList< Reaction< SolidThermo > > & | reactions () const |
The reactions. More... | |
label | nReaction () const |
The number of reactions. More... | |
virtual scalarField | omega (const scalarField &c, const scalar T, const scalar p, const bool updateC0=false) const =0 |
dc/dt = omega, rate of change in concentration, for each species More... | |
virtual scalar | omega (const Reaction< SolidThermo > &r, const scalarField &c, const scalar T, const scalar p, scalar &pf, scalar &cf, label &lRef, scalar &pr, scalar &cr, label &rRef) const =0 |
Return the reaction rate for reaction r and the reference. More... | |
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 =0 |
Return the reaction rate for iReaction and the reference. More... | |
virtual void | calculate ()=0 |
Calculates the reaction rates. More... | |
const DimensionedField< scalar, volMesh > & | RRs (const label i) const |
Return const access to the chemical source terms for solids. More... | |
tmp< DimensionedField< scalar, volMesh > > | RRs () const |
Return total solid source term. More... | |
virtual scalar | solve (const scalar deltaT)=0 |
Solve the reaction system for the given time step. More... | |
virtual scalar | solve (const scalarField &deltaT) |
Solve the reaction system for the given time step. More... | |
virtual tmp< volScalarField > | tc () const |
Return the chemical time scale. More... | |
virtual tmp< volScalarField > | Sh () const |
Return source for enthalpy equation [kg/m/s3]. More... | |
virtual tmp< volScalarField > | dQ () const |
Return the heat release, i.e. enthalpy/sec [m2/s3]. More... | |
virtual label | nEqns () const =0 |
Number of ODE's to solve. More... | |
virtual void | derivatives (const scalar t, const scalarField &c, scalarField &dcdt) const =0 |
Calculate the derivatives in dydx. More... | |
virtual void | jacobian (const scalar t, const scalarField &c, scalarField &dcdt, scalarSquareMatrix &dfdc) const =0 |
Calculate the Jacobian of the system. More... | |
virtual void | solve (scalarField &c, scalar &T, scalar &p, scalar &deltaT, scalar &subDeltaT) const =0 |
Public Member Functions inherited from ODESystem | |
ODESystem () | |
Construct null. More... | |
virtual | ~ODESystem () |
Destructor. More... | |
Protected Member Functions | |
PtrList< DimensionedField< scalar, volMesh > > & | RRs () |
Write access to source terms for solids. More... | |
void | setCellReacting (const label celli, const bool active) |
Set reacting status of cell, celli. More... | |
Protected Attributes | |
PtrList< volScalarField > & | Ys_ |
Reference to solid mass fractions. More... | |
const PtrList< Reaction< SolidThermo > > & | reactions_ |
Reactions. More... | |
const PtrList< SolidThermo > & | solidThermo_ |
Thermodynamic data of solids. More... | |
label | nSolids_ |
Number of solid components. More... | |
label | nReaction_ |
Number of solid reactions. More... | |
PtrList< DimensionedField< scalar, volMesh > > | RRs_ |
List of reaction rate per solid [kg/m3/s]. More... | |
List< bool > | reactingCells_ |
List of active reacting cells. More... | |
Extends base solid chemistry model by adding a thermo package, and ODE functions. Introduces chemistry equation system and evaluation of chemical source terms.
Definition at line 60 of file solidChemistryModel.H.
solidChemistryModel | ( | const fvMesh & | mesh, |
const word & | phaseName | ||
) |
Construct from mesh and phase name.
Definition at line 34 of file solidChemistryModel.C.
References Foam::dimMass, Foam::dimTime, Foam::dimVolume, forAll, mesh, Foam::name(), fvMesh::time(), Time::timeName(), and solidChemistryModel< CompType, SolidThermo >::~solidChemistryModel().
|
virtual |
Destructor.
Definition at line 89 of file solidChemistryModel.C.
References solidChemistryModel< CompType, SolidThermo >::solve().
Referenced by solidChemistryModel< CompType, SolidThermo >::solidChemistryModel().
|
inlineprotected |
Write access to source terms for solids.
Definition at line 32 of file solidChemistryModelI.H.
Referenced by solidChemistryModel< CompType, SolidThermo >::nReaction().
|
protected |
Set reacting status of cell, celli.
Definition at line 189 of file solidChemistryModel.C.
Referenced by solidChemistryModel< CompType, SolidThermo >::dQ().
TypeName | ( | "solidChemistryModel< CompType, SolidThermo >" | ) |
Runtime type information.
|
inline |
The reactions.
Definition at line 39 of file solidChemistryModelI.H.
References solidChemistryModel< CompType, SolidThermo >::nReaction().
|
inline |
The number of reactions.
Definition at line 48 of file solidChemistryModelI.H.
References solidChemistryModel< CompType, SolidThermo >::RRs().
Referenced by solidChemistryModel< CompType, SolidThermo >::reactions().
|
pure virtual |
dc/dt = omega, rate of change in concentration, for each species
Implemented in pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >.
|
pure virtual |
Return the reaction rate for reaction r and the reference.
species and charateristic times
Implemented in pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >.
|
pure virtual |
Return the reaction rate for iReaction and the reference.
species and charateristic times
Implemented in pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >.
|
pure virtual |
Calculates the reaction rates.
Implemented in pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >.
|
inline |
Return const access to the chemical source terms for solids.
Definition at line 57 of file solidChemistryModelI.H.
|
inline |
Return total solid source term.
Definition at line 67 of file solidChemistryModelI.H.
References Foam::dimMass, Foam::dimTime, Foam::dimVolume, mesh, tmp< T >::ref(), and timeName.
|
pure virtual |
Solve the reaction system for the given time step.
and return the characteristic time
Implemented in pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >.
Referenced by solidChemistryModel< CompType, SolidThermo >::~solidChemistryModel().
|
virtual |
Solve the reaction system for the given time step.
and return the characteristic time
Definition at line 97 of file solidChemistryModel.C.
References NotImplemented.
|
virtual |
Return the chemical time scale.
Definition at line 108 of file solidChemistryModel.C.
References NotImplemented.
|
virtual |
Return source for enthalpy equation [kg/m/s3].
Definition at line 117 of file solidChemistryModel.C.
References Foam::dimEnergy, Foam::dimTime, Foam::dimVolume, forAll, tmp< T >::ref(), and Sh.
|
virtual |
Return the heat release, i.e. enthalpy/sec [m2/s3].
Definition at line 157 of file solidChemistryModel.C.
References Foam::dimEnergy, Foam::dimTime, dQ, tmp< T >::ref(), GeometricField< Type, PatchField, GeoMesh >::ref(), solidChemistryModel< CompType, SolidThermo >::setCellReacting(), and Sh.
|
pure virtual |
Number of ODE's to solve.
Implements ODESystem.
Implemented in pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >.
|
pure virtual |
Calculate the derivatives in dydx.
Implements ODESystem.
Implemented in pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >.
|
pure virtual |
Calculate the Jacobian of the system.
Need by the stiff-system solvers
Implements ODESystem.
Implemented in pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >.
|
pure virtual |
Implemented in pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >.
|
protected |
Reference to solid mass fractions.
Definition at line 77 of file solidChemistryModel.H.
Reactions.
Definition at line 80 of file solidChemistryModel.H.
|
protected |
Thermodynamic data of solids.
Definition at line 83 of file solidChemistryModel.H.
|
protected |
Number of solid components.
Definition at line 86 of file solidChemistryModel.H.
|
protected |
Number of solid reactions.
Definition at line 89 of file solidChemistryModel.H.
|
protected |
List of reaction rate per solid [kg/m3/s].
Definition at line 92 of file solidChemistryModel.H.
|
protected |
List of active reacting cells.
Definition at line 95 of file solidChemistryModel.H.