SCOREC core
Parallel unstructured mesh tools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Namespaces | Functions
apfNumbering.h File Reference

Local and global numbering interface. More...

Go to the source code of this file.

Classes

struct  apf::Node
 Node identifier. More...
 

Namespaces

 apf
 All APF symbols are contained in this namespace.
 

Functions

Numbering * apf::createNumbering (Field *f)
 Create a Numbering of degrees of freedom of a Field.
 
Numbering * apf::createNumbering (Mesh *mesh, const char *name, FieldShape *shape, int components)
 Create a generally-defined Numbering. More...
 
void apf::destroyNumbering (Numbering *n)
 Destroy a Numbering.
 
void apf::fix (Numbering *n, MeshEntity *e, int node, int component, bool fixed)
 Set the fixed/free status of a degree of freedom,. More...
 
bool apf::isFixed (Numbering *n, MeshEntity *e, int node, int component)
 Check whether a degree of freedom is fixed.
 
bool apf::isNumbered (Numbering *n, MeshEntity *e, int node, int component)
 Check whether a degree of freedom is numbered.
 
void apf::number (Numbering *n, MeshEntity *e, int node, int component, int number)
 number a degree of freedom
 
int apf::getNumber (Numbering *n, MeshEntity *e, int node, int component)
 get a degree of freedom number
 
Field * apf::getField (Numbering *n)
 get the field being numbered
 
FieldShape * apf::getShape (Numbering *n)
 get the FieldShape used by a Numbering
 
const char * apf::getName (Numbering *n)
 get the name of a Numbering
 
Mesh * apf::getMesh (Numbering *n)
 get the mesh associated with a Numbering
 
int apf::getElementNumbers (Numbering *n, MeshEntity *e, NewArray< int > &numbers)
 returns the node numbers of an element More...
 
int apf::countFixed (Numbering *n)
 return the number of fixed degrees of freedom
 
void apf::synchronize (Numbering *n, Sharing *shr=0, bool delete_shr=false)
 numbers non-owned nodes with the values from their owners More...
 
Numbering * apf::numberOwnedDimension (Mesh *mesh, const char *name, int dim, Sharing *shr=0)
 number the local owned entities of a given dimension
 
Numbering * apf::numberOverlapDimension (Mesh *mesh, const char *name, int dim)
 number all local entities of a given dimension
 
Numbering * apf::numberElements (Mesh *mesh, const char *name)
 number the local elements
 
Numbering * apf::numberOverlapNodes (Mesh *mesh, const char *name, FieldShape *s=0)
 number all local nodes More...
 
Numbering * apf::numberOwnedNodes (Mesh *mesh, const char *name, FieldShape *s=0, Sharing *shr=0)
 number the local owned nodes More...
 
int apf::countNodes (Numbering *n)
 count the number of nodes that have been numbered
 
void apf::getNodes (Numbering *n, DynamicArray< Node > &nodes)
 get an array of numbered nodes More...
 
void apf::getNodesOnClosure (Mesh *m, ModelEntity *me, DynamicArray< Node > &on, FieldShape *sh=0)
 get nodes on the closure of a model entity More...
 
GlobalNumbering * apf::createGlobalNumbering (Mesh *mesh, const char *name, FieldShape *shape, int components=1)
 create global numbering More...
 
GlobalNumbering * apf::createGlobalNumbering (Field *f)
 Create a Numbering of degrees of freedom of a Field.
 
Mesh * apf::getMesh (GlobalNumbering *n)
 get the mesh associated with a global numbering
 
int apf::countComponents (GlobalNumbering *n)
 get the components associated with a global numbering
 
void apf::number (GlobalNumbering *n, MeshEntity *e, int node, long number)
 assign a global number
 
void apf::number (GlobalNumbering *n, Node node, long number, int component=0)
 assign a global number
 
long apf::getNumber (GlobalNumbering *n, Node node, int component=0)
 get a global number
 
long apf::getNumber (GlobalNumbering *n, MeshEntity *e, int node, int component=0)
 get a global number
 
int apf::getElementNumbers (GlobalNumbering *n, MeshEntity *e, NewArray< long > &numbers)
 get an element's global node numbers
 
Field * apf::getField (GlobalNumbering *n)
 get the field being numbered
 
GlobalNumbering * apf::makeGlobal (Numbering *n, bool destroy=true)
 converts a local numbering into a global numbering. More...
 
void apf::synchronize (GlobalNumbering *n, Sharing *shr=0)
 see the Numbering equivalent and apf::makeGlobal
 
void apf::destroyGlobalNumbering (GlobalNumbering *n)
 destroy a global numbering
 
void apf::getNodes (GlobalNumbering *n, DynamicArray< Node > &nodes)
 see the Numbering equivalent
 
MeshTag * apf::reorder (Mesh *mesh, const char *name)
 Number by adjacency graph traversal. More...
 
int apf::naiveOrder (Numbering *num, Sharing *sharing=NULL)
 number all components by simple iteration
 
int apf::NaiveOrder (Numbering *num)
 todo : mark as deprecated
 
int apf::adjReorder (Numbering *num, Sharing *sharing=NULL)
 like apf::reorder, but numbers all free nodal components
 
int apf::AdjReorder (Numbering *num)
 todo : mark as deprecated
 
void apf::setNumberingOffset (Numbering *num, int off, Sharing *sharing=NULL)
 add an offset to all free nodal component numbers
 
void apf::SetNumberingOffset (Numbering *num, int off)
 todo : mark as deprecated
 

Detailed Description

Local and global numbering interface.

Definition in file apfNumbering.h.