Gmsh(1)

๐Ÿ“ฆ
version 4.15.2 ยท 4 versions
, in fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu resolute, ubuntu stonking

๐ŸŒธ 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 (.geo files) ๐Ÿ“
  • 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. ๐Ÿšช
  • -tol float โ€” 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. ๐Ÿ’ซ
  • -o file โ€” specify output file name. Name your baby. ๐Ÿผ
  • -format string โ€” 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. ๐Ÿ˜ญ
  • -algo string โ€” 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. ๐Ÿ“
  • -part int โ€” partition the mesh after batch mesh generation. Dividing the work, queen behavior. ๐Ÿ‘ฏ
  • -smooth int โ€” set number of mesh smoothing steps. Glow-up, but for elements. โœจ
  • -order int โ€” set mesh order. Level up. ๐Ÿ“ˆ
  • -clscale float โ€” set global mesh element size scaling factor. Everything, scaled. ๐ŸŒ
  • -clmin float โ€” set minimum mesh element size. The floor. ๐ŸงŠ
  • -clmax float โ€” set maximum mesh element size. The ceiling. โ˜๏ธ
  • -rand float โ€” set random perturbation factor. A lil chaos, as a treat. ๐ŸŽฒ
  • -bgm file โ€” 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. ๐Ÿซง
  • -fontsize int โ€” specify the font size for the GUI. Typography is a personality trait. ๐Ÿ”ค
  • -display string โ€” 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. ๐Ÿ”ข
  • -listen string โ€” 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. ๐Ÿ‘‚
  • -v int โ€” set verbosity level. How much do you want her to talk? ๐Ÿ—ฃ๏ธ
  • -nopopup โ€” don't popup dialog windows in scripts. No popups, no jumpscares. ๐Ÿ™…
  • -setnumber name value โ€” set constant number name=value. ๐Ÿงฎ
  • -setstring name value โ€” set constant string name=value. ๐Ÿ”ค
  • -string string โ€” parse option string at startup. ๐ŸŒŸ
  • -option file โ€” parse option file at startup. ๐Ÿ“‚
  • -convert files โ€” 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 ๐Ÿ”—

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