73 #ifndef hPolynomialThermo_H 74 #define hPolynomialThermo_H 86 template<
class EquationOfState,
int PolySize>
87 class hPolynomialThermo;
89 template<
class EquationOfState,
int PolySize>
90 inline hPolynomialThermo<EquationOfState, PolySize>
operator+
92 const hPolynomialThermo<EquationOfState, PolySize>&,
93 const hPolynomialThermo<EquationOfState, PolySize>&
96 template<
class EquationOfState,
int PolySize>
97 inline hPolynomialThermo<EquationOfState, PolySize>
operator*
100 const hPolynomialThermo<EquationOfState, PolySize>&
103 template<
class EquationOfState,
int PolySize>
104 inline hPolynomialThermo<EquationOfState, PolySize>
operator==
106 const hPolynomialThermo<EquationOfState, PolySize>&,
107 const hPolynomialThermo<EquationOfState, PolySize>&
110 template<
class EquationOfState,
int PolySize>
114 const hPolynomialThermo<EquationOfState, PolySize>&
122 template<
class EquationOfState,
int PolySize=8>
125 public EquationOfState
151 const EquationOfState& pt,
176 return "hPolynomial<" + EquationOfState::typeName() +
'>';
180 inline scalar
limit(
const scalar)
const;
186 inline scalar
Cp(
const scalar
p,
const scalar
T)
const;
189 inline scalar
Ha(
const scalar
p,
const scalar
T)
const;
192 inline scalar
Hs(
const scalar
p,
const scalar
T)
const;
195 inline scalar
Hc()
const;
198 inline scalar
S(
const scalar
p,
const scalar
T)
const;
204 inline scalar
dGdT(
const scalar
p,
const scalar
T)
const;
207 inline scalar
dCpdT(
const scalar
p,
const scalar
T)
const;
213 void write(Ostream& os)
const;
228 const hPolynomialThermo&
231 friend hPolynomialThermo
operator* <EquationOfState, PolySize>
234 const hPolynomialThermo&
237 friend hPolynomialThermo
operator== <EquationOfState, PolySize>
239 const hPolynomialThermo&,
240 const hPolynomialThermo&
246 friend Ostream& operator<< <EquationOfState, PolySize>
249 const hPolynomialThermo&
scalar S(const scalar p, const scalar T) const
Entropy [J/(kg K)].
scalar dCpdT(const scalar p, const scalar T) const
Temperature derivative of heat capacity at constant pressure.
void write(Ostream &os) const
Write to Ostream.
A list of keyword definitions, which are a keyword followed by any number of values (e...
scalar Hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kg].
void operator+=(const hPolynomialThermo &)
void operator=(const hPolynomialThermo &)
Thermodynamics package templated on the equation of state, using polynomial functions for cp...
scalar Ha(const scalar p, const scalar T) const
Absolute Enthalpy [J/kg].
A class for handling words, derived from string.
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 Hc() const
Chemical enthalpy [J/kg].
Polynomial templated on size (order):
static word typeName()
Return the instantiated type name.
scalar limit(const scalar) const
Limit the temperature to be in the range Tlow_ to Thigh_.
scalar dGdT(const scalar p, const scalar T) const
Derivative of Gibbs free energy w.r.t. temperature.
scalar Cp(const scalar p, const scalar T) const
Heat capacity at constant pressure [J/(kg K)].