walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce > Class Template Reference

#include <ParserUBB.h>

+ Inheritance diagram for walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >:

Classes

class  Parser
 
class  Velocity
 

Public Types

using ParserField = GhostLayerField< shared_ptr< Parser >, 1 >
 
using VelocityField = GhostLayerField< Vector3< real_t >, 1 >
 

Public Member Functions

 ParserUBB (const BoundaryUID &boundaryUID, const FlagUID &uid, PDFField *const pdfField, FlagField< flag_t > *const flagField, const shared_ptr< TimeTracker > &timeTracker, const uint_t level, const AABB &aabb)
 
 ParserUBB (const BoundaryUID &boundaryUID, const FlagUID &uid, PDFField *const pdfField, FlagField< flag_t > *const flagField, const uint_t level, const AABB &aabb)
 
shared_ptr< TimeTrackergetTimeTracker ()
 
void pushFlags (std::vector< FlagUID > &uids) const
 
void beforeBoundaryTreatment ()
 
void afterBoundaryTreatment () const
 
template<typename Buffer_T >
void packCell (Buffer_T &, const cell_idx_t, const cell_idx_t, const cell_idx_t) const
 
template<typename Buffer_T >
void registerCell (Buffer_T &, const flag_t, const cell_idx_t, const cell_idx_t, const cell_idx_t)
 
void registerCell (const flag_t, const cell_idx_t x, const cell_idx_t y, const cell_idx_t z, const BoundaryConfiguration &parser)
 
void registerCells (const flag_t, const CellInterval &cells, const BoundaryConfiguration &parser)
 
template<typename CellIterator >
void registerCells (const flag_t, const CellIterator &begin, const CellIterator &end, const BoundaryConfiguration &parser)
 
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)
 
Vector3< real_tgetValue (const cell_idx_t x, cell_idx_t y, cell_idx_t z) const
 
Vector3< real_tgetValue (const cell_idx_t x, cell_idx_t y, cell_idx_t z, real_t t) const
 
