71 #ifndef ePolynomialThermo_H 72 #define ePolynomialThermo_H 84 template<
class EquationOfState,
int PolySize>
85 class ePolynomialThermo;
87 template<
class EquationOfState,
int PolySize>
88 inline ePolynomialThermo<EquationOfState, PolySize>
operator+
90 const ePolynomialThermo<EquationOfState, PolySize>&,
91 const ePolynomialThermo<EquationOfState, PolySize>&
94 template<
class EquationOfState,
int PolySize>
95 inline ePolynomialThermo<EquationOfState, PolySize>
operator*
98 const ePolynomialThermo<EquationOfState, PolySize>&
101 template<
class EquationOfState,
int PolySize>
102 inline ePolynomialThermo<EquationOfState, PolySize>
operator==
104 const ePolynomialThermo<EquationOfState, PolySize>&,
105 const ePolynomialThermo<EquationOfState, PolySize>&
108 template<
class EquationOfState,
int PolySize>
112 const ePolynomialThermo<EquationOfState, PolySize>&
120 template<
class EquationOfState,
int PolySize=8>
123 public EquationOfState
150 const EquationOfState& pt,
175 return "ePolynomial<" + EquationOfState::typeName() +
'>';
179 inline scalar
limit(
const scalar)
const;
185 inline scalar
Cv(
const scalar
p,
const scalar
T)
const;
188 inline scalar
Es(
const scalar
p,
const scalar
T)
const;
191 inline scalar
Ea(
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 ePolynomialThermo&
231 friend ePolynomialThermo
operator* <EquationOfState, PolySize>
234 const ePolynomialThermo&
237 friend ePolynomialThermo
operator== <EquationOfState, PolySize>
239 const ePolynomialThermo&,
240 const ePolynomialThermo&
246 friend Ostream& operator<< <EquationOfState, PolySize>
249 const ePolynomialThermo&
Thermodynamics package templated on the equation of state, using polynomial functions for cv...
scalar Es(const scalar p, const scalar T) const
Sensible internal energy [J/kg].
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 Gstd(const scalar T) const
Gibbs free energy of the mixture in the standard state [J/kg].
void operator+=(const ePolynomialThermo &)
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].
scalar Cv(const scalar p, const scalar T) const
Heat capacity at constant volume [J/kg/K].
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 Ea(const scalar p, const scalar T) const
Absolute internal energy [J/kg].