Go to the documentation of this file.
41 if (size() != species_.size())
44 <<
"number of efficiencies = " << size()
45 <<
" is not equal to the number of species " << species_.size()
54 const dictionary&
dict
60 List<Tuple2<word, scalar>> coeffs;
61 if (
dict.readIfPresent(
"coeffs", coeffs))
63 if (coeffs.size() != species_.size())
66 <<
"number of efficiencies = " << coeffs.size()
67 <<
" is not equat to the number of species " << species_.size()
73 operator[](species[coeffs[i].first()]) = coeffs[i].second();
78 const scalar defaultEff =
dict.get<scalar>(
"defaultEfficiency");
91 M += operator[](i)*
c[i];
100 List<Tuple2<word, scalar>> coeffs(species_.size());
103 coeffs[i].first() = species_[i];
104 coeffs[i].second() = operator[](i);
116 const thirdBodyEfficiencies& tbes
List< scalar > scalarList
A List of scalars.
void write(Ostream &os) const
scalar M(const scalarList &c) const
A wordList with hashed named lookup, which can be faster in some situations than using the normal lis...
hashedWordList speciesTable
A table of species as a hashedWordList.
void operator=(const UList< T > &a)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
virtual bool write(const token &tok)=0
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Ostream & writeEntry(const keyType &key, const T &value)
const dimensionedScalar c
#define FatalIOErrorInFunction(ios)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
thirdBodyEfficiencies(const speciesTable &species, const scalarList &efficiencies)