lc = 0.1;
lo = 2;
la = 1;
ep = 0.5;
nbc = 20;
Point(1) = {lo,0,0,lc};
Point(2) = {lo,la,0,lc};
Point(3) = {0,la,0,lc};
Point(4) = {0,0,0,lc};
Point(5) = {lo,0,ep,lc};
Point(6) = {lo,la,ep,lc};
Point(7) = {0,la,ep,lc};
Point(8) = {0,0,ep,lc};
Line(1) = {3,2};
Line(2) = {2,1};
Line(3) = {1,4};
Line(4) = {4,3};
Line(5) = {7,6};
Line(6) = {6,5};
Line(7) = {5,8};
Line(8) = {8,7};
Line(9) = {1,5};
Line(10) = {2,6};
Line(11) = {3,7};
Line(12) = {4,8};
Line Loop(13) = {8,-11,-4,12};
Plane Surface(14) = {13};
Line Loop(15) = {5,-10,-1,11};
Plane Surface(16) = {15};
Line Loop(17) = {6,-9,-2,10};
Plane Surface(18) = {17};
Line Loop(19) = {7,-12,-3,9};
Plane Surface(20) = {19};
Line Loop(21) = {1,2,3,4};
Plane Surface(22) = {21};
Line Loop(23) = {5,6,7,8};
Plane Surface(24) = {23};
Surface Loop(25) = {24,16,18,20,14,22};
Volume(26) = {25};
Physical Surface(27) = {16,18,20,14};
Physical Surface(28) = {24};
Physical Surface(29) = {22};
Physical Volume(30) = {26};
Transfinite Line {5} = nbc Using Progression 1;
Transfinite Line {10} = nbc Using Progression 1;
Transfinite Line {1} = nbc Using Progression 1;
Transfinite Line {11} = nbc Using Progression 1;
Transfinite Line {8} = nbc Using Progression 1;
Transfinite Line {4} = nbc Using Progression 1;
Transfinite Line {12} = nbc Using Progression 1;
Transfinite Line {3} = nbc Using Progression 1;
Transfinite Line {7} = nbc Using Progression 1;
Transfinite Line {6} = nbc Using Progression 1;
Transfinite Line {9} = nbc Using Progression 1;
Transfinite Line {2} = nbc Using Progression 1;
Transfinite Surface {24} = {6,7,8,5};
Transfinite Surface {18} = {2,6,5,1};
Transfinite Surface {22} = {3,2,1,4};
Transfinite Surface {14} = {7,8,4,3};
Transfinite Surface {16} = {2,3,7,6};
Transfinite Surface {20} = {1,5,8,4};
Recombine Surface {24};
Recombine Surface {18};
Recombine Surface {22};
Recombine Surface {14};
Recombine Surface {16};
Recombine Surface {20};
Transfinite Volume{26} = {7,6,5,8,3,2,1,4};
