MAdLib

Mesh Adaptation Library

About MAdLib

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.

With Subversion (up to date)

Version svn command
Release svn co https://svn.cenaero.be/MAdLib/tags/Release_2_0_0
Development svn co https://svn.cenaero.be/MAdLib/trunk

Direct download: release 2.0.0

Contact

madlib@cenaero.be

Main features

Metric based mesh adaptation

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.

adapted cube mesh cut adapted cube mesh

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.

order 3 triangle order 2 quadrangle order 2 tetrahedron
order 2 hexahedron order 2 prism order 2 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.

cylinder mesh curved cylinder mesh curved adapted cylinder mesh cut curved adapted cylinder mesh

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.

P1 Falcon mesh P1 Falcon mesh