[Gmsh] Boundary layer field - tangential direction mesh size
Christophe Geuzaine
cgeuzaine at uliege.be
Wed Nov 4 09:11:52 CET 2020
> On 29 Oct 2020, at 06:44, Tian Xia <tianxia.ui at gmail.com> wrote:
>
> 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?
>
The "tangential" size is simply determined by the 1D mesh. See tutorial 10 for examples of mesh size fields.
Christophe
> 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.png>
>
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh
—
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://people.montefiore.ulg.ac.be/geuzaine
More information about the gmsh
mailing list