<div dir="ltr"><div>Thank you,</div><div><br></div><div>That resolves the issue.</div><div><br></div><div>Juan</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 20, 2019 at 8:22 AM Christophe Geuzaine <<a href="mailto:cgeuzaine@uliege.be">cgeuzaine@uliege.be</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Hi Juan,<br>
<br>
Removing the line:<br>
<br>
Mesh.RandomFactor=1e-5; /*perturbation*/<br>
<br>
seems to fix the issue.<br>
<br>
Christophe<br>
<br>
<br>
<br>
> On 19 Aug 2019, at 02:16, Juan Sanchez <<a href="mailto:juan.e.sanchez@gmail.com" target="_blank">juan.e.sanchez@gmail.com</a>> wrote:<br>
> <br>
> I am trying to use a background mesh for refinement of my 2d structure.  The 2 bad triangles have a gamma of zero. <br>
> <br>
> in this figure:<br>
> <br>
> <image.png><br>
> They are formed by nodes:<br>
> element: 44333 nodes: 425 426 424<br>
> element: 44334 nodes: 426 427 424<br>
> <br>
> which results in two overlapping flat triangles.<br>
> <br>
> 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>
> <br>
> I am using the latest Gmsh on macOS:<br>
> 4.4.1<br>
> <br>
> The command used is:<br>
> gmsh -2 -format 'msh2' -bgm ./bgmesh.pos  gmsh_mos2d.geo<br>
> <br>
> The files are here:<br>
> <a href="https://github.com/devsim/devsim_misc/blob/master/refinement/gmsh_mos2d.geo" rel="noreferrer" target="_blank">https://github.com/devsim/devsim_misc/blob/master/refinement/gmsh_mos2d.geo</a><br>
> <a href="https://github.com/devsim/devsim_misc/blob/master/refinement/bgmesh.pos" rel="noreferrer" target="_blank">https://github.com/devsim/devsim_misc/blob/master/refinement/bgmesh.pos</a><br>
> <br>
> and the output is here:<br>
> <a href="https://github.com/devsim/devsim_misc/blob/master/refinement/gmsh_mos2d.msh" rel="noreferrer" target="_blank">https://github.com/devsim/devsim_misc/blob/master/refinement/gmsh_mos2d.msh</a><br>
> <br>
> Regards,<br>
> <br>
> Juan<br>
> <br>
> <br>
> <br>
> _______________________________________________<br>
> gmsh mailing list<br>
> <a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a><br>
> <a href="http://onelab.info/mailman/listinfo/gmsh" rel="noreferrer" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a><br>
<br>
— <br>
Prof. Christophe Geuzaine<br>
University of Liege, Electrical Engineering and Computer Science <br>
<a href="http://www.montefiore.ulg.ac.be/~geuzaine" rel="noreferrer" target="_blank">http://www.montefiore.ulg.ac.be/~geuzaine</a><br>
<br>
<br>
<br>
</blockquote></div></div>