39 if (size() != species_.size())
42 <<
"number of efficiencies = " << size()
43 <<
" is not equal to the number of species " << species_.size()
58 if (dict.
found(
"coeffs"))
61 if (coeffs.size() != species_.size())
64 <<
"number of efficiencies = " << coeffs.size()
65 <<
" is not equal to the number of species " << species_.size()
71 operator[](species[coeffs[i].first()]) = coeffs[i].second();
76 scalar defaultEff = dict.
lookup<scalar>(
"defaultEfficiency");
77 scalarList::operator=(defaultEff);
101 coeffs[i].first() = species_[i];
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
#define forAll(list, i)
Loop across all elements in list.
virtual Ostream & write(const char)=0
Write character.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
scalar & operator[](const label)
Return element of UList.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void size(const label)
Override size to be inconsistent with allocated storage.
const dimensionedScalar c
Speed of light in a vacuum.
scalar M(const scalarList &c) const
Calculate and return M, the concentration of the third-bodies.
List< scalar > scalarList
A List of scalars.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
thirdBodyEfficiencies(const speciesTable &species, const scalarList &efficiencies)
Construct from components.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
A wordList with hashed indices for faster lookup by name.
void write(Ostream &os) const
Write to stream.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.