|
ESyS-Particle
2.3.4
|
bonded elastic interaction between an edge in a 2d mesh and a particle More...
#include <BEdge2DInteraction.h>

Public Types | |
| typedef BMesh2DIP | ParameterType |
| typedef BMesh2DInteractionCpData | CheckPointable |
| Used by PIS to save/load check-point data for objects of this type. More... | |
Public Member Functions | |
| BEdge2DInteraction () | |
| BEdge2DInteraction (CParticle *, Edge2D *, BMesh2DIP, bool iflag=true) | |
| virtual | ~BEdge2DInteraction () |
| bool | isInner () |
| virtual void | calcForces () |
| bool | broken () |
| virtual Vec3 | getPos () const |
| int | getPid () const |
| int | getTid () const |
| Vec3 | getAP () const |
| Return anchor point in global coordinates. Needed for snapshot data. More... | |
| virtual void | setPP (CParticle *part_p) |
| virtual void | setTP (Edge2D *tri_p) |
Private Attributes | |
| CParticle * | m_p |
| Edge2D * | m_ed |
| double | m_k |
| double | m_break |
| double | m_dist |
| int | m_eid |
| int | m_pid |
| Vec3 | m_ap |
| bool | m_inner_flag |
Friends | |
| class | TML_PackedMessageInterface |
bonded elastic interaction between an edge in a 2d mesh and a particle
Used by PIS to save/load check-point data for objects of this type.
| BEdge2DInteraction::BEdge2DInteraction | ( | ) |
| BEdge2DInteraction::BEdge2DInteraction | ( | CParticle * | p, |
| Edge2D * | e, | ||
| BMesh2DIP | param, | ||
| bool | iflag = true |
||
| ) |
constructor with parameters
| p | a pointer to the particle |
| e | a pointer to the triangle |
| param | the interaction parameters |
| iflag |
References BMesh2DIP::brk, console, Edge2D::getID(), CBasicParticle::getID(), CBasicParticle::getPos(), CBasicParticle::getRad(), BMesh2DIP::k, m_ap, m_break, m_dist, m_ed, m_eid, m_inner_flag, m_k, m_p, m_pid, Edge2D::toLocal(), and Console::XDebug().

|
virtual |
destructor
| bool BEdge2DInteraction::broken | ( | ) |
|
virtual |
calculate & apply forces
References CParticle::applyForce(), Edge2D::applyForce(), CBasicParticle::getPos(), m_ap, m_dist, m_ed, m_inner_flag, m_k, m_p, and Edge2D::toGlobal().

| Vec3 BEdge2DInteraction::getAP | ( | ) | const |
Return anchor point in global coordinates. Needed for snapshot data.
returns the projection of the anchor point on the edge
References m_ap, m_ed, Edge2D::toGlobal(), and Vec3::X().
Referenced by BMesh2DInteractionCpData::BMesh2DInteractionCpData(), and BMesh2DInteractionCpData::set().


|
inline |
References m_pid.
Referenced by BMesh2DInteractionCpData::BMesh2DInteractionCpData(), TML_PackedMessageInterface::pack(), and BMesh2DInteractionCpData::set().

|
inlinevirtual |
|
inline |
References m_eid.
Referenced by BMesh2DInteractionCpData::BMesh2DInteractionCpData(), TML_PackedMessageInterface::pack(), and BMesh2DInteractionCpData::set().

|
inline |
References m_inner_flag.
|
friend |
|
private |
|
private |
Referenced by BEdge2DInteraction(), broken(), TML_PackedMessageInterface::pack(), and TML_PackedMessageInterface::unpack().
|
private |
|
private |
Referenced by BEdge2DInteraction(), calcForces(), getAP(), and setTP().
|
private |
Referenced by BEdge2DInteraction(), getTid(), and TML_PackedMessageInterface::unpack().
|
private |
flag showing if particle is in the inner area of the local particle array - needed for global force summation
Referenced by BEdge2DInteraction(), calcForces(), and isInner().
|
private |
|
private |
Referenced by BEdge2DInteraction(), calcForces(), getPos(), and setPP().
|
private |
Referenced by BEdge2DInteraction(), getPid(), and TML_PackedMessageInterface::unpack().