walberla::lbm_mesapd_coupling::MovingParticleMappingKernel< BoundaryHandling_T > Class Template Reference

Detailed Description

template<typename BoundaryHandling_T>
class walberla::lbm_mesapd_coupling::MovingParticleMappingKernel< BoundaryHandling_T >

Kernel that maps all particles onto all blocks to the "moving obstacle" boundary condition, that requires the additional particleField.

Cells that are inside the particles are set to 'obstacle' and the UID of the particle is stored in the particleField for later reference.

Example: lbm_mesapd_coupling::MovingParticleMappingKernel<BoundaryHandling_T> movingParticleMappingKernel(blocks, boundaryHandlingID, particleFieldID); ps->forEachParticle(false, lbm_mesapd_coupling::RegularParticlesSelector(), *accessor, movingParticleMappingKernel, *accessor, MO_Flag);

This kernel is usually applied before the start of the simulation, after the particle and fluid data structures have been created. As a result, a consistent mapping of the particles into the domain is obtained. For the update of the mapping during time stepping, use the class MovingParticleMapping (above).

This mapping can also be used for stationary particle if the force and torque on this particle are to be evaluated.

#include <MovingParticleMapping.h>

Public Member Functions

 MovingParticleMappingKernel (const shared_ptr< StructuredBlockStorage > &blockStorage, const BlockDataID &boundaryHandlingID, const BlockDataID &particleFieldID)
 
template<typename ParticleAccessor_T >
void operator() (const size_t particleIdx, const ParticleAccessor_T &ac, const FlagUID &obstacle)
 

Private Member Functions

template<typename ParticleAccessor_T >
void mapMovingParticleOnBlock (const size_t particleIdx, const ParticleAccessor_T &ac, IBlock &block, const FlagUID &obstacle)
 

Private Attributes

shared_ptr< StructuredBlockStorageblockStorage_
 
BlockDataID boundaryHandlingID_
 
BlockDataID particleFieldID_
 

Constructor & Destructor Documentation

◆ MovingParticleMappingKernel()

template<typename BoundaryHandling_T >
walberla::lbm_mesapd_coupling::MovingParticleMappingKernel< BoundaryHandling_T >::MovingParticleMappingKernel ( const shared_ptr< StructuredBlockStorage > &  blockStorage,
const BlockDataID boundaryHandlingID,
const BlockDataID particleFieldID 
)
inline

Member Function Documentation

◆ mapMovingParticleOnBlock()

template<typename BoundaryHandling_T >
template<typename ParticleAccessor_T >
void walberla::lbm_mesapd_coupling::MovingParticleMappingKernel< BoundaryHandling_T >::mapMovingParticleOnBlock ( const size_t  particleIdx,
const ParticleAccessor_T &  ac,
IBlock block,
const FlagUID &  obstacle 
)
inlineprivate

◆ operator()()

template<typename BoundaryHandling_T >
template<typename ParticleAccessor_T >
void walberla::lbm_mesapd_coupling::MovingParticleMappingKernel< BoundaryHandling_T >::operator() ( const size_t  particleIdx,
const ParticleAccessor_T &  ac,
const FlagUID &  obstacle 
)
inline

Member Data Documentation

◆ blockStorage_

template<typename BoundaryHandling_T >
shared_ptr<StructuredBlockStorage> walberla::lbm_mesapd_coupling::MovingParticleMappingKernel< BoundaryHandling_T >::blockStorage_
private

◆ boundaryHandlingID_

template<typename BoundaryHandling_T >
BlockDataID walberla::lbm_mesapd_coupling::MovingParticleMappingKernel< BoundaryHandling_T >::boundaryHandlingID_
private

◆ particleFieldID_

template<typename BoundaryHandling_T >
BlockDataID walberla::lbm_mesapd_coupling::MovingParticleMappingKernel< BoundaryHandling_T >::particleFieldID_
private

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