lc=0.2; //points of the rectangular cantilever Point(1)={0,0,0,lc}; Point(2)={5,0,0,lc}; Point(3)={5,0.5,0,lc}; Point(4)={0,0.5,0,lc}; Point(5)={10,0.5,0,lc}; Point(6)={10,0,0,lc}; // lines forming the cantilever Line(1)={1,2}; Line(2)={2,3}; Line(3)={3,4}; Line(4)={4,1}; Line(5)={3,5}; Line(6)={5,6}; Line(7)={6,2}; //generating the complete cantilever shape Line Loop(1)={1,2,3,4}; Line Loop(2) = {5, 6, 7, 2}; //generating the cantilever cross-section Plane Surface(1) = {1}; Plane Surface(2) = {2}; //labeling the boundaries and materials Physical Line(10)={1,7}; //bottom line is region 10 Physical Line(11)={6}; //right line is region 11 Physical Line(12)={3,5}; //top line is region 12 Physical Line(13)={4}; //left line is region 13 Physical Surface(14) = {1}; //steel material is region 14 Physical Surface(15) = {2}; //steel material is region 15 //Line Loop(15) = {5, 6, 7, 2}; //Plane Surface(16) = {15};