59 #ifndef hConstThermo_H 60 #define hConstThermo_H 69 template<
class EquationOfState>
class hConstThermo;
71 template<
class EquationOfState>
72 inline hConstThermo<EquationOfState>
operator+
74 const hConstThermo<EquationOfState>&,
75 const hConstThermo<EquationOfState>&
78 template<
class EquationOfState>
79 inline hConstThermo<EquationOfState>
operator*
82 const hConstThermo<EquationOfState>&
85 template<
class EquationOfState>
86 inline hConstThermo<EquationOfState>
operator==
88 const hConstThermo<EquationOfState>&,
89 const hConstThermo<EquationOfState>&
92 template<
class EquationOfState>
96 const hConstThermo<EquationOfState>&
104 template<
class EquationOfState>
107 public EquationOfState
129 const EquationOfState& st,
159 return "hConst<" + EquationOfState::typeName() +
'>';
163 inline scalar
limit(
const scalar
T)
const;
169 inline scalar
Cp(
const scalar
p,
const scalar T)
const;
172 inline scalar
Ha(
const scalar p,
const scalar T)
const;
175 inline scalar
Hs(
const scalar p,
const scalar T)
const;
178 inline scalar
Hf()
const;
181 inline scalar
S(
const scalar p,
const scalar T)
const;
184 inline scalar
Gstd(
const scalar T)
const;
192 inline scalar
dCpdT(
const scalar p,
const scalar T)
const;
198 void write(Ostream& os)
const;
214 friend hConstThermo
operator* <EquationOfState>
220 friend hConstThermo
operator== <EquationOfState>
229 friend Ostream& operator<< <EquationOfState>
scalar Hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kg].
Enthalpy based thermodynamics package using a constant heat capacity at constant pressure: ...
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...
autoPtr< hConstThermo > clone() const
Construct and return a clone.
static autoPtr< hConstThermo > New(const dictionary &dict)
Selector from dictionary.
scalar Hf() const
Enthalpy of formation [J/kg].
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].
scalar Gstd(const scalar T) const
Gibbs free energy of the mixture in the standard state [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)
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.