60 #ifndef eConstThermo_H
61 #define eConstThermo_H
70 template<
class EquationOfState>
class eConstThermo;
72 template<
class EquationOfState>
73 inline eConstThermo<EquationOfState>
operator+
75 const eConstThermo<EquationOfState>&,
76 const eConstThermo<EquationOfState>&
79 template<
class EquationOfState>
80 inline eConstThermo<EquationOfState>
operator*
83 const eConstThermo<EquationOfState>&
86 template<
class EquationOfState>
93 template<
class EquationOfState>
105 template<
class EquationOfState>
108 public EquationOfState
132 const EquationOfState& st,
154 return "eConst<" + EquationOfState::typeName() +
'>';
158 inline scalar
limit(
const scalar
T)
const;
164 inline scalar
Cv(
const scalar
p,
const scalar
T)
const;
167 inline scalar
es(
const scalar
p,
const scalar
T)
const;
170 inline scalar
ea(
const scalar
p,
const scalar
T)
const;
173 inline scalar
hf()
const;
176 inline scalar
s(
const scalar
p,
const scalar
T)
const;
179 inline scalar
gStd(
const scalar
T)
const;
187 inline scalar
dCpdT(
const scalar
p,
const scalar
T)
const;
224 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....
Internal energy based thermodynamics package using a constant heat capacity at constant volume.
scalar gStd(const scalar T) const
Gibbs free energy of the mixture in the standard state [J/kg].
scalar limit(const scalar T) const
Limit the temperature to be in the range Tlow_ to Thigh_.
scalar s(const scalar p, const scalar T) const
Entropy [J/kg/K].
static word typeName()
Return the instantiated type name.
void operator+=(const eConstThermo &)
scalar dCpdT(const scalar p, const scalar T) const
Temperature derivative of heat capacity at constant pressure.
scalar ea(const scalar p, const scalar T) const
Absolute internal energy [J/kg].
void write(Ostream &os) const
Write to Ostream.
scalar Cv(const scalar p, const scalar T) const
Heat capacity at constant volume [J/kg/K].
scalar hf() const
Enthalpy of formation [J/kg].
scalar es(const scalar p, const scalar T) const
Sensible internal energy [J/kg].
autoPtr< eConstThermo > clone() const
Construct and return a clone.
eConstThermo(const EquationOfState &st, const scalar Cv, const scalar hf, const scalar Tref, const scalar esRef)
Construct from components.
A class for handling words, derived from string.
word name(const bool)
Return a word representation of a bool.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)