28.18. Automatic Initialization of the Solution and Case Modification

While running a case manually, you can perform certain activities that may facilitate convergence. These actions may take place before initialization, after initialization and/or at other points during the calculation. The process described in this section allows you to enter text commands at each of these times when a case is run from the Run Calculation task page, Workbench, or in batch. In the Calculation Activities task page, enable Automatically Initialize Solution and Modify Case to automatically modify the case.

 Solution →   Calculation Activities →   Automatically Initialize Solution and Modify Case → Edit...

Figure 28.38:  The Automatically Initialize Solution and Modify Case Option

The Automatically Initialize Solution and Modify Case Option

When using this option, you can edit the calculation settings. Note that the original settings always exist and cannot be deleted. The duration of the calculation is defined, so immediately after enabling Automatically Initialize Solution and Modify Case, you will notice that the Calculation Activities task page reports that the case will be run with the original settings for a single iteration.

You can now control the number of iterations or time steps for the calculation. When Automatically Initialize Solution and Modify Case option is disabled, you will have to specify the iterations or time steps using the Run Calculation task page.

For an uninitialized case, clicking the Edit... button will display the Automatic Solution Initialization and Case Modification dialog box, which allows you to specify the initialization method and to modify the case.

Figure 28.39:  The Automatic Solution Initialization and Case Modification Dialog Box

The Automatic Solution Initialization and Case Modification Dialog Box

In the Initialization Method tab, you can specify four different initialization methods:

Initialize with Values from the Case

uses the values set in the Solution Initialization task page.


Note:  Hybrid initialization is not performed for this option; even if you have selected Hybrid Initialization under the Solution Initialization task page.


Use Solution Data from File

requires you to read in a data file containing the desired initialization for this case, as shown in Figure 28.39: The Automatic Solution Initialization and Case Modification Dialog Box.

Use Existing Solution Data

is analogous to changing the values in a case and continuing the calculation. However, the iteration counter will be reset to 0 so that the modifications can be applied. Use this method when no solution data exists, similar to the first run.


Important:  Whenever the case is initialized, the iteration count is set to 0.


In the Case Modification tab, you can indicate how long you would like to run with the original settings, then make any modifications to the case settings.

Figure 28.40:  The Case Modification Tab

The Case Modification Tab

If you decide to make no modifications, then the counter in the Defined Modifications box will be set to 0. However, you still have the option to specify settings that you would like to apply before initialization, or you can change your original settings. If Before Initialization is enabled, then you can type the text commands in the Commands field. If Original Settings is enabled, you can type text commands in the Commands field, and/or specify the Number of Iterations/Time Steps. When entering more than one text command in a single Commands field, begin each text command with a /, as shown in Figure 28.40: The Case Modification Tab.


Note:  Make sure that the text commands you have entered in the Commands field does not exceed 127 characters.



Important:  Note that some text commands require arguments (for example, numbers, file names, yes/no responses), which are requested through follow-up prompts in the console. When entering such text commands in the Commands field of the Case Modification tab, be sure to include your responses to the prompts. If you do not include these responses, the associated command will not be executed (unless it is a yes/no question, in which case ANSYS Fluent will use yes by default).


If you decide to run the calculation further with modifications to your case, increase the number of Defined Modifications and specify additional commands. The settings shown in Figure 28.40: The Case Modification Tab result in the following actions:

  1. The default initial values for initialization are computed from the velocity-inlet zone inlet-6.

  2. The iteration count is set to 0 (in all situations) and the solution is initialized.

  3. The calculation is run for 100 iterations or until convergence.

  4. The Courant number is set to 3.5.

  5. The calculation continues for 75 iterations or until convergence.

  6. The discretization scheme for turbulent kinetic energy is set to second order upwind, and the Courant number is set to 2.5.

  7. The calculation continues for 1000 iterations or until convergence.

You can make the above changes sequentially and run your case, or you can specify them all at once. When you have completed making the modifications, click OK. A Question dialog box may appear, prompting you to take specific actions. For example, if the Original Settings field is empty, then you may be notified that the original settings will be lost if the case is saved after the modifications are applied. It will prompt you for a response when asked if you would like to add commands that specify the original settings.


Important:  If you specify commands for the Original Settings, they will be applied to the case before the first iteration/time step.


Your actions will be summarized in the Calculation Activities task page, as shown in Figure 28.38: The Automatically Initialize Solution and Modify Case Option.

If you disable Automatically Initialize Solution and Modify Case, the settings will be disabled and retained, but will not be applied to the case.

When Automatically Initialize the Solution and Modify the Case is enabled, settings defined in the Run Calculation task page will be ignored. Instead, the Number of Iterations will be defined as Automatic, as shown in Figure 28.41: The Run Calculation Task Page.

Figure 28.41:  The Run Calculation Task Page

The Run Calculation Task Page

For additional information, see the following sections:


Release 18.2 - © ANSYS, Inc. All rights reserved.