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>
92 template<
class EquationOfState>
104 template<
class EquationOfState>
107 public EquationOfState
131 const EquationOfState& st,
153 return "hConst<" + EquationOfState::typeName() +
'>';
157 inline scalar
limit(
const scalar
T)
const;
163 inline scalar
Cp(
const scalar
p,
const scalar
T)
const;
166 inline scalar
Ha(
const scalar
p,
const scalar
T)
const;
169 inline scalar
Hs(
const scalar
p,
const scalar
T)
const;
172 inline scalar
Hf()
const;
175 inline scalar
S(
const scalar
p,
const scalar
T)
const;
178 inline scalar
Gstd(
const scalar
T)
const;
186 inline scalar
dCpdT(
const scalar
p,
const scalar
T)
const;
223 friend Ostream& operator<< <EquationOfState>
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Enthalpy based thermodynamics package using a constant heat capacity at constant pressure:
scalar Hf() const
Enthalpy of formation [J/kg].
scalar limit(const scalar T) const
Limit the temperature to be in the range Tlow_ to Thigh_.
scalar Hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kg].
static word typeName()
Return the instantiated type name.
scalar dCpdT(const scalar p, const scalar T) const
Temperature derivative of heat capacity at constant pressure.
scalar Cp(const scalar p, const scalar T) const
Heat capacity at constant pressure [J/kg/K].
void operator+=(const hConstThermo &)
void write(Ostream &os) const
Write to Ostream.
scalar S(const scalar p, const scalar T) const
Entropy [J/kg/K].
scalar Ha(const scalar p, const scalar T) const
Absolute enthalpy [J/kg].
autoPtr< hConstThermo > clone() const
Construct and return a clone.
hConstThermo(const EquationOfState &st, const scalar Cp, const scalar Hf, const scalar Tref, const scalar Hsref)
Construct from components.
scalar Gstd(const scalar T) const
Gibbs free energy of the mixture in the standard state [J/kg].
A class for handling words, derived from string.
word name(const complex &)
Return a string representation of a complex.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)