[Gmsh] Closed loop error in simple 2D mesh

Balemans, C. C.Balemans at tue.nl
Mon Jun 1 13:50:16 CEST 2015


Dear all,

I'm trying to generate a simple 1st-order 2D mesh using the following geo-file:
-------------------------------------------------------
Merge "geometry.msh";
Line Loop(5) = {1,2,3,4};
Plane Surface(1) = {5};
-------------------------------------------------------

In the msh-file (geometry.msh) the outer lines of the geometry (a square) are given:
-------------------------------------------------------
$MeshFormat
2.2 0 8
$EndMeshFormat
$Nodes
8
1  0.00000000E+00  0.00000000E+00  0.00000000E+00
2  5.00000000E-01  0.00000000E+00  0.00000000E+00
3  1.00000000E+00  0.00000000E+00  0.00000000E+00
4  0.00000000E+00  5.00000000E-01  0.00000000E+00
5  1.00000000E+00  5.00000000E-01  0.00000000E+00
6  0.00000000E+00  1.00000000E+00  0.00000000E+00
7  5.00000000E-01  1.00000000E+00  0.00000000E+00
8  1.00000000E+00  1.00000000E+00  0.00000000E+00
$EndNodes
$Elements
8
1 1 2 0 1 1 2
2 1 2 0 1 2 3
3 1 2 0 2 3 5
4 1 2 0 2 5 8
5 1 2 0 3 8 7
6 1 2 0 3 7 6
7 1 2 0 4 6 4
8 1 2 0 4 4 1
$EndElements
-------------------------------------------------------

When I try to execute the code, the error 'The 1D mesh seems not to be forming a closed loop' occurs. Does anybody have an idea what could be the issue?
Thanks in advance!

Kind regards,
Caroline

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20150601/cf8b3f8c/attachment.html>