lc = 0.15;
r1 = 0.6;
dr1 = 0.357;
r2 = 0.82;
r3 = 1.463;
r4 = 1.5;
r5 = 2.139;
r6 = 3.601;
r7 = 6.395;
l1 = 1.0;
dl1 = 0.981;
l2 = 1.54;
dl2 = 7.7;
l3 = 0.74;
dl3 = 1.35;
l4 = 2.786;

Point(1) = {0, r1, 0, lc};
Point(2) = {0, r3, 0, lc};
Point(3) = {0, r4, 0, lc};
Point(4) = {l2, r4, 0, lc};
Point(5) = {l2, r5, 0, lc};
Point(6) = {l4, r5, 0, lc};
Point(7) = {l4, r6, 0, lc};
Point(8) = {l2+dl2, r7, 0, lc};
Point(9) = {l2+dl2, r6, 0, lc};
Point(10) = {l2+dl2, r5, 0, lc};
Point(11) = {15, r7, 0, lc};
Point(12) = {15, r7/3.34, 0, lc};
Point(13) = {l2+dl2, r7/3.34, 0, lc};
Point(14) = {l2+dl2, r4, 0, lc};
Point(15) = {l1+dl1+6.15, r4, 0, lc};
Point(16) = {l1+dl1+6.15, r2, 0, lc};
Point(17) = {l1+dl1+6.15, r1, 0, lc};
Point(18) = {l3+dl3, r1, 0, lc};
Point(19) = {l3+dl3, r1-dr1, 0, lc};
Point(20) = {l3, r1-dr1, 0, lc};
Point(21) = {l3, r1, 0, lc};
Point(22) = {l1+dl1, r2, 0, lc};
Point(23) = {l1+dl1, r4, 0, lc};
Point(24) = {l1, r2, 0, lc};
Point(25) = {l1, r3, 0, lc};

Line(1) = {1, 21};
Line(2) = {21, 20};
Line(3) = {20, 19};
Line(4) = {19, 18};
Line(5) = {18, 17};
Line(6) = {17, 16};
Line(7) = {16, 22};
Line(8) = {22, 24};
Line(9) = {24, 25};
Line(10) = {25, 2};
Line(11) = {22, 23};
Line(12) = {23, 4};
Line(13) = {4, 15};
Line(15) = {4, 5};
Line(16) = {5, 6};
Line(17) = {6, 7};
Line(18) = {7, 9};
Line(19) = {9, 8};
Line(20) = {8, 11};
Line(21) = {12, 13};
Line(22) = {13, 14};
Line(23) = {10, 9};
Line(24) = {14, 15};
Line(25) = {6, 10};
Line(26) = {16, 15};
Line(28) = {1, 2};
Line(29) = {11, 12};

Line Loop(30) = {10, -28, 1, 2, 3, 4, 5, 6, 7, 8, 9};
Plane Surface(31) = {30};
Line Loop(32) = {11, 12, 13, -26, 7};
Plane Surface(33) = {32};
Line Loop(34) = {16, 25, 23, 19, 20, 29, 21, 22, 24, -13, 15};
Plane Surface(35) = {34};
Line Loop(36) = {17, 18, -23, -25};
Plane Surface(37) = {36};
Extrude {{1, 0, 0}, {0, 0, 0}, Pi/4} {
  Surface{31, 33, 37, 35};
}
Physical Surface(200001) = {57};
Physical Surface(200002) = {179};
Physical Surface(200003) = {61, 65, 69, 73, 77, 81, 116, 104, 53, 93, 89, 159, 199, 108, 130, 134, 171, 175, 183, 191, 187};
Physical Surface(200004) = {35, 37, 33, 31};
Physical Surface(200005) = {200, 143, 121, 94};
Physical Volume(100001) = {1, 3};
Physical Volume(100002) = {2};
Physical Volume(100003) = {4};
