Class to hold the specie index and its coefficients in the reaction rate expression. More...
Public Member Functions | |
specieCoeffs () | |
specieCoeffs (const speciesTable &species, Istream &is) | |
bool | operator== (const specieCoeffs &sc) const |
bool | operator!= (const specieCoeffs &sc) const |
Static Public Member Functions | |
static void | setLRhs (Istream &, const speciesTable &, List< specieCoeffs > &lhs, List< specieCoeffs > &rhs) |
Construct the left- and right-hand-side reaction coefficients. More... | |
static void | reactionStr (OStringStream &reaction, const speciesTable &, const List< specieCoeffs > &scs) |
Write the string representation of the specieCoeffs list. More... | |
static string | reactionStr (OStringStream &reaction, const speciesTable &, const List< specieCoeffs > &lhs, const List< specieCoeffs > &rhs) |
Return string representation of reaction. More... | |
Public Attributes | |
label | index |
scalar | stoichCoeff |
scalar | exponent |
Friends | |
Ostream & | operator<< (Ostream &os, const specieCoeffs &sc) |
Class to hold the specie index and its coefficients in the reaction rate expression.
Definition at line 54 of file specieCoeffs.H.
|
inline |
Definition at line 62 of file specieCoeffs.H.
specieCoeffs | ( | const speciesTable & | species, |
Istream & | is | ||
) |
Definition at line 34 of file specieCoeffs.C.
References Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, hashedWordList::found(), token::info(), token::isNumber(), token::isWord(), token::number(), specieCoeffs::setLRhs(), and token::wordToken().
|
inline |
Definition at line 71 of file specieCoeffs.H.
References specieCoeffs::index.
|
inline |
Definition at line 76 of file specieCoeffs.H.
References specieCoeffs::index.
|
static |
Construct the left- and right-hand-side reaction coefficients.
Definition at line 95 of file specieCoeffs.C.
References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::clear(), UList< T >::empty(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, IOstream::good(), token::isPunctuation(), UList< T >::last(), Istream::putBack(), specieCoeffs::reactionStr(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::remove(), and DynamicList< T, SizeInc, SizeMult, SizeDiv >::shrink().
Referenced by fluxLimitedLangmuirHinshelwoodReactionRate::fluxLimitedLangmuirHinshelwoodReactionRate(), Foam::operator<<(), reaction::reaction(), and specieCoeffs::specieCoeffs().
|
static |
Write the string representation of the specieCoeffs list.
Definition at line 177 of file specieCoeffs.C.
References Foam::mag(), and List< T >::size().
Referenced by Foam::operator<<(), specieCoeffs::setLRhs(), and reaction::write().
|
static |
Return string representation of reaction.
Definition at line 203 of file specieCoeffs.C.
References OStringStream::str().
|
friend |
Definition at line 81 of file specieCoeffs.H.
label index |
Definition at line 58 of file specieCoeffs.H.
Referenced by specieCoeffs::operator!=(), Foam::operator<<(), and specieCoeffs::operator==().
scalar stoichCoeff |
Definition at line 59 of file specieCoeffs.H.
Referenced by Foam::operator<<().
scalar exponent |
Definition at line 60 of file specieCoeffs.H.
Referenced by Foam::operator<<().