walberla::lbm::D2Q9< CollisionModel_T, Compressible, ForceModel_T, EquilibriumAccuracyOrder > Class Template Reference

#include <D2Q9.h>

+ Inheritance diagram for walberla::lbm::D2Q9< CollisionModel_T, Compressible, ForceModel_T, EquilibriumAccuracyOrder >:

Public Types

using CollisionModel = typename LatticeModelBase< CollisionModel_T, Compressible, ForceModel_T, EquilibriumAccuracyOrder >::CollisionModel
 
using ForceModel = typename LatticeModelBase< CollisionModel_T, Compressible, ForceModel_T, EquilibriumAccuracyOrder >::ForceModel
 
using Stencil = stencil::D2Q9
 
using CommunicationStencil = stencil::D2Q9
 
- Public Types inherited from walberla::lbm::LatticeModelBase< CollisionModel_T, false, force_model::None, 2 >
using CollisionModel = CollisionModel_T
 
using ForceModel = force_model::None
 

Public Member Functions

 D2Q9 (const CollisionModel_T &cm, const ForceModel_T &fm)
 
 D2Q9 (const CollisionModel_T &cm)
 
 ~D2Q9 () override=default
 
- Public Member Functions inherited from walberla::lbm::LatticeModelBase< CollisionModel_T, false, force_model::None, 2 >
 LatticeModelBase (const CollisionModel_T &cm, const force_model::None &fm)
 
virtual ~LatticeModelBase ()=default
 
virtual void pack (mpi::SendBuffer &buffer) const
 
virtual void unpack (mpi::RecvBuffer &buffer)
 
void configure (IBlock &block, StructuredBlockStorage &sbs)
 
const CollisionModel_T & collisionModel () const
 
CollisionModel_T & collisionModel ()
 
const force_model::NoneforceModel () const
 
force_model::NoneforceModel ()
 

Static Public Attributes

static const char * NAME = "D2Q9"
 
static const real_t w_0 = real_t(4.0) / real_t( 9.0)
 
static const real_t w_1 = real_t(1.0) / real_t( 9.0)
 
static const real_t w_2 = real_t(1.0) / real_t(36.0)
 
static const real_t w [9]
 
static const real_t wInv [9]
 
- Static Public Attributes inherited from walberla::lbm::LatticeModelBase< CollisionModel_T, false, force_model::None, 2 >
static const bool compressible
 
static const int equilibriumAccuracyOrder
 

Protected Member Functions

void config (IBlock &, StructuredBlockStorage &) override
 

Additional Inherited Members

- Protected Attributes inherited from walberla::lbm::LatticeModelBase< CollisionModel_T, false, force_model::None, 2 >
CollisionModel_T collisionModel_
 
force_model::None forceModel_
 

Member Typedef Documentation

◆ CollisionModel

template<typename CollisionModel_T , bool Compressible = false, typename ForceModel_T = force_model::None, int EquilibriumAccuracyOrder = 2>
using walberla::lbm::D2Q9< CollisionModel_T, Compressible, ForceModel_T, EquilibriumAccuracyOrder >::CollisionModel = typename LatticeModelBase<CollisionModel_T, Compressible, ForceModel_T, EquilibriumAccuracyOrder>::CollisionModel

◆ CommunicationStencil

template<typename CollisionModel_T , bool Compressible = false, typename ForceModel_T = force_model::None, int EquilibriumAccuracyOrder = 2>
using walberla::lbm::D2Q9< CollisionModel_T, Compressible, ForceModel_T, EquilibriumAccuracyOrder >::CommunicationStencil = stencil::D2Q9

◆ ForceModel

template<typename CollisionModel_T , bool Compressible = false, typename ForceModel_T = force_model::None, int EquilibriumAccuracyOrder = 2>
using walberla::lbm::D2Q9< CollisionModel_T, Compressible, ForceModel_T, EquilibriumAccuracyOrder >::ForceModel = typename LatticeModelBase<CollisionModel_T, Compressible, ForceModel_T, EquilibriumAccuracyOrder>::ForceModel

