37 #ifndef eConstThermo_H 38 #define eConstThermo_H 51 template<
class EquationOfState>
55 const eConstThermo<EquationOfState>&
58 template<
class EquationOfState>
59 inline eConstThermo<EquationOfState>
operator-
61 const eConstThermo<EquationOfState>&,
62 const eConstThermo<EquationOfState>&
65 template<
class EquationOfState>
66 inline eConstThermo<EquationOfState>
operator*
69 const eConstThermo<EquationOfState>&
72 template<
class EquationOfState>
73 inline eConstThermo<EquationOfState>
operator==
75 const eConstThermo<EquationOfState>&,
76 const eConstThermo<EquationOfState>&
79 template<
class EquationOfState>
83 const eConstThermo<EquationOfState>&
91 template<
class EquationOfState>
94 public EquationOfState
112 const EquationOfState& st,
146 return "eConst<" + EquationOfState::typeName() +
'>';
150 inline scalar
limit(
const scalar
T)
const;
156 inline scalar
cp(
const scalar
p,
const scalar T)
const;
159 inline scalar
ha(
const scalar p,
const scalar T)
const;
162 inline scalar
hs(
const scalar p,
const scalar T)
const;
165 inline scalar
hc()
const;
168 inline scalar
s(
const scalar p,
const scalar T)
const;
174 void write(Ostream& os)
const;
191 friend eConstThermo
operator- <EquationOfState>
197 friend eConstThermo
operator* <EquationOfState>
203 friend eConstThermo
operator== <EquationOfState>
212 friend Ostream& operator<< <EquationOfState>
A list of keyword definitions, which are a keyword followed by any number of values (e...
void operator+=(const eConstThermo &)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
static word typeName()
Return the instantiated type name.
scalar hs(const scalar p, const scalar T) const
Sensible Enthalpy [J/kmol].
autoPtr< eConstThermo > clone() const
Construct and return a clone.
Constant properties thermodynamics package templated on an equation of state.
scalar cp(const scalar p, const scalar T) const
Heat capacity at constant pressure [J/(kmol K)].
void write(Ostream &os) const
Write to Ostream.
A class for handling words, derived from string.
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)
scalar hc() const
Chemical enthalpy [J/kmol].
void operator-=(const eConstThermo &)
scalar s(const scalar p, const scalar T) const
Entropy [J/(kmol K)].
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
scalar limit(const scalar T) const
Limit the temperature to be in the range Tlow_ to Thigh_.
static autoPtr< eConstThermo > New(Istream &is)