<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Dear Prof. Geuzaine,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks for the response. Indeed, I just tested this using Gmsh on my Mac, and the resultant mesh runs fine.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
So it seems the problem is restricted to the workstation, which is running Linux 64-bit (red hat). I just tried instead compiling from the source code and the error persists there also unfortunately. Are you aware of anything that may cause this? It's for an
optimisation routine, so thousands of meshes are generated, so using my Mac isn't feasible unfortunately.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
In regards to the boundary layer, I was originally using the BL field directly, however ran into issues as I couldn't have a growth rate "around" the airfoil spline <span style="caret-color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important">(to
have narrower cells at leading and trailing edges)</span>, as well as perpendicular to the airfoil. Also, at the trailing edge using the fan node resulted in too small cells causing numerical errors, and without it the cells were too bad quality, also causing
errors. Using the transfinite surfaces gave me flexibility in the boundary layers, allowing two different growth rates perpendicular to the surface. With that it was running very well, until now on trying to include the blunt TE.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thank you again,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Kind Regards,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Nathan Ricks.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<span style="font-size:8pt"></span></div>
</div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Christophe Geuzaine <cgeuzaine@uliege.be><br>
<b>Sent:</b> Thursday, 11 April 2019 12:09 AM<br>
<b>To:</b> Nathan RICKS<br>
<b>Cc:</b> gmsh@onelab.info<br>
<b>Subject:</b> Re: [Gmsh] Errors when increasing NNodesByEdge on a small edge</font>
<div> </div>
</div>
<div>
<div class="x_BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="x_PlainText"><br>
<br>
> On 10 Apr 2019, at 21:57, Nathan RICKS <Nathan.James.Ricks@vub.be> wrote:<br>
> <br>
> Hi all,<br>
> <br>
> I have quite a particular problem, but I'm hoping someone can help. I'm meshing an airfoil using transfinite surfaces in the boundary layer.<br>
> <br>
> I've just had to add a blunt trailing edge (mesh was working well with sharp trailing edge) to the airfoil, and now I have this one error stopping me, and I just can't figure it out...<br>
> <br>
> When I increase the NNodesByEdge on Field[11] from 6 to 15, the mesh ends up bad quality, with cell corners not matching other cells at the boundary of surfaces, and it causes SU2 to diverge instantly. It runs fine with 6, but crashes at 15. I've attached
two images showing that it is a mesh issue causing this (nothing else is being changed in the setup).<br>
> <br>
<br>
I cannot seem to reproduce the issue on my Mac. Attached is the mesh generated on your .geo file:<br>
<br>
</div>
</span></font></div>
<div class="x_BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="x_PlainText"><br>
> Other things such as reducing lcMin on Field[12] can also make it crash for example, however the above has visible errors in the mesh.<br>
> <br>
<br>
Idem... What OS are you running on?<br>
<br>
PS: instead of generating the BL by hand, why not using the boundary layer field directly? Cf. e.g.
<br>
<br>
<a href="https://gitlab.onelab.info/gmsh/gmsh/blob/master/benchmarks/2d/naca12BL.geo">https://gitlab.onelab.info/gmsh/gmsh/blob/master/benchmarks/2d/naca12BL.geo</a><br>
<a href="https://gitlab.onelab.info/gmsh/gmsh/blob/master/benchmarks/2d/naca12_2d_trailing.geo">https://gitlab.onelab.info/gmsh/gmsh/blob/master/benchmarks/2d/naca12_2d_trailing.geo</a><br>
<br>
> Does anyone have an idea on why I can't use the Distance/Threshold field as normal on this edge?<br>
> <br>
> If you can provide any guidance that would be greatly appreciated, it's so close...! I've already tested with the latest release with the same results.<br>
> <br>
> Thanks a lot,<br>
> Kind Regards,<br>
> <br>
> Nathan Ricks<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <NNodes_15.png><NNodes_6.png><airfoil_level1.geo>_______________________________________________<br>
> gmsh mailing list<br>
> gmsh@onelab.info<br>
> <a href="http://onelab.info/mailman/listinfo/gmsh">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">http://www.montefiore.ulg.ac.be/~geuzaine</a><br>
<br>
<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>