Go to the documentation of this file.
37 #ifndef hConstThermo_H
38 #define hConstThermo_H
49 template<
class EquationOfState>
56 template<
class EquationOfState>
63 template<
class EquationOfState>
70 template<
class EquationOfState>
77 template<
class EquationOfState>
89 template<
class EquationOfState>
92 public EquationOfState
105 const EquationOfState& st,
139 return "hConst<" + EquationOfState::typeName() +
'>';
143 inline scalar
limit(
const scalar
T)
const;
149 inline scalar
cp(
const scalar
p,
const scalar
T)
const;
152 inline scalar
ha(
const scalar
p,
const scalar
T)
const;
155 inline scalar
hs(
const scalar
p,
const scalar
T)
const;
158 inline scalar
hc()
const;
161 inline scalar
s(
const scalar
p,
const scalar
T)
const;
205 friend Ostream& operator<< <EquationOfState>
scalar ha(const scalar p, const scalar T) const
Absolute Enthalpy [J/kmol].
A class for handling words, derived from string.
scalar cp(const scalar p, const scalar T) const
Heat capacity at constant pressure [J/(kmol K)].
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/(kmol K)].
void write(Ostream &os) const
Write to Ostream.
static autoPtr< hConstThermo > New(Istream &is)
Selector from Istream.
void operator+=(const hConstThermo &)
scalar hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kmol].
static word typeName()
Return the instantiated type name.
autoPtr< hConstThermo > clone() const
Construct and return a clone.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
hConstThermo(const EquationOfState &st, const scalar cp, const scalar hf)
Construct from components.
A list of keyword definitions, which are a keyword followed by any number of values (e....
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
scalar hc() const
Chemical enthalpy [J/kmol].
void operator-=(const hConstThermo &)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Constant properties thermodynamics package templated into the EquationOfState.