An example Mechanical APDL start-up file, start.ans, is included in the apdl directory (for example, /ansys_inc/v242/ansys/apdl/start.ans on Linux systems, and Program Files\ANSYS Inc\V242\ANSYS\apdl\start.ans on Windows systems). Copy the file to your home directory, where you can modify it 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 a session, you might define them as abbreviations (described in Abbreviations) and define those abbreviations in the start.ans file.
By default, the program reads the start.ans file at the beginning
of a session. To prevent the program from reading start.ans,
specify the -s
argument on the execution command:
ansys242 -s noread
You can also specify whether or not to read the start.ans file via the check box on the Customization/Preferences tab of the Launcher.
The program reads the first start.ans file it finds in the following search paths (in the order shown):
The working directory
Your home directory
The apdl directory
Additional values for the -s
option are described in The start.ans File.
Changes made in the start.ans file, especially those concerning hardware or system configuration, could affect other programs after your Mechanical APDL session is completed. Also, configuration values set during a session can carry over into the next session if they are not reset. You can reset system parameters and configuration values by including a stop.ans file in the same directory as the start.ans file.
By default, Mechanical APDL reads start.ans and
stop.ans at the beginning and end of an interactive
session, respectively. You can change these defaults via the -s
option when executing the Mechanical APDL execution command. The following values are valid
for 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 enable you to specify whether or not to read the start.ans file when the program is started. The value you select for the start.ans file is also applied to the stop.ans file.