ESyS-Particle  2.3.4
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

◆ ParameterType

Constructor & Destructor Documentation

◆ BCorner2DInteraction() [1/2]

BCorner2DInteraction::BCorner2DInteraction ( )

default constructor

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

◆ BCorner2DInteraction() [2/2]

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, Console::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(), Console::XDebug(), and Vec3::Y().

Here is the call graph for this function:

◆ ~BCorner2DInteraction()

virtual BCorner2DInteraction::~BCorner2DInteraction ( )
inlinevirtual

Member Function Documentation

◆ broken()

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.

◆ calcForces()

void BCorner2DInteraction::calcForces ( )
virtual

◆ getCid()

int BCorner2DInteraction::getCid ( ) const
inline

References m_cid.

Referenced by TML_PackedMessageInterface::pack().

Here is the caller graph for this function:

◆ getPid()

int BCorner2DInteraction::getPid ( ) const
inline

References m_pid.

Referenced by TML_PackedMessageInterface::pack().

Here is the caller graph for this function:

◆ getPos()

virtual Vec3 BCorner2DInteraction::getPos ( ) const
inlinevirtual

References CBasicParticle::getPos(), and m_p.

Here is the call graph for this function:

◆ isInner()

bool BCorner2DInteraction::isInner ( )
inline

References m_inner_flag.

◆ setCP()

virtual void BCorner2DInteraction::setCP ( Corner2D corner_p)
inlinevirtual

References m_corner.

◆ setPP()

virtual void BCorner2DInteraction::setPP ( CParticle part_p)
inlinevirtual

References m_p.

Friends And Related Function Documentation

◆ TML_PackedMessageInterface

friend class TML_PackedMessageInterface
friend

Member Data Documentation

◆ b_me

int BCorner2DInteraction::b_me
private

◆ k1

◆ k2

double BCorner2DInteraction::k2
private

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

Referenced by BCorner2DInteraction(), calcForces(), TML_PackedMessageInterface::pack(), and TML_PackedMessageInterface::unpack().

◆ m_break

double BCorner2DInteraction::m_break
private

◆ m_cid

int BCorner2DInteraction::m_cid
private

◆ m_corner

Corner2D* BCorner2DInteraction::m_corner
private

◆ m_dist

◆ m_inner_flag

bool BCorner2DInteraction::m_inner_flag
private

Referenced by isInner().

◆ m_k

double BCorner2DInteraction::m_k
private

◆ m_p

CParticle* BCorner2DInteraction::m_p
private

◆ m_pid

int BCorner2DInteraction::m_pid
private

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