# StreamTracerWithCustomSource

**URL:** https://discourse.paraview.org/t/streamtracerwithcustomsource/1405
**Category:** ParaView Support
**Created:** [March 6, 2019, 2:56pm UTC](https://discourse.paraview.org/t/streamtracerwithcustomsource/1405 "2019-03-06T14:56:48Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![piedycat](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/35a633/32.png) [@piedycat](https://discourse.paraview.org/u/piedycat)
#### Post date: [March 6, 2019, 2:56pm UTC](https://discourse.paraview.org/t/streamtracerwithcustomsource/1405/1 "2019-03-06T14:56:48Z")

</div>

I’m using StreamTracerWithCustomSource with the seed input being my fluid inlet face, no matter what settings I change only 2 stream lines reach the outlet ;-( Can anyone suggest a solution?  
Regards  
Mark

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [March 6, 2019, 3:09pm UTC](https://discourse.paraview.org/t/streamtracerwithcustomsource/1405/2 "2019-03-06T15:09:43Z")

</div>

Use the outlet as the custom source. The default stream tracer behavior is to trace forwards and backwards in the vector field, so you should get a lot of streamlines reaching the outlet this way.

---

<div class="post-metadata">

### Author: ![piedycat](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/35a633/32.png) [@piedycat](https://discourse.paraview.org/u/piedycat)
#### Post date: [March 6, 2019, 3:15pm UTC](https://discourse.paraview.org/t/streamtracerwithcustomsource/1405/3 "2019-03-06T15:15:44Z")

</div>

Hi Cory,  
If I use the outlet, & trace backwards then very few reach the inlet, if I trace both forwards & backwards a few reach the inlet but a whole bunch race out of the outlet where my fluid body ends.

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [March 6, 2019, 3:30pm UTC](https://discourse.paraview.org/t/streamtracerwithcustomsource/1405/4 "2019-03-06T15:30:06Z")

</div>

Sounds like a complicated flow! The only other suggestion I have is to use a regular **Stream Tracer** with the “High Resolution Line Source” or “Point Source” placed somewhere in the middle of your fluid body.

---

<div class="post-metadata">

### Author: ![piedycat](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/35a633/32.png) [@piedycat](https://discourse.paraview.org/u/piedycat)
#### Post date: [March 6, 2019, 3:32pm UTC](https://discourse.paraview.org/t/streamtracerwithcustomsource/1405/5 "2019-03-06T15:32:56Z")

</div>

Hi Cory,  
Thanks for the suggestion, and taking the time to try and help.  
Cheers  
Mark

---

<div class="post-metadata">

### Author: ![Andy\_Bauer](https://discourse.paraview.org/user_avatar/discourse.paraview.org/andy_bauer/32/5442_2.png) [@Andy\_Bauer](https://discourse.paraview.org/u/Andy_Bauer)
#### Post date: [March 6, 2019, 3:41pm UTC](https://discourse.paraview.org/t/streamtracerwithcustomsource/1405/6 "2019-03-06T15:41:48Z")

</div>

Have you looked at the ReasonForTermination array to see why the streamlines are terminating? You can **?** button for the filter to see what the numbers correspond to for the termination criterion.

---

<div class="post-metadata">

### Author: ![piedycat](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/35a633/32.png) [@piedycat](https://discourse.paraview.org/u/piedycat)
#### Post date: [March 6, 2019, 3:55pm UTC](https://discourse.paraview.org/t/streamtracerwithcustomsource/1405/7 "2019-03-06T15:55:56Z")

</div>

Hi Andy,  
How do I look at the ReasonForTermination array?

---

<div class="post-metadata">

### Author: ![Andy\_Bauer](https://discourse.paraview.org/user_avatar/discourse.paraview.org/andy_bauer/32/5442_2.png) [@Andy\_Bauer](https://discourse.paraview.org/u/Andy_Bauer)
#### Post date: [March 6, 2019, 4:04pm UTC](https://discourse.paraview.org/t/streamtracerwithcustomsource/1405/8 "2019-03-06T16:04:25Z")

</div>

It’s a cell data array that’s output by the stream tracer filter. You can either pseudo-color by it in the render view or look at it in a spreadsheet view.

---

<div class="post-metadata">

### Author: ![piedycat](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/35a633/32.png) [@piedycat](https://discourse.paraview.org/u/piedycat)
#### Post date: [March 6, 2019, 4:21pm UTC](https://discourse.paraview.org/t/streamtracerwithcustomsource/1405/9 "2019-03-06T16:21:06Z")

</div>

I get values of mostly 6 (velocity was lower than the Terminal Speed input value) and a few 1 (streamline crosses the exterior boundary of the input dataset). I think know what they mean but not sure how I can improve matters?

---

<div class="post-metadata">

### Author: ![Andy\_Bauer](https://discourse.paraview.org/user_avatar/discourse.paraview.org/andy_bauer/32/5442_2.png) [@Andy\_Bauer](https://discourse.paraview.org/u/Andy_Bauer)
#### Post date: [March 6, 2019, 4:40pm UTC](https://discourse.paraview.org/t/streamtracerwithcustomsource/1405/10 "2019-03-06T16:40:32Z")

</div>

The `Terminal Speed` parameter is an advanced filter option which means you need to clock on the gear looking button to be able to adjust it. By default it’s set to 1e-12. For termination values of 1 the streamline should be exiting the domain. If not, it’s likely that the grid cells aren’t properly connected.
