FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

Reaction< ReactionThermo > Class Template Reference

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

#include <specie/Reaction.H>


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 65 of file Reaction.H.

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 > &)

Constructor & Destructor Documentation

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

Construct from components.

Definition at line 72 of file Reaction.C.

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

Construct as copy given new speciesTable.

Definition at line 91 of file Reaction.C.

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

Construct from Istream.

Definition at line 197 of file Reaction.C.

virtual ~Reaction (  ) [inline, virtual]

Definition at line 243 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  
) [static]

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

Definition at line 215 of file Reaction.C.

References Foam::endl(), IOstream::eof(), Foam::exit(), Foam::FatalIOError, and FatalIOErrorIn.

Referenced by Reaction< ReactionThermo >::iNew::operator()().

scalar kr ( const scalar   kfwd,
const scalar   T,
const scalar   p,
const scalarField &   c  
) const [virtual]
scalar kr ( const scalar   T,
const scalar   p,
const scalarField &   c  
) const [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 342 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