# Mesh refinement of edges with gmsh

**URL:** <https://prepomax.discourse.group/t/mesh-refinement-of-edges-with-gmsh/1378>\
**Category:** Feature Requests\
**Created:** [January 2, 2024, 4:38pm UTC](https://prepomax.discourse.group/t/mesh-refinement-of-edges-with-gmsh/1378 "2024-01-02T16:38:54Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![Gunnar](https://avatars.discourse-cdn.com/v4/letter/g/ed655f/32.png) [@Gunnar](https://prepomax.discourse.group/u/Gunnar)\
**Post date:** [January 13, 2024, 9:36am UTC](https://prepomax.discourse.group/t/mesh-refinement-of-edges-with-gmsh/1378/21 "2024-01-13T09:36:08Z")

</div>

> [@Matej](#):
>
> split all of them in 180° patches. Maybe even at the import of the geometry. Or are there any drawbacks? Maybe the creation of small edges or faces when other geometry is nearby.

I found this. Femap has this splitting automatism when importing geometry. But then also recombining options to remove this surface-fragments are needed.  
A union/unsplit function would be useful anyway (in Salome this can be done with “Union Faces”). But i don’t think it’s possible with gmsh…

 ![02](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/2/2df8a599e800c7db87e2d8e131287589f467f3fb.png)

 ![01](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/0/012e454e62877f990297d3df14980e4ec1bb07a8.png)

> [@Matej](#):
>
> It happens, that the mesh on the common surface for one compound is oriented differently than for the other compound. The nodes coincide but the element edges do not. So I tried to fix this using the correct orientation but failed to find a solution and I left it to Left.

^ Just for info, even Femap seems to be unable to maintain the orientation of the element-pattern at splitted face edges:

 ![03](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/0/0a75dca6f5b41e50fec6c5e6f34f29da426c36cc.png)

---

<div class="post-metadata">

**Author:** ![Gunnar](https://avatars.discourse-cdn.com/v4/letter/g/ed655f/32.png) [@Gunnar](https://prepomax.discourse.group/u/Gunnar)\
**Post date:** [January 14, 2024, 10:29am UTC](https://prepomax.discourse.group/t/mesh-refinement-of-edges-with-gmsh/1378/22 "2024-01-14T10:29:26Z")

</div>

In prepomax “transfinite faces” can only be selected for the whole part. Often this leads to distort elements at the borders. It would be nice if this option could also be integrated like in gmsh, for selected surfaces only, as a further refinement option for more even transitions and to “break up” these mapping.

 ![01](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/1/14c781e7135db22444a6f4d50e51245aeeb67c91.png)

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [January 14, 2024, 2:24pm UTC](https://prepomax.discourse.group/t/mesh-refinement-of-edges-with-gmsh/1378/23 "2024-01-14T14:24:05Z")

</div>

Yes, I also had such problems, so there is a plan to add surface-based transfinite definitions.

---

<div class="post-metadata">

**Author:** ![jbr](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@jbr](https://prepomax.discourse.group/u/jbr)\
**Post date:** [February 24, 2024, 9:54pm UTC](https://prepomax.discourse.group/t/mesh-refinement-of-edges-with-gmsh/1378/24 "2024-02-24T21:54:21Z")

</div>

> [@Gunnar](#):
>
> formulation from the GNU license

I think it goes beyond GNU licenses but more from a legal perspective. They will spend most of their time in court if they don’t put that disclaimer or go out of business.

---

<div class="post-metadata">

**Author:** ![Gunnar](https://avatars.discourse-cdn.com/v4/letter/g/ed655f/32.png) [@Gunnar](https://prepomax.discourse.group/u/Gunnar)\
**Post date:** [March 23, 2024, 5:14pm UTC](https://prepomax.discourse.group/t/mesh-refinement-of-edges-with-gmsh/1378/25 "2024-03-23T17:14:57Z")

</div>

> [@Matej](#):
>
> there is a plan to add surface-based transfinite definitions

this with the option to combine them into pyramids would be worth it (although they aren’t officially supported yet).  
For this simple example (meshed in salome), the pyramids show similar smooth stress distribution to hexas in the contact zone - obviously because of the same quadratic element faces. I think this would be particularly interesting in combination with calculix, where it’s sometime hard to avoid spot stress distribution with tets in these region (even with “transfinite” definition and coincident nodes on master+slave surface).

 ![1](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/6/6547cc212b9ffa9c68ab0cd219629a7f4d594b30.png)

Because code aster also supports pyramids, i wanted to compare the results between ca and ccx.  
Comparison with a finer mesh, contact + elastic material (singularity detected):

 ![2](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/c/c9682cd592b92a6cd7770d8c0483abb660ae1e30.jpeg)

including plasticity:

 ![3](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/3/3e62feda02a39606433ce312a2a63d6a1da5c690.jpeg)

---

<div class="post-metadata">

**Author:** ![synt](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/synt/32/4658_2.png) [@synt](https://prepomax.discourse.group/u/synt)\
**Post date:** [March 23, 2024, 9:01pm UTC](https://prepomax.discourse.group/t/mesh-refinement-of-edges-with-gmsh/1378/26 "2024-03-23T21:01:55Z")

</div>

it seems using Gmsh transfinite without recombination need some notify to attention, these pattern is not working well even for simple problem as below. The problem can be exaggerated in contact analysis, uneven in stiffness and stress distribution.

 ![2024-03-24 03_53_40-](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/e/eafdd3131398a41b0e6536c032baa2f444427060.png)

 ![2024-03-24 03_47_04-](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/b/be166d161b14094a92d410f3d1d08e5de7578fff.png)

---

<div class="post-metadata">

**Author:** ![synt](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/synt/32/4658_2.png) [@synt](https://prepomax.discourse.group/u/synt)\
**Post date:** [March 24, 2024, 12:41pm UTC](https://prepomax.discourse.group/t/mesh-refinement-of-edges-with-gmsh/1378/27 "2024-03-24T12:41:58Z")

</div>

> [@jbr](#):
>
> I think it goes beyond GNU licenses but more from a legal perspective. They will spend most of their time in court if they don’t put that disclaimer or go out of business.

indeed, like many vehicles selling i.e bicycle, motorcycle & car or industrial tools even weapons. No company or distributor took responsible for any accident or misuse. But they give effort continuously to improve whenever possible as it can be. Tools just like any other tool highly depend on user first, some advanced feature available another side have limitation.

in my personal opinions, all GPL software exist are invaluable gift to anyone interested. I can remember how hard and restricted in accessing even for limited version of FEA software in the past.

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [June 3, 2024, 6:18am UTC](https://prepomax.discourse.group/t/mesh-refinement-of-edges-with-gmsh/1378/28 "2024-06-03T06:18:31Z")

</div>

Closed on June 3, 2024, 6:18am UTC



[Previous page](https://prepomax.discourse.group/t/mesh-refinement-of-edges-with-gmsh/1378.md?page=1)
