1 // http://perso.ensta-paristech.fr/~kielbasi/docs/gmsh.pdf
2 lc =0.2; // parametre de taille de maille
3 // generation du rectangle
4 Point (1) = {0, 0, 0, lc} ;
5 Point (2) = {2, 0, 0, lc} ;
6 Point (3) = {2, 1, 0, lc} ;
7 Point (4) = {0, 1, 0, lc} ;
12 // generation de l'ellipse
13 Point (5) = {1, 0.5, 0, lc} ;
14 Point (6) = {1.5, 0.5, 0, lc} ;
15 Point (7) = {1, 0.75, 0, lc} ;
16 Point (8) = {0.5, 0.5, 0, lc} ;
17 Point (9) = {1, 0.25, 0, lc} ;
18 Ellipse (5) = {6, 5, 6, 7} ;
19 Ellipse (6) = {7, 5, 8, 8} ;
20 Ellipse (7) = {8, 5, 8, 9} ;
21 Ellipse (8) = {9, 5, 6, 6} ;
22 // generation des contour
23 Line Loop (1) = { 1 , 2 , 3 , 4 } ;
24 Line Loop (2) = { 5 , 6 , 7 , 8 } ;
25 // generation de la surface
26 Plane Surface (1) = {1 ,2};