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]
_______________________________________________
gmsh mailing list
[email protected]
http://onelab.info/mailman/listinfo/gmsh

Reply via email to