39 if (size() != species_.size())
42 <<
"number of efficiencies = " << size()
43 <<
" is not equal to the number of species " << species_.size()
60 "thirdBodyEfficiencies::thirdBodyEfficiencies" 61 "(const speciesTable& species, Istream& is)" 64 scalarList::operator=(defaultEff);
79 ) <<
"expected <word>, found " << t.
info()
84 if (t.
pToken() != token::END_LIST)
89 ) <<
"expected ')', found " << t.
info()
93 if (size() != species_.size())
98 ) <<
"number of efficiencies = " << size()
99 <<
" is not equal to the number of species " << species_.size()
114 if (dict.
found(
"coeffs"))
117 if (coeffs.size() != species_.size())
120 <<
"number of efficiencies = " << coeffs.size()
121 <<
" is not equat to the number of species " << species_.size()
127 operator[](species[coeffs[i].first()]) = coeffs[i].second();
133 scalarList::operator=(defaultEff);
157 coeffs[i].first() = species_[i];
176 scalar val = orderedTbes[0];
179 scalar valMaxCount = val;
182 for (
label i=1; i<orderedTbes.
size(); i++)
184 if (
equal(orderedTbes[i], val))
190 if (count > maxCount)
197 val = orderedTbes[i];
201 if (count > maxCount)
#define forAll(list, i)
Loop across all elements in list.
bool notEqual(const Scalar s1, const Scalar s2)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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...
T & operator[](const label)
Return element of UList.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
void size(const label)
Override size to be inconsistent with allocated storage.
A token holds items read from Istream.
punctuationToken pToken() const
List< scalar > scalarList
A List of scalars.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
char readBeginList(const char *funcName)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
thirdBodyEfficiencies(const speciesTable &species, const scalarList &efficiencies)
Construct from components.
scalar M(const scalarList &c) const
Calculate and return M, the concentration of the third-bodies.
bool equal(const T &s1, const T &s2)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
A wordList with hashed indices for faster lookup by name.
InfoProxy< token > info() const
Return info proxy.
const dimensionedScalar c
Speed of light in a vacuum.
const word & wordToken() const
bool isPunctuation() const
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.