43 #ifndef hPowerThermo_H 44 #define hPowerThermo_H 57 template<
class EquationOfState>
61 const hPowerThermo<EquationOfState>&
64 template<
class EquationOfState>
65 inline hPowerThermo<EquationOfState>
operator*
68 const hPowerThermo<EquationOfState>&
72 template<
class EquationOfState>
73 inline hPowerThermo<EquationOfState>
operator==
75 const hPowerThermo<EquationOfState>&,
76 const hPowerThermo<EquationOfState>&
80 template<
class EquationOfState>
84 const hPowerThermo<EquationOfState>&
92 template<
class EquationOfState>
95 public EquationOfState
108 inline void checkT(
const scalar
T)
const;
113 const EquationOfState& st,
147 return "hPower<" + EquationOfState::typeName() +
'>';
151 inline scalar
limit(
const scalar
T)
const;
157 inline scalar
Cp(
const scalar
p,
const scalar T)
const;
160 inline scalar
Ha(
const scalar p,
const scalar T)
const;
163 inline scalar
Hs(
const scalar p,
const scalar T)
const;
166 inline scalar
Hc()
const;
169 inline scalar
S(
const scalar p,
const scalar T)
const;
175 inline scalar
dGdT(
const scalar p,
const scalar T)
const;
178 inline scalar
dCpdT(
const scalar p,
const scalar T)
const;
194 friend hPowerThermo
operator* <EquationOfState>
201 friend hPowerThermo
operator== <EquationOfState>
210 friend Ostream& operator<< <EquationOfState>
A list of keyword definitions, which are a keyword followed by any number of values (e...
static word typeName()
Return the instantiated type name.
void operator+=(const hPowerThermo &)
scalar limit(const scalar T) const
Limit the temperature to be in the range Tlow_ to Thigh_.
scalar Ha(const scalar p, const scalar T) const
Absolute Enthalpy [J/kg].
scalar S(const scalar p, const scalar T) const
Entropy [J/(kg K)].
autoPtr< hPowerThermo > clone() const
Construct and return a clone.
scalar dCpdT(const scalar p, const scalar T) const
Temperature derivative of heat capacity at constant pressure.
A class for handling words, derived from string.
scalar Hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kg].
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 Hc() const
Chemical enthalpy [J/kg].
static autoPtr< hPowerThermo > New(const dictionary &dict)
Selector from dictionary.
scalar Cp(const scalar p, const scalar T) const
Heat capacity at constant pressure [J/(kg K)].
Power-function based thermodynamics package templated on EquationOfState.
scalar dGdT(const scalar p, const scalar T) const
Derivative of Gibbs free energy w.r.t. temperature.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...