// Gmsh project created on Wed Aug 08 10:51:37 2007
r=0.5;
d=3;

Point(1) = {0,0,0,r};
Point(2) = {19.5,0,0,r};
Point(3) = {19.5,0,19.5,r};
Point(4) = {0,0,19.5,r};

Point(5) = {0,1,0,r};
Point(6) = {19.5,1,0,r};
Point(7) = {19.5,1,19.5,r};
Point(8) = {0,1,19.5,r};

Point(9) = {0,5,0,d};
Point(10) = {19.5,5,0,d};
Point(11) = {19.5,5,19.5,d};
Point(12) = {0,5,19.5,d};

Point(13) = {0,5.5,0,d};
Point(14) = {19.5,5.5,0,d};
Point(15) = {19.5,5.5,19.5,d};
Point(16) = {0,5.5,19.5,d};

Point(17) = {8.4,5.5,8.4,d};
Point(18) = {15,5.5,8.4,d};
Point(19) = {15,5.5,15,d};
Point(20) = {8.4,5.5,15,d};

Point(21) = {8.4,5.73,8.4,d};
Point(22) = {15,5.73,8.4,d};
Point(23) = {15,5.73,15,d};
Point(24) = {8.4,5.73,15,d};

//lignes

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

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

Line(9)={9,10};
Line(10)={10,11};
Line(11)={11,12};
Line(12)={12,9};

Line(13)={13,14};
Line(14)={14,15};
Line(15)={15,16};
Line(16)={16,13};

Line(17)={17,18};
Line(18)={18,19};
Line(19)={19,20};
Line(20)={20,17};


Line(21)={21,22};
Line(22)={22,23};
Line(23)={23,24};
Line(24)={24,21};


Line(251)={1,5};
Line(252)={5,9};
Line(253)={9,13};
Line(254)={17,21};

Line(261)={2,6};
Line(262)={6,10};
Line(263)={10,14};
Line(264)={18,22};

Line(271)={3,7};
Line(272)={7,11};
Line(273)={11,15};
Line(274)={19,23};

Line(281)={4,8};
Line(282)={8,12};
Line(283)={12,16};
Line(284)={20,24};

Line Loop(100) = {1,2,3,4};
Line Loop(110) = {5,6,7,8};
Line Loop(120) = {9,10,11,12};
Line Loop(130) = {13,14,15,16};


Line Loop(1) = {1,261,-5,-251};
Line Loop(5) = {5,262,-9,-252};
Line Loop(9) = {9,263,-13,-253};
Line Loop(13) = {17,264,-21,-254};
Line Loop(2) = {2,271,-6,-261};
Line Loop(6) = {6,272,-10,-262};
Line Loop(10) = {10,273,-14,-263};
Line Loop(14) = {18,274,-22,-264};
Line Loop(3) = {-3,271,7,-281};
Line Loop(7) = {-7,272,11,-282};
Line Loop(11) = {-11,273,15,-283};
Line Loop(15) = {-19,274,23,-284};
Line Loop(4) = {-4,281,8,-251};
Line Loop(8) = {-8,282,12,-252};
Line Loop(12) = {-12,283,16,-253};
Line Loop(16) = {-20,284,24,-254};

Plane Surface(100) = {100};
Plane Surface(110) = {110};
Plane Surface(120) = {120};
Plane Surface(130) = {130};


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


Surface Loop(1) = {100,110,1,2,3,4};
Surface Loop(2) = {110,120,5,6,7,8};
Surface Loop(3) = {120,130,9,10,11,12};


Volume(1) = {1};
Volume(2) = {2};
Volume(3) = {3};

Physical Surface(1) = {1,2,3,4};
Physical Surface(2) = {5,6,7,8};
Physical Surface(3) = {9,10,11,12};
Physical Surface(4) = {1,2,3,4};
Physical Surface(100) = {100};
Physical Surface(110) = {110};
Physical Surface(120) = {120};
Physical Surface(130) = {130};

Physical Volume(1) = {1};
Physical Volume(2) = {2};
Physical Volume(3) = {3};

Transfinite Line {13,16,15,14,9,12,10,11,7,6,5,8,3,4,1,2,262,263,261,272,273,271,282,283,281,253,252,251} = 10 Using Bump 1;
Transfinite Surface {12} = {13,9,12,16};
Transfinite Surface {9} = {13,9,10,14};
Transfinite Surface {10} = {14,10,15,11};
Transfinite Surface {11} = {16,15,11,12};
Transfinite Surface {8} = {9,12,5,8};
Transfinite Surface {5} = {9,10,6,5};
Transfinite Surface {6} = {10,11,7,6};
Transfinite Surface {7} = {12,11,7,8};
Transfinite Surface {4} = {5,1,8,4};
Transfinite Surface {1} = {6,5,1,2};
Transfinite Surface {2} = {6,7,3,2};
Transfinite Surface {3} = {8,7,3,4};
Transfinite Surface {100} = {2,3,4,1};
Transfinite Surface {110} = {8,7,6,5};
Transfinite Surface {120} = {9,10,11,12};
Transfinite Surface {130} = {13,16,15,14};
Transfinite Volume{3} = {13,9,10,14,16,12,11,15};
Transfinite Volume{2} = {9,10,11,12,5,6,7,8};
Transfinite Volume{1} = {5,6,7,8,1,2,3,4};
// Transfinite Volume{4} = {3,15,14,2,13,1,16,4};
Recombine Surface {12,9,10,6,2,5,1,3,7,11,8,4,100,110,120,130};
// Recombine Surface {1:500} = 200;
