It seems rounding errors... try to scale your model at least 100x to see what happens...<br><br>Just to reforce Jie Xu&#39;s problem. It&#39;s not the first time the Integrate Variable presents issues in volume calculations. Take a look: <a href="http://markmail.org/message/67dkxpypfodylfnr#query:volume%20integration%20paraview%20renato+page:1+mid:67dkxpypfodylfnr+state:results">http://markmail.org/message/67dkxpypfodylfnr#query:volume%20integration%20paraview%20renato+page:1+mid:67dkxpypfodylfnr+state:results</a> <br>

<br>In my case, I don&#39;t remember if the problem was solved....<br><br>I tried to find my dataset to test it again but I haven&#39;t found (yet).... :-(<br><br>Renato.<br><br><br><br><div class="gmail_quote">On Fri, Apr 10, 2009 at 4:30 PM, Jie Xu <span dir="ltr">&lt;<a href="mailto:victoryxj@gmail.com">victoryxj@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Berk,<br>
<br>
Thanks for looking at my questions.<br>
<br>
1) I attached a sample data set: test.vtk, and the screenshot of my<br>
paraview window, from which you can see that the clip is created at<br>
(0,0,0) with radius of 50e-6, and the calculated volume is<br>
3.32862e-13, which is much less than what it should be.<br>
(Interestingly, in this specific case, the calculated volume is about<br>
2/pi times the real volume.)<br>
<br>
2) Thanks for letting me know.<br>
<br>
3) Unfortunately, I have no experience with Python. Now I am trying to<br>
see if I can use matlab to do the tensor calculates and modify the vtk<br>
file readable by paraview.<br>
<br>
Regards,<br>
<font color="#888888">Jie<br>
</font><div><div></div><div class="h5"><br>
On Thu, Apr 9, 2009 at 1:51 PM, Berk Geveci &lt;<a href="mailto:berk.geveci@kitware.com">berk.geveci@kitware.com</a>&gt; wrote:<br>
&gt; Hi Jie,<br>
&gt;<br>
&gt;&gt; 1) Volume calculation:<br>
&gt;&gt; I found that the &quot;integrate variables&quot; over a sphere clip never gives<br>
&gt;&gt; the correct volume. For example, I tried to use a very simple geometry<br>
&gt;&gt; and a very fine mesh (a 200x200x200 micron cube with 2 micron cube<br>
&gt;&gt; elements), and use paraview to generate a sphere clip that has radius<br>
&gt;&gt; of 50 micron in the center of that cube, then I apply the &quot;integrate<br>
&gt;&gt; variables&quot; filter to the clip and show the &quot;Cell Data&quot;, it gives a<br>
&gt;&gt; volume of 4.78818e-13 instead of 5.236e-13, which is 4/3*pi*r^3. The<br>
&gt;&gt; discrepancy is so large that it just cannot be due to the coarseness<br>
&gt;&gt; of the mesh. Different mesh and different size of clips gives<br>
&gt;&gt; different discrepancies, and I cannot find any obvious relationship<br>
&gt;&gt; between the paraview-calculated volume and the real volume.<br>
&gt;<br>
&gt; When I create a 100^3 wavelet and clip it with a sphere of radius 20,<br>
&gt; I am getting a volume of 33447.5 which is pretty close to the analytic<br>
&gt; value of 33510.3. Can you send me a dataset that demonstrates this<br>
&gt; problem?<br>
&gt;<br>
&gt;&gt; 2) X-Y plot: how can I do a xyplot of a scalar along a curved line?<br>
&gt;&gt; For example, if I have the pressure field data from a<br>
&gt;&gt; flow-around-a-cylinder case, I want to plot the pressure along the<br>
&gt;&gt; surface of the cylinder as a function of angle or arc length.<br>
&gt;<br>
&gt; You can&#39;t, yet. I am working on that feature for the next release.<br>
&gt;<br>
&gt;&gt; 3) tensor calculation: I have the pressure field and velocity field<br>
&gt;&gt; calculated from a CFD tool (Transat in my case), how do I calculate<br>
&gt;&gt; stress tensors at each point from P V field in paraview?<br>
&gt;<br>
&gt; Let me ask a question back : do you have any Python knowledge? We are<br>
&gt; working on making this really simple but currently the array<br>
&gt; calculator is too limited and cannot produce tensors. However, this is<br>
&gt; doable using the programmable filter.<br>
&gt;<br>
&gt; -berk<br>
&gt;<br>
</div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br>