Class to hold the specie index and its coefficients in the reaction rate expression. More...

Public Member Functions | |
| specieCoeffs () | |
| Construct null. More... | |
| specieCoeffs (const speciesTable &species, Istream &is) | |
| Construct from species table and input stream. More... | |
| bool | operator== (const specieCoeffs &sc) const |
| Equality comparison. More... | |
| bool | operator!= (const specieCoeffs &sc) const |
| Inequality comparison. More... | |
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 |
| Index of the specie. More... | |
| scalar | stoichCoeff |
| Stoichiometric coefficient. More... | |
| specieExponent | exponent |
| Exponent of the specie concentration. More... | |
Friends | |
| Ostream & | operator<< (Ostream &os, const specieCoeffs &sc) |
| Write to output stream. More... | |
Class to hold the specie index and its coefficients in the reaction rate expression.
Definition at line 54 of file specieCoeffs.H.
|
inline |
Construct null.
Definition at line 73 of file specieCoeffs.H.
References specieCoeffs::reactionStr(), and specieCoeffs::setLRhs().

| specieCoeffs | ( | const speciesTable & | species, |
| Istream & | is | ||
| ) |
Construct from species table and input stream.
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().

|
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(), 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 specieCoeffs::setLRhs(), specieCoeffs::specieCoeffs(), and reaction::write().


|
static |
Return string representation of reaction.
Definition at line 203 of file specieCoeffs.C.
References OStringStream::str().

|
inline |
|
inline |
Inequality comparison.
Definition at line 122 of file specieCoeffs.H.
References specieCoeffs::index.
|
friend |
Write to output stream.
Definition at line 128 of file specieCoeffs.H.
| label index |
Index of the specie.
Definition at line 61 of file specieCoeffs.H.
Referenced by specieCoeffs::operator!=(), Foam::operator<<(), and specieCoeffs::operator==().
| scalar stoichCoeff |
Stoichiometric coefficient.
Definition at line 64 of file specieCoeffs.H.
Referenced by Foam::operator<<().
| specieExponent exponent |
Exponent of the specie concentration.
Definition at line 67 of file specieCoeffs.H.
Referenced by Foam::operator<<().