const ForceField::value_typegetForce (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 bool isParser (const BoundaryConfiguration &config)
 
static bool isVelocity (const BoundaryConfiguration &config)
 
static shared_ptr< ParsercreateConfiguration (const Config::BlockHandle &config)
 

Static Public Attributes

static const bool threadsafe = true
 

Private Types

using PDFField = lbm::PdfField< LatticeModel_T >
 
using Stencil = typename LatticeModel_T::Stencil
 
using ForceField = GhostLayerField< Vector3< real_t >, 1 >
 

Private Attributes

const FlagUID uid_
 
PDFField *const pdfField_
 
Vector3< real_torigin_
 
Vector3< real_tdx_
 
shared_ptr< TimeTrackertimeTracker_
 
real_t time_
 
uint_t level_
 
shared_ptr< ParserFieldparserField_
 
shared_ptr< VelocityFieldvelocityField_
 
shared_ptr< ForceFieldforce_
 

Additional Inherited Members

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

Member Typedef Documentation

◆ ForceField

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce = false, bool StoreForce = false>
using walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::ForceField = GhostLayerField<Vector3<real_t>, 1>
private

◆ ParserField

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce = false, bool StoreForce = false>
using walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::ParserField = GhostLayerField<shared_ptr<Parser>, 1>

◆ PDFField

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce = false, bool StoreForce = false>
using walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::PDFField = lbm::PdfField<LatticeModel_T>
private

◆ Stencil

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce = false, bool StoreForce = false>
using walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::Stencil = typename LatticeModel_T::Stencil
private

◆ VelocityField

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce = false, bool StoreForce = false>
using walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::VelocityField = GhostLayerField<Vector3<real_t>, 1>

Constructor & Destructor Documentation

◆ ParserUBB() [1/2]

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce, bool StoreForce>
walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::ParserUBB ( const BoundaryUID &  boundaryUID,
const FlagUID &  uid,
PDFField *const  pdfField,
FlagField< flag_t > *const  flagField,
const shared_ptr< TimeTracker > &  timeTracker,
const uint_t  level,
const AABB &  aabb 
)
inline

◆ ParserUBB() [2/2]

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce, bool StoreForce>
walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::ParserUBB ( const BoundaryUID &  boundaryUID,
const FlagUID &  uid,
PDFField *const  pdfField,
FlagField< flag_t > *const  flagField,
const uint_t  level,
const AABB &  aabb 
)
inline

Member Function Documentation

◆ afterBoundaryTreatment()

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce = false, bool StoreForce = false>
void walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::afterBoundaryTreatment ( ) const
inline

◆ beforeBoundaryTreatment()

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce = false, bool StoreForce = false>
void walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::beforeBoundaryTreatment ( )
inline

◆ createConfiguration()

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce = false, bool StoreForce = false>
static shared_ptr<Parser> walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::createConfiguration ( const Config::BlockHandle config)
inlinestatic

◆ getForce()

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce = false, bool StoreForce = false>
const ForceField::value_type& walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::getForce ( const cell_idx_t  x,
cell_idx_t  y,
cell_idx_t  z 
) const
inline

◆ getTimeTracker()

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce = false, bool StoreForce = false>
shared_ptr< TimeTracker > walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::getTimeTracker ( )
inline

◆ getValue() [1/2]

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce, bool StoreForce>
Vector3< real_t > walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::getValue ( const cell_idx_t  x,
cell_idx_t  y,
cell_idx_t  z 
) const
inline

◆ getValue() [2/2]

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce, bool StoreForce>
Vector3< real_t > walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::getValue ( const cell_idx_t  x,
cell_idx_t  y,
cell_idx_t  z,
real_t  t 
) const
inline

◆ isParser()

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce = false, bool StoreForce = false>
static bool walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::isParser ( const BoundaryConfiguration config)
inlinestatic

◆ isVelocity()

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce = false, bool StoreForce = false>
static bool walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::isVelocity ( const BoundaryConfiguration config)
inlinestatic

◆ packCell()

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce, bool StoreForce>
template<typename Buffer_T >
void walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::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 , bool AdaptVelocityToExternalForce = false, bool StoreForce = false>
void walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::pushFlags ( std::vector< FlagUID > &  uids) const
inline

◆ registerCell() [1/2]

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce, bool StoreForce>
template<typename Buffer_T >
void walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::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 , bool AdaptVelocityToExternalForce, bool StoreForce>
void walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::registerCell ( const  flag_t,
const cell_idx_t  x,
const cell_idx_t  y,
const cell_idx_t  z,
const BoundaryConfiguration parser 
)
inline

◆ registerCells() [1/2]

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce, bool StoreForce>
void walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::registerCells ( const  flag_t,
const CellInterval cells,
const BoundaryConfiguration parser 
)
inline

◆ registerCells() [2/2]

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce, bool StoreForce>
template<typename CellIterator >
void walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::registerCells ( const  flag_t,
const CellIterator &  begin,
const CellIterator &  end,
const BoundaryConfiguration parser 
)
inline

◆ treatDirection()

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce = false, bool StoreForce = false>
void walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::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 , bool AdaptVelocityToExternalForce, bool StoreForce>
void walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::unregisterCell ( const  flag_t,
const cell_idx_t  x,
const cell_idx_t  y,
const cell_idx_t  z 
) const
inline

Member Data Documentation

◆ dx_

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce = false, bool StoreForce = false>
Vector3< real_t > walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::dx_
private

◆ force_

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce = false, bool StoreForce = false>
shared_ptr<ForceField> walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::force_
private

◆ level_

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce = false, bool StoreForce = false>
uint_t walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::level_
private

◆ origin_

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce = false, bool StoreForce = false>
Vector3< real_t > walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::origin_
private

◆ parserField_

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce = false, bool StoreForce = false>
shared_ptr<ParserField> walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::parserField_
private

◆ pdfField_

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce = false, bool StoreForce = false>
PDFField* const walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::pdfField_
private

◆ threadsafe

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce = false, bool StoreForce = false>
const bool walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::threadsafe = true
static

◆ time_

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce = false, bool StoreForce = false>
real_t walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::time_
private

◆ timeTracker_

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce = false, bool StoreForce = false>
shared_ptr< TimeTracker > walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::timeTracker_
private

◆ uid_

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce = false, bool StoreForce = false>
const FlagUID walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::uid_
private

◆ velocityField_

template<typename LatticeModel_T , typename flag_t , bool AdaptVelocityToExternalForce = false, bool StoreForce = false>
shared_ptr<VelocityField> walberla::lbm::ParserUBB< LatticeModel_T, flag_t, AdaptVelocityToExternalForce, StoreForce >::velocityField_
private

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