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 scalarField::operator=(defaultEff);
108 coeffs[i].first() = species_[i];
labelList first(const UList< labelPair > &p)
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)
scalar M(const scalarField &c) const
Calculate and return M, the concentration of the third-bodies.
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.
tmp< scalarField > dMdc(const scalarField &c) const
Calculate and return the derivative of M, w.r.t. the species.
const dimensionedScalar c
Speed of light in a vacuum.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
volScalarField scalarField(fieldObject, mesh)
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.
A class for managing temporary objects.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.