CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] How to extract a lagrangian point using its ID and attach a glyph

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By Lollum

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 4, 2017, 11:00
Question How to extract a lagrangian point using its ID and attach a glyph
  #1
New Member
 
Benjamin
Join Date: Sep 2011
Posts: 11
Rep Power: 14
elys is on a distinguished road
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
elys is offline   Reply With Quote

Old   January 26, 2022, 12:57
Default
  #2
New Member
 
Lorenzo Pedrolli
Join Date: Dec 2021
Posts: 3
Rep Power: 4
Lollum is on a distinguished road
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
Attached Images
File Type: jpg Sin título.jpg (106.8 KB, 40 views)
Shah Akib Sarwar likes this.

Last edited by Lollum; January 26, 2022 at 13:23. Reason: adding screenshot
Lollum is offline   Reply With Quote

Reply

Tags
glyph, particle, trace

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 04:51.