[Gmsh] Bad element after background mesh refinement

Christophe Geuzaine cgeuzaine at uliege.be
Tue Aug 20 15:22:22 CEST 2019


Hi Juan,

Removing the line:

Mesh.RandomFactor=1e-5; /*perturbation*/

seems to fix the issue.

Christophe



> On 19 Aug 2019, at 02:16, Juan Sanchez <juan.e.sanchez at gmail.com> wrote:
> 
> I am trying to use a background mesh for refinement of my 2d structure.  The 2 bad triangles have a gamma of zero. 
> 
> in this figure:
> 
> <image.png>
> They are formed by nodes:
> element: 44333 nodes: 425 426 424
> element: 44334 nodes: 426 427 424
> 
> which results in two overlapping flat triangles.
> 
> Would someone know how to fix these bad elements?  My solver is unable to work with this mesh because it cannot calculate the control volume for these triangles.
> 
> I am using the latest Gmsh on macOS:
> 4.4.1
> 
> The command used is:
> gmsh -2 -format 'msh2' -bgm ./bgmesh.pos  gmsh_mos2d.geo
> 
> The files are here:
> https://github.com/devsim/devsim_misc/blob/master/refinement/gmsh_mos2d.geo
> https://github.com/devsim/devsim_misc/blob/master/refinement/bgmesh.pos
> 
> and the output is here:
> https://github.com/devsim/devsim_misc/blob/master/refinement/gmsh_mos2d.msh
> 
> Regards,
> 
> Juan
> 
> 
> 
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

— 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine






More information about the gmsh mailing list