# Vorticity calculation

**URL:** https://discourse.paraview.org/t/vorticity-calculation/1477
**Category:** ParaView Support
**Created:** [March 14, 2019, 7:59pm UTC](https://discourse.paraview.org/t/vorticity-calculation/1477 "2019-03-14T19:59:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![vrkssai](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/v/e19b73/32.png) [@vrkssai](https://discourse.paraview.org/u/vrkssai)
#### Post date: [March 14, 2019, 7:59pm UTC](https://discourse.paraview.org/t/vorticity-calculation/1477/1 "2019-03-14T19:59:37Z")

</div>

I’m trying to compute vorticity of a vector field in paraview. The problem is the velocities u,v,w are given as scalar outputs by the program I run. How do I convert the scalars to vector or use the scalars to compute vorticity?  
I came across documentation on using python calculator, but I dont seem to understand the commands/syntax to use it. My scalars are u,v,w.

---

<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: [March 14, 2019, 8:22pm UTC](https://discourse.paraview.org/t/vorticity-calculation/1477/2 "2019-03-14T20:22:12Z")

</div>

Probably the simplest way is to use the **Calculator** filter with the expression

`u*iHat + v*jHat + w*kHat`

The calculator will produce a 3-element vector.

---

<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: [March 14, 2019, 8:28pm UTC](https://discourse.paraview.org/t/vorticity-calculation/1477/3 "2019-03-14T20:28:47Z")

</div>

This question came up yesterday. Cory is exactly correct with his answer. However, we are wondering if there is a simplification that should be done. I wrote up a feature request here: [https://gitlab.kitware.com/paraview/paraview/issues/18868](https://gitlab.kitware.com/paraview/paraview/issues/18868).
