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.
specieCoeffs | ( | const speciesTable & | species, |
Istream & | is | ||
) |
Construct from species table and input stream.
Definition at line 33 of file specieCoeffs.C.
References Foam::exit(), specieCoeffs::exponent, Foam::FatalIOError, FatalIOErrorInFunction, hashedWordList::found(), specieCoeffs::index, token::info(), token::isNumber(), token::isWord(), token::number(), specieCoeffs::stoichCoeff, and token::wordToken().
|
static |
Construct the left- and right-hand-side reaction coefficients.
Definition at line 94 of file specieCoeffs.C.
References token::ADD, DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), token::ASSIGN, DynamicList< T, SizeInc, SizeMult, SizeDiv >::clear(), UList< T >::empty(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, IOstream::good(), token::isPunctuation(), UList< T >::last(), Istream::putBack(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::remove(), and DynamicList< T, SizeInc, SizeMult, SizeDiv >::shrink().
Referenced by fluxLimitedLangmuirHinshelwoodReactionRate::fluxLimitedLangmuirHinshelwoodReactionRate(), and reaction::reaction().
|
static |
Write the string representation of the specieCoeffs list.
Definition at line 176 of file specieCoeffs.C.
References Foam::mag(), and List< T >::size().
Referenced by reaction::write().
|
static |
Return string representation of reaction.
Definition at line 202 of file specieCoeffs.C.
|
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!=(), specieCoeffs::operator==(), and specieCoeffs::specieCoeffs().
scalar stoichCoeff |
Stoichiometric coefficient.
Definition at line 64 of file specieCoeffs.H.
Referenced by specieCoeffs::specieCoeffs().
specieExponent exponent |
Exponent of the specie concentration.
Definition at line 67 of file specieCoeffs.H.
Referenced by specieCoeffs::specieCoeffs().