FEM_TO_TRIANGLE
Convert a Mesh from FEM to Triangle Format


FEM_TO_TRIANGLE is a C program which reads FEM files of node coordinates and element connectivity, which define a mesh of a 2D region, divided into triangular elements, and creates a corresponding pair of files for the triangle() program.

These files can be used as input to triangle() for viewing, or mesh refinement.

Usage:

fem_to_triangle prefix
where prefix is the common filename prefix:

Licensing:

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

Languages:

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

Related Data and Programs:

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.

FEM_TO_MEDIT, a C program which reads a pair of FEM files defining node coordinates and elements, and creates a corresponding MEDIT mesh file.

FEM_TO_XML, a C program 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.

FEM2D, a data directory which contains examples of 2D FEM files, text files that describe a 2D geometry and node values associated with the finite element method (FEM);

TRIANGLE_FILES, a data directory which contains examples of files used by the triangle() and showme() programs.

TRIANGLE_IO, a C library which can read or write some of the files created by Jonathan Shewchuk's triangle() program.

Source Code:

Examples and Tests:

ELL is an L-shaped region with 65 nodes and 96 elements.

List of Routines:

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


Last revised on 14 October 2014.