<font size=2 face="sans-serif">I have a couple of questions about using
the Programmable Filter. I have imported Tecplot dataset with the following
data: coordsX, coordsY, coordsZ, Q1, Q2, Q3, Q4, Q5. </font>
<br>
<br><font size=2 face="sans-serif">How would I create a new data array
that is Q2^2+Q3^2+Q4^2? </font>
<br>
<br><font size=2 face="sans-serif">How would I create a new vector data
array (similar to Q2*iHat+Q3*jHat+Q4*kHat in the Calculator Filter)?</font>
<br>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">David E DeMarle &lt;dave.demarle@kitware.com&gt;</font>
<br><font size=1 color=#5f5f5f face="sans-serif">To: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">DParker@chromalloy.com</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Cc: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">paraview@paraview.org</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size=1 face="sans-serif">09/10/2010 01:24 PM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">Re: [Paraview]
Calculator Filter -- Gradient</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Sent by: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=1 face="sans-serif">paraview-bounces@paraview.org</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>On Fri, Sep 10, 2010 at 1:10 PM, &nbsp;&lt;DParker@chromalloy.com&gt;
wrote:<br>
&gt; I have two somewhat related questions:<br>
&gt;<br>
&gt; 1. Is it possible to calculate a gradient vector using the calculator<br>
&gt; filter?<br>
<br>
No. The calculator filter does only element wise (cell by cell or<br>
point by point) computations. To compute the gradient you need<br>
information from neighboring elements.<br>
<br>
&gt;<br>
&gt; 2. Is it possible to define a new data array using a Python script
without<br>
&gt; the calculator filter? Currently, I am using several Calculator Filters
to<br>
&gt; calculate CFD flow variables from the conservative variables. I use
a Python<br>
&gt; script to create the Calculator Filters, but I'm wondering if I can
avoid<br>
&gt; the Calculator Filter and directly generate new data arrays for plotting.<br>
&gt;<br>
<br>
Not with a python script (under the python shell) since that runs on<br>
the client and can't really manipulate the data (which lives on the<br>
server) directly. However, the python programmable filter runs on the<br>
server, and with that you can create new arrays, and access<br>
neighboring elements as well.<br>
See </font></tt><a href=http://www.paraview.org/Wiki/Python_Programmable_Filter><tt><font size=2>http://www.paraview.org/Wiki/Python_Programmable_Filter</font></tt></a><tt><font size=2>
for examples.<br>
<br>
&gt; David Parker<br>
&gt; _______________________________________________<br>
&gt; Powered by </font></tt><a href=www.kitware.com><tt><font size=2>www.kitware.com</font></tt></a><tt><font size=2><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; </font></tt><a href=http://www.kitware.com/opensource/opensource.html><tt><font size=2>http://www.kitware.com/opensource/opensource.html</font></tt></a><tt><font size=2><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt; </font></tt><a href=http://paraview.org/Wiki/ParaView><tt><font size=2>http://paraview.org/Wiki/ParaView</font></tt></a><tt><font size=2><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; </font></tt><a href=http://www.paraview.org/mailman/listinfo/paraview><tt><font size=2>http://www.paraview.org/mailman/listinfo/paraview</font></tt></a><tt><font size=2><br>
&gt;<br>
&gt;<br>
_______________________________________________<br>
Powered by </font></tt><a href=www.kitware.com><tt><font size=2>www.kitware.com</font></tt></a><tt><font size=2><br>
<br>
Visit other Kitware open-source projects at </font></tt><a href=http://www.kitware.com/opensource/opensource.html><tt><font size=2>http://www.kitware.com/opensource/opensource.html</font></tt></a><tt><font size=2><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: </font></tt><a href=http://paraview.org/Wiki/ParaView><tt><font size=2>http://paraview.org/Wiki/ParaView</font></tt></a><tt><font size=2><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
</font></tt><a href=http://www.paraview.org/mailman/listinfo/paraview><tt><font size=2>http://www.paraview.org/mailman/listinfo/paraview</font></tt></a><tt><font size=2><br>
</font></tt>
<br>