gmsh BoundaryLayer Field
I have been attempting to use the BoundaryLayer size field in gmsh in order to produce a boundary layer around an airfoil. I'm trying to figure this out hoping that being able to utilize the 'BoundaryLayer' size field will be more efficient than dividing, offsetting curves and manually playing with the 'transfinite' curve settings.
I haven't been able to find any resources that go through how to properly utilize 'BoundaryLayer'. Has anyone here had any luck? Would they be willing to share screenshots and/or .geo files? Cheers, Moshe. |
gmsh BoundaryLayer Field
I had the same question, and ran across a gmsh thread (that I can't find now) that said the BoundaryField was a) experimental, and b) only worked on 2D geometry.
I ended up using Distance fields, see below. If you've found a better solution, I'd appreciate hearing about it. What I ended up doing is to set the minimum mesh size to what I wanted at the surface. Bigger surfaces need more NumPointsPerCurve or you get periodic mesh sizes across the surface. Then a final Min field to create the background field. Field[1] = Distance; Field[1].SurfacesList = { 2, 4}; Field[1].NumPointsPerCurve = 20; Field[2] = Distance; Field[2].SurfacesList = { 3 }; Field[2].NumPointsPerCurve = 40; Field[3] = Distance; Field[3].SurfacesList = { 6, 7 }; Field[3].NumPointsPerCurve = 80; // take min Field[4] = Min; Field[4].FieldsList = {1, 2, 3}; |
Thanks! I'll give it a shot.
I'd be really curious to see a screenshot of the mesh that this produced. Also, what surfaces are surfaces 2, 4, 3, 6 & 7? (airfoil surfaces? far-field boundaries? Internal flow surfaces...?) |
gmsh BoundaryLayer Field
The surfaces are just the walls of my duct that I wanted higher resolution on.
|
Quote:
|
Unfortunately, I haven't had a chance to play around with it all that much since I last posted.
|
All times are GMT -4. The time now is 10:21. |