1.5. Having the Session Close After Sitting Idle

You have the option of enabling an idle timeout so that Ansys Fluent closes after a set period of sitting unused. This can be beneficial if an idle Fluent session is consuming computing resources that could be used elsewhere.

There are two ways to set an idle timeout:

1.5.1. Timeout Using the Set Idle Timeout Dialog Box

Use the following steps to setup an idle timeout:

  1. Open the Set Idle Timeout dialog box.

     File Idle Timeout...

    Figure 1.31: Set Idle Timeout Dialog Box

    Set Idle Timeout Dialog Box

  2. Enable Automatically exit after timeout.

  3. Enter how long you want Fluent to idle before closing in the Idle timeout (min) field. Note that with five minutes remaining on the timer, the Application About to Exit dialog box opens, providing a count down to when Fluent will close. Before closing, Fluent saves case and data files in the working directory.

    Figure 1.32: Application About to Exit Dialog Box

    Application About to Exit Dialog Box

  4. (Optional) Enable Remember this choice for future sessions if you want to have the idle timeout set for future instances of Fluent. Note that next time you open the Set Idle Timeout dialog box, Remember this choice for future sessions will not be enabled. All this option does is ask if you want to save settings for a future session as they are currently shown in the dialog box.

1.5.2. Timeout Using FLUENT_MAX_IDLE_TIMEOUT

You can use an environment variable to set the idle timeout. The advantage of using FLUENT_MAX_IDLE_TIMEOUT is that you can specify a maximum timeout at an administrator level, so that individual users cannot increase the timeout beyond the maximum you define. This is useful for managing cluster/HPC resources where Fluent is typically run in batch mode.

Set FLUENT_MAX_IDLE_TIMEOUT equal to the maximum time, in minutes, that you want a Fluent session to sit idle before it exits. This environment variable should be defined on the system where the Fluent batch jobs are run (such as, a Linux cluster managed through a job scheduler).

1.5.3. Idle Timeout Limitations

There are a few limitations associated with the idle timeout feature:

  • It is not available for Fluent Meshing except when Fluent Meshing is running from within Workbench.

  • (Windows only) it is not compatible with launching Fluent in -g or -gu mode.