# Computing vorticity and Q-criterion with the "Gradient of Unstructured Data set" filter

**URL:** https://discourse.paraview.org/t/computing-vorticity-and-q-criterion-with-the-gradient-of-unstructured-data-set-filter/3301
**Category:** ParaView Support
**Created:** [January 10, 2020, 12:24am UTC](https://discourse.paraview.org/t/computing-vorticity-and-q-criterion-with-the-gradient-of-unstructured-data-set-filter/3301 "2020-01-10T00:24:23Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![peterjeong](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/bbce88/32.png) [@peterjeong](https://discourse.paraview.org/u/peterjeong)
#### Post date: [January 10, 2020, 12:24am UTC](https://discourse.paraview.org/t/computing-vorticity-and-q-criterion-with-the-gradient-of-unstructured-data-set-filter/3301/1 "2020-01-10T00:24:23Z")

</div>

Hi. I’m currently trying to calculate the vorticity and the q-criterion using the “Gradient of Unstructured Data set” filter, with the velocity data set of a Cartesian grid, formatted as follows.

density u v w  
value value value value  
. . . .  
. . . .  
. . . .  
. . . .  
. . . .  
. . . .  
. . . .

I use the calculator filter and use

u_iHat+v_jHat+w\*kHat

to construct my velocity factor, to which I apply the “Gradient of Unstructured Data set” filter.

From my online research, it should show me the “Compute vorticity” and “Compute QCriterion” options, but I do not see those options pop up when I select the filter. I’d appreciate it if you could let me know why I don’t see those options.

Thanks for you time.

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [January 10, 2020, 12:27am UTC](https://discourse.paraview.org/t/computing-vorticity-and-q-criterion-with-the-gradient-of-unstructured-data-set-filter/3301/2 "2020-01-10T00:27:25Z")

</div>

Hi Peter, and welcome to the ParaView community!

The Properties tab for filters is so incredibly rich, that we try to only show what is commonly used. What you are looking for is an “advanced” feature. Click on the little gear, on the Properties tab of the Gradient of Unstructured filter. You will then see these options.

---

<div class="post-metadata">

### Author: ![peterjeong](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/bbce88/32.png) [@peterjeong](https://discourse.paraview.org/u/peterjeong)
#### Post date: [January 10, 2020, 12:33am UTC](https://discourse.paraview.org/t/computing-vorticity-and-q-criterion-with-the-gradient-of-unstructured-data-set-filter/3301/3 "2020-01-10T00:33:35Z")

</div>

@wascott

Walter, thanks so much for the kind answer! Works now 🙂

---

<div class="post-metadata">

### Author: ![Akash](https://discourse.paraview.org/user_avatar/discourse.paraview.org/akash/32/6994_2.png) [@Akash](https://discourse.paraview.org/u/Akash)
#### Post date: [September 2, 2021, 9:06am UTC](https://discourse.paraview.org/t/computing-vorticity-and-q-criterion-with-the-gradient-of-unstructured-data-set-filter/3301/4 "2021-09-02T09:06:05Z")

</div>

> [@peterjeong](#):
>
> u_iHat+v_jHat+w\*kHat

I am facing the same problem where I have a csv file with three cols having velocity magnitude. So I reconstructed the velocity vector using the calculator : U:0_iHat+U:1_jHat+U:2\*kHat

Then I applied “Gradient of Unstructured Data set” filter and calc QCriterion but the results I am getting is wrong. QCriterion ranges from 0 to 3.4e+38 there are no negative values which is weird

---

<div class="post-metadata">

### Author: ![xliu24](https://discourse.paraview.org/user_avatar/discourse.paraview.org/xliu24/32/6099_2.png) [@xliu24](https://discourse.paraview.org/u/xliu24)
#### Post date: [November 3, 2022, 3:27pm UTC](https://discourse.paraview.org/t/computing-vorticity-and-q-criterion-with-the-gradient-of-unstructured-data-set-filter/3301/5 "2022-11-03T15:27:07Z")

</div>

I have the same issue. Do you solve the problem?

---

<div class="post-metadata">

### Author: ![Akbar](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/d07c76/32.png) [@Akbar](https://discourse.paraview.org/u/Akbar)
#### Post date: [September 20, 2024, 7:38pm UTC](https://discourse.paraview.org/t/computing-vorticity-and-q-criterion-with-the-gradient-of-unstructured-data-set-filter/3301/6 "2024-09-20T19:38:10Z")

</div>

Thanks for the reply.  
Just a quick question.  
Is this filter replaced by “Gradient” filter?  
I do not see “Gradient of Unstructured Data set” in Paraview 5.10/11/12 anymore.

---

<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: [September 20, 2024, 8:04pm UTC](https://discourse.paraview.org/t/computing-vorticity-and-q-criterion-with-the-gradient-of-unstructured-data-set-filter/3301/7 "2024-09-20T20:04:40Z")

</div>

As of 5.10.0, there is only the **Gradient** filter. It replaced \*\*Gradient of Unstructured Data Set". See [https://www.kitware.com/paraview-5-10-0-release-notes/#filter-changes](https://www.kitware.com/paraview-5-10-0-release-notes/#filter-changes), a few release notes down, for more info.
