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

print position of Lagrangian particle?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 8, 2010, 10:52
Default print position of Lagrangian particle?
  #1
Member
 
Sven Degner
Join Date: Mar 2009
Location: Zürich
Posts: 54
Rep Power: 8
sven82 is on a distinguished road
hi foamers,

I'm work at the moment with icoLangrangianFoam.
icoLagrangianFoam is a simple Solver exactly like icoFoam,
bur with Lagrangian particle. Now, i have problem with the position of the Lagrangian particle. For the post processing I want to follow the particle trace with a simple loop. For this loop I need the position particle, but everyone of my try s fail.
Know everyone how I can print the x,y and z position of Lagrangian particle?

thy for any help,
Sven
sven82 is offline   Reply With Quote

Old   March 8, 2010, 12:09
Default
  #2
Member
 
Andrew Ryan
Join Date: Mar 2009
Posts: 47
Rep Power: 8
andrewryan is on a distinguished road
I'm not sure if I understood your question correctly. There is a folder called lagrangian in the folder of every timestep. It contains a folder with the name of the could and a file called positions..
andrewryan is offline   Reply With Quote

Old   March 9, 2010, 03:58
Default
  #3
Member
 
matej forman
Join Date: Mar 2009
Location: Brno, Czech Republic
Posts: 92
Rep Power: 8
matejfor is on a distinguished road
Another possibility would be to use particleTracks from $FOAM/applications/utilities/postProcessing/lagrangian which creates particle tracks for paraview from where you can export the data to a file. There's also other way, to add a bit of coding into your solver to dump the positions or any other info about your particles. search in src directory for dumpParticlePositions or writePostions function (as in basic/Cloud/Cloud.H). The only problem with this solution is, that the IOstream is that it cannot append, so you will have loads of files for each time-step. but easy script will sort it out I guess.

hope this helps

matej
matejfor is offline   Reply With Quote

Old   March 9, 2010, 08:09
Default
  #4
Member
 
Andrew Ryan
Join Date: Mar 2009
Posts: 47
Rep Power: 8
andrewryan is on a distinguished road
I didn't know about the particle tracks utility.. thx for the hint
andrewryan is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lagrangian particle tracking jiejie OpenFOAM 14 December 9, 2011 23:53
Lagrangian Particle Tracking model In CFX Kushagra CFX 8 December 2, 2010 22:18
DPM UDF particle position using the macro P_POS(p)[i] dm2747 FLUENT 0 April 17, 2009 01:29
Particle position undetermined first time step Amine FLUENT 0 March 4, 2009 06:01
how to know position of particle in PTK areriko CFX 0 November 19, 2007 22:19


All times are GMT -4. The time now is 05:34.