Skip to content
Snippets Groups Projects
Forked from gmsh / gmsh
20279 commits behind the upstream repository.
gmsh.html 12.97 KiB
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>

<HEAD>

<TITLE>Gmsh: a three-dimensional finite element mesh generator with
built-in pre- and post-processing facilities</TITLE>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> 

<meta name="keywords" content="free mesh generator, free finite element
software, mesh generation, mesh refinement, free, delaunay triangulation,
automatic, maillages automatiques, mailleur, modelisation, opengl,
maillages 3D, 3D meshes, 3-D meshes, maillages 3-D, voronoi,
adaptation de maillages, mesh adaptation, modeling">

<META name="Autor-Handle" content="Christophe.Geuzaine@advalvas.be">

<LINK href="/general.css" rel="stylesheet">
<LINK REL="shortcut icon" HREF="/favicon.ico" TYPE="image/x-icon">

</HEAD>

<BODY>

<h1 align="center">Gmsh: a three-dimensional finite element mesh
generator with built-in pre- and post-processing facilities</h1>
<p>
<h3 align="center">Christophe Geuzaine and Jean-François Remacle</h3>
<p>
<h3 align=center>Version <a href="doc/VERSIONS">1.35</a>, 18 February 2002</h3>
<p>

<h2>Description</h2>

Gmsh (pronounced "<em>Gnu-mesh</em>") is an automatic
three-dimensional finite element mesh generator, primarily Delaunay,
with built-in pre- and post-processing facilities. Its primal goal is
to provide a simple meshing tool for academic test cases with
parametric input and up to date visualization capabilities. One of the
strengths of Gmsh is its ability to respect a characteristic length
field for the generation of adapted meshes on lines, surfaces and
volumes. These adapted meshes can be mixed with simple structured
(transfinite, elliptic, etc.)  meshes in order to augment the
flexibility.

Gmsh is structured around four modules: <a
href="#geometry">geometry</a>, <a href="#mesh">mesh</a>, <a
href="#solver">solver</a> and <a
href="#post-processing">post-processing</a>. The specification of any
input to these modules is done either interactively, or in text data
files (interactive specifications generate language bits in the input
file, and vice versa). The accessibility of most features in the ASCII
text file makes it possible to automate all treatments (loops, tests
and external access methods permit advanced scripting capabilities). A
brief description of the four modules is given hereafter.

<h3><a name="geometry"></a>Geometry: geometrical entity definition</h3>

Geometries are created in a bottom-up flow by successively defining
points, oriented curves (segments, circles, ellipses, splines, etc.),
oriented surfaces (plane surfaces, ruled surfaces, etc.) and
volumes. Compound groups of geometrical entities can be defined, based
on these elementary parametrized geometric entities. Data can be
defined either interactively thanks to the menu system, or directly in
the ASCII input files.  The scripting possibilities (with loops,
tests, arrays of variables, etc.) allow fully parametrized definitions
of all geometrical entities.

<h3><a name="mesh"></a>Mesh: finite element mesh generation</h3>

A finite element mesh is a tessellation of a given subset of
R<sup>3</sup> by elementary geometrical elements of various shapes (in
this case lines, triangles, quadrangles, tetrahedra, prisms and
hexahedra), arranged in such a way that if two of them intersect, they
do so along a face, an edge or a node, and never otherwise. All the
finite element meshes produced by Gmsh as unstructured, even if they
were generated in a structured way. This implies that the elementary
geometrical elements are defined only by an ordered list of their
vertices (which allows the orientation of all their lower order
geometrical entities) but no predefined relation is assumed between
any two elementary elements.
<p>
The mesh generation is performed in the same order as the geometry
creation: curves are discretized first; the mesh of the curves is then
used to mesh the surfaces; then the mesh of the surfaces is used to
mesh the volumes. This automatically assures the continuity of the
mesh when, for example, two surfaces share a common curve. Every
meshing step is constrained by the characteristic length field, which
can be uniform, specified by characteristic length associated to
elementary geometrical entities, or associated to another mesh (the
background mesh).
<p>
For each meshing step (i.e. the discretization of lines, surfaces and
volumes), all structured mesh directives are executed first, and serve
as additional constraints for the unstructured parts. The implemented
Delaunay algorithm is subdivided in the following five steps for
surface/volume discretization:
<p>
<ol>
<li>trivial meshing of a box including the convex polygon/polyhedron
defined by the boundary nodes resulting from the discretization of the
curves/surfaces;

<li>creation of the initial mesh by insertion of all the nodes on the
curves/surfaces thanks to the Bowyer algorithm;

<li>boundary restoration to force all the edges/faces of the
curves/surfaces to be present in the initial mesh;

<li>suppression of all the unwanted triangles/tetrahedra (in
particular those containing the nodes of the initial box);

<li>insertion of new nodes by the Bowyer algorithm until the
characteristic size of each simplex is lower or equal to the
characteristic length field evaluated at the center of its
circumscribed circle/sphere.
</ol>

