Short Topics
Chapter 14 Short Topics
Overview Training Manual
Februar
Chapter 14 Short Topics
A. Toolbar and Abbreviations Training Manual
Februar
Chapter 14 Short Topics
Toolbar and Abbreviations Training Manual
Later, to turn off line numbers, you would have to use the same menus again.
Februar
Chapter 14 Short Topics
Toolbar and Abbreviations Training Manual
Februar
Chapter 14 Short Topics
Toolbar and Abbreviations Training Manual
Februar
Chapter 14 Short Topics
Toolbar and Abbreviations Training Manual
Februar
Chapter 14 Short Topics
Toolbar and Abbreviations Training Manual
Februar
Chapter 14 Short Topics
B. Start File Training Manual
You can include any commands in the start file. The most
common ones are abbreviation definitions.
ANSYS checks for the start file first in the working directory and
then in your home directory. If no file is found, it will read the
default start file in the ANSYS apdl directory (..\v100\ansys\apdl).
The default start file contains several suggested abbreviations, all of
them commented out. You can make a copy of it and uncomment
the ones you want to use.
Februar
Chapter 14 Short Topics
C. APDL Training Manual
Februar
Chapter 14 Short Topics
D. Defining Parameters Training Manual
Name=Value
Can be typed in the input window or in
the Scalar Parameters dialog (Utility Menu
> Parameters > Scalar Parameters...)
Name is the parameter name, thirty-two
alphanumeric characters or less.
Value may be a number, a previously
defined parameter, a mathematical
function, a parametric expression, or a
character string (enclosed in single
quotes).
Can be kept in start##.ans file for
commonly used parameters, such as
PI = acos(-1)
Februar
Chapter 14 Short Topics
...Defining Parameters Training Manual
Februar
Chapter 14 Short Topics
...Defining Parameters Training Manual
28.7 job1
-9.2 job2
xvalues = -2.1 filnam = job3
51.0 job4
0.0 job5
Februar
Chapter 14 Short Topics
...Defining Parameters Training Manual
Names are not case-sensitive, i.e, RAD and Rad are the same.
All parameters are internally stored in capital letters.
Februar
Chapter 14 Short Topics
E. Using Parameters Training Manual
Februar
Chapter 14 Short Topics
...Using Parameters Training Manual
Februar
Chapter 14 Short Topics
...Using Parameters Training Manual
Februar
Chapter 14 Short Topics
F. Retrieving Database Information Training Manual
Februar
Chapter 14 Short Topics
...Retrieving Database Information Training Manual
Februar
Chapter 14 Short Topics
...Retrieving Database Information Training Manual
Examples:
x1=nx(1) ! x1 = X coordinate of node 1 [CSYS]*
nn=node(2.5,3,0) ! nn = node at or near (2.5,3,0) [CSYS]*
/post1
ux25=ux(25) ! ux25 = UX at node 25 [RSYS]*
temp93=temp(93) ! temp93 = temperature at node 93
width=distnd(23,88) ! width = distance between nodes 23 & 88
Februar
Chapter 14 Short Topics
...Retrieving Database Information Training Manual
Februar
Chapter 14 Short Topics
G. Batch Mode Training Manual
Februar
Chapter 14 Short Topics
H. Input files Training Manual
The path of the input file can have a maximum length of 250
characters (path and filename) plus an eight character extension
Februar
Chapter 14 Short Topics
Input files Training Manual
Februar
Chapter 14 Short Topics
Input files Training Manual
You can use the log file jobname.log as an input file. Keep in
mind the following points when you do this:
The log file records all commands executed during an ANSYS session.
Always use a copy of the log file, dont just rename it.
It may be helpful to edit the copy first and:
add descriptive comments
clean it up by removing erroneous commands and graphics
commands (/view, /focus, /dist, etc.)
add prompting commands (*ASK)
Februar
Chapter 14 Short Topics
Input files Training Manual
*ASK prompts the user for input and assigns the response to a
parameter. For example, you can modify rectangle.inp as follows:
/prep7 ! Enter preprocessor
*ask,w,WIDTH OF RECTANGLE,3
rect,0,w,0,1 ! Create a wx1 rectangle
aplot
When you input this file into ANSYS, you will see the prompt
shown below. Your response, say 5.2, is assigned to the
parameter w, which is used in the subsequent RECT command.
Februar
Chapter 14 Short Topics
Input files Training Manual
Februar
Chapter 14 Short Topics
I. Session Editor Training Manual
Februar
Chapter 14 Short Topics
Summary Training Manual
Februar
Chapter 14 Short Topics
J. Workshops Training Manual
Februar