# Compute velocity

**URL:** https://discourse.paraview.org/t/compute-velocity/14568
**Category:** ParaView Support
**Created:** [May 7, 2024, 4:49am UTC](https://discourse.paraview.org/t/compute-velocity/14568 "2024-05-07T04:49:36Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![dann](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/c6cbf5/32.png) [@dann](https://discourse.paraview.org/u/dann)
#### Post date: [May 7, 2024, 4:49am UTC](https://discourse.paraview.org/t/compute-velocity/14568/1 "2024-05-07T04:49:36Z")

</div>

Hi Mathieu Westphal,

I have U\_X= -13.4242, U\_Y=1.04534, U\_Z= -0.681527, but the mag(U) is 556 in Paraview. Can i know how to get the 556 in hand calculation for magnitude of velocity?

Cheers

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 7, 2024, 7:33am UTC](https://discourse.paraview.org/t/compute-velocity/14568/2 "2024-05-07T07:33:10Z")

</div>

Please share your data

---

<div class="post-metadata">

### Author: ![dann](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/c6cbf5/32.png) [@dann](https://discourse.paraview.org/u/dann)
#### Post date: [May 7, 2024, 7:56am UTC](https://discourse.paraview.org/t/compute-velocity/14568/3 "2024-05-07T07:56:16Z")

</div>

here is the sample

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 7, 2024, 8:01am UTC](https://discourse.paraview.org/t/compute-velocity/14568/4 "2024-05-07T08:01:27Z")

</div>

Please share your actual file.

---

<div class="post-metadata">

### Author: ![dann](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/c6cbf5/32.png) [@dann](https://discourse.paraview.org/u/dann)
#### Post date: [May 7, 2024, 8:26am UTC](https://discourse.paraview.org/t/compute-velocity/14568/5 "2024-05-07T08:26:05Z")

</div>

[0.zip](https://discourse.paraview.org/uploads/short-url/3GysdolrH5KGjedxq4N98OBUlct.zip) (3.8 KB)

i will upload the files in separate post due to the huge file size

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 7, 2024, 8:27am UTC](https://discourse.paraview.org/t/compute-velocity/14568/6 "2024-05-07T08:27:10Z")

</div>

you can use [https://wetransfer.com/](https://wetransfer.com/)

---

<div class="post-metadata">

### Author: ![dann](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/c6cbf5/32.png) [@dann](https://discourse.paraview.org/u/dann)
#### Post date: [May 7, 2024, 8:34am UTC](https://discourse.paraview.org/t/compute-velocity/14568/7 "2024-05-07T08:34:41Z")

</div>

Thank you.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 7, 2024, 11:08am UTC](https://discourse.paraview.org/t/compute-velocity/14568/8 "2024-05-07T11:08:28Z")

</div>

> [@dann](#):
>
> U\_X= -13.4242, U\_Y=1.04534, U\_Z= -0.681527, but the mag(U) is 556

Which point have these characteristics ?

---

<div class="post-metadata">

### Author: ![dann](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/c6cbf5/32.png) [@dann](https://discourse.paraview.org/u/dann)
#### Post date: [May 7, 2024, 12:12pm UTC](https://discourse.paraview.org/t/compute-velocity/14568/9 "2024-05-07T12:12:09Z")

</div>

I sent you another file, as the above mentioned file is too big. But it shows the similar outcome.

I used the integrated variable for the horizontal slice, which gave me Ux, Uy and Uz. But the mag(U) in paraview is different.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 7, 2024, 12:25pm UTC](https://discourse.paraview.org/t/compute-velocity/14568/10 "2024-05-07T12:25:03Z")

</div>

Looks fine here:

 ![a](https://discourse.paraview.org/uploads/default/original/2X/a/a0f6a371a997fcb3c5e80d010fe585f007241726.png)

Which version of ParaView are you using ?

---

<div class="post-metadata">

### Author: ![dann](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/c6cbf5/32.png) [@dann](https://discourse.paraview.org/u/dann)
#### Post date: [May 9, 2024, 5:41am UTC](https://discourse.paraview.org/t/compute-velocity/14568/12 "2024-05-09T05:41:58Z")

</div>

Hi Mathieu, I am wondering if U\_Magnitude is the average velocity of the slice?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 14, 2024, 7:21am UTC](https://discourse.paraview.org/t/compute-velocity/14568/13 "2024-05-14T07:21:29Z")

</div>

This is what would happen if you computed the magnitude first for each point, extract it as a separate array and then slice. Is this what you are doing ?

---

<div class="post-metadata">

### Author: ![dann](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/c6cbf5/32.png) [@dann](https://discourse.paraview.org/u/dann)
#### Post date: [May 14, 2024, 7:39am UTC](https://discourse.paraview.org/t/compute-velocity/14568/14 "2024-05-14T07:39:29Z")

</div>

i cut the slice and then computed the magnitude

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 14, 2024, 7:40am UTC](https://discourse.paraview.org/t/compute-velocity/14568/15 "2024-05-14T07:40:46Z")

</div>

Then I’m unable to reproduce the issue, please share steps to reproduce.

---

<div class="post-metadata">

### Author: ![dann](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/c6cbf5/32.png) [@dann](https://discourse.paraview.org/u/dann)
#### Post date: [May 14, 2024, 7:49am UTC](https://discourse.paraview.org/t/compute-velocity/14568/16 "2024-05-14T07:49:35Z")

</div>

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

The function in the calculator is mag(U)/400, where 400 is the area of the slice.

---

<div class="post-metadata">

### Author: ![dann](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/c6cbf5/32.png) [@dann](https://discourse.paraview.org/u/dann)
#### Post date: [May 14, 2024, 7:51am UTC](https://discourse.paraview.org/t/compute-velocity/14568/17 "2024-05-14T07:51:19Z")

</div>

I have a question about the velocity values of the entire slice produced by ParaView. Upon comparing the velocity values of individual cells with the overall slice using various calculation methods, I’ve noticed that the values for individual cells are similar across the different methods, whereas there’s a significant discrepancy for the overall slice. I have attached the working file below.

I’d like to understand how to generate the magnitude of velocity for the entire slice.

[WOKRING FILE.xlsx](https://discourse.paraview.org/uploads/short-url/lFZux5MMYjUKuShWvN12BYGH0Vl.xlsx) (273.0 KB)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 14, 2024, 11:29am UTC](https://discourse.paraview.org/t/compute-velocity/14568/18 "2024-05-14T11:29:50Z")

</div>

please share a state file

---

<div class="post-metadata">

### Author: ![dann](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/c6cbf5/32.png) [@dann](https://discourse.paraview.org/u/dann)
#### Post date: [May 14, 2024, 12:19pm UTC](https://discourse.paraview.org/t/compute-velocity/14568/19 "2024-05-14T12:19:07Z")

</div>

here is the state file

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 14, 2024, 2:33pm UTC](https://discourse.paraview.org/t/compute-velocity/14568/20 "2024-05-14T14:33:17Z")

</div>

can you share the data again ?

---

<div class="post-metadata">

### Author: ![dann](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/c6cbf5/32.png) [@dann](https://discourse.paraview.org/u/dann)
#### Post date: [May 15, 2024, 1:04am UTC](https://discourse.paraview.org/t/compute-velocity/14568/21 "2024-05-15T01:04:36Z")

</div>

here is the data

[Next page](https://discourse.paraview.org/t/compute-velocity/14568.md?page=2)
