70 #ifndef hPolynomialThermo_H 71 #define hPolynomialThermo_H 83 template<
class EquationOfState,
int PolySize>
84 class hPolynomialThermo;
86 template<
class EquationOfState,
int PolySize>
87 inline hPolynomialThermo<EquationOfState, PolySize>
operator+
89 const hPolynomialThermo<EquationOfState, PolySize>&,
90 const hPolynomialThermo<EquationOfState, PolySize>&
93 template<
class EquationOfState,
int PolySize>
94 inline hPolynomialThermo<EquationOfState, PolySize>
operator*
97 const hPolynomialThermo<EquationOfState, PolySize>&
100 template<
class EquationOfState,
int PolySize>
101 inline hPolynomialThermo<EquationOfState, PolySize>
operator==
103 const hPolynomialThermo<EquationOfState, PolySize>&,
104 const hPolynomialThermo<EquationOfState, PolySize>&
107 template<
class EquationOfState,
int PolySize>
111 const hPolynomialThermo<EquationOfState, PolySize>&
119 template<
class EquationOfState,
int PolySize=8>
122 public EquationOfState
149 const EquationOfState& pt,
174 return "hPolynomial<" + EquationOfState::typeName() +
'>';
178 inline scalar
limit(
const scalar)
const;
184 inline scalar
Cp(
const scalar
p,
const scalar
T)
const;
187 inline scalar
Ha(
const scalar
p,
const scalar
T)
const;
190 inline scalar
Hs(
const scalar
p,
const scalar
T)
const;
193 inline scalar
Hf()
const;
196 inline scalar
S(
const scalar
p,
const scalar
T)
const;
199 inline scalar
Gstd(
const scalar
T)
const;
207 inline scalar
dCpdT(
const scalar
p,
const scalar
T)
const;
213 void write(Ostream& os)
const;
227 const hPolynomialThermo&
230 friend hPolynomialThermo
operator* <EquationOfState, PolySize>
233 const hPolynomialThermo&
236 friend hPolynomialThermo
operator== <EquationOfState, PolySize>
238 const hPolynomialThermo&,
239 const hPolynomialThermo&
245 friend Ostream& operator<< <EquationOfState, PolySize>
248 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 &)
scalar Gstd(const scalar T) const
Gibbs free energy of the mixture in the standard state [J/kg].
Enthalpy based thermodynamics package using a polynomial function of temperature for the constant hea...
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 Hf() const
Enthalpy of formation [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 Cp(const scalar p, const scalar T) const
Heat capacity at constant pressure [J/kg/K].