<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">I am trying to use a background mesh for refinement of my 2d structure.  The 2 bad triangles have a gamma of zero. <div><br></div><div>in this figure:</div><div><div><br><div><img src="cid:ii_jzhn1lae1" alt="image.png" width="489" height="276"><br></div></div></div><div>They are formed by nodes:<div><div>element: 44333 nodes: 425 426 424</div><div>element: 44334 nodes: 426 427 424</div></div></div><div><br></div><div>which results in two overlapping flat triangles.</div><div><br></div><div>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.<br></div><div><br></div><div>I am using the latest Gmsh on macOS:</div><div>4.4.1</div><div><br></div><div>The command used is:</div><div><p style="margin:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.901961)"><span style="font-variant-ligatures:no-common-ligatures">gmsh -2 -format 'msh2' -bgm ./bgmesh.pos  gmsh_mos2d.geo</span></p></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div>The files are here:</div><div><a href="https://github.com/devsim/devsim_misc/blob/master/refinement/gmsh_mos2d.geo">https://github.com/devsim/devsim_misc/blob/master/refinement/gmsh_mos2d.geo</a><br></div><div><a href="https://github.com/devsim/devsim_misc/blob/master/refinement/bgmesh.pos">https://github.com/devsim/devsim_misc/blob/master/refinement/bgmesh.pos</a><br></div><div><br></div><div>and the output is here:</div><div><a href="https://github.com/devsim/devsim_misc/blob/master/refinement/gmsh_mos2d.msh">https://github.com/devsim/devsim_misc/blob/master/refinement/gmsh_mos2d.msh</a><br></div><div><br></div><div>Regards,</div><div><br></div><div>Juan</div><div><br></div><div><br></div><div><br></div></div></div></div></div></div></div></div></div></div></div></div>