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*
62 const eConstThermo<EquationOfState>&
65 template<
class EquationOfState>
66 inline eConstThermo<EquationOfState>
operator==
68 const eConstThermo<EquationOfState>&,
69 const eConstThermo<EquationOfState>&
72 template<
class EquationOfState>
76 const eConstThermo<EquationOfState>&
84 template<
class EquationOfState>
87 public EquationOfState
105 const EquationOfState& st,
133 return "eConst<" + EquationOfState::typeName() +
'>';
137 inline scalar
limit(
const scalar
T)
const;
143 inline scalar
Cv(
const scalar
p,
const scalar T)
const;
146 inline scalar
Es(
const scalar p,
const scalar T)
const;
149 inline scalar
Ea(
const scalar p,
const scalar T)
const;
152 inline scalar
Hc()
const;
155 inline scalar
S(
const scalar p,
const scalar T)
const;
163 inline scalar
dGdT(
const scalar p,
const scalar T)
const;
166 inline scalar
dCpdT(
const scalar p,
const scalar T)
const;
172 void write(Ostream& os)
const;
188 friend eConstThermo
operator* <EquationOfState>
194 friend eConstThermo
operator== <EquationOfState>
203 friend Ostream& operator<< <EquationOfState>
scalar limit(const scalar T) const
Limit the temperature to be in the range Tlow_ to Thigh_.
scalar Hc() const
Chemical enthalpy [J/kg].
A list of keyword definitions, which are a keyword followed by any number of values (e...
scalar dGdT(const scalar p, const scalar T) const
Derivative of Gibbs free energy w.r.t. temperature.
void operator+=(const eConstThermo &)
scalar Ea(const scalar p, const scalar T) const
Absolute internal energy [J/kg].
static word typeName()
Return the instantiated type name.
Constant properties thermodynamics package templated on an equation of state.
scalar Es(const scalar p, const scalar T) const
Sensible internal energy [J/kg].
A class for handling words, derived from string.
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< eConstThermo > clone() const
Construct and return a clone.
scalar Cv(const scalar p, const scalar T) const
Heat capacity at constant volume [J/kg/K].
scalar S(const scalar p, const scalar T) const
Entropy [J/kg/K].
void write(Ostream &os) const
Write to Ostream.
scalar dCpdT(const scalar p, const scalar T) const
Temperature derivative of heat capacity at constant pressure.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
static autoPtr< eConstThermo > New(const dictionary &dict)