Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
pyrolysisChemistryModel< CompType, SolidThermo, GasThermo > Class Template Reference

Pyrolysis chemistry model. It includes gas phase in the solid reaction. More...

Inheritance diagram for pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >:
Inheritance graph
[legend]
Collaboration diagram for pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("pyrolysis")
 
 pyrolysisChemistryModel (typename CompType::reactionThermo &thermo)
 
virtual ~pyrolysisChemistryModel ()
 
const PtrList< GasThermo > & gasThermo () const
 
const speciesTablegasTable () const
 
label nSpecie () const
 
label nGases () const
 
virtual scalarField omega (const scalarField &c, const scalar T, const scalar p, const bool updateC0=false) const
 
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
 
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
 
virtual void calculate ()
 
const volScalarField::InternalRRg (const label i) const
 
tmp< volScalarField::InternalRRg () const
 
virtual tmp< volScalarFieldgasHs (const volScalarField &p, const volScalarField &T, const label i) const
 
virtual scalar solve (const scalar deltaT)
 
virtual label nEqns () const
 
virtual void derivatives (const scalar t, const scalarField &c, scalarField &dcdt) const
 
virtual void jacobian (const scalar t, const scalarField &c, scalarField &dcdt, scalarSquareMatrix &dfdc) const
 
virtual void solve (scalarField &c, scalar &T, scalar &p, scalar &deltaT, scalar &subDeltaT) const
 
- Public Member Functions inherited from solidChemistryModel< CompType, SolidThermo >
 TypeName ("solidChemistryModel")
 
 solidChemistryModel (typename CompType::reactionThermo &thermo)
 
virtual ~solidChemistryModel ()
 
const PtrList< Reaction< SolidThermo > > & reactions () const
 
label nReaction () const
 
const volScalarField::InternalRRs (const label i) const
 
tmp< volScalarField::InternalRRs () const
 
tmp< DimensionedField< scalar, volMesh > > RRsHs () const
 
virtual scalar solve (const scalarField &deltaT)
 
virtual tmp< volScalarFieldtc () const
 
virtual tmp< volScalarFieldQdot () const
 
- Public Member Functions inherited from ODESystem
 ODESystem ()
 
virtual ~ODESystem ()=default
 

Protected Member Functions

PtrList< volScalarField::Internal > & RRg ()
 
- Protected Member Functions inherited from solidChemistryModel< CompType, SolidThermo >
PtrList< volScalarField::Internal > & RRs ()
 
void setCellReacting (const label celli, const bool active)
 

Protected Attributes

speciesTable pyrolisisGases_
 
PtrList< GasThermo > gasThermo_
 
label nGases_
 
label nSpecie_
 
PtrList< volScalarField::InternalRRg_
 
- Protected Attributes inherited from solidChemistryModel< CompType, SolidThermo >
PtrList< volScalarField > & Ys_
 
const PtrList< Reaction< SolidThermo > > & reactions_
 
const PtrList< SolidThermo > & solidThermo_
 
label nSolids_
 
label nReaction_
 
PtrList< volScalarField::InternalRRs_
 
List< boolreactingCells_
 

Detailed Description

template<class CompType, class SolidThermo, class GasThermo>
class Foam::pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >

Pyrolysis chemistry model. It includes gas phase in the solid reaction.

Source files

Definition at line 54 of file pyrolysisChemistryModel.H.

Constructor & Destructor Documentation

◆ pyrolysisChemistryModel()

pyrolysisChemistryModel ( typename CompType::reactionThermo &  thermo)

◆ ~pyrolysisChemistryModel()

Definition at line 167 of file pyrolysisChemistryModel.C.

Member Function Documentation

◆ RRg() [1/3]

Foam::tmp< Foam::DimensionedField< Foam::scalar, Foam::volMesh > > RRg
inlineprotected

Definition at line 28 of file pyrolysisChemistryModelI.H.

◆ TypeName()

TypeName ( "pyrolysis"  )

◆ gasThermo()

const Foam::PtrList< GasThermo > & gasThermo
inline

Definition at line 37 of file pyrolysisChemistryModelI.H.

◆ gasTable()

const Foam::speciesTable & gasTable
inline

Definition at line 46 of file pyrolysisChemistryModelI.H.

◆ nSpecie()

Foam::label nSpecie
inline

Definition at line 55 of file pyrolysisChemistryModelI.H.

◆ nGases()

label nGases ( ) const
inline

◆ omega() [1/2]

Foam::scalarField omega ( const scalarField c,
const scalar  T,
const scalar  p,
const bool  updateC0 = false 
) const
virtual

◆ omega() [2/2]

Foam::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
virtual

◆ omegaI()

Foam::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
virtual

◆ calculate()

void calculate
virtual

◆ RRg() [2/3]

const Foam::DimensionedField< Foam::scalar, Foam::volMesh > & RRg ( const label  i) const
inline

Definition at line 64 of file pyrolysisChemistryModelI.H.

◆ RRg() [3/3]

tmp<volScalarField::Internal> RRg ( ) const
inline

◆ gasHs()

Foam::tmp< Foam::volScalarField > gasHs ( const volScalarField p,
const volScalarField T,
const label  i 
) const
virtual

Definition at line 611 of file pyrolysisChemistryModel.C.

References Foam::dimEnergy, Foam::dimMass, forAll, p, tmp::ref(), T, and Foam::Zero.

Here is the call graph for this function:

◆ solve() [1/2]

Foam::scalar solve ( const scalar  deltaT)
virtual

◆ nEqns()

Foam::label nEqns
virtual

◆ derivatives()

void derivatives ( const scalar  t,
const scalarField c,
scalarField dcdt 
) const
virtual

Implements solidChemistryModel< CompType, SolidThermo >.

Definition at line 298 of file pyrolysisChemistryModel.C.

References Foam::constant::universal::c, Foam::mag(), Foam::min(), p, and T.

Here is the call graph for this function:

◆ jacobian()

void jacobian ( const scalar  t,
const scalarField c,
scalarField dcdt,
scalarSquareMatrix dfdc 
) const
virtual

◆ solve() [2/2]

void solve ( scalarField c,
scalar &  T,
scalar &  p,
scalar &  deltaT,
scalar &  subDeltaT 
) const
virtual

Member Data Documentation

◆ pyrolisisGases_

speciesTable pyrolisisGases_
protected

Definition at line 67 of file pyrolysisChemistryModel.H.

◆ gasThermo_

PtrList<GasThermo> gasThermo_
protected

Definition at line 70 of file pyrolysisChemistryModel.H.

◆ nGases_

label nGases_
protected

Definition at line 73 of file pyrolysisChemistryModel.H.

◆ nSpecie_

label nSpecie_
protected

Definition at line 76 of file pyrolysisChemistryModel.H.

◆ RRg_

Definition at line 79 of file pyrolysisChemistryModel.H.


The documentation for this class was generated from the following files: