A sample ANSYS start-up file, start.ans, is included in the ANSYS apdl directory (for example, /ansys_inc/v182/ansys/apdl/start.ans on Linux systems, Program Files\ANSYS Inc\V182\ANSYS\apdl\start.ans on Windows systems). Copy this file to your home directory, where you can modify the file to suit your preferences.
You can specify commands to be executed at program start-up in the start.ans file. For example, if you use certain functions frequently during an ANSYS session, you might define them as abbreviations (see Abbreviations) and define those abbreviations in the start.ans file.
By default, ANSYS reads start.ans at the beginning of an
interactive session, but does not read it during a batch session. Change these defaults
using the -s option when executing the ANSYS command. If you issue the
following command, the start.ans file will not be read even during
an interactive session:
ansys182 -s noread
Conversely, issuing the command shown below forces the program to read the start.ans file during batch execution:
ansys182 -b -s
You also can specify whether the start.ans file is to be read by using the Interactive or batch dialog box on the launcher. ANSYS reads the first start.ans file it finds in the following search paths:
The working directory
Your home directory
The ANSYS apdl directory
Additional values for the -s option are detailed in the following
section.
Changes made in the start.ans file, especially those concerning hardware or system configuration, could affect other programs after your ANSYS session is completed. Also, ANSYS configuration values that are set during an ANSYS session can carry over into the next ANSYS session if they are not reset. You can reset system parameters and ANSYS configuration values by including a stop.ans file in the same directory as the start.ans file.
By default, ANSYS reads start.ans and
stop.ans at the beginning and end of an interactive
session, respectively. You can change these defaults by using the
-s option when executing the ANSYS command. The following
values are valid for use in conjunction with the -s option:
-s
Value | Read start.ans? | Read stop.ans? |
|---|---|---|
| [default] | Yes | Yes |
| Noread | No | No |
| Nostart | No | Yes |
| Nostop | Yes | No |
Both the Linux and Windows launchers allow you to specify whether or not to read the start.ans file when the program is started. The value you choose for the start.ans file is also applied to the stop.ans file.