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()
76 scalar defaultEff =
dict.lookup<scalar>(
"defaultEfficiency");
89 M += operator[](i)*
c[i];
108 coeffs[i].
first() = species_[i];
109 coeffs[i].second() = operator[](i);
#define forAll(list, i)
Loop across all elements in list.
void operator=(const Field< scalar > &)
label size() const
Return the number of elements in the UList.
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,...
virtual Ostream & write(const char)=0
Write character.
T & first()
Return the first element of the list.
T & operator[](const label)
Return element of UList.
A list of keyword definitions, which are a keyword followed by any number of values (e....
A wordList with hashed indices for faster lookup by name.
thirdBodyEfficiencies(const speciesTable &species, const scalarList &efficiencies)
Construct from components.
void write(Ostream &os) const
Write to stream.
scalar M(const scalarField &c) const
Calculate and return M, the concentration of the third-bodies.
tmp< scalarField > dMdc(const scalarField &c) const
Calculate and return the derivative of M, w.r.t. the species.
A class for managing temporary objects.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const dimensionedScalar c
Speed of light in a vacuum.
errorManipArg< error, int > exit(error &err, const int errNo=1)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)