# multiple particle tracers from single (programmable) pointsource

**URL:** https://discourse.paraview.org/t/multiple-particle-tracers-from-single-programmable-pointsource/9357
**Category:** ParaView Support
**Created:** [April 5, 2022, 7:52am UTC](https://discourse.paraview.org/t/multiple-particle-tracers-from-single-programmable-pointsource/9357 "2022-04-05T07:52:17Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![bigfooted](https://discourse.paraview.org/user_avatar/discourse.paraview.org/bigfooted/32/6347_2.png) [@bigfooted](https://discourse.paraview.org/u/bigfooted)
#### Post date: [April 5, 2022, 7:52am UTC](https://discourse.paraview.org/t/multiple-particle-tracers-from-single-programmable-pointsource/9357/1 "2022-04-05T07:52:17Z")

</div>

I have time dependent data and use a pointSource as a source for a particle tracer. The pointsource has the option “Number of Points”, and “Radius” for a random point cloud. However, If I use more than 1 point or a radius that is not zero, my point source does not work with the particle tracer. Should this work?

I could create a point source with multiple points with a programmable source/filter. If I want to change the coordinates every timestep, will that only work with the programmable filter? It seems that the source is accessed once, and the filter every timestep, is that correct?

---

<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: [April 5, 2022, 8:06am UTC](https://discourse.paraview.org/t/multiple-particle-tracers-from-single-programmable-pointsource/9357/2 "2022-04-05T08:06:47Z")

</div>

Hi @bigfooted ,

> [@bigfooted](#):
>
> Should this work?

Yes it should.

I’m a bit confused about what is not working.

---

<div class="post-metadata">

### Author: ![bigfooted](https://discourse.paraview.org/user_avatar/discourse.paraview.org/bigfooted/32/6347_2.png) [@bigfooted](https://discourse.paraview.org/u/bigfooted)
#### Post date: [April 5, 2022, 8:19am UTC](https://discourse.paraview.org/t/multiple-particle-tracers-from-single-programmable-pointsource/9357/3 "2022-04-05T08:19:25Z")

</div>

Hi @mwestphal,  
If I change radius to 0.001 for instance , I only see 1 static point that is not moving with the flow anymore. If I change to 0, I see particles moving with the flow, and new particles added every time step.  
This is with paraview 5.10.1-799-gb5dd20f80e  
I also checked with the 5.10.1 binary, same result.

---

<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: [April 5, 2022, 8:26am UTC](https://discourse.paraview.org/t/multiple-particle-tracers-from-single-programmable-pointsource/9357/4 "2022-04-05T08:26:12Z")

</div>

What is the number of points ?

---

<div class="post-metadata">

### Author: ![bigfooted](https://discourse.paraview.org/user_avatar/discourse.paraview.org/bigfooted/32/6347_2.png) [@bigfooted](https://discourse.paraview.org/u/bigfooted)
#### Post date: [April 5, 2022, 8:48am UTC](https://discourse.paraview.org/t/multiple-particle-tracers-from-single-programmable-pointsource/9357/5 "2022-04-05T08:48:05Z")

</div>

If I use 1 point, I see 1 static point, if I choose 10 points, with a nonzero radius, I see a point cloud of 10 points, but they are not moving. It also does not matter if I put Force reinjection every NSteps to 0 or 1.

---

<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: [April 5, 2022, 8:50am UTC](https://discourse.paraview.org/t/multiple-particle-tracers-from-single-programmable-pointsource/9357/6 "2022-04-05T08:50:11Z")

</div>

please share a statefile and data to reproduce the issue.

---

<div class="post-metadata">

### Author: ![bigfooted](https://discourse.paraview.org/user_avatar/discourse.paraview.org/bigfooted/32/6347_2.png) [@bigfooted](https://discourse.paraview.org/u/bigfooted)
#### Post date: [April 5, 2022, 9:27am UTC](https://discourse.paraview.org/t/multiple-particle-tracers-from-single-programmable-pointsource/9357/7 "2022-04-05T09:27:05Z")

</div>

The case is on github:

[https://github.com/bigfooted/su2cases/tree/master/validation/cylinder\_reduced](https://github.com/bigfooted/su2cases/tree/master/validation/cylinder_reduced)

You can get the folder without the rest of the testcases by:

> svn export [https://github.com/bigfooted/su2cases/trunk/validation/cylinder\_reduced/](https://github.com/bigfooted/su2cases/trunk/validation/cylinder_reduced/)

It contains the statefile and 6 timesteps, 80Mb

It show (in my case) that the programmable filter works correctly and injects a couple of points every time step that are transported downstream with the flow. The pointsource results in static points only

---

<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: [April 5, 2022, 9:37am UTC](https://discourse.paraview.org/t/multiple-particle-tracers-from-single-programmable-pointsource/9357/8 "2022-04-05T09:37:07Z")

</div>

Here is what I’m able to generate with your data:

[/uploads/default/original/2X/d/df3f89a37f17c8f60b7320fb7df26eaf31c5a551.mp4](https://discourse.paraview.org/uploads/default/original/2X/d/df3f89a37f17c8f60b7320fb7df26eaf31c5a551.mp4)

Please note that:

1. Your data is 2D, you need to project your point source on it (using a calculator)
2. Your time resolution is very low, resulting streamlines are not great
3. Your velocity is quite high, I had to divide it by 10 to keep the particle in domain long enough to trace something

---

<div class="post-metadata">

### Author: ![bigfooted](https://discourse.paraview.org/user_avatar/discourse.paraview.org/bigfooted/32/6347_2.png) [@bigfooted](https://discourse.paraview.org/u/bigfooted)
#### Post date: [April 5, 2022, 1:29pm UTC](https://discourse.paraview.org/t/multiple-particle-tracers-from-single-programmable-pointsource/9357/9 "2022-04-05T13:29:11Z")

</div>

Thanks @mwestphal, I did not realize that I had to map the 3D velocities and coordinates to 2D. The point source now also works. Here is a result where I use the programmable filter on a larger dataset:

[/uploads/default/original/2X/b/b0b72aabf23480f2a1f82a544340aa4f2c7ce88d.mp4](https://discourse.paraview.org/uploads/default/original/2X/b/b0b72aabf23480f2a1f82a544340aa4f2c7ce88d.mp4)
