|
ESyS-Particle
4.0.1
|
class for edge in 2D "mesh" More...
#include <Edge2D.h>


Public Types | |
| typedef Vec3(Edge2D::* | VectorFieldFunction )() const |
| typedef double(Edge2D::* | ScalarFieldFunction )() const |
Public Member Functions | |
| Edge2D (int, int, const Vec3 &, const Vec3 &, int, int) | |
| void | moveNode (int, const Vec3 &) |
| int | getID () |
| void | applyForce (const Vec3 &f) |
| void | zeroForce () |
| Vec3 | getNormal () const |
| Vec3 | toGlobal (const Vec3 &) |
| Vec3 | toLocal (const Vec3 &) |
| pair< int, Vec3 > | getP0 () const |
| pair< int, Vec3 > | getP1 () const |
| Vec3 | getForce () const |
| Vec3 | getForceDensity () const |
| double | getPressure () const |
| void | print () |
Static Public Member Functions | |
| static VectorFieldFunction | getVectorFieldFunction (const string &) |
| static ScalarFieldFunction | getScalarFieldFunction (const string &) |
Friends | |
| ostream & | operator<< (ostream &, const Edge2D &) |
| output for debugging purposes | |
class for edge in 2D "mesh"
| Edge2D::Edge2D | ( | int | id0, |
| int | id1, | ||
| const Vec3 & | v0, | ||
| const Vec3 & | v1, | ||
| int | ed_id, | ||
| int | tag | ||
| ) |
construct Edge from corner coordinates. Make sure Z=0 for all corners
| id0 | id of the first corner |
| id1 | id of the 2nd corner |
| v0 | first corner |
| v1 | second corner |
| ed_id | edge id |
| tag | edge tag |
| double Edge2D::getPressure | ( | ) | const |
Get pressure on the edge from interaction forces
Referenced by getScalarFieldFunction().

| Edge2D::ScalarFieldFunction Edge2D::getScalarFieldFunction | ( | const string & | name | ) | [static] |
Get the Edge2D member function which returns a scalar field of a given name. Returns NULL if a field with that name doesn't exist.
| name | the name of the field |
References getPressure().

| Edge2D::VectorFieldFunction Edge2D::getVectorFieldFunction | ( | const string & | name | ) | [static] |
Get the Edge2D member function which returns a vector field of a given name. Returns NULL if a field with that name doesn't exist.
| name | the name of the field |
Referenced by TSubLattice< T >::addVectorTriangleField().

| void Edge2D::moveNode | ( | int | id, |
| const Vec3 & | d | ||
| ) |
Move one of the corners. The identifier for the corner is the global node id. If the node with the id is not in the edge do nothing.
| id | the global id of the node to be moved |
| d | the amount of movement |
| void Edge2D::print | ( | ) |
output Edge2D to cout
| Vec3 Edge2D::toGlobal | ( | const Vec3 & | p | ) |
convert point in local coords to global coords
| p | the point in local coords |
Referenced by BEdge2DInteraction::calcForces().

| Vec3 Edge2D::toLocal | ( | const Vec3 & | p | ) |
convert point in global coords into local (x,y,0) coords
| p | the point in global coords |
Referenced by BEdge2DInteraction::BEdge2DInteraction().

| ostream& operator<< | ( | ostream & | ost, |
| const Edge2D & | T | ||
| ) | [friend] |
output for debugging purposes
output Edge2D to ostream
1.7.6.1