Go to the documentation of this file.
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);
145 M += operator[](i)*
c[i];
157 coeffs[i].first() = species_[i];
158 coeffs[i].second() = operator[](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)
List< scalar > scalarList
A List of scalars.
void write(Ostream &os) const
Write to stream.
#define forAll(list, i)
Loop across all elements in list.
char readBeginList(const char *funcName)
const word & wordToken() const
scalar M(const scalarList &c) const
Calculate and return M, the concentration of the third-bodies.
A token holds items read from Istream.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
InfoProxy< token > info() const
Return info proxy.
A wordList with hashed indices for faster lookup by name.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
punctuationToken pToken() const
A list of keyword definitions, which are a keyword followed by any number of values (e....
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
const dimensionedScalar c
Speed of light in a vacuum.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
void size(const label)
Override size to be inconsistent with allocated storage.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool isPunctuation() const
bool equal(const T &s1, const T &s2)
bool notEqual(const Scalar s1, const Scalar s2)
thirdBodyEfficiencies(const speciesTable &species, const scalarList &efficiencies)
Construct from components.