Commit aca450de authored by andy's avatar andy
Browse files

ENH: Added access to janaf parameters in API

parent 95c83abb
......@@ -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)]
......
......@@ -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
(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment