MMG3D(1)
π MMG3D π
okay bestie, so this is the page for mmg3d, and it lives in the General Commands Manual β section 1, no cap. it's giving mesh wizardry, and i'm gonna walk you through every single flag so you don't have to squint at it alone π«Ά
β¨ NAME β¨
mmg3d β adaptation and optimization of a tetrahedral mesh and implicit domain meshing. that's the whole pitch, short and iconic π
π¦ SYNOPSIS π¦
mmg3d β¨mesh_fileβ© [output_file] [-sol β¨solution_fileβ©]
[-met β¨metric_fileβ©] [-h] [-v] [-m β¨nβ©] [-d] [-val] [-default]
[-A] [-ar β¨xβ© | -nr] [-hmin β¨xβ©] [-hmax β¨xβ©] [-hsiz β¨xβ©]
[-hausd β¨xβ©] [-hgrad β¨xβ©] [-hgradreq β¨xβ©] [-rmc x] [-opnbdy]
[-lag β¨nβ©] [-ls x] [-lssurf x] [-nofem] [-noinsert] [-nomove]
[-noswap] [-nosurf] [-nosizreq] [-nreg] [-xreg] [-nsd] [-optim]
[-optimLES] [-octree β¨nβ©] [-rn β¨nβ©]
πΈ DESCRIPTION πΈ
the mmg3d application is dedicated to tetrahedral remeshing. and not just one mesh β both the surface mesh and the volume mesh get modified. equal opportunity glow-up β¨
by default it performs mesh modifications in order to control the surface approximation. that's the out-of-the-box behaviour, no extra input needed.
hand it a metric file and it adapts the mesh to the prescribed sizes at nodes. very "i have opinions about your edge lengths" of it π
without a metric file, the -optim option lets it improve the mesh quality with respect to the initial mesh size. and the -optimLES option? that one improves strongly the isotropic mesh quality for LES simulations. main character energy fr fr π₯
now, if you give it a level-set file containing the values of the level-set function at the mesh nodes, the -ls option lets you explicitly mesh an implicit domain, and -lssurf splits mesh boundaries on a provided isovalue. so many doors opening π
and if you provide a displacement file, -lag applies a lagrangian displacement to boundary mesh nodes. wig. π«
π COMMAND LINE ARGUMENTS π
1. Generic options
-hβ print help. your safety net when you're lost π-v β¨nβ©β tune level of verbosity. takes values between-1and10.-m β¨nβ©β set maximal memory size tonMBytes.-dβ turn on debug mode. bring a snack, it's chatty π-defaultβ write a local parameter file (with extension.mmg3d) with setted values.-valβ print the default parameters values.
2. File specifications
-in β¨mesh_fileβ©β input triangulation.-out β¨output_fileβ©β output triangulation.-sol β¨solution_fileβ©β load metric, displacement or level-set file.-met β¨metric_fileβ©β load metric file in level-set mode.
3. Mode specifications (default is mesh adaptation)
-lag β¨nβ©β Lagrangian mesh displacement according to mode0(n=0),1(n=1) or2(n=2). this option is only available with theUSE_ELAScompilation flag. theLinearElasticitylibrary must be founded to activate this flag. no flag, no vibes, sorry π-ls xβ create mesh of isovaluex(0.0ifxis not provided).-lssurf xβ split boundary mesh on isovaluex(0.0ifxis not provided).
4. Parameters
-Aβ enable anisotropy (without metric file).-ar β¨xβ©|-nrβ threshold for angle detection, or sharp features detection disabling.-hmin β¨xβ©β minimal mesh size.-hmax β¨xβ©β maximal mesh size.-hsiz β¨xβ©β constant mesh size.-hausd β¨xβ©β control the Hausdorff distance between the surface mesh and the underlying surface geometry.-hgrad β¨xβ©β control the gradation.-hgradreq β¨xβ©β control the gradation from required entities toward others.-rmc xβ remove componants whose volumic fraction is less thanx(1.e-5ifxis not provided) of the whole mesh volume (level-set mode).-opnbdyβ preserve input triangles at the interface of two domains of the same reference.-nofemβ do not force Mmg to create a finite element mesh.-noinsertβ no point insertion/deletion.-nomoveβ no point relocation.-nosurfβ no surface modifications.-noswapβ no edge or face flipping.-nosizreqβ no imposition of the size of required edges over required vertices.-nregβ normal regularization using laplacian - antilaplacian smoothing.-xregβ vertex coordinates regularization using laplacian - antilaplacian smoothing.-nsd β¨nβ©β save the subdomain of indexn(default isn=0which save all subdomains).-octree β¨nβ©β specify the maximal number of point per octree cell (only available without thePATTERNcompilation flag).-optimβ mesh improvement with respect to the initial mesh size.-optimLESβ strong isotropic mesh optimization for LES computations.-rn β¨nβ©β turn on (n=1) or off (n=0) the renumbering using theSCOTCHlibrary (only available with theUSE_SCOTCHcompilation flag and if the scotch library is founded).
π RETURN VALUES π
mmg3d returns:
- the
0value if successful; π - the
1value if the process fail but can save a conform mesh; - the
2value if the process fail and can't save a comform mesh. π
π SEE ALSO π
mmgs(1) mmg2d(1) β go say hi to the siblings, they're family π«Ά
and that's the whole page, bestie!! this one's the mmg3d page, version/date stamped May 04, 2015, footer label MMG3D(1) β the mmg3d tool, dated May 04, 2015, tagged MMG3D(1). go forth and remesh, you absolute icon π
β¨πΈ
π¦ where this page comes from
- fedora 43: mmg3d 5.8.0-3.fc43 Β· LGPL-3.0-or-later
- fedora 43: mmg3d 5.8.0-3.fc43 Β· LGPL-3.0-or-later
- fedora 44: mmg3d 5.8.0-4.fc44 Β· LGPL-3.0-or-later
- fedora 44: mmg3d 5.8.0-4.fc44 Β· LGPL-3.0-or-later
- nixpkgs unstable: mmg 5.8.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms