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>
103 inline ePolynomialThermo<EquationOfState, PolySize>
operator==
105 const ePolynomialThermo<EquationOfState, PolySize>&,
106 const ePolynomialThermo<EquationOfState, PolySize>&
109 template<
class EquationOfState,
int PolySize>
113 const ePolynomialThermo<EquationOfState, 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;
215 void write(Ostream& os)
const;
229 const ePolynomialThermo&
232 friend ePolynomialThermo
operator* <EquationOfState, PolySize>
235 const ePolynomialThermo&
238 friend ePolynomialThermo
operator== <EquationOfState, PolySize>
240 const ePolynomialThermo&,
241 const ePolynomialThermo&
247 friend Ostream& operator<< <EquationOfState, PolySize>
250 const ePolynomialThermo&
Internal energy based thermodynamics package using a polynomial function of temperature for the const...
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].