[Gmsh] Reg: Plotting vectors on a triangle at seven different locations

Christophe Geuzaine cgeuzaine at uliege.be
Mon Dec 28 16:15:33 CET 2020



> On 23 Dec 2020, at 19:17, Raavi M. Mohindar Rao <raavi.mohindar.rao at gmail.com> wrote:
> 
> Hello all,
> 
> I am looking forward to plotting vectors on a triangle at seven quadrature points.
> 
> $ElementData
> 1
> "TE_(1,0)"
> 1
> 0.0
> 3
> 0
> 3
> 322
> 193 0 -26.7446 0
> 194 -0 -18.9127 -0
> ....
> $EndElementData
> 
> With the above definition, gmsh always plots on the centroid of the triangle.
> 
> Is there a way to tell gmsh, where to plot instead at the centroid?
> 

Currently you can plot at the barycenter or at the nodes (cf. the View.GlyphLocation option ; Tools->Options->View->Aspect in the GUI).

You could of course reinterpolate at the quadrature points using e.g. the API.

Christophe


> Regards,
> 
> Rao
> _______________________________________________
> 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://people.montefiore.ulg.ac.be/geuzaine







More information about the gmsh mailing list