Go to the documentation of this file.
79 #ifndef hPolynomialThermo_H
80 #define hPolynomialThermo_H
92 template<
class EquationOfState,
int PolySize>
93 class hPolynomialThermo;
95 template<
class EquationOfState,
int PolySize>
96 inline hPolynomialThermo<EquationOfState, PolySize>
operator+
98 const hPolynomialThermo<EquationOfState, PolySize>&,
99 const hPolynomialThermo<EquationOfState, PolySize>&
102 template<
class EquationOfState,
int PolySize>
103 inline hPolynomialThermo<EquationOfState, PolySize>
operator*
109 template<
class EquationOfState,
int PolySize>
116 template<
class EquationOfState,
int PolySize>
128 template<
class EquationOfState,
int PolySize=8>
131 public EquationOfState
155 inline static word coeffsName(
const char*
name)
157 return word(
name + (
"Coeffs<" + std::to_string(PolySize) +
'>'));
163 const EquationOfState& pt,
191 return "hPolynomial<" + EquationOfState::typeName() +
'>';
195 inline scalar
limit(
const scalar)
const;
201 inline scalar
Cp(
const scalar
p,
const scalar
T)
const;
204 inline scalar
Ha(
const scalar
p,
const scalar
T)
const;
207 inline scalar
Hs(
const scalar
p,
const scalar
T)
const;
210 inline scalar
Hc()
const;
213 inline scalar
S(
const scalar
p,
const scalar
T)
const;
216 inline scalar
Gstd(
const scalar
T)
const;
226 inline scalar
dCpdT(
const scalar
p,
const scalar
T)
const;
265 friend Ostream& operator<< <EquationOfState, PolySize>
A class for handling words, derived from Foam::string.
scalar limit(const scalar) const
Limit temperature to be within the range.
scalar Gstd(const scalar T) const
Gibbs free energy of the mixture in the standard state [J/kg].
void write(Ostream &os) const
Write to Ostream.
scalar Hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kg].
scalar dCpdT(const scalar p, const scalar T) const
Temperature derivative of heat capacity at constant pressure.
word name(const complex &c)
Return string representation of complex.
scalar S(const scalar p, const scalar T) const
Entropy [J/(kg K)].
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
scalar Ha(const scalar p, const scalar T) const
Absolute Enthalpy [J/kg].
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
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,...
Polynomial templated on size (order):
void operator+=(const hPolynomialThermo &)
scalar Cp(const scalar p, const scalar T) const
Heat capacity at constant pressure [J/(kg K)].
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
scalar Hc() const
Chemical enthalpy [J/kg].