ESyS-Particle
4.0.1
|
bonded elastic interaction between Corner2D in a 2d mesh and a particle More...
#include <BCorner2DInteraction.h>
Public Types | |
typedef BMesh2DIP | ParameterType |
Public Member Functions | |
BCorner2DInteraction () | |
BCorner2DInteraction (CParticle *, Corner2D *, BMesh2DIP, bool iflag=true) | |
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) |
Friends | |
class | TML_PackedMessageInterface |
bonded elastic interaction between Corner2D in a 2d mesh and a particle
BCorner2DInteraction::BCorner2DInteraction | ( | ) |
default constructor
BCorner2DInteraction::BCorner2DInteraction | ( | CParticle * | p, |
Corner2D * | c, | ||
BMesh2DIP | param, | ||
bool | iflag = true |
||
) |
constructor with parameters
p | a pointer to the particle |
c | a pointer to the corner |
param | the interaction parameters |
iflag |
References BasicCon::Critical(), Corner2D::getEdgeNormal(), and BasicCon::XDebug().
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
|
virtual |
calculate & apply forces
References CParticle::applyForce(), Corner2D::applyForceToEdge(), and Corner2D::getEdgeNormal().