<div>I will check it.</div>
<div> </div>
<div>Thanks.</div>
<div> </div>
<div>-Zhanping<br><br></div>
<div class="gmail_quote">On Sat, Apr 11, 2009 at 12:15 AM, Takuya OSHIMA <span dir="ltr">&lt;<a href="mailto:oshima@eng.niigata-u.ac.jp">oshima@eng.niigata-u.ac.jp</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Jie, Renato,<br><br>There had been a bug until ParaView 3.4 that led the volume of a wedge<br>to have been miscalculated as a negated volume of a tetrahedron.<br>
<a href="http://www.paraview.org/pipermail/paraview/2008-August/009246.html" target="_blank">http://www.paraview.org/pipermail/paraview/2008-August/009246.html</a><br><a href="http://paraview.org/Bug/view.php?id=7588" target="_blank">http://paraview.org/Bug/view.php?id=7588</a><br>
<br>The bug has been fixed with the recent CVS versions.<br><br>I can confirm that the bug also affects volume calculations of clipped<br>hexahedral meshes as well by Jie&#39;s test.vtk. If I try the .vtk with a<br>CVS version and follow Jie&#39;s procedure I get a volume of 4.95177e-13<br>
which is closer to the analytic value of 5.23599e-13. However if I<br>revert the bugfix (revert vtkWedge.cxx from the current revision 1.7<br>to ParaView 3.4&#39;s 1.5) I get the identical value with what Jie got,<br>3.32862e-13.<br>
<br>Takuya OSHIMA, Ph.D.<br>Faculty of Engineering, Niigata University<br>8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN<br><br><br>From: Renato Elias &lt;<a href="mailto:rnelias@gmail.com">rnelias@gmail.com</a>&gt;<br>
Subject: Re: [Paraview] Questions regarding: volume calculation, xyplot along a curve and tensor calculation<br>Date: Fri, 10 Apr 2009 22:39:36 -0300<br><br>&gt; It seems rounding errors... try to scale your model at least 100x to see<br>
&gt; what happens...<br>&gt;<br>&gt; Just to reforce Jie Xu&#39;s problem. It&#39;s not the first time the Integrate<br>&gt; Variable presents issues in volume calculations. Take a look:<br>&gt; <a href="http://markmail.org/message/67dkxpypfodylfnr#query:volume%20integration%20paraview%20renato+page:1+mid:67dkxpypfodylfnr+state:results" target="_blank">http://markmail.org/message/67dkxpypfodylfnr#query:volume%20integration%20paraview%20renato+page:1+mid:67dkxpypfodylfnr+state:results</a><br>
&gt;<br>&gt; In my case, I don&#39;t remember if the problem was solved....<br>&gt;<br>&gt; I tried to find my dataset to test it again but I haven&#39;t found (yet)....<br>&gt; :-(<br>&gt;<br>&gt; Renato.<br>&gt;<br>&gt;<br>
&gt;<br>&gt; On Fri, Apr 10, 2009 at 4:30 PM, Jie Xu &lt;<a href="mailto:victoryxj@gmail.com">victoryxj@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt;&gt; Hi Berk,<br>&gt;&gt;<br>&gt;&gt; Thanks for looking at my questions.<br>
&gt;&gt;<br>&gt;&gt; 1) I attached a sample data set: test.vtk, and the screenshot of my<br>&gt;&gt; paraview window, from which you can see that the clip is created at<br>&gt;&gt; (0,0,0) with radius of 50e-6, and the calculated volume is<br>
&gt;&gt; 3.32862e-13, which is much less than what it should be.<br>&gt;&gt; (Interestingly, in this specific case, the calculated volume is about<br>&gt;&gt; 2/pi times the real volume.)<br>&gt;&gt;<br>&gt;&gt; 2) Thanks for letting me know.<br>
&gt;&gt;<br>&gt;&gt; 3) Unfortunately, I have no experience with Python. Now I am trying to<br>&gt;&gt; see if I can use matlab to do the tensor calculates and modify the vtk<br>&gt;&gt; file readable by paraview.<br>&gt;&gt;<br>
&gt;&gt; Regards,<br>&gt;&gt; Jie<br>&gt;&gt;<br>&gt;&gt; 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;<br>&gt;&gt; wrote:<br>&gt;&gt; &gt; Hi Jie,<br>
&gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; 1) Volume calculation:<br>&gt;&gt; &gt;&gt; I found that the &quot;integrate variables&quot; over a sphere clip never gives<br>&gt;&gt; &gt;&gt; the correct volume. For example, I tried to use a very simple geometry<br>
&gt;&gt; &gt;&gt; and a very fine mesh (a 200x200x200 micron cube with 2 micron cube<br>&gt;&gt; &gt;&gt; elements), and use paraview to generate a sphere clip that has radius<br>&gt;&gt; &gt;&gt; of 50 micron in the center of that cube, then I apply the &quot;integrate<br>
&gt;&gt; &gt;&gt; variables&quot; filter to the clip and show the &quot;Cell Data&quot;, it gives a<br>&gt;&gt; &gt;&gt; volume of 4.78818e-13 instead of 5.236e-13, which is 4/3*pi*r^3. The<br>&gt;&gt; &gt;&gt; discrepancy is so large that it just cannot be due to the coarseness<br>
&gt;&gt; &gt;&gt; of the mesh. Different mesh and different size of clips gives<br>&gt;&gt; &gt;&gt; different discrepancies, and I cannot find any obvious relationship<br>&gt;&gt; &gt;&gt; between the paraview-calculated volume and the real volume.<br>
&gt;&gt; &gt;<br>&gt;&gt; &gt; When I create a 100^3 wavelet and clip it with a sphere of radius 20,<br>&gt;&gt; &gt; I am getting a volume of 33447.5 which is pretty close to the analytic<br>&gt;&gt; &gt; value of 33510.3. Can you send me a dataset that demonstrates this<br>
&gt;&gt; &gt; problem?<br>&gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; 2) X-Y plot: how can I do a xyplot of a scalar along a curved line?<br>&gt;&gt; &gt;&gt; For example, if I have the pressure field data from a<br>&gt;&gt; &gt;&gt; flow-around-a-cylinder case, I want to plot the pressure along the<br>
&gt;&gt; &gt;&gt; surface of the cylinder as a function of angle or arc length.<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; You can&#39;t, yet. I am working on that feature for the next release.<br>&gt;&gt; &gt;<br>&gt;&gt; &gt;&gt; 3) tensor calculation: I have the pressure field and velocity field<br>
&gt;&gt; &gt;&gt; calculated from a CFD tool (Transat in my case), how do I calculate<br>&gt;&gt; &gt;&gt; stress tensors at each point from P V field in paraview?<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; Let me ask a question back : do you have any Python knowledge? We are<br>
&gt;&gt; &gt; working on making this really simple but currently the array<br>&gt;&gt; &gt; calculator is too limited and cannot produce tensors. However, this is<br>&gt;&gt; &gt; doable using the programmable filter.<br>
&gt;&gt; &gt;<br>&gt;&gt; &gt; -berk<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>
</blockquote></div><br><br clear="all"><br>-- <br>Zhanping Liu, PhD<br>Kitware, Inc.<br>28 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-371-3971 x 138<br><a href="http://www.zhanpingliu.org">http://www.zhanpingliu.org</a><br>