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
Cp(
const scalar
p,
const scalar T)
const;
146 inline scalar
Ha(
const scalar p,
const scalar T)
const;
149 inline scalar
Hs(
const scalar p,
const scalar T)
const;
152 inline scalar
Hc()
const;
155 inline scalar
S(
const scalar p,
const scalar T)
const;
161 inline scalar
dGdT(
const scalar p,
const scalar T)
const;
164 inline scalar
dCpdT(
const scalar p,
const scalar T)
const;
171 void write(Ostream& os)
const;
187 friend eConstThermo
operator* <EquationOfState>
193 friend eConstThermo
operator== <EquationOfState>
202 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 &)
static word typeName()
Return the instantiated type name.
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/(kg K)].
A class for handling words, derived from string.
scalar Ha(const scalar p, const scalar T) const
Absolute Enthalpy [J/kg].
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 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)
scalar Hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kg].