# Help with stream tracer

**URL:** https://discourse.paraview.org/t/help-with-stream-tracer/4698
**Category:** ParaView Support
**Created:** [June 26, 2020, 8:20pm UTC](https://discourse.paraview.org/t/help-with-stream-tracer/4698 "2020-06-26T20:20:22Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![rcm](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/f04885/32.png) [@rcm](https://discourse.paraview.org/u/rcm)
#### Post date: [June 26, 2020, 8:20pm UTC](https://discourse.paraview.org/t/help-with-stream-tracer/4698/1 "2020-06-26T20:20:23Z")

</div>

I am having some problems calculating path trajectories. I am using the “Stream Tracer” filter with a 3D vector field and seeds along a line, and comparing it to a vizualisation of the field using “Surface LIC” in the same extracted subset plane. I thought the path trajectories would closely follow the LIC streaklines, but they do not. I am sure the path trajectories are incorrect - they seem to go into my solid boundaries (where the flow is zero), see pasted image - but I cannot figure out what I am doing wrong.

Any help appreciated.

 ![Screen Shot 2020-06-26 at 17.11.42](https://discourse.paraview.org/uploads/default/original/2X/1/1599f96bd905e5794f3f1c759f26f99963df67a4.jpeg)

---

<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: [June 29, 2020, 3:12pm UTC](https://discourse.paraview.org/t/help-with-stream-tracer/4698/2 "2020-06-29T15:12:13Z")

</div>

I agree that the stream tracer output looks suspect. However, I’m not sure anyone can diagnose the problem by just looking at your image. Would it be possible for you to post some example data?

---

<div class="post-metadata">

### Author: ![rcm](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/f04885/32.png) [@rcm](https://discourse.paraview.org/u/rcm)
#### Post date: [June 29, 2020, 4:49pm UTC](https://discourse.paraview.org/t/help-with-stream-tracer/4698/3 "2020-06-29T16:49:51Z")

</div>

Hi, thanks for your help. I’ve uploaded the pvsm and one of the netcdf input files here. The other file is a little larger and I’ve posted it here: [https://www.dropbox.com/s/6364g1qvpmnj0se/uvel.nc?dl=0](https://www.dropbox.com/s/6364g1qvpmnj0se/uvel.nc?dl=0).

[depth.nc](https://discourse.paraview.org/uploads/short-url/wZqyO9Q2ve3JyyzQkEbAVFLVnZv.nc) (549.9 KB) [leeWave.pvsm](https://discourse.paraview.org/uploads/short-url/ZJ5xUePGuiIxn1Y92HXZSXa39h.pvsm) (1.2 MB)

---

<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: [June 29, 2020, 10:22pm UTC](https://discourse.paraview.org/t/help-with-stream-tracer/4698/4 "2020-06-29T22:22:22Z")

</div>

Hmm. This might be a bug in the stream tracer with rectilinear data (axis-aligned with uneven spacing).

Try running the data from uvel.nc through the `Transform` filter. Keep the default parameters. The data will not actually move, but it will be converted to a curvilinear mesh. That seems to work better with the stream tracer.

---

<div class="post-metadata">

### Author: ![rcm](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/f04885/32.png) [@rcm](https://discourse.paraview.org/u/rcm)
#### Post date: [June 30, 2020, 1:35am UTC](https://discourse.paraview.org/t/help-with-stream-tracer/4698/5 "2020-06-30T01:35:30Z")

</div>

Thank you - adding the transform filter solved it.

I also tried the data on a uniform grid (i.e. I interpolated onto an evenly spaced grid before loading into ParaView), but that didn’t seem to fix it.

The figure is looking much better now (the simulation needs work, but the visualization is good) - thanks again for your help.

 ![Screen Shot 2020-06-29 at 22.31.45](https://discourse.paraview.org/uploads/default/original/2X/e/e60ecb74bc7c0ade181f54ff19054a27a51bb722.png)

---

<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: [June 30, 2020, 2:59am UTC](https://discourse.paraview.org/t/help-with-stream-tracer/4698/6 "2020-06-30T02:59:51Z")

</div>

@utkarsh.ayachit If you get a chance, can you take a quick look to see why the stream tracer is giving different answers for structured data and rectilinear (or apparently image) data?
