ENH: Added access to janaf parameters in API

This commit is contained in:
andy
2011-11-04 13:12:50 +00:00
parent 95c83abb1f
commit aca450deb3
2 changed files with 56 additions and 0 deletions

View File

@ -153,6 +153,25 @@ public:
//- Limit the temperature to be in the range Tlow_ to Thigh_
inline scalar limit(const scalar T) const;
// Access
//- Return const access to the low temperature limit
inline scalar Tlow() const;
//- Return const access to the high temperature limit
inline scalar Thigh() const;
//- Return const access to the common temperature
inline scalar Tcommon() const;
//- Return const access to the high temperature poly coefficients
inline const coeffArray& highCpCoeffs() const;
//- Return const access to the low temperature poly coefficients
inline const coeffArray& lowCpCoeffs() const;
// Fundamental properties
//- Heat capacity at constant pressure [J/(kmol K)]

View File

@ -119,6 +119,43 @@ inline Foam::scalar Foam::janafThermo<EquationOfState>::limit
}
template<class EquationOfState>
inline Foam::scalar Foam::janafThermo<EquationOfState>::Tlow() const
{
return Tlow_;
}
template<class EquationOfState>
inline Foam::scalar Foam::janafThermo<EquationOfState>::Thigh() const
{
return Thigh_;
}
template<class EquationOfState>
inline Foam::scalar Foam::janafThermo<EquationOfState>::Tcommon() const
{
return Tcommon_;
}
template<class EquationOfState>
inline const typename Foam::janafThermo<EquationOfState>::coeffArray&
Foam::janafThermo<EquationOfState>::highCpCoeffs() const
{
return highCpCoeffs_;
}
template<class EquationOfState>
inline const typename Foam::janafThermo<EquationOfState>::coeffArray&
Foam::janafThermo<EquationOfState>::lowCpCoeffs() const
{
return lowCpCoeffs_;
}
template<class EquationOfState>
inline Foam::scalar Foam::janafThermo<EquationOfState>::cp
(