class GasState inline function to acces thermoData moved to the header
This commit is contained in:
parent
18b24fbe4d
commit
0c7bf3027a
3 changed files with 14 additions and 13 deletions
|
|
@ -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 * * * * * * * * * * * //
|
||||
|
||||
|
|
|
|||
|
|
@ -40,6 +40,8 @@ SourceFiles
|
|||
#include "constants.H"
|
||||
#include "scalarField.H"
|
||||
|
||||
#include "diffusivityModel.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
|
|
|
|||
|
|
@ -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_;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue