Gmsh(1)
๐ธ Gmsh โ the manual page, but make it a group chat ๐
Okay bestie, sit down, hydrate, because you're about to meet Gmsh: a 3D finite element mesh generator with a built-in CAD engine and a post-processor. This whole thing is the official Gmsh manual page, rewritten by me for you, with zero facts lost and maximum vibe. Let's go. โจ
๐ NAME ๐
Gmsh โ 3D finite element mesh generator with built-in CAD engine and post-processor.
Like. That's the whole identity. Meshes, CAD, post-processing, one girl. ๐
๐ SYNOPSIS ๐
gmsh [file(s)] [option(s)]
That's it. Files in, options in, magic out. Simple as. ๐ฆ
โจ DESCRIPTION โจ
So Gmsh is a 3D finite element mesh generator with a build-in CAD engine and post-processor. (Yes, "build-in", that's literally what the original says, we don't fix, we respect. ๐)
Its design goal? Providing a fast, light and user-friendly meshing tool with parametric input and flexible visualization capabilities. It's giving "I'm not like other meshers". Because it isn't. ๐ซถ
Now the structure, and this is the part that matters: Gmsh is built around four modules โ geometry, mesh, solver and post-processing. And the way you can control them? Literally so many ways:
- the graphical user interface ๐
- the command line (what this page is about, periodt)
- text files written in Gmsh's own scripting language (
.geofiles) ๐ - the C++, C, Python, Julia and Fortran application programming interface ๐ฅ
Pick your fighter. Or all of them. No one's stopping you.
๐ GEOMETRY OPTIONS ๐
The "shape first, chaos later" section. ๐ง
-0โ Output model, then exit. Model out, door out. ๐ช-tolfloat โ set geometrical tolerance. Tiny number, big consequences. โจ
๐ฆ MESH OPTIONS ๐ฆ
Where the actual mesh happens. Bestie, this is the main character section. ๐
-1,-2,-3โ perform 1D, 2D or 3D mesh generation, then exit. Pick your dimension, then dip. ๐ซ-ofile โ specify output file name. Name your baby. ๐ผ-formatstring โ set output mesh format (auto,msh,msh1,msh2,msh4,unv,vrml,stl,mesh,bdf,med, ...). The...is doing a lot of work there and I respect it. ๐-binโ use binary format when available. Binary when we can, okay? ๐พ-saveallโ save all elements (discard physical group definitions). Heads up: this one discards your physical group definitions, so know that going in. ๐ญ-algostring โ select mesh algorithm (meshadapt,del2d,front2d,del3d,front3d,hxt, ...). So many algorithms, so little time. ๐ฅ-parametricโ save nodes with their parametric coordinates. Extra coordinates, extra slay. ๐-partint โ partition the mesh after batch mesh generation. Dividing the work, queen behavior. ๐ฏ-smoothint โ set number of mesh smoothing steps. Glow-up, but for elements. โจ-orderint โ set mesh order. Level up. ๐-clscalefloat โ set global mesh element size scaling factor. Everything, scaled. ๐-clminfloat โ set minimum mesh element size. The floor. ๐ง-clmaxfloat โ set maximum mesh element size. The ceiling. โ๏ธ-randfloat โ set random perturbation factor. A lil chaos, as a treat. ๐ฒ-bgmfile โ load the post-processing view in file as the current background mesh. Background mesh? Loaded. ๐ผ๏ธ-checkโ perform various consistency checks on mesh. Bestie check-in, but for your mesh. ๐
๐ POST-PROCESSING OPTIONS ๐
-combineโ combine input views into multi-time-step ones. Multiple views walking in as one. Fusion dance. ๐บ
๐ธ DISPLAY OPTIONS ๐ธ
The aesthetic section. Obviously my favorite. ๐
-nโ hide all meshes and post-processing views on startup. Minimalism on launch. ๐ซง-fontsizeint โ specify the font size for the GUI. Typography is a personality trait. ๐ค-displaystring โ specify display. You pick the screen, bestie. ๐ฅ๏ธ
โญ OTHER OPTIONS โญ
The everything-else drawer. It's full. We love it. ๐
-โ parse input files, then exit. Just a lil dash. Mighty though. ๐ฅข-newโ create new model before merge next file. Fresh start, new model, new me. ๐ฑ-mergeโ merge next files. Bringing the files together like a friend group. ๐ซ-openโ open next files. ๐ชโจ-a,-g,-m,-s,-pโ start in automatic, geometry, mesh, solver or post-processing mode. Choose your starting era. ๐-pidโ print pid on stdout. Numbers on the screen, very demure. ๐ข-listenstring โ always listen to incoming connection requests on the given socket (a default socket is used if not specified). She's listening. She's always listening. ๐-vint โ set verbosity level. How much do you want her to talk? ๐ฃ๏ธ-nopopupโ don't popup dialog windows in scripts. No popups, no jumpscares. ๐-setnumbername value โ set constant numbername=value. ๐งฎ-setstringname value โ set constant stringname=value. ๐ค-stringstring โ parse option string at startup. ๐-optionfile โ parse option file at startup. ๐-convertfiles โ Convert files into latest binary formats, then exit. Glow-up to the newest binary format, then leave. ๐ซ-versionโ show version number. Who are you? ๐-infoโ show detailed version information. Who are you, in detail? ๐-helpโ show help message. The classic. We stan a helpful queen. ๐
๐ซถ AUTHORS ๐ซถ
Christophe Geuzaine (cgeuzaine@uliege.be) and Jean-Francois Remacle (jean-francois.remacle@uclouvain.be).
Legends. Both of them. Building all of this. ๐
๐ SEE ALSO ๐
getdp(1)- Gmsh examples (
/usr/share/doc/gmsh) - Gmsh homepage (
https://gmsh.info)
And okay, important one, no skipping: the full documentation for Gmsh is maintained as a Texinfo manual. If the info and gmsh programs are properly installed at your site, this command
info gmsh
should give you access to the complete manual. So if you want the deep lore, that's where the deep lore lives. ๐โจ
Lowkey the most important takeaway: every flag on this page is real, every default is real, and every "discard" or "hide" actually does what it says. Don't be cute with -saveall unless you meant it. ๐ญ
That's the whole page, bestie โ brought to you by the 4th Berkeley Distribution, dated 3 July 2025, filed under Gmsh(1). Now go mesh something iconic. ๐ ๐๐ฆ
๐ฆ where this page comes from
- fedora 43: gmsh-common 4.14.1-2.fc43 ยท GPL-2.0-or-later WITH Gmsh-exception AND MIT
- fedora 44: gmsh-common 4.15.0-3.fc44 ยท GPL-2.0-or-later WITH Gmsh-exception AND MIT
- nixos 26.05: gmsh 4.15.0
- nixpkgs unstable: gmsh 4.15.2
- ubuntu resolute: gmsh 4.14.0+ds1-1build4 ยท GPL-2.0-or-later WITH Gmsh exception
- ubuntu stonking: gmsh 4.15.2+ds1-1 ยท GPL-2.0-or-later WITH Gmsh exception
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms