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

[OpenFOAM] do particle tracking in paraview?

Register Blogs Community New Posts Updated Threads Search

Like Tree24Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 22, 2011, 11:08
Default
  #21
Senior Member
 
Join Date: Dec 2009
Posts: 112
Rep Power: 16
heavy_user is on a distinguished road
Quote:
Originally Posted by gwierink View Post
Dear Pei-Ying,

particleTracks is a utility that is part of the OpenFOAM package (see here under "New utilities"). It lives in $FOAM_UTILITIES/postProcessing/lagrangian/particleTracks. In the case directory you need to copy a file called particleTrackProperties into the constant/ directory:
Code:
cp $FOAM_UTILITIES/postProcessing/lagrangian/particleTracks/particleTrackProperties constant/
Then, in the case, type
Code:
particleTracks
Hey All,

i did the things described above...
I load the vtk-file with paraFoam.
But regardless of the time step i am in, the color or size .... I choose, I just dont see a thing!! "Zoom to data" does not show anything either.

Am I missing something??

Cheers!
heavy_user is offline   Reply With Quote

Old   November 29, 2011, 03:24
Default layer tracking
  #22
afo
New Member
 
Paolo
Join Date: Nov 2011
Location: Taranto, Apulia, Italy
Posts: 26
Rep Power: 14
afo is on a distinguished road
Hi Foamers,

I'm simulating an hopper, and I'd like to track the bulk descent not particle by particle, but as layers of particles, in order to see how the particles starting from any layer move, and where they are during descent. I tried the elevation filter, but color changes obviously when particles move to a lower level, does anyone have any suggestion regarding how to cope with this?
afo is offline   Reply With Quote

Old   November 29, 2011, 07:03
Default
  #23
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
Can you use ranges on the initial particle IDs? This may give you "coloured bands" of particles ...
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   November 29, 2011, 15:46
Default
  #24
afo
New Member
 
Paolo
Join Date: Nov 2011
Location: Taranto, Apulia, Italy
Posts: 26
Rep Power: 14
afo is on a distinguished road
I'll try and let you know thanks
afo is offline   Reply With Quote

Old   December 1, 2011, 14:11
Default
  #25
afo
New Member
 
Paolo
Join Date: Nov 2011
Location: Taranto, Apulia, Italy
Posts: 26
Rep Power: 14
afo is on a distinguished road
Hi Gijs,

I can't do what you said, anyway thanks
afo is offline   Reply With Quote

Old   August 31, 2012, 05:28
Default Pipeline browser
  #26
Member
 
Thomas Wolfanger
Join Date: Mar 2009
Location: South West Germany
Posts: 62
Rep Power: 17
anger is on a distinguished road
Dear Takuya,

Quote:
Originally Posted by 7islands View Post
Hi guys,

Or in case if you want to create particle tracking with pathlines that animates over time completely within ParaView from case without lagrangian data, yes you can, but with a bit complex visualization pipeline (see the Pipeline Browser in the screenshot attached below).
...

Already some time ago, but...
Sorry I can't find the screenshot of the pipeline browser; could you please show the visualisation pipeline?

Regards,
-Thomas
anger is offline   Reply With Quote

Old   August 31, 2012, 06:29
Default
  #27
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Thomas,
Quote:
Originally Posted by anger View Post
Sorry I can't find the screenshot of the pipeline browser; could you please show the visualisation pipeline?
I don't understand your question! The "Pipeline Browser" is right there on that screenshot that you quoted! It's on the left side of the image, on the top part above the middle!

If that's not what you're looking for, then what exactly are you looking for?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   August 31, 2012, 07:38
Default ok, I see...
  #28
Member
 
Thomas Wolfanger
Join Date: Mar 2009
Location: South West Germany
Posts: 62
Rep Power: 17
anger is on a distinguished road
Hello Bruno,

maybe I've misunderstood something - I thought Takuya was writing about another method (without converting to VTK and only having time dependent data without particles) than the one mentioned above and to which the screenshot was belonging.
If this wasn't the case then please consider this question as not having been asked .
I'll take the opportunity and reformulate my actual question: is it possible to animate a bunch of particles (which are not part of the OF solution) to fly through a time dependent flow field? What filters and sources are needed for that?

Regards,
-Thomas
anger is offline   Reply With Quote

Old   August 31, 2012, 13:21
Default
  #29
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Thomas,

I can only try and answer the first part of your post: maybe what you want is to use the internal OpenFOAM reader instead? Namely to use the file extension ".foam", instead of ".OpenFOAM"?

If so, then as of OpenFOAM 2.0, you can run with the following option:
Code:
paraFoam -builtin
As for the second part of the post, I think you'll need a filter for generating the time path...

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   August 31, 2012, 22:59
Default
  #30
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
7islands is on a distinguished road
Thomas,

I was writing about another method (without converting to VTK and only having time dependent data without particles) than the one mentioned above and to which the screenshot was belonging.

Yes you can animate a bunch of particles (which are not part of the OF solution) to fly through a time dependent flow field whichever reader you are using (.foam or .OpenFOAM).

You just however have to construct a bit complex pipeline as shown in the pipeline browser in the screenshot and fiddle with the parameter settings of each filter (temporal interpolator, particle tracer, particle pathlines, ...). I did not elaborate to show all the settings since they are extensive and strongly case dependent.

T
7islands is offline   Reply With Quote

Old   September 4, 2012, 14:37
Default oh oh oh
  #31
Member
 
Thomas Wolfanger
Join Date: Mar 2009
Location: South West Germany
Posts: 62
Rep Power: 17
anger is on a distinguished road
Hi Takuya, Bruno,

now I understand what you mean: I can see the attached screenshot from Takuya when viewing the thread with my machine at home. However, I cannot see it when using my machine at work. Seems I'm looking quite goony now...
Sorry for spoiling the thread,

regards,

-Thomas
anger is offline   Reply With Quote

Old   September 4, 2012, 15:03
Default
  #32
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Takuya and Thomas,

@Thomas: I didn't even remember checking the source of the image... the link is pointing to a Dropbox account, which is probably why your computer at work is blocking it

Nonetheless, this was a good exercise to reinforce what was already explained

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 24, 2012, 16:21
Default
  #33
Member
 
Join Date: Sep 2012
Posts: 30
Rep Power: 13
emirust is on a distinguished road
Hey all!

I am trying to do some particle tracking on the cavity tutorial, and I tried both methods suggested on this thread (post 2 and 3).

I am using Paraview 3.12 and I can't seem to load the lagrangian field after using
Code:
 foamToVTK
. I found this on the wiki:

http://openfoamwiki.net/index.php/Ma...sing_foamToVTK

But it doesn't work either, so it is maybe worth updating?

About method 2, with the different filters. I get different warning messages from Paraview, but in the end nothing happens to my figure. Would somebody care posting some more information about the procedure?

Lastly, do you guys know any other place besides CFD Online to get some help specifically to Paraview?

Thanks!!

E.
emirust is offline   Reply With Quote

