37 #ifndef hRefConstThermo_H 38 #define hRefConstThermo_H 49 template<
class EquationOfState>
53 const hRefConstThermo<EquationOfState>&
56 template<
class EquationOfState>
57 inline hRefConstThermo<EquationOfState>
operator-
59 const hRefConstThermo<EquationOfState>&,
60 const hRefConstThermo<EquationOfState>&
63 template<
class EquationOfState>
64 inline hRefConstThermo<EquationOfState>
operator*
67 const hRefConstThermo<EquationOfState>&
70 template<
class EquationOfState>
71 inline hRefConstThermo<EquationOfState>
operator==
73 const hRefConstThermo<EquationOfState>&,
74 const hRefConstThermo<EquationOfState>&
77 template<
class EquationOfState>
81 const hRefConstThermo<EquationOfState>&
89 template<
class EquationOfState>
92 public EquationOfState
107 const EquationOfState& st,
143 return "hRefConst<" + EquationOfState::typeName() +
'>';
147 inline scalar
limit(
const scalar
T)
const;
153 inline scalar
cp(
const scalar
p,
const scalar T)
const;
156 inline scalar
ha(
const scalar p,
const scalar T)
const;
159 inline scalar
hs(
const scalar p,
const scalar T)
const;
162 inline scalar
hc()
const;
165 inline scalar
s(
const scalar p,
const scalar T)
const;
171 void write(Ostream& os)
const;
185 const hRefConstThermo&
188 friend hRefConstThermo
operator- <EquationOfState>
190 const hRefConstThermo&,
191 const hRefConstThermo&
194 friend hRefConstThermo
operator* <EquationOfState>
197 const hRefConstThermo&
200 friend hRefConstThermo
operator== <EquationOfState>
202 const hRefConstThermo&,
203 const hRefConstThermo&
209 friend Ostream& operator<< <EquationOfState>
212 const hRefConstThermo&
Constant properties thermodynamics package templated into the EquationOfState.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
scalar hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kmol].
void operator+=(const hRefConstThermo &)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
scalar hc() const
Chemical enthalpy [J/kmol].
A class for handling words, derived from string.
A list of keyword definitions, which are a keyword followed by any number of values (e...
scalar limit(const scalar T) const
Limit the temperature to be in the range Tlow_ to Thigh_.
static autoPtr< hRefConstThermo > New(Istream &is)
Selector from Istream.
scalar s(const scalar p, const scalar T) const
Entropy [J/(kmol K)].
void operator-=(const hRefConstThermo &)
scalar cp(const scalar p, const scalar T) const
Heat capacity at constant pressure [J/(kmol K)].
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...
static word typeName()
Return the instantiated type name.
void write(Ostream &os) const
Write to Ostream.
autoPtr< hRefConstThermo > clone() const
Construct and return a clone.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...