Beruflich Dokumente
Kultur Dokumente
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.
save the ASCII text commands in a text file; e.g. frame.cmd start up either the GUI or text mode of ANSYS
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 postprocessor 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...
This has now started ANSYS in the text mode and has told it what graphic device to use (in this case an X Windows, X11c, mode). At this point you could type in /menu,on, but you might not want to turn on the full graphic mode if working on a slow machine or if you are executing the program remotely. Let's assume that we don't turn the menu mode on... If the command file is in the current directory for ANSYS, then from the ANSYS input window, type
/input,frame,cmd
and yes that is a comma (,) between frame and cmd. If ANSYS can not find the file in the current directory, you may need to point it to the proper directory. If the file was in the directory, /myfiles/ansys/frame for example, you would use the following syntax
/input,frame,cmd,/myfiles/ansys/frame
If you want to rerun a new or modified file, it is necessary to clear the current model in memory with the command
/clear,start
This full procedure of loading in command files and clearing jobs and starting over again can be completed as many times as desired.
only a brief summary of some of the more common commands used for structural analysis. Category Basic Geometry Command k l larc Description keypoint definition straight line creation Syntax k,kp#,xcoord,ycoord,zcoord l,kp1,kp2
circular arc line larc,kp1,kp2,kp3,rad (from keypoints) (kp3 defines plane) circular line creation (creates keypoints) spline line through keypoints area definition from keypoints area definition from lines volume definition from keypoints volume definition from areas create volume from area extrusion see online help
circle
spline a al v
spline,kp1,kp2, ... kp6 a,kp1,kp2, ... kp18 a,l1,l2, ... l10 v,kp1,kp2, ... kp8
va
vext
create volume by see online help dragging area along path rectangle creation block volume creation cylindrical volume creation rectng,x1,x2,y1,y2 block,x1,x2,y1,y2,z1,z2 cylind,rad1,rad2,z1,z2,theta1,theta2
various volume creation commands adds separate areas to create single area
aadd,a1,a2, ... a9
aglue
creates new areas by glueing aglue,a1,a2, ... a9 (properties remain separate) creat new area by asba,a1,a2 area substraction create new area by area intersection volume boolean operations aina,a1,a2, ... a9
see online help et,number,type may define as many as required; current type is set by type type,number r,number,r1,r2, ... r6 may define as many as required; current type is set by real real,number mp,label,number,c0,c1, ... c4 may define as many as required; current type is set by mat
defines element type set current element type pointer define real constants for elements sets current real constant pointer sets material properties for elements
type
real
mp
mat
sets current material property mat,number pointer sets size or esize,size,ndivs number of use either size or ndivs divisions on lines controls element shape see online help
esize eshape
lmesh amesh vmesh Sets & Selection ksel nsel lsel asel nsla
select a subset of see online help keypoints select a subset of see online help nodes select a subjset of lines see online help
select a subset of see online help areas select nodes within selected area(s) see online help
allsel
select everything allsel i.e. reset selection defines a DOF constraint on a keypoint defines a DOF constraint on a node defines (anti)symmetry DOF constraints on a line defines a dk,kp#,label,value labels: UX,UY,UZ,ROTX,ROTY,ROTZ,ALL d,node#,label,value labels: UX,UY,UZ,ROTX,ROTY,ROTZ,ALL dl,line#,area#,label labels: SYMM (symmetry); ASYM (antisymmetry) fk,kp#,label,value labels: FX,FY,FZ,MX,MY,MZ
Constraints
dk
dl
Loads
fk f