|
|
| Partition () |
| | Default constructor.
|
| |
| | Partition (Mesh &mesh, size_t n) |
| | Constructor to partition a mesh into submeshes.
|
| |
| | Partition (Mesh &mesh, int n, vector< int > &epart) |
| | Constructor using already created 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 () |
| | Return the global Mesh instance.
|
| |
|
Mesh * | getMesh (size_t i) |
| | 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 Number of interface sides for a given sub-mesh.
|
| |
| size_t | getSubMesh (size_t sm, size_t i) const |
| | Return index of submesh that contains the i-th side label in sub-mesh sm
|
| |
| Mesh & | getSubMesh (size_t i) const |
| | Return reference to submesh.
|
| |
| size_t | getFirstSideLabel (size_t sm, size_t i) const |
| | Return i-th side label in a given submesh.
|
| |
| 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
|
| |
| int | getNbConnectInSubMesh (int n, int s) const |
| | Get number of connected nodes in a submesh.
|
| |
| int | getNbConnectOutSubMesh (int n, int s) const |
| | Get number of connected nodes out of a submesh.
|
| |
| void | put (size_t n, string file) const |
| | Save a submesh in file.
|
| |
|
void | set (Mesh &mesh, size_t n) |
| | Set Mesh instance.
|
| |
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
- Author
- Rachid Touzani
- Copyright
- GNU Lesser Public License