gmsh_io
gmsh_io,
an Octave code which
can read and write the files used by the GMSH meshing program.
Licensing:
The computer code and data files made available on this
web page are distributed under
the MIT license
Languages:
gmsh_io 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:
gmsh_io_test
dolfin-convert,
a Python program which
can convert a mesh file from Gmsh, MEDIT, METIS or SCOTCH format to an
XML format suitable for use by DOLFIN or FENICS,
by Anders Logg.
fem_to_gmsh,
an Octave code 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.
gmsh,
examples which
illustrate the use of the Gmsh program,
a 1D, 2D or 3D mesh generator that can create meshes
suitable for use by the finite element method (FEM).
gmsh_to_fem,
an Octave code which
reads a mesh data file created by the GMSH program
and writes a pair of node and element files that correspond
to the FEM format.
msh,
a data directory of examples of MSH files,
the native 3D mesh format used by Gmsh.
Reference:
-
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:
-
ch_cap.m
returns the capitalized version of a character;
-
ch_eqi.m
returns TRUE if a two characters are equal (ignoring case);
-
gmsh_data_read.m,
reads data from a GMSH data file.
-
gmsh_mesh1d_write.m,
writes a 1D mesh as a GMSH data file.
-
gmsh_mesh2d_element_data_exmple.m,
sets element data for a 2D example.
-
gmsh_mesh2d_element_size_example.m,
sets element sizes for a 2D example.
-
gmsh_mesh2d_node_data_exmple.m,
sets node data for a 2D example.
-
gmsh_mesh2d_node_size_example.m,
sets node sizes for a 2D example.
-
gmsh_mesh2d_write.m,
writes a 2D mesh as a GMSH data file.
-
gmsh_mesh3d_write.m,
writes a 3D mesh as a GMSH data file.
-
gmsh_size_read.m,
reads sizes from a GMSH data file.
-
i4mat_transpose_print.m,
prints an I4MAT, transposed.
-
i4mat_transpose_print_some.m,
prints some of the transpose of an I4MAT.
-
mesh_base_one.m
adjusts a mesh to use 1-based indexing.
-
r8mat_transpose_print.m,
prints an R8MAT, transposed.
-
r8mat_transpose_print_some.m,
prints some of an R8MAT, transposed.
-
s_begin.m,
is TRUE if two strings match, up to the end of the shorter string,
ignoring spaces and capitalization;
-
s_len_trim.m,
returns the length of a string to the last nonblank.
Last revised on 24 January 2019.