-
-
December 22, 2022 at 7:02 pm
reza121
SubscriberHello, I hope you are doing well.
I am studying the particle capture efficiency of some custom-made screens in a duct (like a filter). I solve the case in the steady state and use steady DPM as a post-process after convergence. I have created a journal file that reads the injection files (a total of 10 injection groups for different mono-size particles) and then writes the summary of the DPM results in a file in a designated directory. The summary contains the total number of tracked parcels, the number that escaped, and the number that was trapped on each of my walls. In the end, I have 10 files with the suffix ".sum" in the designated directory.
I am planning to do a parameter study on Workbench and set the inlet velocity as the input parameter. One of my desired output parameters is pressure drop that I can set it using an area-weighted average on my inlet and outlet plane. I have been able to do that so far. However, there is no DPM report that could be set as an output parameter. The only ones that I could find were "escaped mass" or "evaporated mass" which are not what I'm looking for.
Is there any way that I could get Workbench to run my particle tracking journal file (as explained above) at the end of each design point simulation? I also need to change the directory in which the summaries are saved for each design point, so they wouldn't be overwritten.
Thanks for your time in advance
-
January 2, 2023 at 7:25 am
Prashanth
Ansys EmployeeHi
Have you considered using Execute commands for your requirement? You can input the equivalent TUI command for reading your journal file and execute it post calclation. And refer to this section for numbering the files (to avoid overwriting) that are written: 3.1.7. Automatic Numbering of Files
-
January 7, 2023 at 1:25 am
reza121
SubscriberThanks for your reply Prashanth.
let me start with the Automatic numbering first. Thanks for sharing the Automatic file numbering issue. I checked it and I guess that's what I needed. Still, I would like my DPM results to be written in a subdirectory named as the inlet velocity which is my study parameter here and changes in different cases. what is the correct special character for that? For example,
%f
and %i are the special characters for flow time and iteration respectively. how can I get my inlet velocity and use that number in my writing directory?The line of code that needs to be modified in my journal file is the following:
(cx-gui-do cx-set-file-dialog-entries "Select File" '( "/lustre07/scratch/reza121/NEW GEOMs/FM=1p25 FD=1p31/injection results/%inlet_velocity/0.1.sum") "Particle Summary Reports (*.sum)")
I need to somehow achieve the inlet velocity and then use it in my writing directory according to the above.
It is noteworthy that my inlet boundary condition is velocity inlet and it is set as an input parameter and changes between 0.01 to 5 m/s.
For DPM analysis in each of the parameter study design points, Execute command seems like a good solution but it didn't work sadly. I created a macro that reads a journal file. This journal file tracks particles and writes summaries in an assigned directory. I set the command to be executed every 5 iterations (for a test) but it doesn't do anything and just prints a ">" every five iterations in the console. Do you have any idea what could be wrong with that?
Thank you so much for your time and help
-
- You must be logged in to reply to this topic.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
-
2656
-
2120
-
1347
-
1118
-
461
© 2023 Copyright ANSYS, Inc. All rights reserved.