Go to the documentation of this file.
43 #ifndef hPowerThermo_H
44 #define hPowerThermo_H
57 template<
class EquationOfState>
64 template<
class EquationOfState>
71 template<
class EquationOfState>
79 template<
class EquationOfState>
87 template<
class 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;
221 friend Ostream& operator<< <EquationOfState>
A class for handling words, derived from string.
Power-function based thermodynamics package templated on EquationOfState.
void operator+=(const hPowerThermo &)
hPowerThermo(const EquationOfState &st, const scalar c0, const scalar n0, const scalar Tref, const scalar Hf)
Construct from components.
scalar limit(const scalar T) const
Limit the temperature to be in the range Tlow_ to Thigh_.
static word typeName()
Return the instantiated type name.
static autoPtr< hPowerThermo > New(Istream &is)
Selector from Istream.
scalar ha(const scalar p, const scalar T) const
Absolute enthalpy [J/kmol].
void checkT(const scalar T) const
Check given temperature is within the range of the fitted coeffs.
scalar cp(const scalar p, const scalar T) const
Heat capacity at constant pressure [J/(kg K)].
scalar hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kg].
autoPtr< hPowerThermo > clone() const
Construct and return a clone.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
scalar hc() const
Chemical enthalpy [J/kg].
void operator-=(const hPowerThermo &)
A list of keyword definitions, which are a keyword followed by any number of values (e....
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
scalar s(const scalar p, const scalar T) const
Entropy [J/(kmol K)].
An Ostream is an abstract base class for all output systems (streams, files, token lists,...