walberla::lbm::VelocityBoundary< LatticeModel_T, flag_t > Class Template Reference

#include <VelocityBoundary.h>

+ Inheritance diagram for walberla::lbm::VelocityBoundary< LatticeModel_T, flag_t >:

Classes

class  Configuration
 

Public Member Functions

 VelocityBoundary (const BoundaryUID &boundaryUID, const FlagUID &uid, PDFField *const pdfField, FlagField< flag_t > *const flagField=NULL)
 
void pushFlags (std::vector< FlagUID > &uids) const
 
void beforeBoundaryTreatment () const
 
void afterBoundaryTreatment () const
 
template<typename Buffer_T >
void packCell (Buffer_T &buffer, const cell_idx_t x, const cell_idx_t y, const cell_idx_t z) const
 
template<typename Buffer_T >
void registerCell (Buffer_T &buffer, const flag_t, const cell_idx_t x, const cell_idx_t y, const cell_idx_t z)
 
void registerCell (const flag_t, const cell_idx_t x, const cell_idx_t y, const cell_idx_t z, const BoundaryConfiguration &velocity)
 
void registerCells (const flag_t, const CellInterval &cells, const BoundaryConfiguration &velocity)
 
template<typename CellIterator >
void registerCells (const flag_t, const CellIterator &begin, const CellIterator &end, const BoundaryConfiguration &velocity)
 
void unregisterCell (const flag_t, const cell_idx_t, const cell_idx_t, const cell_idx_t) const
 
void treatDirection (const cell_idx_t x, const cell_idx_t y, const cell_idx_t z, const stencil::Direction dir, const cell_idx_t nx, const cell_idx_t ny, const cell_idx_t nz, const flag_t mask)
 
const std::vector< real_t > & getValue (const cell_idx_t x, cell_idx_t y, cell_idx_t z) const
 
- Public Member Functions inherited from walberla::boundary::Boundary< flag_t >
 Boundary (const BoundaryUID &boundaryUID)
 
void setMask (const flag_t mask)
 
flag_t getMask () const
 
const BoundaryUIDgetUID () const
 

Static Public Member Functions

static shared_ptr< ConfigurationcreateConfiguration (const Config::BlockHandle &config)
 

Static Public Attributes

static const bool threadsafe = true
 

Private Types

using PDFField = PdfField< LatticeModel_T >
 
using Stencil = typename LatticeModel_T::Stencil
 
using VelField = GhostLayerField< shared_ptr< std::vector< real_t > >, 1 >
 

Private Attributes

const FlagUID uid_
 
PDFField *const pdfField_
 
shared_ptr< VelFieldvel_
 

Additional Inherited Members

- Protected Attributes inherited from walberla::boundary::Boundary< flag_t >
const BoundaryUID boundaryUID_
 
flag_t mask_
 
bool maskSet_
 

Member Typedef Documentation

◆ PDFField

template<typename LatticeModel_T , typename flag_t >
using walberla::lbm::VelocityBoundary< LatticeModel_T, flag_t >::PDFField = PdfField<LatticeModel_T>
private

◆ Stencil

template<typename LatticeModel_T , typename flag_t >
using walberla::lbm::VelocityBoundary< LatticeModel_T, flag_t >::Stencil = typename LatticeModel_T::Stencil
private

◆ VelField

template<typename LatticeModel_T , typename flag_t >
using walberla::lbm::VelocityBoundary< LatticeModel_T, flag_t >::VelField = GhostLayerField<shared_ptr<std::vector<real_t> >, 1>
private

Constructor & Destructor Documentation

◆ VelocityBoundary()

template<typename LatticeModel_T , typename flag_t >
walberla::lbm::VelocityBoundary< LatticeModel_T, flag_t >::VelocityBoundary ( const BoundaryUID &  boundaryUID,
const FlagUID &  uid,
PDFField *const  pdfField,
FlagField< flag_t > *const  flagField = NULL 
)
inline

Member Function Documentation

◆ afterBoundaryTreatment()

template<typename LatticeModel_T , typename flag_t >
void walberla::lbm::VelocityBoundary< LatticeModel_T, flag_t >::afterBoundaryTreatment ( ) const
inline

◆ beforeBoundaryTreatment()

