I have a question in gmsh...
The programm doesnt understand to draw the circle right so outside, then its a tunnel... i dont know what i am doiung wrong.. what should i change?
// 1. Rectangular geometry (model domain)
Point(1) = {-20, -20, 0, 1.0}; // Bottom-left
Point(2) = {20, -20, 0, 1.0}; // Bottom-right
Point(3) = {20, 20, 0, 1.0}; // Top-right
Point(4) = {-20, 20, 0, 1.0}; // Top-left
// 2. Boundary lines for the rectangle
Line(1) = {1, 2};
Line(2) = {2, 3};
Line(3) = {3, 4};
Line(4) = {4, 1};
// 3. Define tunnel opening
Point(5) = {-2.65, -2.875, 0, 0.5}; // Bottom-left edge of the tunnel
Point(6) = {2.65, -2.875, 0, 0.5}; // Bottom-right edge of the tunnel
Point(7) = {-2.65, 0, 0, 0.5}; // Top-left edge of the tunnel
Point(

= {2.65, 0, 0, 0.5}; // Top-right edge of the tunnel
Point(9) = {0, 2.875, 0, 0.5}; // Center of the arc
// 4. Lines for the tunnel opening
Line(5) = {5, 6}; // Bottom of the tunnel
Line(6) = {5, 7}; // Left wall
Line(7) = {6, 8}; // Right wall
Circle(

= {7, 9, 8}; // Tunnel arc (corrected point order)
// 5. Define surfaces
Line Loop(10) = {1, 2, 3, 4}; // Rectangle boundary
Line Loop(11) = {5, 7, -8, -6}; // Tunnel opening
Plane Surface(12) = {10, 11}; // Surface with tunnel cutout
// 6. Mesh refinement (finer around the tunnel)
Field[1] = Attractor;
Field[1].NodesList = {7, 8, 9}; // Focus on the arc
Field[2] = Threshold;
Field[2].IField = 1;
Field[2].LcMin = 0.1; // Finest value
Field[2].LcMax = 2.0; // Coarsest value
Field[2].DistMin = 3.0;
Field[2].DistMax = 10.0;
Background Field = 2;
// 7. Generate mesh
Mesh 2;
Thank you