[Gmsh] Boundary layer Field for a submerged 3D object

Christophe Geuzaine cgeuzaine at uliege.be
Tue Aug 20 15:25:50 CEST 2019


Hi Justin,

As the message says, boundary layers are not supported in 3D (yet). There's a separate effort underway to implement a general solution for boundary layers - hopefully we'll be able to merge something in Gmsh next year.

Christophe


> On 14 Aug 2019, at 19:55, Junting Chen <chen112p at uwindsor.ca> wrote:
> 
> Hello, I am having difficulties of creating boundary layers for a submerged 3D object. I am always getting "Error : Only 2D Boundary Layers are supported (curve ## is adjacet to 3 surfaces)."
> 
> An example code looks like: 
> 
> SetFactory("OpenCASCADE");
> //creating two boxes, box1 is bigger than box2
> Box(1) = {0, 0, 0, 100, 100, 100};
> Box(2) = {25, 40, 0, 20,20 , 25};
> //create boundary layer around box2
> Field[1] = BoundaryLayer;
> Field[1].EdgesList = {Boundary{Boundary{Volume{2};}}};
> Field[1].hfar = 2;
> Field[1].hwall_n = 0.5;
> Field[1].thickness =3;
> Field[1].ratio = 1.2;
> Field[1].Quads = 1;
> Field[1].IntersectMetrics = 0;
> BoundaryLayer Field = 1;
> Background Field = 1;
> //carve box2 out from box1
> BooleanDifference{Volume{1};Delete;}{Volume{2};Delete;}
> 
> Mostly the submerged geometry is much more complicated than a box in the example above/attached. Please give me some hints on creating boundary layer of a 3D object without having to create zones of transfinite lines manually. Thanks a lot!
> 
> Best regards,
> 
> Junting Chen
> <3DboxBL.geo>_______________________________________________
> 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://www.montefiore.ulg.ac.be/~geuzaine






More information about the gmsh mailing list