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:[email protected]] Sent: donderdag 4 juni 2015 11:02 To: Balemans, C. Cc: [email protected] 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. <[email protected]<mailto:[email protected]>>: 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 [email protected]<mailto:[email protected]> http://www.geuz.org/mailman/listinfo/gmsh -- Docteur Ingénieur de recherche CeMoSiS<http://www.cemosis.fr> - [email protected]<mailto:[email protected]> 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]
_______________________________________________ gmsh mailing list [email protected] http://www.geuz.org/mailman/listinfo/gmsh
