Mesh module


This part of the library has the role to store and manage the meshes, i.e. a collection of elements (real elements) connected to each other by some of their faces. For that, it develops concepts of elements, elements of reference, structure of meshes, collection of nodes, geometric transformations, subpart of the boundary or subzone of the mesh.

There is no really effective meshing capabilities available for the moment in GetFEM. The meshes of complex objects must be imported from existing meshers such as Gmsh or GiD. Some importing functions of meshes have been written and can be easily extended for other formats.

The object which represents a mesh declared in the file getfem_mesh.h and which is used as a basis for handling of the meshes in GetFEM manages also the possibility for the structures depending on a mesh (see MESHFEM and MESHIM modules) to react to the evolution of the mesh (addition or removal of elements, etc.).


File(s) Description
bgeot_convex_structure.h and Describes the structure of an element disregarding the coordinates of its vertices.
bgeot_mesh_structure.h and Describes the structure of a mesh disregarding the coordinates of the nodes.
bgeot_node_tab.h and A node container allowing the fast search of a node and store nodes identifying the too much close nodes.
bgeot_convex.h Describes an element with its vertices.
bgeot_convex_ref.h and and Describe reference elements.
bgeot_mesh.h Describes a mesh with the collection of node (but without the description of geometric transformations).
getfem_mesh_region.h and Object representing a mesh region (boundary or part of a mesh).
bgeot_geometric_trans.h and Describes geometric transformations.
bgeot_geotrans_inv.h and A tool to invert geometric transformations.
getfem_mesh.h and Fully describes a mesh (with the geometric transformations, subparts of the mesh, support for parallelization). Includes the Bank algorithm to refine a mesh.
getfem_deformable_mesh.h defines an object capable to deform a mesh with respect to a displacement field and capable to restore it
getfem_mesher.h and An experimental mesher, in arbitrary dimension. To be used with care and quite slow (because of node optimization). It meshes geometries defined by some level sets.
getfem_import.h and Import mesh files in various formats
getfem_regular_meshes.h and Produces structured meshes
getfem_mesh_slicers.h and A slice is built from a mesh, by applying some slicing operations (cut the mesh with a plane, intersect with a sphere, take the boundary faces, etc..). They are used for post-treatment (exportation of results to VTK or OpenDX, etc.).
getfem_mesh_slice.h and Store mesh slices.


Stable and not evolving so much.


For the moment, the module is split into two parts which lie into two different namespaces. Of course, It would be more coherent to gather the module in only one namespace (getfem).


The file bgeot_mesh.h could be renamed getfem_basic_mesh.h.

A bibliographical review on how to efficiently store a mesh and implement the main operations (add a node, an element, deal with faces, find the neighbour elements, the isolated faces …) would be interesting to make the mesh structure evolve.

A senstive algorithm is the one (in which identify the too much close nodes. More investigations (and documentation) are probably necessary.