<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" 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 tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Saideep Pavuluri <Saideep.Pavuluri@pet.hw.ac.uk><br>
<b>Sent:</b> Saturday, March 4, 2017 1:44 PM<br>
<b>To:</b> Gallagher, Timothy P; paraview@paraview.org<br>
<b>Subject:</b> RE: Finding volume enclosed by a contour.</font>
<div> </div>
</div>
<div>
<div style="">
<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:tim.gallagher@gatech.edu]
<br>
<b>Sent:</b> 04 March 2017 18:07<br>
<b>To:</b> Saideep Pavuluri <Saideep.Pavuluri@pet.hw.ac.uk>; paraview@paraview.org<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="divtagdefaultwrapper">
<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="divRplyFwdMsg">
<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;">Saideep.Pavuluri@pet.hw.ac.uk</a>><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;">
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;">mailto:tim.gallagher@gatech.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;">Saideep.Pavuluri@pet.hw.ac.uk</a>>;
<a href="mailto:paraview@paraview.org" style="color: blue; text-decoration: underline;">
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="divtagdefaultwrapper">
<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="divRplyFwdMsg">
<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;">Saideep.Pavuluri@pet.hw.ac.uk</a>><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;">
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;">mailto:tim.gallagher@gatech.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;">Saideep.Pavuluri@pet.hw.ac.uk</a>>;
<a href="mailto:paraview@paraview.org" style="color: blue; text-decoration: underline;">
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="divtagdefaultwrapper">
<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="divRplyFwdMsg">
<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;"><span style="color:#0563C1">paraview-bounces@paraview.org</span></a>>
 on behalf of Saideep Pavuluri <<a href="mailto:Saideep.Pavuluri@pet.hw.ac.uk" style="color: blue; text-decoration: underline;"><span style="color:#0563C1">Saideep.Pavuluri@pet.hw.ac.uk</span></a>><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;">
<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>
</body>
</html>