GMSH_TO_FEM
Convert Mesh Data from GMSH to FEM Format. {#gmsh_to_fem-convert-mesh-data-from-gmsh-to-fem-format. align="center"}
GMSH_TO_FEM is a C++ program 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.
gmsh_to_fem prefix
where prefix is the common filename prefix so that:
- prefix**.msh** contains the GMSH mesh data file.
- prefix**_nodes.txt** will be the FEM node file created by the program.
- prefix**_elements.txt** will be the FEM element file created by the program.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
GMSH_TO_FEM is available in a C version and a C++ version and a FORTRAN77 version and a FORTRAN90 version and a MATLAB version.
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_IO, a C++ library which reads or writes node, element and data files defining a model associated with the finite element method (FEM).
FEM_TO_GMSH, a C++ 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.
FEM2D, a data directory which contains examples of 2D FEM files, a pair of files defining the coordinates of nodes, and the nodes that form triangular elements.
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_IO, a C++ library which can read or write some of the files created by the Gmsh program for 1D, 2D or 3D meshes used by the finite element method (FEM).
MEDIT_TO_FEM, a C++ 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_FEM, a C++ program which reads the NODE and ELE files created by triangle() to describe a triangular mesh, and writes a corresponding pair of node and element files in the 2D FEM format.
XML_TO_FEM, a Python program which reads an XML file created by FENICS or DOLFIN, describing a mesh in 1D, 2D, or 3D, and creates corresponding FEM files, namely, a file of node coordinates, and a file of element connectivities.
- gmsh_to_fem.cpp, the source code.
- example_2d.msh, a sample 2D GMSH mesh file.
- example_2d_nodes.txt, the FEM node file created by the program.
- example_2d_elements.txt, the FEM element file created by the program.
- MAIN is the main program for GMSH_TO_FEM.
- CH_CAP capitalizes a single character.
- CH_EQI is a case insensitive comparison of two characters for equality.
- CH_TO_DIGIT returns the integer value of a base 10 digit.
- GMSH_DATA_READ reads sizes from a GMSH file.
- GMSH_SIZE_READ reads sizes from a GMSH file.
- I4MAT_WRITE writes an I4MAT file.
- R8MAT_WRITE writes an R8MAT file.
- S_BEGIN is TRUE if one string matches the beginning of the other.
- S_TO_I4 reads an I4 from a string.
- S_TO_R8 reads an R8 from a string.
- TIMESTAMP prints the current YMDHMS date as a time stamp.
You can go up one level to the C++ source codes.
Last revised on 21 October 2014.