lc = 0.005;


//substrate bottom
Point(1) = {0,0,0,lc};
Point(2) = {0.1,0,0,lc};
Point(3) = {0.1,0.1,0,lc};
Point(4) = {0,0.1,0,lc};


Line(1) = {1,2};
Line(2) = {2,3};
Line(3) = {3,4};
Line(4) = {4,1};

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

Point(5) = {0,0,0.01,lc};
Point(6) = {0.1,0,0.01,lc};
Point(7) = {0.1,0.1,0.01,lc};
Point(8) = {0,0.1,0.01,lc};


Line(5) = {5,6};
Line(6) = {6,7};
Line(7) = {7,8};
Line(8) = {8,5};

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

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



Extrude {0,0,0.01} {Surface{1};}



p3 = newp; Point(p3) = {0.03,0.03,0.01,lc};
p4 = newp; Point(p4) = {0.07,0.03,0.01,lc};
p5 = newp; Point(p5) = {0.07,0.07,0.01,lc};
p6 = newp; Point(p6) = {0.03,0.07,0.01,lc};

l2 = newreg; Line(l2) = {p3,p4};
l3 = newreg; Line(l3) = {p4,p5};
l4 = newreg; Line(l4) = {p5,p6};
l5 = newreg; Line(l5) = {p6,p3};

Line Loop(6) = {l2, l3, l4, l5}; Plane Surface(6) = {6};

Physical Surface(39) = {1, 2, 3, 4, 5};
Physical Surface(40) = {6};
Physical Surface(41) = {34};

Mesh.PointNumbers = 1;



