ReversibleReaction< ReactionType, ReactionThermo, ReactionRate > Class Template Reference

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

Inheritance diagram for ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >:
[legend]
Collaboration diagram for ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >:
[legend]

Public Member Functions

 TypeName ("reversible")
 Runtime type information. More...
 
 ReversibleReaction (const ReactionType< ReactionThermo > &reaction, const ReactionRate &k)
 Construct from components. More...
 
 ReversibleReaction (const ReversibleReaction< ReactionType, ReactionThermo, ReactionRate > &, const speciesTable &species)
 Construct as copy given new speciesTable. More...
 
 ReversibleReaction (const speciesTable &species, const ReactionTable< ReactionThermo > &thermoDatabase, const dictionary &dict)
 Construct from dictionary. More...
 
virtual autoPtr< ReactionType< ReactionThermo > > clone () const
 Construct and return a clone. More...
 
virtual autoPtr< ReactionType< ReactionThermo > > clone (const speciesTable &species) const
 Construct and return a clone with new speciesTable. More...
 
virtual ~ReversibleReaction ()=default
 Destructor. More...
 
virtual scalar kf (const scalar p, const scalar T, const scalarField &c) const
 Forward rate constant. More...
 
virtual scalar kr (const scalar kfwd, const scalar p, const scalar T, const scalarField &c) const
 Reverse rate constant from the given formard rate constant. More...
 
virtual scalar kr (const scalar p, const scalar T, const scalarField &c) const
 Reverse rate constant. More...
 
virtual void write (Ostream &) const
 Write. More...
 

Detailed Description

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

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

Source files

Definition at line 61 of file ReversibleReaction.H.

Constructor & Destructor Documentation

◆ ReversibleReaction() [1/3]

ReversibleReaction ( const ReactionType< ReactionThermo > &  reaction,
const ReactionRate &  k 
)

Construct from components.

Definition at line 39 of file ReversibleReaction.C.

◆ ReversibleReaction() [2/3]

ReversibleReaction ( const ReversibleReaction< ReactionType, ReactionThermo, ReactionRate > &  rr,
const speciesTable species 
)

Construct as copy given new speciesTable.

Definition at line 76 of file ReversibleReaction.C.

◆ ReversibleReaction() [3/3]

ReversibleReaction ( const speciesTable species,
const ReactionTable< ReactionThermo > &  thermoDatabase,
const dictionary dict 
)

Construct from dictionary.

Definition at line 57 of file ReversibleReaction.C.

◆ ~ReversibleReaction()

virtual ~ReversibleReaction ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "reversible"  )

Runtime type information.

◆ clone() [1/2]

virtual autoPtr< ReactionType< ReactionThermo > > clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 120 of file ReversibleReaction.H.

◆ clone() [2/2]

virtual autoPtr< ReactionType< ReactionThermo > > clone ( const speciesTable species) const
inlinevirtual

Construct and return a clone with new speciesTable.

Definition at line 134 of file ReversibleReaction.H.

◆ kf()

Foam::scalar kf ( const scalar  p,
const scalar  T,
const scalarField c 
) const
virtual

Forward rate constant.

Definition at line 101 of file ReversibleReaction.C.

References p, and T.

◆ kr() [1/2]

Foam::scalar kr ( const scalar  kfwd,
const scalar  p,
const scalar  T,
const scalarField c 
) const
virtual

Reverse rate constant from the given formard rate constant.

Definition at line 123 of file ReversibleReaction.C.

References e, Foam::max(), p, and T.

Here is the call graph for this function:

◆ kr() [2/2]

Foam::scalar kr ( const scalar  p,
const scalar  T,
const scalarField c 
) const
virtual

Reverse rate constant.

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

Definition at line 146 of file ReversibleReaction.C.

References p, and T.

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 168 of file ReversibleReaction.C.

References os(), and ObukhovLength::write().

Here is the call graph for this function:

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