//================================================
//    Maillage du cube
//================================================

shrink = 0;

DecalX=0.e-1;	// Decalage Horizontal

DecalY=0.;	// Decalage Vertical

Point(1) = { 0, 	0+DecalY, 	0, 0.5};
Point(2) = {-0.5, 	0.5+DecalY, 	0, 0.5};
Point(3) = { 0.5, 	0.5+DecalY, 	0, 0.5};
Point(4) = { 0.5+DecalX, 0, -shrink, 0.5};
Point(5) = {-0.5+DecalX, 0, -shrink, 0.5};
Line (1) = {1, 2};
Line (2) = {2, 3};
Line (3) = {3, 1};
Line (4) = {4, 5};

Nb_Elem=1;

Transfinite Line{1} = Nb_Elem+1;
Transfinite Line{2} = Nb_Elem+1;
Transfinite Line{3} = Nb_Elem+1;
Transfinite Line{4} = Nb_Elem+2;	// Cube

Line Loop(5) = {2,3,1};
Plane Surface(1) = {5};

// Extrude Line {Num. de la ligne , {Dx,Dy,Dz}} 
//              {Layers{Nb de couche, Numero donné à la couche, épaisseur relative de la couche};};

Extrude Line {4, {0,-1.,0}}
	     {Layers{Nb_Elem,20,1};  Recombine;};

Extrude Surface {1, {0,0,1}}
	     {Layers{Nb_Elem,1000,1}; Recombine;};
Extrude Surface {9, {0,0,1.+2*shrink}}
	     {Layers{Nb_Elem,2000,1}; Recombine;};

Physical Volume(1)={1000,2000};

