# Use the "gradient of unstructured data set" filter to output the vorticity

**URL:** https://discourse.paraview.org/t/use-the-gradient-of-unstructured-data-set-filter-to-output-the-vorticity/6813
**Category:** ParaView Support
**Created:** [March 29, 2021, 7:58am UTC](https://discourse.paraview.org/t/use-the-gradient-of-unstructured-data-set-filter-to-output-the-vorticity/6813 "2021-03-29T07:58:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jeff](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/e19b73/32.png) [@jeff](https://discourse.paraview.org/u/jeff)
#### Post date: [March 29, 2021, 7:58am UTC](https://discourse.paraview.org/t/use-the-gradient-of-unstructured-data-set-filter-to-output-the-vorticity/6813/1 "2021-03-29T07:58:06Z")

</div>

How do I know what equation is used for the “gradient of an unstructured data set”?

---

<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: [March 29, 2021, 12:00pm UTC](https://discourse.paraview.org/t/use-the-gradient-of-unstructured-data-set-filter-to-output-the-vorticity/6813/2 "2021-03-29T12:00:45Z")

</div>

Please see the following discussion: [Numerics of "Gradient Of Unstructured DataSet" Filter](https://discourse.paraview.org/t/numerics-of-gradient-of-unstructured-dataset-filter/638). It points to the section of code where the gradient in this filter is computed.

---

<div class="post-metadata">

### Author: ![jeff](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/e19b73/32.png) [@jeff](https://discourse.paraview.org/u/jeff)
#### Post date: [April 9, 2021, 12:58pm UTC](https://discourse.paraview.org/t/use-the-gradient-of-unstructured-data-set-filter-to-output-the-vorticity/6813/4 "2021-04-09T12:58:44Z")

</div>

Hi! Kenneth Moreland  
Do you know what algorithm that compute vorticity in the “Gradient of unstructured Data Set” Filter?

---

<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: [April 9, 2021, 1:12pm UTC](https://discourse.paraview.org/t/use-the-gradient-of-unstructured-data-set-filter-to-output-the-vorticity/6813/5 "2021-04-09T13:12:11Z")

</div>

Here’s the [code](https://gitlab.kitware.com/vtk/vtk/-/blob/master/Filters/General/vtkGradientFilter.cxx#L66-72) that computes the vorticity from the gradient of a vector field.
