37 #ifndef hConstThermo_H 38 #define hConstThermo_H 49 template<
class EquationOfState>
53 const hConstThermo<EquationOfState>&
56 template<
class EquationOfState>
57 inline hConstThermo<EquationOfState>
operator*
60 const hConstThermo<EquationOfState>&
63 template<
class EquationOfState>
64 inline hConstThermo<EquationOfState>
operator==
66 const hConstThermo<EquationOfState>&,
67 const hConstThermo<EquationOfState>&
70 template<
class EquationOfState>
74 const hConstThermo<EquationOfState>&
82 template<
class EquationOfState>
85 public EquationOfState
98 const EquationOfState& st,
126 return "hConst<" + EquationOfState::typeName() +
'>';
130 inline scalar
limit(
const scalar
T)
const;
136 inline scalar
Cp(
const scalar
p,
const scalar T)
const;
139 inline scalar
Ha(
const scalar p,
const scalar T)
const;
142 inline scalar
Hs(
const scalar p,
const scalar T)
const;
145 inline scalar
Hc()
const;
148 inline scalar
S(
const scalar p,
const scalar T)
const;
154 inline scalar
dGdT(
const scalar p,
const scalar T)
const;
157 inline scalar
dCpdT(
const scalar p,
const scalar T)
const;
163 void write(Ostream& os)
const;
179 friend hConstThermo
operator* <EquationOfState>
185 friend hConstThermo
operator== <EquationOfState>
194 friend Ostream& operator<< <EquationOfState>
scalar Hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kg].
Constant properties thermodynamics package templated into the EquationOfState.
scalar limit(const scalar T) const
Limit the temperature to be in the range Tlow_ to Thigh_.
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.
autoPtr< hConstThermo > clone() const
Construct and return a clone.
static autoPtr< hConstThermo > New(const dictionary &dict)
Selector from dictionary.
scalar dGdT(const scalar p, const scalar T) const
Derivative of Gibbs free energy w.r.t. temperature.
scalar Ha(const scalar p, const scalar T) const
Absolute Enthalpy [J/kg].
static word typeName()
Return the instantiated type name.
void operator+=(const hConstThermo &)
A class for handling words, derived from string.
scalar Cp(const scalar p, const scalar T) const
Heat capacity at constant pressure [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 dCpdT(const scalar p, const scalar T) const
Temperature derivative of heat capacity at constant pressure.
scalar S(const scalar p, const scalar T) const
Entropy [J/(kg K)].
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
void write(Ostream &os) const
Write to Ostream.
scalar Hc() const
Chemical enthalpy [J/kg].