CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Why is the boundary layer mesh failing for this gmsh mesh? (https://www.cfd-online.com/Forums/main/239530-why-boundary-layer-mesh-failing-gmsh-mesh.html)

Time4Tea November 10, 2021 11:18

Why is the boundary layer mesh failing for this gmsh mesh?
 
Hi, I am trying to mesh a 2D geometry using gmsh, with a boundary layer mesh applied to two of the edges. However, it seems to be failing, with results such as as following:



https://cloud.disroot.org/apps/files...pg&scalingup=0



The .geo file I am using is as follows:


Code:

element_size = 2.0000;
Point(1) = {0.7500, 0.0000, 0.0000, element_size};
Point(2) = {37.5000, 0.0000, 0.0000, element_size};
Point(3) = {37.5000, 40.0000, 0.0000, element_size};
Point(4) = {4.9, 40.0000, 0.0000, 0.05000};
Point(5) = {0.6, 25.448, 0.0000, 0.05000};
Point(6) = {0, 25.625, 0.0000, 0.05000};
Point(7) = {0.0000, 25.0000, 0.0000, 0.05000};
Point(8) = {0.0000, 24.7500, 0.0000, 0.2500};
Point(9) = {0.0000, 0.0000, 0.0000, 0.2500};

Line(10) = {1,2};
Line(11) = {2,3};
Line(12) = {3,4};
Line(13) = {4,5};
Circle(14) = {5,6,7};
Line(15) = {7,8};
Line(16) = {8,9};
Line(17) = {9,1};

Curve Loop(1) = {10,11,12,13,14,15,16,17};

Plane Surface(1) = {1};

//Boundary Layer
Field[1] = BoundaryLayer;
Field[1].AnisoMax = 1000;
Field[1].Quads = 1;
Field[1].Thickness = 0.2;
Field[1].CurvesList = {13,14};
Field[1].Ratio = 1.4;
Field[1].Size = 0.02;
Field[1].SizeFar = 0.2;
Field[1].IntersectMetrics = 1;

BoundaryLayer Field = 1;

Mesh.Algorithm = 6;
Recombine Surface {1};

Does anyone have any ideas why it is not working? I have tried playing with many of the boundary layer and sizing settings, but unfortunately nothing seems to work.


All times are GMT -4. The time now is 09:50.