[Gmsh] Closed loop error in simple 2D mesh

Vincent Huber vincent.huber at cemosis.fr
Thu Jun 4 11:01:53 CEST 2015


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>:

>  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
> http://www.geuz.org/mailman/listinfo/gmsh
>
>


-- 
Docteur Ingénieur de recherche
CeMoSiS <http://www.cemosis.fr> - vincent.huber at cemosis.fr
Tel: +33 (0)3 68 8*5 02 06*
IRMA - 7, rue René Descartes
67 000 Strasbourg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20150604/00204ce0/attachment.html>