# negative volume in all cell data

**URL:** https://discourse.paraview.org/t/negative-volume-in-all-cell-data/14758
**Category:** ParaView Support
**Created:** [June 4, 2024, 2:02am UTC](https://discourse.paraview.org/t/negative-volume-in-all-cell-data/14758 "2024-06-04T02:02:45Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Basant\_Regmi](https://discourse.paraview.org/user_avatar/discourse.paraview.org/basant_regmi/32/14533_2.png) [@Basant\_Regmi](https://discourse.paraview.org/u/Basant_Regmi)
#### Post date: [June 4, 2024, 2:02am UTC](https://discourse.paraview.org/t/negative-volume-in-all-cell-data/14758/1 "2024-06-04T02:02:45Z")

</div>

I was trying to post process my CFD result of a blood vessel using paraview, When I was trying to check the volume using integrate variables, it is showing me the negative value for volume. I could not figure out the issue, I checked the cell size filter and notice that all the cell has the negative volume. Could anyone help me in this problem?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [June 4, 2024, 7:50am UTC](https://discourse.paraview.org/t/negative-volume-in-all-cell-data/14758/2 "2024-06-04T07:50:24Z")

</div>

You cells are problably inverted, with point order in the wrong order.

---

<div class="post-metadata">

### Author: ![Basant\_Regmi](https://discourse.paraview.org/user_avatar/discourse.paraview.org/basant_regmi/32/14533_2.png) [@Basant\_Regmi](https://discourse.paraview.org/u/Basant_Regmi)
#### Post date: [June 4, 2024, 1:32pm UTC](https://discourse.paraview.org/t/negative-volume-in-all-cell-data/14758/3 "2024-06-04T13:32:47Z")

</div>

How can I solve this issue? Could you please provide some information on how to invert the cells in correct order.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [June 4, 2024, 1:35pm UTC](https://discourse.paraview.org/t/negative-volume-in-all-cell-data/14758/4 "2024-06-04T13:35:17Z")

</div>

Please share your data

---

<div class="post-metadata">

### Author: ![Basant\_Regmi](https://discourse.paraview.org/user_avatar/discourse.paraview.org/basant_regmi/32/14533_2.png) [@Basant\_Regmi](https://discourse.paraview.org/u/Basant_Regmi)
#### Post date: [June 4, 2024, 1:55pm UTC](https://discourse.paraview.org/t/negative-volume-in-all-cell-data/14758/5 "2024-06-04T13:55:04Z")

</div>

You can access the data .vtk file using the link:  
[link](https://drive.google.com/file/d/1ilcORiPAPNsuzXMGGoswzm4tM2AvJh6l/view?usp=sharing)  
Thank you!

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [June 6, 2024, 8:10am UTC](https://discourse.paraview.org/t/negative-volume-in-all-cell-data/14758/6 "2024-06-06T08:10:22Z")

</div>

Im afraid such a filter does not exist, although it could be implemented.

You could just invert the sign of the result or fix your mesh during generation.

---

<div class="post-metadata">

### Author: ![Christos\_Tsolakis](https://discourse.paraview.org/user_avatar/discourse.paraview.org/christos_tsolakis/32/4450_2.png) [@Christos\_Tsolakis](https://discourse.paraview.org/u/Christos_Tsolakis)
#### Post date: [June 6, 2024, 1:14pm UTC](https://discourse.paraview.org/t/negative-volume-in-all-cell-data/14758/7 "2024-06-06T13:14:16Z")

</div>

As Mathieu mentioned there is no filter to do this. You can try however to modify the way you write the mesh. In particular, you will need to change the order of the vertices for each cell to match the VTK format:

 ![](https://discourse.paraview.org/uploads/default/original/2X/3/3215a9cadec613a37dbb8394a902ce062ee18e33.png)  
For example for tetrahedra in the image above the normal of the triangle (012) based on the right hand rule points to the same direction of that point 3 is.  
On the other hand on this tetrahedron extracted form your data it is the opposite:  
 ![Screenshot from 2024-06-06 09-06-21](https://discourse.paraview.org/uploads/default/original/2X/d/db1f28653d1751a9156f7d6c42f9913bb91cf7bd.png)

compare also the wedge with the reference one

 ![Screenshot from 2024-06-06 09-11-11](https://discourse.paraview.org/uploads/default/original/2X/b/bba21f696f3c5f3760ec7ad041f3830051446bb8.png)

---

<div class="post-metadata">

### Author: ![Basant\_Regmi](https://discourse.paraview.org/user_avatar/discourse.paraview.org/basant_regmi/32/14533_2.png) [@Basant\_Regmi](https://discourse.paraview.org/u/Basant_Regmi)
#### Post date: [June 6, 2024, 7:09pm UTC](https://discourse.paraview.org/t/negative-volume-in-all-cell-data/14758/8 "2024-06-06T19:09:21Z")

</div>

Thank you so much for the clarification.
