CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

Exporting multiple flow data from particle tracks

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 14, 2011, 11:11
Default Exporting multiple flow data from particle tracks
  #1
New Member
 
Andreas Håkansson
Join Date: Mar 2009
Location: Lund, Sweden
Posts: 12
Rep Power: 8
andreas_haakansson is on a distinguished road
Hi,
I am simulating (FLUENT 12.0) a turbulent flow with discrete particles (including the Discrete Random Walk Model). By using GraphicsAndAnimations -> ParticleTracks it is possible to export a xy-plot of for example turbulent kinetic energy over residence time for each particle. But I want many flow properties (turbulent kinetic energy, dissipation, ...) over the particle tracks. If I click "write" several times FLUENT will perform a new particle tracking calculations and thus the two files are not comparable. I have also tried with the Step-by-stepReport in the same menu but that will only give me particle-variables, not flow variables. Export->ExportParticleHistoryData, seem to do the same as ParticleTracks; re-calculates the tracks for each time I write to file.

Does anybody have an idea?
I would greatly appreciate any ideas.
andreas_haakansson is offline   Reply With Quote

Old   March 15, 2011, 09:51
Default Found a way of doing it
  #2
New Member
 
Andreas Håkansson
Join Date: Mar 2009
Location: Lund, Sweden
Posts: 12
Rep Power: 8
andreas_haakansson is on a distinguished road
Ok, I found a way myself, but it is not pretty: Extracted the whole field and step-by-step report for particles separately. Then exernally (MATLAB) I go through each track and interpolates the flow variables.
This will work for my but I am still interested if someone knows how to do it inside FLUENT.

Kind Regards
Andreas Håkansson
andreas_haakansson is offline   Reply With Quote

Old   March 15, 2011, 11:09
Default
  #3
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Shiraz, Iran
Posts: 739
Blog Entries: 1
Rep Power: 14
Amir is on a distinguished road
Hi,
you can also do that by implementation of a simple UDf. e.g. with a macro that execute at every particle step and write desired flow properties of cells that contain the particles.
Amir is offline   Reply With Quote

Old   March 15, 2011, 11:17
Default
  #4
New Member
 
Andreas Håkansson
Join Date: Mar 2009
Location: Lund, Sweden
Posts: 12
Rep Power: 8
andreas_haakansson is on a distinguished road
Thanks for your reply Amir!
I have been think on using a UDF but I was not sure how. My idea was back then to use DEFINE_DPM_OUTPUT. However it seems tricky to access flow-variables. I would need to know in what cell each particle is a each time. I never really figured out how to do this.
My other suggestion was to just use the DEFINE_ON_DEMAND but i run into the same problem of finding the cells where particles are. Also in DEFINE_ON_DEMAND I never figured out how to obtain the particles.
Any suggestions?
andreas_haakansson is offline   Reply With Quote

Old   March 15, 2011, 15:50
Default
  #5
Senior Member
 
Amir's Avatar
 
Amir
Join Date: May 2009
Location: Shiraz, Iran
Posts: 739
Blog Entries: 1
Rep Power: 14
Amir is on a distinguished road
it's not difficult to find cell and cell-thread index that contain a particle. FLUENT has two functions for that:
P_CELL(p),P_CELL_THREAD(p)
but you should use them in compiled UDFs.
Amir is offline   Reply With Quote

Old   March 16, 2011, 01:13
Default
  #6
Senior Member
 
xrs333
Join Date: Aug 2010
Posts: 125
Rep Power: 8
xrs333 is on a distinguished road
Hi, Andreas Håkansson,
Now that you use DRW to take into account for the turbulent dissipation, it is meaningless to present properties one time for only one particle.
xrs333 is offline   Reply With Quote

Old   March 16, 2011, 02:34
Default
  #7
New Member
 
Andreas Håkansson
Join Date: Mar 2009
Location: Lund, Sweden
Posts: 12
Rep Power: 8
andreas_haakansson is on a distinguished road
Amir: Thanks, I didn't know about these functions. That is probably the solution.

xrs333: Thanks for your reply. I agree with you, I simulate at least 100 particles with the DRW (or until I reach convergence in my external simulation) but I want all of the flow variables for the same particle tracks. That was my problem. But I think I can solve this with Amirs anser now.
andreas_haakansson is offline   Reply With Quote

Reply

Tags
dpm, exporting, fluent, particle tracking

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
Display particle tracks with Tecplot JS FLUENT 9 July 11, 2014 17:51
mass flow in is not equal to mass flow out saii CFX 2 September 18, 2009 08:07
Saving particle (DPM) data to file? Philip FLUENT 2 June 12, 2006 01:41
Particle Tracks Anand CD-adapco 2 October 10, 2005 13:38
Exp. data for transonic flow J. Held Main CFD Forum 4 April 1, 1999 22:21


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