72 #ifndef ePolynomialThermo_H
73 #define ePolynomialThermo_H
85 template<
class EquationOfState,
int PolySize>
86 class ePolynomialThermo;
88 template<
class EquationOfState,
int PolySize>
89 inline ePolynomialThermo<EquationOfState, PolySize>
operator+
91 const ePolynomialThermo<EquationOfState, PolySize>&,
92 const ePolynomialThermo<EquationOfState, PolySize>&
95 template<
class EquationOfState,
int PolySize>
96 inline ePolynomialThermo<EquationOfState, PolySize>
operator*
99 const ePolynomialThermo<EquationOfState, PolySize>&
102 template<
class EquationOfState,
int PolySize>
109 template<
class EquationOfState,
int PolySize>
121 template<
class EquationOfState,
int PolySize=8>
124 public EquationOfState
151 const EquationOfState& pt,
176 return "ePolynomial<" + EquationOfState::typeName() +
'>';
180 inline scalar
limit(
const scalar)
const;
186 inline scalar
Cv(
const scalar
p,
const scalar
T)
const;
189 inline scalar
Es(
const scalar
p,
const scalar
T)
const;
192 inline scalar
Ea(
const scalar
p,
const scalar
T)
const;
195 inline scalar
Hf()
const;
198 inline scalar
S(
const scalar
p,
const scalar
T)
const;
201 inline scalar
Gstd(
const scalar
T)
const;
209 inline scalar
dCpdT(
const scalar
p,
const scalar
T)
const;
247 friend Ostream& operator<< <EquationOfState, PolySize>
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Polynomial templated on size (order):
A list of keyword definitions, which are a keyword followed by any number of values (e....
Internal energy based thermodynamics package using a polynomial function of temperature for the const...
scalar Hf() const
Enthalpy of formation [J/kg].
void operator+=(const ePolynomialThermo &)
static word typeName()
Return the instantiated type name.
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.
scalar S(const scalar p, const scalar T) const
Entropy [J/kg/K].
scalar Cv(const scalar p, const scalar T) const
Heat capacity at constant volume [J/kg/K].
scalar limit(const scalar) const
Limit the temperature to be in the range Tlow_ to Thigh_.
scalar Gstd(const scalar T) const
Gibbs free energy of the mixture in the standard state [J/kg].
scalar Es(const scalar p, const scalar T) const
Sensible internal energy [J/kg].
scalar Ea(const scalar p, const scalar T) const
Absolute internal energy [J/kg].
void operator*=(const scalar)
A class for handling words, derived from string.
word name(const complex &)
Return a string representation of a complex.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)