DOLFIN-CONVERT is a Python script 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.
The conversions carried out by this function include:
Note that the examples of converting a 3D GMSH file to DOLFIN XML file have failed. This is because the GMSH 3D tetrahedral elements are listed as type 29, whereas DOLFIN-CONVERT is expecting an element type of 4. Thanks to Sean Breckling for reporting this issue, 13 May 2016.
The computer codes made available on this web page are distributed under the GNU LGPL license.
DOLFIN-CONVERT is available in a Python version.
DOLFIN, Python programs which are used with the DOLFIN library to set up and solve a wide variety of problems using the finite element method.
DOLFIN_XML is a data directory which contains examples of XML files that describe 3D finite element meshes as used by DOLFIN and FENICS.
FENICS, examples which illustrate the use of FENICS, a collection of free software with an extensive list of features for automated, efficient solution of differential equations.
GMSH, examples which illustrate the use of the Gmsh program, a 3D mesh generator for the finite element method (FEM).
GMSH_TO_FEM, a FORTRAN90 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.
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.
MITCHELL_FENICS, examples which illustrate the implementation of the Mitchell elliptic test problems using FENICS.
MSH, a data directory of examples of MSH files, the native 3D mesh format used by Gmsh.
TET_MESH_TO_XML, a C 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_XML, a C program which reads information defining a trinagulation, namely a file of node coordinates and a file of elements defined by node indices, and creates a corresponding DOLFIN XML mesh file.
XML, a data directory which contains examples of XML files, a standard, general datafile format.
Anders Logg
CYLINDER_2D is a 2D mesh for a cylinder.
CYLINDER_3D is a 3D mesh for a cylinder.
ELL_2D is a 2D mesh for the L-shaped region.
PINCH is a 2D channel formed by starting with a long rectangular channel and creating a narrow neck by removing elliptical portions from the top and bottom. The resulting mesh has 4,325 nodes and 8,656 elements.
STEP_2D is a 2D mesh for a step.
STEP_3D is a 3D mesh for a step.
TEST02 is the upside down L-shaped region, for the Mitchell test problem #2.
TEST03 is the square [-1,+1]x[-1,+1] with a slit from (0,0) to (1,0), for the Mitchell test problem #3.
You can go up one level to the PYTHON source codes.