ESyS-Particle  2.3
CSoftBWallInteractionGroup< T > Class Template Reference

Class for a group of bonded, elastic interactions with per-direction spring constants between particles and a wall. More...

#include <SoftBWallInteractionGroup.h>

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

Public Member Functions

 CSoftBWallInteractionGroup (TML_Comm *)
 
 CSoftBWallInteractionGroup (TML_Comm *, CWall *, const CSoftBWallIGP *)
 
virtual ~CSoftBWallInteractionGroup ()
 
virtual void setTimeStepSize (double dt)
 
virtual void calcForces ()
 
virtual void applyForce (const Vec3 &)
 
virtual void Update (ParallelParticleArray< T > *)
 
- Public Member Functions inherited from AWallInteractionGroup< T >
 AWallInteractionGroup (TML_Comm *comm)
 
virtual ~AWallInteractionGroup ()
 
virtual void setVelocity (const Vec3 &)
 
double getDisplacement ()
 
void resetDisplacement ()
 
void moveWallBy (const Vec3 &mv)
 
void setWallNormal (const Vec3 &wn)
 
void zeroForce ()
 
- Public Member Functions inherited from AInteractionGroup< T >
virtual ~AInteractionGroup ()
 

Protected Attributes

vector
< CSoftBondedWallInteraction
< T > > 
m_interactions
 
double m_normalK
 
double m_shearK
 spring constants for each direction More...
 
int m_tag
 
int m_mask
 
bool m_scaling
 
- Protected Attributes inherited from AWallInteractionGroup< T >
CWallm_wall
 the wall More...
 
TML_Commm_comm
 MPI communicator. More...
 
int m_inner_count
 

Friends

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

Detailed Description

template<class T>
class CSoftBWallInteractionGroup< T >

Class for a group of bonded, elastic interactions with per-direction spring constants between particles and a wall.

Constructor & Destructor Documentation

template<class T >
CSoftBWallInteractionGroup< T >::CSoftBWallInteractionGroup ( TML_Comm comm)
template<class T >
CSoftBWallInteractionGroup< T >::CSoftBWallInteractionGroup ( TML_Comm comm,
CWall wallp,
const CSoftBWallIGP I 
)

Constructor for bonded wall interaction group with direction dependend elasticity

Parameters
commthe communicator
wallpa pointer to the wall
paramthe interaction parameters

References console, CBWallIGP::getMask(), CSoftBWallIGP::getNormalK(), CSoftBWallIGP::getScaling(), CSoftBWallIGP::getShearK(), CBWallIGP::getTag(), CSoftBWallInteractionGroup< T >::m_mask, CSoftBWallInteractionGroup< T >::m_normalK, CSoftBWallInteractionGroup< T >::m_scaling, CSoftBWallInteractionGroup< T >::m_shearK, CSoftBWallInteractionGroup< T >::m_tag, AWallInteractionGroup< T >::m_wall, and BasicCon::XDebug().

Here is the call graph for this function:

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

Member Function Documentation

template<class T >
void CSoftBWallInteractionGroup< 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

Reimplemented from AWallInteractionGroup< T >.

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

Here is the call graph for this function:

template<class T >
void CSoftBWallInteractionGroup< T >::calcForces ( )
virtual

Implements AWallInteractionGroup< T >.

References console, and BasicCon::XDebug().

Here is the call graph for this function:

template<class T>
virtual void CSoftBWallInteractionGroup< T >::setTimeStepSize ( double  dt)
inlinevirtual

Null op, don't require time step size.

Reimplemented from AWallInteractionGroup< T >.

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

Friends And Related Function Documentation

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

Member Data Documentation

template<class T>
vector<CSoftBondedWallInteraction<T> > CSoftBWallInteractionGroup< T >::m_interactions
protected
template<class T>
int CSoftBWallInteractionGroup< T >::m_mask
protected
template<class T>
double CSoftBWallInteractionGroup< T >::m_normalK
protected
template<class T>
bool CSoftBWallInteractionGroup< T >::m_scaling
protected
template<class T>
double CSoftBWallInteractionGroup< T >::m_shearK
protected

spring constants for each direction

Referenced by CSoftBWallInteractionGroup< T >::CSoftBWallInteractionGroup().

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

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