/* File  "ring_magnet.geo"  */
//lc1=.5;
//lc2=.1;
lc1=.25;
lc2=.05;
Point(1) = {0, 0, 0, 0.0036*lc1};
Point(2) = {0.01, 0, 0, 0.0036*lc1};
Point(5) = {0.01, 0.02, 0, 0.0036*lc1};
Point(6) = {0, 0.02, 0, 0.0036*lc1};
Point(79) = {0.0035, 0.008999999999999999, 0.0025, 0.1*lc2};
Point(81) = {0.0035, 0.008999999999999999, 0.0075, 0.1*lc2};
Point(82) = {0.0035, 0.008999999999999999, 0.0125, 0.1*lc2};
Point(85) = {0.0035, 0.004, 0.0075, 0.1*lc2};
Point(86) = {0.0035, 0.014, 0.0075, 0.1*lc2};
Point(87) = {0.0035, 0.006, 0.0075, 0.1*lc2};
Point(88) = {0.0035, 0.008999999999999999, 0.0105, 0.1*lc2};
Point(89) = {0.0035, 0.012, 0.0075, 0.1*lc2};
Point(90) = {0.0035, 0.008999999999999999, 0.004500000000000001, 0.1*lc2};
Point(91) = {0.006, 0.004, 0.0075, 0.1*lc2};
Point(92) = {0.006, 0.008999999999999999, 0.0075, 0.1*lc2};
Point(93) = {0.006, 0.008999999999999999, 0.0125, 0.1*lc2};
Point(96) = {0.006, 0.014, 0.0075, 0.1*lc2};
Point(99) = {0.006, 0.008999999999999999, 0.0025, 0.1*lc2};
Point(100) = {0.006, 0.008999999999999999, 0.004500000000000001, 0.1*lc2};
Point(102) = {0.006, 0.006, 0.0075, 0.1*lc2};
Point(105) = {0.006, 0.008999999999999999, 0.0105, 0.1*lc2};
Point(108) = {0.006, 0.012, 0.0075, 0.1*lc2};
Point(113) = {0, 0.02, 0.02, 0.0036*lc1};
Point(114) = {0, 0, 0.02, 0.0036*lc1};
Point(115) = {0.01, 0.02, 0.02, 0.0036*lc1};
Point(117) = {0.01, 0, 0.02, 0.0036*lc1};
Line (201) = {1, 2};
Line (213) = {5, 6};
Circle (218) = {85, 81, 82};
Circle (219) = {82, 81, 86};
Circle (220) = {86, 81, 79};
Circle (221) = {79, 81, 85};
Circle (222) = {87, 81, 88};
Circle (223) = {88, 81, 89};
Circle (224) = {89, 81, 90};
Circle (225) = {90, 81, 87};
Circle (226) = {91, 92, 93};
Line (227) = {85, 91};
Line (228) = {82, 93};
Circle (230) = {93, 92, 96};
Line (232) = {86, 96};
Circle (234) = {96, 92, 99};
Line (236) = {79, 99};
Circle (238) = {99, 92, 91};
Circle (242) = {100, 92, 102};
Line (243) = {90, 100};
Line (244) = {87, 102};
Circle (246) = {102, 92, 105};
Line (248) = {88, 105};
Circle (250) = {105, 92, 108};
Line (252) = {89, 108};
Circle (254) = {108, 92, 100};
Line (258) = {6, 1};
Line (259) = {5, 2};
Line (275) = {113, 114};
Line (276) = {6, 113};
Line (277) = {1, 114};
Line (279) = {115, 113};
Line (280) = {5, 115};
Line (283) = {115, 117};
Line (285) = {2, 117};
Line (287) = {114, 117};
Line Loop (1000229) = {218, 228, -226, -227};
Ruled Surface (229) = {1000229};
Line Loop (1000233) = {219, 232, -230, -228};
Ruled Surface (233) = {1000233};
Line Loop (1000237) = {220, 236, -234, -232};
Ruled Surface (237) = {1000237};
Line Loop (1000241) = {221, 227, -238, -236};
Ruled Surface (241) = {1000241};
Line Loop (1000245) = {225, 244, -242, -243};
Ruled Surface (245) = {1000245};
Line Loop (1000249) = {222, 248, -246, -244};
Ruled Surface (249) = {1000249};
Line Loop (1000253) = {223, 252, -250, -248};
Ruled Surface (253) = {1000253};
Line Loop (1000257) = {224, 243, -254, -252};
Ruled Surface (257) = {1000257};
Line Loop (1000278) = {258, 277, -275, -276};
Ruled Surface (278) = {1000278};
Line Loop (1000282) = {213, 276, -279, -280};
Ruled Surface (282) = {1000282};
Line Loop (1000286) = {259, 285, -283, -280};
Ruled Surface (286) = {1000286};
Line Loop (1000290) = {201, 285, -287, -277};
Ruled Surface (290) = {1000290};
Line Loop (1000292) = {213, 258, 201, -259};
Plane Surface (292) = {1000292};
Line Loop (1000294) = {279, 275, 287, -283};
Plane Surface (294) = {1000294};
Line Loop (1000297) = {221, 218, 219, 220, -225, -224, -223, -222};
Plane Surface (297) = {1000297};
Line Loop (1000300) = {226, 230, 234, 238, -254, -250, -246, -242};
Plane Surface (300) = {1000300};
Surface Loop (1000302) = {300, 229, 297, 241, 237, 233, 245, 249, 253, 257};
Volume (302) = {1000302};
Surface Loop (1000304) = {292, 282, 278, 290, 286, 294, 300, 229, 297, 241, 237, 233, 245, 249, 253, 257};
Volume (304) = {1000304};


Physical Volume (100) = {302} ; // Coil 
Physical Volume (101) = {304} ; // Air box
Physical Surface(1000307) = {282,292,290,294,278,286}; //Bounding Surface

Physical Surface(1000308) = {233,229,241,237,297,300,249,253,257,245};//Coil Bounding Surface
