39 #ifndef hPolynomialThermo_H 40 #define hPolynomialThermo_H 52 template<
class EquationOfState,
int PolySize>
55 template<
class EquationOfState,
int PolySize>
59 const hPolynomialThermo<EquationOfState, PolySize>&
62 template<
class EquationOfState,
int PolySize>
63 inline hPolynomialThermo<EquationOfState, PolySize>
operator-
65 const hPolynomialThermo<EquationOfState, PolySize>&,
66 const hPolynomialThermo<EquationOfState, PolySize>&
69 template<
class EquationOfState,
int PolySize>
70 inline hPolynomialThermo<EquationOfState, PolySize>
operator*
73 const hPolynomialThermo<EquationOfState, PolySize>&
76 template<
class EquationOfState,
int PolySize>
77 inline hPolynomialThermo<EquationOfState, PolySize>
operator==
79 const hPolynomialThermo<EquationOfState, PolySize>&,
80 const hPolynomialThermo<EquationOfState, PolySize>&
83 template<
class EquationOfState,
int PolySize>
87 const hPolynomialThermo<EquationOfState, 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;
185 void write(Ostream& os)
const;
201 const hPolynomialThermo&
204 friend hPolynomialThermo
operator- <EquationOfState, PolySize>
206 const hPolynomialThermo&,
207 const hPolynomialThermo&
210 friend hPolynomialThermo
operator* <EquationOfState, PolySize>
213 const hPolynomialThermo&
216 friend hPolynomialThermo
operator== <EquationOfState, PolySize>
218 const hPolynomialThermo&,
219 const hPolynomialThermo&
225 friend Ostream& operator<< <EquationOfState, PolySize>
228 const hPolynomialThermo&
scalar ha(const scalar p, const scalar T) const
Absolute Enthalpy [J/kmol].
scalar hc() const
Chemical enthalpy [J/kmol].
A list of keyword definitions, which are a keyword followed by any number of values (e...
void operator+=(const hPolynomialThermo &)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
void operator=(const hPolynomialThermo &)
scalar s(const scalar p, const scalar T) const
Entropy [J/(kmol K)].
Thermodynamics package templated on the equation of state, using polynomial functions for cp...
void write(Ostream &os) const
Write to Ostream.
A class for handling words, derived from string.
void operator-=(const hPolynomialThermo &)
void operator*=(const scalar)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
scalar cp(const scalar p, const scalar T) const
Heat capacity at constant pressure [J/(kmol K)].
scalar limit(const scalar) const
Limit the temperature to be in the range Tlow_ to Thigh_.
Polynomial templated on size (order):
static word typeName()
Return the instantiated type name.
scalar hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kmol].