56template<
class EquationOfState>
class janafThermo;
58template<
class EquationOfState>
65template<
class EquationOfState>
72template<
class EquationOfState>
79template<
class EquationOfState>
91template<
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>
A 1D vector of objects of type <T> with a fixed length <N>.
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 a number of values (eg,...
JANAF tables based thermodynamics package templated into the equation of state.
static constexpr int nCoeffs_
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 Hs(const scalar p, const scalar T) const
Sensible enthalpy [J/kg].
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.
FixedList< scalar, nCoeffs_ > coeffArray
scalar Hc() const
Chemical enthalpy [J/kg].
scalar Tcommon() const
Return const access to the common temperature.
scalar S(const scalar p, const scalar T) const
Entropy [J/(kg K)].
scalar Ha(const scalar p, const scalar T) const
Absolute Enthalpy [J/kg].
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].
const coeffArray & lowCpCoeffs() const
Return const access to the low temperature poly coefficients.
void operator+=(const janafThermo &)
A class for handling words, derived from Foam::string.
const volScalarField & Cp
OBJstream os(runTime.globalPath()/outputName)