Sie sind auf Seite 1von 1

ANSYS Command File Creation and Execution Page 1 of 5

ANSYS Command File Creation and Execution


Generating the Command File
There are two choices to generate the command file:

1. Directly type in the commands into a text file from scratch. This assumes a good knowledge of the
ANSYS command language and the associated options.

If you know what some of the commands and are unsure of others, execute the desired operation
from the GUI and then go to File -> List -> Log File. This will then open up a new window
showing the command line equivialent of all commands entered to this point. You may directly
cut and paste from here to a text editor, or if you'd like to save the whole file, see the next item in
this list.

2. Setup and solve the problem as you normally would using the ANSYS graphic user interface
(GUI). Then before you are finished, enter the command File -> Save DB Log File This saves
the equivalent ANSYS commands that you entered in the GUI mode, to a text file. You can now
edit this file with a text editor to clean it up, delete errors from your GUI use and make changes as
desired.

Running the Command File


To run the ANSYS command file,

 save the ASCII text commands in a text file; e.g. frame.cmd


 start up either the GUI or text mode of ANSYS

GUI Command File Loading

To run this command file from the GUI, you would do the following:

 From the File menu, select Read Input from.... Change to the appropriate directory where the
file (frame.cmd) is stored and select it.
 Now ANSYS will execute the commands from that file. The output window shows the progress of
this procedure. Any errors and warnings will be listed in this window.
 When it is complete, you may not have a full view of your structure in the graphic window. You
may need to select Plot -> Elements or Plot -> Lines or what have you.
 Assuming that the analysis worked properly, you can now use the post-processor to view element
deflections, stress, etc.
 If you want to fix some errors or make some changes to the command file, make those changes in
a separate window in a text editor. Save those changes to disk.
 To rerun the command file, you should first of all clear the current model from ANSYS. Select
File -> Clear & Start New.
 Then read in the file as before File -> Read Input from...

Command Line File Loading

file://D:\ankur\cad\ansya\ANSYST~1\ANSYS%20Command%20File%20Creation%20and... 8/7/2007

Das könnte Ihnen auch gefallen