Professional Documents
Culture Documents
Intro1 M14 Short-Topics
Intro1 M14 Short-Topics
Short Topics
Chapter 14 – Short Topics
Overview Training Manual
February 7, 2006
Inventory #002268
14-2
Chapter 14 – Short Topics
A. Toolbar and Abbreviations Training Manual
February 7, 2006
Inventory #002268
14-3
Chapter 14 – Short Topics
…Toolbar and Abbreviations Training Manual
Later, to turn off line numbers, you would have to use the same menus again.
February 7, 2006
Inventory #002268
14-4
Chapter 14 – Short Topics
…Toolbar and Abbreviations Training Manual
February 7, 2006
Inventory #002268
14-5
Chapter 14 – Short Topics
…Toolbar and Abbreviations Training Manual
February 7, 2006
Inventory #002268
14-6
Chapter 14 – Short Topics
…Toolbar and Abbreviations Training Manual
February 7, 2006
Inventory #002268
14-7
Chapter 14 – Short Topics
…Toolbar and Abbreviations Training Manual
February 7, 2006
Inventory #002268
14-8
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.
February 7, 2006
Inventory #002268
14-9
Chapter 14 – Short Topics
C. APDL Training Manual
February 7, 2006
Inventory #002268
14-10
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)
February 7, 2006
Inventory #002268
14-11
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
February 7, 2006
Inventory #002268
14-13
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.
February 7, 2006
Inventory #002268
14-14
Chapter 14 – Short Topics
E. Using Parameters Training Manual
February 7, 2006
Inventory #002268
14-15
Chapter 14 – Short Topics
...Using Parameters Training Manual
February 7, 2006
Inventory #002268
14-16
Chapter 14 – Short Topics
...Using Parameters Training Manual
February 7, 2006
Inventory #002268
14-17
Chapter 14 – Short Topics
F. Retrieving Database Information Training Manual
February 7, 2006
Inventory #002268
14-18
Chapter 14 – Short Topics
...Retrieving Database Information Training Manual
February 7, 2006
Inventory #002268
14-19
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
February 7, 2006
Inventory #002268
14-20
Chapter 14 – Short Topics
...Retrieving Database Information Training Manual
February 7, 2006
Inventory #002268
14-22
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 February 7, 2006
Inventory #002268
14-23
Chapter 14 – Short Topics
…Input files Training Manual
February 7, 2006
Inventory #002268
14-24
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, don’t 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)
February 7, 2006
Inventory #002268
14-25
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.
February 7, 2006
Inventory #002268
14-26
Chapter 14 – Short Topics
…Input files Training Manual
February 7, 2006
Inventory #002268
14-27
Chapter 14 – Short Topics
I. Session Editor Training Manual
February 7, 2006
Inventory #002268
14-28
Chapter 14 – Short Topics
Summary Training Manual
February 7, 2006
Inventory #002268
14-29
Chapter 14 – Short Topics
J. Workshops Training Manual
February 7, 2006
Inventory #002268
14-30