SetFactory("Built-in");

xmin=-0.05;
xmax=1.50;
r1=0.0525;
r2=0.0735;
r3=0.10;
r4=1.00;
r5 = 0.2;

Point(1) = {0.0,0.0,0.0,0.0045};

Point(2) = {0.0,r1,0.0,0.01};
Point(3) = {0.0,r2,0.0,0.01};
Point(4) = {0.0,r3,0.0,0.01};

Point(5) = {0.0,0.0,r1,0.01};
Point(6) = {0.0,0.0,r2,0.01};
Point(7) = {0.0,0.0,r3,0.01};

Point(8)  = {0.0,-r1,0.0,0.01};
Point(9)  = {0.0,-r2,0.0,0.01};
Point(10) = {0.0,-r3,0.0,0.01};

Point(11) = {0.0,0.0,-r1,0.01};
Point(12) = {0.0,0.0,-r2,0.01};
Point(13) = {0.0,0.0,-r3,0.01};

Point(14) = {xmin,0.00,0.00,0.1};

Point(15) = {xmin,r3,0.00,0.1};
Point(16) = {xmin,0.00,r3,0.1};
Point(17) = {xmin,-r3,0.00,0.1};
Point(18) = {xmin,0.00,-r3,0.1};

Point(19) = {xmin,r4,0.00,0.2};
Point(20) = {xmin,0.00,r4,0.2};
Point(21) = {xmin,-r4,0.00,0.2};
Point(22) = {xmin,0.00,-r4,0.2};

Point(23) = {xmax,0.00,0.00,0.06};

Point(24) = {xmax,r4,0.00,0.2};
Point(25) = {xmax,0.00,r4,0.2};
Point(26) = {xmax,-r4,0.00,0.2};
Point(27) = {xmax,0.00,-r4,0.2};

Point(28) = {xmax,r3,0.00,0.08};
Point(29) = {xmax,0.00,r3,0.08};
Point(30) = {xmax,-r3,0.00,0.08};
Point(31) = {xmax,0.00,-r3,0.08};

Circle(1) = {4,1,13};
Circle(2) = {13,1,10};
Circle(3) = {10,1,7};
Circle(4) = {7,1,4};

Circle(5) = {3,1,12};
Circle(6) = {12,1,9};
Circle(7) = {9,1,6};
Circle(8) = {6,1,3};

Circle(9) = {2,1,11};
Circle(10) = {11,1,8};
Circle(11) = {8,1,5};
Circle(12) = {5,1,2};

Circle(13) = {15,14,18};
Circle(14) = {18,14,17};
Circle(15) = {17,14,16};
Circle(16) = {16,14,15};
Circle(17) = {19,14,22};
Circle(18) = {22,14,21};
Circle(19) = {21,14,20};
Circle(20) = {20,14,19};

Line(21) = {15,4};
Line(22) = {16,7};
Line(23) = {17,10};
Line(24) = {18,13};

Circle(25) = {24,23,27};
Circle(26) = {27,23,26};
Circle(27) = {26,23,25};
Circle(28) = {25,23,24};

Line(29) = {24,19};
Line(30) = {20,25};
Line(31) = {21,26};
Line(32) = {22,27};

Line Loop(35) = {20,17,18,19};
Line Loop(36) = {16,13,14,15};
Plane Surface(37) = {35,36};
Line Loop(38) = {29,-20,30,28};
Ruled Surface(39) = {38};
Line Loop(40) = {30,-27,-31,19};
Ruled Surface(41) = {40};
Line Loop(42) = {26,-31,-18,32};
Ruled Surface(43) = {42};
Line Loop(44) = {25,-32,-17,-29};
Ruled Surface(45) = {44};
Line Loop(46) = {4,-21,-16,22};
Ruled Surface(47) = {46};
Line Loop(48) = {1,-24,-13,21};
Ruled Surface(49) = {48};
Line Loop(50) = {2,-23,-14,24};
Ruled Surface(51) = {50};
Line Loop(52) = {3,-22,-15,23};
Ruled Surface(53) = {52};

Line Loop(54) = {9,10,11,12};

Circle(56) = {3,1,12};
Circle(57) = {12,1,9};
Circle(58) = {9,1,6};
Circle(59) = {6,1,3};

Transfinite Line {30, 31, 32, 29} = 13 Using Progression 1;

Circle(68) = {28, 23, 31};
Circle(69) = {31, 23, 30};
Circle(70) = {30, 23, 29};
Circle(71) = {29, 23, 28};
Line Loop(72) = {12, 64, -71, -65};

Line Loop(80) = {71, 68, 69, 70};
Plane Surface(81) = {80};
Line Loop(82) = {25, 26, 27, 28};
Plane Surface(83) = {80, 82};

Transfinite Line {30, 29, 31, 32} = 31 Using Progression 1;
Transfinite Line {27, 28, 25, 26} = 17 Using Progression 1;
Transfinite Line {19, 18, 17, 20} = 13 Using Progression 1;
Transfinite Line {70, 71, 68, 69} = 5 Using Progression 1;
Transfinite Line {12, 11, 10, 9} = 7 Using Progression 1;

Transfinite Line {7, 8, 5, 6} = 7 Using Progression 1;
Transfinite Line {3, 4, 2, 1} = 12 Using Progression 1;

Transfinite Line {16, 13, 15, 14} = 4 Using Progression 1;

Transfinite Line {95, 94, -106, 101, 93} = 41 Using Progression 1.05;
Transfinite Line {102, 105, 104, 103} = 11 Using Progression 1.00;
Transfinite Line {102, 103, 105, 104} = 7 Using Progression 1.00;
Transfinite Surface {124} = {32, 36, 2, 1};
Transfinite Surface {126} = {34, 36, 8, 1};
Transfinite Surface {122} = {33, 36, 5, 1};
Transfinite Surface {120} = {35, 36, 11, 1};


