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.