# Uncategorized

**URL:** https://forum.mmgtools.org/c/uncategorized/1.md

[Latest](https://forum.mmgtools.org/latest.md) · [Categories](https://forum.mmgtools.org/categories.md)

---

## [MMG3D Lagrangian motion: cannot maintain body shape](https://forum.mmgtools.org/t/mmg3d-lagrangian-motion-cannot-maintain-body-shape/354)

<div class="topic-metadata">

**Author:** [@Jay](https://forum.mmgtools.org/u/Jay)\
**Replies:** 23\
**Last updated:** [January 22, 2026, 8:01am UTC](https://forum.mmgtools.org/t/mmg3d-lagrangian-motion-cannot-maintain-body-shape/354 "2026-01-22T08:01:23Z")

</div>

Hi all, I found the body surface triangles are CHANGED by the MMG3D during motion, although I have used Required/nosurf etc API functions to prevent the body surface from touching. Any suggestion? Below is the resulted …

---

## [2d meshing and domain selection](https://forum.mmgtools.org/t/2d-meshing-and-domain-selection/902)

<div class="topic-metadata">

**Author:** [@gbettega](https://forum.mmgtools.org/u/gbettega)\
**Replies:** 3\
**Last updated:** [July 3, 2025, 3:18pm UTC](https://forum.mmgtools.org/t/2d-meshing-and-domain-selection/902 "2025-07-03T15:18:44Z")

</div>

Hello, I would like to discretize the top face “T” shown in the picture: a ring, only the top face, using mmg2D After discretizing the two edges of the ring the “outer” and “inner” boundaries of the ring are the one…

---

## [Prismatic mesh - handling pyramids](https://forum.mmgtools.org/t/prismatic-mesh-handling-pyramids/843)

<div class="topic-metadata">

**Author:** [@gbettega](https://forum.mmgtools.org/u/gbettega)\
**Replies:** 1\
**Last updated:** [February 11, 2025, 4:24pm UTC](https://forum.mmgtools.org/t/prismatic-mesh-handling-pyramids/843 "2025-02-11T16:24:35Z")

</div>

Hello, I generated a prismatic mesh from a surface mesh patch. Not all the elements are prisms (the major part is): the algorithm generates a small number of tets and pyramids, as usual. Once (quasi) prismatic mesh is…

---

## [Smoothening interior boundaries - 3D microstructures](https://forum.mmgtools.org/t/smoothening-interior-boundaries-3d-microstructures/772)

<div class="topic-metadata">

**Author:** [@pgnikhil](https://forum.mmgtools.org/u/pgnikhil)\
**Replies:** 0\
**Last updated:** [October 28, 2023, 2:42pm UTC](https://forum.mmgtools.org/t/smoothening-interior-boundaries-3d-microstructures/772 "2023-10-28T14:42:43Z")

</div>

Hi all, I am trying to smoothen out irregular zigzag patterns that come from meshing voxel-based microstructure domains. For instance, the input mesh I am attaching is the following: I want to smoothen the zigzags t…

---

## [How to generate .egads geometry file?](https://forum.mmgtools.org/t/how-to-generate-egads-geometry-file/770)

<div class="topic-metadata">

**Author:** [@Sakthivel\_M](https://forum.mmgtools.org/u/Sakthivel_M)\
**Replies:** 0\
**Last updated:** [October 20, 2023, 5:01am UTC](https://forum.mmgtools.org/t/how-to-generate-egads-geometry-file/770 "2023-10-20T05:01:19Z")

</div>

Hello, I am post-doctoral researcher from India. I am working on grid adaptation for hypersonic flows. I am using SU2 for CFD simulations and MMG for mesh adaptation. I need a geometry file in (.egads) format to define t…

---

## [Fine volumetric mesh close to the sphere enclosed within a cube and coarse mesh away from the sphere](https://forum.mmgtools.org/t/fine-volumetric-mesh-close-to-the-sphere-enclosed-within-a-cube-and-coarse-mesh-away-from-the-sphere/762)

<div class="topic-metadata">

**Author:** [@sai](https://forum.mmgtools.org/u/sai)\
**Replies:** 0\
**Last updated:** [September 24, 2023, 2:03pm UTC](https://forum.mmgtools.org/t/fine-volumetric-mesh-close-to-the-sphere-enclosed-within-a-cube-and-coarse-mesh-away-from-the-sphere/762 "2023-09-24T14:03:07Z")

</div>

I have a sphere which is enclosed within a cube and I want a fine volumetric mesh close to this sphere and as I move away from the sphere the mesh should coarsen. Here is the snip from the GMSH and I would like to have …

---

## [Please remove my forum account](https://forum.mmgtools.org/t/please-remove-my-forum-account/751)

<div class="topic-metadata">

**Author:** [@hiru](https://forum.mmgtools.org/u/hiru)\
**Replies:** 1\
**Last updated:** [August 21, 2023, 8:56am UTC](https://forum.mmgtools.org/t/please-remove-my-forum-account/751 "2023-08-21T08:56:45Z")

</div>

And please have a way for users to do this themselves.

---

## [MMG Tools available on PyPi](https://forum.mmgtools.org/t/mmg-tools-available-on-pypi/722)

<div class="topic-metadata">

**Author:** [@gnikit](https://forum.mmgtools.org/u/gnikit)\
**Replies:** 0\
**Last updated:** [May 8, 2023, 2:51pm UTC](https://forum.mmgtools.org/t/mmg-tools-available-on-pypi/722 "2023-05-08T14:51:17Z")

</div>

Hi All, I have just release a Python packaged version of MMG tools as binaries through PyPi - pymmg. This is effectively a wrapper around mmgs, mmg2d and mmg3d and the meshio to allow for multiple formats as inputs/outp…

---

## [Mesh of non manifold solids](https://forum.mmgtools.org/t/mesh-of-non-manifold-solids/706)

<div class="topic-metadata">

**Author:** [@gbettega](https://forum.mmgtools.org/u/gbettega)\
**Replies:** 2\
**Last updated:** [March 13, 2023, 6:41pm UTC](https://forum.mmgtools.org/t/mesh-of-non-manifold-solids/706 "2023-03-13T18:41:00Z")

</div>

Hello forum consider the case of a non manifold solid, made of two cubes sharing a portion of a face. See Fig. 1. Let the shared face, for simplicity, be a square. See Fig. 2. If I mesh the initial non manifold soli…

---

## [What does the function MMG2D\_bdryenforcement() do？](https://forum.mmgtools.org/t/what-does-the-function-mmg2d-bdryenforcement-do/677)

<div class="topic-metadata">

**Author:** [@CYC](https://forum.mmgtools.org/u/CYC)\
**Replies:** 1\
**Last updated:** [November 21, 2022, 9:31am UTC](https://forum.mmgtools.org/t/what-does-the-function-mmg2d-bdryenforcement-do/677 "2022-11-21T09:31:04Z")

</div>

I can not understand the function MMG2D\_bdryenforcement(MMG5\_pMesh mesh, MMG5\_pSol sol) very well。Can someone tell me what algorithms this function refers to, and do you have any corresponding information?Thank you in a…

---

## [What does the function MMG2D\_boulet() do？](https://forum.mmgtools.org/t/what-does-the-function-mmg2d-boulet-do/676)

<div class="topic-metadata">

**Author:** [@CYC](https://forum.mmgtools.org/u/CYC)\
**Replies:** 1\
**Last updated:** [November 21, 2022, 9:26am UTC](https://forum.mmgtools.org/t/what-does-the-function-mmg2d-boulet-do/676 "2022-11-21T09:26:01Z")

</div>

The function MMG2D\_boulet(MMG5\_pMesh mesh,int start,int8\_t ip,int \*list) in the file boulep\_2d.c confuses me。 Can anyone explain what this function means and why this function is used? Please！

---

## [What does the Ref mean?](https://forum.mmgtools.org/t/what-does-the-ref-mean/673)

<div class="topic-metadata">

**Author:** [@CYC](https://forum.mmgtools.org/u/CYC)\
**Replies:** 2\
**Last updated:** [November 21, 2022, 8:56am UTC](https://forum.mmgtools.org/t/what-does-the-ref-mean/673 "2022-11-21T08:56:58Z")

</div>

I’ve seen a variable called ref in some classes like MMG5\_Edge、 MMG5\_Tria。I also find it in the .mesh format。Excuse me, what does ref stand for?

---

## [How does mmg2d use the metric field?](https://forum.mmgtools.org/t/how-does-mmg2d-use-the-metric-field/644)

<div class="topic-metadata">

**Author:** [@arthurbawin](https://forum.mmgtools.org/u/arthurbawin)\
**Replies:** 1\
**Last updated:** [August 16, 2022, 12:25pm UTC](https://forum.mmgtools.org/t/how-does-mmg2d-use-the-metric-field/644 "2022-08-16T12:25:42Z")

</div>

Hello! First of all, thank you for this awesome library and all the hard work behind it! It’s greatly appreciated! I am working on curved mesh generation in 2D, and I use mmg2d in my current pipeline. I was wondering h…

---

## [Doing 3D shape optimization with mmg3d](https://forum.mmgtools.org/t/doing-3d-shape-optimization-with-mmg3d/632)

<div class="topic-metadata">

**Author:** [@zcwang6](https://forum.mmgtools.org/u/zcwang6)\
**Replies:** 2\
**Last updated:** [June 9, 2022, 4:58pm UTC](https://forum.mmgtools.org/t/doing-3d-shape-optimization-with-mmg3d/632 "2022-06-09T16:58:22Z")

</div>

Hello, thanks for bring this fantastic platform. I currently have a question about moving the 3D mesh only on the boundary. In 2D case, I am using Freefem adaptmesh : Th = adaptmesh(Th,\[ux,uy\],hmin=0.1,hmax=0.1); where u…

---

## [Preservation of Mesh surface during implicit meshing](https://forum.mmgtools.org/t/preservation-of-mesh-surface-during-implicit-meshing/615)

<div class="topic-metadata">

**Author:** [@Salah](https://forum.mmgtools.org/u/Salah)\
**Replies:** 5\
**Last updated:** [May 2, 2022, 7:23am UTC](https://forum.mmgtools.org/t/preservation-of-mesh-surface-during-implicit-meshing/615 "2022-05-02T07:23:17Z")

</div>

Hello mmg community, First of all, thank you so much for all your efforts rendering the task of creating complex geometries soooo easy!! I have a question regarding implicit meshing, that hopefully you can help me with…

---

## [Tetrahedral mesh as required and Pass variables carried by nodes during grid processing](https://forum.mmgtools.org/t/tetrahedral-mesh-as-required-and-pass-variables-carried-by-nodes-during-grid-processing/599)

<div class="topic-metadata">

**Author:** [@zhaoyan](https://forum.mmgtools.org/u/zhaoyan)\
**Replies:** 1\
**Last updated:** [January 7, 2022, 9:49am UTC](https://forum.mmgtools.org/t/tetrahedral-mesh-as-required-and-pass-variables-carried-by-nodes-during-grid-processing/599 "2022-01-07T09:49:32Z")

</div>

Dear developers, Recently, I try to apply MMG in the following two aspects: 1. Refine any tetrahedral mesh on demand; 2. In the process of tetrahedral mesh adaption, passing variables carried by mesh nodes. …

---

## [Mmg3d surface tag](https://forum.mmgtools.org/t/mmg3d-surface-tag/571)

<div class="topic-metadata">

**Author:** [@mrbenson75](https://forum.mmgtools.org/u/mrbenson75)\
**Replies:** 3\
**Last updated:** [September 28, 2021, 7:31pm UTC](https://forum.mmgtools.org/t/mmg3d-surface-tag/571 "2021-09-28T19:31:07Z")

</div>

Hi, With mmg3d I noticed the tetra element tags seems to be ok but the triangle element tags are differents from the input to the output mesh file, is that normal ? Best regards.

---

## [Compile problem](https://forum.mmgtools.org/t/compile-problem/567)

<div class="topic-metadata">

**Author:** [@zcwang6](https://forum.mmgtools.org/u/zcwang6)\
**Replies:** 2\
**Last updated:** [September 24, 2021, 4:26pm UTC](https://forum.mmgtools.org/t/compile-problem/567 "2021-09-24T16:26:21Z")

</div>

Hey there, thx for providing such a nice tool; I got a problem where I am trying to install mmg with libElas; I installed the elas lib and the cmake of mmg could be able to detect it, but when I call the mmg2d-o3 it is f…

---

## [How to obtain global vertex ID after running parmmg](https://forum.mmgtools.org/t/how-to-obtain-global-vertex-id-after-running-parmmg/562)

<div class="topic-metadata">

**Author:** [@dekelschot](https://forum.mmgtools.org/u/dekelschot)\
**Replies:** 1\
**Last updated:** [August 11, 2021, 9:20am UTC](https://forum.mmgtools.org/t/how-to-obtain-global-vertex-id-after-running-parmmg/562 "2021-08-11T09:20:43Z")

</div>

I recently managed to couple our fluid solver to parmmg and I am able to obtain an adapted mesh in parallel. Currently I am working on outputting the global mesh into a single file using HDF5 such that our solver is able…

---

## [Where to find mshmet1\_3d.c](https://forum.mmgtools.org/t/where-to-find-mshmet1-3d-c/546)

<div class="topic-metadata">

**Author:** [@Karl](https://forum.mmgtools.org/u/Karl)\
**Replies:** 1\
**Last updated:** [June 12, 2021, 8:42pm UTC](https://forum.mmgtools.org/t/where-to-find-mshmet1-3d-c/546 "2021-06-12T20:42:15Z")

</div>

Dear developers and users, Since I have seen mshmet is used regularly in combination with MMG for 2D as well as 3D cases I was wondering where you procure the file mshmet1\_3d.c (required for 3D cases) since the one foun…

---

## [Second order mesh](https://forum.mmgtools.org/t/second-order-mesh/524)

<div class="topic-metadata">

**Author:** [@vryy](https://forum.mmgtools.org/u/vryy)\
**Replies:** 4\
**Last updated:** [May 17, 2021, 2:06pm UTC](https://forum.mmgtools.org/t/second-order-mesh/524 "2021-05-17T14:06:56Z")

</div>

Hello I would like to ask if there is option to generate second order FE mesh (tri6 in 2D and tet10 in 3D) automatically from MMG? Or the user has to generate manually based on edge information? Best Giang

---

## [Mmg type definition](https://forum.mmgtools.org/t/mmg-type-definition/523)

<div class="topic-metadata">

**Author:** [@vryy](https://forum.mmgtools.org/u/vryy)\
**Replies:** 1\
**Last updated:** [May 10, 2021, 8:34am UTC](https://forum.mmgtools.org/t/mmg-type-definition/523 "2021-05-10T08:34:42Z")

</div>

Hello The content of “mmg/mmg2d/libmmgtypes.h” and “mmg/mmg3d/libmmgtypes.h” are identical. Therefore the dedfinition of MMG5\_Mesh is the same in both file. Should it be merged to make a common typedef file, such as “mm…

---

## [Mmgs and quadrilateral mesh](https://forum.mmgtools.org/t/mmgs-and-quadrilateral-mesh/500)

<div class="topic-metadata">

**Author:** [@Matej](https://forum.mmgtools.org/u/Matej)\
**Replies:** 4\
**Last updated:** [January 7, 2021, 11:31am UTC](https://forum.mmgtools.org/t/mmgs-and-quadrilateral-mesh/500 "2021-01-07T11:31:51Z")

</div>

I am using mmgs version 5.5.1 and using it to remesh a mesh consisting of triangles and quadrilaterals. Everything works fine except when I try to remesh a mesh consisting of only quadrilaterals. In that case, I get an e…

---

## [Need help for mmg3d\_O3](https://forum.mmgtools.org/t/need-help-for-mmg3d-o3/490)

<div class="topic-metadata">

**Author:** [@shuaizhang](https://forum.mmgtools.org/u/shuaizhang)\
**Replies:** 1\
**Last updated:** [December 4, 2020, 7:08pm UTC](https://forum.mmgtools.org/t/need-help-for-mmg3d-o3/490 "2020-12-04T19:08:55Z")

</div>

Hi, I am new user for mmg. I am using mmg3d\_O3 to adapt my SU2 simulation. Mesh format was transferred using Meshio from SU2 format to mesh format. The Sol file was generated from a ruby script, and Mach numbers were …

---

## [How to check mesh](https://forum.mmgtools.org/t/how-to-check-mesh/487)

<div class="topic-metadata">

**Author:** [@Lily](https://forum.mmgtools.org/u/Lily)\
**Replies:** 4\
**Last updated:** [November 20, 2020, 6:50pm UTC](https://forum.mmgtools.org/t/how-to-check-mesh/487 "2020-11-20T18:50:16Z")

</div>

Dear MMG users, I’d like to know if there is an option to check the new mesh quality. For example, I’d like to know if there are bad oriented tetras and if so, re-run MMG. I’m using FreeFem++. There is the option “che…

---

## [Disabling automatic markers at nodes](https://forum.mmgtools.org/t/disabling-automatic-markers-at-nodes/484)

<div class="topic-metadata">

**Author:** [@fbasile](https://forum.mmgtools.org/u/fbasile)\
**Replies:** 3\
**Last updated:** [November 16, 2020, 6:28pm UTC](https://forum.mmgtools.org/t/disabling-automatic-markers-at-nodes/484 "2020-11-16T18:28:12Z")

</div>

Hello again, I would like to know if it is possible to prevent mmg from adding a marker to the nodes while remeshing. I need to use makers at required nodes (the fourth column in the .mesh in the section Vertices) to re…

---

## [Strong change of size between prisms and tetras](https://forum.mmgtools.org/t/strong-change-of-size-between-prisms-and-tetras/483)

<div class="topic-metadata">

**Author:** [@fbasile](https://forum.mmgtools.org/u/fbasile)\
**Replies:** 4\
**Last updated:** [November 4, 2020, 5:53pm UTC](https://forum.mmgtools.org/t/strong-change-of-size-between-prisms-and-tetras/483 "2020-11-04T17:53:26Z")

</div>

Hello, I’m working on a mixed mesh tetra/prisms/pyramids of a nozzle. Basically the prisms are the boundary layer inside the nozzle, which I want to be preserved, and the rest of the domain is tetra. I provide MMG an i…

---

## [Handling pyramids in mmg3d](https://forum.mmgtools.org/t/handling-pyramids-in-mmg3d/477)

<div class="topic-metadata">

**Author:** [@fbasile](https://forum.mmgtools.org/u/fbasile)\
**Replies:** 3\
**Last updated:** [October 26, 2020, 7:15am UTC](https://forum.mmgtools.org/t/handling-pyramids-in-mmg3d/477 "2020-10-26T07:15:16Z")

</div>

Hello Algiane, I need to perform mesh adaptation on a nozzle, which would require me to employ a prismatic boundary layer. I believe mmg3d should be able to preserve the prismatic elements. However during the mesh gener…

---

## [Option to reduce or completely hide the display in the terminal](https://forum.mmgtools.org/t/option-to-reduce-or-completely-hide-the-display-in-the-terminal/456)

<div class="topic-metadata">

**Author:** [@tky](https://forum.mmgtools.org/u/tky)\
**Replies:** 2\
**Last updated:** [July 16, 2020, 8:36am UTC](https://forum.mmgtools.org/t/option-to-reduce-or-completely-hide-the-display-in-the-terminal/456 "2020-07-16T08:36:10Z")

</div>

I’m using MMG with FreeFEM on mac OSX. What options do I have to remove the following from the terminal when I run MMG? – MMG2D, Release 5.4.3 (Feb. 26, 2020) Copyright © Bdx INP/CNRS/Inria/UPMC, 2004- Feb 26 2020 15…

---

## [Remesh with levelset and preserve bars (edges) refs](https://forum.mmgtools.org/t/remesh-with-levelset-and-preserve-bars-edges-refs/438)

<div class="topic-metadata">

**Author:** [@Felipe\_Bordeu](https://forum.mmgtools.org/u/Felipe_Bordeu)\
**Replies:** 2\
**Last updated:** [May 5, 2020, 12:05pm UTC](https://forum.mmgtools.org/t/remesh-with-levelset-and-preserve-bars-edges-refs/438 "2020-05-05T12:05:22Z")

</div>

Hello, I’m trying to remesh a domain with a level-set and keeping at the same time the refs for some object (need this for 3D 2D 1D elements) . A have a boundary condition on a edge so a taged the element with the ref 1…

[Next page](https://forum.mmgtools.org/c/uncategorized/1.md?page=1)
