cl__1 = 1;

//BOTTOM CIRCLE - MOTHERBORE // 
Point(1) = {0, 0, 0, 1};
Point(2) = {0.09, 0, 0, 1};
Point(3) = {-0.09, 0, 0, 1};
Point(4) = {0, 0.09, 0, 1};
Point(5) = {0, -0.09, 0, 1};

//TOP CIRCLE - MOTHERBORE//
Point(6) = {-0.09, 0, 2.1, 1};
Point(7) = {0, 0, 2.1, 1};
Point(8) = {0, 0.09, 2.1, 1};
Point(13) = {0.09, 0, 2.1, 1};
Point(18) = {0, -0.09, 2.1, 1};

//ARCS OF TOP CIRCLE - MOTHERBORE  // 
Circle(1) = {6, 7, 8};
Circle(2) = {8, 7, 13};
Circle(3) = {13, 7, 18};
Circle(4) = {18, 7, 6};

Line Loop(1) = {1,2,3,4};
Plane Surface(1) = {1};  //TOP OF WELL//


//ARCS OF BOTTOM OF MOTHERBORE  // 
Circle(5) = {4, 1, 2};
Circle(6) = {3, 1, 4};
Circle(7) = {5, 1, 3};
Circle(8) = {5, 1, 2};

//MOTHERBORE-VERTICAL LINES//
Line(9) = {6, 3};
Line(10) = {5, 18};
Line(11) = {13, 2};
Line(12) = {4, 8};

Line Loop(2) = {8, -5, -6, -7};
Plane Surface(2) = {2}; //BOTTOM OF MOTHERBORE//

Line Loop(3) = {7, -9, -4, -10};
Plane Surface(3) = {3};  // WALL OF MB//
Line Loop(4) = {8, -11, 3, -10};
Plane Surface(4) = {4}; //WALL OF MB //
Line Loop(5) = {5, -11, -2, -12};
Plane Surface(5) = {5}; //WALL OF MB//
Line Loop(6) = {1, -12, -6, -9};
Plane Surface(6) = {6}; //WALL OF MB//


//POINTS OF THE DOMAIN //

Point(100) = {1, -0.5, -2.1, 1};
Point(101) = {-1, -0.5, -2.1, 1};
Point(102) = {-1, -0.5, 2.1, 1};
Point(103) = {1, -0.5, 2.1, 1};
Point(104) = {1, 0.5, 2.1, 1};
Point(105) = {-1, 0.5, 2.1, 1};
Point(106) = {-1, 0.5, -2.1, 1};
Point(107) = {1, 0.5, -2.1, 1};

Line(13) = {105, 104};
Line(14) = {104, 103};
Line(15) = {103, 102};
Line(16) = {102, 105};
Line(17) = {105, 106};
Line(18) = {102, 101};
Line(19) = {101, 106};
Line(20) = {101, 100};
Line(21) = {100, 107};
Line(22) = {107, 106};
Line(23) = {107, 104};
Line(24) = {100, 103};

Line Loop(7) = {13, 14, 15, 16};
//Plane Surface(7) = {7}; //TOP OF DOMAIN//
Line Loop(8) = {13, -23, 22, -17};
Plane Surface(8) = {8}; //BACK OF DOMAIN//
Line Loop(9) = {14, -24, 21, 23};
Plane Surface(9) = {9};//RIGHT OF DOMAIN//
Line Loop(10) = {15, 18, 20, 24};
Plane Surface(10) = {10};//FRONT OF DOMAIN//
Line Loop(11) = {19, -17, -16, 18};
Plane Surface(11) = {11};//LEFT OF DOMIAN//
Line Loop(12) = {22, -19, 20, 21};
Plane Surface(12) = {12};//BOTTOM OF DOMAIN//

Plane Surface(20) = {1,7}; //TOP OF DOMAIN WITHOUT WELL OUTLET//

//PHYSICAL SURFACES//



Physical Surface(1) = {20}; //TOP OF DOMAIN WITHOUT WELL OUTLET//

Physical Surface(2) = {8}; //BACK OF DOMAIN//

Physical Surface(3) = {9};//RIGHT OF DOMAIN//

Physical Surface(4) = {10};//FRONT OF DOMAIN//

Physical Surface(5) = {11};//LEFT OF DOMAIN//

Physical Surface(6) = {12};//BOTTOM OF DOMAIN//

Physical Surface(7) = {20}; //TOP OF WELL//


//PHYSICAL VOLUMES// 

Surface Loop(25) = {3, 2, 4, 5, 1, 6};
Volume(26) = {25};

Surface Loop(27) = {8, 9, 10, 11, 12,20};

Volume(29) = {25, 27};

Physical Volume(1) = {26};//MOTHERBORE//
Physical Volume(2) = {29}; //DOMAIN//

Physical Volume(30) = {29};
Physical Volume(31) = {26};
