MAdLib is an open source mesh adaptation library, jointly developed by Cenaero and the Université Catholique de Louvain.
Sources files
The source files of MAdLib are located at Cenaero's subversion repository. It is based on C++ language, but the interface can be used in pure C language codes. To get the source files, two options are available.
The main aim of MAdLib lies in the adaptation of an initial mesh with respect to a given metric field. This functionality can be applied both in 2D and 3D.
High order elements handling
MAdLib is able to deal with high order elements, defined through Lagrangian coordinates. It can be defined up to the order 4. Below are some examples of such curved elements, namely order 3 triangle and order 2 quadrangle, tetrahedron, hexahedron, prism and pyramid.
Curved metric based mesh adaptation
From an initial linear mesh, we first get a P2 curved mesh by projecting the boundary edges onto the geometry. Then, by defining a vertical metric field, the mesh is aligned with the axis of the cylinder.
CAD support and surface mesh adaptation (coming soon)
In a further revision of the library, a fully automatic surface mesh adaptation will be implemented. It is based on the computation of a metric field, which fits locally the features of a given geometry. Here is an example of such an adaptation, with linear and P2 triangles.