SolidReaction< ReactionThermo > Class Template Reference

Read solid reactions of the type S1 = S2 + G1. More...

Inheritance diagram for SolidReaction< ReactionThermo >:
Collaboration diagram for SolidReaction< ReactionThermo >:

Public Member Functions

 TypeName ("SolidReaction")
 Runtime type information. More...
 
 SolidReaction (const Reaction< ReactionThermo > &reaction, const speciesTable &pyrolisisGases, const List< specieCoeffs > &glhs, const List< specieCoeffs > &grhs)
 Construct from components. More...
 
 SolidReaction (const SolidReaction< ReactionThermo > &, const speciesTable &pyrolisisGases)
 Construct as copy given new speciesTable. More...
 
 SolidReaction (const speciesTable &species, const HashPtrTable< ReactionThermo > &thermoDatabase, const dictionary &dict)
 Construct from dictionary. More...
 
virtual ~SolidReaction ()
 Destructor. More...
 
virtual const List< specieCoeffs > & grhs () const
 Access to the gas components of the left hand side. More...
 
virtual const List< specieCoeffs > & glhs () const
 Access to the gas components of the right hand side. More...
 
virtual const speciesTablegasSpecies () const
 Access to gas specie list. More...
 
virtual void write (Ostream &) const
 Write. More...
 
void operator= (const SolidReaction &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from Reaction< ReactionThermo >
 TypeName ("Reaction")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, Reaction, dictionary,(const speciesTable &species, const HashPtrTable< ReactionThermo > &thermoDatabase, const dictionary &dict),(species, thermoDatabase, dict))
 
 Reaction (const speciesTable &species, const List< specieCoeffs > &lhs, const List< specieCoeffs > &rhs, const HashPtrTable< ReactionThermo > &thermoDatabase)
 Construct from components. More...
 
 Reaction (const Reaction< ReactionThermo > &, const speciesTable &species)
 Construct as copy given new speciesTable. More...
 
 Reaction (const speciesTable &species, const HashPtrTable< ReactionThermo > &thermoDatabase, const dictionary &dict)
 Construct from dictionary. More...
 
virtual autoPtr< Reaction< ReactionThermo > > clone () const =0
 Construct and return a clone. More...
 
virtual autoPtr< Reaction< ReactionThermo > > clone (const speciesTable &species) const =0
 Construct and return a clone with new speciesTable. More...
 
virtual ~Reaction ()
 Destructor. More...
 
const wordname () const
 Return the name of the reaction. More...
 
scalar Tlow () const
 Return the lower temperature limit for the reaction. More...
 
scalar Thigh () const
 Return the upper temperature limit for the reaction. More...
 
const List< specieCoeffs > & lhs () const
 Return the components of the left hand side. More...
 
const List< specieCoeffs > & rhs () const
 Return the components of the right hand side. More...
 
const speciesTablespecies () const
 Return the specie list. More...
 
void ddot (const scalar p, const scalar T, const scalarField &c, scalarField &d) const
 Forward reaction rate. More...
 
void fdot (const scalar p, const scalar T, const scalarField &c, scalarField &f) const
 Backward reaction rate. More...
 
void omega (const scalar p, const scalar T, const scalarField &c, scalarField &dcdt) const
 Net reaction rate for individual species. More...
 
scalar omega (const scalar p, const scalar T, const scalarField &c, scalar &pf, scalar &cf, label &lRef, scalar &pr, scalar &cr, label &rRef) const
 Net reaction rate. More...
 
virtual scalar kf (const scalar p, const scalar T, const scalarField &c) const =0
 Forward rate constant. More...
 
virtual scalar kr (const scalar kfwd, const scalar p, const scalar T, const scalarField &c) const =0
 Reverse rate constant from the given forward rate constant. More...
 
virtual scalar kr (const scalar p, const scalar T, const scalarField &c) const =0
 Reverse rate constant. More...
 
void dwdc (const scalar p, const scalar T, const scalarField &c, scalarSquareMatrix &J, scalarField &dcdt, scalar &omegaI, scalar &kfwd, scalar &kbwd, const bool reduced, const List< label > &c2s) const
 Derivative of the net reaction rate for each species involved. More...
 
void dwdT (const scalar p, const scalar T, const scalarField &c, const scalar omegaI, const scalar kfwd, const scalar kbwd, scalarSquareMatrix &J, const bool reduced, const List< label > &c2s, const label indexT) const
 Derivative of the net reaction rate for each species involved. More...
 
virtual scalar dkfdT (const scalar p, const scalar T, const scalarField &c) const =0
 Temperature derivative of forward rate. More...
 
