IrreversibleReaction< ReactionType, ReactionThermo, ReactionRate > Class Template Reference

Simple extension of Reaction to handle irreversible reactions. More...

Inheritance diagram for IrreversibleReaction< ReactionType, ReactionThermo, ReactionRate >:
Collaboration diagram for IrreversibleReaction< ReactionType, ReactionThermo, ReactionRate >:

Public Member Functions

 TypeName ("irreversible")
 Runtime type information. More...
 
 IrreversibleReaction (const ReactionType< ReactionThermo > &reaction, const ReactionRate &reactionRate)
 Construct from components. More...
 
 IrreversibleReaction (const IrreversibleReaction< ReactionType, ReactionThermo, ReactionRate > &, const speciesTable &species)
 Construct as copy given new speciesTable. More...
 
 IrreversibleReaction (const speciesTable &species, const HashPtrTable< ReactionThermo > &thermoDatabase, const dictionary &dict)
 Construct from dictionary. More...
 
virtual autoPtr< Reaction< ReactionThermo > > clone () const
 Construct and return a clone. More...
 
virtual autoPtr< Reaction< ReactionThermo > > clone (const speciesTable &species) const
 Construct and return a clone with new speciesTable. More...
 
virtual ~IrreversibleReaction ()
 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 forward 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 reverse 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 IrreversibleReaction< ReactionType, ReactionThermo, ReactionRate > &)=delete
 Disallow default bitwise assignment. More...
 

Detailed Description

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

Simple extension of Reaction to handle irreversible reactions.

Source files

Definition at line 54 of file IrreversibleReaction.H.

Constructor & Destructor Documentation

◆ IrreversibleReaction() [1/3]

IrreversibleReaction ( const ReactionType< ReactionThermo > &  reaction,
const ReactionRate &  reactionRate 
)

Construct from components.

Definition at line 38 of file IrreversibleReaction.C.

Referenced by IrreversibleReaction< ReactionType, ReactionThermo, ReactionRate >::IrreversibleReaction().

Here is the caller graph for this function:

◆ IrreversibleReaction() [2/3]

IrreversibleReaction ( const IrreversibleReaction< ReactionType, ReactionThermo, ReactionRate > &  irr,
const speciesTable species 
)

Construct as copy given new speciesTable.

Definition at line 75 of file IrreversibleReaction.C.

◆ IrreversibleReaction() [3/3]

IrreversibleReaction ( const speciesTable species,
const HashPtrTable< ReactionThermo > &  thermoDatabase,
const dictionary dict 
)

Construct from dictionary.

Definition at line 56 of file IrreversibleReaction.C.

References IrreversibleReaction< ReactionType, ReactionThermo, ReactionRate >::IrreversibleReaction().

Here is the call graph for this function:

◆ ~IrreversibleReaction()

Member Function Documentation

◆ TypeName()

TypeName ( "irreversible"  )

Runtime type information.

◆ clone() [1/2]

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

Construct and return a clone.

Definition at line 99 of file IrreversibleReaction.H.

◆ clone() [2/2]

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

Construct and return a clone with new speciesTable.

Definition at line 114 of file IrreversibleReaction.H.

◆ kf()

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

Forward rate constant.

Definition at line 99 of file IrreversibleReaction.C.

Referenced by IrreversibleReaction< ReactionType, ReactionThermo, ReactionRate >::~IrreversibleReaction().

Here is the caller graph for this function:

◆ 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 forward rate constant.

Returns 0

Definition at line 121 of file IrreversibleReaction.C.

Referenced by IrreversibleReaction< ReactionType, ReactionThermo, ReactionRate >::~IrreversibleReaction().

Here is the caller graph for this function:

◆ kr() [2/2]

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

Reverse rate constant.

Returns 0

Definition at line 144 of file IrreversibleReaction.C.

◆ dkfdT()

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

Temperature derivative of forward rate.

Definition at line 166 of file IrreversibleReaction.C.

Referenced by IrreversibleReaction< ReactionType, ReactionThermo, ReactionRate >::~IrreversibleReaction().

Here is the caller graph for this function:

◆ dkrdT()

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

Temperature derivative of reverse rate.

Returns 0

Definition at line 188 of file IrreversibleReaction.C.

Referenced by IrreversibleReaction< ReactionType, ReactionThermo, ReactionRate >::~IrreversibleReaction().

Here is the caller graph for this function:

◆ beta()

const Foam::List< Foam::Tuple2< Foam::label, Foam::scalar > > & beta ( ) const
virtual

Third-body efficiencies (beta = 1-alpha)

non-empty only for third-body reactions with enhanced molecularity (alpha != 1)

Definition at line 212 of file IrreversibleReaction.C.

References IrreversibleReaction< ReactionType, ReactionThermo, ReactionRate >::beta().

Referenced by IrreversibleReaction< ReactionType, ReactionThermo, ReactionRate >::beta(), and IrreversibleReaction< ReactionType, ReactionThermo, ReactionRate >::~IrreversibleReaction().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dcidc()

void dcidc ( const scalar  p,
const scalar  T,
const scalarField c,
scalarField dcidc 
) const
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 230 of file IrreversibleReaction.C.

References IrreversibleReaction< ReactionType, ReactionThermo, ReactionRate >::dcidc().

Referenced by IrreversibleReaction< ReactionType, ReactionThermo, ReactionRate >::dcidc(), and IrreversibleReaction< ReactionType, ReactionThermo, ReactionRate >::~IrreversibleReaction().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dcidT()

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

Temperature derivative of the pressure dependent term.

By default this value is 0 since ddT of molecularity is approx.0

Definition at line 253 of file IrreversibleReaction.C.

References IrreversibleReaction< ReactionType, ReactionThermo, ReactionRate >::dcidT(), and IrreversibleReaction< ReactionType, ReactionThermo, ReactionRate >::write().

Referenced by IrreversibleReaction< ReactionType, ReactionThermo, ReactionRate >::dcidT(), and IrreversibleReaction< ReactionType, ReactionThermo, ReactionRate >::~IrreversibleReaction().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 271 of file IrreversibleReaction.C.

References Foam::blockMeshTools::write().

Referenced by IrreversibleReaction< ReactionType, ReactionThermo, ReactionRate >::dcidT(), and IrreversibleReaction< ReactionType, ReactionThermo, ReactionRate >::~IrreversibleReaction().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

void operator= ( const IrreversibleReaction< ReactionType, ReactionThermo, ReactionRate > &  )
delete

Disallow default bitwise assignment.


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