ESyS-Particle  2.3.4
CBWallInteractionGroup< T > Class Template Reference

Class for a group of bonded,elastic interactions between particles and a wall. More...

#include <BWallInteractionGroup.h>

Collaboration diagram for CBWallInteractionGroup< T >:

Public Member Functions

 CBWallInteractionGroup (TML_Comm *)
 
 CBWallInteractionGroup (TML_Comm *, CWall *, const CBWallIGP *)
 
virtual ~CBWallInteractionGroup ()
 
virtual void calcForces ()
 
virtual void applyForce (const Vec3 &)
 
virtual void Update (ParallelParticleArray< T > *)
 

Protected Attributes

vector< CBondedWallInteraction< T > > m_bonded_interactions
 bonded interactions for tagged particles More...
 
vector< CElasticWallInteraction< T > > m_elastic_interactions
 elastic interactions for the rest More...
 
double m_k
 spring constant More...
 
int m_tag
 
int m_mask
 

Friends

ostream & operator<< (ostream &, const CBWallInteractionGroup &)
 

Detailed Description

template<class T>
class CBWallInteractionGroup< T >

Class for a group of bonded,elastic interactions between particles and a wall.

Author
Steffen Abe $Revision$. $Date$

Constructor & Destructor Documentation

◆ CBWallInteractionGroup() [1/2]

template<class T >
CBWallInteractionGroup< T >::CBWallInteractionGroup ( TML_Comm comm)

◆ CBWallInteractionGroup() [2/2]

template<class T >
CBWallInteractionGroup< T >::CBWallInteractionGroup ( TML_Comm comm,
CWall wallp,
const CBWallIGP I 
)

Constructor for bonded wall interaction group

Parameters
commthe communicator
wallpa pointer to the wall
paramthe interaction parameters

References console, CBWallIGP::getMask(), CElasticIGP::getSpringConst(), CBWallIGP::getTag(), CBWallInteractionGroup< T >::m_k, CBWallInteractionGroup< T >::m_mask, CBWallInteractionGroup< T >::m_tag, and Console::XDebug().

Here is the call graph for this function:

◆ ~CBWallInteractionGroup()

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

Member Function Documentation

◆ applyForce()

template<class T >
void CBWallInteractionGroup< T >::applyForce ( const Vec3 F)
virtual

Apply a given force to the wall. Only forces in the direction of the given force are considered, free movement is assumed in perpendicular directions.

Parameters
Fthe force

References console, esys::lsm::bpu::iter(), Vec3::unit(), Vec3::X(), Console::XDebug(), Vec3::Y(), and Vec3::Z().

Here is the call graph for this function:

◆ calcForces()

template<class T >
void CBWallInteractionGroup< T >::calcForces
virtual

References console, and Console::XDebug().

Here is the call graph for this function:

◆ Update()

template<class T >
void CBWallInteractionGroup< T >::Update ( ParallelParticleArray< T > *  PPA)
virtual

Update interactions from an existing parallel particle array

Parameters
PPAa pointer to the particle array

References console, ParallelParticleArray< T >::getParticlesAtPlane(), ParallelParticleArray< T >::isInInner(), esys::lsm::bpu::iter(), and Console::XDebug().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator<<

template<class T >
ostream& operator<< ( ostream &  ost,
const CBWallInteractionGroup< T > &  IG 
)
friend

Member Data Documentation

◆ m_bonded_interactions

template<class T >
vector<CBondedWallInteraction<T> > CBWallInteractionGroup< T >::m_bonded_interactions
protected

bonded interactions for tagged particles

◆ m_elastic_interactions

template<class T >
vector<CElasticWallInteraction<T> > CBWallInteractionGroup< T >::m_elastic_interactions
protected

elastic interactions for the rest

◆ m_k

template<class T >
double CBWallInteractionGroup< T >::m_k
protected

◆ m_mask

template<class T >
int CBWallInteractionGroup< T >::m_mask
protected

◆ m_tag

template<class T >
int CBWallInteractionGroup< T >::m_tag
protected

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