CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Mesh Generation & Pre-Processing (https://www.cfd-online.com/Forums/mesh-generation/)
-   -   GMSH Boundary layer randomly create cells inside surface (https://www.cfd-online.com/Forums/mesh-generation/198553-gmsh-boundary-layer-randomly-create-cells-inside-surface.html)

tomm450 February 10, 2018 05:34

GMSH Boundary layer randomly create cells inside surface
 
Good morning everybody!
I'm implementing a Matlab script to generate 2D meshes for multi-element airfoil using GMSH; I can write easily the geo file and mesh the geometry, but I'm experiencing a problem when I try to implement a Boundary layer field, the majority of cell on the boundary layer are corrected placed outside the airfoil but some of them are expanded inside.

This is the portion of the geo file regarding the boundary layer

Field[1] = BoundaryLayer;
Field[1].AnisoMax = 1000;
Field[1].EdgesList = {10,11,12,13,14,15,16,17,18,100,101,102,103,104,10 5,106,107,108,200,201,202,203,204,205,206,207,208} ;
Field[1].IntersectMetrics = 0;
Field[1].Quads = 1;
Field[1].hfar = 0.005778;
Field[1].hwall_n = 0.000401;
Field[1].ratio = 1.100000;
Field[1].thickness = 0.003801;
BoundaryLayer Field = 1;


Here there is the link to the full geo file
https://mega.nz/#!vZgUEDoA!g2ztxzzUJ...rYN_fczsG3vUn4


Thanks for your time! Any suggestion will be greatly appreciated

EDIT: it seems that I'm not able to upload a picture, here is the link with the images of what's happening (sorry for the inconvenient..)
https://mega.nz/#F!nVRATQwY!ZyGyRIyudXzvo-OfzijHfA


All times are GMT -4. The time now is 03:26.