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-
67 const hPowerThermo<EquationOfState>&,
68 const hPowerThermo<EquationOfState>&
71 template<
class EquationOfState>
72 inline hPowerThermo<EquationOfState>
operator*
75 const hPowerThermo<EquationOfState>&
79 template<
class EquationOfState>
80 inline hPowerThermo<EquationOfState>
operator==
82 const hPowerThermo<EquationOfState>&,
83 const hPowerThermo<EquationOfState>&
87 template<
class EquationOfState>
91 const hPowerThermo<EquationOfState>&
99 template<
class EquationOfState>
102 public EquationOfState
115 inline void checkT(
const scalar
T)
const;
120 const EquationOfState& st,
160 return "hPower<" + EquationOfState::typeName() +
'>';
164 inline scalar
limit(
const scalar
T)
const;
170 inline scalar
cp(
const scalar
p,
const scalar T)
const;
173 inline scalar
ha(
const scalar p,
const scalar T)
const;
176 inline scalar
hs(
const scalar p,
const scalar T)
const;
179 inline scalar
hc()
const;
182 inline scalar
s(
const scalar p,
const scalar T)
const;
199 friend hPowerThermo
operator- <EquationOfState>
205 friend hPowerThermo
operator* <EquationOfState>
212 friend hPowerThermo
operator== <EquationOfState>
221 friend Ostream& operator<< <EquationOfState>
autoPtr< hPowerThermo > clone() const
Construct and return a clone.
A list of keyword definitions, which are a keyword followed by any number of values (e...
static word typeName()
Return the instantiated type name.
scalar limit(const scalar T) const
Limit the temperature to be in the range Tlow_ to Thigh_.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
void operator+=(const hPowerThermo &)
scalar s(const scalar p, const scalar T) const
Entropy [J/(kmol K)].
A class for handling words, derived from string.
static autoPtr< hPowerThermo > New(Istream &is)
Selector from Istream.
scalar cp(const scalar p, const scalar T) const
Heat capacity at constant pressure [J/(kg K)].
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)
void operator-=(const hPowerThermo &)
scalar hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kg].
scalar ha(const scalar p, const scalar T) const
Absolute enthalpy [J/kmol].
Power-function based thermodynamics package templated on EquationOfState.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
scalar hc() const
Chemical enthalpy [J/kg].