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>&,
116 const janafThermo<EquationOfState>&
119 template<
class EquationOfState>
123 const janafThermo<EquationOfState>&
131 template<
class EquationOfState>
134 public EquationOfState
150 scalar Tlow_, Thigh_, Tcommon_;
152 coeffArray highCpCoeffs_;
153 coeffArray lowCpCoeffs_;
159 void checkInputData()
const;
162 inline const coeffArray& coeffs(
const scalar
T)
const;
172 const EquationOfState& st,
178 const bool convertCoeffs =
false 193 return "janaf<" + EquationOfState::typeName() +
'>';
197 inline scalar
limit(
const scalar
T)
const;
203 inline scalar
Tlow()
const;
206 inline scalar
Thigh()
const;
221 inline scalar
Cp(
const scalar
p,
const scalar
T)
const;
224 inline scalar
Ha(
const scalar
p,
const scalar
T)
const;
227 inline scalar
Hs(
const scalar
p,
const scalar
T)
const;
230 inline scalar
Hf()
const;
233 inline scalar
S(
const scalar
p,
const scalar
T)
const;
236 inline scalar
Gstd(
const scalar
T)
const;
244 inline scalar
dCpdT(
const scalar
p,
const scalar
T)
const;
250 void write(Ostream& os)
const;
266 friend janafThermo
operator* <EquationOfState>
272 friend janafThermo
operator== <EquationOfState>
281 friend Ostream& operator<< <EquationOfState>
static const int nCoeffs_
A list of keyword definitions, which are a keyword followed by any number of values (e...
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 Gstd(const scalar T) const
Gibbs free energy of the mixture in the standard state [J/kg].
scalar dCpdT(const scalar p, const scalar T) const
Temperature derivative of heat capacity at constant pressure.
scalar limit(const scalar T) const
Limit the temperature to be in the range Tlow_ to Thigh_.
A class for handling words, derived from string.
static word typeName()
Return the instantiated type name.
scalar S(const scalar p, const scalar T) const
Entropy [J/kg/K].
scalar Tlow() const
Return const access to the low temperature limit.
scalar Hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kg].
void write(Ostream &os) const
Write to Ostream.
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.
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 Hf() const
Enthalpy of formation [J/kg].
const coeffArray & lowCpCoeffs() const
Return const access to the low temperature poly coefficients.
void operator+=(const janafThermo &)
Enthalpy based thermodynamics package using JANAF tables:
scalar Ha(const scalar p, const scalar T) const
Absolute enthalpy [J/kg].
FixedList< scalar, nCoeffs_ > coeffArray
scalar Cp(const scalar p, const scalar T) const
Heat capacity at constant pressure [J/kg/K].
scalar Tcommon() const
Return const access to the common temperature.