MAdLib: an open source Mesh Adaptation Library

Gaëtan Compère and Jean-François Remacle, UCL

Version 1.3.0, October 16 2009

Description | Download | Authors and credits | Animations | Licensing


MAdLib is a library that performs global node repositioning and mesh adaptation by local mesh modifications on tetrahedral or triangular meshes. It is designed to frequently adapt the mesh in transient computations, or to generate specific meshes from any initial mesh. MAdLib is written in C++.

The adaptation procedure is driven by two objectives:

MAdLib can therefore be used in transient computations in order to maintain a satisfying element quality (moving boundaries, multiphase flows with interface tracking, ...) or/and to apply selective refinements and coarsenings (error estimators based, interface capturing: shocks, free surfaces, ...).

Starting from version 1.1, MAdLib can perform mesh adaptation on boundaries and snap points on a geometry (GEO, STEP, BREP, ...). The handling of a geometrical model is done through Gmsh (nightly built version).

Starting from version 1.2, MAdLib is equipped with anisotropic mesh size fields and operations on metrics.

The steps to perform mesh adaptation with MAdLib are the following:

  1. Dynamic mesh: convert the static mesh database of the external solver to a dynamic mesh database thanks to the Mesh interface of MAdLib.
  2. Dynamic data: convert the static solution in a dynamic one (same interface).
  3. Size field: define a field of desired edge lengths over the domain.
  4. Adaptation: run the adaptation through the Adapt interface.
  5. Back to static: rebuild the static mesh and solution.

You can find a demo class implementing these steps in the Tutorial/ directory.


MAdLib is distributed under the terms of the GNU Lesser General Public License (LGPL). You can download the sources of the latest version (1.3.0) here.

If you ever happen to use MAdLib in a commercial or official research project, we would appreciate that you let us know you are using it and that you mention the library by a reference to the website. If you wish to refer to the mesh adaptation method implemented in MAdLib or to the library itself in a scientific work, we encourage you to cite the paper Transient mesh adaptivity with large rigid-body displacements, Compère, Remacle, Marchandise, Proceedings of the 17th International Meshing Roundtable (2008), or the following paper when a DOI is available: A mesh adaptation framework for dealing with large deforming meshes, Compère G., Remacle J-F., Jansson J., Hoffman J., accepted for publication in the International Journal for Numerical Methods in Engineering.

Here are the previous versions: 1.0.0, 1.0.1, 1.1.0, 1.2.0, 1.2.1, 1.2.2, 1.2.3.

Authors and credits

The main developers are Jean-François Remacle and Gaëtan Compère (UCL - Université catholique de Louvain, Belgium). See Credits.txt for full credits.



MAdLib is copyright (C) 2008-2009 by the Université catholique de Louvain (UCL), Belgium (see Copyright.txt ) and is distributed under the terms of the GNU Lesser General Public License (see License.txt ).

Last update on October 16 2009 19:22:21.