//calcul du circuit magnétique de l'alternateur à aimants permanents (voir plan dmg21)
lc=0.007;
//définition des points
Point(1)={0,0,0,9.e-1*lc};
Point(2)={0,6,0,lc};
Point(3)={98.175,6,0,lc};
Point(4)={98.175,0,0,lc};
Point(5)={0,65.5,0,lc};
Point(6)={0,71.5,0,lc};
Point(7)={98.175,71.5,0,lc};
Point(8)={98.175,65.5,0,lc};
Point(9)={0,26,0,lc};
Point(10)={25,26,0,lc};
Point(11)={25,6,0,lc};
Point(12)={73.175,6,0,lc};
Point(13)={73.175,26,0,lc};
Point(14)={98.175,26,0,lc};
Point(15)={0,45.5,0,lc};
Point(16)={25,65.5,0,lc};
Point(17)={25,45.5,0,lc};
Point(18)={73.175,45.5,0,lc};
Point(19)={73.175,65.5,0,lc};
Point(20)={98.175,45.5,0,lc};
//définition des surfaces
Line(1)={1,2};
Line(2)={2,3};
Line(3)={3,4};
Line(4)={4,1};
Line Loop(5)={1,2,3,4};
Plane Surface(6)={5};
Line(7)={5,6};
Line(8)={6,7};
Line(9)={7,8};
Line(10)={8,5};
Line Loop(11)={7,8,9,10};
Plane Surface(12)={11};
Line(13)={2,9};
Line(14)={9,10};
Line(15)={10,11};
Line(16)={11,2};
Line Loop(17)={13,14,15,16};
Plane Surface(18)={17};
Line(19)={12,13};
Line(20)={13,14};
Line(21)={14,3};
Line(22)={3,12};
Line Loop(23)={19,20,21,22};
Plane Surface(24)={23};
Line(25)={15,5};
Line(26)={5,16};
Line(27)={16,17};
Line(28)={17,15};
Line Loop(29)={25,26,27,28};
Plane Surface(30)={29};
Line(31)={18,19};
Line(32)={19,8};
Line(33)={8,20};
Line(34)={20,18};
Line Loop(35)={31,32,33,34};
Plane Surface(36)={35};
Line(37)={9,15};
Line(38)={17,10};
Line Loop(39)={37,-28,38,-14};
Plane Surface(40)={39};
Line(41)={16,19};
Line(42)={18,17};
Line Loop(43)={-27,41,-31,42};
Plane Surface(44)={43};
Line(45)={13,18};
Line(46)={20,14};
Line Loop(47)={45,-34,46,-20};
Plane Surface(48)={47};
Line(49)={10,13};
Line(50)={12,11};
Line Loop(51)={-15,49,-19,50};
Plane Surface(52)={51};
Line Loop(53)={-38,-42,-45,-49};
Plane Surface(54)={53};
Color Grey70{Line{1,2,3,4}; }
Color Grey70{Line{7,8,9,10}; }
Color Red{Line{19,20,21,22}; }
Color Red{Line{25,26,27,28}; }
Color Yellow{Line{13,14,15,16}; }
Color Yellow{Line{31,32,33,34}; }


