walberla::pe::fcd::IFCD Class Referenceabstract

#include <IFCD.h>

+ Inheritance diagram for walberla::pe::fcd::IFCD:

Public Member Functions

virtual ~IFCD ()=default
 
virtual ContactsgenerateContacts (PossibleContacts &possibleContacts)=0
 generates a list of actual collisions More...
 
ContactsgetContacts ()
 returns saved list of contacts More...
 

Protected Attributes

Contacts contacts_
 

Additional Inherited Members

- Private Member Functions inherited from walberla::NonCopyable
 NonCopyable ()=default
 
 ~NonCopyable ()=default
 

Constructor & Destructor Documentation

◆ ~IFCD()

virtual walberla::pe::fcd::IFCD::~IFCD ( )
virtualdefault

Member Function Documentation

◆ generateContacts()

virtual Contacts& walberla::pe::fcd::IFCD::generateContacts ( PossibleContacts possibleContacts)
pure virtual

generates a list of actual collisions

Takes a list of possible contacts (pair of BodyIDs) and checks them for actual collision. All generated contacts are stored in the member variable contacts_ for later reuse. Returns a list containing all contact points detected.

Parameters
possibleContactslist of possible contacts generated by coarse collision detection
Returns
list of actual contacts

Implemented in walberla::pe::fcd::GenericFCD< BodyTypeTuple, CollisionFunctor >, and walberla::pe::fcd::GenericFCD< BodyTypeTuple, AnalyticCollideFunctor >.

◆ getContacts()

Contacts& walberla::pe::fcd::IFCD::getContacts ( )
inline

returns saved list of contacts

Member Data Documentation

◆ contacts_

Contacts walberla::pe::fcd::IFCD::contacts_
protected

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