<h3><a name="solver"></a>Solver: external solver interface</h3>

External solvers can be interfaced with Gmsh through a socket
mechanism, which permits to easily launch computations either locally
or on remote computers, and to collect and exploit the simulation
results within Gmsh. The default solver interfaced with Gmsh is <A
HREF="/getdp/">GetDP</A>. Check the <A HREF="#mysolver">solver
examples</A> to see how to define your own solver (be sure to also
read the answer to the question 6.1 in the <A
HREF="/gmsh/doc/FAQ">FAQ</A>).

<h3><a name="post-processing"></a>Post-processing: scalar and vector field visualization</h3>

Multiple post-processing scalar or vector maps can be loaded and
manipulated (globally or individually) along with the geometry and the
mesh. Scalar fields are represented by iso-value curves/surfaces or
color maps and vector fields by three-dimensional arrows or
displacement maps. Post-processing functions include arbitrary section
computation, offset, elevation, boundary extraction, color map and
range modification, animation, <a href="/gl2ps/">vector graphic
output</a>, etc. All post-processing options can be accessed either
interactively or through the input ASCII text files. Scripting permits
to automate all the post-processing operations (e.g. for the creation
of complex animations).


<h2>Documentation</h2>

<ul>
  <li><A href="/gmsh/doc/tutorial.html">Online tutorial</A>
      (Please <b>read</b> this tutorial before sending any question to the mailing list!)
  <li><a href="/gmsh/doc/FAQ">Frequently asked questions (FAQ)</a>
  <li><A href="/gmsh/doc/VERSIONS">Version history</A>
  <li><A href="/gmsh/doc/FORMATS">Mesh and post-processing file formats</A>
  <li><a href="/gmsh/doc/CONTRIBUTORS">List of contributors</a>
  <li><a href="/gmsh/doc/KEYWORDS">List of reserved keywords</a>
  <li><a href="/gmsh/doc/README.txt">For Windows versions only</a>
  <li><a name="mysolver"></a>Interactive solver examples: 
      <a href="/gmsh/doc/mysolver.tgz">C solver</a>, 
      <a href="/gmsh/doc/myperlsolver.tgz">Perl solver</a>
<!--
  <li><a href="/gmsh/doc/BUGS">List of open bugs</a>
-->
</ul>

<FORM METHOD=GET ACTION="http://www.geuz.org/search/search-geuz.cgi">
<INPUT SIZE=30 NAME="q" VALUE="">&nbsp;
<INPUT TYPE="submit" VALUE="Search!">
<INPUT TYPE=HIDDEN NAME="ul" VALUE="/gmsh/">
</FORM>

<h2>Mailing lists</h2>

<ul>
  <li><a href="/mailman/listinfo/gmsh/">gmsh</a> is the public mailing
     list for Gmsh users. You should send all questions, bug reports,
     requests or pleas for changes related to Gmsh to this list. The
     list is archived <a href="/pipermail/gmsh/">here</a>

  <li><a href="/mailman/listinfo/gmsh-announce/">gmsh-announce</a> is
     a moderated (i.e. "read-only") list for announcements about
     significant Gmsh events. You should subscribe to this list to get
     information about software releases, important bug fixes and
     other Gmsh-specific news. The list is archived <a
     href="/pipermail/gmsh-announce/">here</a>.
</ul>

<h2>Download</h2>

Gmsh is available under the <A href="http://www.gnu.org/">GNU General
Public License</A> (GPL), with some exceptions (see the sources for
more information).  Executable versions of Gmsh are also available for
Windows and for most of the classical UNIX platforms. These versions
are dynamically linked with OpenGL<a href="#opengl-footnote"
name="opengl-footmark"><sup>1</sup></a>. The tutorial and demo files
are included in the archives.
<ul>
<li><A href="/gmsh/bin/gmsh-1.35.0-Windows.zip">Windows zip archive (95/98/NT/XP)</A>
<li><A href="/gmsh/bin/gmsh-1.35.0-1.i386.rpm">Linux RPM (Red Hat 6.2 and compatible, i386, glibc 2.1)</A> 
<li><A href="/gmsh/bin/gmsh-1.35.0-Linux.tgz">Linux tarball (i386, glibc 2.1)</A> 
<li><A href="/gmsh/bin/gmsh-1.35.0-OSF1.tgz">Compaq Tru64 tarball (OSF 4.0)</A> 
<li><A href="/gmsh/bin/gmsh-1.35.0-SunOS.tgz">Sun tarball (SunOS 5.5)</A> 
<li><A href="/gmsh/bin/gmsh-1.35.0-AIX.tgz">IBM tarball (AIX)</A> 
<li><A href="/gmsh/bin/gmsh-1.35.0-IRIX.tgz">SGI IRIX tarball (IRIX 6.5)</A> 
<li><A href="/gmsh/bin/gmsh-1.35.0-HP-UX.tgz">HP tarball (HPUX 10.20)</A>
<li><A href="/gmsh/bin/gmsh-1.35.0-source.tgz">Source tarball</A>
<li><A href="/gmsh/bin/gmsh-1.35.0-source.zip">Source zip archive</A>
</ul>

