43 <<
"number of efficiencies = " <<
size()
44 <<
" is not equal to the number of species " << species_.
size()
59 if (
dict.found(
"coeffs"))
62 if (coeffs.
size() != species_.
size())
65 <<
"number of efficiencies = " << coeffs.
size()
66 <<
" is not equal to the number of species " << species_.
size()
77 scalar defaultEff =
dict.lookup<scalar>(
"defaultEfficiency");
90 M += operator[](i)*
c[i];
109 coeffs[i].
first() = species_[i];
110 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)