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

ReversibleReaction< ReactionThermo, ReactionRate > Class Template Reference

Simple extension of Reaction to handle reversible reactions using equilibrium thermodynamics. More...

Inheritance diagram for ReversibleReaction< ReactionThermo, ReactionRate >:
Collaboration diagram for ReversibleReaction< ReactionThermo, ReactionRate >:

List of all members.


Public Member Functions

 TypeName ("reversible")
 Runtime type information.
 ReversibleReaction (const Reaction< ReactionThermo > &reaction, const ReactionRate &k)
 Construct from components.
 ReversibleReaction (const ReversibleReaction< ReactionThermo, ReactionRate > &, const speciesTable &species)
 Construct as copy given new speciesTable.
 ReversibleReaction (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 ~ReversibleReaction ()
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 formard rate constant.
virtual scalar kr (const scalar T, const scalar p, const scalarField &c) const
 Reverse rate constant.
virtual void write (Ostream &) const
 Write.

Detailed Description

template<class ReactionThermo, class ReactionRate>
class Foam::ReversibleReaction< ReactionThermo, ReactionRate >

Simple extension of Reaction to handle reversible reactions using equilibrium thermodynamics.

Source files

Definition at line 46 of file ReversibleReaction.H.


Constructor & Destructor Documentation

ReversibleReaction ( const Reaction< ReactionThermo > &  reaction,
const ReactionRate &  k 
) [inline]

Construct from components.

Definition at line 33 of file ReversibleReaction.C.

References k().

Here is the call graph for this function:

ReversibleReaction ( const ReversibleReaction< ReactionThermo, ReactionRate > &  rr,
const speciesTable &  species 
) [inline]

Construct as copy given new speciesTable.

Definition at line 60 of file ReversibleReaction.C.

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

Construct from Istream.

Definition at line 46 of file ReversibleReaction.C.

virtual ~ReversibleReaction (  )  [inline, virtual]

Definition at line 119 of file ReversibleReaction.H.


Member Function Documentation

TypeName ( "reversible"   ) 

Runtime type information.

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

Construct and return a clone.

Reimplemented from Reaction< ReactionThermo >.

Definition at line 92 of file ReversibleReaction.H.

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

Construct and return a clone with new speciesTable.

Reimplemented from Reaction< ReactionThermo >.

Definition at line 102 of file ReversibleReaction.H.

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

Forward rate constant.

Reimplemented from Reaction< ReactionThermo >.

Definition at line 74 of file ReversibleReaction.C.

Referenced by ReversibleReaction< ReactionThermo, ReactionRate >::write().

Here is the caller graph for this function:

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

Reverse rate constant from the given formard rate constant.

Reimplemented from Reaction< ReactionThermo >.

Definition at line 86 of file ReversibleReaction.C.

Referenced by ReversibleReaction< ReactionThermo, ReactionRate >::write().

Here is the caller graph for this function:

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 from Reaction< ReactionThermo >.

Definition at line 99 of file ReversibleReaction.C.

void write ( Ostream &  os  )  const [inline, virtual]

Write.

Reimplemented from Reaction< ReactionThermo >.

Definition at line 111 of file ReversibleReaction.C.

References ReversibleReaction< ReactionThermo, ReactionRate >::kf(), and ReversibleReaction< ReactionThermo, ReactionRate >::kr().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd