mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Added access to janaf parameters in API
This commit is contained in:
@ -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
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user