CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Lagrangian particles and ParaFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 19, 2005, 10:25
Default Hi all, I would like to post-
  #1
Member
 
Tommaso Lucchini
Join Date: Mar 2009
Posts: 87
Rep Power: 17
lucchini is on a distinguished road
Hi all,
I would like to post-process my diesel-spray cases with paraFoam. I am able to see all the "eulerian" fields, but I don't know how to see the lagrangian particles and all the variable related to them.
Can anyone help me?
Thanks in advance.
Regards
Tommaso
lucchini is offline   Reply With Quote

Old   July 19, 2005, 11:40
Default Not possible with paraFoam as
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
Not possible with paraFoam as far as I can remember. Use foamToVTK instead.

Read the lagrangian data and 'Glyph' it.
mattijs is offline   Reply With Quote

Old   November 3, 2008, 00:28
Default Is there a way now to animate
  #3
Member
 
roy fokker
Join Date: Mar 2009
Posts: 44
Rep Power: 17
dbxmcf is on a distinguished road
Is there a way now to animate the particle (or droplets) movement with the results from the IcoLagrangianFoam? I have searched the wiki and found the following:
http://openfoamwiki.net/index.php/Main_FAQ#Postprocessing_of_Lagrangian_particle s
1. Run the foamToVTK post-processing utility. As with all OpenFOAM programs.
2. Read in your Eulerian data, if you wish
3. Read the Lagrangian data separately and 'Glyph' it. Glyphs are how Paraview represents point data. Usually, the sphere glyph is the most appropriate.

When use glyph, we only see the particles in a specific time frame, is there a way to animate it? Like what we do for the volScalarField or volVectorField? Thanks!
dbxmcf is offline   Reply With Quote

Old   November 3, 2008, 07:58
Default Hi Roy! The paraFoam that c
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Roy!

The paraFoam that comes with 1.5 has the ability to read lagrangian-data without converting it.

If you're stuck with 1.4.x try using paraview 3.x. It recognizes a series of .vtk-files as a time-series and these can be "played" as animations (don't know about the paraview 2.x-series). If you're reading in two series of the same length, then these get played in synchronicity

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   November 3, 2008, 11:16
Default Thanks, Bernhard, do you know
  #5
Member
 
roy fokker
Join Date: Mar 2009
Posts: 44
Rep Power: 17
dbxmcf is on a distinguished road
Thanks, Bernhard, do you know if there is already such examples (write particle data and then use foamToVTK) available? or I should start write my own script?
dbxmcf is offline   Reply With Quote

Old   November 3, 2008, 14:35
Default Just run foamToVTK on your cas
  #6
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Just run foamToVTK on your case. It will generate all the necessary data in a sub-directory named VTK in that case. The use "Open" in paraview
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   November 3, 2008, 15:02
Default Thanks, I didn't notice that p
  #7
Member
 
roy fokker
Join Date: Mar 2009
Posts: 44
Rep Power: 17
dbxmcf is on a distinguished road
Thanks, I didn't notice that paraview 3.4 does not need to "Glyph" for every time frame but only needs to Glyph once for the lagrangian data.
dbxmcf is offline   Reply With Quote

Old   June 3, 2010, 21:47
Default
  #8
Member
 
foamWang's Avatar
 
Roro Wang
Join Date: Mar 2010
Location: Cambridge, MA, USA
Posts: 30
Rep Power: 16
foamWang is on a distinguished road
Hi, all

The foamToVTK runs very well, but the eulerian and lagrangian field don't match in time.

LagrangianFoam always goes with integral time, eulerian goes with real time.

e.g. if my output time step is 0.1 s, 1st eulerian field is 0.1 s, but 1st lagrangian frame is at 1 s, i.e.the lagrangian field updates only when t=1, 2, 3 ..., eulerian updates at t=0.1 0.2 ... If the total number of frames are 100, eulerian field will finish showing up at t=10, (the time shows 10s in the toolbar) however, lagrangian field is still at t=1 s. afterwards, the lag field will update only to show all the frames. It seems lag field has no time infomation.

