FEBio  1.5.0
Public Member Functions | Protected Member Functions | Protected Attributes
FEMesh Class Reference

Defines a finite element mesh. More...

#include <FEMesh.h>

Inheritance diagram for FEMesh:
FEBox

Public Member Functions

 FEMesh ()
 constructor
 FEMesh (FEMesh &m)
 copy constructor
virtual ~FEMesh ()
 destructor
FEMeshoperator= (FEMesh &m)
 assignment operator
void CreateNodes (int nodes)
 allocate storage for mesh data
int Nodes ()
 return number of nodes
int Elements ()
 return total nr of elements
int SolidElements ()
 return the total nr of solid elements
int ShellElements ()
 return the total nr of shell elements
int TrussElements ()
 return the total nr of truss elements
int DiscreteElements ()
 return the total nr of discrete elements
FENodeNode (int i)
 return reference to a node
void UpdateBox ()
 update bounding box
FE_BOUNDING_BOXGetBoundingBox ()
 retrieve the bounding box
int RemoveIsolatedVertices ()
 remove isolated vertices
void Reset ()
 Reset the mesh data.
double ElementVolume (FEElement &el)
 Calculates an elements volume.
void AddNodeSet (FENodeSet *pns)
 adds a node set to the mesh
FENodeSetFindNodeSet (int nid)
 Find a nodeset by ID.
FENodeSetFindNodeSet (const char *szname)
 Find a nodeset by name.
int GetFace (FEElement &el, int n, int nf[4])
 Get the face nodes from a given element.
int Faces (FEElement &el)
 return the nr of faces an element has
FEElementFindElementFromID (int nid)
 Finds an element from a given ID.
FESolidElementFindSolidElement (vec3d y, double r[3])
 Finds the solid element in which y lies.
FENodeElemListNodeElementList ()
int Domains ()
FEDomainDomain (int n)
void AddDomain (FEDomain *pd)
int Surfaces ()
FESurfaceSurface (int n)
void AddSurface (FESurface *ps)

Protected Member Functions

void ClearDomains ()

Protected Attributes

vector< FENodem_Node
 FE nodes array.
vector< FEDomain * > m_Domain
 list of domains
vector< FENodeSet * > m_NodeSet
 node sets
vector< FESurface * > m_Surf
 surfaces
FE_BOUNDING_BOX m_box
 bounding box
FENodeElemList m_NEL

Detailed Description

Defines a finite element mesh.

All the geometry data is stored in this class.


Member Function Documentation

double FEMesh::ElementVolume ( FEElement el)

Calculates an elements volume.

This function calculates the volume of an element using the element's integration points. It also assumes the element is unpacked.

FEElement * FEMesh::FindElementFromID ( int  nid)

Finds an element from a given ID.

Find an element from a given ID. return 0 if the element cannot be found.

int FEMesh::GetFace ( FEElement el,
int  n,
int  nf[4] 
)

Get the face nodes from a given element.

This function returns the face connectivity from a certain element.

void FEMesh::Reset ( )

Reset the mesh data.

Reset the mesh data. Return nodes to their intial position, reset their attributes and zero all element stresses.


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