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*
60 const hRefConstThermo<EquationOfState>&
63 template<
class EquationOfState>
64 inline hRefConstThermo<EquationOfState>
operator==
66 const hRefConstThermo<EquationOfState>&,
67 const hRefConstThermo<EquationOfState>&
70 template<
class EquationOfState>
74 const hRefConstThermo<EquationOfState>&
82 template<
class EquationOfState>
85 public EquationOfState
100 const EquationOfState& st,
130 return "hRefConst<" + EquationOfState::typeName() +
'>';
134 inline scalar
limit(
const scalar
T)
const;
140 inline scalar
Cp(
const scalar
p,
const scalar T)
const;
143 inline scalar
Ha(
const scalar p,
const scalar T)
const;
146 inline scalar
Hs(
const scalar p,
const scalar T)
const;
149 inline scalar
Hc()
const;
152 inline scalar
S(
const scalar p,
const scalar T)
const;
158 inline scalar
dGdT(
const scalar p,
const scalar T)
const;
161 inline scalar
dCpdT(
const scalar p,
const scalar T)
const;
167 void write(Ostream& os)
const;
180 const hRefConstThermo&
183 friend hRefConstThermo
operator* <EquationOfState>
186 const hRefConstThermo&
189 friend hRefConstThermo
operator== <EquationOfState>
191 const hRefConstThermo&,
192 const hRefConstThermo&
198 friend Ostream& operator<< <EquationOfState>
201 const hRefConstThermo&
scalar S(const scalar p, const scalar T) const
Entropy [J/(kg K)].
A list of keyword definitions, which are a keyword followed by any number of values (e...
bool cp(const fileName &src, const fileName &dst, const bool followLink=true)
Copy, recursively if necessary, the source to the destination.
scalar Hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kg].
scalar Cp(const scalar p, const scalar T) const
Heat capacity at constant pressure [J/(kg K)].
scalar Ha(const scalar p, const scalar T) const
Absolute Enthalpy [J/kg].
void operator+=(const hRefConstThermo &)
scalar dGdT(const scalar p, const scalar T) const
Derivative of Gibbs free energy w.r.t. temperature.
scalar dCpdT(const scalar p, const scalar T) const
Temperature derivative of heat capacity at constant pressure.
static autoPtr< hRefConstThermo > New(const dictionary &dict)
Selector from dictionary.
static word typeName()
Return the instantiated type name.
A class for handling words, derived from string.
scalar limit(const scalar T) const
Limit the temperature to be in the range Tlow_ to Thigh_.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
scalar Hc() const
Chemical enthalpy [J/kg].
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
void write(Ostream &os) const
Write to Ostream.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Constant properties thermodynamics package templated into the EquationOfState.
autoPtr< hRefConstThermo > clone() const
Construct and return a clone.