virtual scalar dkrdT (const scalar p, const scalar T, const scalarField &c, const scalar dkfdT, const scalar kr) const =0
 Temperature derivative of reverse rate. More...
 
virtual const List< Tuple2< label, scalar > > & beta () const =0
 Third-body efficiencies (beta = 1-alpha) More...
 
virtual void dcidc (const scalar p, const scalar T, const scalarField &c, scalarField &dcidc) const =0
 Species concentration derivative of the pressure dependent term. More...
 
virtual scalar dcidT (const scalar p, const scalar T, const scalarField &c) const =0
 Temperature derivative of the pressure dependent term. More...
 
void operator= (const Reaction< ReactionThermo > &)=delete
 Disallow default bitwise assignment. More...
 

Friends

Ostreamoperator (Ostream &, const SolidReaction< ReactionThermo > &)
 

Additional Inherited Members

- Static Public Member Functions inherited from Reaction< ReactionThermo >
static autoPtr< Reaction< ReactionThermo > > New (const speciesTable &species, const HashPtrTable< ReactionThermo > &thermoDatabase, const dictionary &dict)
 Return a pointer to new patchField created on freestore from dict. More...
 
- Static Public Attributes inherited from Reaction< ReactionThermo >
static label nUnNamedReactions
 Number of un-named reactions. More...
 
static scalar TlowDefault
 Default temperature limits of applicability of reaction rates. More...
 
static scalar ThighDefault
 

Detailed Description

template<class ReactionThermo>
class Foam::SolidReaction< ReactionThermo >

Read solid reactions of the type S1 = S2 + G1.

Source files

Definition at line 49 of file SolidReaction.H.

Constructor & Destructor Documentation

◆ SolidReaction() [1/3]

SolidReaction ( const Reaction< ReactionThermo > &  reaction,
const speciesTable pyrolisisGases,
const List< specieCoeffs > &  glhs,
const List< specieCoeffs > &  grhs 
)

Construct from components.

Definition at line 33 of file SolidReaction.C.

Referenced by SolidReaction< ReactionThermo >::SolidReaction().

Here is the caller graph for this function:

◆ SolidReaction() [2/3]

SolidReaction ( const SolidReaction< ReactionThermo > &  r,
const speciesTable pyrolisisGases 
)

Construct as copy given new speciesTable.

Definition at line 49 of file SolidReaction.C.

References SolidReaction< ReactionThermo >::SolidReaction().

Here is the call graph for this function:

◆ SolidReaction() [3/3]

SolidReaction ( const speciesTable species,
const HashPtrTable< ReactionThermo > &  thermoDatabase,
const dictionary dict 
)

Construct from dictionary.

Definition at line 63 of file SolidReaction.C.

References dictionary::lookup().

Here is the call graph for this function:

◆ ~SolidReaction()

Member Function Documentation

◆ TypeName()

TypeName ( "SolidReaction< ReactionThermo >"  )

Runtime type information.

◆ grhs()

const Foam::List< Foam::specieCoeffs > & grhs ( ) const
virtual

Access to the gas components of the left hand side.

Definition at line 96 of file SolidReaction.C.

References SolidReaction< ReactionThermo >::gasSpecies().

Referenced by pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::omega(), and SolidReaction< ReactionThermo >::~SolidReaction().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ glhs()

const Foam::List< Foam::specieCoeffs > & glhs ( ) const
virtual

Access to the gas components of the right hand side.

Definition at line 88 of file SolidReaction.C.

Referenced by SolidReaction< ReactionThermo >::~SolidReaction().

Here is the caller graph for this function:

◆ gasSpecies()

const Foam::speciesTable & gasSpecies ( ) const
virtual

Access to gas specie list.

Definition at line 104 of file SolidReaction.C.

Referenced by SolidReaction< ReactionThermo >::grhs(), and SolidReaction< ReactionThermo >::~SolidReaction().

Here is the caller graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Reimplemented from Reaction< ReactionThermo >.

Definition at line 111 of file SolidReaction.C.

References Foam::mag(), reaction, List< T >::size(), OStringStream::str(), and Foam::writeEntry().

Referenced by SolidReaction< ReactionThermo >::~SolidReaction().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

void operator= ( const SolidReaction< ReactionThermo > &  )
delete

Disallow default bitwise assignment.

Referenced by SolidReaction< ReactionThermo >::~SolidReaction().

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator

Ostream& operator ( Ostream ,
const SolidReaction< ReactionThermo > &   
)
friend

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