// Gmsh project created on Mon Dec 19 21:23:16 2011
h_w = 0.4;
b = 0.5;
t_f = 0.1;
t_w = 0.1;
l = 1.0;
div_extrusion = 5;
div_lines = 4;

Point(1) = {(h_w/2+t_f), 0, 0, 1.0};
Point(2) = {-(h_w/2+t_f), 0, 0, 1.0};
Point(3) = {-(h_w/2+t_f), t_w, 0, 1.0};
Point(4) = {(h_w/2+t_f), t_w, 0, 1.0};
Point(5) = {(h_w/2), t_w, 0, 1.0};
Point(6) = {-(h_w/2), t_w, 0, 1.0};
Point(7) = {-(h_w/2), 0, 0, 1.0};
Point(8) = {(h_w/2), 0, 0, 1.0};
Point(9) = {h_w/2, (b-t_w)/2, 0, 1.0};
Point(10) = {h_w/2+t_f, (b-t_w)/2, 0, 1.0};
Point(11) = {-h_w/2+t_f, (b-t_w)/2, 0, 1.0};
Point(12) = {-h_w/2-t_f, (b-t_w)/2, 0, 1.0};
Point(13) = {-h_w/2, (b-t_w)/2, 0, 1.0};
Delete {
  Point{11};
}
Line(1) = {7, 8};
Line(2) = {8, 5};
Line(3) = {5, 6};
Line(4) = {6, 7};
Line(5) = {7, 2};
Line(6) = {2, 3};
Line(7) = {3, 6};
Line(8) = {8, 1};
Line(9) = {1, 4};
Line(10) = {4, 5};
Line(11) = {5, 9};
Line(12) = {9, 10};
Line(13) = {10, 4};
Line(14) = {6, 13};
Line(15) = {13, 12};
Line(16) = {12, 3};
Line Loop(17) = {13, 10, 11, 12};
Plane Surface(18) = {17};
Line Loop(19) = {9, 10, -2, 8};
Plane Surface(20) = {19};
Line Loop(21) = {14, 15, 16, 7};
Plane Surface(22) = {21};
Line Loop(23) = {7, 4, 5, 6};
Plane Surface(24) = {23};
Line Loop(25) = {1, 2, 3, 4};
Plane Surface(26) = {25};

Transfinite Line{1:16} = div_lines;

Transfinite Surface(18) = {5, 4, 10, 9};
Transfinite Surface(20) = {1, 4, 5, 8};
Transfinite Surface(22) = {3, 6, 13, 12};
Transfinite Surface(24) = {2, 3, 6, 7};
Transfinite Surface(26) = {7, 8, 5, 6};
Recombine Surface{18,20,22,24,26};

Extrude {0, 0, l} {
	Surface{18,20,22,24,26}; Layers{ div_extrusion}; Recombine;
}

