37 #ifndef hConstThermo_H 38 #define hConstThermo_H 49 template<
class EquationOfState>
53 const hConstThermo<EquationOfState>&
56 template<
class EquationOfState>
57 inline hConstThermo<EquationOfState>
operator-
59 const hConstThermo<EquationOfState>&,
60 const hConstThermo<EquationOfState>&
63 template<
class EquationOfState>
64 inline hConstThermo<EquationOfState>
operator*
67 const hConstThermo<EquationOfState>&
70 template<
class EquationOfState>
71 inline hConstThermo<EquationOfState>
operator==
73 const hConstThermo<EquationOfState>&,
74 const hConstThermo<EquationOfState>&
77 template<
class EquationOfState>
81 const hConstThermo<EquationOfState>&
89 template<
class EquationOfState>
92 public EquationOfState
105 const EquationOfState& st,
139 return "hConst<" + EquationOfState::typeName() +
'>';
143 inline scalar
limit(
const scalar
T)
const;
149 inline scalar
cp(
const scalar
p,
const scalar T)
const;
152 inline scalar
ha(
const scalar p,
const scalar T)
const;
155 inline scalar
hs(
const scalar p,
const scalar T)
const;
158 inline scalar
hc()
const;
161 inline scalar
s(
const scalar p,
const scalar T)
const;
167 void write(Ostream& os)
const;
184 friend hConstThermo
operator- <EquationOfState>
190 friend hConstThermo
operator* <EquationOfState>
196 friend hConstThermo
operator== <EquationOfState>
205 friend Ostream& operator<< <EquationOfState>
Constant properties thermodynamics package templated into the EquationOfState.
A list of keyword definitions, which are a keyword followed by any number of values (e...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
scalar hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kmol].
static autoPtr< hConstThermo > New(Istream &is)
Selector from Istream.
static word typeName()
Return the instantiated type name.
void operator+=(const hConstThermo &)
scalar cp(const scalar p, const scalar T) const
Heat capacity at constant pressure [J/(kmol K)].
A class for handling words, derived from string.
void operator-=(const hConstThermo &)
void write(Ostream &os) const
Write to Ostream.
scalar ha(const scalar p, const scalar T) const
Absolute Enthalpy [J/kmol].
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)
autoPtr< hConstThermo > clone() const
Construct and return a clone.
scalar hc() const
Chemical enthalpy [J/kmol].
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)].
scalar limit(const scalar T) const
Limit the temperature to be in the range Tlow_ to Thigh_.