fem_io, a FORTRAN90 code which reads or writes FEM files, which describe the nodes, elements, and function values associated with a finite element method (FEM) model;
The finite element model is assumed to include three items:
The computer code and data files described and made available on this web page are distributed under the MIT license
fem_io is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version.
FEM_TO_GMSH, a FORTRAN90 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.
FEM_TO_MEDIT, a FORTRAN90 code which reads a pair of FEM files defining node coordinates and elements, and creates a corresponding MEDIT mesh file.
FEM_TO_TRIANGLE, a FORTRAN90 code which reads FEM files defining a 2D mesh of triangles, namely a file of node coordinates and a file of elements defined by node indices, and creates a corresponding pair of node and element files for use by Jonathan Shewchuk's triangle code.
FEM_TO_XML, a FORTRAN90 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.
FEM1D, a data directory which contains examples of 1D FEM files, three text files that describe a 1D finite element model;
FEM2D, a data directory which contains examples of 2D FEM files, three text files that describe a 2D finite element geometry;
FEM2D_PACK, a FORTRAN90 code which is useful for 2D finite element calculations.
FEM3D, a data directory which contains examples of 3D FEM files, three text files that describe a 3D finite element geometry;
GMSH_TO_FEM, a FORTRAN90 code which reads a mesh data file created by the GMSH code and writes a pair of node and element files that correspond to the FEM format.
MEDIT_IO, a FORTRAN90 code which can read or write MEDIT mesh files, which can be used to define the geometry of a finite element mesh in 2D or 3D, using triangles, quadrilaterals, tetrahedrons or hexahedrons.
MEDIT_TO_FEM, a FORTRAN90 code which reads a mesh file created by the MEDIT code and writes a corresponding pair of node and element files that correspond to the FEM format.
TRIANGLE_TO_FEM, a FORTRAN90 code 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.