Simple extension of ReactionThermo to handle reaction kinetics in addition to the equilibrium thermodynamics already handled. More...
Classes | |
struct | specieCoeffs |
Public Member Functions | |
TypeName ("Reaction") | |
declareRunTimeSelectionTable (autoPtr, Reaction, dictionary,(const speciesTable &species, const ReactionTable< ReactionThermo > &thermoDatabase, const dictionary &dict),(species, thermoDatabase, dict)) | |
Reaction (const speciesTable &species, const List< specieCoeffs > &lhs, const List< specieCoeffs > &rhs, const ReactionTable< ReactionThermo > &thermoDatabase, bool initReactionThermo=true) | |
Reaction (const Reaction< ReactionThermo > &, const speciesTable &species) | |
Reaction (const speciesTable &species, const ReactionTable< ReactionThermo > &thermoDatabase, const dictionary &dict, bool initReactionThermo=true) | |
virtual autoPtr< Reaction< ReactionThermo > > | clone () const |
virtual autoPtr< Reaction< ReactionThermo > > | clone (const speciesTable &species) const |
virtual | ~Reaction ()=default |
const word & | name () const noexcept |
const speciesTable & | species () const noexcept |
const List< specieCoeffs > & | lhs () const noexcept |
const List< specieCoeffs > & | rhs () const noexcept |
virtual const speciesTable & | gasSpecies () const |
virtual const List< specieCoeffs > & | grhs () const |
virtual const List< specieCoeffs > & | glhs () const |
void | setLRhs (Istream &, const speciesTable &, List< specieCoeffs > &lhs, List< specieCoeffs > &rhs) |
virtual scalar | kf (const scalar p, const scalar T, const scalarField &c) const |
virtual scalar | kr (const scalar kfwd, const scalar p, const scalar T, const scalarField &c) const |
virtual scalar | kr (const scalar p, const scalar T, const scalarField &c) const |
virtual void | write (Ostream &os) const |
Static Public Member Functions | |
static autoPtr< Reaction< ReactionThermo > > | New (const speciesTable &species, const ReactionTable< ReactionThermo > &thermoDatabase, const dictionary &dict) |
Static Public Attributes | |
static label | nUnNamedReactions = 0 |
Protected Member Functions | |
void | reactionStrLeft (OStringStream &reaction) const |
void | reactionStrRight (OStringStream &reaction) const |
Friends | |
Ostream & | operator (Ostream &, const Reaction< ReactionThermo > &) |
Simple extension of ReactionThermo to handle reaction kinetics in addition to the equilibrium thermodynamics already handled.
Definition at line 55 of file Reaction.H.
Reaction | ( | const speciesTable & | species, |
const List< specieCoeffs > & | lhs, | ||
const List< specieCoeffs > & | rhs, | ||
const ReactionTable< ReactionThermo > & | thermoDatabase, | ||
bool | initReactionThermo = true |
||
) |
Reaction | ( | const Reaction< ReactionThermo > & | , |
const speciesTable & | species | ||
) |
Reaction | ( | const speciesTable & | species, |
const ReactionTable< ReactionThermo > & | thermoDatabase, | ||
const dictionary & | dict, | ||
bool | initReactionThermo = true |
||
) |
|
virtualdefault |
|
protected |
Definition at line 35 of file Reaction.C.
References Foam::mag(), and reaction.
|
protected |
Definition at line 60 of file Reaction.C.
References Foam::mag(), and reaction.
TypeName | ( | "Reaction" | ) |
declareRunTimeSelectionTable | ( | autoPtr | , |
Reaction | , | ||
dictionary | , | ||
(const speciesTable &species, const ReactionTable< ReactionThermo > &thermoDatabase, const dictionary &dict) | , | ||
(species, thermoDatabase, dict) | |||
) |
Definition at line 214 of file Reaction.H.
References Reaction::New().
|
inlinevirtual |
Definition at line 221 of file Reaction.H.
References Reaction::New(), and Reaction::species().
|
static |
Definition at line 347 of file Reaction.C.
References dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, and dictionary::get().
Referenced by Reaction::clone().
|
inlinenoexcept |
Definition at line 249 of file Reaction.H.
Referenced by ReactionList< Foam::sutherlandTransport >::write().
|
inlinenoexcept |
Definition at line 252 of file Reaction.H.
Referenced by Reaction::clone().
|
inlinenoexcept |
Definition at line 255 of file Reaction.H.
|
inlinenoexcept |
Definition at line 258 of file Reaction.H.
|
virtual |
Definition at line 423 of file Reaction.C.
References NotImplemented.
|
virtual |
Definition at line 441 of file Reaction.C.
References NotImplemented.
|
virtual |
Definition at line 432 of file Reaction.C.
References NotImplemented.
void setLRhs | ( | Istream & | is, |
const speciesTable & | species, | ||
List< specieCoeffs > & | lhs, | ||
List< specieCoeffs > & | rhs | ||
) |
Definition at line 233 of file Reaction.C.
References token::ADD, DynamicList::append(), token::ASSIGN, DynamicList::clear(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, IOstream::good(), token::isPunctuation(), Istream::putBack(), DynamicList::remove(), and DynamicList::shrink().
|
virtual |
Definition at line 387 of file Reaction.C.
|
virtual |
Definition at line 399 of file Reaction.C.
|
virtual |
Definition at line 412 of file Reaction.C.
|
virtual |
Definition at line 378 of file Reaction.C.
References os(), reaction, and Ostream::writeEntry().
Referenced by ReactionList< Foam::sutherlandTransport >::write().
|
static |
Definition at line 75 of file Reaction.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.