62 #ifndef hPowerThermo_H
63 #define hPowerThermo_H
74 template<
class EquationOfState>
class hPowerThermo;
76 template<
class EquationOfState>
77 inline hPowerThermo<EquationOfState>
operator+
79 const hPowerThermo<EquationOfState>&,
80 const hPowerThermo<EquationOfState>&
83 template<
class EquationOfState>
84 inline hPowerThermo<EquationOfState>
operator*
87 const hPowerThermo<EquationOfState>&
91 template<
class EquationOfState>
99 template<
class EquationOfState>
111 template<
class EquationOfState>
114 public EquationOfState
127 inline void checkT(
const scalar
T)
const;
137 const EquationOfState& st,
163 return "hPower<" + EquationOfState::typeName() +
'>';
167 inline scalar
limit(
const scalar
T)
const;
173 inline scalar
Cp(
const scalar
p,
const scalar
T)
const;
176 inline scalar
ha(
const scalar
p,
const scalar
T)
const;
179 inline scalar
hs(
const scalar
p,
const scalar
T)
const;
182 inline scalar
hf()
const;
185 inline scalar
s(
const scalar
p,
const scalar
T)
const;
188 inline scalar
gStd(
const scalar
T)
const;
196 inline scalar
dCpdT(
const scalar
p,
const scalar
T)
const;
228 friend Ostream& operator<< <EquationOfState>
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Enthalpy based thermodynamics package using a power function of temperature for the constant heat cap...
scalar gStd(const scalar T) const
Gibbs free energy of the mixture in the standard state [J/kg].
scalar limit(const scalar T) const
Limit the temperature to be in the range Tlow_ to Thigh_.
autoPtr< hPowerThermo > clone() const
Construct and return a clone.
scalar s(const scalar p, const scalar T) const
Entropy [J/kg/K].
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.
scalar Cp(const scalar p, const scalar T) const
Heat capacity at constant pressure [J/kg/K].
void operator+=(const hPowerThermo &)
scalar ha(const scalar p, const scalar T) const
Absolute enthalpy [J/kg].
scalar hf() const
Enthalpy of formation [J/kg].
scalar hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kg].
hPowerThermo(const EquationOfState &st, const scalar c0, const scalar n0, const scalar Tref, const scalar hf)
Construct from components.
A class for handling words, derived from string.
word name(const bool)
Return a word representation of a bool.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)