ESyS-Particle  4.0.1
Public Member Functions | Protected Attributes | List of all members
CViscWallInteraction< T > Class Template Reference

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

#include <ViscWallInteraction.h>

Inheritance diagram for CViscWallInteraction< T >:
Inheritance graph
[legend]
Collaboration diagram for CViscWallInteraction< T >:
Collaboration graph
[legend]

Public Member Functions

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

bonded elastic interaction between a particle and a wall

Author
Steffen Abe $Revision$ $Date$

Constructor & Destructor Documentation

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

constructor with parameters

Parameters
ppointer to the particle
wpointer to the wall
kspring constant for the elastic interaction
nuviscosity
iflaginner flag

References CViscWallInteraction< T >::m_nu.

Member Function Documentation

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

calculate and apply viscous forces F=visc*vol*dv

Warning
Hack - currently using mass instead of volume

Implements AWallInteraction< T >.

template<class T >
Vec3 CViscWallInteraction< T >::getForce ( )
virtual

calculate and return, but don't apply the viscous force


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