
lcar = .00068;

wxbox=2*4.5e-3;
wybox=2*4.5e-3;
hbox=2*3e-3;

lc = .00075;
ddisk  = 5e-3;
tdisk  = 1e-3;
 
Point(101) = {-ddisk/2,0,-tdisk/2,lc};
Point(102) = {0,-ddisk/2,-tdisk/2,lc};
Point(103) = {ddisk/2,0,-tdisk/2,lc};
Point(104) = {0,ddisk/2,-tdisk/2,lc};
Point(110) = {0,0,-tdisk/2,lc};

Point(105) = {-ddisk/2,0,tdisk/2,lc};
Point(106) = {0,-ddisk/2,tdisk/2,lc};
Point(107) = {ddisk/2,0,tdisk/2,lc};
Point(108) = {0,ddisk/2,tdisk/2,lc};
Point(109) = {0,0,tdisk/2,lc};
Point(111) = {0,0,tdisk/2,lc};
 
Circle(101) = {101,110,102};
Circle(102) = {102,110,103};
Circle(103) = {103,110,104};
Circle(104) = {104,110,101};
Line(105) = {101,105};
Line(106) = {102,106};
Line(107) = {103,107};
Line(108) = {104,108};
Circle(109) = {105,111,106};
Circle(110) = {106,111,107};
Circle(111) = {107,111,108};
Circle(112) = {108,111,105};
 
Line Loop(122) = {101,102,103,104};    Plane Surface(123) = {122};
Line Loop(124) = {101,106,-109,-105};  Ruled  Surface(125) = {124};
Line Loop(126) = {102,107,-110,-106};  Ruled  Surface(127) = {126};
Line Loop(128) = {103,108,-111,-107};  Ruled  Surface(129) = {128};
Line Loop(130) = {104,105,-112,-108};  Ruled  Surface(131) = {130};
Line Loop(132) = {109,110,111,112};    Plane Surface(133) = {132};
 
// theloops[0]=285;
Surface Loop(285) = {123,125,127,129,131,133} ;

Volume(286) = {285} ;

diskVolume=1001;
Physical Volume(diskVolume) = {286} ;
 

Point(1) = {-wxbox/2,-wybox/2,tdisk/2,lcar}; 
Point(2) = { wxbox/2,-wybox/2,tdisk/2,lcar}; 
Point(3) = { wxbox/2, wybox/2,tdisk/2,lcar}; 
Point(4) = {-wxbox/2, wybox/2,tdisk/2,lcar}; 

Point(5) = {-wxbox/2,-wybox/2, hbox/2,lcar}; 
Point(6) = { wxbox/2,-wybox/2, hbox/2,lcar}; 
Point(7) = { wxbox/2, wybox/2, hbox/2,lcar}; 
Point(8) = {-wxbox/2, wybox/2, hbox/2,lcar}; 

Line(1) = {1,2};
Line(2) = {2,3};
Line(3) = {3,4};
Line(4) = {4,1};
Line(5) = {1,5};
Line(6) = {2,6};
Line(7) = {3,7};
Line(8) = {4,8};
Line(9) = {5,6};
Line(10) = {6,7};
Line(11) = {7,8};
Line(12) = {8,5};

Line Loop(22) = {1,2,3,4};      Plane Surface(23) = {22,132}; // *****
Line Loop(24) = {1,6,-9,-5};    Plane Surface(25) = {24};
Line Loop(26) = {2,7,-10,-6};   Plane Surface(27) = {26};
Line Loop(28) = {3,8,-11,-7};   Plane Surface(29) = {28};
Line Loop(30) = {4,5,-12,-8};   Plane Surface(31) = {30};
Line Loop(32) = {9,10,11,12};   Plane Surface(33) = {32};

// theloops[1]=185;
Surface Loop(185) = {23,25,27,29,31,33,133} ; // *****
Volume(186) = {185} ;
Physical Volume (1002) = 186 ;

