CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   How to track the lifetime of a particle (https://www.cfd-online.com/Forums/openfoam-post-processing/253740-how-track-lifetime-particle.html)

han-1 December 28, 2023 01:39

How to track the lifetime of a particle
 
Hi everyone. :)
The case is simple . One inlet, One outlet and some walls. All of the walls are set as stick/trap.
Openfoam uses a particle property named ' active' to decide whether a particle is trapped to a wall and is therefore not considered.
There is another properties named 'age' to tell us the time passed since the particle was injected.
However, it seems that 'age' keeps growing when the particle is already trapped to the walls. I cannot find a way to the lifetime of the trapped particle since the injection time of specific particle is not recorded.
I guessed the injection time can be calculated by 'orginId' but it failed to give me the right answer. (The number of the particles/parcels during a time step injected is fixed)


All times are GMT -4. The time now is 11:52.