<HTML>
<HEAD>
<TITLE>Re: [Paraview] choppy derivatives</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>If you are looking to try different derivative filters, you could try the one of the Gradient filters. &nbsp;They are similar to the ComputeDerivatives filter but should allow you to combine steps 2 and 3 together. &nbsp;There is also recently added a vtkDataSetGradient filter to VTK. &nbsp;It&#8217;s not exposed in the ParaView filters list, but you could do so by plugging in some XML specification. &nbsp;It provides yet another way to take the gradient and can go directly from cell data to point data.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 3/27/10 11:45 PM, &quot;Peter Brady&quot; &lt;<a href="petertbrady@gmail.com">petertbrady@gmail.com</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hello list,<BR>
<BR>
I have a 3D dataset with a Temperature field.  My goal is to insert a sphere source and determine the tangential temperature gradient on the surface of the sphere at various zenith angles.  The data is output from the code as cell data.  Here is the way I'm doing this (through pvpython)<BR>
<BR>
1.  Apply CellDataToPointData <BR>
2.  Apply ComputeDerivatives (to get the 'Scalar Gradient')<BR>
3.  Apply another CellDataToPointData (to turn the derivatives into point data)<BR>
4.  Resample the data from step 3 with my sphere source.<BR>
5.  Use a programmable filter to combine the xyz derivatives appropriately.<BR>
<BR>
The data is reasonable but it's fairly choppy.  When I look at dT/dx, dT/dy, and dT/dz (before I project them onto the sphere surface), and plot them at a particular zenith angle around the azimuth of the drop, dTdx and dTdy are very smooth but dT/dz is fairly choppy (especially above the equator of the drop).  If I expand my sphere to a place where there's not a lot going on dT/dz seems to calm down.  Is there a way to smooth dT/dz in the location of interest or should I try to write my own derivatives filter to make them smoother?  Any thoughts?<BR>
<BR>
Thanks,<BR>
Peter. <BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
&nbsp;&nbsp;&nbsp;**** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kenneth Moreland<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sandia National Laboratories<BR>
*********** &nbsp;<BR>
*** *** *** &nbsp;email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** &nbsp;*** &nbsp;** &nbsp;phone: (505) 844-8919<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;web: &nbsp;&nbsp;<a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>