# ftle paraview

**URL:** https://discourse.paraview.org/t/ftle-paraview/6282
**Category:** ParaView Support
**Created:** [January 24, 2021, 8:26am UTC](https://discourse.paraview.org/t/ftle-paraview/6282 "2021-01-24T08:26:13Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Nikelson](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nikelson/32/5754_2.png) [@Nikelson](https://discourse.paraview.org/u/Nikelson)
#### Post date: [January 24, 2021, 8:26am UTC](https://discourse.paraview.org/t/ftle-paraview/6282/1 "2021-01-24T08:26:13Z")

</div>

Can anyone suggest me how to calculate FTLE using 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: [January 25, 2021, 9:27am UTC](https://discourse.paraview.org/t/ftle-paraview/6282/2 "2021-01-25T09:27:29Z")

</div>

A programmable filter would be the only way to go I’m afraid.

---

<div class="post-metadata">

### Author: ![Nikelson](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nikelson/32/5754_2.png) [@Nikelson](https://discourse.paraview.org/u/Nikelson)
#### Post date: [January 25, 2021, 12:04pm UTC](https://discourse.paraview.org/t/ftle-paraview/6282/3 "2021-01-25T12:04:19Z")

</div>

Thank you Mathieu  
what about VCG FTLE. Can you suggest me on this how to apply. As I could load the plugin however it seems the data has to be processed before calculation.

---

<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: [January 25, 2021, 2:09pm UTC](https://discourse.paraview.org/t/ftle-paraview/6282/4 "2021-01-25T14:09:20Z")

</div>

That’s a @lhofmann question 🙂

---

<div class="post-metadata">

### Author: ![lhofmann](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/9e8a1a/32.png) [@lhofmann](https://discourse.paraview.org/u/lhofmann)
#### Post date: [January 25, 2021, 3:02pm UTC](https://discourse.paraview.org/t/ftle-paraview/6282/5 "2021-01-25T15:02:54Z")

</div>

What kind of dataset are you using? Can you provide a sample?  
The filter only supports image data, and velocity needs to be a 2- or 3-component point data array.  
Other types of grids would need to be resampled using the `Resample To Image` filter.

---

<div class="post-metadata">

### Author: ![Nikelson](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nikelson/32/5754_2.png) [@Nikelson](https://discourse.paraview.org/u/Nikelson)
#### Post date: [January 27, 2021, 7:41am UTC](https://discourse.paraview.org/t/ftle-paraview/6282/6 "2021-01-27T07:41:04Z")

</div>

Thanks to Mathiew and Hofmann

Iam using gridded data having dimension as X,Y for each time steps in hours for velocity parameters.

Can u suggest me how to proceed as you have mentioned on converting to image

The format of my data is netcdf

Thanking you

---

<div class="post-metadata">

### Author: ![lhofmann](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/9e8a1a/32.png) [@lhofmann](https://discourse.paraview.org/u/lhofmann)
#### Post date: [January 29, 2021, 9:41am UTC](https://discourse.paraview.org/t/ftle-paraview/6282/7 "2021-01-29T09:41:00Z")

</div>

Could you provide a sample of your data?

You could try to apply the `Resample to Image` filter, where you set the number of samples for the third dimension to 1.

---

<div class="post-metadata">

### Author: ![Nikelson](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nikelson/32/5754_2.png) [@Nikelson](https://discourse.paraview.org/u/Nikelson)
#### Post date: [January 29, 2021, 1:04pm UTC](https://discourse.paraview.org/t/ftle-paraview/6282/8 "2021-01-29T13:04:20Z")

</div>

[uvdata3.nc](https://discourse.paraview.org/uploads/short-url/9VWPuk3Oa2l6AAsc6vCglMBYlkD.nc) (4.0 MB)  
I have uploaded the data for variables u and v which Paraview can read. The data dimension is 3(X,Y, T) basically gridded data.  
Kindly let me know if FTLEis calculated.  
Thank you Hofmann and Mathieu

---

<div class="post-metadata">

### Author: ![Niklas](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/n/34f0e0/32.png) [@Niklas](https://discourse.paraview.org/u/Niklas)
#### Post date: [January 29, 2021, 1:28pm UTC](https://discourse.paraview.org/t/ftle-paraview/6282/9 "2021-01-29T13:28:03Z")

</div>

Hey,  
There was a plugin in the old ParaView, I believe \< 5.2, it had to be compiled with OpenGL1, but that plugin allowed to automatically calculate the FTLE in ParaView with ease. But also for the newer ParaView versions, there is a website from the Visual Computing Group of the University of Heidelberg that provides a number of great plugins for deriving FTLE, computing vortex corelines and more:  
[https://vcg.iwr.uni-heidelberg.de/plugins/](https://vcg.iwr.uni-heidelberg.de/plugins/)

Cheers, Niklas

---

<div class="post-metadata">

### Author: ![Nikelson](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nikelson/32/5754_2.png) [@Nikelson](https://discourse.paraview.org/u/Nikelson)
#### Post date: [January 31, 2021, 11:30am UTC](https://discourse.paraview.org/t/ftle-paraview/6282/10 "2021-01-31T11:30:56Z")

</div>

I tried with 5.2 there is no option in the meantime I am trying with VCG FTLE as I mentioned earlier. But there is some issue as FTLE could not be calculated. When I tried with the variable say wind velocity the operator FTLE could not be used for calculation. Is it that I have to make some other calculation before using FTLE? I have uploaded a file as mentioned on the trailing mail of Hoffman

---

<div class="post-metadata">

### Author: ![Niklas](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/n/34f0e0/32.png) [@Niklas](https://discourse.paraview.org/u/Niklas)
#### Post date: [February 1, 2021, 8:51am UTC](https://discourse.paraview.org/t/ftle-paraview/6282/11 "2021-02-01T08:51:48Z")

</div>

Hey,  
if you have issues with VCG FTLE, send en email to Filip Sadlo ([https://vcg.iwr.uni-heidelberg.de/people/sadlo/](https://vcg.iwr.uni-heidelberg.de/people/sadlo/)). He heads the visual computing group and is a very nice and friendly guy who likes to help. I also checked the other FTLE in ParaView, it was part of the SciberQuestToolkit: [https://gitlab.kitware.com/paraview/paraview/-/tree/v5.2.0/Plugins/SciberQuestToolKit](https://gitlab.kitware.com/paraview/paraview/-/tree/v5.2.0/Plugins/SciberQuestToolKit)  
But as said earlier, it had to be build with OpenGL1, and was not available if compiled with OpenGL2.  
Cheers,  
Niklas

---

<div class="post-metadata">

### Author: ![lhofmann](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/9e8a1a/32.png) [@lhofmann](https://discourse.paraview.org/u/lhofmann)
#### Post date: [February 1, 2021, 11:15am UTC](https://discourse.paraview.org/t/ftle-paraview/6282/12 "2021-02-01T11:15:46Z")

</div>

There is also a support email address on this page: [https://vcg.iwr.uni-heidelberg.de/manual/](https://vcg.iwr.uni-heidelberg.de/manual/)  
However, these emails would likely just end up getting forwarded to me 😉

---

<div class="post-metadata">

### Author: ![lhofmann](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/9e8a1a/32.png) [@lhofmann](https://discourse.paraview.org/u/lhofmann)
#### Post date: [February 1, 2021, 11:23am UTC](https://discourse.paraview.org/t/ftle-paraview/6282/13 "2021-02-01T11:23:16Z")

</div>

Sorry for the late reply, I only now found the time to look into your dataset.

When reading your data with ParaView’s netcdf reader, I get a 2D rectilinear grid with a cell array `u`, that has a single scalar value.  
To make this work with the FTLE filter, you need to apply `Resample to Image` filter and convert the 1D velocity into a 2D vector field.  
I have saved a sample statefile (adjust the path to your data on load): [state.pvsm](https://discourse.paraview.org/uploads/short-url/5Sq9Bo8Sbt7RHtyekB72nxb5yEG.pvsm) (455.4 KB)

I used a rather low 100x100 resolution in the resample filter (ResampleToImage1), and simply appended a zero component to your velocity data (PythonCalculator1). You would need to adjust both filter’s parameters to get a correct result.

Also note, that you need to set initial and advection times in the FTLE filter (your data appears to have only two time steps 683736 and 683737, so I set the parameters accordingly). You may also increase the resolution of the FTLE computation, and enable CUDA if available (in advanced properties).

---

<div class="post-metadata">

### Author: ![Nikelson](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nikelson/32/5754_2.png) [@Nikelson](https://discourse.paraview.org/u/Nikelson)
#### Post date: [February 2, 2021, 1:48pm UTC](https://discourse.paraview.org/t/ftle-paraview/6282/14 "2021-02-02T13:48:02Z")

</div>

Thank you Hofmann for your valuable suggestion  
what about in case of two scalar value data (u, v) do I need to compute resultant velocity of u and v and than compute FTLE on it.

Kindly suggest me the steps in this case

Thanking you

---

<div class="post-metadata">

### Author: ![lhofmann](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/9e8a1a/32.png) [@lhofmann](https://discourse.paraview.org/u/lhofmann)
#### Post date: [February 2, 2021, 2:16pm UTC](https://discourse.paraview.org/t/ftle-paraview/6282/15 "2021-02-02T14:16:06Z")

</div>

In that case, you need to append the two scalar arrays column-wise using `np.c_[u,v]` in the Python calculator.

---

<div class="post-metadata">

### Author: ![Nikelson](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nikelson/32/5754_2.png) [@Nikelson](https://discourse.paraview.org/u/Nikelson)
#### Post date: [February 2, 2021, 2:28pm UTC](https://discourse.paraview.org/t/ftle-paraview/6282/16 "2021-02-02T14:28:38Z")

</div>

Thank you Hofmann

---

<div class="post-metadata">

### Author: ![louisgag](https://discourse.paraview.org/user_avatar/discourse.paraview.org/louisgag/32/4999_2.png) [@louisgag](https://discourse.paraview.org/u/louisgag)
#### Post date: [February 24, 2021, 9:02am UTC](https://discourse.paraview.org/t/ftle-paraview/6282/17 "2021-02-24T09:02:08Z")

</div>

Thanks @lhofmann for the `VCG - FTLE` filter.

I’ve managed to use it with an OpenFOAM output for a 2D cycloidal rotor simulation.  
It took me some time to figure out how to properly use the filter, so here’s a few steps for anyone reading on:

1. Load OpenFOAM output for the `U` field
2. Use the `Temporal Interpolator` filter to get a constant timestep dataset (leave interval to 0).
3. Extract a local selection of cells or else you will not get a good image resolution
4. Convert to image with the `Resample to Image` filter and make the resolution in Z direction at least 2
5. Apply the `VCG - FTLE` filter to the resampled data, set vector to U, sampling can be 1 in Z, choose an initial time and step size. Make advection time not go beyond the end of the simulation.
6. If you want to animate, then set a ramp on the VCGFTLE Initial Time in animation view.

That should work, you will now if it doesn’t because the FTLE field will not be created, be empty, or look incoherent with your data.

---

<div class="post-metadata">

### Author: ![rghoreishi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/ac8455/32.png) [@rghoreishi](https://discourse.paraview.org/u/rghoreishi)
#### Post date: [April 14, 2021, 10:50am UTC](https://discourse.paraview.org/t/ftle-paraview/6282/18 "2021-04-14T10:50:17Z")

</div>

@lhofmann I’ve added the vcgparaview\_plugins to my ParaView-5.6.0 and loaded them. Lots of filters are added after the installation; however, I cannot locate the FTLE filter in my filters. I was wondering if you could help me?

---

<div class="post-metadata">

### Author: ![louisgag](https://discourse.paraview.org/user_avatar/discourse.paraview.org/louisgag/32/4999_2.png) [@louisgag](https://discourse.paraview.org/u/louisgag)
#### Post date: [April 14, 2021, 11:05am UTC](https://discourse.paraview.org/t/ftle-paraview/6282/19 "2021-04-14T11:05:13Z")

</div>

did you try Filters → Search → FTLE ?  
Or look for the ones that start with VCG…

---

<div class="post-metadata">

### Author: ![rghoreishi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/ac8455/32.png) [@rghoreishi](https://discourse.paraview.org/u/rghoreishi)
#### Post date: [April 14, 2021, 11:08am UTC](https://discourse.paraview.org/t/ftle-paraview/6282/20 "2021-04-14T11:08:13Z")

</div>

Yes, I searched the FTLE but it’s not there. There is also nothing that starts with VCG.  
Here is the list of plugins I have after installing the vcgparaview\_plugins.

 ![List of Plugins](https://discourse.paraview.org/uploads/default/original/2X/e/e8c7ea57b8dc48f8a22547cca20062f4f15246d4.jpeg)

[Next page](https://discourse.paraview.org/t/ftle-paraview/6282.md?page=2)
