CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   DPM particle tracking in TUI (without displaying) (https://www.cfd-online.com/Forums/fluent/75497-dpm-particle-tracking-tui-without-displaying.html)

hankjones1 April 27, 2010 13:01

DPM particle tracking in TUI (without displaying)
 
Hi All,

I'm trying to write a journal file which tracks particles flowing through a geometry in a steady state flow. I am able to do this through the GUI journal commands by displaying injections and tracking particles on screen, and summary reporting the fates to a text file. However, I believe this bottlenecks my simulation speed and I want to write one in text-based user interface only.

Does anyone know the TUI commands for one-way coupling DPM injections and reporting their fates to file (without displaying them)? Should give me something like:


Escaped Incomplete
Zone 5 - 50 0
Zone 4 - 45 0

Thanks in advance. -sjc

tbraun84 September 13, 2018 12:57

Maybe...
 
In case this helps visitors after today - although I assume I'm too late to help the original poster...

You need to set up some parameters first:
1) /display/set/particle-tracks display? no
2) /display/set/particle-tracks report-type summary
3) /display/set/particle-tracks report-to file
4) /display/set/particle-tracks history-filename "your-file-name-here"

Then, you need to use the (counter-intuitive) command:
/display/particle-tracks particle-tracks <color-by variable> ("your-injection-1" ...) <min-of-variable> <max-of-variable>

Yes, you need to give it the display variables even with no gui. But this will get you that summary. In step 4) above, you could use %i to save the iteration step in the file name and therefore keep a history for each tracking command.

Note: the following applies to ANSYS Fluent v16.x. The TUI commands and syntax could be subject to change in the future and also may not be the same in versions prior to v16.

bjc8z October 1, 2018 13:08

Thanks so much, this is exactly what I needed.

habo June 9, 2020 11:54

DPM particle tracking in TUI (without displaying) -- Stey by Step summary
 
Hallo.


Thank you for the input. I really appreciated it. Just an remark. My goal is to write a step-by-step dpm summary report and this would be a working example:

;-- Report Particle -----------------------------------------
;-- Report to File
/display/set/particle-tracks/report-to file
/display/set/particle-tracks/report-type step
/display/set/particle-tracks/display no
/display/set/particle-tracks/history-filename "dpm-data-inj01.his"

;-- What to report
/display/set/particle-tracks/report-variables
particle-mass
particle-x-position
particle-y-position
particle-z-position
particle-reynolds-number
particle-temperature
q

;-- Which injection
/display/particle-tracks particle-tracks
;-- Particle tracks colored by>
temp
;-- Injection name(1) ["inj01"]
inj01
;-- Injection name(2) ["inj02"]
()
;-- minimum value (k) [300]

;-- maximum value (k) [1700]


Best Regards,
habo

satri April 4, 2023 14:28

can you export the particle history as xml file with tui?
 
Can you export the file in xml format


All times are GMT -4. The time now is 04:14.