// Variables
long = 8 ;
larg = 5 ;
ch_length = 0.4 ;
ch_rep1_x = 0.8 ;
ch_rep1_y = 0.8 ;
ch_rep1_larg = 1.6 ;
ch_rep1_long = 3.2 ;

// Geometrie dalle
Point(1) = {0, 0, 0, ch_length} ;
Point(2) = {larg, 0, 0, ch_length} ;
Point(3) = {larg, long, 0, ch_length} ;
Point(4) = {0, long, 0, ch_length} ;

// Geometrie charge repartie 1
Point(5) = {ch_rep1_x, ch_rep1_y, 0, ch_length} ;
Point(6) = {ch_rep1_x + ch_rep1_larg, ch_rep1_y, 0, ch_length} ;
Point(7) = {ch_rep1_x + ch_rep1_larg, ch_rep1_y + ch_rep1_long, 0, ch_length} ;
Point(8) = {ch_rep1_x, ch_rep1_y + ch_rep1_long, 0, ch_length} ;

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

// Contour charge repartie 1
Line(5) = {5, 6} ;
Line(6) = {6, 7} ;
Line(7) = {7, 8} ;
Line(8) = {8, 5} ;

// Surface dalle
Line Loop (9) = {1, 2, 3, 4, 5, 6, 7, 8} ;
Plane Surface (9) = {9} ;

// Surface charge repartie 1
Line Loop (10) = {5, 6, 7, 8} ;
Plane Surface (10) = {10} ;

// Affinage des lignes
Transfinite Line {1, 3} = 1 + larg * 1 / ch_length ;
Transfinite Line {2, 4} = 1 + long * 1 / ch_length ;
Transfinite Line {5, 7} = 1 + ch_rep1_larg * 1 / ch_length ;
Transfinite Line {6, 8} = 1 + ch_rep1_long * 1 / ch_length ;

Transfinite Surface {9} = {1, 2, 3, 4} ;
Transfinite Surface {10} = {5, 6, 7, 8} ;

Recombine Surface {9} ;
Recombine Surface {10} ;

