# On the Display of Particles with Different Diameters

**URL:** https://discourse.paraview.org/t/on-the-display-of-particles-with-different-diameters/13545
**Category:** ParaView Support
**Tags:** vtk
**Created:** [December 18, 2023, 7:08am UTC](https://discourse.paraview.org/t/on-the-display-of-particles-with-different-diameters/13545 "2023-12-18T07:08:50Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Guanlong](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/82dd89/32.png) [@Guanlong](https://discourse.paraview.org/u/Guanlong)
#### Post date: [December 18, 2023, 7:08am UTC](https://discourse.paraview.org/t/on-the-display-of-particles-with-different-diameters/13545/1 "2023-12-18T07:08:50Z")

</div>

Hello researcher, I am using the CFD-DEM method to simulate gas-solid two-phase flow. In the simulation, I set up two particles with different diameters, but during post-processing, I found that particles with different diameters display the same color. Is there any method to make particles with different diameters display different colors?

 ![32c80410194a66992ca6d05613c331f](https://discourse.paraview.org/uploads/default/original/2X/6/6191df7d15491fb8802c3c1115b9dcdb23f80fdf.png)  
[Case.zip](https://discourse.paraview.org/uploads/short-url/7J3rc4Rc3r5oorRH4arnhYqwoCA.zip) (2.7 MB)

---

<div class="post-metadata">

### Author: ![Lucas\_Givord](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lucas_givord/32/6851_2.png) [@Lucas\_Givord](https://discourse.paraview.org/u/Lucas_Givord)
#### Post date: [December 18, 2023, 8:10am UTC](https://discourse.paraview.org/t/on-the-display-of-particles-with-different-diameters/13545/2 "2023-12-18T08:10:12Z")

</div>

Hello @Guanlong,

I suppose its a temporal data? I think it’s probably an issue with your colormap which is not correctly rescale. You may want to rescale your colormap depending on all timesteps thanks to this button in paraview `Rescale to data range over all timesteps` :  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/f/f7b1944eaffd5bc077afc17560bfd3ce240c1f90.png)

You can also do something similar in the `ColorMap Editor` (in View / ColorMap Editor) with the `Automatic Rescale Range Mode` to `Grow and update every timestep`.

Best,

---

<div class="post-metadata">

### Author: ![Guanlong](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/82dd89/32.png) [@Guanlong](https://discourse.paraview.org/u/Guanlong)
#### Post date: [December 18, 2023, 10:50am UTC](https://discourse.paraview.org/t/on-the-display-of-particles-with-different-diameters/13545/3 "2023-12-18T10:50:21Z")

</div>

Thank you for your prompt reply. Another issue is that I want to monitor the gas flow rate on a section. I used the section function, but the section operation on a cylinder was not successful. This is because when I cancel the show plane function, I cannot see the cut surface on the cylinder. Which file type should I use for the section? The cross-section shown in the figure is carried out in a. vtp file.

 ![a22187885b43c0781537bc10bc93820](https://discourse.paraview.org/uploads/default/original/2X/7/7274d36b081de743dc5600f2b9038f783b26d2a2.png)  
 ![62ebfd913e7ed7f4abe3fd47e4191dd](https://discourse.paraview.org/uploads/default/original/2X/b/b62143ddc0106ce59d33645f4a3c8ecc131da7c7.png)

---

<div class="post-metadata">

### Author: ![Lucas\_Givord](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lucas_givord/32/6851_2.png) [@Lucas\_Givord](https://discourse.paraview.org/u/Lucas_Givord)
#### Post date: [December 18, 2023, 12:20pm UTC](https://discourse.paraview.org/t/on-the-display-of-particles-with-different-diameters/13545/4 "2023-12-18T12:20:30Z")

</div>

currently, based on your pipeline, you do the section on the particule not the cylinder that’s why you will see nothing (except if a particule is in the section of your slice), here is what I have when I apply it on the `geometry.stl` :

 ![image](https://discourse.paraview.org/uploads/default/original/2X/5/5f287fb130585411b47761b3ed771c3753e5e742.png)

---

<div class="post-metadata">

### Author: ![Guanlong](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/82dd89/32.png) [@Guanlong](https://discourse.paraview.org/u/Guanlong)
#### Post date: [December 18, 2023, 12:47pm UTC](https://discourse.paraview.org/t/on-the-display-of-particles-with-different-diameters/13545/5 "2023-12-18T12:47:58Z")

</div>

Thank you for your prompt reply. Excuse me again, I would like to solve for the mass flow rate of gas on the cross-section just now. Can you provide some help? Sincerely seeking your help, thank you very much!  
[Case.zip](https://discourse.paraview.org/uploads/short-url/oku02ed2y41yK7tFcGbZRzfWA2W.zip) (2.7 MB)

---

<div class="post-metadata">

### Author: ![Lucas\_Givord](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lucas_givord/32/6851_2.png) [@Lucas\_Givord](https://discourse.paraview.org/u/Lucas_Givord)
#### Post date: [December 18, 2023, 1:49pm UTC](https://discourse.paraview.org/t/on-the-display-of-particles-with-different-diameters/13545/6 "2023-12-18T13:49:43Z")

</div>

Sadly, I don’t really know how you can compute this information in ParaView maybe other people can help you. In term of visualization, you can apply a slice on the output of `Temporal Particules to PathLine` like this:

![example](https://discourse.paraview.org/uploads/default/original/2X/b/bb6efba9149d4dfff71171b9c27b6f3c7bfdcac1.gif)

Maybe you can do some post treatment with the `TrailId`? (to not count duplicate trail)

---

<div class="post-metadata">

### Author: ![Guanlong](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/82dd89/32.png) [@Guanlong](https://discourse.paraview.org/u/Guanlong)
#### Post date: [December 19, 2023, 1:03am UTC](https://discourse.paraview.org/t/on-the-display-of-particles-with-different-diameters/13545/7 "2023-12-19T01:03:10Z")

</div>

I sincerely thank you for your timely reply and tutorial. But I still have two questions:

1. What does the numerical value in the legend of trailld mean? Is it the length of the particle trajectory line?

2. Is the trajectory described in the figure for all particles?  
 ![f0aaa85b781b17974460bb14115c023](https://discourse.paraview.org/uploads/default/original/2X/1/12080725b9f2a912182a39ac2f4cb60cda555eac.png)

---

<div class="post-metadata">

### Author: ![Lucas\_Givord](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lucas_givord/32/6851_2.png) [@Lucas\_Givord](https://discourse.paraview.org/u/Lucas_Givord)
#### Post date: [December 19, 2023, 9:50am UTC](https://discourse.paraview.org/t/on-the-display-of-particles-with-different-diameters/13545/8 "2023-12-19T09:50:36Z")

</div>

`TrailID` represents the id for each trail, so using it as colormap is probably not really relevant for you.

This filter `Temporal Particules To Pathline` has a parameter `Mask Points` if you set it to 1, you’ll have 1 trail per particule (if you set it to 10 you will have 1 trail for each 10 particules, …)

Do you think using this filter + a slice can help you for your use case?

---

<div class="post-metadata">

### Author: ![Guanlong](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/82dd89/32.png) [@Guanlong](https://discourse.paraview.org/u/Guanlong)
#### Post date: [December 19, 2023, 2:23pm UTC](https://discourse.paraview.org/t/on-the-display-of-particles-with-different-diameters/13545/9 "2023-12-19T14:23:16Z")

</div>

Thank you very much for your reply. Your answer is not helpful for my question, but it has taught me new knowledge. I have already posted relevant questions on the forum. Anyway, thank you again.
