<div dir="ltr"><div><div><div><div>Hello GMSH users,<br><br></div>I have a problem regarding the use of the BoundaryLayer feature in gmsh for a 2D mesh.<br>I have tried to create a boundary layer mesh around a square and use the FanNodesLists option to get a fan around the corners. However this creates additional quad-cells for some parts of the fan and thus, I get triangular cells with a really bad aspect ratio just beyond the boundary layer (see picture attached). The same problem arises when trying to mesh the Boundary Layer around an airfoil at the TE (see picture).<br>
<br></div>The code for the square:<br>// Gmsh project created on Fri May 16 14:29:34 2014<br>Point(1) = {-4, -4, 0, 1.0};<br>Point(2) = {-4, 4, 0, 1.0};<br>Point(3) = {4, 4, 0, 1.0};<br>Point(4) = {4, -4, 0, 1.0};<br><br>
Point(5) = {-1, -1, 0, 0.1};<br>Point(6) = {1, -1, 0, 0.1};<br>Point(7) = {1, 1, 0, 0.1};<br>Point(8) = {-1, 1, 0, 0.1};<br><br>Line(1) = {1, 2};<br>Line(2) = {2, 3};<br>Line(3) = {3, 4};<br>Line(4) = {4, 1};<br>Line(5) = {5, 6};<br>
Line(6) = {6, 7};<br>Line(7) = {7, 8};<br>Line(8) = {8, 5};<br>Line Loop(9) = {1, 2, 3, 4};<br>Line Loop(10) = {6, 7, 8, 5};<br><br>Plane Surface(11) = {9, 10};<br><br>Field[1] = BoundaryLayer;<br>Field[1].EdgesList = {5,6,7,8};<br>
//Field[1].NodesList = {5,6,7,8};<br>Field[1].FanNodesList = {5,6,7,8};<br>Field[1].hfar = 0.05;<br>Field[1].hwall_n = 0.001;<br>Field[1].hwall_t = 0.003;<br>Field[1].ratio = 1.1;<br>Field[1].thickness = 0.01;<br>Field[1].Quads = 1;<br>
BoundaryLayer Field = 1;<br><br></div>Any help would be extremely welcome.<br><br></div>Regards,<br><div><div><div><div><div><br clear="all"><div><div dir="ltr">Nguyen Anh Khoa DOAN<div>Last year dual degree student - Université Libre de Bruxelles - SUPAERO</div>
<div>Aerospace Engineering - Major: Propulsion & Complex Systems and Simulation</div></div></div>
</div></div></div></div></div></div>