Old   August 13, 2013, 02:36
Default
  #34
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
although an old thread but maybe Takoya reads or others can help.
Hi Takoya
could you please explain your way by more steps?
I see this error when I select ParticleTracer1 after TemporalInterpolator1:
Code:
ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/IO/vtkOpenFOAMReader.cxx, line 6481
vtkOpenFOAMReaderPrivate (0x1d7e110): Error reading line 19 of /home/ehsan/Desktop/WR_3/0/T: Expected number, string or (, found Temperature


ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/IO/vtkOpenFOAMReader.cxx, line 6481
vtkOpenFOAMReaderPrivate (0x1d7e110): Error reading line 19 of /home/ehsan/Desktop/WR_3/0/U: Expected number, string or (, found Velocity


ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/IO/vtkOpenFOAMReader.cxx, line 6481
vtkOpenFOAMReaderPrivate (0x1d7e110): Error reading line 20 of /home/ehsan/Desktop/WR_3/0/k: Expected number, string or (, found turbulentK


ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/IO/vtkOpenFOAMReader.cxx, line 6481
vtkOpenFOAMReaderPrivate (0x1d7e110): Error reading line 20 of /home/ehsan/Desktop/WR_3/0/omega: Expected number, string or (, found turbulentOmega


ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/IO/vtkOpenFOAMReader.cxx, line 6481
vtkOpenFOAMReaderPrivate (0x1d7e110): Error reading line 19 of /home/ehsan/Desktop/WR_3/0/p: Expected number, string or (, found Pressure


ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Parallel/vtkTemporalStreamTracer.cxx, line 253
vtkTemporalStreamTracer (0x2947770): Input information has no TIME_STEPS set


ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkExecutive.cxx, line 756
vtkPVCompositeDataPipeline (0x2d85fe0): Algorithm vtkTemporalStreamTracer(0x2947770) returned failure for request: vtkInformation (0x7797b60)
  Debug: Off
  Modified Time: 670657
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_INFORMATION
  FROM_OUTPUT_PORT: 0
  FORWARD_DIRECTION: 0
  ALGORITHM_AFTER_FORWARD: 1




ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Parallel/vtkTemporalStreamTracer.cxx, line 253
vtkTemporalStreamTracer (0x2947770): Input information has no TIME_STEPS set


ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkExecutive.cxx, line 756
vtkPVCompositeDataPipeline (0x2d85fe0): Algorithm vtkTemporalStreamTracer(0x2947770) returned failure for request: vtkInformation (0x7797b60)
  Debug: Off
  Modified Time: 670657
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_INFORMATION
  FROM_OUTPUT_PORT: 0
  FORWARD_DIRECTION: 0
  ALGORITHM_AFTER_FORWARD: 1




ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkExecutive.cxx, line 756
vtkPVCompositeDataPipeline (0x2d85fe0): Algorithm vtkTemporalStreamTracer(0x2947770) returned failure for request: vtkInformation (0x10288a00)
  Debug: Off
  Modified Time: 671201
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_UPDATE_EXTENT
  ALGORITHM_BEFORE_FORWARD: 1
  FROM_OUTPUT_PORT: 0
  FORWARD_DIRECTION: 0




ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Parallel/vtkTemporalStreamTracer.cxx, line 253
vtkTemporalStreamTracer (0x2947770): Input information has no TIME_STEPS set


ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkExecutive.cxx, line 756
vtkPVCompositeDataPipeline (0x2d85fe0): Algorithm vtkTemporalStreamTracer(0x2947770) returned failure for request: vtkInformation (0xb99890)
  Debug: Off
  Modified Time: 671863
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_INFORMATION
  FROM_OUTPUT_PORT: 0
  FORWARD_DIRECTION: 0
  ALGORITHM_AFTER_FORWARD: 1




ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkExecutive.cxx, line 756
vtkPVCompositeDataPipeline (0x2d85fe0): Algorithm vtkTemporalStreamTracer(0x2947770) returned failure for request: vtkInformation (0xb99890)
  Debug: Off
  Modified Time: 671910
  Reference Count: 1
  Registered Events: (none)
  Request: REQUEST_UPDATE_EXTENT
  FROM_OUTPUT_PORT: 0
  FORWARD_DIRECTION: 0
  ALGORITHM_AFTER_FORWARD: 1
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   August 16, 2013, 14:02
Default
  #35
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

Quote:
Originally Posted by immortality View Post
I see this error when I select ParticleTracer1 after TemporalInterpolator1:
Code:
ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/IO/vtkOpenFOAMReader.cxx, line 6481
vtkOpenFOAMReaderPrivate (0x1d7e110): Error reading line 19 of /home/ehsan/Desktop/WR_3/0/T: Expected number, string or (, found Temperature
The explanation is simple: you are using ParaView 3.12.0 with the internal FOAM reader, namely with the extension ".foam". But your case is using "$Temperature" and other similar variables, which unfortunately this internal reader is not able to handle.
If you use the official OpenFOAM reader, namely with the extension ".OpenFOAM", you no longer have this problem.

Best regards,
Bruno
immortality likes this.
__________________
wyldckat is offline   Reply With Quote

Old   November 21, 2013, 13:23
Default Question about particles and dynamic Mesh (AMI Faces)
  #36
Member
 
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 16
pcaron is on a distinguished road
Hi to all!

I'd like to use the particle tracer option proposed by Takuya in an unsteady problem with moving mesh.

As a reference I used the propeller tutorial in pimpleDyMFoam (OF-2.2.x). This case has two regions, one that rotates and the other that remains fixed. Both regions are connected through an AMI face.

I successfully used ParaView particles in cases with constant mesh. If I repeat the procedure for this case all particles disapear after leaving the fixed mesh.

Has anyone faced this problem? Any idea about how to solve it?

Best

Pablo
pcaron is offline   Reply With Quote

Old   April 3, 2014, 12:09
Default
  #37
New Member
 
James Feng
Join Date: Dec 2013
Posts: 21
Rep Power: 12
fengjq is on a distinguished road
Hi, Takuya,

This thread appears to be a few years back; but I found it quite interesting. So, I'd like to learn more about it.

Would you or somebody who understand it explain what is actually done here? From what I'm reading here, Takuya was demonstrating a case with particle tracking in the cavity flow field, using the paraFoam (3.9...). But I wonder if this "cavity.Foam" case is the icoFoam tutorial case where only the incompressible flow field is solved. If so, where are the particle data came from? Shouldn't you generate the particle data by computing with a Lagrangian solver?

Currently, I'm using OpenFOAM v. 2.2.2 where I found the Lagrangian solver seems to be mostly for the reacting particles such as diesel engine combustion, which takes very long time to compute with many chemical species. But, I'm only interested in the behavior of nonreacting particles carried by gas flow in pipes such as dense gas-solid suspension flow in channels. Is there a relevant OpenFOAM Lagrangian solver available for my case?

Thank you very much.

fengjq


Quote:
Originally Posted by 7islands View Post
Hi guys,

Or in case if you want to create particle tracking with pathlines that animates over time completely within ParaView from case without lagrangian data, yes you can, but with a bit complex visualization pipeline (see the Pipeline Browser in the screenshot attached below).

The key is to apply Temporal Interpolator that allows you not only to interpolate saved time steps (that are typically too sparse to create a smooth particle tracking animation by themselves) but also to access temporal filters of ParticleTracer and Particle Pathlines. And note that you can create particle seeds from whatever source you like (Plane, Point Source Line, etc) in the Sources menu.

There are lots of options across the filters and sources that affect the formation of the pathlines so you need to do some experiments. Also, in my experience ParticleTracer of ParaView 3.8.0 often crashes ParaView so you might need a git version of ParaView 3.9.

Takuya

immortality likes this.
fengjq is offline   Reply With Quote

Old   April 23, 2014, 13:04
Default SprayFoam
  #38
Member
 
yes
Join Date: Apr 2014
Posts: 32
Rep Power: 12
ENKIME is on a distinguished road
Dear openFoamers
I need a solver to visualized a liquid spray. As I see in tutorials of OF, one of solvers I can use is sprayFoam (I need only first 2 steps: spray breakup and spray tracking).
Before use the solver sprayFoam, convert the data to foamToVTK and the using the paraview, the tutorial (dieselFoam http://www.tfd.chalmers.se/~hani/kur...oam.pdf‎) said that I need to open aachenBomb/1.vtk then for the particle tracking the defaultCloud_2.vtk, but in my vtk folder there is no defaultCloud only sprayCloud.vtk so when I open it an try to make a glyph with the conditions of sphere, paraview suddenly end and closed so I cant see any particle tracking.
Hopping you help
Kind regards
ENKIME is offline   Reply With Quote

Old   May 27, 2014, 09:13
Default particle path h5part format
  #39
New Member
 
Paul Van Liedekerke
Join Date: Mar 2014
Posts: 2
Rep Power: 0
PaulVL is on a distinguished road
Hi all

Is there a way to visualize in paraview a particle path using the H5part format as input ?

Thx !

paul
PaulVL is offline   Reply With Quote

Old   May 27, 2014, 10:07
Default
  #40
New Member
 
Paul Van Liedekerke
Join Date: Mar 2014
Posts: 2
Rep Power: 0
PaulVL is on a distinguished road
Quote:
Originally Posted by PaulVL View Post
Hi all

Is there a way to visualize in paraview a particle path using the H5part format as input ?

Thx !

paul

--> OK found it through the temporal particle pathline filter
PaulVL is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM] ParaView ErrOr soheil nazmdeh ParaView 1 August 17, 2013 07:40
injection problem Mark New FLUENT 0 August 4, 2013 01:30
Particle Tracking for ion Jun CFX 2 August 31, 2010 08:19
particle tracking in unsteady flow peterchen FLUENT 1 July 22, 2010 22:18
restarting lagrange (particle tracking) simulation dbdias CFX 0 September 22, 2007 19:26


All times are GMT -4. The time now is 13:19.