CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] do particle tracking in paraview? (https://www.cfd-online.com/Forums/paraview/82036-do-particle-tracking-paraview.html)

heavy_user November 22, 2011 11:08

Quote:

Originally Posted by gwierink (Post 283721)
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!

afo November 29, 2011 03:24

layer tracking
 
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?

gwierink November 29, 2011 07:03

Can you use ranges on the initial particle IDs? This may give you "coloured bands" of particles ...

afo November 29, 2011 15:46

I'll try and let you know thanks :)

afo December 1, 2011 14:11

Hi Gijs,

I can't do what you said, anyway thanks

anger August 31, 2012 05:28

Pipeline browser
 
Dear Takuya,

Quote:

Originally Posted by 7islands (Post 283475)
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).
...

http://dl.dropbox.com/u/7352393/Part...Screenshot.png

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

wyldckat August 31, 2012 06:29

Greetings Thomas,
Quote:

Originally Posted by anger (Post 379660)
Sorry I can't find the screenshot of the pipeline browser; could you please show the visualisation pipeline?

I don't understand your question! :confused: 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

anger August 31, 2012 07:38

ok, I see...
 
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

wyldckat August 31, 2012 13:21

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

7islands August 31, 2012 22:59

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

anger September 4, 2012 14:37

oh oh oh
 
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

wyldckat September 4, 2012 15:03

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 :D

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

Best regards,
Bruno

emirust September 24, 2012 16:21

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.

immortality August 13, 2013 02:36

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


wyldckat August 16, 2013 14:02

Greetings to all!

Quote:

Originally Posted by immortality (Post 445334)
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

pcaron November 21, 2013 13:23

Question about particles and dynamic Mesh (AMI Faces)
 
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

fengjq April 3, 2014 12:09

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 (Post 283475)
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

http://dl.dropbox.com/u/7352393/Part...Screenshot.png


ENKIME April 23, 2014 13:04

SprayFoam
 
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

PaulVL May 27, 2014 09:13

particle path h5part format
 
Hi all

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

Thx !

paul

PaulVL May 27, 2014 10:07

Quote:

Originally Posted by PaulVL (Post 494339)
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 :o


All times are GMT -4. The time now is 01:27.