<div dir="auto">The volume is nothing more that the integral of one (1). So make a calculator with a new variable named "rho" and with the value 1 then apply the intégrate variable filter to compute the volume.<div dir="auto"><br></div><div dir="auto">Be careful no to have bars in your mesh, they will also contribute to the volume calculation.</div><div dir="auto"><br></div><div dir="auto">In general you must filter your mesh by dimensionality (only 3D cell or only 2D...)<br><div dir="auto"><br></div><div dir="auto">Hope it helps</div><div dir="auto"><br></div><div dir="auto">Felipe</div><div dir="auto"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">Le 4 mars 2017 7:46 PM, "Gallagher, Timothy P" <<a href="mailto:tim.gallagher@gatech.edu">tim.gallagher@gatech.edu</a>> a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_-3062059906157923861divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<p>I was suggesting trying a pipeline like:</p>
<p><br>
</p>
<p>OpenFOAM Reader -> Threshold -> IntegrateVariables -> IntegrateVariables</p>
<p><br>
</p>
<p>So your second IV filter is applied to the first IV filter. <br>
</p>
<p><br>
</p>
<p>Again, no idea if that will help. Hopefully somebody else can come along and give you a solution.</p>
<p><br>
</p>
<p>Tim<br>
</p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div id="m_-3062059906157923861divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Saideep Pavuluri <<a href="mailto:Saideep.Pavuluri@pet.hw.ac.uk" target="_blank">Saideep.Pavuluri@pet.hw.ac.uk</a><wbr>><br>
<b>Sent:</b> Saturday, March 4, 2017 1:44 PM<br>
<b>To:</b> Gallagher, Timothy P; <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
<b>Subject:</b> RE: Finding volume enclosed by a contour.</font>
<div> </div>
</div>
<div>
<div>
<p style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Hi Tim;</span></p>
<p style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
<p style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Yes I do think so it is somehow related to the OpenFOAM reader. I just tried a tutorial case from the CFD package and I still have the same data set with no additional data related
 to the volume/ area/ length.</span></p>
<p style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
<p style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">I am not sure if I understood your idea right, do you mean apply integrateVariables twice on the same threshold data set?
</span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black"> </span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black">“Sorry, I tried!”</span></p>
<p style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">No worries this has been a long standing problem for my work. I am really happy that you shared your ideas with me.</span></p>
<p style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
<p style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Saideep</span></p>
<p style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" lang="EN-US"> Gallagher, Timothy P [mailto:<a href="mailto:tim.gallagher@gatech.edu" target="_blank">tim.gallagher@gatech.<wbr>edu</a>]
<br>
<b>Sent:</b> 04 March 2017 18:07<br>
<b>To:</b> Saideep Pavuluri <<a href="mailto:Saideep.Pavuluri@pet.hw.ac.uk" target="_blank">Saideep.Pavuluri@pet.hw.ac.uk</a><wbr>>; <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
<b>Subject:</b> Re: Finding volume enclosed by a contour.</span></p>
</div>
</div>
<p style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
 </p>
<div id="m_-3062059906157923861divtagdefaultwrapper">
<p><span style="font-family:"Calibri",sans-serif;color:black">Hmmm, interesting. It must be a function of the type of data from the OpenFOAM reader and I am unfamiliar with that reader.
</span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black"> </span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black">All of my datasets are structured and behave the way I mentioned earlier. I'm not sure how to get the volume from the dataset you have. </span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black"> </span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black">Somebody else will have to chime in on this one. Just out of curiosity, if you IntegrateVariables again, does it condense the data into a single set of values? (That's a totally random guess --
 maybe the first IntegrateVariables is coming up with the cell-averaged values from an unstructured dataset, and the second would do the integral of all the cell-averages).</span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black"> </span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black">Sorry, I tried!</span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black"> </span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black">Tim</span></p>
