[Gmsh] Fwd: Gradient plugin generating all zero vectors.

cgeuzaine at uliege.be cgeuzaine at uliege.be
Tue Dec 18 23:26:07 CET 2018



> Expéditeur: Josh Thompson <jthompson at mevex.com>
> Date: 18 décembre 2018 à 23:16:23 UTC+1
> Destinataire: Christophe Geuzaine <cgeuzaine at uliege.be>
> Objet: Rép :⁨ [Gmsh] Gradient plugin generating all zero vectors.⁩
> 
> Yes, that appears to have been the case! Using smooth first yields reasonable results. Thank you.
> 
> Regards,
> Josh Thompson
> 
>> On Tue, Dec 18, 2018 at 5:08 PM Christophe Geuzaine <cgeuzaine at uliege.be> wrote:
>> 
>> 
>> > 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
>> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20181218/c00e4352/attachment-0001.html>


More information about the gmsh mailing list