# Volume of liquid of multiple threshold regions

**URL:** https://discourse.paraview.org/t/volume-of-liquid-of-multiple-threshold-regions/4197
**Category:** ParaView Support
**Created:** [April 27, 2020, 11:06pm UTC](https://discourse.paraview.org/t/volume-of-liquid-of-multiple-threshold-regions/4197 "2020-04-27T23:06:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![carl](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/ee7513/32.png) [@carl](https://discourse.paraview.org/u/carl)
#### Post date: [April 27, 2020, 11:06pm UTC](https://discourse.paraview.org/t/volume-of-liquid-of-multiple-threshold-regions/4197/1 "2020-04-27T23:06:08Z")

</div>

Hi,

I’m have a simulation and would like to output the volume of liquid (fraction liquid scalar x cell volume) for multiple threshold defined regions using paraview. Is this possible?

I can find the total volume of the all selected threshold regions cells (threshold \> Integrate Variables \> cell data), but can’t work out how to;  
a) how to calculate the volume of liquid for each cell based on the fraction liquid value and cell size  
b) get the volume of liquid in each discrete region (sum of a) for each region)

Any help would be appreciated.

 ![Example multi-regions for vol calculation](https://discourse.paraview.org/uploads/default/original/2X/2/2e3af2567cc686009506fd82fc099a6e14a3d870.jpeg)

---

<div class="post-metadata">

### Author: ![Kenneth\_Moreland](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kenneth_moreland/32/15033_2.png) [@Kenneth\_Moreland](https://discourse.paraview.org/u/Kenneth_Moreland)
#### Post date: [April 27, 2020, 11:43pm UTC](https://discourse.paraview.org/t/volume-of-liquid-of-multiple-threshold-regions/4197/2 "2020-04-27T23:43:36Z")

</div>

You can use the `Mesh Quality` filter to compute the volume of each cell. From there you can use the `Calculator` filter to compute the liquid volume for each cell.

From there you can use the `Threshold` and `Integrate Variables` filters as you are doing to get the sum liquid volume of the selected cells.

---

<div class="post-metadata">

### Author: ![Kenneth\_Moreland](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kenneth_moreland/32/15033_2.png) [@Kenneth\_Moreland](https://discourse.paraview.org/u/Kenneth_Moreland)
#### Post date: [April 28, 2020, 2:31pm UTC](https://discourse.paraview.org/t/volume-of-liquid-of-multiple-threshold-regions/4197/3 "2020-04-28T14:31:03Z")

</div>

Actually, rather than use the `Mesh Quality` filter, you can use the `Cell Size` filter. It’s the same computation, but a bit easier to use.
