/********************************************************************* 
 *
 *  Gmsh imec_LED
 * 
 *  Variables, elementary entities (points, lines, surfaces), physical
 *  entities (points, lines, surfaces)
 *
 *********************************************************************/
la=5.0;
lb=1.0;

//unit: um
Point(1) = {0.0, 0.0, 0, la} ;
Point(2) = {100.0, 0.0, 0, la} ;
Point(3) = {100.0, 100.0, 0, la} ;
Point(4) = {0.0, 100.0, 0, la} ;
Line(1) ={1,2};
Line(2) ={2,3};
Line(3) ={3,4};
Line(4) ={4,1};


Point(6) = {15.0, 15.0, 0, lb} ;
Point(7) = {35.0, 15.0, 0, lb} ;
Point(8) = {35.0, 35.0, 0, lb} ;
Point(9) = {15.0, 35.0, 0, lb} ;

Point(11) = {15.0+50.0, 15.0, 0, lb} ;
Point(12) = {35.0+50.0, 15.0, 0, lb} ;
Point(13) = {35.0+50.0, 35.0, 0, lb} ;
Point(14) = {15.0+50.0, 35.0, 0, lb} ;

Point(16) = {15.0+50.0, 15.0+50.0, 0, lb} ;
Point(17) = {35.0+50.0, 15.0+50.0, 0, lb} ;
Point(18) = {35.0+50.0, 35.0+50.0, 0, lb} ;
Point(19) = {15.0+50.0, 35.0+50.0, 0, lb} ;

Point(21) = {15.0, 15.0+50.0, 0, lb} ;
Point(22) = {35.0, 15.0+50.0, 0, lb} ;
Point(23) = {35.0, 35.0+50.0, 0, lb} ;
Point(24) = {15.0, 35.0+50.0, 0, lb} ;

For i In {0:3}
Line(5+i*4) ={6+i*5,7+i*5};
Line(6+i*4) ={7+i*5,8+i*5};
Line(7+i*4) ={8+i*5,9+i*5};
Line(8+i*4) ={9+i*5,6+i*5};
EndFor
//
Transfinite Line{1}=51; 
Transfinite Line{2}=51;
Transfinite Line{3}=51;
Transfinite Line{4}=51;
For i In {0:3}
Transfinite Line{5+i*4}=11; 
Transfinite Line{6+i*4}=11;
Transfinite Line{7+i*4}=11;
Transfinite Line{8+i*4}=11;
EndFor

For j In {0:4}
Line Loop(1+j) = {1+j*4,2+j*4,3+j*4,4+j*4} ;
EndFor


Plane Surface(1) = {1,2,3,4,5} ;
Plane Surface(2) = {2} ;
Plane Surface(3) = {3} ;
Plane Surface(4) = {4} ;
Plane Surface(5) = {5} ;

//Transfinite Surface{1}={1,2,3,4};
Transfinite Surface{2,3,4,5};

