# Plotting streamlines for unstructured grid in paraview "ParaView-5.9.0-RC3-MPI-Linux-Python3.8-64bit"

**URL:** <https://discourse.paraview.org/t/plotting-streamlines-for-unstructured-grid-in-paraview-paraview-5-9-0-rc3-mpi-linux-python3-8-64bit/7160>\
**Category:** ParaView Support\
**Created:** [May 6, 2021, 12:22pm UTC](https://discourse.paraview.org/t/plotting-streamlines-for-unstructured-grid-in-paraview-paraview-5-9-0-rc3-mpi-linux-python3-8-64bit/7160 "2021-05-06T12:22:33Z")\
**Posts on this page:** 12\
**Page:** 2

<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, 2021, 1:17pm UTC](https://discourse.paraview.org/t/plotting-streamlines-for-unstructured-grid-in-paraview-paraview-5-9-0-rc3-mpi-linux-python3-8-64bit/7160/21 "2021-05-07T13:17:46Z")

</div>

> [@proxy](#):
>
> Both the plots looks correct and incorrect both. Now I am really confused, do you have any idea how to proceed further with drawing a “logical” streamlines around the hydrofoil?

No idea what that means.

---

<div class="post-metadata">

**Author:** ![proxy](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/e19b73/32.png) [@proxy](https://discourse.paraview.org/u/proxy)\
**Post date:** [May 7, 2021, 1:21pm UTC](https://discourse.paraview.org/t/plotting-streamlines-for-unstructured-grid-in-paraview-paraview-5-9-0-rc3-mpi-linux-python3-8-64bit/7160/22 "2021-05-07T13:21:34Z")

</div>

Sorry for the confusion, I mean to say that out of the above two plots of streamline which you think is correct or more physical, since in both the plots the streamlines are truncated abruptly.

---

<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, 2021, 1:28pm UTC](https://discourse.paraview.org/t/plotting-streamlines-for-unstructured-grid-in-paraview-paraview-5-9-0-rc3-mpi-linux-python3-8-64bit/7160/23 "2021-05-07T13:28:18Z")

</div>

There may be some small computation error due to apporximation that makes the streamline goes out of domain. This require deeper investigation.

Another solution is to use the SurfaceLIC plugin instead of streamlines.

---

<div class="post-metadata">

**Author:** ![proxy](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/e19b73/32.png) [@proxy](https://discourse.paraview.org/u/proxy)\
**Post date:** [May 7, 2021, 1:30pm UTC](https://discourse.paraview.org/t/plotting-streamlines-for-unstructured-grid-in-paraview-paraview-5-9-0-rc3-mpi-linux-python3-8-64bit/7160/24 "2021-05-07T13:30:14Z")

</div>

ok, thanks for your clear answer. Could you kindly elaborate or could you suggest some link where this plugin have been used?

---

<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, 2021, 1:31pm UTC](https://discourse.paraview.org/t/plotting-streamlines-for-unstructured-grid-in-paraview-paraview-5-9-0-rc3-mpi-linux-python3-8-64bit/7160/25 "2021-05-07T13:31:59Z")

</div>

[https://www.paraview.org/Wiki/ParaView/Line\_Integral\_Convolution](https://www.paraview.org/Wiki/ParaView/Line_Integral_Convolution)

> [@Where is "Surface LIC" visualization in Paraview 5.6.0 version](https://discourse.paraview.org/t/where-is-surface-lic-visualization-in-paraview-5-6-0-version/754):
>
> Good morning. I am learning how to use ParaView by some yutube videos. All of them show the option to visualize the “Surface LIC” of the domain. The problem is that all use an old version and I don’t know where I can find this option in ParaView 5.6.0 version. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Kenneth\_Moreland](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kenneth_moreland/32/15033_2.png) [@Kenneth\_Moreland](https://discourse.paraview.org/u/Kenneth_Moreland)\
**Post date:** [May 7, 2021, 1:45pm UTC](https://discourse.paraview.org/t/plotting-streamlines-for-unstructured-grid-in-paraview-paraview-5-9-0-rc3-mpi-linux-python3-8-64bit/7160/26 "2021-05-07T13:45:23Z")

</div>

Using SurfaceLIC is a fine idea. If you still want to try to dive deeper into why some streamlines got terminated early, you can try to color the streamlines by the field `ReasonForTermination`, which the streamline filter adds to each stream to report why the stream stopped. Each stream will be assigned a number 1-6. According to the documentation, here is what each number means:

1. streamline crosses the exterior boundary of the input dataset
2. initialization issue
3. computing an unexpected value
4. reached the Maximum Streamline Length input value
5. reached the Maximum Steps input value
6. velocity was lower than the Terminal Speed input value

---

<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, 2021, 1:47pm UTC](https://discourse.paraview.org/t/plotting-streamlines-for-unstructured-grid-in-paraview-paraview-5-9-0-rc3-mpi-linux-python3-8-64bit/7160/27 "2021-05-07T13:47:48Z")

</div>

@Kenneth_Moreland : When working with streamlines on 2d slice, I commonly get outofdomain (1) due to numerical errors, it can be hard to fix. I think this is the issue @proxy is uncountering.

---

<div class="post-metadata">

**Author:** ![Kenneth\_Moreland](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kenneth_moreland/32/15033_2.png) [@Kenneth\_Moreland](https://discourse.paraview.org/u/Kenneth_Moreland)\
**Post date:** [May 7, 2021, 1:58pm UTC](https://discourse.paraview.org/t/plotting-streamlines-for-unstructured-grid-in-paraview-paraview-5-9-0-rc3-mpi-linux-python3-8-64bit/7160/28 "2021-05-07T13:58:07Z")

</div>

I agree. I have that issue a lot with 2D streamlines, too. If that is the case, @proxy may try turning on the `Surface Streamlines` option if it is not on already.

But still, there is a chance that the terminated streamlines get caught in a vaccuum where air is moving slowly or not at all. It would be good to know that is what is happening.

---

<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, 2021, 1:59pm UTC](https://discourse.paraview.org/t/plotting-streamlines-for-unstructured-grid-in-paraview-paraview-5-9-0-rc3-mpi-linux-python3-8-64bit/7160/29 "2021-05-07T13:59:26Z")

</div>

SurfaceStreamlines works ok on non-planar surfaces, but is very bad on slice.  
It should be reworked !

(I wrote this feature a bit naively some years ago)

---

<div class="post-metadata">

**Author:** ![proxy](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/e19b73/32.png) [@proxy](https://discourse.paraview.org/u/proxy)\
**Post date:** [May 7, 2021, 2:08pm UTC](https://discourse.paraview.org/t/plotting-streamlines-for-unstructured-grid-in-paraview-paraview-5-9-0-rc3-mpi-linux-python3-8-64bit/7160/30 "2021-05-07T14:08:58Z")

</div>

Using your help @mwestphal and @Kenneth_Moreland I tried to create a surface LIC plot, which is attached herewith, it is definitely giving a very clear idea about the flow (attached herewith). But I wanted a plot in which a contour plot of pressure is there along with the flow dynamics (streamlines etc).

 ![surface_lic_contours](https://discourse.paraview.org/uploads/default/original/2X/0/0fdd4b59c3410db78842a4c0dda998ed53da8cff.jpeg) ![contour_plot](https://discourse.paraview.org/uploads/default/original/2X/7/76669066f202bf60640ef1323aa13f639c79085d.jpeg)

---

<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, 2021, 2:36pm UTC](https://discourse.paraview.org/t/plotting-streamlines-for-unstructured-grid-in-paraview-paraview-5-9-0-rc3-mpi-linux-python3-8-64bit/7160/31 "2021-05-07T14:36:20Z")

</div>

This may help you as well:

> [@Streamlines on a 2D slice from a 3D domain](https://discourse.paraview.org/t/streamlines-on-a-2d-slice-from-a-3d-domain/4701/2):
>
> Seems like you need something like: [https://blog.kitware.com/evenly-spaced-streamlines-2d/](https://blog.kitware.com/evenly-spaced-streamlines-2d/) Unfortunately, this only works on 2D planes perpendicular on Z for now. It could be extended to work on arbitrarily oriented planes, but we’ll need to identify funding for this work. dan

---

<div class="post-metadata">

**Author:** ![proxy](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/e19b73/32.png) [@proxy](https://discourse.paraview.org/u/proxy)\
**Post date:** [May 8, 2021, 2:01pm UTC](https://discourse.paraview.org/t/plotting-streamlines-for-unstructured-grid-in-paraview-paraview-5-9-0-rc3-mpi-linux-python3-8-64bit/7160/32 "2021-05-08T14:01:08Z")

</div>

Thanks for your efforts, but since the mesh is un-structured so actually its not helping me…

[Previous page](https://discourse.paraview.org/t/plotting-streamlines-for-unstructured-grid-in-paraview-paraview-5-9-0-rc3-mpi-linux-python3-8-64bit/7160.md?page=1)
