[Gmsh] Unable to create Simple Mesh

Vikram Singh vikramsingh001 at gmail.com
Tue Feb 23 16:42:32 CET 2016


I am unable to create a simple 2D mesh.

I need to create a structured mesh for a rectangular domain.

I divide the domain into two parts. I want different boundary conditions on
the bottom part for the front part and the part behind.

Point(1) = {0, 0, 0, 0.1};
Point(2) = {0, 1, 0, 0.1};
Point(3) = {-0.35, 0, 0, 0.1};
Point(4) = {2, 0, 0, 0.1};
Point(5) = {-0.35, 1, 0, 0.1};
Point(6) = {2, 1, 0, 0.1};
Line(3) = {1, 3};
Line(4) = {3, 4};
Line(5) = {5, 2};
Line(6) = {2, 6};
Line(7) = {3, 5};
Line(9) = {4, 6};

Now, GMSH stops making sense after this.  I try to create a plane surface
and this is what GMSH does.

Line Loop(10) = {4, 9, -6, -5, -7};
Plane Surface(11) = {10};

As you can see, 3 is not there in the line loop. And the mesh completely
ignores Point 1.

What is happening?

Vikram
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20160223/7436ea98/attachment.html>


More information about the gmsh mailing list