# Streamline filter in paraview with .vtu and .pvtu files

**URL:** <https://pyfr.discourse.group/t/streamline-filter-in-paraview-with-vtu-and-pvtu-files/175>\
**Category:** General\
**Created:** [29 September 2017 12:56 UTC](https://pyfr.discourse.group/t/streamline-filter-in-paraview-with-vtu-and-pvtu-files/175 "2017-09-29T12:56:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zvxnerig](https://avatars.discourse-cdn.com/v4/letter/z/df788c/32.png) [@zvxnerig](https://pyfr.discourse.group/u/zvxnerig)\
**Post date:** [29 September 2017 12:56 UTC](https://pyfr.discourse.group/t/streamline-filter-in-paraview-with-vtu-and-pvtu-files/175/1 "2017-09-29T12:56:14Z")

</div>

Dear all,

I am new to PyFR. After I ran the example case-2D Euler vortex, the .vtu files were exported by ‘pyfr export euler\_vortex\_2d.pyfrm euler\_vortex\_2d-100.0.pyfrs euler\_vortex\_2d-100.0.vtu -d 4’.  
I opened these .vtu files by Paraview 5.2.0, however, the streamline filter in Paraview is not available. How could I get the streamline filter?

 ![streamline.png](https://global.discourse-cdn.com/free1/uploads/pyfr/original/1X/7bcf474fd596dfb7147690c63bec831a69201156.png)

---

<div class="post-metadata">

**Author:** ![Loppi\_Niki](https://avatars.discourse-cdn.com/v4/letter/l/2bfe46/32.png) [@Loppi\_Niki](https://pyfr.discourse.group/u/Loppi_Niki)\
**Post date:** [29 September 2017 13:08 UTC](https://pyfr.discourse.group/t/streamline-filter-in-paraview-with-vtu-and-pvtu-files/175/2 "2017-09-29T13:08:13Z")

</div>

Hi,

The streamline filter wants a 3D velocity vector. With 2D data, you can first apply a calculator filter to define

result = Velocity\_X_iHat + Velocity\_Y_jHat + 0\*kHat.

Then apply the streamline filter.

Cheers,

Niki

---

<div class="post-metadata">

**Author:** ![zvxnerig](https://avatars.discourse-cdn.com/v4/letter/z/df788c/32.png) [@zvxnerig](https://pyfr.discourse.group/u/zvxnerig)\
**Post date:** [29 September 2017 23:54 UTC](https://pyfr.discourse.group/t/streamline-filter-in-paraview-with-vtu-and-pvtu-files/175/3 "2017-09-29T23:54:26Z")

</div>

Thank you, Niki. It works.

在 2017年9月29日星期五 UTC+8下午9:08:22，Niki Loppi写道：
