|
[Sponsors] |
Exporting multiple flow data from particle tracks |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 14, 2011, 11:11 |
Exporting multiple flow data from particle tracks
|
#1 |
New Member
Andreas Håkansson
Join Date: Mar 2009
Location: Lund, Sweden
Posts: 12
Rep Power: 17 |
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. |
|
March 15, 2011, 09:51 |
Found a way of doing it
|
#2 |
New Member
Andreas Håkansson
Join Date: Mar 2009
Location: Lund, Sweden
Posts: 12
Rep Power: 17 |
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 |
|
March 15, 2011, 11:09 |
|
#3 |
Senior Member
|
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. |
|
March 15, 2011, 11:17 |
|
#4 |
New Member
Andreas Håkansson
Join Date: Mar 2009
Location: Lund, Sweden
Posts: 12
Rep Power: 17 |
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? |
|
March 15, 2011, 15:50 |
|
#5 |
Senior Member
|
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. |
|
March 16, 2011, 01:13 |
|
#6 |
Senior Member
xrs333
Join Date: Aug 2010
Posts: 125
Rep Power: 17 |
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. |
|
March 16, 2011, 02:34 |
|
#7 |
New Member
Andreas Håkansson
Join Date: Mar 2009
Location: Lund, Sweden
Posts: 12
Rep Power: 17 |
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. |
|
Tags |
dpm, exporting, fluent, particle tracking |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Display particle tracks with Tecplot | JS | FLUENT | 10 | May 2, 2019 03:48 |
mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 06:21 |
Saving particle (DPM) data to file? | Philip | FLUENT | 2 | June 12, 2006 02:41 |
Particle Tracks | Anand | Siemens | 2 | October 10, 2005 14:38 |
Exp. data for transonic flow | J. Held | Main CFD Forum | 4 | April 1, 1999 23:21 |