Partition Class Reference
To partition a finite element mesh into balanced submeshes. More...
Public Member Functions | |
Partition (Mesh &mesh, char *file) | |
Partition (Mesh &mesh, size_t n) | |
Constructor to partition a mesh into n submeshes. | |
~Partition () | |
Destructor. | |
size_t | getNbSubMeshes () const |
Return number of submeshes. | |
size_t | getNbNodes (size_t i) const |
Return number of nodes in given submesh. | |
size_t | getNbElements (size_t i) const |
Return number of elements in given submesh. | |
Mesh & | getMesh (size_t i) const |
Return the submesh of label i. | |
size_t | getNodeLabelInSubMesh (size_t sm, size_t label) const |
Return node label in subdomain by giving its label in initial mesh. | |
size_t | getElementLabelInSubMesh (size_t sm, size_t label) const |
Return element label in subdomain by giving its label in initial mesh. | |
size_t | getNodeLabelInMesh (size_t sm, size_t label) const |
Return node label in initial mesh by giving its label in submesh. | |
size_t | getElementLabelInMesh (size_t sm, size_t label) const |
Return element label in initial mesh by giving its label in submesh. | |
size_t | getNbInterfaceSides (size_t sm) const |
Return Nb. of interface sides for a given sub-mesh. | |
size_t | getFirstSideLabel (size_t sm, size_t i) const |
Return i-th side label in sub-mesh sm | |
size_t | getSubMesh (size_t sm, size_t i) const |
Return submesh that contains the i -th side label in sub-mesh sm | |
size_t | getSecondSideLabel (size_t sm, size_t i) const |
void | setVerbose (size_t verb) |
Set Message Level. | |
void | Put (size_t n, char *file) const |
Save n -th submesh in file. | |
void | Init (int *epart) |
Get interface information. | |
Friends | |
ostream & | operator<< (ostream &s, const Partition &p) |
Output class information. | |
Detailed Description
To partition a finite element mesh into balanced submeshes.
Class Partition enables partitioning a given mesh into a given number of submeshes with a minimal connectivity. Partition uses the well known metis
library that is included in the OFELI library. A more detailed description of metis can be found in the web site:
http://www.csit.fsu.edu/~burkardt/c_src/metis/metis.html
Constructor & Destructor Documentation
Constructor to get interface information. Partition information is read in file
Member Function Documentation
size_t getSecondSideLabel | ( | size_t | sm, |
size_t | i | ||
) | const |
Return side label in the neighbouring submesh corresponding to i
-th side label in sub-mesh sm