![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
You can request ANSYS FLUENT to automatically save case and data files at specified intervals during a calculation. This is especially useful for time-dependent calculations, since it allows you to save the results at different time steps or flow times without stopping the calculation and performing the save manually. You can also use the autosave feature for steady-state problems, and thus examine the solution at different stages in the iteration history.
Automatic saving is specified using the Autosave dialog box (Figure 4.3.1), which is opened by clicking the Edit... button next to the Autosave Every text box in the Calculation Activities task page.
Calculation Activities
Specify how often you would like to save your modified files by entering the frequency in the Save Data File Every number-entry field. Save Data File Every is set to zero by default, indicating that no automatic saving is performed.
If you choose to save the case file only if it is modified, then select If Modified During the Calculation or Manually under When the Data File is Saved, Save the Case File. Note that the case file will be saved whether you make a manual change, or if ANSYS FLUENT makes a change internally during the calculation. If you choose to save the case file every time the data file is saved, then select Each Time.
|
Should you decide that you want to save only the data files, then you can use the following TUI option:
file
This will result in the options in the When the Data File is Saved, Save the Case group box being disabled in the Autosave dialog box. In essence, this TUI command forces ANSYS FLUENT to the save case file only when the mesh is modified. (It is worth noting that it does not disable case file saving, but reduces it to an absolute minimum. This is necessary to do so since you cannot read a data file without a case file containing a matching mesh.)
|
For steady-state solutions, you will specify the frequency in iterations. For transient solutions, you will specify it in time steps (unless you are using the explicit time stepping formulation, in which case you will specify the frequency in iterations). If you define a frequency of 5, for example, a case file is saved every 5 iterations or time steps.
If you have limited disk space, restrict the number of files saved by ANSYS FLUENT by enabling the Retain Only the Most Recent Files option. When enabled, enter the Maximum Number of Data Files you would like to retain. Note that the case and data files are treated separately with regard to the maximum number of files saved when overwriting. For example, if the value of Maximum Number of Data Files is set to five, ANSYS FLUENT saves a maximum of five case and five data files, irrespective of the frequency. After the maximum limit of files has been saved, ANSYS FLUENT begins overwriting the earliest existing file.
If you have generated data (either by initializing the solution or running the calculation) you can view the list of standard quantities that will be written to the data file as a result of the autosave, and even select additional quantities for postprocessing in alternative applications. Simply click the Data File Quantities... button to open the Data File Quantities dialog box, and make any necessary selections. See Section 4.22 for details.
Enter a root name for the autosave files in the File Name text box. When the files are saved, a number will be appended to this root name to indicate the point at which it was saved during the calculation: for steady-state solutions, this will be the iteration number, whereas for transient solutions it will be either the time step number or flow time (depending on your selection in the step that follows). An extension will also be automatically added to the root name ( .cas or .dat). If the specified File Name ends in .gz or .Z, appropriate file compression is performed. See Section 4.1.5 for details about file compression.
For transient calculations, make a selection from the Append File Name with drop-down list to indicate whether you want the root file name to be appended with the time-step or flow-time (see Figure 4.3.1). If you select the latter, you can set the Decimal Places in File Name to determine the ultimate width of the file name.
Consider a transient case for which you want to save your case and data files at known time steps. The procedure you would follow is to first set the frequency in the Save Data File Every text box. Select Each Time if you want both case and data files saved at the same interval. Then enter my_file for the File Name. Finally, select time-step from the Append File Name with drop-down list. An example of the resulting files saved would be
You can revise the instructions for the previous example to instead save case and data files at known flow times, by selecting flow-time from the Append File Name with drop-down list. The default Decimal Places in File Name will be six. An example of the resulting files saved would be
indicating that these files were saved at a flow time of 0.5 seconds.
For steady-state and transient cases, you have the option of automatically numbering the files (as described in Section 4.1.7), and thereby include further information about when the files were saved. This involves the addition of special characters to the File Name. For example, you may want the file names to convey the flow times with their corresponding time steps (transient cases only). Select time-step from the Append File Name with, and enter a File Name that ends with -%f to automatically number the files with the flow time. Thus, entering a File Name of filename-%f could result in a saved case file named filename-000.500000-0010.cas. The conventions used in this example can be explained as follows:
All of the autosave inputs are stored in memory when you click OK in the Autosave dialog box, and can then be saved with the case file.
|
The
Autosave dialog box is slightly different when running
ANSYS FLUENT within
ANSYS Workbench. For more information, see the separate
FLUENT in
Workbench User's Guide.
|