96 template<
class EquationOfState>
class janafThermo;
98 template<
class EquationOfState>
99 inline janafThermo<EquationOfState>
operator+
101 const janafThermo<EquationOfState>&,
102 const janafThermo<EquationOfState>&
105 template<
class EquationOfState>
106 inline janafThermo<EquationOfState>
operator*
109 const janafThermo<EquationOfState>&
112 template<
class EquationOfState>
113 inline janafThermo<EquationOfState>
operator==
115 const janafThermo<EquationOfState>&,
119 template<
class EquationOfState>
131 template<
class EquationOfState>
134 public EquationOfState
156 scalar Tlow_, Thigh_, Tcommon_;
168 void checkInputData()
const;
171 inline const coeffArray& coeffs(
const scalar
T)
const;
181 const EquationOfState& st,
187 const bool convertCoeffs =
false
202 return "janaf<" + EquationOfState::typeName() +
'>';
206 inline scalar
limit(
const scalar
T)
const;
212 inline scalar
Tlow()
const;
215 inline scalar
Thigh()
const;
230 inline scalar
Cp(
const scalar
p,
const scalar
T)
const;
233 inline scalar
ha(
const scalar
p,
const scalar
T)
const;
236 inline scalar
hs(
const scalar
p,
const scalar
T)
const;
239 inline scalar
hf()
const;
242 inline scalar
s(
const scalar
p,
const scalar
T)
const;
245 inline scalar
gStd(
const scalar
T)
const;
253 inline scalar
dCpdT(
const scalar
p,
const scalar
T)
const;
290 friend Ostream& operator<< <EquationOfState>
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Enthalpy based thermodynamics package using JANAF tables:
scalar gStd(const scalar T) const
Gibbs free energy of the mixture in the standard state [J/kg].
janafThermo(const EquationOfState &st, const scalar Tlow, const scalar Thigh, const scalar Tcommon, const coeffArray &highCpCoeffs, const coeffArray &lowCpCoeffs, const bool convertCoeffs=false)
Construct from components.
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.
scalar Tlow() const
Return const access to the low temperature limit.
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].
FixedList< scalar, nCoeffs_ > coeffArray
Coefficient array type.
scalar Tcommon() const
Return const access to the common temperature.
void write(Ostream &os) const
Write to Ostream.
scalar Thigh() const
Return const access to the high temperature limit.
const coeffArray & highCpCoeffs() const
Return const access to the high temperature poly coefficients.
scalar ha(const scalar p, const scalar T) const
Absolute enthalpy [J/kg].
scalar hf() const
Enthalpy of formation [J/kg].
static const int nCoeffs_
Number of coefficients.
const coeffArray & lowCpCoeffs() const
Return const access to the low temperature poly coefficients.
void operator+=(const janafThermo &)
scalar hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kg].
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)