[Gmsh] [2 or more BoundaryLayers]

Feilin Jia jiafeilin1990 at gmail.com
Fri Jul 22 03:40:00 CEST 2016


Dear All,

Recently, I want to generate a mesh which has 2 boundary layers in 2
different locations. These 2 boundary layers should use different grid
size. I know how to define many boundary layers with the same grid
properties. However, I do not know how to define many boundary layers with
2 or more grid properties (e.g. grid size). The code to define boundary
layers is list as below:

Field[1]           = BoundaryLayer;
Field[1].EdgesList = {5,6,7};
Field[1].Quads     = 1;
Field[1].hfar      = 0.5;
Field[1].hwall_n   = 0.01;
Field[1].hwall_t   = 0.02;
Field[1].thickness = 0.2;
Field[1].ratio     = 1.2;

BoundaryLayer Field = 1;

I tried to use the code below to try, but fails:

Field[1]           = BoundaryLayer;
Field[1].EdgesList = {5,6,7};
Field[1].Quads     = 1;
Field[1].hfar      = 0.5;
Field[1].hwall_n   = 0.01;
Field[1].hwall_t   = 0.03;
Field[1].thickness = 0.2;
Field[1].ratio     = 1.2;

Field[2]           = BoundaryLayer;
Field[2].EdgesList = {8};
Field[2].Quads     = 1;
Field[2].hfar      = 0.5;
Field[2].hwall_n   = 0.05;
Field[2].hwall_t   = 0.2;
Field[2].thickness = 2.2;
Field[2].ratio     = 1.1;

BoundaryLayer Field = {1,2}

The Gmsh told me that the "BoundaryLayer Field = {1,2}" is syntax error,
and I can not find the related things in manual. Hope for your help. Thanks.

Best regards,
Feilin Jia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20160721/bc1b7ad3/attachment-0001.html>


More information about the gmsh mailing list