April 2, 2022 at 12:29 pmujjsfSubscriber
I'm a engineering student doing my master thesis using Fluent for some flow simulations via batch mode on a Linux cluster.
Im searching for a way to export the residual history of a simulation automatically to a textfile using TUI commands in a Journal file. There is a TUI option to plot the residuals to file (/plot/residuals-set/plot-to-file *filename*) which only creates an empty textfile, doesn't matter if I use the command before starting or after finishing the calculation. In some internet forums people say, I need to use the command after the calculation and then calculate one more iteration, which does work for GUI mode but not for batch mode - the created textfile remains empty in this case.
Is there any way to export the residuals from Fluent? Maybe even during the calculation (which would be amazing!)? I know there are some ways programming a scheme script or bash script but I guess this kind of basic function should be implemented in Fluent?
Maybe even a way to plot for example time step size, iterations per time step and other simulation data over time during the calculation?
Kind regards and thanks a lot in advance for your help!
ujjsfApril 4, 2022 at 2:34 pms_88j4baSubscriberHi ujjsf I've experienced the very same problem, getting an empty file.txt when using the required plot-command in the journal file!!! For the GUI, though, it works fine...
i) initializing the solution ii) typing /plot/residuals-set/plot-to-file "file.txt" in the console iii) and running the calculation.
But in batch mode, there's no chance, neither on the cluster nor on the local machine. Same Fluent version!
Did you maybe figured out how to solve it, or anybody else that can help or explain why ANSYS FLUENT needs to make it so hard to get the residuals
April 5, 2022 at 1:14 pmSwathi V. V.Ansys Employee
You can write an output file, which will contain the output that Ansys Fluentwould normally print to the screen (for example, the menu prompts and residual reports).
Please refer to : https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v221/en/flu_ug/flu_ug_sec_batch_execution_unix.html
April 6, 2022 at 4:59 pms_88j4baSubscriberhi ujjsf I don't know if you're still struggling with exporting the residuals?! Maybe you'll have a look here https://doku.lrz.de/pages/viewpage.action?pageId=43321282!
With the help of paragraph "Creation of Graphics Output from ANSYS Fluent in Batch Mode" I was able to solve my problem!
April 7, 2022 at 9:11 amujjsfSubscriberHey panda_ray,
thanks a lot for your reply! This is a nice solution for calculations surveillance! I'm actually more searching for a text file with the residual data though, so I can set my own visualization preferences.
Did anyone get the /plot/residuals-set/plot-to-file command to work in batch mode?
April 7, 2022 at 10:29 amRobAnsys EmployeeThe transcript file includes the residual data but will need some clean up as it also contains everything else that gets pushed to the TUI. Depending on the launch options the TUI command may work, I've also got an enhancement request in for the residuals to be added to the list of monitors so we can plot that way.
Viewing 5 reply threads
Ansys Innovation Space
- 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.
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.Trending discussions
- 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
© 2023 Copyright ANSYS, Inc. All rights reserved.Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.