5.3. Batch Mode

Almost all of the functionality of Ansys TurboGrid can be accessed when running in batch mode. When running in batch mode, a viewer window is not provided and you cannot type commands at a command prompt.

Commands are issued via an Ansys TurboGrid Session file (*.tse), the name of which is specified when executing the command to start batch mode.

To run in batch mode, execute the following command at the command prompt:

Windows

<TURBOGRIDROOT>\bin\cfxtg -batch <filename>.tse

UNIX

<TURBOGRIDROOT>/bin/cfxtg -batch <filename>.tse

The session file can be created using a text editor, or, more easily, by recording a session file while running in Line Interface or user interface mode.

The last command of any session file used in batch mode should be >quit. If this is not the case, you will become locked in batch mode and have to terminate Ansys TurboGrid manually. If a session file is recording when you quit from user interface or line interface mode, the >quit command will be automatically written to your session file before Ansys TurboGrid quits. Alternatively, you can use a text editor to add this command to the end of a session file if you want Ansys TurboGrid to quit after playing the session file.