37 #ifndef eRefConstThermo_H 38 #define eRefConstThermo_H 49 template<
class EquationOfState>
53 const eRefConstThermo<EquationOfState>&
56 template<
class EquationOfState>
57 inline eRefConstThermo<EquationOfState>
operator*
60 const eRefConstThermo<EquationOfState>&
63 template<
class EquationOfState>
64 inline eRefConstThermo<EquationOfState>
operator==
66 const eRefConstThermo<EquationOfState>&,
67 const eRefConstThermo<EquationOfState>&
70 template<
class EquationOfState>
74 const eRefConstThermo<EquationOfState>&
82 template<
class EquationOfState>
85 public EquationOfState
100 const EquationOfState& st,
130 return "eRefConst<" + EquationOfState::typeName() +
'>';
134 inline scalar
limit(
const scalar
T)
const;
140 inline scalar
Cv(
const scalar
p,
const scalar T)
const;
143 inline scalar
Es(
const scalar p,
const scalar T)
const;
146 inline scalar
Ea(
const scalar p,
const scalar T)
const;
149 inline scalar
Hc()
const;
152 inline scalar
S(
const scalar p,
const scalar T)
const;
160 inline scalar
dGdT(
const scalar p,
const scalar T)
const;
163 inline scalar
dCpdT(
const scalar p,
const scalar T)
const;
169 void write(Ostream& os)
const;
182 const eRefConstThermo&
185 friend eRefConstThermo
operator* <EquationOfState>
188 const eRefConstThermo&
191 friend eRefConstThermo
operator== <EquationOfState>
193 const eRefConstThermo&,
194 const eRefConstThermo&
200 friend Ostream& operator<< <EquationOfState>
203 const eRefConstThermo&
scalar Cv(const scalar p, const scalar T) const
Heat capacity at constant volume [J/kg/K].
scalar Ea(const scalar p, const scalar T) const
Absolute internal energy [J/kg].
scalar limit(const scalar T) const
Limit the temperature to be in the range Tlow_ to Thigh_.
scalar dGdT(const scalar p, const scalar T) const
Derivative of Gibbs free energy w.r.t. temperature.
A list of keyword definitions, which are a keyword followed by any number of values (e...
scalar dCpdT(const scalar p, const scalar T) const
Temperature derivative of heat capacity at constant pressure.
void operator+=(const eRefConstThermo &)
static word typeName()
Return the instantiated type name.
void write(Ostream &os) const
Write to Ostream.
A class for handling words, derived from string.
scalar S(const scalar p, const scalar T) const
Entropy [J/kg/K].
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/kg].
static autoPtr< eRefConstThermo > New(const dictionary &dict)
Selector from dictionary.
autoPtr< eRefConstThermo > clone() const
Construct and return a clone.
scalar Es(const scalar p, const scalar T) const
Sensible internal energy [J/kg].
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.