[Gmsh] Problem with node numbering, is this a bug?

Christophe Geuzaine cgeuzaine at ulg.ac.be
Mon Mar 3 17:11:55 CET 2008


kamyar malakpoor wrote:
> Dear All,
>  
> I have compiled the following .geo file. In the option I choose second 
> order mesh and will see the node connectivity:
>  
> elem 1:  1 2 5 6 7 9 13 12
> elem 2:  6 5 3 4 13 8 10 11
>  
> But after saving to .msh file I get a totally different connectivity. Is 
> this bug or should I add some line to my code to get what I see in the gui?

Yes, Gmsh renumbers the nodes when it saves the file. Just load the mesh 
file after it has been saved to check the numbers.


>  
> Thanks
> Kamyar
>  
>  
> 
> lc = 0.009;
> Point(1) = {0, 0, 0, lc};
> Point(2) = {1, 0,  0, lc} ;
> Point(3) = {1, 3, 0, lc} ;
> Point(4) ={0,3,0,lc} ;
> Line(1) = {1,2} ; 
> Line(2) = {3,2} ; 
> Line(3) = {3,4} ; 
> Line(4) = {4,1} ;
> Line Loop(5) = {4,1,-2,3} ;
> Plane Surface(6) = {5} ;
> Transfinite Line{4} = 3 ;
> Transfinite Line{1} = 2 ;
> Transfinite Line{3} = 2 ;
> Transfinite Line{2} = 3 ;
> Transfinite Surface{6} = {1,2,3,4};
> Recombine Surface{6};
> Mesh.Smoothing = 100;
> 
> 
> ------------------------------------------------------------------------
> Never miss a thing. Make Yahoo your homepage. 
> <http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh


-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine