71 #ifndef hPolynomialThermo_H 72 #define hPolynomialThermo_H 84 template<
class EquationOfState,
int PolySize>
85 class hPolynomialThermo;
87 template<
class EquationOfState,
int PolySize>
88 inline hPolynomialThermo<EquationOfState, PolySize>
operator+
90 const hPolynomialThermo<EquationOfState, PolySize>&,
91 const hPolynomialThermo<EquationOfState, PolySize>&
94 template<
class EquationOfState,
int PolySize>
95 inline hPolynomialThermo<EquationOfState, PolySize>
operator*
98 const hPolynomialThermo<EquationOfState, PolySize>&
101 template<
class EquationOfState,
int PolySize>
102 inline hPolynomialThermo<EquationOfState, PolySize>
operator==
104 const hPolynomialThermo<EquationOfState, PolySize>&,
105 const hPolynomialThermo<EquationOfState, PolySize>&
108 template<
class EquationOfState,
int PolySize>
112 const hPolynomialThermo<EquationOfState, PolySize>&
120 template<
class EquationOfState,
int PolySize=8>
123 public EquationOfState
150 const EquationOfState& pt,
175 return "hPolynomial<" + EquationOfState::typeName() +
'>';
179 inline scalar
limit(
const scalar)
const;
185 inline scalar
Cp(
const scalar
p,
const scalar
T)
const;
188 inline scalar
Ha(
const scalar
p,
const scalar
T)
const;
191 inline scalar
Hs(
const scalar
p,
const scalar
T)
const;
194 inline scalar
Hf()
const;
197 inline scalar
S(
const scalar
p,
const scalar
T)
const;
200 inline scalar
Gstd(
const scalar
T)
const;
208 inline scalar
dCpdT(
const scalar
p,
const scalar
T)
const;
214 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 &)
scalar Gstd(const scalar T) const
Gibbs free energy of the mixture in the standard state [J/kg].
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 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].