[ANSYS, Inc. Logo] return to home search
next up previous contents index

26.14 Executing Commands During the Calculation

As described in Sections  26.13 and 26.16, respectively, you can report and monitor various quantities (e.g., residuals, force coefficients) and create animations of the solution while the solver is performing calculations. ANSYS FLUENT also includes a feature that allows you to define your own command(s) to be executed during the calculation at specified intervals. For example, you can ask ANSYS FLUENT to perform gradient adaption after a set number of iterations. You will specify a series of text commands or use the GUI to define the steps to be performed.

figure   

Note that the Calculation Activities task page provides options to perform the following during the calculation:
  • save case and data files

  • export transient solution files

  • export transient particle history data files
Each of these options has their own dialog box, which should be used rather than executing a command to perform them. See Section  4.3.4 and Section  4.16 for details.

You will indicate the command(s) that you want the solver to execute at specified intervals during the calculation using the Execute Commands dialog box (Figure  26.14.1).

figure Calculation Activities (Execute Commands) figure Create/Edit...

Figure 26.14.1: The Execute Commands Dialog Box
figure

The procedure is as follows:

1.   Increase the Defined Commands value to the number of commands you wish to specify. As this value is increased, additional command entries will become editable. For each command, you will perform the following steps.

2.   Enable the Active check button next to the command if you want it to be executed during the calculation. You may define multiple commands and choose to use only a subset of them by turning off the check button for those that you do not wish to use.

3.   Enter a name for the command under the Name heading.

4.   Indicate how often you want the command to be executed by setting the interval under Every and selecting Iteration or Time Step in the drop-down list below When. ( Time Step is a valid choice only if you are calculating unsteady flow.) For example, to execute the command every 10 iterations, you would enter 10 under Every and select Iteration under When.

figure   

If you specify an interval in iterations, be sure to keep the Reporting Interval in the Run Calculation task page at its default value of 1.

5.   Define the command by entering a series of text commands in the Command field, or by entering the name of a command macro you have defined (or will define) as described in Section  26.14.1.

figure   

If the command to be executed involves saving a file, see Section  26.14.2 for important information.




next up previous contents index Previous: 26.13.5 Monitoring Volume Integrals
Up: 26. Using the Solver
Next: 26.14.1 Defining Macros
Release 12.0 © ANSYS, Inc. 2009-01-29