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.
Simulation World 2022
Check out more than 70 different sessions now available on demand. Get inspired as you hear from visionary companies, leading researchers and educators from around the globe on a variety of topics from life-saving improvements in healthcare, to bold new realities of space travel. Take a leap of certainty and check out a session today here.
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
- Heat transfer coefficient
- What are the differences between CFX and Fluent?
- Floating point exception in Fluent
- Time Step Size and Courant Number
- Difference between K-epsilon and K-omega Turbulence Model
- The solver failed with a non-zero exit code of : 2
- Floating point exception
- How to model free convection warming of liquid in a plastic bag
Top Rated Tags