<div dir="ltr"><div>Hi,<br><br>The Extract Surface filter will subdivide the quadratic triangles into 4 linear triangles so the resulting field will likely lose some accuracy but not as bad as just going from a quadratic triangle to a linear triangle. I added in a bug for our bug tracker at <a href="http://www.paraview.org/Bug/view.php?id=15299">http://www.paraview.org/Bug/view.php?id=15299</a> so that gradients can be computed properly for quadratic triangles. I don't have an estimate of when this may get fixed though. If this is urgent enough, this is open-source software so you can try fixing it yourself and sending in a patch. Otherwise, Kitware does provide support contracts for fixing such bugs (see <a href="http://www.kitware.eu/products/support.html">http://www.kitware.eu/products/support.html</a> for more info).<br><br></div><div>Regards,<br>Andy<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 1, 2015 at 5:30 AM, Eleonora Piersanti <span dir="ltr"><<a href="mailto:eleonorapiersanti@yahoo.it" target="_blank">eleonorapiersanti@yahoo.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12px"><div>Sorry to bother you again. But I need the gradient to make some verifications in my code. Then, the problem of accuracy is quite important. Is there any way to compute the gradient without using the Extract surface filter?</div><div><br></div><div dir="ltr">Kind regards,</div><div dir="ltr">Eleonora<br></div><div><span></span></div> <div><br><br></div><div style="display:block"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div dir="ltr"> <font face="Arial"> Il Venerdì 30 Gennaio 2015 11:48, Andy Bauer <<a href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>> ha scritto:<br> </font> </div><div><div class="h5"> <br><br> <div><div><div><div dir="ltr"><div><div>It looks like the Gradient of Unstructured Data Set filter isn't working properly with quadratic triangles. Try using the Extract Surface filter before computing gradients to convert them into linear triangles.<br clear="none"><br clear="none"></div>If you want to get more familiar with using ParaView, the ParaView tutorial at <a rel="nofollow" shape="rect" href="http://www.paraview.org/Wiki/The_ParaView_Tutorial" target="_blank">http://www.paraview.org/Wiki/The_ParaView_Tutorial</a> is a good place to start.<br clear="none"><br clear="none"></div>Regards,<br clear="none">Andy<br clear="none"></div><div><div><br clear="none"><div>On Fri, Jan 30, 2015 at 6:25 AM, Eleonora Piersanti <span dir="ltr"><<a rel="nofollow" shape="rect" href="mailto:eleonorapiersanti@yahoo.it" target="_blank">eleonorapiersanti@yahoo.it</a>></span> wrote:<br clear="none"><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12px"><div><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12px"><div><span></span></div> <div><div dir="ltr"><span>Thank you for the answer.</span></div><div dir="ltr">I think that the dimension of the .vtk file was too big. You can download the .vtk file from:</div><div dir="ltr"><br clear="none"></div><div><a rel="nofollow" shape="rect" href="https://www.dropbox.com/s/o1wjo2brsaeu5ag/stability_realEigU_up0.vtk.tar.gz?dl=0" target="_blank">https://www.dropbox.com/s/o1wjo2brsaeu5ag/stability_realEigU_up0.vtk.tar.gz?dl=0</a><br clear="none"></div><span></span><div dir="ltr"><span><br clear="none"></span></div><div dir="ltr"><span>In which sense should I use the Slice filter? Sorry but I am quite new with paraview.</span></div><div dir="ltr"><span>Kind regards,</span></div><div dir="ltr"><span>Eleonora</span></div><div></div><div> </div></div><div> </div><div><div style="display:block"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div dir="ltr"> <font face="Arial"> Il Venerdì 30 Gennaio 2015 11:16, Eleonora Piersanti <<a rel="nofollow" shape="rect" href="mailto:eleonorapiersanti@yahoo.it" target="_blank">eleonorapiersanti@yahoo.it</a>> ha scritto:<br clear="none"> </font> </div><div><div> <br clear="none"><br clear="none"> <div><div><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12px"><div dir="ltr"><span>Thank you, for the answer.</span></div><div dir="ltr"><span>I attach the .vtk file. In which sense should I use the Slice filter? Sorry but I am quite new with paraview.</span></div><div dir="ltr"><span>Kind regards,</span></div><div dir="ltr"><span>Eleonora</span></div> <div><br clear="none"><br clear="none"></div><div><div style="display:block"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div dir="ltr"> <font face="Arial"> Il Venerdì 30 Gennaio 2015 10:59, Andy Bauer <<a rel="nofollow" shape="rect" href="mailto:andy.bauer@kitware.com" target="_blank">andy.bauer@kitware.com</a>> ha scritto:<br clear="none"> </font> </div> <br clear="none"><br clear="none"> <div><div><div><div dir="ltr"><div>Your description is a bit vague to diagnose the issue. Can you share your data set? I was able to use the Wavelet source, use the Slice filter and then use the Gradient of Unstructured Data Set without any issues. Can you see if that works for you?<br clear="none"><br clear="none"></div>Regards,<br clear="none">Andy<br clear="none"></div><div><br clear="none"><div>On Fri, Jan 30, 2015 at 5:26 AM, Eleonora Piersanti <span dir="ltr"><<a rel="nofollow" shape="rect" href="mailto:eleonorapiersanti@yahoo.it" target="_blank">eleonorapiersanti@yahoo.it</a>></span> wrote:<br clear="none"><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12px"><div dir="ltr">Hi to everyone!</div><div dir="ltr">I computed with finite elements a 2D velocity field. I plotted without any problem the velocity field with paraview. I would like to compute the gradient. <br clear="none"></div><div dir="ltr">I tried Filters->Gradient of Unstructured Data Set but without succes.</div><div dir="ltr">Can you help me?</div><div dir="ltr">Thanks, <br clear="none"></div><div dir="ltr">Nora<br clear="none"></div></div></div></div><br clear="none">_______________________________________________<br clear="none">
Powered by <a rel="nofollow" shape="rect" href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br clear="none">
<br clear="none">
Visit other Kitware open-source projects at <a rel="nofollow" shape="rect" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br clear="none">
<br clear="none">
Please keep messages on-topic and check the ParaView Wiki at: <a rel="nofollow" shape="rect" href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br clear="none">
<br clear="none">
Search the list archives at: <a rel="nofollow" shape="rect" href="http://markmail.org/search/?q=ParaView" target="_blank">http://markmail.org/search/?q=ParaView</a><br clear="none">
<br clear="none">
Follow this link to subscribe/unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div><br clear="none"><br clear="none"></div> </div> </div> </div></div> </div></div></div><br clear="none"><br clear="none"></div> </div></div></div> </div> </div></div> </div></div></div></div></div></blockquote></div><br clear="none"></div></div></div></div><br><br></div> </div></div></div> </div> </div> </div></div></blockquote></div><br></div>