ESyS-Particle  2.3
BCorner2DInteraction Class Reference

bonded elastic interaction between Corner2D in a 2d mesh and a particle More...

#include <BCorner2DInteraction.h>

Collaboration diagram for BCorner2DInteraction:

Public Types

typedef BMesh2DIP ParameterType
 

Public Member Functions

 BCorner2DInteraction ()
 
 BCorner2DInteraction (CParticle *, Corner2D *, BMesh2DIP, bool iflag=true)
 
virtual ~BCorner2DInteraction ()
 
bool isInner ()
 
virtual void calcForces ()
 
bool broken ()
 
virtual Vec3 getPos () const
 
int getPid () const
 
int getCid () const
 
virtual void setPP (CParticle *part_p)
 
virtual void setCP (Corner2D *corner_p)
 

Private Attributes

CParticlem_p
 
Corner2Dm_corner
 
double m_k
 spring constant More...
 
double m_break
 
double m_dist
 
double k1
 
double k2
 coefficients for calculating the anchor point from the normals of the adjacent edges More...
 
int b_me
 
int m_cid
 
int m_pid
 
bool m_inner_flag
 

Friends

class TML_PackedMessageInterface
 

Detailed Description

bonded elastic interaction between Corner2D in a 2d mesh and a particle

Author
Steffen Abe $Revision$ $Date$

Member Typedef Documentation

Constructor & Destructor Documentation

BCorner2DInteraction::BCorner2DInteraction ( )

default constructor

References m_cid, m_corner, m_p, m_pid, and NULL.

BCorner2DInteraction::BCorner2DInteraction ( CParticle p,
Corner2D c,
BMesh2DIP  param,
bool  iflag = true 
)

constructor with parameters

Parameters
pa pointer to the particle
ca pointer to the corner
paramthe interaction parameters
iflag

References BMesh2DIP::brk, console, BasicCon::Critical(), Corner2D::getEdgeNormal(), Corner2D::getID(), CBasicParticle::getID(), Corner2D::getNEdges(), Corner2D::getPos(), CBasicParticle::getPos(), CBasicParticle::getRad(), BMesh2DIP::k, k1, k2, m_break, m_cid, m_corner, m_dist, m_k, m_p, m_pid, Vec3::X(), BasicCon::XDebug(), and Vec3::Y().

Here is the call graph for this function:

virtual BCorner2DInteraction::~BCorner2DInteraction ( )
inlinevirtual

Member Function Documentation

bool BCorner2DInteraction::broken ( )

return if the interaction is broken, i.e. the distance between particle and anchor point exceeds breaking distance, i.e. relative breaking distance x particle readius

References m_break, and m_dist.

void BCorner2DInteraction::calcForces ( )
virtual
int BCorner2DInteraction::getCid ( ) const
inline

References m_cid.

int BCorner2DInteraction::getPid ( ) const
inline

References m_pid.

virtual Vec3 BCorner2DInteraction::getPos ( ) const
inlinevirtual

References CBasicParticle::getPos().

Here is the call graph for this function:

bool BCorner2DInteraction::isInner ( )
inline

References m_inner_flag.

virtual void BCorner2DInteraction::setCP ( Corner2D corner_p)
inlinevirtual
virtual void BCorner2DInteraction::setPP ( CParticle part_p)
inlinevirtual

Friends And Related Function Documentation

friend class TML_PackedMessageInterface
friend

Member Data Documentation

int BCorner2DInteraction::b_me
private
double BCorner2DInteraction::k1
private

Referenced by BCorner2DInteraction(), and calcForces().

double BCorner2DInteraction::k2
private

coefficients for calculating the anchor point from the normals of the adjacent edges

Referenced by BCorner2DInteraction(), and calcForces().

double BCorner2DInteraction::m_break
private

Referenced by BCorner2DInteraction(), and broken().

int BCorner2DInteraction::m_cid
private

Referenced by BCorner2DInteraction(), and getCid().

Corner2D* BCorner2DInteraction::m_corner
private

Referenced by BCorner2DInteraction(), and calcForces().

double BCorner2DInteraction::m_dist
private
bool BCorner2DInteraction::m_inner_flag
private

Referenced by isInner().

double BCorner2DInteraction::m_k
private

spring constant

Referenced by BCorner2DInteraction(), and calcForces().

CParticle* BCorner2DInteraction::m_p
private

Referenced by BCorner2DInteraction(), and calcForces().

int BCorner2DInteraction::m_pid
private

Referenced by BCorner2DInteraction(), and getPid().


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