<div dir="ltr">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)."<div><br></div><div>An example code looks like: </div><div><br></div><div>SetFactory("OpenCASCADE");<br>//creating two boxes, box1 is bigger than box2<br>Box(1) = {0, 0, 0, 100, 100, 100};<br>Box(2) = {25, 40, 0, 20,20 , 25};<br>//create boundary layer around box2<br>Field[1] = BoundaryLayer;<br>Field[1].EdgesList = {Boundary{Boundary{Volume{2};}}};<br>Field[1].hfar = 2;<br>Field[1].hwall_n = 0.5;<br>Field[1].thickness =3;<br>Field[1].ratio = 1.2;<br>Field[1].Quads = 1;<br>Field[1].IntersectMetrics = 0;<br>BoundaryLayer Field = 1;<br>Background Field = 1;<br>//carve box2 out from box1<br>BooleanDifference{Volume{1};Delete;}{Volume{2};Delete;}<br><br></div><div>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!</div><div><br></div><div>Best regards,</div><div><br></div><div>Junting Chen</div></div>