[Gmsh] Boundary layer field - tangential direction mesh size

Tian Xia tianxia.ui at gmail.com
Thu Oct 29 06:44:03 CET 2020


Hi Gmsh team,

I'd like to create 2D surface mesh with high density near the boundary and
corners. It looks like the boundary layer field is quite suitable for this.

For example I can create a mesh like below. What I failed to find out is to
increase the mesh density at the four corners. If I want to do that (which
looks like adjusting 1D mesh parameters) together with the boundary layer
field, what is the best way?

Thank you!
Tian

Here is my geo script to generate the mesh:

SetFactory("OpenCASCADE");
Rectangle(1) = {0, 0, 0, 1, 2, 0};
Field[1] = BoundaryLayer;
Field[1].EdgesList = {1, 2, 3, 4};
Field[1].hwall_n = 0.03;
Field[1].thickness = 0.1;
BoundaryLayer Field = 1;

[image: image.png]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20201029/72b34bb8/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 35915 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20201029/72b34bb8/attachment-0001.png>


More information about the gmsh mailing list