Go to the documentation of this file.
31 template<
class EquationOfState,
int PolySize>
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),
70 dict.subDict(
"thermodynamics").lookup
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>&"
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.
void write(Ostream &os) const
Write to Ostream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
A list of keyword definitions, which are a keyword followed by any number of values (e....
Ostream & indent(Ostream &os)
Indent stream.
Thermodynamics package templated on the equation of state, using polynomial functions for cp,...
hPolynomialThermo(const EquationOfState &pt, const scalar Hf, const scalar Sf, const Polynomial< PolySize > &CpCoeffs, const typename Polynomial< PolySize >::intPolyType &hCoeffs, const Polynomial< PolySize > &sCoeffs)
Construct from components.
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.