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 (typename CompType::reactionThermo &thermo) | |
Construct from thermo. More... | |
solidChemistryModel (const solidChemistryModel &) | |
Disallow default bitwise copy construction. 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 volScalarField::Internal & | RRs (const label i) const |
Return const access to the chemical source terms for solids. More... | |
tmp< volScalarField::Internal > | 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 > | Qdot () const |
Return the heat release rate [kg/m/s^3]. 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 |
void | operator= (const solidChemistryModel &)=delete |
Disallow default bitwise assignment. More... | |
![]() | |
ODESystem () | |
Construct null. More... | |
virtual | ~ODESystem () |
Destructor. More... | |
Protected Member Functions | |
PtrList< volScalarField::Internal > & | 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< volScalarField::Internal > | RRs_ |
List of reaction rate per solid [kg/m^3/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 59 of file solidChemistryModel.H.
solidChemistryModel | ( | typename CompType::reactionThermo & | thermo | ) |
Construct from thermo.
Definition at line 33 of file solidChemistryModel.C.
References Foam::dimMass, Foam::dimTime, Foam::dimVolume, forAll, mesh, Foam::name(), timeName, and solidChemistryModel< CompType, SolidThermo >::~solidChemistryModel().
solidChemistryModel | ( | const solidChemistryModel< CompType, SolidThermo > & | ) |
Disallow default bitwise copy construction.
|
virtual |
Destructor.
Definition at line 87 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 147 of file solidChemistryModel.C.
Referenced by solidChemistryModel< CompType, SolidThermo >::Qdot().
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, Foam::New(), and tmp< T >::ref().
|
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 95 of file solidChemistryModel.C.
References NotImplemented.
|
virtual |
Return the chemical time scale.
Definition at line 106 of file solidChemistryModel.C.
References NotImplemented.
|
virtual |
Return the heat release rate [kg/m/s^3].
Definition at line 115 of file solidChemistryModel.C.
References Foam::dimEnergy, Foam::dimTime, Foam::dimVolume, forAll, Foam::New(), Qdot, tmp< T >::ref(), and solidChemistryModel< CompType, SolidThermo >::setCellReacting().
|
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 >.
|
delete |
Disallow default bitwise assignment.
|
protected |
Reference to solid mass fractions.
Definition at line 67 of file solidChemistryModel.H.
Reactions.
Definition at line 70 of file solidChemistryModel.H.
|
protected |
Thermodynamic data of solids.
Definition at line 73 of file solidChemistryModel.H.
|
protected |
Number of solid components.
Definition at line 76 of file solidChemistryModel.H.
|
protected |
Number of solid reactions.
Definition at line 79 of file solidChemistryModel.H.
|
protected |
List of reaction rate per solid [kg/m^3/s].
Definition at line 82 of file solidChemistryModel.H.
|
protected |
List of active reacting cells.
Definition at line 85 of file solidChemistryModel.H.