# How to compute vorticity in Paraview

**URL:** https://discourse.paraview.org/t/how-to-compute-vorticity-in-paraview/4474
**Category:** ParaView Support
**Created:** [June 2, 2020, 1:09pm UTC](https://discourse.paraview.org/t/how-to-compute-vorticity-in-paraview/4474 "2020-06-02T13:09:41Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![ANON1](https://discourse.paraview.org/user_avatar/discourse.paraview.org/anon1/32/3919_2.png) [@ANON1](https://discourse.paraview.org/u/ANON1)
#### Post date: [June 2, 2020, 1:09pm UTC](https://discourse.paraview.org/t/how-to-compute-vorticity-in-paraview/4474/1 "2020-06-02T13:09:41Z")

</div>

I’ve opened the results of a simulation (Velocity field and Pressure) in Paraview. I know that the vorticity is by definition the curl of the velocity.

How can I proceed to to compute the vorticity in Paraview? I can’t find a clear answer to this after searching. Could you please give a detailed answer for someone beginner?

P.S: I am using a structured mesh for my domain, if that matters.

I appreciate your help.

---

<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: [June 2, 2020, 3:07pm UTC](https://discourse.paraview.org/t/how-to-compute-vorticity-in-paraview/4474/2 "2020-06-02T15:07:08Z")

</div>

You can compute vorticity using the `Gradient Of Unstructured DataSet` filter (it will work with structured data as well). After you add the filter, click on the gear icon ![pqAdvanced](https://discourse.paraview.org/uploads/default/original/2X/4/47d3a2ba2a18f082933735a684d5c9c5654c2e85.svg) to toggle on advanced properties. From there you will see a `Compute Vorticity` option.

---

<div class="post-metadata">

### Author: ![PUC](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/d9b06d/32.png) [@PUC](https://discourse.paraview.org/u/PUC)
#### Post date: [February 27, 2023, 7:29pm UTC](https://discourse.paraview.org/t/how-to-compute-vorticity-in-paraview/4474/3 "2023-02-27T19:29:59Z")

</div>

> [@Kenneth\_Moreland](#):
>
> Gradient Of Unstructured DataSet

how can I install the filter “Gradient Of Unstructured DataSet”. I cannot find it in the filters section.

---

<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: [February 27, 2023, 7:38pm UTC](https://discourse.paraview.org/t/how-to-compute-vorticity-in-paraview/4474/4 "2023-02-27T19:38:10Z")

</div>

That filter has been integrated into the main **Gradient** filter. You can use that instead.

---

<div class="post-metadata">

### Author: ![PUC](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/d9b06d/32.png) [@PUC](https://discourse.paraview.org/u/PUC)
#### Post date: [February 27, 2023, 8:36pm UTC](https://discourse.paraview.org/t/how-to-compute-vorticity-in-paraview/4474/5 "2023-02-27T20:36:56Z")

</div>

Thank you for the fast response. The problem is that in this filter there is no option to evaluate the Q-criterion

---

<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: [February 27, 2023, 9:27pm UTC](https://discourse.paraview.org/t/how-to-compute-vorticity-in-paraview/4474/6 "2023-02-27T21:27:26Z")

</div>

The Q-criterion option is there:

![image](https://discourse.paraview.org/uploads/default/original/2X/9/958af4b747186922ba413c511386a6e6211ff0ad.png)

It’s an advanced property, so make sure the little gear icon in the upper right is toggled on.

---

<div class="post-metadata">

### Author: ![PUC](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/d9b06d/32.png) [@PUC](https://discourse.paraview.org/u/PUC)
#### Post date: [February 28, 2023, 8:13am UTC](https://discourse.paraview.org/t/how-to-compute-vorticity-in-paraview/4474/7 "2023-02-28T08:13:12Z")

</div>

Thank you for the help

---

<div class="post-metadata">

### Author: ![mar.premi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@mar.premi](https://discourse.paraview.org/u/mar.premi)
#### Post date: [November 28, 2023, 9:23am UTC](https://discourse.paraview.org/t/how-to-compute-vorticity-in-paraview/4474/8 "2023-11-28T09:23:06Z")

</div>

Can someone help me? I have a velocity field vtk dataset for RV and one for LV and I want to see the vorticity here!

 ![image](https://discourse.paraview.org/uploads/default/original/2X/b/b984e59fda10615b59213cbb91bd8c42e3f4ca2c.png)

---

<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: [November 28, 2023, 5:22pm UTC](https://discourse.paraview.org/t/how-to-compute-vorticity-in-paraview/4474/9 "2023-11-28T17:22:12Z")

</div>

Hi Mar,  
If I read your screenshot correctly, it looks like you are trying to use a magnitude (i.e., scalar) for a vector. Use a 3 component vector. See the information tab to see what variables are scalars and which are vectors. If you need to know how to create a vector from 3 scalars, see Help/ Classroom Tutorials/ Filters/ Calculator.  
Alan

---

<div class="post-metadata">

### Author: ![mar.premi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@mar.premi](https://discourse.paraview.org/u/mar.premi)
#### Post date: [December 11, 2023, 9:34am UTC](https://discourse.paraview.org/t/how-to-compute-vorticity-in-paraview/4474/10 "2023-12-11T09:34:39Z")

</div>

> [@Kenneth Moreland](#):
>
> radient Of Unstructured DataSet

 ![image](https://discourse.paraview.org/uploads/default/original/2X/5/5bd351b98bfde780bc44b4224166ae7873e773e0.png)  
this is still the velocity field.

How can I calcualte vorticity? Can I do that in Python shell?

---

<div class="post-metadata">

### Author: ![mar.premi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/7c8e57/32.png) [@mar.premi](https://discourse.paraview.org/u/mar.premi)
#### Post date: [December 11, 2023, 9:56am UTC](https://discourse.paraview.org/t/how-to-compute-vorticity-in-paraview/4474/11 "2023-12-11T09:56:04Z")

</div>

![image](https://discourse.paraview.org/uploads/default/original/2X/e/ee820dad6824f7f415073554424c2d8197cc073c.png)  
Also like this it doesn’t work
