TET_MESH_TO_GMSH
Convert Tet Mesh Files to GMSH MSH Format


TET_MESH_TO_GMSH, a MATLAB program which converts a pair of files defining a tetrahedral mesh into an equivalent file using the Gmsh msh format.

In particular, TET_MESH_TO_GMSH reads a node coordinate file listing the coordinates of a set of 3D points, and an element file list of sets of 4, 10 or 20 nodes that form tetrahedral elements. It creates a single equivalent file in the Gmsh msh format.

Usage:

tet_mesh_to_gmsh ( 'prefix' )
where

Licensing:

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

Languages:

TET_MESH_TO_GMSH is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version.

Related Programs:

DOLFIN-CONVERT, a Python program which can convert mesh file from Gmsh, MEDIT, METIS or SCOTCH format to an XML format suitable for use by DOLFIN or FENICS, by Anders Logg.

GMSH, examples which illustrate the use of the Gmsh program, a 3D mesh generator for the finite element method (FEM).

MSH, a data directory of examples of MSH files, the native 3D mesh format used by Gmsh.

TET_MESH, a MATLAB library which includes a variety of routines for working with tetrahedral meshes.

TET_MESH_DISPLAY, a MATLAB program which can read in the node and tetra files defining a tet mesh and display a wireframe image.

TET_MESH_L2Q, a MATLAB program which takes a 4-node tet mesh and makes a 10-node tet mesh.

TET_MESH_ORDER4, a dataset directory which contains examples of order 4 tetrahedral meshes.

TET_MESH_ORDER10, a dataset directory which contains examples of order 10 tetrahedral meshes.

TET_MESH_ORDER20, a dataset directory which contains examples of order 20 tetrahedral meshes.

TET_MESH_Q2L, a MATLAB program which takes a 10-node tet mesh and makes a 4-node tet mesh.

tet_mesh_to_gmsh_test

TET_MESH_TO_XML, a MATLAB program which reads information defining a tet mesh, namely a file of node coordinates and a file of elements defined by node indices, and creates a corresponding DOLFIN XML mesh file.

TRIANGULATION_TO_GMSH, a MATLAB program which converts the data defining a triangulation into an equivalent Gmsh msh file.

Reference:

  1. Christophe Geuzaine, Jean-Francois Remacle,
    Gmsh: a three-dimensional finite element mesh generator with built-in pre- and post-processing facilities,
    International Journal for Numerical Methods in Engineering,
    Volume 79, Number 11, pages 1309-1331, 2009.

Source Code:


Last revised on 02 April 2019.