<p style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-family:"Calibri",sans-serif;color:black"> </span></p>
<div>
<div style="text-align:center;margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif" align="center">
<span style="font-family:"Calibri",sans-serif;color:black">
<hr align="center" width="98%" size="2">
</span></div>
<div id="m_-3062059906157923861divRplyFwdMsg">
<p style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> Saideep Pavuluri <<a href="mailto:Saideep.Pavuluri@pet.hw.ac.uk" style="color:blue;text-decoration:underline" target="_blank">Saideep.Pavuluri@pet.hw.ac.uk</a><wbr>><br>
<b>Sent:</b> Saturday, March 4, 2017 1:00 PM<br>
<b>To:</b> Gallagher, Timothy P; <a href="mailto:paraview@paraview.org" style="color:blue;text-decoration:underline" target="_blank">
paraview@paraview.org</a><br>
<b>Subject:</b> RE: Finding volume enclosed by a contour.</span><span style="font-family:"Calibri",sans-serif;color:black">
</span></p>
<div>
<p style="margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif">
<span style="font-family:"Calibri",sans-serif;color:black"> </span></p>
</div>
</div>
<div>
<div>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Tim,</span><span style="color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><span style="color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">I did try to vary from pointData to cellData but I see the same fields present. That is, I see no additional field being added.</span><span style="color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><span style="color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Attached is a screenshot (all the data from U are the variables being computed from my solver). I tried it over 4.x and 5.x versions of paraview so, I guess I am doing something
 wrong. </span><span style="color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><span style="color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Saideep</span><span style="color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><span style="color:black"></span></p>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black" lang="EN-US">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black" lang="EN-US"> Gallagher, Timothy P [<a href="mailto:tim.gallagher@gatech.edu" style="color:blue;text-decoration:underline" target="_blank">mailto:tim.gallagher@gatech.<wbr>edu</a>]
<br>
<b>Sent:</b> 04 March 2017 17:36<br>
<b>To:</b> Saideep Pavuluri <<a href="mailto:Saideep.Pavuluri@pet.hw.ac.uk" style="color:blue;text-decoration:underline" target="_blank">Saideep.Pavuluri@pet.hw.ac.uk</a><wbr>>;
<a href="mailto:paraview@paraview.org" style="color:blue;text-decoration:underline" target="_blank">
paraview@paraview.org</a><br>
<b>Subject:</b> Re: Finding volume enclosed by a contour.</span><span style="color:black"></span></p>
</div>
</div>
<p><span style="color:black"> </span></p>
<div id="m_-3062059906157923861divtagdefaultwrapper">
<p><span style="font-family:"Calibri",sans-serif;color:black">The IntegrateVariables filter creates a spreadsheet of PointData (or CellData, depending on where your data is stored in the filter just before IntegrateVariables) with the integral of your data
 over the volume/area/length depending on if it is 3D/2D/1D data respectively. </span>
</p>
<p><span style="font-family:"Calibri",sans-serif;color:black"> </span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black">It also adds a field to the CellData array that will be Volume/Area/Length respectively.</span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black"> </span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black">My guess is if you aren't seeing it immediately it is because you are looking at the PointData array and not the CellData array. In the SpreadSheetView that opens up, change the Attribute dropdown
 from Point Data to Cell Data.</span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black"> </span><span style="color:black"></span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black">Also, as a note -- the values for your variables (pressure, velocity, whatever) are multiplied by the length scale, so if you want the average value in the domain, you need to divide it by the length
 scale.</span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black"> </span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black">Tim</span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black"> </span></p>
<div>
<div style="text-align:center;margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif" align="center">
<span style="font-family:"Calibri",sans-serif;color:black">
<hr align="center" width="98%" size="2">
</span></div>
<div id="m_-3062059906157923861divRplyFwdMsg">
<p><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> Saideep Pavuluri <<a href="mailto:Saideep.Pavuluri@pet.hw.ac.uk" style="color:blue;text-decoration:underline" target="_blank">Saideep.Pavuluri@pet.hw.ac.uk</a><wbr>><br>
<b>Sent:</b> Saturday, March 4, 2017 12:30 PM<br>
<b>To:</b> Gallagher, Timothy P; <a href="mailto:paraview@paraview.org" style="color:blue;text-decoration:underline" target="_blank">
paraview@paraview.org</a><br>
<b>Subject:</b> RE: Finding volume enclosed by a contour.</span><span style="font-family:"Calibri",sans-serif;color:black">
</span><span style="color:black"></span></p>
<div>
<p><span style="font-family:"Calibri",sans-serif;color:black"> </span><span style="color:black"></span></p>
</div>
</div>
<div>
<div>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Thanks Tim;</span><span style="font-family:"Calibri",sans-serif;color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><span style="font-family:"Calibri",sans-serif;color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">I could precisely extract the bubble using the threshold filter as you said (attached picture).
</span><span style="font-family:"Calibri",sans-serif;color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><span style="font-family:"Calibri",sans-serif;color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Coming to the 2<sup>nd</sup> step: I applied the integrate variables filter on the threshold data but I get the general data set values within individual cells like the computed
 velocity, pressure, etc…. </span><span style="font-family:"Calibri",sans-serif;color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><span style="font-family:"Calibri",sans-serif;color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">How do I integrate the the region in space to find the enclosed volume?</span><span style="font-family:"Calibri",sans-serif;color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><span style="font-family:"Calibri",sans-serif;color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Sorry, if it’s a basic question.</span><span style="font-family:"Calibri",sans-serif;color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><span style="font-family:"Calibri",sans-serif;color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Saideep  </span><span style="font-family:"Calibri",sans-serif;color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span><span style="font-family:"Calibri",sans-serif;color:black"></span></p>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black" lang="EN-US">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black" lang="EN-US"> Gallagher, Timothy P [<a href="mailto:tim.gallagher@gatech.edu" style="color:blue;text-decoration:underline" target="_blank">mailto:tim.gallagher@gatech.<wbr>edu</a>]
