Pyrolysis chemistry model. It includes gas phase in the solid reaction. More...
Public Member Functions | |
TypeName ("pyrolysis") | |
Runtime type information. More... | |
pyrolysisChemistryModel (typename CompType::reactionThermo &thermo) | |
Construct from thermo. More... | |
virtual | ~pyrolysisChemistryModel () |
Destructor. More... | |
const PtrList< GasThermo > & | gasThermo () const |
Thermodynamic data of gases. More... | |
const speciesTable & | gasTable () const |
Gases table. More... | |
label | nSpecie () const |
The number of solids. More... | |
label | nGases () const |
The number of solids. More... | |
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 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 |
Return the reaction rate for reaction r. 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 |
Return the reaction rate for iReaction. More... | |
virtual void | calculate () |
Calculates the reaction rates. More... | |
const volScalarField::Internal & | RRg (const label i) const |
Return const access to the chemical source terms for gases. More... | |
tmp< volScalarField::Internal > | RRg () const |
Return total gas source term. More... | |
virtual tmp< volScalarField > | gasHs (const volScalarField &p, const volScalarField &T, const label i) const |
Return sensible enthalpy for gas i [J/Kg]. More... | |
virtual scalar | solve (const scalar deltaT) |
Solve the reaction system for the given time step. More... | |
virtual label | nEqns () const |
Number of ODE's to solve. More... | |
virtual void | derivatives (const scalar t, const scalarField &c, scalarField &dcdt) const |
Calculate the derivatives in dydx. More... | |
virtual void | jacobian (const scalar t, const scalarField &c, scalarField &dcdt, scalarSquareMatrix &dfdc) const |
Calculate the Jacobian of the system. More... | |
virtual void | solve (scalarField &c, scalar &T, scalar &p, scalar &deltaT, scalar &subDeltaT) const |
void | operator= (const pyrolysisChemistryModel &)=delete |
Disallow default bitwise assignment. More... | |
Public Member Functions inherited from solidChemistryModel< CompType, SolidThermo > | |
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... | |
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 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... | |
void | operator= (const solidChemistryModel &)=delete |
Disallow default bitwise assignment. More... | |
Public Member Functions inherited from ODESystem | |
ODESystem () | |
Construct null. More... | |
virtual | ~ODESystem () |
Destructor. More... | |
Protected Member Functions | |
PtrList< volScalarField::Internal > & | RRg () |
Write access to source terms for gases. More... | |
Protected Member Functions inherited from solidChemistryModel< CompType, SolidThermo > | |
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 | |
speciesTable | pyrolisisGases_ |
List of gas species present in reaction system. More... | |
PtrList< GasThermo > | gasThermo_ |
Thermodynamic data of gases. More... | |
label | nGases_ |
Number of gas species. More... | |
label | nSpecie_ |
Number of components being solved by ODE. More... | |
PtrList< volScalarField::Internal > | RRg_ |
List of reaction rate per gas [kg/m^3/s]. More... | |
Protected Attributes inherited from solidChemistryModel< CompType, SolidThermo > | |
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... | |
Pyrolysis chemistry model. It includes gas phase in the solid reaction.
Definition at line 56 of file pyrolysisChemistryModel.H.
pyrolysisChemistryModel | ( | typename CompType::reactionThermo & | thermo | ) |
Construct from thermo.
Definition at line 35 of file pyrolysisChemistryModel.C.
References dictName(), Foam::dimMass, Foam::dimTime, Foam::dimVolume, forAll, Foam::indent(), Foam::Info, Foam::max(), mesh, Foam::name(), Foam::nl, solidThermo::rho(), timeName, IOobject::typeHeaderOk(), and pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::~pyrolysisChemistryModel().
|
virtual |
Destructor.
Definition at line 177 of file pyrolysisChemistryModel.C.
References pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::omega().
Referenced by pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::pyrolysisChemistryModel().
|
inlineprotected |
Write access to source terms for gases.
Definition at line 33 of file pyrolysisChemistryModelI.H.
References pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::gasThermo().
Referenced by pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::nSpecie(), and pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::RRg().
TypeName | ( | "pyrolysis" | ) |
Runtime type information.
|
inline |
Thermodynamic data of gases.
Definition at line 42 of file pyrolysisChemistryModelI.H.
References pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::gasTable().
Referenced by pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::RRg().
|
inline |
Gases table.
Definition at line 51 of file pyrolysisChemistryModelI.H.
References pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::nSpecie().
Referenced by pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::gasThermo().
|
inline |
The number of solids.
Definition at line 60 of file pyrolysisChemistryModelI.H.
References pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::RRg().
Referenced by pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::gasTable().
|
inline |
The number of solids.
|
virtual |
dc/dt = omega, rate of change in concentration, for each species
Implements solidChemistryModel< CompType, SolidThermo >.
Definition at line 186 of file pyrolysisChemistryModel.C.
References forAll, g, SolidReaction< ReactionThermo >::grhs(), Reaction< ReactionThermo >::lhs(), R, Reaction< ReactionThermo >::rhs(), and s().
Referenced by pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::~pyrolysisChemistryModel().
|
virtual |
Return the reaction rate for reaction r.
NOTE: Currently does not calculate reference specie and characteristic times (pf, cf,l Ref, etc.)
Implements solidChemistryModel< CompType, SolidThermo >.
Definition at line 246 of file pyrolysisChemistryModel.C.
References Foam::constant::physicoChemical::c1, Foam::exp(), Reaction< ReactionThermo >::kf(), Reaction< ReactionThermo >::lhs(), Foam::max(), pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::omegaI(), Foam::pow(), and s().
|
virtual |
Return the reaction rate for iReaction.
NOTE: Currently does not calculate reference specie and characteristic times (pf, cf,l Ref, etc.)
Implements solidChemistryModel< CompType, SolidThermo >.
Definition at line 289 of file pyrolysisChemistryModel.C.
References pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::derivatives().
Referenced by pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::omega().
|
virtual |
Calculates the reaction rates.
Implements solidChemistryModel< CompType, SolidThermo >.
Definition at line 459 of file pyrolysisChemistryModel.C.
References Foam::constant::universal::c, delta, forAll, mesh, basicThermo::p(), Foam::constant::mathematical::pi(), rho, pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::solve(), basicThermo::T(), and timeName.
Referenced by pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::nEqns().
|
inline |
Return const access to the chemical source terms for gases.
Definition at line 69 of file pyrolysisChemistryModelI.H.
References pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::RRg().
|
inline |
Return total gas source term.
Definition at line 80 of file pyrolysisChemistryModelI.H.
References Foam::dimMass, Foam::dimTime, Foam::dimVolume, mesh, Foam::New(), and tmp< T >::ref().
|
virtual |
Return sensible enthalpy for gas i [J/Kg].
Definition at line 625 of file pyrolysisChemistryModel.C.
References Foam::dimEnergy, Foam::dimMass, forAll, Foam::New(), tmp< T >::ref(), and pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::solve().
Referenced by pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::solve().
|
virtual |
Solve the reaction system for the given time step.
and return the characteristic time
Implements solidChemistryModel< CompType, SolidThermo >.
Definition at line 527 of file pyrolysisChemistryModel.C.
References Foam::constant::universal::c, delta, forAll, pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::gasHs(), mesh, Foam::min(), basicThermo::p(), Foam::constant::mathematical::pi(), rho, solve(), basicThermo::T(), and timeName.
Referenced by pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::calculate(), and pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::gasHs().
|
virtual |
Number of ODE's to solve.
Implements solidChemistryModel< CompType, SolidThermo >.
Definition at line 450 of file pyrolysisChemistryModel.C.
References pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::calculate().
Referenced by pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::jacobian().
|
virtual |
Calculate the derivatives in dydx.
Implements solidChemistryModel< CompType, SolidThermo >.
Definition at line 312 of file pyrolysisChemistryModel.C.
References pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::jacobian(), Foam::mag(), and Foam::min().
Referenced by pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::omegaI().
|
virtual |
Calculate the Jacobian of the system.
Need by the stiff-system solvers
Implements solidChemistryModel< CompType, SolidThermo >.
Definition at line 354 of file pyrolysisChemistryModel.C.
References Foam::constant::physicoChemical::c2, delta, Foam::endl(), Foam::exp(), forAll, Foam::Info, Reaction< ReactionThermo >::kf(), Reaction< ReactionThermo >::lhs(), Foam::max(), pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::nEqns(), Foam::pow(), and Reaction< ReactionThermo >::rhs().
Referenced by pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::derivatives().
|
virtual |
Implements solidChemistryModel< CompType, SolidThermo >.
Definition at line 656 of file pyrolysisChemistryModel.C.
References NotImplemented.
|
delete |
Disallow default bitwise assignment.
|
protected |
List of gas species present in reaction system.
Definition at line 63 of file pyrolysisChemistryModel.H.
|
protected |
Thermodynamic data of gases.
Definition at line 66 of file pyrolysisChemistryModel.H.
|
protected |
Number of gas species.
Definition at line 69 of file pyrolysisChemistryModel.H.
|
protected |
Number of components being solved by ODE.
Definition at line 72 of file pyrolysisChemistryModel.H.
|
protected |
List of reaction rate per gas [kg/m^3/s].
Definition at line 75 of file pyrolysisChemistryModel.H.