ANSYS Fluent FAQs
ANSYS Fluent - How do I insert a check/exit file to my running job?
This tutorial shows you how to insert a
exit-fluent file in the job directory of your running cluster in order to stop the iteration and write case/data files.
You will need first set up your SSH to perform this task. If you have not already done so, please follow the guide here. Click on the Server IP address on the SSH panel on the Status page to launch your SSH session, and follow the instructions below.
check-fluent file triggers Fluent to write and save case and data files at the end of the current iteration. The simulation will then continue to solve.
To insert a
check-fluent file, enter the following commands in your SSH session (2 lines).
cd /tmptouch check-fluent
For instance, if the journal file is setup to run for 500 iterations and a
check-fluent file is inserted during the 28th iteration, then a case and data file will be created with the iteration step appended to the file name. The simulation will continue and complete the 500 iterations. The following files will be available in the Results page of the job.
exit-fluent file, triggers Fluent to write and save case and data files at the end of the current iteration. The simulation will then terminate and exit Fluent.
To insert an
exit-fluent file, enter the following commands in your SSH session (2 lines).
cd /tmptouch exit-fluent
For instance, if the journal file is setup to run for 500 iterations and an
exit-fluent file is inserted during the 28th iteration, then a case and data file will be created with the iteration step appended to the file name. The simulation will not continue. The following files will be available in the Results page of the job.
ANSYS Fluent - How do I print a residuals plot on Rescale Batch
This tutorial shows you how to generate a residual plot during an ANSYS Fluent batch job. We will show two ways how you can accomplish this:
1. Setting it up on the Fluent GUI
You can use this method when you are setting up a job on a Rescale Desktop or your own local workstation.
- Open the relevant model in Fluent
- Go to the
Solutionsub-tree on the main menu. Click on
Calculation Activitiesand then on
Execute Commandsin the setup tree. This will open a dialog box to
- Enable the
Activecheck button next to the command
- Enter a name for the command under
- Indicate how often you want the residuals plotted by setting the interval under
Time Stepin the drop-down list under
When. Time step is a valid option for unsteady flow
/solve/monitors/residual/plot? yes /display/set-window 1 /display/save-picture residual.png
- Click on
OKto save the changes
2. Setting it at the journal file
You can use this method when you are setting up a batch job on the Rescale platform.
- Enter the following into the journal file after initialization and before solving
/solve/execute-commands/add-edit command-1 500 "iteration" "/solve/monitors/residual/plot? yes /display/set-window 1 /display/save-picture residual.png"
In the command line above,
command-1 500 "iteration" allows to print residuals every 500 iterations. 500 iterations is used here just as an example and may not be suitable for all jobs. Determine the frequency appropriate for the length of your job and modify
command-1 500 "iteration" as needed. Rewriting the residuals too often may cause the job to slow down.
A sample journal file with residual plot setup is shown below. Here, the run time is 7500 iterations and residuals are plotted every 500 iterations.
/file/set-batch-options no yes yes no/file/rc tjunction_plot.cas/solve/init/init//solve/execute-commands/add-edit command-1 500 "iteration" "/solve/monitors/residual/plot? yes /display/set-window 1 /display/save-picture residual.png"/solve/iterate 7500/file/wcd tjunction_plot%i.cas.gz/exit yes
Live Tailing and Results
You can view the residuals plot during the batch run using the live tailing feature. Once the job has started running, the
Live Tailing panel is displayed. The
residuals.png file should be created after the first few iterations. Search for `.png' file. Click on the file to display the plot.
Once the job is completed, the residuals plot file is populated on the
Results page along with the other job files. Click on
View icon to view the file. You can also download the residuals plot file by clicking on
Download icon or download all job files by clicking on the
Download Job icon.