(9)

MeshUtil.h File Reference

Definitions of utility functions for meshes. More...

Namespaces

 OFELI
 A namespace to group all library classes, functions, ...
 

Functions

size_t Label (const Node &nd)
 Return label of a given node. More...
 
size_t Label (const Element &el)
 Return label of a given element. More...
 
size_t Label (const Side &sd)
 Return label of a given side. More...
 
size_t Label (const Edge &ed)
 Return label of a given edge. More...
 
size_t NodeLabel (const Element &el, size_t n)
 Return global label of node local label in element. More...
 
size_t NodeLabel (const Side &sd, size_t n)
 Return global label of node local label in side. More...
 
Point< real_tCoord (const Node &nd)
 Return coordinates of a given node. More...
 
int Code (const Node &nd, size_t i=1)
 Return code of a given (degree of freedom of) node. More...
 
int Code (const Element &el)
 Return code of a given element. More...
 
int Code (const Side &sd, size_t i=1)
 Return code of a given (degree of freedom of) side. More...
 
bool operator== (const Element &el1, const Element &el2)
 Check equality between 2 elements. More...
 
bool operator== (const Side &sd1, const Side &sd2)
 Check equality between 2 sides. More...
 
void DeformMesh (Mesh &mesh, const Vect< real_t > &u, real_t rate=0.2)
 Calculate deformed mesh using a displacement field. More...
 
void MeshToMesh (Mesh &m1, Mesh &m2, const Vect< real_t > &u1, Vect< real_t > &u2, size_t nx, size_t ny=0, size_t nz=0, size_t dof=1)
 Function to redefine a vector defined on a mesh to a new mesh. More...
 
void MeshToMesh (const Vect< real_t > &u1, Vect< real_t > &u2, size_t nx, size_t ny=0, size_t nz=0, size_t dof=1)
 Function to redefine a vector defined on a mesh to a new mesh. More...
 
void MeshToMesh (Mesh &m1, Mesh &m2, const Vect< real_t > &u1, Vect< real_t > &u2, const Point< real_t > &xmin, const Point< real_t > &xmax, size_t nx, size_t ny, size_t nz, size_t dof=1)
 Function to redefine a vector defined on a mesh to a new mesh. More...
 
real_t getMaxSize (const Mesh &m)
 Return maximal size of element edges for given mesh. More...
 
real_t getMinSize (const Mesh &m)
 Return minimal size of element edges for given mesh. More...
 
real_t getMinElementMeasure (const Mesh &m)
 Return minimal measure (length, area or volume) of elements of given mesh. More...
 
real_t getMaxElementMeasure (const Mesh &m)
 Return maximal measure (length, area or volume) of elements of given mesh. More...
 
real_t getMinSideMeasure (const Mesh &m)
 Return minimal measure (length or area) of sides of given mesh. More...
 
real_t getMaxSideMeasure (const Mesh &m)
 Return maximal measure (length or area) of sides of given mesh. More...
 
real_t getMeanElementMeasure (const Mesh &m)
 Return average measure (length, area or volume) of elements of given mesh. More...
 
real_t getMeanSideMeasure (const Mesh &m)
 Return average measure (length or area) of sides of given mesh. More...
 
void setNodeCodes (Mesh &m, const string &exp, int code, size_t dof=1)
 Assign a given code to all nodes satisfying a boolean expression using node coordinates. More...
 
void setBoundaryNodeCodes (Mesh &m, const string &exp, int code, size_t dof=1)
 Assign a given code to all nodes on boundary that satisfy a boolean expression using node coordinates. More...
 
int NodeInElement (const Node *nd, const Element *el)
 Say if a given node belongs to a given element. More...
 
int NodeInSide (const Node *nd, const Side *sd)
 Say if a given node belongs to a given side. More...
 
int SideInElement (const Side *sd, const Element *el)
 Say if a given side belongs to a given element. More...
 

Detailed Description

Definitions of utility functions for meshes.