<p>
<a name="opengl-footnote"></a><a
href="#opengl-footmark"><sup>1</sup></a>For Unix versions only: you
should have the OpenGL libraries installed on your system, and in the
path of the library loader. A free replacement for OpenGL can be found
at <A
href="http://mesa3d.sourceforge.net">http://mesa3d.sourceforge.net</A>
(a Linux RPM is directly available <A
href="/gmsh/thirdparty/Mesa-3.2-2.i386.rpm">here</A>).  Remember that
you may have to reconfigure the loader (ldconfig under Linux) or
modify the LD_LIBRARY_PATH (or SHLIB_PATH on HP) environment variable
in order for Gmsh to find the libraries.


<h2>Credits</h2>

Gmsh is developed by <A
HREF="mailto:Remacle@scorec.rpi.edu">Jean-François Remacle</A>
(currently with the <a href="http://www.rpi.edu">Rensselaer
Polytechnic Institute</a>) and <A
HREF="mailto:geuzaine@acm.caltech.edu">Christophe Geuzaine</A>
(currently with the <a href="http://www.caltech.edu">California
Institute of Technology</a>).  Please use <A
HREF="mailto:gmsh@geuz.org">gmsh@geuz.org</A> instead of our personal
e-mails to send questions or bug reports.


<h2>Gallery</h2>

Some pictures made with Gmsh:
<ul>
<li>Part of a shoulder bone:
    <A href="/gmsh/gallery/shoulder1.gif">pict1</a>,
    <A href="/gmsh/gallery/shoulder2.gif">pict2</a>,
    <A href="/gmsh/gallery/shoulder3.gif">pict3</a>,
    <A href="/gmsh/gallery/shoulder4.gif">pict4</a>,
    <A href="/gmsh/gallery/shoulder5.gif">pict5</a>,
    <A href="/gmsh/gallery/shoulder6.gif">pict6</a>
    (J. Fatemi).
<li>Parts of a magnetron: 
    <A href="/gmsh/gallery/magnetron1.gif">pict1</a>,
    <A href="/gmsh/gallery/magnetron2.gif">pict2</a>,
    <A href="/gmsh/gallery/magnetron3.gif">pict3</a>,
    <A href="/gmsh/gallery/magnetron4.gif">pict4</a>
    (P. Lefèvre).
<li>A circuit breaker: 
    <A href="/gmsh/gallery/breaker.gif">pict1</A>
    (S. K. Choi).
<li>A mechanical part in the demo files: 
    <A href="/gmsh/gallery/piece1.gif">pict1</A>, 
    <A href="/gmsh/gallery/piece2.gif">pict2</A>, 
    <A href="/gmsh/gallery/piece3.gif">pict3</A>.
<li>The log-periodic antenna in the demo files:
    <A href="/gmsh/gallery/antenna.gif">pict1</A>.
<li>An electrical machine:
    <A href="/gmsh/gallery/machine.gif">pict1</A>
    (J. Gyselinck).
<li>Breads: 
    <A href="/gmsh/gallery/tresse1.gif">pict1</A>,
    <A href="/gmsh/gallery/tresse2.gif">pict2</A>
    (D. Colignon).
<li>Mach number on a F16:
    <A href="/gmsh/gallery/f16-1.gif">pict1</A>,
    <A href="/gmsh/gallery/f16-2.gif">pict2</A>,
    <A href="/gmsh/gallery/f16-3.gif">pict3</A>,
    <A href="/gmsh/gallery/f16-5.gif">pict4</A>
    (P. Geuzaine).
<li>An example of on-screen information display:
    <A href="/gmsh/gallery/infodisplay1.gif">pict1</A>, 
    <A href="/gmsh/gallery/infodisplay2.gif">pict2</A>.
<li>2D colormap:
    <A href="/gmsh/gallery/blob.gif">pict1</A>.
<li>3D quicktime movie:
    <A href="/gmsh/gallery/density.mov">movie1</A>.
<li>Structured and unstructured mesh of an extruded geometry:
    <A href="/gmsh/gallery/spirale.gif">pict1</A>.
<li>Some didactic animations about computational electromagnetics at 
    <A href="http://elap.montefiore.ulg.ac.be/elm/demos_en.html">ELAP</A>.
</ul>


<h2>Links</h2>

Check out <A HREF="/getdp/">GetDP</A>, a scientific computation
software for the numerical solution of integro-differential equations,
using finite element and integral type methods.

<p>
The mesh database that will be used by Gmsh in the future has its
own homepage: take a look at <A
HREF="http://www.scorec.rpi.edu/AOMD/">AOMD, the Algorithm Oriented
Mesh Database</A>.

<p>
Back to <a href="/">geuz.org</a>

</BODY>
</HTML>