110 likes | 529 Vues
DesignXplorer and APDL. Chapter 6. Chapter 6 Contents. Introduction APDL Basics Parameter Initialization DesignXplorer APDL Example. Introduction. DesignXplorer can be used to run ANSYS input files which are setup using ANSYS APDL (ANSYS Parametric Design Language).
E N D
DesignXplorer and APDL Chapter 6
Chapter 6 Contents • Introduction • APDL Basics • Parameter Initialization • DesignXplorer APDL Example
Introduction • 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.
APDL Basics • 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.
Parameter Initialization • 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 . . . .
DX APDL Example 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
DX APDL Example • Chose Mechanical APDL from Toolbox • RMB On Analysis > Add Input File to read APDL Input file • Update Project
DX APDL Example • When the parser screen opens we can see each defined parameter from the input is shown. • 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: Note: Dock the property window before you check Input/Output box Theta = atan(2*(ho-t)/(dout-din))
DX APDL Example • Once the Parameter set is defined you can proceed with the DX procedure as it was explained in previous chapters.
DX APDL Example Preview Design Points Update Design Points
DX APDL Example Update Response Surface