waLBerla 7.2
Loading...
Searching...
No Matches
walberla::mesh::MeshBodyWallDistance< MeshType > Class Template Reference

Detailed Description

template<typename MeshType>
class walberla::mesh::MeshBodyWallDistance< MeshType >

Class which computes the minimum wall distance between a fluid cell and a mesh object using the Möller-Trumbore Fast Minimum Storage Ray/Triangle Intersection Algorithm.

The operator acts as a callback function which can be bound to Code-Generated boundary conditions requiring the wall distance, i.e. Quadratic Bounce Back.

#include <MeshBodyWallDistanceCallback.h>

Public Member Functions

 MeshBodyWallDistance (const std::shared_ptr< mesh::DistanceOctree< MeshType > > &distanceOctree)
 
real_t operator() (const Cell &fluid, const Cell &boundary, const shared_ptr< StructuredBlockForest > &SbF, IBlock &block) const
 

Private Attributes

const std::shared_ptr< mesh::DistanceOctree< MeshType > > & distanceOctree_
 

Constructor & Destructor Documentation

◆ MeshBodyWallDistance()

template<typename MeshType >
walberla::mesh::MeshBodyWallDistance< MeshType >::MeshBodyWallDistance ( const std::shared_ptr< mesh::DistanceOctree< MeshType > > & distanceOctree)
inline

Member Function Documentation

◆ operator()()

template<typename MeshType >
real_t walberla::mesh::MeshBodyWallDistance< MeshType >::operator() ( const Cell & fluid,
const Cell & boundary,
const shared_ptr< StructuredBlockForest > & SbF,
IBlock & block ) const
inline

Member Data Documentation

◆ distanceOctree_

template<typename MeshType >
const std::shared_ptr< mesh::DistanceOctree<MeshType> >& walberla::mesh::MeshBodyWallDistance< MeshType >::distanceOctree_
private

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