Convert Mesh Data from FEM to DOLFIN XML Format

FEM_TO_XML is a Python script which reads the description of a mesh in FEM format, namely a file of node coordinates and a file of indices of nodes that form each element, and writes out a corresponding file in DOLFIN XML format.


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


FEM_TO_XML is available in a C version and a C++ version and a FORTRAN77 version and a FORTRAN90 version and a MATLAB version and a Python version.

Related Data and Programs:

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 (FEM).

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.

DOLFIN_XML, a data directory which contains examples of XML files that describe 3D finite element method (FEM) 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 partial differential equations (PDE's).

XML, a data directory which contains examples of XML files, a standard, general datafile format.

XML_TO_FEM, a Python script which reads a mesh description in DOLFIN XML format, and creates a corresponding pair of FEM files listing the node coordinates and the indices of nodes that form the elements.

Source Code:

You can go up one level to the PYTHON source codes.

Last revised on 12 October 2014.