ESyS-Particle  4.0.1
Public Member Functions
Corner2D Class Reference

Class representing the corner in a 2D "mesh". More...

#include <Corner2D.h>

List of all members.

Public Member Functions

 Corner2D (const Vec3 &, int)
void addEdge (Edge2D *)
double sep (const Vec3 &) const
bool isValidContact (const Vec3 &) const
Vec3 getDirectionFromPoint (const Vec3 &) const
void move (const Vec3 &)
Vec3 getPos () const
int getID () const
int getNEdges () const
Vec3 getEdgeNormal (int) const
void applyForceToEdge (int, const Vec3 &)

Detailed Description

Class representing the corner in a 2D "mesh".

Author:
Steffen Abe $Revision$ $Date$

Constructor & Destructor Documentation

Corner2D::Corner2D ( const Vec3 pos,
int  id 
)

constructor, make sure Z=0;

Parameters:
posthe position of the corner
idthe node id

Member Function Documentation

void Corner2D::addEdge ( Edge2D edge)

add Edge to corner

Parameters:
edgea pointer to the edge
void Corner2D::applyForceToEdge ( int  idx,
const Vec3 f 
)

apply force to one of the attached edges

Parameters:
idxwhich egde (1,2)
Fthe force

References BasicCon::Error().

Referenced by BCorner2DInteraction::calcForces().

Here is the call graph for this function:

Here is the caller graph for this function:

get the unit direction vector between a point and the corner

Parameters:
pthe point

Referenced by ECorner2DInteraction::calcForces().

Here is the caller graph for this function:

Vec3 Corner2D::getEdgeNormal ( int  idx) const

get normal of an edge

Parameters:
idxwhich egde (1,2) to get

References BasicCon::Error().

Referenced by BCorner2DInteraction::BCorner2DInteraction(), and BCorner2DInteraction::calcForces().

Here is the call graph for this function:

Here is the caller graph for this function:

bool Corner2D::isValidContact ( const Vec3 p) const

check if the contact between a particle at a point and the corner is valid or if there is a contact between the particle and any of the adjacent edges or triangles

Parameters:
pthe center of the particle

Referenced by ECorner2DInteraction::calcForces().

Here is the caller graph for this function:

void Corner2D::move ( const Vec3 d)

move the corner, make sure Z=0;

Parameters:
dthe displacement

Referenced by Mesh2D::moveNode().

Here is the caller graph for this function:

double Corner2D::sep ( const Vec3 p) const

get distance between corner and point

Parameters:
pthe point

Referenced by ECorner2DInteraction::calcForces().

Here is the caller graph for this function:


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