// Gmsh project created on Fri Jul 19 19:16:52 2019
//+
Point(1) = {23.5, 16, 0, 1.0};
//+
Point(2) = {25.5, 11, 0, 1.0};
//+
Point(3) = {29.5, 11, 0, 1.0};
//+
Point(4) = {31.5, 16, 0, 1.0};
//+
Point(5) = {0, 0, 0, 1.0};
//+
Point(6) = {26.67, 0, 0, 1.0};
//+
Point(7) = {27.25, 1.75, 0, 1.0};
//+
Point(8) = {27.75, 1.75, 0, 1.0};
//+
Point(9) = {28.33, 0, 0, 1.0};
//+
Point(10) = {55, 0, 0, 1.0};
//+
Point(11) = {55, 10, 0, 1.0};
//+
Point(12) = {0, 10, 0, 1.0};
//+
Point(13) = {-3, -1, 0, 1.0};
//+
Point(14) = {7.5, -1, 0, 1.0};
//+
Point(15) = {7.5, -3, 0, 1.0};
//+
Point(16) = {-8, -3, 0, 1.0};
//+
Point(17) = {47.5, -1, 0, 1.0};
//+
Point(18) = {58, -1, 0, 1.0};
//+
Point(19) = {58, -8, 0, 1.0};
//+
Point(20) = {47.5, -3, 0, 1.0};
//+
Point(21) = {27.25, 10, 0, 1.0};
//+
Point(22) = {27.75, 10, 0, 1.0};
//+
Point(23) = {0, 1.75, 0, 1.0};
//+
Point(24) = {55, 1.75, 0, 1.0};
//+
Line(1) = {1, 4};
//+
Line(2) = {3, 2};
//+
Line(3) = {2, 1};
//+
Line(4) = {4, 3};
//+
Line(5) = {12, 21};
//+
Line(6) = {21, 22};
//+
Line(7) = {22, 11};
//+
Line(8) = {11, 24};
//+
Line(9) = {24, 8};
//+
Line(10) = {8, 7};
//+
Line(11) = {7, 23};
//+
Line(12) = {23, 12};
//+
Recursive Delete {
  Line{11}; 
}
//+
Recursive Delete {
  Line{9}; 
}
//+
Line(13) = {23, 5};
//+
Line(14) = {5, 6};
//+
Line(15) = {6, 7};
//+
Line(16) = {8, 9};
//+
Line(17) = {9, 10};
//+
Line(18) = {10, 24};
//+
Line(19) = {17, 18};
//+
Line(20) = {18, 19};
//+
Line(21) = {19, 20};
//+
Line(22) = {20, 17};
//+
Recursive Delete {
  Point{16}; 
}
//+
Point(25) = {-3, -8, 0, 1.0};
//+
Line(23) = {13, 14};
//+
Line(24) = {14, 15};
//+
Line(25) = {15, 25};
//+
Line(26) = {25, 13};
//+
Line(27) = {21, 7};
//+
Line(28) = {22, 8};
//+
Line(29) = {23, 7};
//+
Line(30) = {8, 24};
//+
Line Loop(1) = {1, 4, 2, 3};
//+
Plane Surface(1) = {1};
//+
Line Loop(2) = {5, 27, -29, 12};
//+
Plane Surface(2) = {2};
//+
Line Loop(3) = {6, 28, 10, -27};
//+
Plane Surface(3) = {3};
//+
Line Loop(4) = {7, 8, -30, -28};
//+
Plane Surface(4) = {4};
//+
Line Loop(5) = {29, -15, -14, -13};
//+
Plane Surface(5) = {5};
//+
Line Loop(6) = {30, -18, -17, -16};
//+
Plane Surface(6) = {6};
//+
Line Loop(7) = {23, 24, 25, 26};
//+
Plane Surface(7) = {7};
//+
Line Loop(8) = {19, 20, 21, 22};
//+
Plane Surface(8) = {8};
//+
Transfinite Line {1, 3, 4, 2, 23, 26, 25, 19, 20, 21, 12, 27, 28, 8} = 11 Using Progression 1;
//+
Transfinite Line {13, 15, 16, 18, 24, 22} = 11 Using Progression 1;
//+
Transfinite Line {6, 10} = 4 Using Progression 1;
//+
Transfinite Surface {1} = {1, 2, 3, 4};
//+
Transfinite Surface {2} = {12, 23, 7, 21};
//+
Transfinite Surface {3} = {21, 7, 8, 22};
//+
Transfinite Surface {4} = {22, 8, 24, 11};
//+
Transfinite Surface {5} = {23, 5, 6, 7};
//+
Transfinite Surface {6} = {8, 9, 10, 24};
//+
Transfinite Surface {7} = {13, 25, 15, 14};
//+
Transfinite Surface {8} = {17, 20, 19, 18};
//+
Recombine Surface {1, 2, 3, 4, 5, 6, 7, 8};
//+
Extrude {0, 0, 10} {
  Surface{1}; Surface{2}; Surface{3}; Surface{4}; Surface{5}; Surface{6}; Surface{7}; Surface{8}; Layers{11}; Recombine;
}
//+
Physical Surface("toolface") = {39, 43, 1, 52, 51, 179, 184, 7, 183, 175, 171, 206, 8, 197, 193, 205, 201};
//+
Physical Surface("toolfacecontact") = {47};
//+
Physical Surface("charpyface") = {2, 74, 73, 109, 118, 4, 96, 65, 161, 162, 113, 135, 5, 157, 6, 140, 69, 139, 153, 3, 131, 91};
//+
Physical Surface("charpyfacecontact") = {61, 105, 83};
//+
Physical Volume("volume") = {1, 2, 3, 4, 5, 6, 7, 8};
