Go to the documentation of this file.
58 template<
class EquationOfState>
65 template<
class EquationOfState>
72 template<
class EquationOfState>
79 template<
class EquationOfState>
91 template<
class EquationOfState>
94 public EquationOfState
109 scalar Tlow_, Thigh_, Tcommon_;
118 void checkInputData()
const;
121 inline const coeffArray& coeffs(
const scalar
T)
const;
131 const EquationOfState& st,
137 const bool convertCoeffs =
false
152 return "janaf<" + EquationOfState::typeName() +
'>';
156 inline scalar
limit(
const scalar
T)
const;
162 inline scalar
Tlow()
const;
165 inline scalar
Thigh()
const;
180 inline scalar
Cp(
const scalar
p,
const scalar
T)
const;
183 inline scalar
Ha(
const scalar
p,
const scalar
T)
const;
186 inline scalar
Hs(
const scalar
p,
const scalar
T)
const;
189 inline scalar
Hc()
const;
192 inline scalar
S(
const scalar
p,
const scalar
T)
const;
195 inline scalar
Gstd(
const scalar
T)
const;
204 inline scalar
dCpdT(
const scalar
p,
const scalar
T)
const;
241 friend Ostream& operator<< <EquationOfState>
const coeffArray & highCpCoeffs() const
Return const access to the high temperature poly coefficients.
A class for handling words, derived from Foam::string.
scalar Tlow() const
Return const access to the low temperature limit.
JANAF tables based thermodynamics package templated into the equation of state.
static word typeName()
Return the instantiated type name.
const coeffArray & lowCpCoeffs() const
Return const access to the low temperature poly coefficients.
scalar Cp(const scalar p, const scalar T) const
Heat capacity at constant pressure [J/(kg K)].
static constexpr int nCoeffs_
FixedList< scalar, nCoeffs_ > coeffArray
scalar Ha(const scalar p, const scalar T) const
Absolute Enthalpy [J/kg].
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
void operator+=(const janafThermo &)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
scalar limit(const scalar T) const
Limit the temperature to be in the range Tlow_ to Thigh_.
scalar Tcommon() const
Return const access to the common temperature.
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 Hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kg].
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void write(Ostream &os) const
Write to Ostream.
scalar Thigh() const
Return const access to the high temperature limit.
scalar dCpdT(const scalar p, const scalar T) const
Temperature derivative of heat capacity at constant pressure.
scalar Gstd(const scalar T) const
Gibbs free energy of the mixture in the standard state [J/kg].
scalar Hc() const
Chemical enthalpy [J/kg].
scalar S(const scalar p, const scalar T) const
Entropy [J/(kg K)].