<br>
<b>Sent:</b> 04 March 2017 17:09<br>
<b>To:</b> Saideep Pavuluri <<a href="mailto:Saideep.Pavuluri@pet.hw.ac.uk" style="color:blue;text-decoration:underline" target="_blank">Saideep.Pavuluri@pet.hw.ac.uk</a><wbr>>;
<a href="mailto:paraview@paraview.org" style="color:blue;text-decoration:underline" target="_blank">
paraview@paraview.org</a><br>
<b>Subject:</b> Re: Finding volume enclosed by a contour.</span><span style="font-family:"Calibri",sans-serif;color:black"></span></p>
</div>
</div>
<p><span style="font-family:"Calibri",sans-serif;color:black"> </span></p>
<div id="m_-3062059906157923861divtagdefaultwrapper">
<p><span style="font-family:"Calibri",sans-serif;color:black">Your best bet would be to use the Threshold filter to extract the region where the scalar is greater (or less than) 0.5 and then use the IntegrateVariables filter on the Threshold.
</span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black"> </span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black">It's not entirely clear your exact pipeline, but it sounds like you are using the IntegrateVariables filter on the Contour, which would give you the surface area of the region instead.</span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black"> </span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black">Tim</span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black"> </span></p>
<div>
<div style="text-align:center;margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif" align="center">
<span style="font-family:"Calibri",sans-serif;color:black">
<hr align="center" width="98%" size="2">
</span></div>
<div id="m_-3062059906157923861divRplyFwdMsg">
<p><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> ParaView <<a href="mailto:paraview-bounces@paraview.org" style="color:blue;text-decoration:underline" target="_blank"><span style="color:#0563c1">paraview-bounces@paraview.org</span></a><wbr>>
 on behalf of Saideep Pavuluri <<a href="mailto:Saideep.Pavuluri@pet.hw.ac.uk" style="color:blue;text-decoration:underline" target="_blank"><span style="color:#0563c1">Saideep.Pavuluri@pet.hw.ac.uk</span></a><wbr>><br>
<b>Sent:</b> Saturday, March 4, 2017 11:36 AM<br>
<b>To:</b> <a href="mailto:paraview@paraview.org" style="color:blue;text-decoration:underline" target="_blank">
<span style="color:#0563c1">paraview@paraview.org</span></a><br>
<b>Subject:</b> [Paraview] Finding volume enclosed by a contour.</span><span style="font-family:"Calibri",sans-serif;color:black">
</span></p>
<div>
<p><span style="font-family:"Calibri",sans-serif;color:black"> </span></p>
</div>
</div>
<div>
<div>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">Hi guys;</span><span style="font-family:"Calibri",sans-serif;color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> </span><span style="font-family:"Calibri",sans-serif;color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">I am using a numerical method (Volume of fluid, just for information) to look at the breaking of a bubble in a micro-channel. Attached picture.</span><span style="font-family:"Calibri",sans-serif;color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> </span><span style="font-family:"Calibri",sans-serif;color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">As mostly, the bubbles are of uniform size, I would like to know the volume of any one bubble formed.
</span><span style="font-family:"Calibri",sans-serif;color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> </span><span style="font-family:"Calibri",sans-serif;color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">The bubble is represented by a scalar data set represented by 1 and bounded by the same data set with values 0.</span><span style="font-family:"Calibri",sans-serif;color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> </span><span style="font-family:"Calibri",sans-serif;color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">I think to clip the region enclosing one bubble and draw a contour where the scalar value is 0.5. Now, I tried the integrate variables filter but I did not find a data representing
 the volume.  Any idea how can I get the volume enclosed by this contour?</span><span style="font-family:"Calibri",sans-serif;color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> </span><span style="font-family:"Calibri",sans-serif;color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">Any help appreciated.</span><span style="font-family:"Calibri",sans-serif;color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> </span><span style="font-family:"Calibri",sans-serif;color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">Thanks;</span><span style="font-family:"Calibri",sans-serif;color:black"></span></p>
<p><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">SaiD</span><span style="font-family:"Calibri",sans-serif;color:black"></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/<wbr>ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/paraview</a><br>
<br></blockquote></div></div>