[Gmsh] Closed loop error in simple 2D mesh

Balemans, C. C.Balemans at tue.nl
Thu Jun 4 11:50:42 CEST 2015


I’m not providing the id of elements to the Line Loop; I define the lines in the 5th column of the Element-part of the msh-file.
Furthermore, when I define 3 elements on each side, the program works perfectly. Unfortunately, when I use only 2 elements, like described below, it gives an error.

Kind regards,
Caroline

From: Vincent Huber [mailto:vincent.huber at cemosis.fr]
Sent: donderdag 4 juni 2015 11:02
To: Balemans, C.
Cc: gmsh at geuz.org
Subject: Re: [Gmsh] Closed loop error in simple 2D mesh


Line Loop asks for elementary Ids, you are providing the id of elements.
Actually, your msh files does not describe elementary lines :-/

the expression-list on the right hand side should contain the identification numbers of all the elementary lines that constitute the line loop.
​

2015-06-01 13:50 GMT+02:00 Balemans, C. <C.Balemans at tue.nl<mailto:C.Balemans at tue.nl>>:
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


_______________________________________________
gmsh mailing list
gmsh at geuz.org<mailto:gmsh at geuz.org>
http://www.geuz.org/mailman/listinfo/gmsh



--
Docteur Ingénieur de recherche
CeMoSiS<http://www.cemosis.fr> - vincent.huber at cemosis.fr<mailto:vincent.huber at cemosis.fr>
Tel: +33 (0)3 68 85 02 06
IRMA - 7, rue René Descartes
67 000 Strasbourg

[http://www.google.com/a/cpanel/cemosis.fr/images/logo.gif]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20150604/42bc8f0a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 2392 bytes
Desc: image001.png
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20150604/42bc8f0a/attachment.png>