DX_120_CH_6_6_n

Chapter 6
DesignXplorer and APDL
ANSYS, Inc. Proprietary
© 2009 ANSYS, Inc. All rights reserved.
6-1
May 28, 2009
Inventory #002670
Chapter 6 Contents
•
•
•
•
Training Manual
Introduction
APDL Basics
Parameter Initialization
DesignXplorer APDL Example
ANSYS, Inc. Proprietary
© 2009 ANSYS, Inc. All rights reserved.
6-2
May 28, 2009
Inventory #002670
Introduction
Training Manual
• DesignXplorer can be used to run ANSYS input files which are
setup using ANSYS APDL (ANSYS Parametric Design Language).
• ANSYS input files are first read into a filter which scans the input
for parametric information.
• The user can specify input and response parameters from the filter
screen and run the input from the project page.
• When a solution is complete, postprocessing is done using the
same DesignXplorer tools described earlier.
ANSYS, Inc. Proprietary
© 2009 ANSYS, Inc. All rights reserved.
6-3
May 28, 2009
Inventory #002670
APDL Basics
Training Manual
• ANSYS APDL provides several methods to define parameters. For
example:
–
–
–
–
ABC = 10
*SET,ABC(1,2,3), 12.3,10.3, i
*GET,MAX_STRESS,NODE,STR_POINT,S,EQV
*VGET,MAX_STRESS(1,2,3),NODE,1,S,X
• DX uses an input file parser to expose parameter information.
• Several limitations exist:
– Where an input file calls a macro which contains parameter data.
– Where APDL Parameters are used as part of the parameter assignment.
For example: ABC(1,I,J)=10.345 (here I and J are scalar parameters).
– Where the APDL parameter is a character value or a character array.
For example: ABC='ANSYS‘.
• Users can directly enter parameters not found by the parser.
ANSYS, Inc. Proprietary
© 2009 ANSYS, Inc. All rights reserved.
6-4
May 28, 2009
Inventory #002670
Parameter Initialization
Training Manual
• The parser will attempt to determine an initial value for the Input
Parameters placed in the list.
• Initial values cannot be determined when:
– a parameter is defined by an APDL function.
– A parameter is defined by using another parameter on the right hand
side of the equal sign.
• If an initial value cannot be determined a value of 1.0 will be used.
• If changes are made to an input file it can be “refreshed” from the
parser screen.
• An example follows . . . .
ANSYS, Inc. Proprietary
© 2009 ANSYS, Inc. All rights reserved.
6-5
May 28, 2009
Inventory #002670
DX APDL Example
Training Manual
Input parameters
Example:
The input file (ansys_dx.inp)
shown here contains parametric
entries used to construct, solve
and postprocess a simple model.
Response parameter
ANSYS, Inc. Proprietary
© 2009 ANSYS, Inc. All rights reserved.
6-6
May 28, 2009
Inventory #002670
DX APDL Example
Training Manual
• Chose Mechanical APDL
from Toolbox
• RMB On Analysis > Add
Input File to read APDL
Input file
• Update Project
ANSYS, Inc. Proprietary
© 2009 ANSYS, Inc. All rights reserved.
6-7
May 28, 2009
Inventory #002670
DX APDL Example
Training Manual
• When the parser screen opens we
can see each defined parameter
from the input is shown.
Note: Dock the
property window
before you check
Input/Output box
• Although the parameters are
listed they are not yet identified
as input or response. By checking
the box in the Input and Output
column we define which
parameter is Input and which one
is Output.
• Note the parameter “theta” is
used internal to the file and not in
the optimization. In this case:
Theta = atan(2*(ho-t)/(dout-din))
ANSYS, Inc. Proprietary
© 2009 ANSYS, Inc. All rights reserved.
6-8
May 28, 2009
Inventory #002670
DX APDL Example
Training Manual
• Once the Parameter set
is defined you can
proceed with the DX
procedure as it was
explained in previous
chapters.
ANSYS, Inc. Proprietary
© 2009 ANSYS, Inc. All rights reserved.
6-9
May 28, 2009
Inventory #002670
DX APDL Example
Training Manual
Preview Design Points
Update Design Points
ANSYS, Inc. Proprietary
© 2009 ANSYS, Inc. All rights reserved.
6-10
May 28, 2009
Inventory #002670
DX APDL Example
Training Manual
Update Response Surface
ANSYS, Inc. Proprietary
© 2009 ANSYS, Inc. All rights reserved.
6-11
May 28, 2009
Inventory #002670