# 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:** 20
**Page:** 1

<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 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/1 "2021-05-06T12:22:33Z")

</div>

Hello Experts,  
Although there are many videos/posts related to plotting the streamlines but I could not achieve the desired plot for my 3D airfoil case. I followed the steps:

1. Input the data as “case1.foam” ![streamline_paraview_problem](https://discourse.paraview.org/uploads/default/original/2X/0/031133b8aa1b5d8a5258fe8afc4ea52ed0bd2673.png)
2. Slice the data in z plane
3. Implemented the filter “StreamTracer1” with a line that is close to the inlet of the computational domain.  
I am getting a bit of weird output that is attached herewith. I am not sure if my data set is wrong or my mesh (using unstructured mesh ). Any comment/suggestion will be a great help. Thanks in advance.

---

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

</div>

please try with our last release candidate, 5.9.1-RC1

---

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

</div>

Thanks @mwestphal for your prompt reply and help. I will try this version and update in this post the outcome.

---

<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, 6:02am UTC](https://discourse.paraview.org/t/plotting-streamlines-for-unstructured-grid-in-paraview-paraview-5-9-0-rc3-mpi-linux-python3-8-64bit/7160/4 "2021-05-07T06:02:07Z")

</div>

@mwestphal Actually nothing have changed even after using the “5.9.1-RC1” version. I am guessing some thing related to my mesh or my pipe is wrong. Could you kindly suggest something else. Thanks for your help and cooperation.

---

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

</div>

please share your data.

---

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

</div>

Thanks for your reply @mwestphal , my data is 3D and is about (system + constant + latestTime folder) 1.5 GB. Is this a good platform to share this huge data, could you kindly share your email id or so, also we may publish this work, so not sure if good to share in the public domain. What you suggest ?

---

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

</div>

Use a system like wetransfer

---

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

</div>

I am trying to use the “wetransfer” but it is asking for your email id, could you kindly share it? If not then what’s the alternative ?

---

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

</div>

[mathieu.westphal@kitware.com](mailto:mathieu.westphal@kitware.com)

---

<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, 8:16am UTC](https://discourse.paraview.org/t/plotting-streamlines-for-unstructured-grid-in-paraview-paraview-5-9-0-rc3-mpi-linux-python3-8-64bit/7160/10 "2021-05-07T08:16:52Z")

</div>

@mwestphal I have shared the data with you, please have a look and kindly revert back with your useful inputs. Thanks in advance.

---

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

</div>

Use the SurfaceVectors filters before the stream tracer.

---

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

</div>

Thanks a lot @mwestphal for your help. It definitely improved but not exactly what it needs to be (I suppose), the screenshot is attached herewith of the figure+pipeline is attached herewith, I am not sure if your are getting the same field of streamline for this case or something else to be done. But I highly appreciate you kind help in this regard.

 ![paraview_streamlines_issue](https://discourse.paraview.org/uploads/default/original/2X/d/dbff9c1c0e2ece053149121aa3759b1a30d43fd9.png)

---

<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, 9:19am UTC](https://discourse.paraview.org/t/plotting-streamlines-for-unstructured-grid-in-paraview-paraview-5-9-0-rc3-mpi-linux-python3-8-64bit/7160/13 "2021-05-07T09:19:52Z")

</div>

I do not see any issue with your 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, 9:32am UTC](https://discourse.paraview.org/t/plotting-streamlines-for-unstructured-grid-in-paraview-paraview-5-9-0-rc3-mpi-linux-python3-8-64bit/7160/14 "2021-05-07T09:32:06Z")

</div>

Thanks again for your help, but don’t you think that the streamlines are ending abruptly in the figure (shown by circle), is that physical, since at that point the tangent at that point will refer to 2 (or may be multiple) directions of the velocity, I think that issue contradicts the fundamental definition of the streamline ? As you can see in the screen shot that I tried to increase the “maximum streamline length” to 100, but haven’t worked for me either. Also I would expect that the streamline would identify all the vortices in the flow. What you suggest/comment. Again I highly appreciate your time and help, thanks again.

 ![paraview_streamlines_issue_edit](https://discourse.paraview.org/uploads/default/original/2X/2/22196f6098502b52de7755111b2eb41df51adb4c.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, 9:42am UTC](https://discourse.paraview.org/t/plotting-streamlines-for-unstructured-grid-in-paraview-paraview-5-9-0-rc3-mpi-linux-python3-8-64bit/7160/15 "2021-05-07T09:42:09Z")

</div>

Im unable to reproduce this behavior locally:

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

---

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

</div>

Thanks again. This figure looks (physically) better than my figure, what you say? Could you kindly share the pipeline or may be the \*.state file with me either by email or by the forum, whatever is fine with you. Thanks a lot for your help.

---

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

</div>

[streams.pvsm](https://discourse.paraview.org/uploads/short-url/S8nZYgAoI8xzuX6IRoIKVyZHEe.pvsm) (540.7 KB)

Using pv5.9.0

---

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

</div>

Thanks a lot, but unable to open this file in para-view, it gives me the following error, any help ?

 ![paarview_state](https://discourse.paraview.org/uploads/default/original/2X/0/08b423ea4c1752efcee094283bfafda3647d5e85.png)

---

<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, 10:14am UTC](https://discourse.paraview.org/t/plotting-streamlines-for-unstructured-grid-in-paraview-paraview-5-9-0-rc3-mpi-linux-python3-8-64bit/7160/19 "2021-05-07T10:14:41Z")

</div>

select the case1.foam instead of my case.foam when loading the state.

---

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

</div>

Thanks a lot @mwestphal for your help, I am getting a similar plot as you have shown using your setting but I am surprised that the plot like the attached one if I change the seed type location to inlet of the computational domain. 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?

 ![inlet_seed](https://discourse.paraview.org/uploads/default/original/2X/0/0cb8eaeb9317a4b224073879dd13d59d5c4c8fd8.jpeg)  
 ![defualt_seed_line](https://discourse.paraview.org/uploads/default/original/2X/4/47296006ea72640fb1880b7e9234a8de8c2d5a4c.jpeg)

[Next 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=2)
