OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

Reaction< ReactionThermo > Class Template Reference

Simple extension of ReactionThermo to handle reaction kinetics in addition to the equilibrium thermodynamics already handled. More...

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

List of all members.


Classes

class  iNew
 Class used for the read-construction of PtrLists of reaction. More...
struct  specieCoeffs
 Class to hold the specie index and its coefficients in the. More...

Public Member Functions

 TypeName ("Reaction")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, Reaction, Istream,(const speciesTable &species, const HashPtrTable< ReactionThermo > &thermoDatabase, Istream &is),(species, thermoDatabase, is))
 Reaction (const speciesTable &species, const List< specieCoeffs > &lhs, const List< specieCoeffs > &rhs, const HashPtrTable< ReactionThermo > &thermoDatabase)
 Construct from components.
 Reaction (const Reaction< ReactionThermo > &, const speciesTable &species)
 Construct as copy given new speciesTable.
 Reaction (const speciesTable &species, const HashPtrTable< ReactionThermo > &thermoDatabase, Istream &is)
 Construct from Istream.
virtual autoPtr< Reaction
< ReactionThermo > > 
clone () const
 Construct and return a clone.
virtual autoPtr< Reaction
< ReactionThermo > > 
clone (const speciesTable &species) const
 Construct and return a clone with new speciesTable.
virtual ~Reaction ()
const List< specieCoeffs > & lhs () const
const List< specieCoeffs > & rhs () const
virtual scalar kf (const scalar T, const scalar p, const scalarField &c) const
 Forward rate constant.
virtual scalar kr (const scalar kfwd, const scalar T, const scalar p, const scalarField &c) const
 Reverse rate constant from the given forward rate constant.
virtual scalar kr (const scalar T, const scalar p, const scalarField &c) const
 Reverse rate constant.
virtual void write (Ostream &) const
 Write.

Static Public Member Functions

static autoPtr< Reaction
< ReactionThermo > > 
New (const speciesTable &species, const HashPtrTable< ReactionThermo > &thermoDatabase, Istream &)
 Return a pointer to a new patchField created on freestore from input.

Friends

Ostream & operator (Ostream &, const Reaction< ReactionThermo > &)

Detailed Description

template<class ReactionThermo>
class Foam::Reaction< ReactionThermo >

Simple extension of ReactionThermo to handle reaction kinetics in addition to the equilibrium thermodynamics already handled.

Source files

Definition at line 60 of file Reaction.H.


Constructor & Destructor Documentation

Reaction ( const speciesTable &  species,
const List< specieCoeffs > &  lhs,
const List< specieCoeffs > &  rhs,
const HashPtrTable< ReactionThermo > &  thermoDatabase 
) [inline]

Construct from components.

Definition at line 65 of file Reaction.C.

Reaction ( const Reaction< ReactionThermo > &  r,
const speciesTable &  species 
) [inline]

Construct as copy given new speciesTable.

Definition at line 84 of file Reaction.C.

Reaction ( const speciesTable &  species,
const HashPtrTable< ReactionThermo > &  thermoDatabase,
Istream &  is 
) [inline]

Construct from Istream.

Definition at line 190 of file Reaction.C.

virtual ~Reaction (  )  [inline, virtual]

Definition at line 240 of file Reaction.H.


Member Function Documentation

TypeName ( "Reaction< ReactionThermo >"   ) 

Runtime type information.

declareRunTimeSelectionTable ( autoPtr  ,
Reaction< ReactionThermo >  ,
Istream  ,
(const speciesTable &species, const HashPtrTable< ReactionThermo > &thermoDatabase, Istream &is)  ,
(species, thermoDatabase, is)   
)

virtual autoPtr<Reaction<ReactionThermo> > clone (  )  const [inline, virtual]

virtual autoPtr<Reaction<ReactionThermo> > clone ( const speciesTable &  species  )  const [inline, virtual]

autoPtr< Reaction< ReactionThermo > > New ( const speciesTable &  species,
const HashPtrTable< ReactionThermo > &  thermoDatabase,
Istream &  is 
) [inline, static]

Return a pointer to a new patchField created on freestore from input.

Definition at line 208 of file Reaction.C.

const List< typename Reaction< ReactionThermo >::specieCoeffs > & lhs (  )  const [inline]

Definition at line 29 of file ReactionI.H.

const List< typename Reaction< ReactionThermo >::specieCoeffs > & rhs (  )  const [inline]

Definition at line 37 of file ReactionI.H.

scalar kf ( const scalar  T,
const scalar  p,
const scalarField &  c 
) const [inline, virtual]

scalar kr ( const scalar  kfwd,
const scalar  T,
const scalar  p,
const scalarField &  c 
) const [inline, virtual]

Reverse rate constant from the given forward rate constant.

Reimplemented in NonEquilibriumReversibleReaction< ReactionThermo, ReactionRate >, and ReversibleReaction< ReactionThermo, ReactionRate >.

Definition at line 323 of file Reaction.C.

scalar kr ( const scalar  T,
const scalar  p,
const scalarField &  c 
) const [inline, virtual]

Reverse rate constant.

Note this evaluates the forward rate constant and divides by the equilibrium constant

Reimplemented in NonEquilibriumReversibleReaction< ReactionThermo, ReactionRate >, and ReversibleReaction< ReactionThermo, ReactionRate >.

Definition at line 335 of file Reaction.C.


Friends And Related Function Documentation

Ostream& operator ( Ostream &  ,
const Reaction< ReactionThermo > &   
) [friend]


The documentation for this class was generated from the following files:
  • src/thermophysicalModels/specie/reaction/Reactions/Reaction/Reaction.H
  • src/thermophysicalModels/specie/reaction/Reactions/Reaction/Reaction.C
  • src/thermophysicalModels/specie/reaction/Reactions/Reaction/ReactionI.H
Copyright © 2000-2009 OpenCFD Ltd