xml_to_fem, a Python code which reads an XML file, created by DOLFIN or FENICS, defining a mesh. The code extracts the node coordinates, and the lists of node indices associated with each element, which constitute an FEM model of the mesh.


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


xml_to_fem is available in a Python version.

Related Data and Programs:

dolfin, Python codes which are used with the DOLFIN code to set up and solve a wide variety of problems using the finite element method (FEM).

dolfin-convert, a Python code 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.

fem_to_xml, a Python code which reads FEM files defining a 1D, 2D or 3D mesh, namely a file of node coordinates and a file of elements defined by node indices, and creates a corresponding XML file for input to DOLFIN or FENICS.

fenics, codes 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.

Source Code:

Last revised on 12 October 2014.