[Gmsh] Gradient plugin generating all zero vectors.

Christophe Geuzaine cgeuzaine at uliege.be
Tue Dec 18 23:08:47 CET 2018



> On 18 Dec 2018, at 18:41, Josh Thompson <jthompson at mevex.com> wrote:
> 
> Hello,
> 
> If I attempt to run the Gradient plugin on any view in any mesh, the resulting view is composed completely of zero vectors. What could be causing this behaviour?
> 

The gradient is taken per-element. Maybe you have a constant-per-element dataset? In that case you could smooth the field by node-averaging it with Plugin(Smooth), before taking the gradient.

Christophe

> Thanks,
> Joshua Thompson
> _______________________________________________
> 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

Free software: http://gmsh.info | http://getdp.info | http://onelab.info




More information about the gmsh mailing list