ESyS-Particle  2.3.2
CElasticWallInteraction< T > Class Template Reference

unbonded elastic interaction between a particle and a wall More...

#include <EWallInteraction.h>

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

Public Member Functions

 CElasticWallInteraction ()
 CElasticWallInteraction (T *, CWall *, double, bool)
virtual ~CElasticWallInteraction ()
virtual void calcForces ()
virtual Vec3 getForce ()
virtual void setPP (const vector< T * >)
virtual double getStiffness ()
- Public Member Functions inherited from AWallInteraction< T >
 AWallInteraction (T *, CWall *, bool iflag=true)
virtual ~AWallInteraction ()
virtual bool hasTag (int, int) const
virtual Vec3 getPosFirst () const
bool isInner ()
- 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

double m_k
 spring constant
- Protected Attributes inherited from AWallInteraction< T >
T * m_p
bool m_inner_flag
- Protected Attributes inherited from AInteraction
vector< int > m_id
 id's of the particles involved
int m_iid
 interaction id
bool m_init

Detailed Description

template<class T>
class CElasticWallInteraction< T >

unbonded elastic interaction between a particle and a wall

Steffen Abe $Revision$ $Date$

Constructor & Destructor Documentation

template<class T >
CElasticWallInteraction< T >::CElasticWallInteraction ( )
template<class T >
CElasticWallInteraction< T >::CElasticWallInteraction ( T *  p,
CWall w,
double  k,
bool  iflag 

constructor for elastic interaction between particle & wall

ppointer to the particle
wpointer to the wall
kspring constant
iflagflag if the particle is in the inner part of the local NTable

References CParticle::getDo2dCalculations(), CElasticWallInteraction< T >::m_k, and AWallInteraction< T >::m_p.

Here is the call graph for this function:

template<class T >
virtual CElasticWallInteraction< T >::~CElasticWallInteraction ( )

Member Function Documentation

template<class T >
void CElasticWallInteraction< T >::calcForces ( )

calculate free elastic forces.

Implements AWallInteraction< T >.

template<class T >
Vec3 CElasticWallInteraction< T >::getForce ( )

calculate & return free elastic forces, don't apply them

template<class T >
double CElasticWallInteraction< T >::getStiffness ( )

Get stiffness of the interaction. Returns spring constant (m_k) if interaction is in contact, 0.0 otherwise.

Reimplemented from AWallInteraction< T >.

template<class T >
virtual void CElasticWallInteraction< T >::setPP ( const vector< T * >  )

Member Data Documentation

template<class T >
double CElasticWallInteraction< T >::m_k

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