Simple extension of Reaction to handle reversible reactions using equilibrium thermodynamics. More...
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 HashPtrTable< 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 () |
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 scalar | dkfdT (const scalar p, const scalar T, const scalarField &c) const |
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 |
Temperature derivative of backward rate. More... | |
virtual const List< Tuple2< label, scalar > > & | beta () const |
Third-body efficiencies (beta = 1-alpha) More... | |
virtual void | dcidc (const scalar p, const scalar T, const scalarField &c, scalarField &dcidc) const |
Species concentration derivative of the pressure dependent term. More... | |
virtual scalar | dcidT (const scalar p, const scalar T, const scalarField &c) const |
Temperature derivative of the pressure dependent term. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
void | operator= (const ReversibleReaction< ReactionType, ReactionThermo, ReactionRate > &)=delete |
Disallow default bitwise assignment. More... | |
Simple extension of Reaction to handle reversible reactions using equilibrium thermodynamics.
Definition at line 55 of file ReversibleReaction.H.
ReversibleReaction | ( | const ReactionType< ReactionThermo > & | reaction, |
const ReactionRate & | k | ||
) |
Construct from components.
Definition at line 38 of file ReversibleReaction.C.
Referenced by ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::ReversibleReaction().
ReversibleReaction | ( | const ReversibleReaction< ReactionType, ReactionThermo, ReactionRate > & | rr, |
const speciesTable & | species | ||
) |
Construct as copy given new speciesTable.
Definition at line 75 of file ReversibleReaction.C.
ReversibleReaction | ( | const speciesTable & | species, |
const HashPtrTable< ReactionThermo > & | thermoDatabase, | ||
const dictionary & | dict | ||
) |
Construct from dictionary.
Definition at line 56 of file ReversibleReaction.C.
References ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::ReversibleReaction().
|
inlinevirtual |
Destructor.
Definition at line 132 of file ReversibleReaction.H.
References ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::beta(), Foam::constant::universal::c, ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::dcidc(), ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::dcidT(), ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::dkfdT(), ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::dkrdT(), ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::kf(), ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::kr(), p, Foam::T(), and ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::write().
TypeName | ( | "reversible" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 100 of file ReversibleReaction.H.
|
inlinevirtual |
Construct and return a clone with new speciesTable.
Definition at line 115 of file ReversibleReaction.H.
|
virtual |
Forward rate constant.
Definition at line 99 of file ReversibleReaction.C.
Referenced by ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::~ReversibleReaction().
|
virtual |
Reverse rate constant from the given formard rate constant.
Definition at line 121 of file ReversibleReaction.C.
References Foam::max().
Referenced by ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::~ReversibleReaction().
|
virtual |
Reverse rate constant.
Note this evaluates the forward rate constant and divides by the equilibrium constant
Definition at line 144 of file ReversibleReaction.C.
|
virtual |
Temperature derivative of forward rate.
Definition at line 166 of file ReversibleReaction.C.
Referenced by ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::~ReversibleReaction().
|
virtual |
Temperature derivative of backward rate.
Definition at line 188 of file ReversibleReaction.C.
References Foam::max().
Referenced by ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::~ReversibleReaction().
|
virtual |
Third-body efficiencies (beta = 1-alpha)
non-empty only for third-body reactions with enhanced molecularity (alpha != 1)
Definition at line 214 of file ReversibleReaction.C.
References ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::beta().
Referenced by ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::beta(), and ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::~ReversibleReaction().
|
virtual |
Species concentration derivative of the pressure dependent term.
By default this value is 1 as it multiplies the third-body term
Definition at line 232 of file ReversibleReaction.C.
References ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::dcidc().
Referenced by ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::dcidc(), and ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::~ReversibleReaction().
|
virtual |
Temperature derivative of the pressure dependent term.
By default this value is 0 since ddT of molecularity is approx.0
Definition at line 255 of file ReversibleReaction.C.
References ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::dcidT(), and Foam::blockMeshTools::write().
Referenced by ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::dcidT(), and ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::~ReversibleReaction().
|
virtual |
Write.
Definition at line 277 of file ReversibleReaction.C.
References Foam::blockMeshTools::write().
Referenced by ReversibleReaction< ReactionType, ReactionThermo, ReactionRate >::~ReversibleReaction().
|
delete |
Disallow default bitwise assignment.