Go to the documentation of this file.
39 #ifndef hPolynomialThermo_H
40 #define hPolynomialThermo_H
52 template<
class EquationOfState,
int PolySize>
55 template<
class EquationOfState,
int PolySize>
62 template<
class EquationOfState,
int PolySize>
69 template<
class EquationOfState,
int PolySize>
76 template<
class EquationOfState,
int PolySize>
83 template<
class EquationOfState,
int PolySize>
95 template<
class EquationOfState,
int PolySize=8>
98 public EquationOfState
126 const EquationOfState& pt,
157 return "hPolynomial<" + EquationOfState::typeName() +
'>';
161 inline scalar
limit(
const scalar)
const;
167 inline scalar
cp(
const scalar
p,
const scalar
T)
const;
170 inline scalar
ha(
const scalar
p,
const scalar
T)
const;
173 inline scalar
hs(
const scalar
p,
const scalar
T)
const;
176 inline scalar
hc()
const;
179 inline scalar
s(
const scalar
p,
const scalar
T)
const;
225 friend Ostream& operator<< <EquationOfState, PolySize>
Polynomial< PolySize > sCoeffs_
Entropy - derived from Cp [J/(kg.K)] - relative to Tstd.
scalar s(const scalar p, const scalar T) const
Entropy [J/(kmol K)].
A class for handling words, derived from string.
void operator-=(const hPolynomialThermo &)
scalar limit(const scalar) const
Limit the temperature to be in the range Tlow_ to Thigh_.
scalar hc() const
Chemical enthalpy [J/kmol].
scalar ha(const scalar p, const scalar T) const
Absolute Enthalpy [J/kmol].
Polynomial< PolySize >::intPolyType hCoeffs_
Enthalpy polynomial coeffs - derived from cp [J/kg].
void write(Ostream &os) const
Write to Ostream.
scalar hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kmol].
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Polynomial< PolySize > CpCoeffs_
Specific heat at constant pressure polynomial coeffs [J/(kg.K)].
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
A list of keyword definitions, which are a keyword followed by any number of values (e....
static word typeName()
Return the instantiated type name.
void operator*=(const scalar)
Thermodynamics package templated on the equation of state, using polynomial functions for cp,...
scalar Hf_
Heat of formation.
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.
void operator+=(const hPolynomialThermo &)
scalar cp(const scalar p, const scalar T) const
Heat capacity at constant pressure [J/(kmol K)].
scalar Sf_
Standard entropy.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
hPolynomialThermo & operator=(const hPolynomialThermo &)