Rext = 0.2 ;
Ep   = 0.02 ;
Rint = Rext - Ep;
RC   = 0.6     ;
LG   = 3.0    ;

h = 0.05;

Point(1) = {Rext, 0, 0, h};
Point(2) = {0, 0, Rext, h};
Point(3) = {-1*Rext, 0, 0, h};
Point(4) = {0, 0, 0, h};

Point(5) = {Rint, 0, 0, h};
Point(6) = {0, 0, Rint, h};
Point(7) = {-1*Rint, 0, 0, h};
 

Circle(1) = {1,4,2};
Circle(2) = {2,4,3};
Circle(3) = {5,4,6};
Circle(4) = {6,4,7};
Line(5) = {1,5};
Line(6) = {7,3};


Line Loop(7) = {-2,-1,5,3,4,6};
Plane Surface(8) = {7};

v1[]=Extrude {0,LG,0}{
              Surface {8};Layers{70,1};
              };

v2[]=Extrude {{0,0,1}, {RC,LG,0.}, -Pi/2}{
              Surface {v1[0]};Layers{40,1};
              };

v3[]=Extrude {LG,0,0}{
              Surface {v2[0]};Layers{70,1};Recombine;
              };
              


Physical Volume (10000) ={v1[1],v2[1],v3[1]};
Physical Surface(10001) = {8};
Physical Surface(10002) = {v1[0]-13,v1[0]-1,v2[0]-13,v2[0]-1,v3[0]-13,v3[0]-1};
Physical Surface(10003) = {v1[0]-17,v1[0]-21,v2[0]-21,v2[0]-17,v3[0]-21,v3[0]-17};
Physical Surface(10004) = {v3[0]-5,v3[0]-9,v2[0]-5,v2[0]-9,v1[0]-9,v1[0]-5};
Physical Surface(10005) = {v3[0]};


