FEM_MESHING
Simple Issues in 2D Mesh Generation for the Finite Element Method


FEM_MESHING is a MATLAB library which looks at some simple issues in defining a geometric mesh for the finite element method in 2D.

The issues raised here are simple examples that arose during a presentation on finite element meshing. That presentation is available in ../../classes/fem_2011/fem_meshing.pdf.

Licensing:

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

Related Data and Programs:

DISTMESH, a MATLAB library which carries out triangular or tetrahedral mesh generation, by Per-Olof Persson and Gilbert Strang.

DISTMESH_3D, a MATLAB library which constitutes the 3D subset of distmesh, code for tetrahedral mesh generation, by Per-Olof Persson and Gilbert Strang.

MESH2D, a MATLAB library which can automatically create a triangular mesh for a given polygonal region, by Darren Engwirda.

TRIANGLE, a C program which computes a triangulation of a geometric region, by Jonathan Shewchuk.

TRIANGULATION, a MATLAB library which performs various operations on order 3 ("linear") or order 6 ("quadratic") triangulations.

TRIANGULATION_ORDER3, a dataset directory of TRIANGULATION_ORDER3 files, a linear triangulation of a set of 2D points, using a pair of files to list the node coordinates and the 3 nodes that make up each triangle;

Source Code:

There are various simple scripts to display the mesh.

It is useful to write the P and T data to files, so that they can later be read by a C++ or FORTRAN90 program.

The C++ function "triangle_read" suggests one way to read a triangle file. There is also an example program which shows how the function can be used to read the triangles associated with the ELL region.

The FORTRAN90 routine "triangle_read" suggests one way to read a triangle file. There is also an example program which shows how the function can be used to read the triangles associated with the ELL region.

Examples and Tests:

ELL is the L-shaped region.

STH is the square region with triangular hole.

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


Last revised on 30 October 2011.