[Gmsh] boundary layer disconnects at the corner of geometry(stl)

Praveen Kumar praveen at cctech.co.in
Wed Sep 14 10:52:10 CEST 2016


Hi,

I am trying to generate boundary layers on all the surfaces of a simple
rectangular duct geometry (imported stl). The prism layers are not getting
connected on the edges/corners between each surfaces.


​

Can someone help me understand what is missing here? Please Note, I am
using 2.11.0 version of gmsh as this is not working at all in the latest
version

--------------------------------------
Merge "duct.stl";
CreateTopology;

ll[] = Line "*";
l = newl;
For j In {0 : #ll[]-1}
    Compound Line(l+j) = ll[j];
EndFor

ss[] = Surface "*";
s = news;
For i In {0 : #ss[]-1}
    Compound Surface(s+i) = ss[i];
EndFor

bl = newl;
bs = news;

Field[1] = MathEval;
Field[1].F = "0.1";

Background Field = 1;

Mesh.CharacteristicLengthExtendFromBoundary = 0;

Physical Surface("Side-01") = {s};
Physical Surface("Top") = {s+1};
Physical Surface("Side-02") = {s+2};
Physical Surface("Outlet") = {s+3};
Physical Surface("Bottom") = {s+4};
Physical Surface("Inlet") = {s+5};

sl = newsl; Surface Loop(sl) = {s:s+5};
vo = newv; Volume(vo) = {sl};

//Physical Volume("V_Fluid") = {vo};

pp[] = Point "*";

Field[2] = BoundaryLayer;
//Field[2].AnisoMax = 60;
Field[2].FacesList = {s:bs-1};
Field[2].EdgesList = {l:bl-1};
Field[2].NodesList = {pp[0]:pp[7]};
//Field[2].FanNodesList = {pp[0]:pp[7]};
//Field[2].IntersectMetrics = 0;
//Field[2].Quads = 0;
//Field[2].hfar = 0.1;
Field[2].hwall_n = 0.025;
//Field[2].hwall_t = 0.1;
Field[2].ratio = 1.1;
Field[2].thickness = 0.05;
BoundaryLayer Field = 2;
//Background Field = 2;

----------------------------------------------

-- 
Praveen Kumar R | Technical Manager
*Centre for Computational Technologies - CCTech *
1 Akshay Residancy | 50 Anand Park | Aundh | Pune | 411007 | India
Ph: +91 20 40098381/82 | M: +91-9923406816 | www.cctech.co.in
*CCTech – "*

*Transforming human life by democratization of technology"*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20160914/54f84efb/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BL-issue.JPG
Type: image/jpeg
Size: 276652 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20160914/54f84efb/attachment-0002.JPG>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: duct.geo
Type: application/octet-stream
Size: 1169 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20160914/54f84efb/attachment-0001.geo>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: duct.stl
Type: application/sla
Size: 34707 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20160914/54f84efb/attachment-0001.stl>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BL-issue.JPG
Type: image/jpeg
Size: 276652 bytes
Desc: not available
URL: <http://onelab.info/pipermail/gmsh/attachments/20160914/54f84efb/attachment-0003.JPG>


More information about the gmsh mailing list