A File Format for Finite Element Meshes

MEDIT is a data directory which contains examples of files which can be used by the MEDIT program to define a 2D or 3D mesh for use by the finite element method (FEM), using triangles, quadrilaterals, tetrahedrons or hexahedrons.


The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Related Data and Programs:

MEDIT, examples which illustrate the use of medit, an interactive graphics program developed to visualize numerical simulation results on unstructured meshes in two and three dimensions. Scalar, vector and tensor fields can be easily associated and displayed with meshes. The program is by Pascal Frey.

MEDIT_IO, a C library which can read or write files used by the MEDIT program, which can be used to define the a mesh associated with the finite element method (FEM) in 2D or 3D, using triangles, quadrilaterals, tetrahedrons or hexahedrons.


  1. Pascal Frey,
    MEDIT: An interactive mesh visualization software,
    Technical Report RT-0253,
    Institut National de Recherche en Informatique et en Automatique,
    03 December 2001.

Sample Files:

CUBE86 subdivides the unit cube, using 39 vertices to form 86 tetrahedra. There are 72 boundary triangles.

CYL248 is a cylinder defined by 92 vertices. The volume is subdivided into 248 tetrahedra which have 154 boundary triangles.

ELL is a 2D L-shaped region, with a grid of 65 nodes and 96 elements of order 3 triangles.

GREENLAND is a triangulation of Greenland, using 66,425 nodes and 131,189 elements of order 3 triangles.

GREENLAND_OLD is a triangulation of Greenland, using 33,343 nodes and 64,125 elements of order 3 triangles.

HEXAHEXA_2x2x2 subdivides the unit 3D cube into a 2x2x2 mesh of 8 subcubes or "hexahedra", using 27 vertices, and 24 boundary quadrilaterals.

P01 is 3D data for a rectangular channel of dimensions 3x1x1 physical units, using 584 nodes and 2568 tetrahedral elements.

PART is a large 3D object including 28,694 vertices, 14,890 triangles, 150,779 tetrahedrons, 50 corners, 1905 edges and 1905 ridges.

You can go up one level to the DATA directory.

Last revised on 10 October 2014.