Scroll to navigation

Gmsh(1) Gmsh Manual Pages Gmsh(1)


Gmsh - 3D finite element mesh generator with built-in CAD engine and post-processor


gmsh [file(s)] [option(s)]


Gmsh is a 3D finite element grid generator with a build-in CAD engine and post-processor. Its design goal is to provide a fast, light and user-friendly meshing tool with parametric input and advanced visualization capabilities.

Gmsh is built around four modules: geometry, mesh, solver and post-processing. The specification of any input to these modules is done either interactively using the graphical user interface, in ASCII text files using Gmsh's own scripting language (.geo files), or using the C++, C, Python or Julia Application Programming Interface (API).


Output model, then exit.
set geometrical tolerance.


-1, -2, -3
perform 1D, 2D or 3D mesh generation, then exit.
specify output file name.
set output mesh format (auto, msh, msh1, msh2, msh4, unv, vrml, stl, mesh, bdf, med, ...).
use binary format when available.
save all elements (discard physical group definitions)
select mesh algorithm (meshadapt, del2d, front2d, del3d, front3d, hxt, ...).
save nodes with their parametric coordinates.
partition the mesh after batch mesh generation.
set number of mesh smoothing steps.
set mesh order.
set global mesh element size scaling factor.
set minimum mesh element size.
set maximum mesh element size.
set random perturbation factor.
load the post-processing view in file as the current background mesh.
perform various consistency checks on mesh.


combine input views into multi-time-step ones.


hide all meshes and post-processing views on startup.
specify the font size for the GUI.
specify display.


parse input files, then exit.
create new model before merge next file.
merge next files.
ppen next files.
start in automatic, geometry, mesh, solver or post-processing mode.
print pid on stdout.
always listen to incoming connection requests.
set verbosity level.
don't popup dialog windows in scripts.
set constant number name=value
set constant string name=value
parse option string at startup.
parse option file at startup.
Convert files into latest binary formats, then exit.
show version number.
show detailed version information.
show help message.


Christophe Geuzaine ( and Jean-Francois Remacle (


Gmsh examples (/usr/share/doc/gmsh),
Gmsh homepage (

The full documentation for Gmsh is maintained as a Texinfo manual. If the info and gmsh programs are properly installed at your site, the command

info gmsh

should give you access to the complete manual.

05 November 2020 4th Berkeley Distribution