CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] How to extract a lagrangian point using its ID and attach a glyph (https://www.cfd-online.com/Forums/paraview/182229-how-extract-lagrangian-point-using-its-id-attach-glyph.html)

elys January 4, 2017 11:00

How to extract a lagrangian point using its ID and attach a glyph
 
Hi,

I have a particle simulation where I would like to visualize a single moving point out of a phase containing millions of points. I like to attach a glyph like a sphere to that point in order to see where this point is propagating. I've tried using a threshold (where I only can pick the scalars of the particles or phase ID) and some other filters without any success.
If I use a selection, I can pick any point and extract its data like particle ID, coordinates and so on, however, I have no idea how to use this information to visualize a glyph or smomething similar in order to track that particle. Does anybody of you have an idea how to achieve this?

Thanks in advance,
Ben

P.S. I'm using PV5.2 and .pvtu

Lollum January 26, 2022 12:57

1 Attachment(s)
Hi!
I have a similar problem. I traced down the issue to the fact that OpenFoam 9 tracks the particles by their original ID (origId). Upon importing the .vtk file, ParaView attaches to the Point ID according to a positional criteria, which is unrelated to origId.
It should be possible to either reorder the particles in ParaView using a filter, or during the VTK conversion, but I haven't yet gotten around to it.
However, in a newer version of PV (5.6) the filter "Temporal Particles to Pathline" can display the pathlines of the particles, allowing the selection of origId as tracking variable.
The selection tool "edit > find data" can be used too select a particle by origId. Once you selected the data you can use the filter ExtractSelection to track the single particle.
I hope this is useful for someone.
Cheers


All times are GMT -4. The time now is 21:47.