template<typename LatticeModel_T , typename flag_t >
void walberla::lbm::VelocityBoundary< LatticeModel_T, flag_t >::beforeBoundaryTreatment ( ) const
inline

◆ createConfiguration()

template<typename LatticeModel_T , typename flag_t >
static shared_ptr<Configuration> walberla::lbm::VelocityBoundary< LatticeModel_T, flag_t >::createConfiguration ( const Config::BlockHandle config)
inlinestatic

◆ getValue()

template<typename LatticeModel_T , typename flag_t >
const std::vector<real_t>& walberla::lbm::VelocityBoundary< LatticeModel_T, flag_t >::getValue ( const cell_idx_t  x,
cell_idx_t  y,
cell_idx_t  z 
) const
inline

◆ packCell()

template<typename LatticeModel_T , typename flag_t >
template<typename Buffer_T >
void walberla::lbm::VelocityBoundary< LatticeModel_T, flag_t >::packCell ( Buffer_T &  buffer,
const cell_idx_t  x,
const cell_idx_t  y,
const cell_idx_t  z 
) const
inline

◆ pushFlags()

template<typename LatticeModel_T , typename flag_t >
void walberla::lbm::VelocityBoundary< LatticeModel_T, flag_t >::pushFlags ( std::vector< FlagUID > &  uids) const
inline

◆ registerCell() [1/2]

template<typename LatticeModel_T , typename flag_t >
template<typename Buffer_T >
void walberla::lbm::VelocityBoundary< LatticeModel_T, flag_t >::registerCell ( Buffer_T &  buffer,
const  flag_t,
const cell_idx_t  x,
const cell_idx_t  y,
const cell_idx_t  z 
)
inline

◆ registerCell() [2/2]

template<typename LatticeModel_T , typename flag_t >
void walberla::lbm::VelocityBoundary< LatticeModel_T, flag_t >::registerCell ( const  flag_t,
const cell_idx_t  x,
const cell_idx_t  y,
const cell_idx_t  z,
const BoundaryConfiguration velocity 
)
inline

◆ registerCells() [1/2]

template<typename LatticeModel_T , typename flag_t >
void walberla::lbm::VelocityBoundary< LatticeModel_T, flag_t >::registerCells ( const  flag_t,
const CellInterval cells,
const BoundaryConfiguration velocity 
)
inline

◆ registerCells() [2/2]

template<typename LatticeModel_T , typename flag_t >
template<typename CellIterator >
void walberla::lbm::VelocityBoundary< LatticeModel_T, flag_t >::registerCells ( const  flag_t,
const CellIterator &  begin,
const CellIterator &  end,
const BoundaryConfiguration velocity 
)
inline

◆ treatDirection()

template<typename LatticeModel_T , typename flag_t >
void walberla::lbm::VelocityBoundary< LatticeModel_T, flag_t >::treatDirection ( const cell_idx_t  x,
const cell_idx_t  y,
const cell_idx_t  z,
const stencil::Direction  dir,
const cell_idx_t  nx,
const cell_idx_t  ny,
const cell_idx_t  nz,
const flag_t  mask 
)
inline

◆ unregisterCell()

template<typename LatticeModel_T , typename flag_t >
void walberla::lbm::VelocityBoundary< LatticeModel_T, flag_t >::unregisterCell ( const  flag_t,
const  cell_idx_t,
const  cell_idx_t,
const  cell_idx_t 
) const
inline

Member Data Documentation

◆ pdfField_

template<typename LatticeModel_T , typename flag_t >
PDFField* const walberla::lbm::VelocityBoundary< LatticeModel_T, flag_t >::pdfField_
private

◆ threadsafe

template<typename LatticeModel_T , typename flag_t >
const bool walberla::lbm::VelocityBoundary< LatticeModel_T, flag_t >::threadsafe = true
static

◆ uid_

template<typename LatticeModel_T , typename flag_t >
const FlagUID walberla::lbm::VelocityBoundary< LatticeModel_T, flag_t >::uid_
private

◆ vel_

template<typename LatticeModel_T , typename flag_t >
shared_ptr<VelField> walberla::lbm::VelocityBoundary< LatticeModel_T, flag_t >::vel_
private

The documentation for this class was generated from the following file: