ESyS-Particle  2.3.4
ASphereBodyInteraction< T > Class Template Referenceabstract

Abstract base for all interactions between a particle and a sphere body. More...

#include <SphereBodyInteraction.h>

Inheritance diagram for ASphereBodyInteraction< T >:
Collaboration diagram for ASphereBodyInteraction< T >:

Public Member Functions

 ASphereBodyInteraction (T *, CSphereBody *, bool iflag=true)
 
virtual ~ASphereBodyInteraction ()
 
virtual bool hasTag (int, int) const
 
virtual Vec3 getPosFirst () const
 
bool isInner ()
 
virtual void calcForces ()=0
 
virtual double getStiffness ()
 
- Public Member Functions inherited from AInteraction
 AInteraction ()
 
virtual ~AInteraction ()
 
bool initialized () const
 
virtual void calcHeatTrans ()
 
virtual void calcHeatFrict ()
 
vector< int > getAllID () const
 
int getID ()
 
virtual Vec3 getPosSecond () const
 
double Count () const
 

Protected Attributes

T * m_p
 
CSphereBodym_sphere
 
bool m_inner_flag
 
- Protected Attributes inherited from AInteraction
vector< int > m_id
 id's of the particles involved More...
 
int m_iid
 interaction id More...
 
bool m_init
 

Detailed Description

template<class T>
class ASphereBodyInteraction< T >

Abstract base for all interactions between a particle and a sphere body.

Author
Dion Weatherley $Revision$ $Date$

Constructor & Destructor Documentation

◆ ASphereBodyInteraction()

template<class T >
ASphereBodyInteraction< T >::ASphereBodyInteraction ( T *  p,
CSphereBody w,
bool  iflag = true 
)

◆ ~ASphereBodyInteraction()

template<class T >
virtual ASphereBodyInteraction< T >::~ASphereBodyInteraction ( )
inlinevirtual

Member Function Documentation

◆ calcForces()

template<class T >
virtual void ASphereBodyInteraction< T >::calcForces ( )
pure virtual

Implements AInteraction.

Implemented in CElasticSphereBodyInteraction< T >.

◆ getPosFirst()

template<class T >
virtual Vec3 ASphereBodyInteraction< T >::getPosFirst ( ) const
inlinevirtual

◆ getStiffness()

template<class T >
virtual double ASphereBodyInteraction< T >::getStiffness ( )
inlinevirtual

◆ hasTag()

template<class T >
bool ASphereBodyInteraction< T >::hasTag ( int  tag,
int  mask 
) const
virtual

check if any of the particles in the interaction fits tag & mask

Parameters
tagthe tag
maskthe mask

Implements AInteraction.

◆ isInner()

template<class T >
bool ASphereBodyInteraction< T >::isInner ( )
inline

Member Data Documentation

◆ m_inner_flag

template<class T >
bool ASphereBodyInteraction< T >::m_inner_flag
protected

flag showing if particle is in the inner area of the local particle array - needed for global force summation

Referenced by ASphereBodyInteraction< T >::isInner().

◆ m_p

◆ m_sphere

template<class T >
CSphereBody* ASphereBodyInteraction< T >::m_sphere
protected

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