Tech Tip: The NAG Fotran Library and Mesh Generation
Mark 20 of the Fortran Library saw the addition of an important new chapter. Chapter D06 provides routines for generating two-dimensional triangular meshes on arbitrary domains.
The first step is to generate a boundary mesh for the domain. Routine D06BAF does this for quite general boundaries, defined as the union of a set of line segments which may be straight lines, curves defined by the equation f(x,y) = 0, or polygonal curves defined by a set of given boundary mesh points.
Once the boundary mesh is computed the routines D06AAF, D06ABF, or D06ACF may be used to generate a 2D triangular mesh using a simple incremental method, the Delaunay-Voronoi process, or the Advancing Front method.
Routines are also provided for mesh smoothing, mesh transformation, mesh stitching, computing the sparsity structure of an associated finite element matrix, and bandwidth reduction.
To accompany this new chapter there is a NAG Technical Report (TR1/01 [pdf]), which illustrates how these routines can be used in combination with sparse iterative solvers from Chapter F11, to solve partial differential equations using the finite element method.
The material in Chapter D06 was derived from the MODULEF software developed by INRIA (Institut National de Recherche en Informatique et Automatique).
For specific technical advice in using NAG's products, please contact our technical experts.
Return to Technical Tips & Hints index page.