ESyS-Particle  4.0.1
Public Types | Public Member Functions | Static Public Member Functions | Friends
Edge2D Class Reference

class for edge in 2D "mesh" More...

#include <Edge2D.h>

Inheritance diagram for Edge2D:
Inheritance graph
[legend]
Collaboration diagram for Edge2D:
Collaboration graph
[legend]

List of all members.

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, Vec3getP0 () const
pair< int, Vec3getP1 () const
Vec3 getForce () const
Vec3 getForceDensity () const
double getPressure () const
void print ()
- Public Member Functions inherited from AEdge
 AEdge (const Vec3 &, const Vec3 &)
double sep (const Vec3 &) const
pair< bool, double > dist (const Vec3 &) const
Vec3 getBoundingBoxMin () const
Vec3 getBoundingBoxMax () const

Static Public Member Functions

static VectorFieldFunction getVectorFieldFunction (const string &)
static ScalarFieldFunction getScalarFieldFunction (const string &)

Friends

ostream & operator<< (ostream &, const Edge2D &)
 output for debugging purposes

Additional Inherited Members

- Protected Attributes inherited from AEdge
Vec3 m_p0
Vec3 m_p1

Detailed Description

class for edge in 2D "mesh"

Author:
Steffen Abe $Revision$ $Date$

Constructor & Destructor Documentation

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

Parameters:
id0id of the first corner
id1id of the 2nd corner
v0first corner
v1second corner
ed_idedge id
tagedge tag

Member Function Documentation

double Edge2D::getPressure ( ) const

Get pressure on the edge from interaction forces

Referenced by getScalarFieldFunction().

Here is the caller graph for this function:

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.

Parameters:
namethe name of the field

References getPressure().

Here is the call graph for this function:

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.

Parameters:
namethe name of the field

Referenced by TSubLattice< T >::addVectorTriangleField().

Here is the caller graph for this function:

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.

Parameters:
idthe global id of the node to be moved
dthe amount of movement
void Edge2D::print ( )

output Edge2D to cout

Vec3 Edge2D::toGlobal ( const Vec3 p)

convert point in local coords to global coords

Parameters:
pthe point in local coords

Referenced by BEdge2DInteraction::calcForces().

Here is the caller graph for this function:

Vec3 Edge2D::toLocal ( const Vec3 p)

convert point in global coords into local (x,y,0) coords

Parameters:
pthe point in global coords

Referenced by BEdge2DInteraction::BEdge2DInteraction().

Here is the caller graph for this function:


Friends And Related Function Documentation

ostream& operator<< ( ostream &  ost,
const Edge2D T 
)
friend

output for debugging purposes

output Edge2D to ostream


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