// Gmsh project created on Fri Jan 31 11:01:30 2014

Mesh.CharacteristicLengthExtendFromBoundary=0;
Mesh.Algorithm=2;

lc=2.;
N=50;
L=10;
H1=100;
H2=110;

Point(1) = {0, 0, 0, lc};
Point(2) = {L, 0, 0, lc};
Point(3) = {0, -H1, 0, lc};
Point(4) = {L, -H2, 0, lc};
Point(5) = {0, -H1/2, 0, lc};

Line(1) = {1, 2};
Line(2) = {2, 4};
Line(3) = {4, 3};
Line(4) = {3, 1};
Circle(5) = {1, 5, 3};
Line Loop(6) = {1, 2, 3, 4};
Plane Surface(1) = {6};
Line Loop(8) = {5, 4};
Plane Surface(2) = {8};

Transfinite Line {1, 3} = 2;
Transfinite Line {2} = N;
Transfinite Line {4} = N+1;

View "comments" {
  // Add a text string in window coordinates, 10 pixels from the left
  // and 10 pixels from the bottom:
  T2(850, 100, 0){ "Mesh.Algorithm=2" };
  T2(850, 120, 0){ "Mesh.CharacteristicLengthExtendFromBoundary=0" };
};


Color Yellow{ Surface{1}; }
Color Red{ Surface{2}; }
