Professional Documents
Culture Documents
M14 Short Topics
M14 Short Topics
Short Topics
Chapter 14 – Short Topics
Overview Training Manual
November 1, 2002
Inventory #001755
14-2
Chapter 14 – Short Topics
Toolbar and Abbreviations Training Manual
November 1, 2002
Inventory #001755
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.
and simply press the appropriate button in the toolbar to turn line
numbering on or off.
November 1, 2002
Inventory #001755
14-4
Chapter 14 – Short Topics
…Toolbar and Abbreviations Training Manual
November 1, 2002
Inventory #001755
14-5
Chapter 14 – Short Topics
…Toolbar and Abbreviations Training Manual
November 1, 2002
Inventory #001755
14-6
Chapter 14 – Short Topics
…Toolbar and Abbreviations Training Manual
November 1, 2002
Inventory #001755
14-7
Chapter 14 – Short Topics
…Toolbar and Abbreviations Training Manual
November 1, 2002
Inventory #001755
14-8
Chapter 14 – Short Topics
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 documentation directory
(/ansys/docu).
– 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.
November 1, 2002
Inventory #001755
14-9
Chapter 14 – Short Topics
APDL Training Manual
November 1, 2002
Inventory #001755
14-10
Chapter 14 – Short Topics
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)
November 1, 2002
Inventory #001755
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
November 1, 2002
Inventory #001755
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.
November 1, 2002
Inventory #001755
14-14
Chapter 14 – Short Topics
Using Parameters Training Manual
November 1, 2002
Inventory #001755
14-15
Chapter 14 – Short Topics
...Using Parameters Training Manual
November 1, 2002
Inventory #001755
14-16
Chapter 14 – Short Topics
...Using Parameters Training Manual
November 1, 2002
Inventory #001755
14-17
Chapter 14 – Short Topics
Retrieving Database Information Training Manual
November 1, 2002
Inventory #001755
14-18
Chapter 14 – Short Topics
...Retrieving Database Information Training Manual
November 1, 2002
Inventory #001755
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
November 1, 2002
Inventory #001755
14-20
Chapter 14 – Short Topics
...Retrieving Database Information Training Manual
November 1, 2002
Inventory #001755
14-22
Chapter 14 - Batch Mode
Input files Training Manual
(The start file is just an input file that is automatically read at start-
up by a built-in /input command.)
• The path of the input file can have a maximum length of 250
characters (path and filename) plus an eight character extensionNovember 1, 2002
Inventory #001755
14-23
Chapter 14 - Batch Mode
…Input files Training Manual
November 1, 2002
Inventory #001755
14-24
Chapter 14 - Batch Mode
…Input files Training Manual
November 1, 2002
Inventory #001755
14-25
Chapter 14 - Batch Mode
…Input files Training Manual
November 1, 2002
Inventory #001755
14-26
Chapter 14 - Batch Mode
…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.
November 1, 2002
Inventory #001755
14-27
Chapter 14 - Batch Mode
…Input files Training Manual
November 1, 2002
Inventory #001755
14-28
Chapter 14 - Batch Mode
Submitting a batch job Training Manual
November 1, 2002
Inventory #001755
14-29
Chapter 14 – Short Topics
Summary Training Manual
November 1, 2002
Inventory #001755
14-30
Chapter 14 – Short Topics
Workshop Training Manual
• W14A Abbreviations
November 1, 2002
Inventory #001755
14-31