cl__1 = 1;

mx = 51;
my = 1;
mz = 17;

Lx = 2000;
Lz = 600;

Ly = (Lx/mx + Lz/mz)/2*my;


Point(1) = {0  , 0  , 0  };//, 20};
Point(2) = {0  , 0  , Lz };//, 20};
Point(3) = {0  , Ly , Lz };//, 20};
Point(4) = {0  , Ly , 0  };//, 20};
Point(5) = {Lx , 0  , 0  };//, 20};
Point(6) = {Lx , 0  , Lz };//, 20};
Point(7) = {Lx , Ly , Lz };//, 20};
Point(8) = {Lx , Ly , 0  };//, 20};
Line(1) = {2, 1};
Line(2) = {1, 4};
Line(3) = {4, 3};
Line(4) = {3, 2};
Line(5) = {6, 5};
Line(6) = {5, 8};
Line(7) = {8, 7};
Line(8) = {7, 6};
Line(9) = {2, 6};
Line(10) = {3, 7};
Line(11) = {4, 8};
Line(12) = {1, 5};
Line Loop(13) = {1, 2, 3, 4};
Plane Surface(14) = {13};
Line Loop(15) = {5, 6, 7, 8};
Plane Surface(16) = {15};
Line Loop(17) = {9, 5, -12, -1};
Plane Surface(18) = {17};
Line Loop(19) = {12, 6, -11, -2};
Plane Surface(20) = {19};
Line Loop(21) = {11, 7, -10, -3};
Plane Surface(22) = {21};
Line Loop(23) = {4, 9, -8, -10};
Plane Surface(24) = {23};
Surface Loop(25) = {24, 14, 18, 16, 20, 22};
Volume(26) = {25};

//Y
Transfinite Line{1} = mz + 1 Using Progression 1.0;
Transfinite Line{3} = mz + 1 Using Progression 1.0;
Transfinite Line{5} = mz + 1 Using Progression 1.0;
Transfinite Line{7} = mz + 1 Using Progression 1.0;

//Z
Transfinite Line{2} = my + 1 Using Progression 1.0;
Transfinite Line{4} = my + 1 Using Progression 1.0;
Transfinite Line{6} = my + 1 Using Progression 1.0;
Transfinite Line{8} = my + 1 Using Progression 1.0;

//X
Transfinite Line{9} = mx + 1 Using Progression 1.0;
Transfinite Line{10} = mx + 1 Using Progression 1.0;
Transfinite Line{11} = mx + 1 Using Progression 1.0;
Transfinite Line{12} = mx + 1 Using Progression 1.0;


Transfinite Surface(14);
Transfinite Surface(16);
Transfinite Surface(18);
Transfinite Surface(20);
Transfinite Surface(22);
Transfinite Surface(24);

//Recombine Surface {14,16,18,20,22,24};



Transfinite Volume(26);

left = 14;
right = 16;
top = 24;
bottom = 20;
front = 22;
back = 18;

physical_left = 27;
Physical Surface(physical_left) = {left};
physical_right = 28;
Physical Surface(physical_right) = {right};
physical_top = 29;
Physical Surface(physical_top) = {top};
physical_bottom = 30;
Physical Surface(physical_bottom) = {bottom};
physical_front = 31;
Physical Surface(physical_front) = {front};
physical_back = 32;
Physical Surface(physical_back) = {back};
