[Gmsh] Inconsistency between "Inspect" and .msh file ?

Christophe Geuzaine cgeuzaine at ulg.ac.be
Sun Apr 22 15:26:29 CEST 2007


Olivier Castany wrote:
> Hello,
> 
> I created a mesh : torus.geo -> torus.msh. Then I inspected this mesh 
> with Gmsh 2.0.7 : I clicked on a triangle and the output reads :
> 
> "Element 395 :
> ...
>   Vertices: 24 2 41
> ..."
> 
> However, in the file torus.msh, the line corresponding to the element 
> 395 reads : "395 2 3 66 61 0 313 324 323" -> the vertices of the element 
> 395 are "313 324 323" and _not_ "24 2 41". According to the .msh file, 
> the vertices "24 2 41" are for the element 291 : "291 2 3 66 61 0 24 2 
> 41".
> 
> 
> All this seems inconsistent. Is there something I don't understand 
> properly ? Is there a bug ?

Hi Olivier - Gmsh renumbers the vertices and the elements when you save
the mesh (the numbering depends on which parts of the mesh you save, the
physical groups, the format of the mesh file, etc.). Just reload the 
mesh from the file if you want to compare the numbers with "Inspect".


> 
> 
> I also have another question probably not related to the former :
> 
> in the file torus.pro, the quantity "a2" of "Type Integral" is not 
> correctly computed... why ???

In an "Integral" quantity the coordinates of the "source" integration 
point are denoted by XS[], YS[] and ZS[]. X[], Y[] and Z[] will give you 
the coordinates of the "observation" point.

Cheers,

Christophe


> 
> Have a nice day,
> 
> O.C.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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