fem_to_medit


fem_to_medit, an Octave code which reads a pair of FEM files defining the node coordinates and elements of a finite element mesh, and rewrites the data as a medit() MESH file.

The program can convert 2D meshes of triangles, or 3D meshes of tetrahedrons.

Usage:

fem_to_medit prefix
where prefix is the file name prefix, so that:

Licensing:

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

Languages:

fem_to_medit is available in a C version and a C++ version and a Fortran90 version and a MATLAB version and an Octave version.

Related Data and Programs:

fem_to_medit_test

FEM_TO_GMSH, a MATLAB program which reads FEM files definining a 1D, 2D or 3D mesh, namely a file of node coordinates and a file of elements defined by node indices, and creates a Gmsh mesh file.

FEM_TO_TRIANGLE, a MATLAB program which reads FEM files defining a 2D mesh of triangles, namely a file of node coordinates and a file of elements defined by node indices, and creates a corresponding pair of node and element files for use by Jonathan Shewchuk's triangle program.

FEM_TO_XML, a MATLAB program which reads FEM files defining a 1D, 2D or 3D mesh, namely a file of node coordinates and a file of elements defined by node indices, and creates a corresponding XML file for input to DOLFIN or FENICS.

FEM2D, a data directory which contains examples of 2D FEM files, text files that describe a 2D finite element geometry and associated nodal values;

FEM3D, a data directory which contains examples of 3D FEM files, three text files that describe a 3D finite element geometry and associated nodal values.

MEDIT, 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.

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_TO_FEM, a MATLAB program which reads a mesh file created by the MEDIT program and writes a corresponding pair of node and element files that correspond to the FEM format.

TRIANGLE_TO_MEDIT, a MATLAB program which reads the NODE and ELE files created by triangle() to describe a triangular mesh, and writes a corresponding MESH file for input to medit().

Reference:

  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.

Source Code:


Last revised on 17 July 2023.