class GasState inline function to acces thermoData moved to the header

This commit is contained in:
Yeongdo Park 2018-11-04 17:13:38 -05:00
parent 18b24fbe4d
commit 0c7bf3027a
3 changed files with 14 additions and 13 deletions

View file

@ -25,8 +25,6 @@ License
#include "GasState.H"
#include "diffusivityModel.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
// const dataType Foam::GasState::staticData();
@ -37,17 +35,6 @@ License
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
inline const Foam::PtrList<Foam::GasState::thermoType> &Foam::GasState::thermos() const
{
return diffusivityModel::thermoData();
}
inline const Foam::GasState::thermoType &Foam::GasState::thermos(label i) const
{
return thermos()[i];
}
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //

View file

@ -40,6 +40,8 @@ SourceFiles
#include "constants.H"
#include "scalarField.H"
#include "diffusivityModel.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam

View file

@ -36,6 +36,18 @@ License
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
inline const Foam::PtrList<Foam::GasState::thermoType> &Foam::GasState::thermos() const
{
return diffusivityModel::thermoData();
}
inline const Foam::GasState::thermoType &Foam::GasState::thermos(label i) const
{
return thermos()[i];
}
inline Foam::scalar Foam::GasState::T() const
{
return T_;