|
blitzdg
an open-source project aiming to implement parallel discontinuous Galerkin (dg) solvers for common partial differential equations systems using blitz++ for array and tensor manipulations and MPI for distributed parallelism.
|
Public Member Functions | |
| MeshManager () | |
| Constructor. | |
| int | get_Index (int row, int col, int numCols) |
| Convert (row,col) index to integer index into a contiguous block of memory. | |
| void | readMesh (string gmshInputFile) |
| Read a .msh file that was generated with Gmsh. | |
| void | readVertices (string vertFile) |
| Read a list of vertices from a file. More... | |
| void | readElements (string E2VFile) |
| Read a list of elments from a file. More... | |
| void | partitionMesh (int numPartitions) |
| Partition a mesh into numPartitions partitions using METIS. More... | |
| double *& | get_Vertices () |
| Returns a reference to the list of vertices, a contiguous block of type double. | |
| int | get_Dim () |
| Returns the dimension of the vertex data. More... | |
| int | get_NumVerts () |
| Returns the number of vertices. | |
| int *& | get_Elements () |
| Returns a reference to the list of elements, a contiguous block of type int. | |
| int | get_NumElements () |
| Returns the number of elements. | |
| int | get_ElementType () |
| Returns the type of element. More... | |
| int *& | get_ElementPartitionMap () |
| Returns a reference to the element partition map, an array of type int. | |
| int *& | get_VertexPartitionMap () |
| Returns a reference to the vertex partition map, an array of type int. | |
| void | printVertices () |
| Print the list of vertices to stdout. | |
| void | printElements () |
| Print the list of elements to stdout. | |
| int MeshManager::get_Dim | ( | ) |
Returns the dimension of the vertex data.
Usuallly will be 2 or 3.
| int MeshManager::get_ElementType | ( | ) |
Returns the type of element.
3 => triangles, 4 => quadrilaterals, etc.
| void MeshManager::partitionMesh | ( | int | numPartitions | ) |
Partition a mesh into numPartitions partitions using METIS.
Results can be obtained by calling MeshManager.get_ElementPartitionMap() and MeshManager.get_VertexPartitionMap().
| void MeshManager::readElements | ( | string | E2VFile | ) |
Read a list of elments from a file.
Vertex numbers are written in a row and delimited by spaces, e.g., 1 2 3 4
| void MeshManager::readVertices | ( | string | vertFile | ) |
Read a list of vertices from a file.
x-, y-, (and z-) are coordinates delimited by spaces, e.g., 0.5 1.0.
1.8.11