2
r = 0.6; // small radius
3
n = 5; // density of discretisation
6
n2 = Ceil(2*Pi*R/(3*h));
10
Point(1) = { R, 0, 0, h};
11
Point(2) = {R+r, 0, 0, h};
12
Point(3) = { R, 0, r, h};
13
Point(4) = { R, 0,-r, h};
14
Point(5) = {R-r, 0, 0, h};
19
Line Loop(5) = {1,2,3,4};
20
Plane Surface(6) = {5};
21
third1[]=Extrude {{0,0,1}, {0,0,0}, 2*Pi/3}{Surface{6}; Layers{n2};};
22
third2[]=Extrude {{0,0,1}, {0,0,0}, 2*Pi/3}{Surface{third1[0]}; Layers{n2};};
23
third3[]=Extrude {{0,0,1}, {0,0,0},-2*Pi/3}{Surface{6}; Layers{n2};};
24
Physical Surface("boundary") = {
25
-third1[2],-third1[3],-third1[4],-third1[5],
26
-third2[2],-third2[3],-third2[4],-third2[5],
27
third3[3], third3[4], third3[5], third3[6]