Partition Class Reference
[Finite Element Mesh]
#include <Partition.h>
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
Public Member Functions | |
| void | BPut (size_t n, char *file) const |
| Save n-th submesh in binary file. | |
| size_t | getElementLabelInMesh (size_t sm, size_t label) const |
| Return element label in initial mesh by giving its label in submesh. | |
| size_t | getElementLabelInSubMesh (size_t sm, size_t label) const |
| Return element label in subdomain by giving its label in initial mesh. | |
| size_t | getFirstSideLabel (size_t sm, size_t i) const |
| Return i-th side label in sub-mesh sm. | |
| Mesh & | getMesh (size_t i) const |
| Return the submesh of label i. | |
| size_t | getNbElements (size_t i) const |
| Return number of elements in given submesh. | |
| size_t | getNbInterfaceSides (size_t sm) const |
| Return Nb. of interface sides for a given submesh. | |
| size_t | getNbNodes (size_t i) const |
| Return number of nodes in given submesh. | |
| size_t | getNbSubMeshes () const |
| Return number of submeshes. | |
| size_t | getNodeLabelInMesh (size_t sm, size_t label) const |
| Return node label in initial mesh by giving its label in submesh. | |
| size_t | getNodeLabelInSubMesh (size_t sm, size_t label) const |
| Return node label in subdomain by giving its label in initial mesh. | |
| 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. | |
| size_t | getSubMesh (size_t sm, size_t i) const |
| Return submesh that contains the i-th side label in sub-mesh sm. | |
| void | Init (int *epart) |
| Get interface information. | |
| Partition (Mesh &mesh, size_t n) | |
| Constructor to partition a mesh into n submeshes. | |
| Partition (Mesh &mesh, char *file) | |
| Constructor to get interface information. | |
| void | Put (size_t n, char *file) const |
| Save n-th submesh in file. | |
| void | setVerbose (size_t verb) |
| Set Message Level. | |
| ~Partition () | |
| Destructor. | |
Friends | |
| ostream & | operator<< (ostream &s, const Partition &p) |
| Associated operators. | |
Constructor & Destructor Documentation
Constructor to get interface information.
Partition information is read in file