tet_mesh_to_gmsh


tet_mesh_to_gmsh, a MATLAB code 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 MIT 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 code which includes a variety of routines for working with tetrahedral meshes.

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

tet_mesh_l2q, a MATLAB code 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 code 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 code 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 code 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.