[Gmsh] Problem vith NodeData vector field

Christophe Geuzaine cgeuzaine at uliege.be
Wed Jan 23 18:31:35 CET 2019



> On 23 Jan 2019, at 18:25, Sandris Lācis <sandris.lacis at lu.lv> wrote:
> 
> I try to create post processing *.msh file with vectors placed at nodes.
> I do not succeed: gmsh shows one vector per element.

By default Gmsh indeed displays vector glyphs at the barycenter. Use View.GlyphLocation=2 to display them at the nodes. In the GUI: View->Aspect->Glyph location.

Christophe


> 
> Sandris
> --
> Here is *msh file:
> ----------
> $MeshFormat
> 2.2 0 8
> $EndMeshFormat
> $Nodes
> 6
> 1 0.0 0.0 0.0
> 2 1.0 0.0 0.0
> 3 1.0 1.0 0.0
> 4 0.0 1.0 0.0
> 5 2.0 0.0 0.0
> 6 2.0 1.0 0.0
> $EndNodes
> $Elements
> 4
> 1 2 2 99 2 1 2 3
> 2 2 2 99 2 2 5 3
> 3 2 2 99 2 1 3 4
> 4 2 2 99 2 3 5 6
> $EndElements
> $NodeData
> 1
> "A scalar view"
> 1
> 0.0
> 3
> 0
> 1
> 6
> 1 0.0
> 2 0.0
> 3 1.0
> 4 1.0
> 5 0.0
> 6 1.0
> $EndNodeData
> $NodeData
> 1
> "A vector view"
> 1
> 0.0
> 3
> 0
> 3
> 6
> 1 0.0 0.2 0.3
> 2 0.1 0.2 0.1
> 3 0.2 0.1 0.1
> 4 0.0 0.4 0.5
> 5 0.2 0.1 0.0
> 6 0.4 0.0 0.1
> $EndNodeData
> $ElementData
> 1
> "Element based vector view"
> 1
> 0.0
> 3
> 0
> 3
> 4
> 1 0.0 0.0 1.0
> 2 0.5 0.5 0.5
> 3 0.5 -0.5 0.0
> 4 0.0 1.0 0.0
> $EndElementData
> 
> 
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

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






More information about the gmsh mailing list