any idea to solve this?

Thanks.

Roro

Quote:
Originally Posted by gschaider View Post
Just run foamToVTK on your case. It will generate all the necessary data in a sub-directory named VTK in that case. The use "Open" in paraview
foamWang is offline   Reply With Quote

Old   June 4, 2010, 03:15
Default
  #9
Senior Member
 
matej forman
Join Date: Mar 2009
Location: Brno, Czech Republic
Posts: 182
Rep Power: 17
matejfor is on a distinguished road
Hi,
it never happend to me, I have all the time progress I've computed with lagrang. fields. You may check the VTK directory foamToVTK created and have a look if you have a list of lagrangian data as well as eulerian. What version of paraview are you using? Get the latest 3.8 from http://www.paraview.org/paraview/res.../software.html - the precompiled version - and try it again.

good luck
matej
matejfor is offline   Reply With Quote

Old   April 4, 2011, 14:50
Default
  #10
New Member
 
Prashant Gupta
Join Date: Mar 2011
Location: Edinburgh
Posts: 29
Rep Power: 15
Prash is on a distinguished road
Hey,

I have recently encountered same problem, did you find a solution to this problem of differnt time matching for Eulerian and Lagrangian? Please reply

Best Wishes
Prashant








Quote:
Originally Posted by foamWang View Post
Hi, all

The foamToVTK runs very well, but the eulerian and lagrangian field don't match in time.

LagrangianFoam always goes with integral time, eulerian goes with real time.

e.g. if my output time step is 0.1 s, 1st eulerian field is 0.1 s, but 1st lagrangian frame is at 1 s, i.e.the lagrangian field updates only when t=1, 2, 3 ..., eulerian updates at t=0.1 0.2 ... If the total number of frames are 100, eulerian field will finish showing up at t=10, (the time shows 10s in the toolbar) however, lagrangian field is still at t=1 s. afterwards, the lag field will update only to show all the frames. It seems lag field has no time infomation.

any idea to solve this?

Thanks.

Roro
Prash is offline   Reply With Quote

Old   April 4, 2011, 15:46
Default
  #11
Member
 
foamWang's Avatar
 
Roro Wang
Join Date: Mar 2010
Location: Cambridge, MA, USA
Posts: 30
Rep Power: 16
foamWang is on a distinguished road
Hi,

After updating to paraview version 3.8 or later, this problem is gone.

Bless,

Roro

Quote:
Originally Posted by Prash View Post
Hey,

I have recently encountered same problem, did you find a solution to this problem of differnt time matching for Eulerian and Lagrangian? Please reply

Best Wishes
Prashant
foamWang is offline   Reply With Quote

Old   April 4, 2011, 16:04
Default
  #12
New Member
 
Prashant Gupta
Join Date: Mar 2011
Location: Edinburgh
Posts: 29
Rep Power: 15
Prash is on a distinguished road
Hey ,

I am using Paraview 3.8.1 , but its encountering the same problem. Do you have suggestions? While solving its solved for the Eulerian time step, but I do not why but while using foamToVTK and reading that to paraview, it runs for different time steps for Eulerian ( 0,0.01......0.1) and after that (1,....10) for lagrangian. I even tried renaming the VTK files, it still doesnt work.

Please suggest.

Best Wishes
Prashant




Quote:
Originally Posted by foamWang View Post
Hi,

After updating to paraview version 3.8 or later, this problem is gone.

Bless,

Roro
Prash 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
Creating Lagrangian particles for postprocessing hjasak OpenFOAM Post-Processing 6 July 2, 2008 11:59
[OpenFOAM] Animating Lagrangian Particles in ParaView xiao ParaView 4 April 8, 2008 03:24
maximum particles' volume fraction for Lagrangian Itchie CFX 0 March 19, 2008 11:06
lagrangian particles allan Siemens 1 August 18, 2004 06:01
Lagrangian FEM for CFD Shyam Main CFD Forum 0 January 20, 2004 00:44


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