31 template<
class EquationOfState,
int PolySize>
40 CpCoeffs_(
"CpCoeffs<" +
Foam::name(PolySize) +
'>', is),
46 CpCoeffs_ *= this->W();
48 hCoeffs_ = CpCoeffs_.integral();
49 sCoeffs_ = CpCoeffs_.integralMinus1();
52 hCoeffs_[0] += Hf_ - hCoeffs_.value(
Tstd);
55 sCoeffs_[0] += Sf_ - sCoeffs_.value(
Tstd);
59 template<
class EquationOfState,
int PolySize>
65 EquationOfState(dict),
80 CpCoeffs_ *= this->W();
82 hCoeffs_ = CpCoeffs_.integral();
83 sCoeffs_ = CpCoeffs_.integralMinus1();
86 hCoeffs_[0] += Hf_ - hCoeffs_.value(
Tstd);
89 sCoeffs_[0] += Sf_ - sCoeffs_.value(
Tstd);
95 template<
class EquationOfState,
int PolySize>
104 dict.
add(
"Hf", Hf_/this->W());
105 dict.
add(
"Sf", Sf_/this->W());
117 template<
class EquationOfState,
int PolySize>
124 os << static_cast<const EquationOfState&>(pt) <<
tab 125 << pt.Hf_/pt.W() <<
tab 126 << pt.Sf_/pt.W() <<
tab 128 << pt.CpCoeffs_/pt.W();
135 "const hPolynomialThermo<EquationOfState, PolySize>&"
Ostream & indent(Ostream &os)
Indent stream.
A list of keyword definitions, which are a keyword followed by any number of values (e...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
const word dictName() const
Return the local dictionary name (final part of scoped name)
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
Thermodynamics package templated on the equation of state, using polynomial functions for cp...
void write(Ostream &os) const
Write to Ostream.
bool add(entry *, bool mergeEntry=false)
Add a new entry.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
A class for handling words, derived from string.
const dimensionedScalar Tstd
Standard temperature.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
word name(const complex &)
Return a string representation of a complex.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.