# How to get values along a particle trajectory?

**URL:** https://discourse.paraview.org/t/how-to-get-values-along-a-particle-trajectory/1398
**Category:** ParaView Support
**Created:** [March 5, 2019, 10:09pm UTC](https://discourse.paraview.org/t/how-to-get-values-along-a-particle-trajectory/1398 "2019-03-05T22:09:17Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Mariana\_Rodriguez](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mariana_rodriguez/32/1668_2.png) [@Mariana\_Rodriguez](https://discourse.paraview.org/u/Mariana_Rodriguez)
#### Post date: [March 5, 2019, 10:09pm UTC](https://discourse.paraview.org/t/how-to-get-values-along-a-particle-trajectory/1398/1 "2019-03-05T22:09:17Z")

</div>

Hello,  
I want to compute and get certain magnitudes (saved in my exodus file) following particles in Preview.  
Could someone please help on how to do this?  
I know how to follow particles, but I don’t know how to get data along its trajectory.  
Thank you!

---

<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: [March 8, 2019, 9:16am UTC](https://discourse.paraview.org/t/how-to-get-values-along-a-particle-trajectory/1398/2 "2019-03-08T09:16:00Z")

</div>

Hello,

Can you give a bit more explanation on what you want to do, with some data and/or screenshots ?

---

<div class="post-metadata">

### Author: ![Mariana\_Rodriguez](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mariana_rodriguez/32/1668_2.png) [@Mariana\_Rodriguez](https://discourse.paraview.org/u/Mariana_Rodriguez)
#### Post date: [March 8, 2019, 7:24pm UTC](https://discourse.paraview.org/t/how-to-get-values-along-a-particle-trajectory/1398/3 "2019-03-08T19:24:44Z")

</div>

Hello,

I have an exodus file that contains pressure temperature, velocities, etc.

I need to track a particle along its trajectory and I need to obtain what is the pressure and the temperature along its trajectory. To then do a plot of the pressure and temperature along the movement of the particles.

I know how to get particle trajectories in Paraview, but I don’t know how to record data along the particle movement along its trajectory.

I know paraview con color a trajectory based on other quantity data, such as velocity etc, because in the webpage there are plots showing that.

Basically I need that data not by color scale along the path, I need it quantitatively, for instance, pressure over time, temperature over time along the particle trajectory starting from time=zero.

Is this clearer?

Thanks a lot!

Mariana

---

<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: [March 11, 2019, 10:12am UTC](https://discourse.paraview.org/t/how-to-get-values-along-a-particle-trajectory/1398/4 "2019-03-11T10:12:36Z")

</div>

If your dataset is static : StreamTracer  
If your dataset has timesteps : Particle Path or Particle Tracer.

---

<div class="post-metadata">

### Author: ![Mariana\_Rodriguez](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mariana_rodriguez/32/1668_2.png) [@Mariana\_Rodriguez](https://discourse.paraview.org/u/Mariana_Rodriguez)
#### Post date: [March 11, 2019, 3:42pm UTC](https://discourse.paraview.org/t/how-to-get-values-along-a-particle-trajectory/1398/5 "2019-03-11T15:42:59Z")

</div>

Thanks for your reply.  
My data has time steps. I know how to draw trajectories using particle path.

My question to you is:

How can I get the time varying data along a particle path?

In my case I need pressure and temperature along the particle trajectory.

Is there any way to get that particular data?

Thank you very much 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: [March 11, 2019, 3:49pm UTC](https://discourse.paraview.org/t/how-to-get-values-along-a-particle-trajectory/1398/6 "2019-03-11T15:49:20Z")

</div>

If the data is present in the volume, the data should be present in the particle trajectory.

---

<div class="post-metadata">

### Author: ![Mariana\_Rodriguez](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mariana_rodriguez/32/1668_2.png) [@Mariana\_Rodriguez](https://discourse.paraview.org/u/Mariana_Rodriguez)
#### Post date: [March 11, 2019, 3:51pm UTC](https://discourse.paraview.org/t/how-to-get-values-along-a-particle-trajectory/1398/7 "2019-03-11T15:51:30Z")

</div>

Thanks for your reply. Agree.

My question to you is:

how can I get the data along the trajectory? Is the any filter, script, etc that can display the data along the trajectory only?

For instance, a filter that display pressure over time for a particular trajectory or particle?

Thanks!

---

<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: [March 11, 2019, 3:58pm UTC](https://discourse.paraview.org/t/how-to-get-values-along-a-particle-trajectory/1398/8 "2019-03-11T15:58:52Z")

</div>

- Select the cell corresponding to the particle you are interested
- Add an Extract Selection Filter, Apply
- Create a new view, Line Chart View
- Show the extract selection filter in the new view.

---

<div class="post-metadata">

### Author: ![Mariana\_Rodriguez](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mariana_rodriguez/32/1668_2.png) [@Mariana\_Rodriguez](https://discourse.paraview.org/u/Mariana_Rodriguez)
#### Post date: [March 20, 2019, 10:01pm UTC](https://discourse.paraview.org/t/how-to-get-values-along-a-particle-trajectory/1398/9 "2019-03-20T22:01:49Z")

</div>

Hi, Thank you for your reply.  
What you suggest is not what I want.  
I want to track a particle along its motion. Therefore the position of that particle is not constant over time.  
I know how to draw a trajectory. I want to know what certain properties saved in the exodus, vary for that particle over time.  
Is this clearer?  
THanks!

---

<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: [March 21, 2019, 8:17am UTC](https://discourse.paraview.org/t/how-to-get-values-along-a-particle-trajectory/1398/10 "2019-03-21T08:17:24Z")

</div>

It is clear to me and should be done via the steps I explained.

If you provide a dataset, I can generate a state file.
