waLBerla 7.3
Loading...
Searching...
No Matches
walberla::mesa_pd::collision_detection Namespace Reference

Namespaces

namespace  analytic

Classes

class  AnalyticContactDetection
 Collision detection functor which uses analytic functions. More...
struct  EpsilonRelEPA
struct  EpsilonRelEPA< float >
struct  EpsilonRelEPA< double >
struct  EpsilonRelEPA< long double >
class  EPA
 The Expanding-Polytope Algorithm. More...
class  GeneralContactDetection
 Collision detection functor which uses recommended collision functions. More...
class  GJK
 Implementation of the Gilbert-Johnson-Keerthi Algorithm. More...
class  Support

Functions

std::ostream & operator<< (std::ostream &os, const AnalyticContactDetection &ac)
template<typename Accessor>
bool isInInteractionDistance (const size_t idx1, const size_t idx2, Accessor &ac)
 Checks if particle idx1 is within interaction distance with particle idx2.

Variables

const float EpsilonRelEPA< float >::value = static_cast< float >(1e-4)
const double EpsilonRelEPA< double >::value = static_cast< double >(1e-6)
const long double EpsilonRelEPA< longdouble >::value = static_cast< long double >(1e-6)

Function Documentation

◆ isInInteractionDistance()

template<typename Accessor>
bool walberla::mesa_pd::collision_detection::isInInteractionDistance ( const size_t idx1,
const size_t idx2,
Accessor & ac )

Checks if particle idx1 is within interaction distance with particle idx2.

Collisions of infinite particles are also filtered.

◆ operator<<()

std::ostream & walberla::mesa_pd::collision_detection::operator<< ( std::ostream & os,
const AnalyticContactDetection & ac )
inline

Variable Documentation

◆ EpsilonRelEPA< double >::value

const double walberla::mesa_pd::collision_detection::EpsilonRelEPA< double >::value = static_cast< double >(1e-6)

◆ EpsilonRelEPA< float >::value

const float walberla::mesa_pd::collision_detection::EpsilonRelEPA< float >::value = static_cast< float >(1e-4)

◆ EpsilonRelEPA< longdouble >::value

const long double walberla::mesa_pd::collision_detection::EpsilonRelEPA< longdouble >::value = static_cast< long double >(1e-6)