<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><br></div><div><br></div><blockquote type="cite"><div><b>Expéditeur:</b> Josh Thompson <<a href="mailto:jthompson@mevex.com">jthompson@mevex.com</a>><br><b>Date:</b> 18 décembre 2018 à 23:16:23 UTC+1<br><b>Destinataire:</b> Christophe Geuzaine <<a href="mailto:cgeuzaine@uliege.be">cgeuzaine@uliege.be</a>><br><b>Objet:</b> <b>Rép : [Gmsh] Gradient plugin generating all zero vectors.</b><br><br></div></blockquote><blockquote type="cite"><div><div dir="ltr">Yes, that appears to have been the case! Using smooth first yields reasonable results. Thank you.<div><br></div><div>Regards,</div><div>Josh Thompson</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Dec 18, 2018 at 5:08 PM Christophe Geuzaine <<a href="mailto:cgeuzaine@uliege.be">cgeuzaine@uliege.be</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> On 18 Dec 2018, at 18:41, Josh Thompson <<a href="mailto:jthompson@mevex.com" target="_blank">jthompson@mevex.com</a>> wrote:<br>
> <br>
> Hello,<br>
> <br>
> 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?<br>
> <br>
<br>
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.<br>
<br>
Christophe<br>
<br>
> Thanks,<br>
> Joshua Thompson<br>
> _______________________________________________<br>
> gmsh mailing list<br>
> <a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a><br>
> <a href="http://onelab.info/mailman/listinfo/gmsh" rel="noreferrer" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a><br>
<br>
— <br>
Prof. Christophe Geuzaine<br>
University of Liege, Electrical Engineering and Computer Science <br>
<a href="http://www.montefiore.ulg.ac.be/~geuzaine" rel="noreferrer" target="_blank">http://www.montefiore.ulg.ac.be/~geuzaine</a><br>
<br>
Free software: <a href="http://gmsh.info" rel="noreferrer" target="_blank">http://gmsh.info</a> | <a href="http://getdp.info" rel="noreferrer" target="_blank">http://getdp.info</a> | <a href="http://onelab.info" rel="noreferrer" target="_blank">http://onelab.info</a><br>
<br>
</blockquote></div>
</div></blockquote></body></html>