◆ Stencil

template<typename CollisionModel_T , bool Compressible = false, typename ForceModel_T = force_model::None, int EquilibriumAccuracyOrder = 2>
using walberla::lbm::D2Q9< CollisionModel_T, Compressible, ForceModel_T, EquilibriumAccuracyOrder >::Stencil = stencil::D2Q9

Constructor & Destructor Documentation

◆ D2Q9() [1/2]

template<typename CollisionModel_T , bool Compressible = false, typename ForceModel_T = force_model::None, int EquilibriumAccuracyOrder = 2>
walberla::lbm::D2Q9< CollisionModel_T, Compressible, ForceModel_T, EquilibriumAccuracyOrder >::D2Q9 ( const CollisionModel_T &  cm,
const ForceModel_T &  fm 
)
inline

◆ D2Q9() [2/2]

template<typename CollisionModel_T , bool Compressible = false, typename ForceModel_T = force_model::None, int EquilibriumAccuracyOrder = 2>
walberla::lbm::D2Q9< CollisionModel_T, Compressible, ForceModel_T, EquilibriumAccuracyOrder >::D2Q9 ( const CollisionModel_T &  cm)
inline

◆ ~D2Q9()

template<typename CollisionModel_T , bool Compressible = false, typename ForceModel_T = force_model::None, int EquilibriumAccuracyOrder = 2>
walberla::lbm::D2Q9< CollisionModel_T, Compressible, ForceModel_T, EquilibriumAccuracyOrder >::~D2Q9 ( )
overridedefault

Member Function Documentation

◆ config()

template<typename CollisionModel_T , bool Compressible = false, typename ForceModel_T = force_model::None, int EquilibriumAccuracyOrder = 2>
void walberla::lbm::D2Q9< CollisionModel_T, Compressible, ForceModel_T, EquilibriumAccuracyOrder >::config ( IBlock ,
StructuredBlockStorage  
)
inlineoverrideprotectedvirtual

Member Data Documentation

◆ NAME

template<typename CM , bool C, typename FM , int EAO>
const char * walberla::lbm::D2Q9< CM, C, FM, EAO >::NAME = "D2Q9"
static

◆ w

template<typename CM , bool C, typename FM , int EAO>
const real_t walberla::lbm::D2Q9< CM, C, FM, EAO >::w
static
Initial value:
= { real_t(4.0) / real_t( 9.0),
real_t(1.0) / real_t( 9.0),
real_t(1.0) / real_t( 9.0),
real_t(1.0) / real_t( 9.0),
real_t(1.0) / real_t( 9.0),
real_t(1.0) / real_t(36.0),
real_t(1.0) / real_t(36.0),
real_t(1.0) / real_t(36.0),
real_t(1.0) / real_t(36.0) }

◆ w_0

template<typename CM , bool C, typename FM , int EAO>
const real_t walberla::lbm::D2Q9< CM, C, FM, EAO >::w_0 = real_t(4.0) / real_t( 9.0)
static

◆ w_1

template<typename CM , bool C, typename FM , int EAO>
const real_t walberla::lbm::D2Q9< CM, C, FM, EAO >::w_1 = real_t(1.0) / real_t( 9.0)
static

◆ w_2

template<typename CM , bool C, typename FM , int EAO>
const real_t walberla::lbm::D2Q9< CM, C, FM, EAO >::w_2 = real_t(1.0) / real_t(36.0)
static

◆ wInv

template<typename CM , bool C, typename FM , int EAO>
const real_t walberla::lbm::D2Q9< CM, C, FM, EAO >::wInv
static
Initial value:
= { real_t(9.0) / real_t( 4.0),
real_t( 9.0),
real_t( 9.0),
real_t( 9.0),
real_t( 9.0),
real_t(36.0),
real_t(36.0),
real_t(36.0),
real_t(36.0) }

The documentation for this class was generated from the following file:
float real_t
Definition: DataTypes.h:167