# Calculating the divergence in paraview, Gradient filter

**URL:** https://discourse.paraview.org/t/calculating-the-divergence-in-paraview-gradient-filter/6220
**Category:** ParaView Support
**Tags:** vtk
**Created:** [January 13, 2021, 2:18pm UTC](https://discourse.paraview.org/t/calculating-the-divergence-in-paraview-gradient-filter/6220 "2021-01-13T14:18:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Renard](https://discourse.paraview.org/user_avatar/discourse.paraview.org/renard/32/5701_2.png) [@Renard](https://discourse.paraview.org/u/Renard)
#### Post date: [January 13, 2021, 2:18pm UTC](https://discourse.paraview.org/t/calculating-the-divergence-in-paraview-gradient-filter/6220/1 "2021-01-13T14:18:25Z")

</div>

Hi,  
There used to be a quite useful filter in Paraview called the **GradientOfUnstructuredGrid** , which I was using to calculate the divergence of vector fields.

Unfortunately, Paraview removed this filter from the latest update. Instead, we are left with a confusing and quite difficult to use filter called **GradientpfUnstructuredDataset**.  
Applying this filter results in the creation of a confusing set of arrays arbitrarily named from 0 -9 ( ??? ) .

Is there any simple way to bring back the old useful **GradientOfUnstructuredGrid** filter? By means of any plugins?

Or is there any simple way to calculate the divergence of the vector field by means of this new filter in a simple way?

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [January 13, 2021, 2:22pm UTC](https://discourse.paraview.org/t/calculating-the-divergence-in-paraview-gradient-filter/6220/2 "2021-01-13T14:22:13Z")

</div>

StackExchange post here: [https://stackoverflow.com/questions/65685751/gradient-of-unstructured-grid-filter-in-paraview](https://stackoverflow.com/questions/65685751/gradient-of-unstructured-grid-filter-in-paraview)

---

<div class="post-metadata">

### Author: ![Renard](https://discourse.paraview.org/user_avatar/discourse.paraview.org/renard/32/5701_2.png) [@Renard](https://discourse.paraview.org/u/Renard)
#### Post date: [January 13, 2021, 2:32pm UTC](https://discourse.paraview.org/t/calculating-the-divergence-in-paraview-gradient-filter/6220/3 "2021-01-13T14:32:05Z")

</div>

Hi, that question is asked by me. I asked here again because I could not find a valid answer in Stack. Thank you.

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [January 13, 2021, 3:10pm UTC](https://discourse.paraview.org/t/calculating-the-divergence-in-paraview-gradient-filter/6220/4 "2021-01-13T15:10:48Z")

</div>

No problem. I added the link so that people who find your question here can see the discussion on Stack Exchange.
