# How to pass (velocity) results through a function

**URL:** https://discourse.paraview.org/t/how-to-pass-velocity-results-through-a-function/9771
**Category:** ParaView Support
**Created:** [June 9, 2022, 2:33pm UTC](https://discourse.paraview.org/t/how-to-pass-velocity-results-through-a-function/9771 "2022-06-09T14:33:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![fvg](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/8e7dd6/32.png) [@fvg](https://discourse.paraview.org/u/fvg)
#### Post date: [June 9, 2022, 2:33pm UTC](https://discourse.paraview.org/t/how-to-pass-velocity-results-through-a-function/9771/1 "2022-06-09T14:33:55Z")

</div>

To obtain results for chance a certain windspeed is exceeded, I want to take the results of a windspeed calculation though an interpolation function of the windspeed probability.

Essentially putting the results from this image:

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

And pass it through this function to get the changes for each gridpoint:

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

This would lead to the chance a certain windspeed is exceed at each location in the grid.

Is this possible in paraview?

---

<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: [June 9, 2022, 3:15pm UTC](https://discourse.paraview.org/t/how-to-pass-velocity-results-through-a-function/9771/2 "2022-06-09T15:15:11Z")

</div>

Hi @fvg

I’m not sure to follow, are you looking for PlotOverLine filter ?

Best,

---

<div class="post-metadata">

### Author: ![fvg](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/8e7dd6/32.png) [@fvg](https://discourse.paraview.org/u/fvg)
#### Post date: [June 9, 2022, 3:23pm UTC](https://discourse.paraview.org/t/how-to-pass-velocity-results-through-a-function/9771/3 "2022-06-09T15:23:20Z")

</div>

Hi Mathieu,  
no that would be different. For all nodes I want the velocity converted to a chance, according to the interpolation function. So the result should be a surface plot, but now with the chances.

Does that make more sense?  
best, Frank

---

<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: [June 10, 2022, 6:57am UTC](https://discourse.paraview.org/t/how-to-pass-velocity-results-through-a-function/9771/4 "2022-06-10T06:57:20Z")

</div>

What is a chance ? How do you compute it ?

In any case, should be doable with a programmable filter.

---

<div class="post-metadata">

### Author: ![fvg](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/8e7dd6/32.png) [@fvg](https://discourse.paraview.org/u/fvg)
#### Post date: [June 13, 2022, 6:45am UTC](https://discourse.paraview.org/t/how-to-pass-velocity-results-through-a-function/9771/5 "2022-06-13T06:45:50Z")

</div>

Hi Mathieu, the chance comes from a windrose (direction plus chance of a certain windspeed). The combination with the local velocities gives the chance a certain threshold windspeed is exceeded (nen8100).

> In any case, should be doable with a programmable filter.

So I’ll be reading through that then, thanks Mathieu.
