Ansys Advanced Analysis Techniques Guide
Ansys Advanced Analysis Techniques Guide
Ansys Advanced Analysis Techniques Guide
ANSYS, Inc. Southpointe 275 Technology Drive Canonsburg, PA 15317 [email protected] http://www.ansys.com (T) 724-746-3304 (F) 724-514-9494
Table of Contents
1. Design Optimization ........................................................................................................................... 11 1.1. Design Optimization Terminology ................................................................................................. 11 1.2. Understanding GUI Paths and Command Syntax ........................................................................... 14 1.3. Employing Design Optimization .................................................................................................... 14 1.3.1. Create the Analysis File ......................................................................................................... 15 1.3.1.1. Build the Model Parametrically .................................................................................... 15 1.3.1.2. Obtain the Solution ..................................................................................................... 16 1.3.1.3. Retrieve Results Parametrically .................................................................................... 17 1.3.1.4. Preparing the Analysis File ........................................................................................... 17 1.3.2. Establish Parameters for Optimization .................................................................................. 18 1.3.3. Enter OPT and Specify the Analysis File ................................................................................. 18 1.3.4. Declare Optimization Variables ............................................................................................ 19 1.3.5. Choose Optimization Tool or Method .................................................................................. 19 1.3.6. Specify Optimization Looping Controls ............................................................................... 110 1.3.7. Initiate Optimization Analysis ............................................................................................. 111 1.3.8. Review Design Sets Data .................................................................................................... 112 1.3.8.1. Manipulating Designs Sets ......................................................................................... 113 1.4. Multiple Optimization Executions ................................................................................................ 114 1.4.1. Restarting an Optimization Analysis .................................................................................... 114 1.5. Optimization Techniques ............................................................................................................ 115 1.5.1. Subproblem Approximation Method .................................................................................. 115 1.5.1.1. Approximations ......................................................................................................... 115 1.5.1.2. Conversion to an Unconstrained Problem .................................................................. 115 1.5.1.3. Convergence Checking .............................................................................................. 116 1.5.1.4. Special Considerations for Subproblem Approximation .............................................. 116 1.5.2. First Order Method ............................................................................................................. 117 1.5.2.1. Convergence Checking .............................................................................................. 117 1.5.2.2. Special Considerations for the First Order Method ...................................................... 118 1.5.3. Random Design Generation ............................................................................................... 118 1.5.4. Using the Sweep Tool ......................................................................................................... 118 1.5.5. Using the Factorial Tool ...................................................................................................... 119 1.5.6. Using the Gradient Evaluation Tool ..................................................................................... 119 1.6. Guidelines on Choosing Optimization Variables ........................................................................... 120 1.6.1. Choosing Design Variables ................................................................................................. 120 1.6.2. Choosing State Variables .................................................................................................... 121 1.6.3. Choosing the Objective Function ........................................................................................ 122 1.7. Hints for Performing Design Optimization ................................................................................... 122 1.7.1. Generating the Analysis File ............................................................................................... 122 1.7.2. Fixing Design Variable Values After Execution ..................................................................... 123 1.7.3. Modifying the Optimization Variables After Execution ......................................................... 124 1.7.4. Local Versus Global Minimum ............................................................................................. 124 1.7.5. Minimum Weight Versus Minimum Volume ........................................................................ 124 1.7.6. Mesh Density ..................................................................................................................... 125 1.7.7. Using Substructures ........................................................................................................... 125 1.8. Sample Optimization Analysis ..................................................................................................... 125 1.8.1. Problem Description .......................................................................................................... 125 1.8.2. Problem Specifications ....................................................................................................... 125 1.8.3. Using a Batch File for the Analysis ....................................................................................... 125 1.8.4. Using the GUI for the Analysis ............................................................................................. 127 1.8.5. Where to Find Other Examples ........................................................................................... 130
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
ANSYS Advanced Analysis Techniques Guide 2. Topological Optimization ................................................................................................................... 21 2.1. Understanding Topological Optimization ...................................................................................... 21 2.2. Employing Topological Optimization ............................................................................................ 21 2.2.1. Define the Structural Problem .............................................................................................. 22 2.2.2. Select the Element Types ..................................................................................................... 22 2.2.3. Specify Optimized and Non-Optimized Regions .................................................................... 22 2.2.4. Define and Control Your Load Cases or Frequency Extraction ................................................ 23 2.2.4.1. Linear Structural Static Analysis ................................................................................... 23 2.2.4.2. Modal Analysis ............................................................................................................ 23 2.2.5. Define and Control the Optimization Process ........................................................................ 24 2.2.5.1. Defining Optimization Functions ................................................................................. 24 2.2.5.2. Defining Objective and Constraints .............................................................................. 24 2.2.5.3. Solving and Initializing Optimization ............................................................................ 25 2.2.5.4. Executing a Single Iteration ......................................................................................... 26 2.2.5.5. Executing Several Iterations Automatically ................................................................... 27 2.2.6. Review the Results ............................................................................................................... 28 2.3. A 2-D Multiple-Load Case Optimization Example ........................................................................... 29 2.3.1. Problem Description - First Scenario ..................................................................................... 29 2.3.2. Problem Results -- First Scenario ......................................................................................... 210 2.3.3. Problem Description -- Second Scenario ............................................................................. 212 2.3.4. Problem Results - Second Scenario ..................................................................................... 213 2.4. A 2-D Natural Frequency Maximization Example .......................................................................... 215 2.4.1. Problem Description .......................................................................................................... 215 2.4.2. Problem Results ................................................................................................................. 217 2.5. Hints and Comments .................................................................................................................. 219 3. Probabilistic Design ............................................................................................................................ 31 3.1. Understanding Probabilistic Design .............................................................................................. 31 3.1.1. Traditional (Deterministic) vs. Probabilistic Design Analysis Methods .................................... 32 3.1.2. Reliability and Quality Issues ................................................................................................ 33 3.2. Probabilistic Design Terminology .................................................................................................. 33 3.3. Employing Probabilistic Design ..................................................................................................... 37 3.3.1. Create the Analysis File ......................................................................................................... 38 3.3.1.1. Sample Problem Description ....................................................................................... 39 3.3.1.2. Build the Model Parametrically .................................................................................... 39 3.3.1.3. Obtain the Solution ................................................................................................... 310 3.3.1.4. Retrieve Results and Assign as Output Parameters ...................................................... 310 3.3.1.5. Prepare the Analysis File ............................................................................................ 311 3.3.2. Establish Parameters for Probabilistic Design Analysis ......................................................... 311 3.3.3. Enter the PDS and Specify the Analysis File ......................................................................... 312 3.3.4. Declare Random Input Variables ......................................................................................... 313 3.3.5. Visualize Random Input Variables ....................................................................................... 318 3.3.6. Specify Correlations Between Random Variables ................................................................. 318 3.3.7. Specify Random Output Parameters ................................................................................... 321 3.3.8. Choose a Probabilistic Design Method ................................................................................ 321 3.3.8.1. Probabilistic Method Determination Wizard ............................................................... 322 3.3.9. Execute Probabilistic Analysis Simulation Loops .................................................................. 323 3.3.9.1. Probabilistic Design Looping ..................................................................................... 324 3.3.9.2. Serial Analysis Runs ................................................................................................... 325 3.3.9.3. PDS Parallel Analysis Runs .......................................................................................... 325 3.3.9.3.1. Machine Configurations .................................................................................... 326 3.3.9.3.1.1. Choosing Slave Machines ......................................................................... 327 3.3.9.3.1.2. Using the Remote Shell Option ................................................................. 327
vi
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
ANSYS Advanced Analysis Techniques Guide 3.3.9.3.1.3. Using the Connection Port Option ............................................................ 329 3.3.9.3.1.4. Configuring the Master Machine ............................................................... 331 3.3.9.3.1.5. Illustration of the host set-up using port option ........................................ 332 3.3.9.3.1.6. Host and Product selection for a particular analysis ................................... 333 3.3.9.3.2. Files Needed for Parallel Run ............................................................................. 334 3.3.9.3.3. Controlling Server Processes ............................................................................. 335 3.3.9.3.4. Initiate Parallel Run ........................................................................................... 336 3.3.10. Fit and Use Response Surfaces .......................................................................................... 336 3.3.10.1. About Response Surface Sets ................................................................................... 336 3.3.10.2. Fitting a Response Surface ....................................................................................... 337 3.3.10.3. Plotting a Response Surface ..................................................................................... 338 3.3.10.4. Printing a Response Surface ..................................................................................... 338 3.3.10.5. Generating Monte Carlo Simulation Samples on the Response Surfaces .................... 338 3.3.11. Review Results Data ......................................................................................................... 339 3.3.11.1. Viewing Statistics ..................................................................................................... 339 3.3.11.2. Viewing Trends ........................................................................................................ 341 3.3.11.3. Creating Reports ...................................................................................................... 341 3.4. Guidelines for Selecting Probabilistic Design Variables ................................................................. 342 3.4.1. Choosing and Defining Random Input Variables ................................................................. 342 3.4.1.1. Random Input Variables for Monte Carlo Simulations ................................................. 342 3.4.1.2. Random Input Variables for Response Surface Analyses .............................................. 342 3.4.1.3. Choosing a Distribution for a Random Variable .......................................................... 342 3.4.1.3.1. Measured Data ................................................................................................. 343 3.4.1.3.2. Mean Values, Standard Deviation, Exceedence Values ........................................ 343 3.4.1.3.3. No Data ............................................................................................................ 344 3.4.1.4. Distribution Functions ............................................................................................... 346 3.4.2. Choosing Random Output Parameters ................................................................................ 347 3.5. Probabilistic Design Techniques .................................................................................................. 347 3.5.1. Monte Carlo Simulations .................................................................................................... 348 3.5.1.1. Direct Sampling ......................................................................................................... 348 3.5.1.2. Latin Hypercube Sampling ......................................................................................... 349 3.5.1.3. User-Defined Sampling .............................................................................................. 350 3.5.2. Response Surface Analysis Methods ................................................................................... 352 3.5.2.1. Central Composite Design Sampling .......................................................................... 353 3.5.2.2. Box-Behnken Matrix Sampling ................................................................................... 355 3.5.2.3. User-Defined Sampling .............................................................................................. 356 3.6. Postprocessing Probabilistic Analysis Results ............................................................................... 356 3.6.1. Statistical Post-Processing .................................................................................................. 356 3.6.1.1. Sample History .......................................................................................................... 356 3.6.1.2. Histogram ................................................................................................................. 357 3.6.1.3. Cumulative Distribution Function .............................................................................. 357 3.6.1.4. Print Probabilities ...................................................................................................... 358 3.6.1.5. Print Inverse Probabilities .......................................................................................... 359 3.6.2. Trend Postprocessing ......................................................................................................... 359 3.6.2.1. Sensitivities ............................................................................................................... 359 3.6.2.2. Scatter Plots .............................................................................................................. 362 3.6.2.3. Correlation Matrix ...................................................................................................... 363 3.6.3. Generating an HTML Report ............................................................................................... 364 3.7. Multiple Probabilistic Design Executions ..................................................................................... 364 3.7.1. Saving the Probabilistic Design Database ........................................................................... 365 3.7.2. Restarting a Probabilistic Design Analysis ........................................................................... 365 3.7.3. Clearing the Probabilistic Design Database ......................................................................... 365
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
vii
ANSYS Advanced Analysis Techniques Guide 3.8. Sample Probabilistic Design Analysis ........................................................................................... 366 3.8.1. Problem Description .......................................................................................................... 366 3.8.2. Problem Specifications ....................................................................................................... 366 3.8.2.1. Problem Sketch ......................................................................................................... 367 3.8.3. Using a Batch File for the Analysis ....................................................................................... 367 3.8.4. Using the GUI for the PDS Analysis ...................................................................................... 368 4. Variational Technology ....................................................................................................................... 41 4.1. ANSYS DesignXplorer VT ............................................................................................................... 42 4.1.1. What is ANSYS DesignXplorer VT .......................................................................................... 42 4.1.2. Basic Operation .................................................................................................................... 43 4.1.2.1. Good Practices ............................................................................................................ 43 4.1.2.2. General Procedure for Using ANSYS DesignXplorer VT .................................................. 43 4.1.2.3. Additional VT Commands ............................................................................................ 44 4.1.2.4. Using ANSYS DesignXplorer VT Interactively ................................................................ 44 4.1.3. Element Support .................................................................................................................. 45 4.1.4. Limitations ........................................................................................................................... 46 4.1.5. Complete Discrete Analysis Example .................................................................................... 47 4.1.6. Shell Thickness Example ..................................................................................................... 416 4.1.7. ANSYS ParaMesh Example .................................................................................................. 417 4.1.8. Troubleshooting ................................................................................................................ 418 4.2. ANSYS Frequency Sweep VT ........................................................................................................ 418 4.2.1. ANSYS Frequency Sweep VT for High-Frequency Electromagnetic Problems ....................... 419 4.2.1.1. Transmission Line Example Problem .......................................................................... 419 4.2.1.2. Waveguide Example Problem .................................................................................... 421 4.2.2. ANSYS Frequency Sweep VT for Structural Analysis with Frequency-Dependent Material Properties .......................................................................................................................................... 424 4.2.2.1. Beam Example ........................................................................................................... 424 5. Adaptive Meshing ............................................................................................................................... 51 5.1. Prerequisites for Adaptive Meshing ............................................................................................... 51 5.2. Employing Adaptive Meshing ....................................................................................................... 52 5.3. Modifying the Adaptive Meshing Process ...................................................................................... 52 5.3.1. Selective Adaptivity ............................................................................................................. 53 5.3.2. Customizing the ADAPT Macro with User Subroutines ......................................................... 53 5.3.2.1. Creating a Custom Meshing Subroutine (ADAPTMSH.MAC) .......................................... 54 5.3.2.2. Creating a Custom Subroutine for Boundary Conditions (ADAPTBC.MAC) ..................... 54 5.3.2.3. Creating a Custom Solution Subroutine (ADAPTSOL.MAC) ............................................ 54 5.3.2.4. Some Further Comments on Custom Subroutines ........................................................ 55 5.3.3. Customizing the ADAPT Macro (UADAPT.MAC) ..................................................................... 55 5.4. Adaptive Meshing Hints and Comments ........................................................................................ 55 5.5. Where to Find Examples ............................................................................................................... 56 6. Manual Rezoning ................................................................................................................................. 61 6.1. When to Use Rezoning .................................................................................................................. 61 6.2. Rezoning Requirements ................................................................................................................ 65 6.3. The Rezoning Process ................................................................................................................... 66 6.4. Selecting the Substep to Initiate Rezoning .................................................................................... 67 6.5. Remeshing ................................................................................................................................... 68 6.5.1. Selecting a Region to Remesh .............................................................................................. 68 6.5.1.1. Preparing the Area for the New Mesh ........................................................................... 69 6.5.1.2. Remeshing Multiple Regions at the Same Substep ..................................................... 610 6.5.2. Mesh Control ..................................................................................................................... 610 6.5.3. Contact Boundaries, Loads, and Boundary Conditions ......................................................... 611 6.5.3.1. Contact Boundaries ................................................................................................... 611
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
viii
ANSYS Advanced Analysis Techniques Guide 6.5.3.2. Pressure and Contiguous Displacements .................................................................... 612 6.5.3.3. Forces and Isolated Applied Displacements ................................................................ 612 6.5.3.4. Nodal Temperatures .................................................................................................. 612 6.5.3.5. Other Boundary Conditions and Loads ....................................................................... 612 6.6. Mapping Variables and Balancing Residuals ................................................................................ 613 6.6.1. Mapping Solution Variables ................................................................................................ 613 6.6.2. Balancing Residual Forces .................................................................................................. 613 6.6.3. Continuing the Solution ..................................................................................................... 614 6.6.4. Interpreting Mapped Results .............................................................................................. 614 6.6.5. Handling Convergence Difficulties ...................................................................................... 615 6.7. Repeating the Rezoning Process if Necessary ............................................................................... 615 6.7.1. File Structures for Repeated Rezonings ............................................................................... 615 6.8. Multiframe Restart After Rezoning ............................................................................................... 616 6.9. Postprocessing Rezoning Results ................................................................................................ 616 6.9.1. The Database Postprocessor ............................................................................................... 616 6.9.2. The Time-History Postprocessor ......................................................................................... 617 6.10. Rezoning Limitations and Restrictions ....................................................................................... 617 6.10.1. Rezoning Restrictions ....................................................................................................... 618 6.11. Rezoning Example .................................................................................................................... 618 6.11.1. Initial Input for the Analysis .............................................................................................. 619 6.11.2. Rezoning Input for the Analysis ........................................................................................ 621 7. Cyclic Symmetry Analysis .................................................................................................................... 71 7.1. Understanding Cyclic Symmetry Analysis ...................................................................................... 72 7.1.1. How ANSYS Automates a Cyclic Symmetry Analysis .............................................................. 72 7.1.2. Commands Used in a Cyclic Symmetry Analysis .................................................................... 72 7.2. Cyclic Modeling ............................................................................................................................ 73 7.2.1. The Basic Sector ................................................................................................................... 73 7.2.2. Edge Component Pairs ......................................................................................................... 74 7.2.2.1. Identical vs. Dissimilar Edge Node Patterns .................................................................. 74 7.2.2.2. Unmatched Nodes on Edge-Component Pairs .............................................................. 75 7.2.2.3. Identifying Matching Node Pairs .................................................................................. 75 7.2.3. Model Verification (Preprocessing) ....................................................................................... 75 7.3. Solving a Cyclic Symmetry Analysis ............................................................................................... 75 7.3.1. Understanding the Solution Architecture ............................................................................. 76 7.3.1.1. The Duplicate Sector ................................................................................................... 76 7.3.1.2. Coupling and Constraint Equations (CEs) ..................................................................... 76 7.3.1.3. Non-Cyclically Symmetric Loading ............................................................................... 78 7.3.1.3.1. Specifying Non-Cyclic Loading ............................................................................ 78 7.3.1.3.2. Commands Affected by Non-Cyclic Loading ...................................................... 710 7.3.1.3.3. Plotting and Listing Non-Cyclic Boundary Conditions ........................................ 710 7.3.1.3.4. Graphically Picking Non-Cyclic Boundary Conditions ......................................... 710 7.3.2. Supported Analysis Types ................................................................................................... 710 7.3.3. Solving a Static Cyclic Symmetry Analysis ........................................................................... 711 7.3.4. Solving a Modal Cyclic Symmetry Analysis .......................................................................... 712 7.3.4.1. Understanding Harmonic Index and Nodal Diameter .................................................. 713 7.3.4.2. Solving a Stress-Free Modal Analysis .......................................................................... 714 7.3.4.3. Solving a Prestressed Modal Analysis ......................................................................... 714 7.3.4.4. Solving a Large-Deflection Prestressed Modal Analysis ............................................... 715 7.3.5. Solving a Linear Buckling Cyclic Symmetry Analysis ............................................................ 716 7.3.6. Solving a Magnetic Cyclic Symmetry Analysis ...................................................................... 717 7.3.7. Database Considerations After Obtaining the Solution ........................................................ 718 7.3.8. Model Verification (Solution) .............................................................................................. 718
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
ix
ANSYS Advanced Analysis Techniques Guide 7.4. Postprocessing a Cyclic Symmetry Analysis ................................................................................. 719 7.4.1. Real and Imaginary Solution Components .......................................................................... 719 7.4.2. Expanding the Cyclic Symmetry Solution ............................................................................ 720 7.4.2.1. Using the /CYCEXPAND Command ............................................................................ 720 7.4.2.1.1. Applying a Traveling Wave Animation to the Cyclic Model ................................. 721 7.4.2.2. Using the EXPAND Command .................................................................................... 722 7.4.3. Phase Sweep of Repeated Eigenvector Shapes .................................................................... 722 7.5. Sample Modal Cyclic Symmetry Analysis ..................................................................................... 723 7.5.1. Problem Description .......................................................................................................... 723 7.5.2. Problem Specifications ....................................................................................................... 723 7.5.3. Input File for the Analysis ................................................................................................... 725 7.5.4. Analysis Steps .................................................................................................................... 727 7.6. Sample Buckling Cyclic Symmetry Analysis .................................................................................. 729 7.6.1. Problem Description .......................................................................................................... 729 7.6.2. Problem Specifications ....................................................................................................... 729 7.6.3. Input File for the Analysis ................................................................................................... 731 7.6.4. Analysis Steps .................................................................................................................... 733 7.6.5. Solve For Critical Strut Temperature at Load Factor = 1.0 ..................................................... 735 7.7. Sample Magnetic Cyclic Symmetry Analysis ................................................................................. 738 7.7.1. Problem Description .......................................................................................................... 738 7.7.2. Problem Specifications ....................................................................................................... 740 7.7.3. Input file for the Analysis .................................................................................................... 740 8. Submodeling ....................................................................................................................................... 81 8.1. Employing Submodeling .............................................................................................................. 82 8.1.1. Create and Analyze the Coarse Model ................................................................................... 82 8.1.2. Create the Submodel ........................................................................................................... 83 8.1.3. Perform Cut-Boundary Interpolation .................................................................................... 84 8.1.4. Analyze the Submodel ......................................................................................................... 86 8.1.5. Verify the Distance Between the Cut Boundaries and the Stress Concentration ...................... 88 8.2. Sample Analysis Input ................................................................................................................... 89 8.3. Shell-to-Solid Submodels ............................................................................................................ 810 8.4. Where to Find Examples .............................................................................................................. 812 9. Substructuring .................................................................................................................................... 91 9.1. Employing Substructuring ............................................................................................................ 91 9.1.1. Generation Pass: Creating the Superelement ........................................................................ 92 9.1.1.1. Building the Model ...................................................................................................... 93 9.1.1.2. Applying Loads and Creating the Superelement Matrices ............................................. 94 9.1.2. Use Pass: Using the Superelement ........................................................................................ 97 9.1.2.1. Clear the Database and Specify a New Jobname ........................................................... 97 9.1.2.2. Build the Model ........................................................................................................... 98 9.1.2.3. Apply Loads and Obtain the Solution ......................................................................... 910 9.1.3. Expansion Pass: Expanding Results Within the Superelement .............................................. 912 9.2. Sample Analysis Input ................................................................................................................. 914 9.3. Top-Down Substructuring ........................................................................................................... 915 9.4. Automatically Generating Superelements ................................................................................... 917 9.5. Nested Superelements ................................................................................................................ 918 9.6. Prestressed Substructures ........................................................................................................... 918 9.6.1. Static Analysis Prestress ...................................................................................................... 918 9.6.2. Substructuring Analysis Prestress ....................................................................................... 919 9.7. Where to Find Examples .............................................................................................................. 919 10. Component Mode Synthesis ........................................................................................................... 101 10.1. Understanding Component Mode Synthesis .............................................................................. 101
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
ANSYS Advanced Analysis Techniques Guide 10.1.1. CMS Methods Supported .................................................................................................. 101 10.1.2. Solvers Used in Component Mode Synthesis ..................................................................... 102 10.2. Employing Component Mode Synthesis .................................................................................... 102 10.2.1. The CMS Generation Pass: Creating the Superelement ...................................................... 103 10.2.2. The CMS Use and Expansion Passes .................................................................................. 104 10.2.3. Superelement Expansion in Transformed Locations .......................................................... 104 10.2.4. Plotting or Printing Mode Shapes ..................................................................................... 105 10.3. Sample Component Mode Synthesis Analysis ............................................................................ 105 10.3.1. Problem Description ........................................................................................................ 105 10.3.2. Problem Specifications ..................................................................................................... 105 10.3.3. Input for the Analysis: Fixed-Interface Method .................................................................. 108 10.3.4. Analysis Steps: Fixed-Interface Method ........................................................................... 1012 10.3.5. Input for the Analysis: Free-Interface Method .................................................................. 1015 10.3.6. Analysis Steps: Free-Interface Method ............................................................................. 1017 10.3.7. Example: Superelement Expansion in a Transformed Location ......................................... 1017 10.3.7.1. Analysis Steps: Superelement Expansion in a Transformed Location ........................ 1019 11. Rigid Body Dynamics and the ANSYS-ADAMS Interface ................................................................. 111 11.1. Building the Model ................................................................................................................... 111 11.2. Modeling Interface Points ......................................................................................................... 112 11.3. Exporting to ADAMS ................................................................................................................. 114 11.3.1. Exporting to ADAMS via Batch Mode ................................................................................ 116 11.3.2. Verifying the Results ......................................................................................................... 116 11.4. Running the ADAMS Simulation ................................................................................................ 117 11.5. Transferring Loads from ADAMS to ANSYS ................................................................................. 117 11.5.1. Transferring Loads on a Rigid Body ................................................................................... 117 11.5.1.1. Exporting Loads in ADAMS ...................................................................................... 117 11.5.1.2. Importing Loads into ANSYS .................................................................................... 119 11.5.1.3. Importing Loads via Commands ............................................................................. 1110 11.5.1.4. Reviewing the Results ............................................................................................ 1110 11.5.2. Transferring the Loads of a Flexible Body ........................................................................ 1110 11.6. Methodology Behind the ANSYS-ADAMS Interface .................................................................. 1111 11.6.1. The Modal Neutral File .................................................................................................... 1111 11.6.2. Adding Weak Springs ..................................................................................................... 1111 11.7. Sample Rigid Body Dynamic Analysis ....................................................................................... 1112 11.7.1. Problem Description ....................................................................................................... 1112 11.7.2. Problem Specifications ................................................................................................... 1112 11.7.3. Command Input ............................................................................................................. 1113 12. Element Birth and Death ................................................................................................................. 121 12.1. How Does Element Birth and Death Work? ................................................................................ 121 12.2. Element Birth and Death Usage Hints ........................................................................................ 122 12.2.1. Changing Material Properties ........................................................................................... 123 12.3. Employing Birth and Death ....................................................................................................... 123 12.3.1. Build the Model ................................................................................................................ 123 12.3.2. Apply Loads and Obtain the Solution ................................................................................ 123 12.3.2.1. Define the First Load Step ........................................................................................ 123 12.3.2.1.1. Sample Input for First Load Step ...................................................................... 124 12.3.2.2. Define Subsequent Load Steps ................................................................................ 124 12.3.2.2.1. Sample Input for Subsequent Load Steps ........................................................ 124 12.3.3. Review the Results ........................................................................................................... 124 12.3.4. Use ANSYS Results to Control Birth and Death ................................................................... 125 12.3.4.1. Sample Input for Deactivating Elements ................................................................... 125 12.4. Where to Find Examples ............................................................................................................ 125
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
xi
ANSYS Advanced Analysis Techniques Guide 13. User-Programmable Features and Nonstandard Uses .................................................................... 131 13.1. User-Programmable Features .................................................................................................... 131 13.1.1. Employing User-Programmable Features .......................................................................... 131 13.1.2. Types of User-Programmable Features Available ............................................................... 132 13.2. Nonstandard Uses of the ANSYS Program .................................................................................. 133 13.2.1. What Are Nonstandard Uses? ............................................................................................ 133 13.2.2. Hints for Nonstandard Use of ANSYS ................................................................................. 134 14. Improving ANSYS Performance and Parallel Performance for ANSYS ........................................... 141 14.1. Activating Parallel Processing .................................................................................................... 141 14.1.1. System-Specific Considerations ....................................................................................... 142 14.2. Using the Parallel Performance for ANSYS Add-On ..................................................................... 143 14.2.1. About the Algebraic Multigrid (AMG) Solver ...................................................................... 143 14.2.1.1. Using the Algebraic Multigrid (AMG) Solver .............................................................. 144 14.2.2. About the Distributed Solvers (DDS, DPCG, DJCG) ............................................................. 144 14.2.3. Using the Distributed Solvers (DDS, DJCG, DPCG) .............................................................. 145 14.2.3.1. Required Files .......................................................................................................... 146 14.2.3.2. Distribution Method Options ................................................................................... 148 14.2.3.3. Platform Specific Information ................................................................................. 1411 14.2.4. Files Written When Using Distributed Solvers .................................................................. 1422 14.3. Troubleshooting Parallel Performance ..................................................................................... 1422 Index ................................................................................................................................................. Index1
List of Figures
1.1. Example of a Beam for Design Optimization ........................................................................................ 11 1.2. Optimization Data Flow ...................................................................................................................... 13 1.3. Choosing DVs for a Tapered Cantilever Beam .................................................................................... 121 1.4. Local and Global Minima ................................................................................................................... 124 2.1. An Optimization Sample with 60 Percent Volume Reduction ............................................................... 21 2.2. Beam With Two Load Cases ................................................................................................................. 29 2.3. Final Topological Shape -- 50 Percent Volume Reduction ................................................................... 211 2.4. History of Objective and Constraint Functions ................................................................................... 211 2.5. Final Topological Shape for Second Scenario ..................................................................................... 213 2.6. History of Objective and Constraint Functions for Second Scenario .................................................... 214 2.7. Two-Story Planar Frame .................................................................................................................... 216 2.8. Final Topological Shape for Maximum Fundamental Frequency ......................................................... 218 2.9. History of Fundamental Frequency .................................................................................................... 218 3.1. A Beam Under a Snow Load ................................................................................................................ 33 3.2. Probabilistic Design Data Flow ............................................................................................................ 37 3.3. A Beam Under a Snow Load ................................................................................................................ 39 3.4. Histograms for the Snow Height H1 and H2 ....................................................................................... 317 3.5. A Scatter Plot of Snow Height H1 vs. H2 ............................................................................................. 319 3.6. The PDS Method Determination Wizard ............................................................................................ 323 3.7. Graph of X1 and X2 Showing Two Samples with Close Values ............................................................ 349 3.8. Graph of X1 and X2 Showing Good Sample Distribution .................................................................... 350 3.9. Locations of Sampling Points for Problem with Three Input Variables for CCD .................................... 354 3.10. Location of Sampling Points for Problem with Three Input Variables for BBM ................................... 355 3.11. Cumulative Distribution Function of X ............................................................................................. 358 3.12. Sensitivities .................................................................................................................................... 359 3.13. Range of Scatter .............................................................................................................................. 360 3.14. Effects of Reducing and Shifting Range of Scatter ............................................................................ 363 xii
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
ANSYS Advanced Analysis Techniques Guide 3.15. The Simple Indeterminate 3-Bar Truss for the Sample Problem ......................................................... 367 4.1. Element Plot for Waveguide Example ................................................................................................ 421 4.2. Graph of Phase Angle ....................................................................................................................... 423 4.3. Graph of Magnitude .......................................................................................................................... 424 5.1. Selective Adaptivity ............................................................................................................................ 53 6.1. /PREP7 Commands Available in Rezoning .......................................................................................... 611 7.1. Hydro Rotor -- ANSYS Model of a Cyclically Symmetric Structure .......................................................... 71 7.2. A Basic Sector in a Cyclically Symmetric Structure ................................................................................ 73 7.3. Basic Sector Definition ........................................................................................................................ 74 7.4. Connecting Low and High Edges of Basic and Duplicate Sectors .......................................................... 77 7.5. Process Flow for a Static Cyclic Symmetry Analysis (Cyclic Loading) .................................................... 712 7.6. Process Flow for a Static Cyclic Symmetry Analysis (Non-Cyclic Loading) ............................................ 712 7.7. Examples of Nodal Diameters (i) ........................................................................................................ 713 7.8. Process Flow for a Stress-Free Modal Cyclic Symmetry Analysis .......................................................... 714 7.9. Process Flow for a Prestressed Modal Cyclic Symmetry Analysis ......................................................... 715 7.10. Process Flow for a Large-Deflection Prestressed Modal Cyclic Symmetry Analysis ............................. 716 7.11. Process Flow for a Linear Buckling Cyclic Symmetry Analysis ............................................................ 717 7.12. Traveling Wave Animation Example ................................................................................................ 721 7.13. Sample Modal Cyclic Symmetry Analysis Results .............................................................................. 729 7.14. Sample Buckling Cyclic Symmetry Analysis Results .......................................................................... 735 7.15. Buckling Cyclic Symmetry Results: Load Factor Iterations ................................................................. 736 7.16. Buckling Cyclic Symmetry Results: Load Factor Results Graph .......................................................... 738 7.17. Two-Phase Electric Machine Full Model ......................................................................................... 739 7.18. Two-Phase Electric Machine Half Model ........................................................................................ 740 7.19. Vector Plot of Cyclic Flux Density (B) - Half Model ............................................................................. 745 7.20. Contour Line Plot of Equipotentials ................................................................................................. 745 8.1. Submodeling of a Pulley ..................................................................................................................... 81 8.2. Coarse Model ..................................................................................................................................... 83 8.3. Submodel Superimposed Over Coarse Model ...................................................................................... 84 8.4. Cut Boundaries on the Submodel ........................................................................................................ 85 8.5. Loads on the Submodel ...................................................................................................................... 87 8.6. Data Flow Diagram for Submodeling (Without Temperature Interpolation) .......................................... 88 8.7. Contour Plots to Compare Results ....................................................................................................... 89 8.8. Path Plots to Compare Results ............................................................................................................. 89 8.9. 3-D Solid Submodel Superimposed on Coarse Shell Model ................................................................ 811 8.10. Node Rotations ............................................................................................................................... 812 9.1. Applicable Solvers in a Typical Substructuring Analysis ........................................................................ 92 9.2. Example of a Substructuring Application ............................................................................................. 92 9.3. Node Locations .................................................................................................................................. 98 10.1. Applicable CMS Solvers and Files ..................................................................................................... 102 10.2. Process Flow for Creating a CMS Superelement Matrix ..................................................................... 103 10.3. Sample CMS Analysis Results: Fixed-Interface Method .................................................................... 1015 11.1. Connecting a Structure to an Interface Point .................................................................................... 113 11.2. Export to ADAMS Dialog Box ........................................................................................................... 115 11.3. ADAMS Export FEA Loads Dialog Box .............................................................................................. 118 11.4. Import from ADAMS Dialog Box ...................................................................................................... 119 11.5. Linkage Assembly ......................................................................................................................... 1112 11.6. Link3 Component ......................................................................................................................... 1113
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
xiii
List of Tables
4.1. Elements For Use With ANSYS DesignXplorer VT .................................................................................. 46 5.1. Element Types That Can Be Used in Adaptive Meshing ........................................................................ 51 7.1. Valid Non-Cyclically Symmetric Loads ................................................................................................. 78 7.2. Buckling Cyclic Symmetry: Load Factor Iteration Results .................................................................... 737 9.1. Loads Applicable in a Substructure Analysis ........................................................................................ 96 12.1. Elements Supporting Birth and Death ............................................................................................. 121 14.1. HP Itanium2 64-bit ........................................................................................................................ 1411 14.2. HP PA 8000 64-bit ......................................................................................................................... 1412 14.3. SGI 64-bit ...................................................................................................................................... 1414 14.4. Sun ULTRA III and IV and UltraSPARC 64-bit ................................................................................... 1415 14.5. IBM 64-bit ..................................................................................................................................... 1416 14.6. HP Alphaserver ............................................................................................................................. 1417 14.7. Linux 32-bit .................................................................................................................................. 1418 14.8. Linux 64-bit .................................................................................................................................. 1420
xiv
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
design variables (DVs) Independent quantities, varied to achieve the optimum design. Upper and lower limits are specified to serve as "constraints" on the design variables. These limits define the range of variation for the DV. In the above beam example, width b and height h are obvious candidates for DVs. Both b and h cannot be zero or negative, so their lower limit would be b,h > 0.0. Also, h has an upper limit of hmax. Up to 60 DVs may be defined in an ANSYS design optimization problem. state variables (SVs) Quantities that constrain the design. Also known as "dependent variables," they are typically response quantities that are functions of the design variables. A state variable may have a maximum and minimum limit, or it may be "single sided," having only one limit . Our beam example has two SVs: (the total stress) and (the beam deflection). You can define up to 100 SVs in an ANSYS design optimization problem. objective function The dependent variable that you are attempting to minimize. It should be a function of the DVs (that is, changing the values of the DVs should change the value of the objective function). In the beam example, the total weight of the beam could be the objective function (to be minimized). You may define only one objective function in an ANSYS design optimization problem. optimization variables Collectively, the design variables, state variables, and the objective function. In an ANSYS optimization, these variables are represented by user-named variables called parameters. You must identify which parameters in the model are DVs, which are SVs, and which is the objective function. design set or design A unique set of parameter values representing a given model configuration. Typically, a design set is characterized by the optimization variable values; however, all model parameters (including those not identified as optimization variables) are included in the set. feasible design A design that satisfies all specified constraints (those on the SVs as well as on the DVs. If any one of the constraints is not satisfied, the design is considered infeasible. The best design is the one which satisfies all constraints and produces the minimum objective function value. (If all design sets are infeasible, the best design set is the one closest to being feasible, irrespective of its objective function value.) analysis file An ANSYS input file containing a complete analysis sequence (preprocessing, solution, and postprocessing). The file must contain a parametrically defined model, using parameters to represent all inputs and outputs to be used as DVs, SVs, and the objective function. loop file An optimization file (named Jobname.LOOP), created automatically via the analysis file. The design optimizer uses the loop file to perform analysis loops. loop A single pass through the analysis file. Output for the last loop performed is saved in file Jobname.OPO. An (or simply iteration) is
12
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
optimization iteration One or more analysis loops which result in a new design set. Typically, an iteration equates to one loop; however, for the first order method, one iteration represents more than one loop. optimization database contains the current optimization environment, which includes optimization variable definitions, parameters, all optimization specifications, and accumulated design sets. This database can be saved (to Jobname.OPT) or resumed at any time in the optimizer.
The following figure shows the flow of information during an optimization analysis. Note that the analysis file must exist as a separate entity, and that the optimization database is not part of the ANSYS model database.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
13
2. 3. 4. 5. 14
Establish parameters in the ANSYS database which correspond to those used in the analysis file; this step is typical, but not required (Begin or OPT). Enter OPT and specify the analysis file (OPT). Declare optimization variables (OPT). Choose optimization tool or method (OPT).
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 1.3: Employing Design Optimization 6. 7. 8. Specify optimization looping controls (OPT). Initiate optimization analysis (OPT). Review the resulting design sets data (OPT) and postprocess results (POST1/POST26).
Details of the optimization process are presented below. Differences in the procedure for a "batch" versus "interactive" approach are indicated, where appropriate.
Both methods have advantages and disadvantages. Creating the file with a system editor is the same as creating a batch input file for the analysis. (If you are performing the entire optimization in batch mode, the analysis file will usually be the first portion of the complete batch input stream.) This method allows you full control of parametric definitions through exact command inputs. It also eliminates the need to clean out unnecessary commands later. However, if you are not moderately familiar with ANSYS commands, this method may be inconvenient. You may find it easier to perform the initial analysis interactively, and then use the resulting command log as the basis for the analysis file. In this case, final editing of the log file may be required in order to make it suitable for optimization looping. (See Section 1.3.1.4: Preparing the Analysis File.) No matter how you intend to create the analysis file, the basic information that it must contain is the same. The steps it must include are explained next.
15
! Initialize width ! Initialize height ! ! ! ! 2-D beam element Beam cross-sectional area Moment of inertia about Z Real constants in terms of DV parameters
As mentioned earlier, you can vary virtually any aspect of the design: dimensions, shape, material property, support placement, applied loads, etc. The only requirement is that the design must be defined in terms of parameters. The DV parameters (B and H in this example) may be initialized anywhere, but are typically defined in PREP7. The initial values assigned to these parameters represent a starting design, which is later modified by the optimizer. Caution: If you build your model interactively (through the GUI), you will encounter many situations where data can be input through graphical picking (such as when defining geometric entities). However, some picking operations do not allow parametric input. Therefore, you should avoid these picking operations when defining items that will be used as DVs, SVs, or an objective function. Instead, use menu options that allow direct input of parameters.
! Static analysis (default) ! UX=UY=0 at the two ends of the beam ! Transverse pressure (load per unit ! length) = 100 ! Leave SOLUTION
This step is not limited to just one analysis. You can, for instance, obtain a thermal solution and then obtain a stress solution (for thermal stress calculations). If your solution uses the multiframe restart feature, all changes to the parameter set that are made after the first load step will be lost in a multiframe restart. To ensure that the correct parameters are used in a multiframe restart, you must explicitly save (PARSAV) and resume (PARESU) the parameters for use in the restart. See ANSYS Basic Analysis Guide for more information on multiframe restarts.
16
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
! Sorts nodes based on UY deflection ! Parameter DMAX = maximum deflection elements are accessed through ETABLE: ! VOLU = volume of each element ! SMAX_I = max. stress at end I of each ! element ! SMAX_J = max. stress at end J of each ! element ! Sums the data in each column of the element ! table*GET,VOLUME,SSUM,,ITEM,VOLU! Parameter ! ! ! ! ! ! ! ! Sorts elements based on absolute value of SMAX_I Parameter SMAXI = max. value of SMAX_I Sorts elements based on absolute value of SMAX_J Parameter SMAXJ = max. value of SMAX_J Parameter SMAX = greater of SMAXI and SMAXJ, that is, SMAX is the max. stress
Please see the *GET and ETABLE command descriptions for more information.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
17
Chapter 1: Design Optimization Note With either method, you may have to exit ANSYS or use the /SYS command in order to edit the analysis file. For more details on creating this file, see Section 1.7.1: Generating the Analysis File.
You may choose to do none of the above, and instead depend on the OPVAR command (Main Menu> Design Opt> Design Variables) to define the parameters which you declare as optimization variables (see Section 1.3.4: Declare Optimization Variables ). Note The ANSYS database does not need to contain model information corresponding to the analysis file to perform optimization. The model input will be read from the analysis file automatically during optimization looping.
Section 1.3: Employing Design Optimization In interactive mode, you must specify the analysis file name. The file is used to derive the optimization loop file Jobname.LOOP. There is no default for the analysis file name, therefore it must be input. To specify the analysis file name, use one of these methods: Command(s): OPANL GUI: Main Menu> Design Opt> Analysis File> Assign For an optimization run in batch mode, the analysis file is usually the first portion of the batch input stream, from the first line down to the first occurrence of /OPT. In batch mode the analysis file name defaults to Jobname.BAT (a temporary file containing input copied from the batch input file). Therefore, you normally do not need to specify an analysis file name in batch mode. However, if for some reason you have separated the batch optimization input into two files (one representing the analysis and the other containing all optimization operations), then you will need to specify the analysis file (OPANL) after entering the optimizer (/OPT). Note In the analysis file, the /PREP7 and /OPT commands must occur as the first nonblank characters on a line (that is, do not use the $ delimiter on a line containing either of these commands). This is required for proper loop file construction.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
19
Chapter 1: Design Optimization Subproblem Approximation Method: This is an advanced zero-order method which uses approximations (curve fitting) to all dependent variables (SVs and the objective function). It is a general method that can be applied efficiently to a wide range of engineering problems. First Order Method: This method uses derivative information, that is, gradients of the dependent variables with respect to the design variables. It is highly accurate and works well for problems having dependent variables that vary widely over a large range of design space. However, this method can be computationally intense. User-supplied Method: An external optimization routine (USEROP) can be used instead of the ANSYS optimizer logic.
Optimization tools are techniques used to measure and understand the design space of your problem. Since minimization may or may not be a goal, an objective function is not required for use of the tools. However, design variables must be defined. The following tools are available. Single Loop Run: This tool performs one loop and produces one FEA solution at a time. You can do "what if" studies by using a series of single loop runs, setting different design variable values before each loop. Random Design Generation: Multiple loops are performed, with random design variable values at each loop. A maximum number of loops and a desired number of feasible loops can be specified. This tool is useful for studying the overall design space, and for establishing feasible design sets for subsequent optimization analysis. Sweep Generation: Starting from a reference design set, this tool generates several sequences of design sets. Specifically, it varies one design variable at a time over its full range using uniform design variable increments. This tool makes global variational evaluations of the objective function and of the state variables possible. Factorial Evaluation: This is a statistical tool that is used to generate design sets at all extreme combinations of design variable values. This technique is related to the technology known as design of experiment that uses a 2-level, full and fractional factorial analysis. The primary aim is to compute main and interaction effects for the objective function and the state variables. Gradient Evaluation: At a user-specified reference design set, this tool calculates the gradients of the objective function and the state variables with respect to the design variables. Using this tool, you can investigate local design sensitivities. User-supplied Design Tool: An external routine (USEROP) can be used to bypass the ANSYS logic.
As noted above, you can implement your own method or tool by invoking the USEROP routine. The Guide to ANSYS User Programmable Features contains more details on this user-supplied routine.
Section 1.3: Employing Design Optimization To set controls for the gradient evaluation tool, use OPGRAD. To set controls for the user optimization tool, use OPUSER.
There are also a number of general controls which affect how data is saved during optimization. They are as follows: To specify the file where optimization data is to be saved (defaults to Jobname.OPT): Command(s): OPDATA GUI: Main Menu> Design Opt> Controls To activate a detailed summary printout: Command(s): OPPRNT GUI: Main Menu> Design Opt> Controls To determine whether information from the best design set is saved (by default, the database and results files are saved only for the last design set): Command(s): OPKEEP GUI: Main Menu> Design Opt> Controls
You can also control various looping characteristics, including how the analysis file is to be read for looping. The file can be read starting from the first line (default) or from the first occurrence of /PREP7, and parameters assigned as DVs can be ignored (default) or processed during looping. In addition, you can specify which type of parameters are to be saved during looping: scalar parameters only (default), or scalar and array parameters. This capability allows for control of parameter values (DV and non-DV) during looping. To control these looping characteristics, use one of these methods: Command(s): OPLOOP GUI: Main Menu> Design Opt> Controls Note The Parms argument on the OPLOOP command controls which parameters are saved during looping. The option to save both scalar and array parameters (Parms = ALL) should typically not be used, except for the case when array parameters defined outside of the analysis file (*DIM) need to be preserved during looping.
111
Chapter 1: Design Optimization The values of all optimization variables and other parameters at the end of each iteration are stored on the optimization data file (Jobname.OPT). Up to 130 such sets are stored. When the 130th set is encountered, the data associated with the "worst" design are discarded. Continuing with our beam example, the optimization portion of the input would look like this:
/OPT ! Enter OPT OPANL,... ! Analysis file name (not needed for batch) ! ! Declare optimization variables: OPVAR,B,DV,.5,16.5 ! Parameters B and H are DVs OPVAR,H,DV,.5,8 OPVAR,DMAX,SV,-0.1,0 ! Parameters DMAX and SMAX are SVs OPVAR,SMAX,SV,0,20000 OPVAR,VOLUME,OBJ ! Parameter VOLUME is the obj. function ! ! Specify optimization type and controls OPTYPE,SUBP ! Subproblem approximation method OPSUBP,30 ! Maximum number of iterations OPEXE ! Initiate optimization looping
Several optimization executions may occur in series. For example, we could perform a sweep generation after the subproblem approximation execution is completed. The following series of commands executes a sweep with respect to the best design set:
OPTYPE,SWEEP OPSWEEP,BEST,5 OPEXE ! Sweep evaluation tool ! 5 evaluations per DV at best design set ! Initiate optimization looping
See the /OPT, OPANL, OPVAR, OPTYPE, OPSUBP, OPSWEEP, and OPEXE command descriptions for more information.
112
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 1.3: Employing Design Optimization For the PLVAROPT and PRVAROPT operations, the design sets are automatically sorted in a sequence corresponding to an ascending order of the XVAROPT parameter. There are several specialized ways to review results from the sweep, factorial, and gradient tools. For sweep tools, use the OPRSW command to list results and the OPLSW command to plot results. For factorial tools, use the OPRFA command to list results and the OPLFA command to plot results. For gradient tools, use the OPRGR command to list results and the OPLGR command to plot results. (Menu paths appear in detailed discussions of these commands later in this chapter.) Another way to access optimization data is with the STAT command (Main Menu> Design Opt> Opt Database> Status). When issued within the optimizer, this command lists other current optimization information such as the analysis file name, specified optimization technique, number of existing design sets, optimization variables, etc. Using the STAT command is a good way to check the current optimization environment (at any point in the optimizer) and to verify that all desired settings have been input. In addition to reviewing the optimization data, you may wish to postprocess the analysis results using POST1 or POST26. By default, results are saved for the last design set in file Jobname.RST (or .RTH, etc., depending on the type of analysis). The results and the database for the best design set will also be available if OPKEEP,ON was issued before looping. The "best results" will be in file Jobname.BRST (.BRTH, etc.), and the "best database" will be in Jobname.BDB.
(All design sets not selected with OPSEL are permanently removed from the optimization database.) To delete the design sets in a specified range, use one of these methods: Command(s): OPDEL GUI: Main Menu> Design Opt> Design Sets> Select/Delete
For both of these commands, the original set numbers will be retained for the remaining design sets. (Up to 130 design sets can be stored in the optimization database.) There are other commands that can affect design sets. To form a new design set by adding two existing sets (with scaling factors if desired): Command(s): OPADD GUI: Main Menu> Design Opt> Design Sets> Combine To create a new design set using the active scalar parameter values (without running an analysis loop): Command(s): OPMAKE GUI: Main Menu> Design Opt> Analysis File> Create
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
113
! ! ! !
Read named file (defaults to Jobname.OPT) Select 10 best designs Specify optimization tool or method Specify other optimization input
See the /OPT, OPRESU, OPSEL, OPTYPE, and OPEXE command descriptions for more details. Note In addition to optimization data, the ANSYS jobname is saved to the optimization database file (Jobname.OPT). Therefore, when an optimization data file is resumed (OPRESU), the jobname saved in that file overwrites the current jobname (/FILNAME). You can use the OPRESU command (Main Menu> Design Opt> Opt Database> Resume) in an interactive session to resume optimization data that was created through a batch run, thus allowing convenient interactive viewing of batch optimization results. If there is data in the optimization database at the time you want to resume, you should first clear the optimization database. When you do this, all settings are reset to their default values, and all design sets are deleted. To clear the optimization database: Command(s): OPCLR GUI: Main Menu> Design Opt> Opt Database> Clear & Reset
114
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 1.5: Optimization Techniques Because the ANSYS database is not affected by the OPCLR command, it may also be necessary to clear the ANSYS database if the resumed optimization problem is totally independent of the previous one. To clear the ANSYS database: Command(s): /CLEAR GUI: Utility Menu> File> Clear & Start New A counterpart to the OPRESU command is the OPSAVE command (Main Menu> Design Opt> Opt Database> Save), which writes optimization data to a named file (defaults to Jobname.OPT). Although optimization data is automatically saved at the end of each optimization loop (see the OPDATA command), you can save the optimization data at any time by using the OPSAVE command.
1.5.1.1. Approximations
For this method, the program establishes the relationship between the objective function and the DVs by curve fitting. This is done by calculating the objective function for several sets of DV values (that is, for several designs) and performing a least squares fit between the data points. The resulting curve (or surface) is called an approximation. Each optimization loop generates a new data point, and the objective function approximation is updated. It is this approximation that is minimized instead of the actual objective function. State variables are handled in the same manner. An approximation is generated for each state variable and updated at the end of each loop. You can control curve fitting for the optimization approximations. You can request a linear fit, quadratic fit, or quadratic plus cross terms fit. By default, a quadratic plus cross terms fit is used for the objective function, and a quadratic fit is used for the SVs. To control curve fitting: Command(s): OPEQN GUI: Main Menu> Design Opt> Method/Tool OPEQN also gives you control over how the available design data points are weighted in forming the approximations. See the ANSYS, Inc. Theory Reference for details.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
115
Chapter 1: Design Optimization The search for a minimum of the unconstrained objective function approximation is then carried out by applying a Sequential Unconstrained Minimization Technique (SUMT) at each iteration.
You specify the objective function and design variable tolerances using one of these methods: Command(s): OPVAR GUI: Main Menu> Design Opt> Design Variables Main Menu> Design Opt> Objective Convergence does not necessarily indicate that a true global minimum has been obtained. It only means that one of the four criteria mentioned above has been satisfied. Therefore, it is your responsibility to determine if the design has been sufficiently optimized. If not, you can perform additional optimization analyses. Sometimes the solution may terminate before convergence is reached. This happens if one of the following conditions is true: The number of loops specified (NITR on the OPSUBP command) has been performed. The number of consecutive infeasible designs has reached the specified limit (NINFS on the OPSUBP command). The default number is 7.
116
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 1.5: Optimization Techniques (This latter method works best if you have some insight into the nature of your problem.) Note Generating many trial designs may be good for the rate of convergence, but if the designs are very similar to each other, that is, if the design data points are "clustered" together, you may be forcing the optimizer to follow a specific path, thereby missing potentially good designs. If many infeasible designs are being generated by the subproblem approximation method, it may mean that the state variable approximation does not adequately represent the actual state variable function. In that case, you can do the following: Increase the allowable number of consecutive infeasible designs and perform an additional subproblem approximation execution (if it appears likely that a feasible design will be obtained): Command(s): OPSUBP,,NINFS GUI: Main Menu> Design Opt> Method/Tool Periodically select only the best designs between sequential subproblem approximation runs to force better curve fit approximations: Command(s): OPSEL GUI: Main Menu> Design Opt> Design Sets> Select/Delete Choose cross terms for the state variable approximations: Command(s): OPEQN,,KFSV GUI: Main Menu> Design Opt> Method/Tool
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
117
Chapter 1: Design Optimization It is also a requirement that the final iteration used a steepest descent search, otherwise additional iterations are performed. To specify the objective function tolerance: Command(s): OPVAR GUI: Main Menu> Design Opt> Objective The problem may terminate before convergence is reached. This occurs if the number of iterations specified by NITR on the OPFRST command has been performed.
Section 1.5: Optimization Techniques Command(s): OPLSW GUI: Main Menu> Design Opt> Tool Results> Graph> Sweeps The vertical axis shows actual values for the objective function or state variable. The horizontal axis shows normalized values (0 to 1) for the design variables, where the normalization is with respect to the DV maximum and minimum values (OPVAR). To generate tabular results, use one of these methods: Command(s): OPRSW GUI: Main Menu> Design Opt> Tool Results> Print Normalized response values are tabulated against normalized (0 to 1) design variables. The objective function and state variable results are normalized to the values associated with the reference design set (OPSWEEP,Dset). For the design variables, 0 corresponds to its minimum value and 1 to its maximum.
119
Chapter 1: Design Optimization You can also generate tabular results for the objective function and the state variables. Changes in objective function and state variable values are tabulated against plus or minus 1% changes in the design variables. To generate these tabular results: Command(s): OPRGR GUI: Main Menu> Design Opt> Tool Results> Print Note The 1% change in the DVs is with respect to the range of the DV (MAX- MIN value from the OPVAR command) and, therefore, is not based on the current DV values.
DV linking may not be practical if the DVs are truly independent. However, it may be possible to make judgements about your structure's behavior which allow a logical link between some DVs. For example, if it is thought that an optimum shape will be symmetric, use one DV for symmetric members. Specify a reasonable range of values for the design variables (MIN and MAX on the OPVAR command). Too wide a range may result in poor representation of design space, whereas too narrow a range may exclude "good" designs. Remember that only positive values are allowed, and that an upper limit must be specified. Choose DVs such that they permit practical optimum designs. For example, you can perform weight optimization of a cantilever beam with just one design variable, X1, as shown in Figure 1.3: Choosing DVs for a Tapered Cantilever Beam (a). However, this excludes a tapered or curved design that may offer a lower weight. To allow for such a design, you may choose four design variables X1 to X4 (Figure b), but that may result in an undesirable local minimum (Figure c). A different scheme for such a situation would be to relate the DVs as shown in Figure d. Also, avoid choosing DVs that may result in unrealistic or undesirable designs.
120
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Choose enough SVs to sufficiently constrain the design. In a stress analysis, for example, choosing the maximum stress as the only SV may not be a good idea because the location of the maximum stress may change from loop to loop. Also avoid the other extreme which would be to choose the stress in every element as a state variable. The preferred method is to define the stresses at a few key locations as state variables. For the subproblem approximation method, if possible, choose SVs that have a linear or quadratic relationship with the DVs. For example, the state variable G = Z1/Z2 subject to G < C (where Z1 and Z2 are design variables and C is a constant) may not lead to a good approximation for G because of its inverse relationship with Z2. By restating the state variable to be G = Z1 - (C x Z2) subject to G < 0, the state variable approximation will be exact. If a state variable has both an upper and lower limit, specify a reasonable range of limit values (MIN and MAX on the OPVAR command). Avoid very small ranges, because feasible designs may not exist. A stress range of 500 to 1000 psi, for example, is better than 900 to 1000 psi. If an equality constraint is to be specified (such as frequency = 386.4 Hz), define two state variables for the same quantity and bracket the desired value, as illustrated below:
... *GET,FREQ,ACTIVE,,SET,FREQ FREQ1=FREQ FREQ2=FREQ ... /OPT OPVAR,FREQ1,SV,,387 OPVAR,FREQ2,SV,386 ! Parameter FREQ = calculated frequency
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
121
"! "!
" #! "!
Chapter 1: Design Optimization The effective feasible region is now between 386 and 387, but each state variable has a wide enough range for smooth approximations. (Please see the OPVAR command description for more information.) Avoid choosing SVs near singularities (such as concentrated loads) by using selecting before defining the parameters.
Design optimization involves a series of analyses (that is, several loops of the preprocessing-solution-postprocessing-optimization cycle). ANSYS recommends, therefore, that you start with a simple problem first and understand fully the optimization procedure. After you understand the various steps involved in the design optimization process, you will find it easier to optimize your own design.
122
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 1.7: Hints for Performing Design Optimization Caution: Use Kedit = COMMENT (not Kedit = REMOVE) on the LGWRITE command. Some commands that are filtered out by the Kedit option may be required for subsequent *GET operations (for example, EXTREM and PLNSOL). These commands should be uncommented during the final edit of Jobname.LGW. Note The /CLEAR command clears the database from memory, and therefore also clears the database log. A /CLEAR is issued automatically at the beginning of each optimization loop. If LGWRITE is issued after optimization looping, the resulting file will not contain a complete command history. Typically, the database log should be written before performing optimization looping. As stated earlier, you should avoid picking operations when defining items which will be used as optimization variables. If you did use picking because it is more convenient, be aware that picking operations cause special GUI-generated commands (such as FLST and FITEM) to be written to the command log. These commands are documented in the ANSYS Commands Reference. However, it may be tedious to convert them to parametric input during the final cleanup of the command log file. You should avoid editing such commands on the log file. Any data change within the FITEM command, for example, could render the data to be invalid, and could cause unpredictable results.
If you do not perform both steps, each parameter that was previously a design variable will be reset to its initial value during subsequent optimization analyses. In the following example, we start with two design variables, AREA1 and AREA2, and perform optimization. Then AREA2 is "deleted" (no longer a design variable) and held at its current value (fixed) by following the steps above.
AREA1=5.00 ! AREA1 is first area AREA2=5.00 ! AREA2 is second area /PREP7 ! Enter PREP7 preprocessor ! Use AREA1 and AREA2 to build a parametric model .... FINISH /SOLVE ! Apply loads, etc. and solve .... FINISH /POST1 SET,... .... *GET,SIG1,.... ! Define parameters which will be SVs and OBJ *GET,SIG2,.... *GET,TVOL,.... .... FINISH /OPT ! Enter optimization module OPVAR,AREA1,DV,.... ! Assign parameters AREA1 and AREA2 as DVs OPVAR,AREA2,DV,.... OPVAR,SIG1,SV,.... ! Assign state variables OPVAR,SIG2,SV,....
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
123
Please see the OPVAR, OPTYPE, OPEXE, and OPLOOP command descriptions for more information.
124
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
125
! ! ! !
Degree units for trig. functions Inner radius Thickness Fillet radius
/prep7 ! Create the three bounding annuli cyl4,-200,,inrad,-30,inrad+t1,30 cyl4,200*cos(60),200*sin(60),inrad,-90,inrad+t1,-150 cyl4,200*cos(60),200*sin(-60),inrad,90,inrad+t1,150 aplot aadd,all adele,all ! Delete area, keep lines lplot ! Fillets on inner slot lsel,,radius,,inrad+t1 ! Select inner arcs l1 = lsnext(0) ! Get their line numbers l2 = lsnext(l1) l3 = lsnext(l2) lfillet,l1,l2,fil ! Fillets lfillet,l2,l3,fil lfillet,l3,l1,fil lsel,all lplot ! Keep only symmetric portion wprot,,90 lsbw,all wprot,,,60 lsbw,all csys,1 lsel,u,loc,y,0,60 ldele,all,,,1 lsel,all ksll ksel,inve kdele,all ! Delete unnecessary keypoints ksel,all lplot ! Create missing lines and combine right edge lines csys,0 ksel,,loc,y,0 lstr,kpnext(0),kpnext(kpnext(0)) ! Bottom symmetry edge ksel,all csys,1 ksel,,loc,y,60 lstr,kpnext(0),kpnext(kpnext(0)) ! 60-deg. symm. edge ksel,all csys,0 lsel,,loc,x,100 lcomb,all ! Add lines at the right edge lsel,all ! Create the area al,all aplot ! MESHING ! ------et,1,82,,,3 r,1,10 mp,ex,1,2.07e5 mp,nuxy,1,0.3 smrt,3 amesh,all eplot finish ! LOADING ! -------
! ! ! !
Plane stress with thickness Thickness Young's modulus of steel, MPa Poisson's ratio
126
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Symmetry b.c.
! ! ! !
List all design sets DVs t1 & fil vs. set number SV smax vs. set number OBJ vtot vs. set number
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
127
Chapter 1: Design Optimization using the GUI method instead of the ANSYS commands shown earlier. The GUI procedure for performing the optimization pass follows.
10. Choose menu path Main Menu> Design Opt> Objective. The Define Objective Function dialog box appears. 11. In the list of parameter names, click on VTOT. Set the TOLER field to 1.0. Click on OK.
128
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
129
Chapter 1: Design Optimization /post1 file,hexplate,brst lplot 5. 6. 7. 8. 9. Choose menu path Main Menu> General Postproc> Read Results> First Set. Choose menu path Main Menu> General Postproc> Plot Results> Contour Plot> Nodal Solu. The Contour Nodal Solution Data dialog box appears. Choose Stress from the list on the left. Choose von Mises SEQV from the list on the right. Click on OK. Review the plot. Choose menu path Utility Menu> PlotCtrls> Style> Displacement Scaling. For DMULT, select 0.0 (off). Click on OK. Choose menu path Utility Menu> PlotCtrls> Style> Symmetry Expansion> User-Specified Expansion. The Expansion by Values dialog box appears.
10. Fill in the 1st Expansion of Symmetry section. For NREPEAT, type 6. For TYPE, choose Polar. For PATTERN, choose Alternate Symm. Type 0, 60, and 0 in the DX, DY, and DZ fields, respectively. Click on OK.
130
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Chapter 2: Topological Optimization 1. 2. 3. 4. 5. 6. Define the structural problem. Select the element types. Specify optimized and non-optimized regions. Define and control the load cases or frequency extraction. Define and control the optimization process. Review the results.
Details of the optimization procedure are presented below. Where appropriate, differences in the procedure for a "batch" versus "interactive" approach are indicated.
See Chapter 1, Getting Started with ANSYS and Chapter 2, Loading in the ANSYS Basic Analysis Guide for more information about defining the problem.
! The volume modeled by these elements will be ! optimized ! The volume modeled by these elements will not ! be optimized
You can use any appropriate ANSYS select and modification command to control the type definitions for various elements. 22
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
! Write 1st load case ! Clear and then define 2nd load case
! ! ! !
Write 2nd load case Etc. Write 3rd load case Etc.
! Define weighted multiple compliance function "MCOMP" ! considering all three load cases ! Define "MCOMP" as topological objective ! Define "VOLUME" as topological constraint ! Initialize topo opt. ! Solve and perform topological optimization
! Define reciprocal frequency function "MFREQ" ! for topological optimization ! Define function "MFREQ" as objective for
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
23
TOVAR,VOLUME,CON,,50
TODEF,1.0D-4 (accuracy=1.0d-4) TOLOOP,20 ! Solve for first 3 natural frequencies and corresponding ! mode shapes and then perform topological optimization ...
! ! ! !
24
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 2.2: Employing Topological Optimization function), which can be used for either objective or constraint. Note that only the following combinations of objective and constraints are allowed:
Objective Single Compliance (TOCOMP) Multiple Compliance (TOCOMP) Single Frequency (TOFREQ) Weighted mean frequency (TOFREQ) Reciprocal mean frequency (TOFREQ) Euclidean norm frequency (TOFREQ) VOLUME VOLUME Valid Constraints VOLUME VOLUME VOLUME VOLUME VOLUME VOLUME Single Compliance (TOCOMP), multiple constraint definition allowed Multiple Compliance (TOCOMP)
To assign the objective and constraint(s) for topological optimization, use one of these methods: Command(s): TOVAR GUI: Main Menu> Topological Opt> Advanced Opt> Topo Objective Main Menu> Topological Opt> Set Up> Basic Opt The objective function must be defined before you define constraints. Minimum and maximum bounds can be specified for constraint definition. No constraints are needed for the objective function. You may change a previously declared objective or constraint at any time by simply redefining it. You may also delete an objective or constraint (TOVAR,RefName,DEL). The delete option does not delete the topological function; it simply deactivates the function as a topological objective or constraint. For example, the following input fragment shows how a single compliance minimization subject to a volume reduction of 25 percent is defined
... TOCOMP,COMP,SINGLE,1 ! Define single compliance (load case 1) as topological ! optimization function ! "COMP" ! Define the compliance function "COMP" as objective for ! topological optimization ! Define predefined total volume function "VOLUME" as constraint ! for topological optimization; Specify a volume reduction of 25 percent ! Initialize topological optimization ! Do 10 topological optimization iterations automatically
TOVAR,COMP,OBJ
TOVAR,VOLUME,CON,,25
At any time you can query the current active status from TOVAR, TODEF, and TOTYPE by using the command TOSTAT. Command(s): TOSTAT GUI: Main Menu> Topological Opt> Advanced Opt> Status Main Menu> Topological Opt> Status
25
Chapter 2: Topological Optimization Command(s): SOLVE GUI: Main Menu> Solution> Solve> Current LS After specifying the optimization problem (see Section 2.2.5.1: Defining Optimization Functions and Section 2.2.5.2: Defining Objective and Constraints) you may select the solution approach you want employed to solve the optimization problem; TOTYPE allows you to choose Optimality Criteria (OC) or Sequential Convex Programming (SCP). The OC approach is applicable to problems with volume as constraint only. The SCP approach is applicable to all valid combinations of objective and constraints (see Section 2.2.5.2: Defining Objective and Constraints for a list of valid combinations of objective and constraints). Command(s): TOTYPE GUI: Main Menu> Topological Opt> Run As a last preparation step you must initialize the topological optimization process. Here you also define the termination/convergence accuracy. Command(s): TODEF GUI: Main Menu> Topological Opt> Run The specification details generated at this point are not saved in the ANSYS database. Therefore, if you want to perform another topological optimization after a RESUME, you need to reissue all of the commands you used to set up the topological optimization problem (TOCOMP, TOFREQ, TOVAR, TOTYPE, and TODEF).
TOVAR,COMP,OBJ TOVAR,VOLUME,CON,,25
TOTYPE,OC TODEF,1.0d-4 /SOLUTION SOLVE ! TOEXE ! FINISH /POST1 ! PLNSOL,TOPO ! *GET,TOPSTAT,TOPO,,CONV *STAT,TOPSTAT ! /SOLUTION SOLVE ! TOEXE ! FINISH /POST1 ...
26
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 2.2: Employing Topological Optimization The following is an input fragment showing how you could perform a frequency maximization formulation one iteration at a time.
... TOFREQ,FREQ1,SINGLE,1 TOVAR,FREQ1,OBJ TOVAR,VOLUME,CON,,25 Define single frequency as topological optimization function "FREQ1" Define the frequency function "FREQ1" as objective for topological optimization Define predefined total volume function "VOLUME" as constraint for topological optimization; Specify a volume ! reduction of 25 percent ! Use SCP approach for optimization problem ! Initialize topological optimization Switch to modal analysis Specify modal analysis options: Choose Block Lanczos solver (default); extract 1 eigenmode. Expand fundamental mode, and set element calculation key to YES. ! Perform modal analysis ! Perform 1st topological iteration Plot topological results ! Get the topological convergence status List convergence status Perform 2nd modal analysis Perform 2nd topological optimization ! ! ! ! ! ! ! ! ! !
SOLVE TOEXE FINISH TOPLOT,0 ! *GET,TOPSTAT,TOPO,,CONV *STAT,TOPSTAT ! /SOLUTION SOLVE ! TOEXE ! FINISH TOPLOT,0 ... !
Etc.
One of the main advantages of TOEXE is that you can use it to devise your own iterative macros for automatic optimization looping and plotting. The TOLOOP command is an ANSYS macro that can perform several optimization iterations.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
27
Each topological iteration executes an LSSOLVE command, a TOEXE command, and a PLNSOL,TOPO display (optional) command. The optimization iteration process terminates once convergence is attained (defined with TODEF) or when the maximum iteration number is achieved (defined with TOLOOP)
You can also view the results via ANSYS' tabular capabilities:
... ETABLE,EDENS,TOPO PLETAB,EDENS PRETAB,EDENS ESEL,S,ETAB,EDENS,0.9,1.0 EPLOT ...
To check the most recent convergence status (that is, the last iteration) and the objective or constraint values, use *GET:
... *GET,TOPCV,TOPO,,CONV *GET,TITER,TOPO,,ITER *GET,TOBJ,TOPO,ITER-1,TOHO *GET,TCON,TOPO,ITER-1,TOHC,1 *STAT ! If TOPCV = 1 (converged) ! TITER = Iteration counter ! TOBJ = objective function value of last iteration ! TCON = constraint function value of last iteration
28
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 2.3: A 2-D Multiple-Load Case Optimization Example For a frequency solution, particularly when using the weighted, reciprocal, or Euclidean formulations, you should look at the true frequencies of the structure at the converged solution by issuing the *GET command:
... *GET,FREQ1,MODE,1,FREQ *GET,FREQ2,MODE,2,FREQ ! First fundamental frequency ! Second fundamental frequency
You should also look at the mode shapes in /POST1 by using the PLDISP command, and you should review the ifreq.out file. For more information on reviewing results of a modal analysis, see Chapter 3, Modal Analysis in the ANSYS Structural Analysis Guide.
This problem is solved using the ANSYS commands below. Notice that the two load cases are defined and written by the LSWRITE command. Using ANSYS selection commands and logic, type 1 and type 2 PLANE82 elements are used to represent optimized and non-optimized areas, respectively. The TOCOMP command defines a 2 load case compliance function with the reference name MCOMP. TOVAR defines MCOMP as the objective and calls for a 50 percent volume reduction (TOVAR,VOLUME,CON,,50). The TOEXE command is not explicitly used in this
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
29
Chapter 2: Topological Optimization example. Instead, up to 12 iterations of topological optimization are specified via the TOLOOP command macro. After the optimization execution, the final objective (compliance) and constraint (volume) histories are graphed and printed, and the optimum weighted compliance value is retrieved from the ANSYS database (*GET).
/TITLE, A 2-D, multiple compliance minimization problem subjected to volume constraint /PREP7 BLC4,0,0,3,1 ! Create solid model (3 x 1 rectangle) ET,1,82 ! Use 2-D solids. Type 1 is optimized ET,2,82 ! Type 2 is not optimized. MP,EX,1,118E9 ! Linear isotropic, material MP,NUXY,1,0.3 ESIZE,0.05 ! Use a relatively fine mesh density TYPE,1 AMESH,ALL ! Free, rectangular-element meshing NSEL,S,LOC,X,0,0.4 ! Select region not to be optimized ESLN TYPE,2 EMODIF,ALL ! Define type 2 elements ALLSEL NSEL,S,LOC,X,0 D,ALL,ALL,0 ! Fixed at X = 0 NSEL,S,LOC,X,3 D,ALL,ALL,0 ! Fixed at X = 3 FORCE = 1000 ! Value for applied load NSEL,S,LOC,X,1 NSEL,R,LOC,Y,1 F,ALL,FY,FORCE ! Define first load case ALLSEL LSWRITE,1 ! Write first load case FDEL,ALL NSEL,S,LOC,X,2 NSEL,R,LOC,Y,0 F,ALL,FY,-FORCE ! Define second load case ALLSEL LSWRITE,2 ! Write second load case FDEL,ALL TOCOMP,MCOMP,MULTIPLE,2 ! Define multiple compliance function ! "MCOMP" for topological optimization TOVAR,MCOMP,OBJ ! Define "MCOMP" as topological objective TOVAR,VOLUME,CON,,50 ! Define "VOLUME" as topological constraint; 50 percent volume reduction TOTYPE,OC ! Specify solution approach TODEF ! Initialize topological opt. /SHOW,topo,grph ! Put graphics in a file (remove if interactive) /DSCALE,,OFF /CONTOUR,,2 TOLOOP,12,1 ! Perform no more than 12 iterations FINISH TOGRAPH,OBJ ! Graph final objective (compliance) history TOGRAPH,CON ! Graph final constraint (volume) history TOPRINT,OBJ ! Print final objective (compliance) history TOPRINT,CON ! Print final constraint (volume) history *GET,TITER,TOPO,,ITER ! Get iteration counter *GET,OCMP,TOPO,TITER-1,TOHO ! Get final compliance value
210
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
A graph of the objective (compliance) and the constraint (volume) history is shown in Figure 2.4: History of Objective and Constraint Functions. The final optimal weighted compliance value is 0.6E-04.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
211
TOVAR,COMP2,CON,,0.6E-4,ACTUAL
! Specify SCP solution approach ! Initialize topological opt; set accuracy to 1.0d-5 ! Put graphics in a file (remove if interactive) ! Perform 25 iterations ! Plot final densities unaveraged ! Graph final objective (compliance) history
212
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
A graph of the objective (volume) and both constraint (compliances) histories is shown in Figure 2.6: History of Objective and Constraint Functions for Second Scenario.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
213
Figure 2.6 History of Objective and Constraint Functions for Second Scenario
214
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
215
In this scenario, we maximize the fundamental frequency, whereas the constraint of the total type 1 volume was specified as V = 14. Thus, we define a single frequency function "FREQ1" using TOFREQ and specify this function to be the objective for topological optimization (TOVAR). We also define the volume constraint with an actual upper bound of 14 (TOVAR,VOLUME,,14,ACTUAL). Again, the TOEXE command is not explicitly used in this example. Instead, a maximum of 40 iterations of topological optimization are selected via the TOLOOP command macro.
/TITLE, 2-D Two-Story reinforcement problem - Maximize fundamental frequency A=0.25 ! Prepare Model B=5 C=0.375 D=8 E=3.75 /PREP7 K,1 K,2,C K,3,C+A K,4,B/2 K,5,,E K,6,C,E K,7,C+A,E K,8,B/2,E KSEL,S,,,5,8 KGEN,2,ALL,,,,A KSEL,S,,,9,12
216
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
! Material of structure
ASEL,S,,,6,8,2 ESLA,S,1 EMODIF,ALL,MAT,2 ! Define concentrated masses ALLSEL LOCAL,11,0,2.5 ARSYM,X,ALL ! Full model NUMM,KP NUMM,ELEM NUMM,NODE LSEL,S,,,14 LSEL,A,,,45 NSLL,S,1 D,ALL,ALL ALLSEL FINISH TOFREQ,FREQ1,SING,1 ! Define single frequency function (1st) TOVAR,FREQ1,OBJ ! Define objective for topological optimization TOVAR,VOLUME,CON, ,14,ACTUAL ! Define volume constraint (upper bound = 14) TOTYPE,SCP ! Select SCP solution approach TODEF,0.00001, ! Initialize topological optimization process, accuracy = 0.00001 TOLOOP,40,1 ! Perform up to 40 iterations FINISH TOPLOT,1 ! Plot final pseudo-densities TOGRAPH,OBJ ! Graph final objective (1st frequency) history TOGRAPH,CON ! Graph final constraint (volume) history
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
217
218
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Additional results and combination of results are also possible. Results are sensitive to Poisson's ratio but not Young's modulus. However, the effects of the dependence to Poisson's ratio are usually not significant. Maximizing a chosen natural frequency is usually used as the objective in a frequency topological optimization problem. However, in the frequency optimization problem, when one maximizes a lower frequency, higher eigenvalues may fall down to the lower values. This means that if the optimization process is to follow a specified mode of the structure, then the order number of this mode may be changed during
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
219
Chapter 2: Topological Optimization the optimization process. For example, at the beginning we may wish to optimize the kth eigenfrequency, but the optimal solution obtained may correspond to the k+p'th mode, where p > 0. Thus the problem can have an unexpected solution. In contrast, if you follow the number of modal order (for example, to optimize the kth eigenfrequency), then the mode being optimized may change to another one. In this case, the sensitivities of the objective function become discontinuous, and may cause oscillation and divergence in the iterative optimization process. To overcome this problem, several mean-frequency functions (see TOFREQ) can be used to smooth out the frequency objective. The specifications set using TOCOMP, TOFREQ, TOVAR, TODEF, TOTYPE, and TOLOOP are not saved in the ANSYS database; therefore, you will need to specify your optimization goals and definitions each time you use topological optimization.
220
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Chapter 3: Probabilistic Design If the output is subjected to scatter due to the variation of the input variables, then what is the probability that a design criterion given for the output parameters is no longer met? How large is the probability that an unexpected and unwanted event takes place (what is the failure probability)? Which input variables contribute the most to the scatter of an output parameter and to the failure probability? What are the sensitivities of the output parameter with respect to the input variables?
Probabilistic design can be used to determine the effect of one or more variables on the outcome of the analysis. In addition to the probabilistic design techniques available, the ANSYS program offers a set of strategic tools that can be used to enhance the efficiency of the probabilistic design process. For example, you can graph the effects of one input variable versus an output parameter, and you can easily add more samples and additional analysis loops to refine your analysis.
When a conservative assumption is used, this actually tells you that uncertainty or randomness is involved. Conservative assumptions are usually expressed in terms of safety factors. Sometimes regulatory bodies demand safety factors in certain procedural codes. If you are not faced with such restrictions or demands, then using conservative assumptions and safety factors can lead to inefficient and costly over-design. You can avoid overdesign by using probabilistic methods while still ensuring the safety of the component. Probabilistic methods even enable you to quantify the safety of the component by providing a probability that the component will survive operating conditions. Quantifying a goal is the necessary first step toward achieving it. Probabilistic methods can tell you how to achieve your goal.
32
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Description Quantities that influence the result of an analysis. In probabilistic design, RVs are often called "drivers" because they drive the result of an analysis. You must specify the type of statistical distribution the RVs follow and the parameter values of their distribution functions. For the beam example, the heights H1 and H2 and the Young's modulus E are clearly the random input variables. Naturally, the heights H1 and H2 cannot be negative and more often there will be little snow and only a few times there will be a lot of snow. Therefore, it might be appropriate to model the height of the snow as an exponential or a lognormal distribution, both of which have the bulk of the data at lower values.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
33
34
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
If you change any part of the probabilistic model, then you will generate different results for the probabilistic analysis (that is, different results values and/or a different number of results). For example, modifying the analysis file may affect the results file. If you add or take away an RV or change its distribution function, you solve a different probabilistic problem (which again leads to different results). If you add an RP, you will still solve the same probabilistic problem, but more results are generated. probabilistic design The database containing the current probabilistic design environment, which includes: database (PDS data Random input variables (RVs) base) Correlations between RVs Random output parameters (RPs) Settings for probabilistic methods Which probabilistic analyses have been performed and in which files the results are stored Which output parameters of which probabilistic analyses have been used for a response surface fit, the regression model that has been used for the fitting procedure, and the results of that fitting procedure.
The database can be saved (to Jobname.PDS) or resumed at any time. The results of a probabilistic analysis are not stored in the database but in separate files. The samples generated for a fitted response surface are in neither the database nor in files, because they can be regenerated very quickly. (Files consume disk space, and reading the files requires as much time as regenerating the sample data.) mean value A measure of location often used to describe the general location of the bulk of the scattering data of a random output parameter or of a statistical distribution function. Mathematically, the mean value is the arithmetic average of the data. The mean value also represents the center of gravity of the data points. Another name for the mean value is the expected value. median value The statistical point where 50% of the data is below the median value and the 50% is above. For symmetrical distribution functions (Gaussian, uniform, etc.) the median value and the mean value are identical, while for nonsymmetrical distributions they are different.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
35
The following figure shows the flow of information during a probabilistic design analysis. Note that the analysis file must exist as a separate entity, and that the probabilistic design database is not part of the ANSYS model database.
36
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
4"3 B 3 Y
9765 B 8 ) 3
3A69765 @ 8 ) 3
$ # ! %S" S ( $ R FE @
3 0 421) 5 3 W P0FPV U 3 0 421) B ) Q ) 619IP0 f ' D SG H e %d F$ c 3 $ c )b a P"XU ` Y 3 3 4Y"3 B f (FRspR$ 'H t R $ E r $ ( (d "% 'T D $s" D"Si b r ' & ($ 1q '# # d F H 0 (
37
Chapter 3: Probabilistic Design 2. Establish parameters in the ANSYS database which correspond to those used in the analysis file. This step is typical, but not required (Begin or PDS); however, if you skip this step, then the parameter names are not available for selection in interactive mode. Enter PDS and specify the analysis file (PDS). Declare random input variables (PDS). Visualize random input variables (PDS). Optional. Specify any correlations between the RVs (PDS). Specify random output parameters (PDS). Choose the probabilistic design tool or method (PDS). Execute the loops required for the probabilistic design analysis (PDS).
3. 4. 5. 6. 7. 8. 9.
10. Fit the response surfaces (if you did not use a Monte Carlo Simulation method) (PDS). 11. Review the results of the probabilistic analysis (PDS). Because analyzing complex problems can be time-consuming, ANSYS offers you the option of running a probabilistic analysis on a single processor or distributing the analyses across multiple processors. By using the ANSYS PDS parallel run capabilities, you can run many analysis loops simultaneously and reduce the overall run time for a probabilistic analysis.
As mentioned earlier, you can vary virtually any aspect of the design: dimensions, shape, material property, support placement, applied loads, etc. The only requirement is that the design be defined in terms of parameters. The RV parameters (H1, H2, and E in this example) may be initialized anywhere, but are typically defined in PREP7.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
39
Chapter 3: Probabilistic Design Caution: If you build your model interactively (through the GUI), you will encounter many situations where data can be input through graphical picking (such as when defining geometric entities). Because some picking operations do not allow parametric input (and PDS requires parametric input), you should avoid picking operations. Instead, use menu options that allow direct input of parameters.
! ! ! !
Static analysis (default) UX=UY=0 at left end of the beam UY=0 at right end of the beam UX=UY=0 at right end of the beam
! ! ! ! !
number of next selected element the node number at left end the node number at right end the x-location of left node the x-location of rigth node
! ! ! !
evaluate pressure at left node evaluate pressure at left node Transverse pressure varying linearly as load per unit length in negative Y
! Leave SOLUTION
This step is not limited to just one analysis. You can, for instance, obtain a thermal solution and then obtain a stress solution (for thermal stress calculations). If your solution uses the multiframe restart feature, all changes to the parameter set that are made after the first load step will be lost in a multiframe restart. To ensure that the correct parameters are used in a multiframe restart, you must explicitly save (PARSAV) and resume (PARESU) the parameters for use in the restart. See the ANSYS Basic Analysis Guide for more information on multiframe restarts.
310
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
311
Chapter 3: Probabilistic Design Restore only the parameters from a previously saved parameter file; that is, read in a parameter file that you saved using either the PARSAV command or the Utility Menu> Parameters> Save Parameters menu path. To resume the parameters: Command(s): PARRES GUI: Utility Menu> Parameters> Restore Parameters Recreate the parameter definitions as they exist in the analysis file. Doing this requires that you know which parameters were defined in the analysis file. Command(s): *SET GUI: Utility Menu> Parameters> Scalar Parameters
You may choose to do none of the above, and instead use the PDVAR command to define the parameters that you declare as probabilistic design variables. See Section 3.3.4: Declare Random Input Variables for information on using PDVAR. Note The ANSYS database does not need to contain model information corresponding to the analysis file to perform probabilistic design. The model input is automatically read from the analysis file during probabilistic design looping.
312
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 3.3: Employing Probabilistic Design In the example of a beam supporting a roof with a snow load you could store the analysis file in a macro called "beam.mac". Here, the analysis is specified with the commands:
... /PDS PDANL,beam,mac ...
You provide values for the mean value and the standard deviation of the random variable x. Truncated Gaussian (TGAU):
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
$ #
" !
313
Chapter 3: Probabilistic Design You provide the mean value and the standard deviation of the non-truncated Gaussian distribution and the truncation limits xmin and xmax. Lognormal option 1 (LOG1):
You provide values for the mean value and the standard deviation of the random variable x. The PDS calculates the logarithmic mean and the logarithmic deviation :
f ( x, , ) =
1 ln x - 2 exp - 2
2 +1 and = ln - 0.5 ln
You provide values for the logarithmic mean value and the logarithmic deviation . The parameters and are the mean value and standard deviation of ln(x):
f ( x, , ) =
1 ln x - 2 exp - 2
Triangular (TRIA):
314
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
You provide the minimum value xmin, the most likely value limit xmlv and the maximum value xmax. Uniform (UNIF):
" !
You provide the lower and the upper limit xmin and xmax of the random variable x. Exponential (EXPO):
1 0 ) ('
You provide the decay parameter and the shift (or lower limit) xmin of the random variable x. Beta (BETA):
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
! ! & #
% $! # 4 30 2
315
You provide the shape parameters r and t and the lower and the upper limit xmin and xmax of the random variable x. Gamma (GAMM):
# " !
You provide the decay parameter and the power parameter k. Weibull (Type III smallest) (WEIB):
) ( '% &
You provide the Weibull characteristic value xchr , the Weibull exponent m and the minimum value xmin. Special cases: For xmin = 0 the distribution coincides with a two-parameter Weibull distribution. The Rayleigh distribution is a special case of the Weibull distribution with = xchr - xmin and m = 2. You may change the specification of a previously declared random input variable by redefining it. You may also delete a probabilistic design variable (PDVAR,Name,DEL). The delete option does not delete the parameter from the database; it simply deactivates the parameter as a probabilistic design variable. 316
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
"
8 7 5 3 66( 40 2 1( 0
Section 3.3: Employing Probabilistic Design Note Changing the probabilistic model by changing a random input variable is not allowed after a probabilistic analysis has been performed. This ensures the integrity of the previously generated results with the specified probabilistic model. If you need to change one or more random input variables (for example, because you learned that some specifications were incorrect after running an analysis), then we recommend that you save the current PDS database (using the PDSAVE command) and then clear the probabilistic analysis results from the probabilistic design database (using the PDCLR,POST command). The PDCLR command does not delete the result files that have been generated, it simply removes the link to the results file from the database. In the example of a beam supporting a roof with a snow load, you could measure the snow height on both ends of the beam 30 different times. Suppose the histograms from these measurements look like the figures given below.
( 1#
mFgFlkj rFDr@ i h g f e d
( 1#
( 1#
( 1#
) & 1!1
) 0# (
s hu p i vh y
g dc ef U U ab VW TU
`U X Y { xw to rs pq no o uv yz o
Chapter 3: Probabilistic Design From these histograms you can conclude that an exponential distribution is suitable to describe the scatter of the snow height data for H1 and H2. Suppose from the measured data we can evaluate that the average snow height of H1 is 100 mm and the average snow height of H2 is 200 mm. The parameter can be directly derived by 1.0 divided by the mean value which leads to 1 = 1/100 = 0.01 for H1, and 1 = 1/200 = 0.005 for H2. From measurements of the Young's modulus you see that the Young's modulus follows a Gaussian distribution with a standard deviation of 5%. Given a mean value of 200,000 N/mm2 for the Young's modulus this gives a standard deviation of 10,000 N/mm2. These definitions can be specified using the following commands:
... PDVAR,H1,EXPO,0.01 PDVAR,H2,EXPO,0.005 PDVAR,YOUNG,GAUS,200000,10000 ...
318
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Performing a statistical evaluation of the data, we can conclude that the linear correlation coefficient between the values of H1 and H2 is about 0.8. You can define this correlation using the commands:
... PDVAR,H1,EXPO,0.01 PDVAR,H2,EXPO,0.005 PDCORR,H1,H2,0.8 ...
You may have a more complex correlation where you have a spatial dependency. If so, you can use the PDCFLD command to calculate a correlation field and store it into an ANSYS array. Random fields are random effects with a spatial distribution; the value of a random field not only varies from simulation to simulation at any given location, but also from location to location. The correlation field describes the correlation coefficient between two different spatial locations. Random fields can be either based on element properties (typically material) or nodal properties (typically surface shape defined by nodal coordinates). Hence, random fields are either associated with the selected nodes or the selected elements. If a random field is associated with elements, then the correlation coefficients of the random field are calculated based on the distance of the element centroids. Note that for correlation fields, the domain distance D({xi} , {xj}) is not the spatial distance |{xi} - {xj}|, but the length of a path between {xi} and {xj} that always remains inside the finite element domain. However, exceptions are possible in extreme meshing cases. For elements that share at least one node, the PDCFLD evaluates the distance by directly connecting the element centroids with a straight line. If these neighboring elements form a sharp inward corner then it is possible that the domain distance path lies partly outside the finite element domain, as illustrated below.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
21 56 34 73 0) 89
319
Chapter 3: Probabilistic Design After the correlation coefficients have been calculated and stored in an ANSYS parameter (PDCFLD,ParR), then you can use the PDCORR command to define the correlations between the elements of the random field. Note When specifying one variable (A) with correlations to two or more other variables (B, C, etc.), be certain that you consider the relationship implied between the other variables B and C, etc. If you specify high correlations between A and B and A and C, without specifying the relationship between B and C, you might receive an error. Specifying a relatively high correlation between A and B, with only a moderate correlation between A and C might work because the logical correlation between B and C could still be low or nonexistent.
Example
The structure illustrated below is modeled with 12 elements. We will evaluate the domain distances of the element centroids.
320
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Next, calculate the domain distances and store the results in the array elemdist:
... /PDS PDCFLD,elemdist,ELEM,DIST ...
Finally, get all the element domain distances and print them:
... *GET,numsel,ELEM,0,COUNT ! Get the number of selected elements ! ! Outer loop through all selected elements from first to last index=0 elem1=0 ! Pipe output to file /OUT,elements,dat *DO,i,1,numsel elem1=ELNEXT(elem1) ! get number of next selected element *IF,elem1,EQ,0,CYCLE ! Leave do loop if no more elements ! ! Inner loop through selected elements from "elem1+1" to last elem2=elem1 *DO,j,i+1,numsel elem2=ELNEXT(elem2) ! get number of next selected element *IF,elem2,EQ,0,CYCLE ! Leave do loop if no more elements index=index+1 ! ! Print out the element distance *MSG,INFO,elem1,elem2,elemdist(index) Distance between element %i and %i is %g *ENDDO ! go to next element for inner loop *ENDDO ! go to next element for outer loop ...
The print out will show that for the structure illustrated above the "domain distance" between the element centroids of elements 1 and 9 is 3.8284 and between the element centroids of elements 1 and 12 it is 4.8284. The paths related to these distances are sketched in the illustration with a solid line and a dashed line respectively. In this example there are 12 elements, thus the array "elemdist" has a length of 12*(12-1) = 66.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
321
Chapter 3: Probabilistic Design You can select one of two primary methods, the Monte Carlo Simulation (default) or the Response Surface Method. Options under the Monte Carlo Simulation method include the Latin Hypercube Sampling method (default) and the Direct Monte Carlo Sampling method. Options under the Response Surface Method include the Central Composite Design and the Box-Behnken Matrix Design method. Both the Monte Carlo Simulation and the Response Surface Methods allow a user-defined option. See the PDDMCS, PDLHS, and the PDDOEL, commands or Section 3.5: Probabilistic Design Techniques for further details about these methods. To specify a method to be used for probabilistic design looping: Command(s): PDMETH GUI: Main Menu> Prob Design> Prob Method> Monte Carlo Sims Main Menu> Prob Design> Prob Method> Response Surface Note To use Response Surface Methods, the random output parameters must be smooth and continuous functions of the involved random input variables. Do not use Response Surface Methods if this condition is not satisfied.
322
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Based on the information you provide, the wizard will tell you the fastest method for solving your probabilistic design problem. The wizard will issue the PDMETH command and either the PDLHS or the PDDOEL command. You will still need to run the analysis, then fit the results to a response surface, etc. to evaluate your results.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
323
Chapter 3: Probabilistic Design If you choose the PDS parallel-processing option, you can use other CPUs that you have access to for running the probabilistic analysis. PDS parallel processing can distribute the necessary jobs in a local area network. With this option, the simulation loops are sent to CPUs that you can specify, where they are executed in "server mode." This looks the same as a batch run (in other words, there is no interactive visualization during the execution of a simulation loop). While the simulation loops are running in parallel mode, your ANSYS session is locked; however, you can instruct the ANSYS session to start postprocessing the probabilistic results as they are calculated so you can review and visualize the results before all simulation loops are finished. In parallel processing, you can monitor the running jobs and the completed results. When using parallel-processing, for n available licenses, n - 1 will be available for PDS solutions, as one license is used as a PDS administrator. For example, if you have 8 licenses available, you will be able to run 7 PDS solutions concurrently.
For the execution of the simulation loops you must specify a solution label (Slab on the PDEXE command). The solution label is used for several purposes: The results are stored in an ASCII readable file under the name "jobname_Slab.pdrs". Here, Slab is the user-specified solution label. If you want to fit response surfaces to the results of the random output parameters then you need to specify the solution label to indicate which set of results you want to use for the fitting procedure. If you want to postprocess the results generated with the PDEXE command then you must specify the solution label to indicate which results you want to postprocess.
When you execute the probabilistic analysis (PDEXE), ANSYS creates a probabilistic design loop file (Jobname.LOOP) from the analysis file. This loop file is used to perform analysis loops. Looping continues until all parameters have been evaluated. If a loop is interrupted due to an error in the execution run (for example, a meshing failure, a non-converged nonlinear solution, etc.), ANSYS PDS aborts that loop. Further processing depends if you are in serial or parallel processing mode. If you are using: Serial interactive processing: you can choose to terminate when you receive the error, or continue processing. Serial batch processing: processing terminates at the first error. Parallel processing: processing terminates if the allowed number of failed loops is exceeded (set in PDEXE), otherwise it continues.
Note that for all failed loops (loops with errors), the results for that loop are discarded, no data from that loop is used for post processing.
324
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 3.3: Employing Probabilistic Design After the PDEXE command is issued, the PDS generates a file containing the input sample values. The file is called jobname.samp. An example of the content of the file is given below:
TEST1 ITER CYCL 1 1 1 1 1 1 .. .. .. .. LOOP 1 2 3 .. .. X1 1.619379209e+000 2.237676559e-001 7.931615474e+000 ... ... X2 2.364528435e-001 5.788049712e-001 8.278689033e-001 ... ... X3 1.470789050e+000 1.821263115e+000 2.170793522e+000 ... ...
The first line contains the solution label (the parameter Slab is set via the PDEXE command); the second line contains the headers of the data columns - the iteration number, cycle number, loop number, and the random variable names. The iteration number and cycle number tell the PDS to which group (with specific PDS method and settings) the loops belong. Subsequent lines provide specific iteration, cycle, loop, and input sample values for the defined input variables. The PDS also creates a file where the results are stored. The name of the results file is jobname_Slab.pdrs. Before the job is executed, the file looks like this:
TEST1 ITER CYCL LOOP ERR X1 X2 X3 RESULT
In the first line, the PDS enters the solution label. In the second line are the headers for the data columns: the first four columns are the iteration, cycle number, loop number, and an error flag. The fifth and subsequent columns are for the random input variable and random output parameter values. If you run a subsequent analysis (same type of analysis with the same solution label), the cycle is incremented, the loop count is reset to 1, and the result file is appended. For example, the content of the result file could look like this:
TEST1 ITER CYCL 1 1 1 1 1 1 .. .. .. .. LOOP ERR 1 0 2 0 3 0 .. .. .. .. X1 1.619379209e+000 2.237676559e-001 7.931615474e+000 ... ... X2 2.364528435e-001 5.788049712e-001 8.278689033e-001 ... ... X3 1.470789050e+000 1.821263115e+000 2.170793522e+000 ... ... RESULT 4.162928057e+000 4.744249212e+000 1.149997825e+001 ... ...
Note Loops ending with an ANSYS error are deemed not trustworthy, i.e. if the loop lead to an error, then the calculated results are probably wrong. Those loops will have the error flag in the fourth column set to 1 instead of 0. Those loops will be excluded from the probabilistic post-processing altogether, i.e. the loops will not be used for the response surface fitting and also the statistical analysis in connection with a Monte Carlo simulation will skip those loops.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
325
Chapter 3: Probabilistic Design 1. 2. 3. Configure the remote machines that you want to use for parallel processing. See Section 3.3.9.3.1: Machine Configurations for details. You must have account privileges on all remote hosts. Configure the local machine that you want to use for managing the parallel processing. See Section 3.3.9.3.1.4: Configuring the Master Machine for details. Start the parallel execution.
Each of these steps is explained in detail in the following sections. An understanding of the following terms will be useful in the discussion of the parallel analysis. Simulation: A simulation is a set of input variables used with the analysis file to produce the output variables Parent Process: The parent process is the ANSYS executable which manages the creation of input parameters, communication with child processes, and postprocessing of output parameters (i.e. this is where the ANSYS session runs, which you started to perform a probabilistic design analysis). There is only one parent process for a parallel analysis. Child Process: A child process is an ANSYS server running on a particular slave machine which processes a simulation. There can be any number of children for a given parent process. Master Machine: This is the machine on which you are running the ANSYS parent process. If this machine has more than one CPU you may want to also use it as a slave machine. Slave Machine: This is the name of the machine on which you are running the ANSYS child process. If the slave machine has more than one CPUyou may want to run more than one child process. ANSYS Nanny: This is a program in the parent process that starts a child process on a slave machine; manages the transfer of files and data between the parent process and child processes and eventually terminates the child processes on the various slave machines and removes temporary files. ANSYS Thin Server: This is an application, which must be running on the slave machine, which is responsible for tranferring files between the master machine and slave machine as well as starting an ANSYS session for each child process. This application may be started automatically (remote shell option) or you can start it manually (connection port option). ANSYS Server: This is the ANSYS application using TCP/IP which receives commands and return information to the parent process (client-server). Connection Port: This is the port on which the ANSYS Thin Server accepts connections from a Master Machine. Communication Port: This is a port on which the ANSYS Thin Server will allow communications from a Master Machine. Caution: For security reasons, ANSYS recommends that you use parallel processing within your local network protected by a firewall. There is minimal security when using the ANSYS Thin Server. The client that connects to the server has all of the permissions allowed by the person or account starting the ANSYS Thin Server.
326
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Remote Shell Daemon Your system administrator should install and configure your machine to assure that this daemon or service is running. The PC does not ship with a remote shell daemon facility so you will need to acquire one (you may use the connection port ooption instead). Account Your system administrator should create an account specifically for you or an account utilized only for PDS parallel. Account Access Depending on how and which remote shell daemon is installed it will need to know which master machines and users can access this account. This is typically done using the .rhosts file located in the account's HOME directory, refer to the documentation for your particular remote shell daemon. So for example: On all slave machines edit/create the ".rhosts"-file in your home directory to include: MasterMachine1 UserId MasterMachine2 UserId MasterMachine3 UserId MasterMachine4 UserId each on a separate line. This will allow the user with the account user identification UserId to access the slave machine from the master machines listed in the file using the remote shell service.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
327
Chapter 3: Probabilistic Design ANSYS in PATH To be able to run the parallel process the ANSYS executable and ANSYS Thin Server script must be in your path. The most effective way to determine this is to do the following. Determining if the ANSYS executable is in your path: On the master machine use the command "rsh SlaveMachine which ansys90" (replace rsh by remsh if master machine is an HP machine). This should return the string /ansys90/bin Here "" is for the directory where ANSYS is installed. If you do not get this then you need to modify your PATH variable to contain the installation path. The way this is done depends on the operating system being used, refer to the documentation for your particular O/S environment. Here are some examples for typical uses: UNIX To change the PATH requires you to modify a certain system file depending which shell you are running under. To find out which shell you are using, issue the UNIX command echo $shell or echo $SHELL If the prompt is "/bin/csh" or similar, then you are running under c-shell. If the prompt is "/bin/ksh" or similar, then you are running under k-shell. If the prompt is "/bin/tcsh" or similar, then you are running under tc-shell, which can be treated the same as c-shell. If you are running under c-shell (or tc-shell) you need include the following line at the end of your ".cshrc"-file in your home directory: set path=( .../ansys90/bin $path) If you are running under k-shell you need include the following line at the end of your ".kshrc"-file in your home directory: export PATH={ .../ansys90/bin $PATH } If you don't have a ".cshrc"-file or ".kshrc"-file in your home directory, then you need to create one and include the respective commands mentioned above. PC To change the PATH variable go to Control Panel and choose System on the Advanced tab choose Environment Variables and add the ANSYS executable to the PATH under System variables. Determining if the ANSYS Thin Server script is in your path: On the master machine issue the command "rsh SlaveMachine which ansysts90". This should return the string /ansys90/bin Here "" is for the directory where ANSYS is installed. If you do not get this then you need to modify your PATH variable as outlined above.
328
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 3.3: Employing Probabilistic Design Licensing If the licensing is not managed from a license server, but installed locally then the access to the license must be made available. Include the following line at the end of your ".cshrc"-file or ".kshrc-file in your home directory depending which shell you are running under (see above): setenv ANSYSLMD_LICENSE_FILE. ../shared_files/licensing/FileName.lic Here "" is for the directory where ANSYS is installed. The name "FileName.lic" is for the file containing the license key.
Account Your system administrator should create an account specifically for you. ANSYS in PATH See Section 3.3.9.3.1.2: Using the Remote Shell Option for information on how to place the ANSYS executable in your path. AnsysClients The AnsysClients file is read by the ANSYS Thin Server on startup and must be in the directory in which you are going to run the ANSYS Thin Server. This file must contain a list of each master machine IP address and the communication port that the ANSYS Thin Server will accept communications from. The master machine's IP address must be used, but may be specified with a wildcard to allow connection from a network domain. The communication port is to be a value between 49512 and 65535. The communication port can also be specified as a range, which allows for that many connections. It is best to always specify a range for the communication port numbers. For example:
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
329
Chapter 3: Probabilistic Design 10.3.* 59100-59130 10.3.20.1 59200-59230 10.2.5.55 59300-59330 10.1.1.104 59400-59430 192.1.10.34 59500-59530 Make sure that the port number ranges are not overlapping and are unique for each master machine or network domain. You should make the range at least as wide as the number of possible users connecting from a master machine. Start the ANSYS Thin Server Starting on a PC On a PC open a command prompt window and go to the directory containing the AnsysClients file mentioned above. Issue the command: ansysts90 connection port This will start the ANSYS Thin Server using the specific connection port. The value of connection port is the port on which the master machines will connect to the ANSYS Thin Server. The value of "connection_port" should be between 49512 and 65535. For example: ansysts90 62000 The ANSYS Thin Server will start without any message and will continue running until the command prompt window is closed or using Ctrl-C to stop the process. The command prompt window may be minimized. Starting on a UNIX Machine On a UNIX machine go to the directory containing the AnsysClients file mentioned above. Issue the command: ansysts90 connection_port & This will start the ANSYS Thin Server using the specific connection port. The value of connection port is the port on which the master machines will connect to the ANSYS Thin Server. The value of "connection_port" should be between 49512 and 65535. For example: ansysts90 62000& The ANSYS Thin Server will start without any message and will continue running in the background until the machine is restarted or you kill the process. You may close or minimize the window in which the ANSYS Thin Server was started. Stop the ANSYS Thin Server The ANSYS Thin Server should be stopped once the parallel process is complete. Stopping on a PC You may stop the process by closing the command prompt window or using Ctrl-C. Stopping on a UNIX Machine
330
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 3.3: Employing Probabilistic Design On a UNIX machine use a "ps -u UserId | grep tclsh" in the command line to find out under which process-id the ANSYS Thin Server is running. Here, UserId is your user account name on the machine. With this "ps" command should get two processes running. Typically, there will be two processes listed, one process for "anstclsh" and another for "tclsh". Use "kill -9 process-id" to kill both processes. Under certain circumstances killing the "anstclsh"process will also take away the "tclsh"-process (just issue the "ps" command again to verify). If this does not happen, then just kill the "tclsh"-process separately.
Configuration when the Thin Server uses the Port Option Let's assume you now want to use the same slave machine "MySlaveMachine" using the ANSYS Thin Server. The ANSYS Thin Server has been started on a slave machine called "MySlaveMachine" using the command "ansysts90 62000as illustrated above. Let us also assume that the file "AnsysClients" looks exactly like shown in the section above, i.e. your master machine "MyMasterMachine" can communicate to the ANSYS Thin Server using the communication port numbers 59400-59430. In this case your hosts 90.ans file must include the line:
# # HOST OS PORT 62000 CPU 4 TIME 15 LocPORT 59400-59430 I/O Directory /tmp/sdr/pds_runs MySlaveMachine SGI64
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
331
Chapter 3: Probabilistic Design This will make sure that the ANSYS Thin Server on the slave machine will be contacted using the same connection port it has been started with, i.e. 62000 in this case. Also the communication will use the same communication port numbers the ANSYS Thin Server accepts from the machine "MyMasterMachine" where you try to connect from. A sample hosts90.ans file looks like this:
# # # # # # # # # # # # # # # # # # # # # # # This file is used to specify those hosts that the ANSYS Nanny may run children on. Each host entry is to be on its own line. several fields which are space delimited. The host entry consists of
Field 1 - host IP address or name Field 2 - host machine type Field 3 - execution key (used for Probabilistic Design only): 0-Use a remote shell to start the child process; this requires a remote shell server to be running on the host machine. >1024-Use a running ANSYS thin server on the host which is listening on this port number. Field 4 - The default maximum number of jobs to run on this host Field 5 - The time in minutes to check again if the host is available. If this is zero then the host will not be checked again. Field 6 - The local port number to start the communication with the ANSYS Thin Server on. This is tied to authentication on the ANSYS Thin Server. Field 7 - The directory to create the children subdirectories in Field 8 - The cluster type. Only valid entry is MPI. Field 9 - The speed factor (relative speed to other machines listed). Only valid entry is 1. # Field 10 - Number of OpenMP threads. Only valid entry is 1. # Example: # # UNIX box that has five processors # zeus sgi64 0 5 30 2000 /scratch/wjc # Microsoft box using the ANSYS Thin Server # wjcpc XP 2010 1 0 2000 C:\TEMP alpha1 alpha 0 1 15 2000 /scratch/epc MPI 1 1 athena sgi64 0 1 15 2000 /scratch/epc MPI 1 1 rs43p rs6000 0 1 15 2000 /home/pdstest MPI 1 1 rs260 rs64 0 1 15 2000 /home/pdstest MPI 1 1 snoopy hppa8000 0 1 15 2000 /home/pdstest MPI 1 1 alpha24 alpha 0 1 15 2000 /home/pdstest MPI 1 1 hp770 hppa8000 0 1 15 2000 /home/pdstest MPI 1 1 us60 usparc 0 1 15 2000 /home/pdstest MPI 1 1 ss60 sun64 0 1 15 2000 /home/pdstest MPI 1 1
332
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Based on the information provided in this menu a Jobname.hosts file is created or updated as you press OK in the menu. If you are working in batch mode, you must create this file using a text editor. However, for sake of simplicity it is recommended to let ANSYS create this file using interactive mode and then to proceed with batch mode operation. This file must reside in the directory where you are running ANSYS PDS. This file must include the following information: Remote hosts to be used for this particular parallel run.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
%$# !!" " " !! 0vCuBsXrIE 5 E t 4( 20)& 3 1( (' A$# !!"" "" " !! 0vCuBsXrIE 5 E t """ 3 1( (' " 4( 20)& A$# !!"" "" " !! 0vCuBsXrIE 5 E t eee 3 1( (' e 4( 20)& A$# !!"" "" " !! 0vCuBsXrIE 5 E t wwww3 1( (' 4( 20)& xy
333
xy y y xy xy
aW cge 3 !! a eee a !! a "" W cd"" 3 a !! a W cb 3
a !!"" "" www W Aca w3 a w `2 8 a !!" "" a eee a e W" Acge 3 gf`2 8 aW Acd""" 3 d#`2 8 !!"" "" a " a " E p R D Iqb7iRIh
)X'& ' R TU T R H W4YSPQI0ECGF E D0CBB 9A9G5 8 @8 6 )X'& WV7SQIE0CGF ' R TU T R PH E 8 @8 6 D0CBB 9A975
Chapter 3: Probabilistic Design Number of processes that can run in parallel on each host. If a remote host has more than one CPU, you can use all of the CPUs on the remote host. For performance reasons, we recommend leaving one CPU for system tasks and using only N-1 CPUs for parallel processing (if N is the number of CPUs on the remote host). Directories in which you want the child processes to be executed. It is recommend that you use temporary directories like "/scratch" or "/tmp" on UNIX or "C:\TEMP" on PCs. These remote directories are cleaned up automatically after the parallel processes finish running. Make sure that there is enough disk space in the directory for the files created by the analysis.
Section 3.3: Employing Probabilistic Design GUI: Main Menu> Prob Design> Analysis File> Assign A sample jobname.ifiles file looks like this:
# Files to copy to the ANSYS server for job Jobname # created on Fri Oct 13 10:33:44 EDT 2000. pdsrun1.inp /home/staff/epc/ddts/pds/tags
If you want to check diagnostics for a status code in parallel processing mode, choose the Diagnostics button in the Server Process Control dialog. The diagnostics system will show you the status of the slave machine(s), and details to help you address any issues that arise. Suggested actions are presented. Note In batch mode, ANSYS will always attempt to start remote processing on all machines listed in the Jobname.hosts file.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
335
Simulations are sent to each machine as that machine finishes a previous simulation; faster machines will naturally process more simulations. If a slave machine (for whatever reason) does not complete a simulation, that simulation is automatically sent to another machine to be processed. When the analyses are finished (either completed or stopped manually), then the PDS removes any files or directories it created and stops any processes it started.
336
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 3.3: Employing Probabilistic Design The number and the names of the random output parameters for which a response surface has been evaluated. If you have many random output parameters you might not be interested in fitting a response surface for every one, but only for those that are most important. For each random output parameter that was fitted with a response surface, the response surface set includes information about the regression model that was used to fit the response surface (linear, quadratic, or quadratic with cross-terms), as well as the terms and coefficients that were derived as result of the regression analysis. The Monte Carlo Simulation samples created using the response surface equations.
There is a one-to-one relationship between solution sets and response surface sets. For each solution set containing sample points you can have only one response surface set containing the response surfaces fitting these sample points. The reverse is also true, that each response surface set can only contain the response surfaces that are based on the sample points of one solution set.
While you can use all terms included in the regression model, the ANSYS PDS also offers an option that automatically filters out insignificant terms. This technique is called the forward-stepwise regression analysis. For example, where the Young's modulus E and the thermal expansion coefficient are random input variables, a full quadratic regression model reads:
therm = c 0 + c 1 E + c 2 + c 3
A full regression model uses the available sampling points to determine values for all regression coefficients c0 to c3. Of course the values for c0 to c2 will be zero or very close to zero; taking more coefficients into account than really necessary reduces the degrees of freedom of the algebraic equation to be solved to evaluate the coefficients. This in turn reduces the accuracy of the coefficients that are important for the regression fit. The forward-stepwise regression analysis takes this into account and automatically eliminates terms that are not needed. The ANSYS PDS offers a variety of transformation functions that can be used to make the random response parameter to be more appropriately described by a quadratic function after the transformation has been applied. These transformation functions can be found in Transformation of Random Output Parameter Values for Regression Fitting in the ANSYS, Inc. Theory Reference. Here, yi is the value of a random output parameter obtained in the i-th sampling loop and i is the corresponding transformed value. The physical nature of the problem should indicate which transformation to use; for example, lifetime parameters (such as the number of cycles until low cycle fatigue occurs) are usually transformed with a logarithmic transformation. If you do not have this kind of information, then you should start with the Box-Cox transformation. The PDS automatically searches for an optimum value for the Box-Cox parameter within the interval (-2,2). As guidelines:
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
y*
337
Chapter 3: Probabilistic Design If is close to -1.0 then the data is best transformed by a reciprocal transformation, which is a power transformation with an exponent of -1.0. If is close to zero then the data is best transformed by a logarithmic transformation. If is close to 0.5 then use the square root transformation. If is close to 1.0, then no transformation should be used. If is not close to any of these specific values then the Box-Cox transformation is appropriate.
To fit a response surface: Command(s): RSFIT GUI: Main Menu> Prob Design> Response Surf> Fit Resp Surf
The goodness-of-fit measures provide a means to verify the quality of the response surface and whether it is a good representation of the underlying data (in other words, the sample points). You can request a print out of this data at any time. Command(s): RSPRNT GUI: Main Menu> Prob Design> Response Surf> Prn Resp Surf
Section 3.3: Employing Probabilistic Design analysis, so you can run a large number of simulation loops in a relatively short time. Usually, several thousand simulation loops are performed if you utilize the response surfaces. After you have generated the Monte Carlo Simulation loops on the response surfaces, you can begin probabilistic postprocessing and review the probabilistic results the same way as you would for Monte Carlo Simulations. However, there is one difference for postprocessing between Monte Carlo results and Monte Carlo results derived from response surface approximations. For Monte Carlo simulation results, the accuracy of the results is determined by the number of simulation loops that are performed. The PDS can visualize the accuracy of Monte Carlo results by means of confidence limits or confidence bounds. For Monte Carlo results derived from response surface approximations, the confidence bounds are suppressed. This is necessary because the accuracy is not determined by the number of simulation loops (as mentioned above, you typically perform a large number of these) but by the goodness-of-fit or the response surface model itself. With increasing numbers of simulation loops the confidence bounds tend to merge with the result curve you are plotting (the width of the confidence band shrinks to zero). This could lead you to conclude that the results are very, very accurate. However, the underlying response surface approximation could have been completely inadequate (for example, using a linear approximation function for a highly nonlinear problem). Command(s): RSSIMS GUI: Main Menu> Prob Design> Response Surf> RS Simulation
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
339
Chapter 3: Probabilistic Design Command(s): PDSHIS GUI: Main Menu> Prob Design> Prob Results> Statistics> Sampl History You must choose the results set you want to use, the design variable you want to review, the plot type to use, and the confidence level.
Plot Histogram
Use the PDHIST command to request a histogram plot of a design variable. Command(s): PDHIST GUI: Main Menu> Prob Design> Prob Results> Statistics> Histogram You must choose the results set you want to use, the design variable you want to review, the number of classes/points to use, and the type of histogram.
CumulativeDF
Use the PDCDF command to request a histogram plot of a design variable. Command(s): PDCDF GUI: Main Menu> Prob Design> Prob Results> Statistics> CumulativeDF You must choose the results set you want to use, the design variable you want to review, and the confidence level. The confidence level is a probability expressing the confidence that the values for the cumulative distribution function are in fact between the confidence bounds. The larger the confidence level, the wider the confidence bounds. Plotting of the confidence bounds only makes sense for the postprocessing of Monte Carlo simulation results. Here, the confidence bounds represent the accuracy of the results and with increasing sample size the width of the confidence bounds gets smaller for the same confidence level. For response surface methods the number of simulations done on the response surface is usually very large. Therefore, the accuracy of the results is determined by the goodness of the response surface fit and not by the confidence level.
Probabilities
Use the PDPROB command to request the value of a design variable at an specific point on the cumulative distribution curve. Command(s): PDPROB GUI: Main Menu> Prob Design> Prob Results> Statistics> Probabilities You must choose the results set you want to use, the design variable you want to review, the relation (greater than, less than), the limit value, and the confidence level.
Inverse Probabilities
Use the PDPINV command to request the value of a design variable at a specific point on the cumulative distribution curve. Command(s): PDPINV GUI: Main Menu> Prob Design> Prob Results> Statistics> Inverse Prob
340
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 3.3: Employing Probabilistic Design You must choose the results set you want to use, the design variable you want to review, the relation (greater than, less than), the limit value, and the confidence level.
Scatter Plot
Use the PDSCAT command to request a scatter plot showing the correlation between two design variables. Command(s): PDSCAT GUI: Main Menu> Prob Design> Prob Results> Trends> Scatter Plot You must select the results set that you want to use, the design variables that you want to review, the type of trendline curve to use (and if plotted, the polynomial order), and the maximum number of point to include in the scatter plot.
Sensitivities
Use the PDSENS command to request the sensitivities of an output parameter to the input variables. Command(s): PDSENS GUI: Main Menu> Prob Design> Prob Results> Trends> Sensitivities You must choose the results set and output parameter you want to use, the type of chart to plot, the type of correlation coefficient, and the sensitivity level.
Correlation Matrix
Use the PDCMAT command to calculate the correlation coefficient matrix. Command(s): PDCMAT GUI: Main Menu> Prob Design> Prob Results> Statistics> Probabilities You must choose the results set you want to use, which type of design variables you are looking at, the specific design variable names, the type of correlation, the significance level, and whether you want to see the probabilities with the correlation coefficients.
Report Options
Use the PDROPT command to request an HTML report. Command(s): PDROPT GUI: Main Menu> Prob Design> Prob Results> Report> Report Options You must choose which statistics and trends to show in the report and in what form you want to see them. See the PDROPT command for details, and see the other probabilistic results options for further details.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
341
Generate Report
Use the PDWRITE command to request the sensitivities of an output parameter to the input variables. Command(s): PDWRITE GUI: Main Menu> Prob Design> Prob Results> Report> Generate Report You must enter a name for the report file, your first and last name, and whether links should be generated between your report and the analysis file, each analysis loop, and the response surface output parameter details (if the response surface method was used).
x1 / 2 x C
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
343
3.4.1.3.3. No Data
In situations where no information is available, there is never just one right answer. Below are hints about which physical quantities are usually described in terms of which distribution functions. This might help you with the particular physical quantity you have in mind. Also below is a list of which distribution functions are usually used for which kind of phenomena. Keep in mind that you might need to choose from multiple options.
Geometric Tolerances
If you are designing a prototype, you could assume that the actual dimensions of the manufactured parts would be somewhere within the manufacturing tolerances. In this case it is reasonable to use a uniform distribution, where the tolerance bounds provide the lower and upper limits of the distribution function. Sometimes the manufacturing process generates a skewed distribution; for example, one half of the tolerance band is more likely to be hit than the other half. This is often the case if missing half of the tolerance band means that rework is necessary, while falling outside the tolerance band on the other side would lead to the part being scrapped. In this case a Beta distribution is more appropriate. Often a Gaussian distribution is used. The fact that the normal distribution has no bounds (it spans minus infinity to infinity), is theoretically a severe violation of the fact that geometrical extensions are described by finite positive numbers only. However, in practice this is irrelevant if the standard deviation is very small compared to the value of the geometric extension, as is typically true for geometric tolerances.
Material Data
Very often the scatter of material data is described by a Gaussian distribution. In some cases the material strength of a part is governed by the "weakest-link-theory". The "weakest-linktheory" assumes that the entire part would fail whenever its weakest spot would fail. for material properties where the "weakest-link" assumptions are valid, then the Weibull distribution might be applicable. For some cases, it is acceptable to use the scatter information from a similar material type. Let's assume that you know that a material type very similar to the one you are using has a certain material property with a Gaussian distribution and a standard deviation of 5% around the measured mean value; then lets assume that for the material type you are using, you only know its mean value. In this case, you could consider using a Gaussian distribution with a standard deviation of 5% around the given mean value. For temperature-dependent materials it is prudent to describe the randomness by separating the temperature dependency from the scatter effect. In this case you need the mean values of your material property as a function of temperature in the same way that you need this information to perform a deterministic analysis. If M(T) denotes an arbitrary temperature dependent material property then the following approaches are commonly used: Multiplication equation:
Section 3.4: Guidelines for Selecting Probabilistic Design Variables Linear equation:
Here, M (T) denotes the mean value of the material property as a function of temperature. In the "multiplication equation" the mean value function is scaled with a coefficient Crand and this coefficient is a random variable describing the scatter of the material property. In the "additive equation" a random variable Mrand is added on top of the mean value function M (T). The "linear equation" combines both approaches and here both Crand and Mrand are random variables. However, you should take into account that in general for the "linear equation" approach Crand and Mrand are, correlated. Deciding which of these approaches is most suitable to describing the scatter of the temperature dependent material property requires that you have some raw data about this material property. Only by reviewing the raw data and plotting it versus temperature you can tell which approach is the better one.
Load Data
For loads, you usually only have a nominal or average value. You could ask the person who provided the nominal value the following questions: If we have 1000 components that are operated under real life conditions, what would the lowest load value be that only one of these 1000 components is subjected to and all others have a higher load? What would the most likely load value be, i.e. the value that most of these 1000 components have (or are very close to)? What would the highest load value be that only one of the 1000 components is subjected to and all others have a lower load? To be safe you should ask these questions not only of the person who provided the nominal value, but also to one or more experts who are familiar with how your products are operated under real-life conditions. From all the answers you get, you can then consolidate what the minimum, the most likely, and the maximum value probably is. As verification you can compare this picture with the nominal value that you would use for a deterministic analysis. If the nominal value does not have a conservative bias to it then it should be close to the most likely value. If the nominal value includes a conservative assumption (is biased), then its value is probably close to the maximum value. Finally, you can use a triangular distribution using the minimum, most likely, and maximum values obtained. If the load parameter is generated by a computer program then the more accurate procedure is to consider a probabilistic analysis using this computer program as the solver mechanism. Use a probabilistic design technique on that computer program to assess what the scatter of the output parameters are, and apply that data as input to a subsequent analysis. In other words, first run a probabilistic analysis to generate an output range, and then use that output range as input for a subsequent probabilistic analysis. Here, you have to distinguish if the program that generates the loads is ANSYS itself or your own in-house program. If you have used ANSYS to generate the loads (for example, FLOTRAN analysis calculating fluid loads on a structure or a thermal analysis calculating the thermal loads of a structure) then we highly recommend that you include these load calculation steps in the analysis file (and therefore in the probabilistic analysis). In this case you also need to model the input parameters of these load calculation steps as random input variables. If you have used your own in-house program to generate the loads, you can still integrate the load calculation program in the analysis file (see the /SYS command for details), but you must have an interface between that program and ANSYS that allows the programs to communicate with each other and thus automatically transfer data. You also have to distinguish if the load values are random fields or single random variables. If the load is different from node to node (element to element) then it is most appropriate to include the program calculating the load in the analysis file. If the load is described by one or very few constant values then you can also consider performing
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
345
Chapter 3: Probabilistic Design a probabilistic analysis with the program calculating these load values. Again you need to provide an interface to transfer input data to this program and get output data (the loads) back to ANSYS. If there is more than just one single load value generated by the program then you should also check for potential correlations.
Exponential Distribution
The exponential distribution is useful in cases where there is a physical reason that the probability density function is strictly decreasing as the random input variable value increases. The distribution is mostly used to describe time-related effects; for example, it describes the time between independent events occurring at a constant rate. It is therefore very popular in the area of systems reliability and lifetime-related systems reliability, and it can be used for the life distribution of non-redundant systems. Typically, it is used if the lifetime is not subjected to wear-out and the failure rate is constant with time. Wear-out is usually a dominant life-limiting factor for mechanical components, which would preclude the use of the exponential distribution for mechanical parts. However in cases where preventive maintenance exchanges parts before wear-out can occur, then the exponential distribution is still useful to describe the distribution of the time until exchanging the part is necessary.
Gamma Distribution
The Gamma distribution is again a more time-related distribution function. For example it describes the distribution of the time required for exactly k events to occur under the assumption that the events take place at a constant rate. It is also used to describe the time to failure for a system with standby components.
Lognormal Distribution
The lognormal distribution is a basic and commonly used distribution. It is typically used to describe the scatter of the measurement data of physical phenomena, where the logarithm of the data would follow a normal distribution. The lognormal distribution is very suitable for phenomena that arise from the multiplication of a large number of error effects. It is also correct to use the lognormal distribution for a random variable that is the result of multiplying two or more random effects (if the effects that get multiplied are also lognormally distributed). If
346
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 3.5: Probabilistic Design Techniques is often used for lifetime distributions; for example, the scatter of the strain amplitude of a cyclic loading that a material can endure until low-cycle-fatigue occurs is very often described by a lognormal distribution.
Uniform Distribution
The uniform distribution is a very fundamental distribution for cases where no other information apart from a lower and an upper limit exists. If is very useful to describe geometric tolerances. It can also be used in cases where there is no evidence that any value of the random variable is more likely than any other within a certain interval. In this sense it can be used for cases where "lack of engineering knowledge" plays a role.
Triangular Distribution
The triangular distribution is most helpful to model a random variable when actual data is not available. It is very often used to cast the results of expert-opinion into a mathematical form, and is often used to describe the scatter of load parameters. However, regardless of the physical nature of the random variable you want to model, you can always ask some experts questions like "What is the one-in-a-thousand minimum and maximum case for this random variable? and other similar questions. You should also include an estimate for the random variable value derived from a computer program, as described earlier. This is also described in more detail above for load parameters in Section 3.4.1.3: Choosing a Distribution for a Random Variable.
Weibull Distribution
In engineering, the Weibull distribution is most often used for strength or strength-related lifetime parameters, and it is the standard distribution for material strength and lifetime parameters for very brittle materials (for these very brittle material the "weakest-link-theory" is applicable). For more details see Section 3.4.1.3: Choosing a Distribution for a Random Variable.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
347
The Direct Sampling Monte Carlo technique has one drawback: it is not very efficient in terms of required number of simulation loops.
Section 3.5: Probabilistic Design Techniques variables, it can happen that one sample has input values close to another sample, this does not provide new information and insight into the behavior of a component in a computer simulation if the same (or almost the same) samples are repeated.
Figure 3.7 Graph of X1 and X2 Showing Two Samples with Close Values
To use Direct Monte Carlo Sampling, do the following Command(s): PDMETH,MCS,DIR PDDMCS GUI: Main Menu> Prob Design> Prob Method> Monte Carlo Sims In this sampling method, you set the number of simulations, whether to stop simulations loops when certain criteria are met (accuracy for mean values and standard deviations), and the seed value for randomizing input variable sample data.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
349
To use the Latin Hypercube Sampling technique: Command(s): PDMETH,MCS,LHS PDLHS GUI: Main Menu> Prob Design> Prob Method> Monte Carlo Sims In this sampling method, you set the number of simulations and repetitions, the location in the interval for the sample, whether the simulations stop when certain criteria are met (accuracy of mean values and standard deviations), and random number seed for variability in the sample input variable data.
350
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 3.5: Probabilistic Design Techniques Multiple commas or semicolons placed directly one after the other are not allowed; for example, two commas with no data between them (just blanks) are read as an empty column, which leads to an error message. The first line of the file must contain a solution label. No additional data is allowed on the first line, and if found, will lead to an error message. An error message is also issued if the solution label is missing. The solution label is just a placeholder. For consistency, you should use the same solution label you specify in the PDEXE command, but if they are different, you will always use the solution label specified in the PDEXE command for postprocessing. The PDS system does not check if the solution label in the userspecified file and the one given in the PDEXE command match. The second line of the file must contain the headers of the data columns. The first three column headers must be ITER, CYCL, and LOOP, respectively; then subsequent columns should contain the names of the random variables. You must use one of the allowed separators as described above between the column headers. No additional data is allowed on this line, and if found, will prompt an error message. An error message is also issued if any of the required column headers are missing. The random variable names in the file must match the names of the defined random variables. Columns four to n can be in arbitrary order. The ANSYS PDS tool determines the order for the random variable data based on the order of the random variable names in the second line. The third and subsequent lines must contain the order number for the iteration, cycle, and simulation loop, then the random variable values for that loop. The iteration, cycle, and simulation loop numbers must be in the first, second, and third columns respectively, followed by the random variable values. The iteration and cycle numbers are used by the ANSYS PDS (internally) and for a user-defined sampling method you will typically use a value of "1" for all simulation loops. The loop number is an ascending number from 1 to the total number of loops requested. Additional data is not allowed, and if found, will lead to an error message. An error message is also issued if any of the data columns are missing. You must be sure that the order of the random variable values in each line is identical to the order of the random variable names in the second line. The user-specified sampling file must contain a minimum of one data line for the random variable values.
When the PDUSER command is issued, the PDS checks that the specified file exists, then verifies it for completeness and consistency. Consistency is checked according to the possible minimum and maximum boundaries of the distribution type of the individual random variables. An error message is issued if a random variable value is found in the file that is below the minimum boundary or above the maximum boundary of the distribution of that random variable. This also means that any value will be accepted for a random variable if its distribution has no minimum or maximum boundary; for example, this is the case for the Gaussian (normal) distribution. Apart from this check, it is your responsibility to provide values for the random variables that are consistent with their random distribution. Note It is your responsibility to ensure that parameters defined as random input variables are actually input parameters for the analysis defined with the PDANL command. Likewise, you must ensure that parameters defined as random output parameter are in fact results generated in the analysis file.
Example
An excerpt of the content of a user-specified sampling file is given below. This example is based on three random variables named X1, X2, and X3. A total of 100 simulation loops are requested.
USERSAMP ITER CYCL 1 1 1 1 1 1 LOOP 1 2 3 X1 1.619379209e+000 2.237676559e-001 7.931615474e+000 X2 2.364528435e-001 5.788049712e-001 8.278689033e-001 X3 1.470789050e+000 1.821263115e+000 2.170793522e+000
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
351
Y = c0 +
NRV
NRV NRV
c i Xi +
c ij X i
Xj
i =1
i =1
j=i
where c0 is the coefficient of the constant term, ci, i = 1,...NRV are the coefficients of the linear terms and cij, i = 1,...NRV and j = i, ...,NRV are the coefficients of the quadratic terms. To evaluate these coefficients a regression analysis is used and the coefficients are usually evaluated such that the sum of squared differences between the true simulation results and the values of the approximation function is minimized. Hence, a response surface analysis consists of two steps: 1. 2. Performing the simulation loops to calculate the values of the random output parameters that correspond to the sample points in the space of random input variables. Performing a regression analysis to derive the terms and the coefficients of the approximation function.
The fundamental idea of Response Surface Methods is that once the coefficients of a suitable approximation function are found, then we can directly use the approximation function instead of looping through the finite element model. To perform a finite element analysis might require minutes to hours of computation time; in contrast, evaluating a quadratic function requires only a fraction of a second. Hence, if using the approximation function, we can afford to evaluate the approximated response parameter thousands of times. A quadratic polynomial is sufficient in many cases of engineering analysis (for example, the evaluation of the thermal stress mentioned above). For that evaluation, the Young's modulus and the thermal expansion coefficient both have a linear effect on the thermal stresses, which is taken into account in a quadratic approximation by the mixed quadratic terms. However, there are cases where a quadratic approximation is not sufficient; for example, if the finite element results are used to calculate the lifetime of a component. For this evaluation, the lifetime typically shows an exponential behavior with respect to the input parameters; thus the lifetime results cannot be directly or sufficiently described by a quadratic polynomial. But often, if you apply a logarithmic transformation to the lifetime results, then these transformed values can be approximated by a quadratic polynomial. The ANSYS PDS offers a variety of transformation functions that you can apply to the response parameters, and the logarithmic transformation function is one of them. Assuming the approximation function is suitable for your problem, the advantages of the Response Surface Method are: It often requires fewer simulation loops than the Monte Carlo Simulation method.
352
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 3.5: Probabilistic Design Techniques It can evaluate very low probability levels. This is something the Monte Carlo Simulation method cannot do unless you perform a great number of simulation loops. The goodness-of-fit parameters tell you how good the approximation function is (in other words, how accurate the approximation function is that describes your "true" response parameter values). The goodness-of-fit parameters can warn you if the approximation function is insufficient. The individual simulation loops are inherently independent (the individual simulation loops do not depend on the results of any other simulation loops). This makes Response Surface Method an ideal candidate for parallel processing.
The disadvantages of the Response Surface Method are: The number of required simulation loops depends on the number of random input variables. If you have a very large number of random input variables (hundreds or even thousands), then a probabilistic analysis using Response Surface Methods would be impractical. This method is not usually suitable for cases where a random output parameter is a non-smooth function of the random input variables. For example, a non-smooth behavior is given if you observe a sudden jump of the output parameter value even if the values for the random input variables vary only slightly. This typically occurs if you have instability in your model (such as bulking). The same might happen if the model includes a sharp nonlinearity such as a linear-elastic-ideal-plastic material behavior. Or, if you are analyzing a contact problem, where only a slight variation in your random input variables can change the contact situation from contact to non-contact or vice versa, then you also might have problems using the Response Surface Method. Note To use Response Surface Methods, the random output parameters must be smooth and continuous functions of the involved random input variables. Do not use Response Surface Methods if this condition is not satisfied.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
353
Figure 3.9 Locations of Sampling Points for Problem with Three Input Variables for CCD
The number of sample points (simulation loops) required for a central composite design as a function of the number of random input variables is given in the table below:
Number of random Number of coefficients input variables in a quadratic function (with cross-terms) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 6 10 15 21 28 36 45 55 66 78 91 105 120 136 153 171 190 210 231 Factorial number f Number sample points (simulation loops) N/A 0 0 0 1 1 1 2 2 3 4 4 5 6 7 8 9 9 10 11 N/A 9 15 25 27 45 79 81 147 149 151 281 283 285 287 289 291 549 551 553
To use the Response Surface Method with a Central Composite Design, do the following: Command(s): PDMETH,RSM,CCD PDDOEL,Name,CCD,... GUI: Main Menu> Prob Design> Prob Method> Response Surface 354
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 3.5: Probabilistic Design Techniques PDDOEL allows you to specify design of experiment options. See the ANSYS, Inc. Theory Reference for more details.
Figure 3.10 Location of Sampling Points for Problem with Three Input Variables for BBM
The number of sample points (simulation loops) required for a Box-Behnken design as a function of the number of random input variables is given in the table below:
Number of random Number of coefficients Number sample points input variables in a quadratic function (simulation loops) (with cross-terms) 1 2 3 4 5 6 7 8 9 10 11 12 6 10 15 21 28 36 45 55 66 78 91 N/A N/A 12 25 41 49 57 65 121 161 177 193
To use Response Surface Analysis with the Box-Behnken design option, do the following: Command(s): PDMETH,RSM,BBM PDDOEL,Name,BBM,...
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
355
Chapter 3: Probabilistic Design GUI: Main Menu> Prob Design> Prob Method> Response Surface PDDOEL allows you to specify design of experiment options. See the ANSYS, Inc. Theory Reference for more details.
Section 3.6: Postprocessing Probabilistic Analysis Results of the number of simulation loops, but rather the goodness-of-fit measures of the individual response surfaces. As one example, suppose the goodness-of-fit measures indicate a very poor quality of a response surface fit, but the mean value and standard deviation history indicate that the results have converged (because of the large number of loops) and the accuracy is excellent (again because confidence bounds shrink with increasing number of loops). This could lead you to an incorrect conclusion. This is why the PDS only allows you to visualize the sample value history directly, but not the mean value history and so on. To review the simulation loop results: Command(s): PDSHIS GUI: Main Menu> Prob Design> Prob Results> Statistics> Sampl History You need to select the results set label and the design variable, choose a plot type, and set the confidence level.
3.6.1.2. Histogram
A histogram plot is most commonly used to visualize the scatter of a probabilistic design variable. A histogram is derived by dividing the range between the minimum value and the maximum value into intervals of equal size. Then the PDS determines how many samples fall within each interval, that is, how many "hits" landed in the intervals. Most likely, you will use histograms to visualize the scatter of your random output parameters. The ANSYS PDS also allows you to plot histograms of your random input variables so you can double check that the sampling process generated the samples according to the distribution function you specified. For random input variables, the PDS not only plots the histogram bars, but also a curve for values derived from the distribution function you specified. Visualizing histograms of the random input variables is another way to make sure that enough simulation loops have been performed. If the number of simulation loops is sufficient, the histogram bars will: Be close to the curve that is derived from the distribution function Be "smooth" (without large steps) Not have major gaps
A major gap is given if you have no hits in an interval where neighboring intervals have many hits. However, if the probability density function is flattening out at the far ends of a distribution (for example, the exponential distribution flattens out for large values of the random input variable) then there might logically be gaps. Hits are counted only as positive integer numbers and as these numbers gradually get smaller, a zero hit can happen in an interval. To plot histograms: Command(s): PDHIST GUI: Main Menu> Prob Design> Prob Results> Statistics> Histogram
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
357
The value of the cumulative distribution function at the location x0 is the probability that the values of X stay below x0. Whether this probability represents the failure probability or the reliability of your component depends on how you define failure; for example, if you design a component such that a certain deflection should not exceed a certain admissible limit then a failure event occurs if the critical deflection exceeds this limit. Thus for this example, the cumulative distribution function is interpreted as the reliability curve of the component. On the other hand, if you design a component such that the eigenfrequencies are beyond a certain admissible limit then a failure event occurs if an eigenfrequency drops below this limit. Thus for this example, the cumulative distribution function is interpreted as the failure probability curve of the component. The cumulative distribution function also lets you visualize what the reliability or failure probability would be if you chose to change the admissible limits of your design. Often you are interested in visualizing low probabilities and you want to assess the more extreme ends of the distribution curve. In this case plotting the cumulative distribution function in one of the following ways is more appropriate: As a Gauss plot (also called a "normal plot"). If the probabilistic design variable follows a Gaussian distribution then the cumulative distribution function is displayed as a straight line in this type of plot. As a lognormal plot. If the probabilistic design variable follows a lognormal distribution then the cumulative distribution function is displayed as a straight line in this type of plot As a Weibull plot. If the probabilistic design variable follows a Weibull distribution then the cumulative distribution function is displayed as a straight line in this type of plot.
The advantage of these plots is that the probability axis is scaled in a nonlinear fashion such that the extreme ends of the distribution function are emphasized and more visible. To plot the cumulative distribution function: Command(s): PDCDF GUI: Main Menu> Prob Design> Statistics> Prob Results> CumulativeDF
'
&
%% %
# $
! "
Section 3.6: Postprocessing Probabilistic Analysis Results between sampling points. This feature is most helpful if you want to evaluate the failure probability or reliability of your component for a very specific and given limit value. To print probabilities: Command(s): PDPROB GUI: Main Menu> Prob Design> Prob Results> Statistics> Probabilities
3.6.2.1. Sensitivities
Probabilistic sensitivities are important in allowing you to improve your design toward a more reliable and better quality product, or to save money while maintaining the reliability or quality of your product. You can request a sensitivity plot for any random output parameter in your model. There is a difference between probabilistic sensitivities and deterministic sensitivities. Deterministic sensitivities are mostly only local gradient information. For example, to evaluate deterministic sensitivities you can vary each input parameters by 10% (one at a time) while keeping all other input parameters constant, then see how the output parameters react to these variations. As illustrated in the figure below, an output parameter would be considered very sensitive with respect to a certain input parameter if you observe a large change of the output parameter value.
4 1
359
Chapter 3: Probabilistic Design These purely deterministic considerations have various disadvantages that are taken into consideration for probabilistic sensitivities, namely: A deterministic variation of an input parameter that is used to determine the gradient usually does not take the physical range of variability into account. An input parameter varied by 10% is not meaningful for the analysis if 10% is too much or too little compared with the actual range of physical variability and randomness. In a probabilistic approach the physical range of variability is inherently considered because of the distribution functions for input parameters. Probabilistic sensitivities measure how much the range of scatter of an output parameter is influenced by the scatter of the random input variables. Hence, two effects have an influence on probabilistic sensitivities: the slope of the gradient, plus the width of the scatter range of the random input variables. This is illustrated in the figures below. If a random input variable has a certain given range of scatter, then the scatter of the corresponding random output parameter is larger, and the larger the slope of the output parameter curve is (first illustration). But remember that an output parameter with a moderate slope can have a significant scatter if the random input variables have a wider range of scatter (second illustration).
Gradient information is local information only. It does not take into account that the output parameter may react more or less with respect to variation of input parameters at other locations in the input parameter space. However, the probabilistic approach not only takes the slope at a particular location into account, but also all the values the random output parameter can have within the space of the random input variables. Deterministic sensitivities are typically evaluated using a finite-differencing scheme (varying one parameter at a time while keeping all others fixed). This neglects the effect of interactions between input parameters. An interaction between input parameters exists if the variation of a certain parameter has a greater or lesser effect if at the same time one or more other input parameters change their values as well. In some cases interactions play an important or even dominant role. This is the case if an input parameter is not significant on its own but only in connection with at least one other input parameter. Generally, interactions play an important role in 10% to 15% of typical engineering analysis cases (this figure is problem dependent). If interactions are important, then a deterministic sensitivity analysis can give you completely incorrect results. However, in a probabilistic approach, the results are always based on Monte Carlo simulations, either directly performed using you analysis model or using response surface equations. Inherently, Monte Carlo simulations always vary all random input variables at the same time; thus if interactions exist then they will always be correctly reflected in the probabilistic sensitivities.
To display sensitivities, the PDS first groups the random input variables into two groups: those having a significant influence on a particular random output parameter and those that are rather insignificant, based on a statistical significance test. This tests the hypothesis that the sensitivity of a particular random input variable is identical to zero and then calculates the probability that this hypothesis is true. If the probability exceeds a certain signi360
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 3.6: Postprocessing Probabilistic Analysis Results ficance level (determining that the hypothesis is likely to be true), then the sensitivity of that random input variable is negligible. The PDS will plot only the sensitivities of the random input variables that are found to be significant. However, insignificant sensitivities are printed in the output window. You can also review the significance probabilities used by the hypothesis test to decide which group a particular random input variable belonged to. The PDS allows you to visualize sensitivities either as a bar chart, a pie chart, or both. Sensitivities are ranked so the random input variable having the highest sensitivity appears first. In a bar chart the most important random input variable (with the highest sensitivity) appears in the leftmost position and the others follow to the right in the order of their importance. A bar chart describes the sensitivities in an absolute fashion (taking the signs into account); a positive sensitivity indicates that increasing the value of the random input variable increases the value of the random output parameter for which the sensitivities are plotted. Likewise, a negative sensitivity indicates that increasing the random input variable value reduces the random output parameter value. In a pie chart, sensitivities are relative to each other. In a pie chart the most important random input variable (with the highest sensitivity) will appear first after the 12 o'clock position, and the others follow in clockwise direction in the order of their importance. Using a sensitivity plot, you can answer the following important questions.
How can I make the component more reliable or improve its quality?
If the results for the reliability or failure probability of the component do not reach the expected levels, or if the scatter of an output parameter is too wide and therefore not robust enough for a quality product, then you should make changes to the important input variables first. Modifying an input variable that is insignificant would be waste of time. Of course you are not in control of all random input parameters. A typical example where you have very limited means of control are material properties. For example, if it turns out that the environmental temperature (outdoor) is the most important input parameter then there is probably nothing you can do. However, even if you find out that the reliability or quality of your product is driven by parameters that you cannot control, this has importance it is likely that you have a fundamental flaw in your product design! You should watch for influential parameters like these. If the input variable you want to tackle is a geometry-related parameter or a geometric tolerance, then improving the reliability and quality of your product means that it might be necessary to change to a more accurate manufacturing process or use a more accurate manufacturing machine. If it is a material property, then there is might be nothing you can do about it. However, if you only had a few measurements for a material property and consequently used only a rough guess about its scatter and the material property turns out to be an important driver of product reliability and quality, then it makes sense to collect more raw data. In this way the results of a probabilistic analysis can help you spend your money where it makes the most sense in areas that affect the reliability and quality of your products the most.
How can I save money without sacrificing the reliability or the quality of the product?
If the results for the reliability or failure probability of the component are acceptable or if the scatter of an output parameter is small and therefore robust enough for a quality product then there is usually the question of how to save money without reducing the reliability or quality. In this case, you should first make changes to the input variables that turned out to be insignificant, because they do not effect the reliability or quality of your product. If it is the geometrical properties or tolerances that are insignificant, you can consider applying a less expensive manufacturing process. If a material property turns out to be insignificant, then this is not typically a good way to save money, because you are usually not in control of individual material properties. However, the loads or
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
361
Chapter 3: Probabilistic Design boundary conditions can be a potential for saving money, but in which sense this can be exploited is highly problem dependent. Command(s): PDSENS GUI: Main Menu> Prob Design> Prob Results> Trends> Sensitivities
The effect of reducing and shifting the scatter of a random input variable is illustrated in the figures below. "Input range before" denotes the scatter range of the random input variable before the reduction or shifting, and "input range after" illustrates how the scatter range of the random input variable has been modified. In both cases, the trendline tells how much the scatter of the output parameter is affected and in which way if the range of scatter of the random input variable is modified.
362
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
It depends on your particular problem if either reducing or shifting the range of scatter of a random input variable is preferable. In general, reducing the range of scatter of a random input variable leads to higher costs. A reduction of the scatter range requires a more accurate process in manufacturing or operating the product the more accurate, the more expensive it is. This might lead you to conclude that shifting the scatter range is a better idea, because it preserves the width of the scatter (which means you can still use the manufacturing or operation process that you have). Below are some considerations if you want to do that: Shifting the scatter range of a random input variable can only lead to a reduction of the scatter of a random output parameter if the trendline shows a clear nonlinearity. If the trendline indicates a linear trend (if it is a straight line), then shifting the range of the input variables anywhere along this straight line doesn't make any difference. For this, reducing the scatter range of the random input variable remains your only option. It is obvious from the second illustration above that shifting the range of scatter of the random input variable involves an extrapolation beyond the range where you have data. Extrapolation is always difficult and even dangerous if done without care. The more sampling points the trendline is based on the better you can extrapolate. Generally, you should not go more than 30-40% outside of the range of your data. But the advantage of focusing on the important random input variables is that a slight and careful modification can make a difference. Note ANSYS strongly recommends that you redo the entire probabilistic analysis using the new and modified random input variables if you have reduced of shifted the scatter range of any input variables using the procedure and recommendations above. To redo the probabilistic analysis, save the probabilistic model using the PDSAVE command and clear the current probabilistic analysis results using the PDCLR,POST command. Then you can modify the random input variable definitions and redo the probabilistic analysis. Command(s): PDSCAT GUI: Main Menu> Prob Design> Prob Results> Trends> Scatter
ce d
p fp rs ghi bc
363
q ce d fp rs f d p ghi bc 23
3 45 1 ( )0 &'
7 48 18 ' 7 6' 4
Chapter 3: Probabilistic Design have been sampled between random input variables, which is stored in the random input variables correlation matrix. The correlations between random output parameters are important if you want to use the probabilistic results of your probabilistic analysis as input for another probabilistic analysis. To print out a correlation matrix: Command(s): PDCMAT GUI: Main Menu> Prob Design> Prob Results> Trends> Correl Matrix
364
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
365
Chapter 3: Probabilistic Design definitions, correlations, and random output parameter definitions). Clearing only the solution and results part of the PDS database is helpful if you want to modify the probabilistic model (change RVs, set correlations between RVs or RPs, etc.). After you have performed a probabilistic analysis, the PDS will not allow you to change any of the probabilistic model details. This ensures consistency of the probabilistic model with the results. To clear the probabilistic design database: Command(s): PDCLR GUI: Main Menu> Prob Design> Prob Database> Clear & Reset Because the ANSYS database is not affected by the PDCLR command, it may also be necessary to clear the ANSYS database if the resumed probabilistic design problem is totally independent of the previous one. See the /CLEAR command for details.
366
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
367
After the analysis file has been created, you can proceed with the probabilistic design analysis. You can do this though ANSYS commands or though the GUI. If you prefer using commands, the following input sets up the probabilistic analysis for the 3-bar truss example.
/inp,pds3bar,pdan /com /com, Enter PDS and specify the analysis file /com /PDS ! enter probabilistic design system pdanl,pds3bar,pdan /com /com, Declare random input variables /com PDVAR,ARE1,GAUS,5,0.5 ! define area1 with Gaussian distribution ! having mean of 5 and std. dev of 0.5 PDVAR,ARE2,tria,10,11,12 ! define area2 with triangular distribution ! having low bound of 10, most likely point of 11 ! and high bound of 12 PDVAR,ARE3,unif,5,6 ! define area3 with uniform distribution ! with low bound of 5 and high bound of 6 /com /com, Specify any correlations between the random variables /com PDCOR,ARE1,ARE3,0.25 ! define a correlation coef of 0.25 between ARE1 and ARE3 /com /com, Declare random output variables /com PDVAR,SIG1,resp ! define SIG1 a response parameter PDVAR,SIG2,resp ! define SIG2 a response parameter PDVAR,SIG3,resp ! define SIG3 a response parameter PDVAR,TVOL,resp ! define TVOL a response parameter /com /com, Choose the probabilistic design tool or method /com PDMETH,MCS,DIR ! specify direct Monte Carlo simulation PDDMCS,100,NONE,ALL,,,,123457 ! use all 100 samples, initial seed of 123457 /com /com, Execute the loops required for the probabilistic design analysis /com PDEXE,mcs3bar ! run analysis and define solution label 3bar_mcs /com /com, Review the results of the probabilistic analysis /com PDSENS,MCS3BAR,TVOL,BOTH,RANK,0.025 !Create Sensitivity plot fini /exit
368
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
In the next several steps of this problem, you explore the effects of variation in the parameters.
Step 2: Enter the Probabilistic Design Module and Identify Analysis File
First, enter the optimizer and identify the analysis file. 1. 2. Choose menu path Main Menu> Prob Design> Analysis File> Assign. The Assign Analysis File dialog box appears. In the Files list, click once on pds3bar.pdan and then click on OK.
10. Type 5 in the LOW BOUND field, and 6 in the HIGH BOUND field. Click on OK. 11. Click on Close to close the Define a Random Variable dialog box. 12. Choose menu path Main Menu> Prob Design> Prob Definitions> Correlation. The Add/Edit or Delete Correlation dialog box appears. 13. Select ARE1 and ARE2 from the list of variable names. Click on OK. Type 0.25 in the Correlation Coeff field. 14. Choose menu path Main Menu> Prob Design> Prob Definitions> Random Output. The Random Output Parameters dialog box appears.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
369
Chapter 3: Probabilistic Design 15. Click on Add. The Define a Random Output Parameter dialog box appears. In the list of parameter names, click on SIG1. Click on OK. 16. Click on Add. The Define a Random Output Parameter dialog box appears. In the list of parameter names, click on SIG2. Click on OK. 17. Click on Add. The Define a Random Output Parameter dialog box appears. In the list of parameter names, click on SIG3. Click on OK. 18. Click on Close to close the Random Output Parameters dialog box.
When the data is saved, you are ready to review the results.
370
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
In a traditional finite-element analysis, each change of the value of any input variable requires a new finite-element analysis. To perform a "what-if-study" where several input variables are varied in a certain range, a considerable number of finite-element analyses may be required to satisfactorily evaluate the finite-element results over the space of the input variables. Variational Technology provides a much more efficient approach by providing a "response surface." A response surface is an explicit approximation function of the finite-element results expressed as a function of all selected input variables. Among other approaches known in literature these approximation functions can be derived from Taylor series expansion or the Pad approximation. The following items characterize each approximation method: Pad approximation (default) is based on a series of rational functions. Hence, it is capable of better dealing with highly nonlinear cases such as response quantities that have singularities. A recommended upper limit is 100 input variables (problem dependent). It is the only method that works with discrete input variables and is the faster and cheaper method. However, it does not allow for any single finite element in the model to be affected by more than one input variable. Taylor series approximation is based on a series of polynomial functions. A recommended upper limit is 10 input variables (problem dependent). It is the only method that allows for the finite elements in the model to be affected by more than one input variable or by shape parameters.
Both the Taylor series expansion technique as well as the Pad approximation depends on the order of the approximation function. Naturally, the higher the order of the approximation the more accurate the approximation will be. Variational Technology as implemented in the ANSYS environment automatically determines the necessary order of the approximation based on the requested accuracy of the expected results. To determine the response surfaces it is necessary to evaluate higher order derivatives of the finite-element results with respect to the selected input variables, where the order of the derivatives corresponds to the order of the approximation function. It is a unique key feature of Variational Technology implemented in the ANSYS environment that all necessary derivatives of any order are calculated automatically within one single finiteelement analysis. Because the derivatives are also calculated, this "extended" finite-element analysis may take longer than a regular solve. However, this one "extended" finite-element analysis will take a considerably shorter time if compared to the many solution runs that are required for the "what-if-study" mentioned above. Depending on the analysis problem, typical speed-up factors may be in the order of ten or even up to several thousands. ANSYS provides two separately licensed Variational Technology modules for the ANSYS environment: ANSYS DesignXplorer VT for structural applications: Providing a response surface of finite-element results for linear, elastic, and static analysis types and eigenfrequency analyses. ANSYS Frequency Sweep VT: Provides response curves of electromagnetic applications as a function of the excitation frequency.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Results are viewed in a separate postprocessor application, called the SolutionViewer, which can be launched from within the ANSYS environment. You can use the SolutionViewer to interactively evaluate and optimize product behavior. This can all be done without the time required for additional finite-element solutions. The SolutionViewer provides the following tools for design evaluation and optimization: Design Curves Design Handbooks, consisting of families of design curves. Histograms Response Surfaces Design Sweeps Tolerance Analyses Contour Plots
The SolutionViewer includes its own help system, accessible from within the application or by opening SXP_index.html located at n:\Program Files\Ansys Inc\V90\CommonFiles\help\en-us\solviewer on Windows and /ansys_inc/v90/commonfiles/help/en-us/solviewer on UNIX/Linux.
42
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
3.
43
Chapter 4: Variational Technology SXMP Defines a material property as an input variable. SXREAL Defines real constant as an input variable. SXSEC Defines a section property as an input variable for the FS Module or the DesignXplorer VT. SXTEMP Defines the temperature as input variable for the DesignXplorer VT. 6. 7. Define the result quantities with one or more SXRSLT commands. The variables that you define depend on the type of analysis. Set the Variational Technology solution method depending on the analysis type. For a static analysis (ANTYPE,STATIC), set the solution method using the STAOPT command. For a modal analysis (ANTYPE,MODAL), set the solution method using the MODOPT command. Solve. Review results with the SXPOST command. This command launches the SolutionViewer.
8. 9.
10. Export the results from the SolutionViewer to either a JPEG file or to a text file for use in other applications, such as Microsoft Excel. 11. An alternative to using SXPOST is to use the POST1 processor with SXVMOD and SXEVAL commands. SXEVAL will evaluate the results for parametric values specified for SXVMOD and load them into memory. Displacements, reaction forces and stresses can be printed or plotted. 12. Do not issue a set command when using SXEVAL as it will use results from the RST file and overwrite them in memory.
44
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
SolutionViewer
SXPOST
SXSTAT SXCLR
Setting up ANSYS DesignXplorer VT analyses interactively is considerably easier, as the dialog boxes (at least to some extent) guide you in choosing the proper command settings. For example, the Define Material Properties dialog box displays the proper material property labels based on the main material selection. Also, you don't need to specify Variational Technology with the STAOPT or MODOPT commands. This is done automatically when you select Solve under DesignXplorer VT> Solution in the Main Menu.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
45
LINK180
MASS, RF, U
SHELL181
EX, EY, EZ, NUXY, NUYZ, TK per layer (defined X NUXZ, GXY, GYZ, GXZ, using SXREAL or DENS per layer SXSEC) EX, EY, EZ, NUXY, NUYZ, NUXZ, GXY, GYZ, GXZ, DENS EX, EY, EZ, NUXY, NUYZ, NUXZ, GXY, GYZ, GXZ, DENS EX, EY, EZ, NUXY, NUYZ, NUXZ, GXY, GYZ, GXZ, DENS EX, EY, EZ, NUXY, NUYZ, NUXZ, GXY, GYZ, GXZ, DENS EX, EY, EZ, NUXY, NUYZ, NUXZ, GXY, GYZ, GXZ, DENS EX, EY, EZ, NUXY, NUYZ, NUXZ, GXY, GYZ, GXZ, DENS EX, EY, EZ, NUXY, NUYZ, NUXZ, GXY, GYZ, GXZ, DENS X
MASS, S, RF, U
PLANE182
MASS, S, RF, U
PLANE183
MASS, S, RF, U
SOLID185
MASS, S, RF, U
SOLID186
MASS, S, RF, U
SOLID187
MASS, S, RF, U
BEAM188
MASS, RF, U
BEAM189
MASS, RF, U
COMBIN14 MASS21
When pressures and forces are applied to surfaces using SFE on SURF153 (2-D) or SURF154 (3-D), if the shape of the model is varied by a SXGEOM parameters, the total force applied to the element will be held constant unless the SFE load key option specifies that the load is to be applied normal to the surface.
4.1.4. Limitations
An element cannot belong to more than one variable specification; that is, an element cannot be part of both a thickness and material property variable definition using SXMETH,,PADE. For Normal Modes analysis: 46 Non-zero prescribed displacements are not supported. The result type MASS cannot be selected.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 4.1: ANSYS DesignXplorer VT SXTEMP cannot be used with the following elements: LINK180 BEAM188 BEAM189 COMBIN14 MASS21
On an element which has both supressed DOFs and prescribed DOFs, the calculation of reaction forces is incorrect.
A standard analysis is then performed in the ANSYS environment. Then, a DesignXplorer VT analysis is performed following the steps outlined in the table below that shows both the GUI paths and the equivalent ANSYS commands.
Task 1. GUI Input Command Input
Enter the ANSYS No action required. Occurs automatically at Step 2 /SX DesignXplorer or 3. VT Preprocessor. Define the results file where the DesignXplorer VT results are to be stored. Main Menu> DesignXplorer VT> Solution> SXRFIL,file,rsx Results File [Browse ...] and pick, or type file.rsx (include path) [OK]
2.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
47
48
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
49
410
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Command Input
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
411
Design Curve
Histogram
412
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Response Surface
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
413
Contour Plot
414
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
/COM, Element generation et,1,181 r,1,0.2 et,2,181 r,2,0.2 et,3,181 r,3,0.2 asel,s,loc,z type,1 real,1 esize,,8 amesh,all asel,s,loc,y type,2 real,2 amesh,all asel,all type,3 real,3 amesh,all nsel,s,loc,x,a[1] esln,,1 cm,rib1,elem nsel,s,loc,x,2*a esln,,1 cm,rib2,elem nsel,s,loc,x,3*a esln,,1 cm,rib3,elem nsel,s,loc,x,4*a esln,,1 cm,rib4,elem allsel finish
/solu FLST,2,5,5,ORDE,5 FITEM,2,1 FITEM,2,18 FITEM,2,20 FITEM,2,22 FITEM,2,24 SFA,P51X,1,PRES,200, , allsel, nsel,s,loc,x, d,all,all nsel,s,loc,x,5*a nsel,r,loc,y,0 nsel,r,loc,z,0 ! f,all,mx,10000 ! d,all,rotx,10000
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
415
/sx[2] SXRFIL,file,rsx[3] SXREAL,Thick 1,0.10,0.30,CONT,TK,1,,VAL[4] SXREAL,Thick 2,0.05,0.35,CONT,TK,2,,VAL SXDISC,Rib1,rib1[5] SXDISC,Rib2,rib2 SXDISC,Rib3,rib3 SXDISC,Rib4,rib4 SXRSLT,defl,NODE,U,ALL,,[6] SXRSLT,stress,ELEM,S,ALL,, SXRSLT,mass,ELEM,MASS,ALL,, finish /solution STAOPT,sx[7] solve finish
1 - This begins the set of commands to create the element components. Each rib must be defined as an element component for later reference by the SXDISC command. 2 - Enter the VT processor with the /SX command. 3 - The ANSYS DesignXplorer VT results file is named file.rsx. 4 - Input variables for shell thickness are defined. 5 - Each of the previously defined element components is now set as a discrete input variable using the SXDISC command. 6 - The results variables are defined with the SXRSLT command. 7 - The ANSYS DesignXplorer VT solution is selected with the STAOPT command.
0,
0,
0,
416
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Assume also that the model is adequately constrained and a force applied. The following shows the commands used to set up the input variables based on the previously defined shell thicknesses (Thick1 through Thick7) and a material property input variable based on Young's Modulus. The results variables must be defined as well, for use by the results viewer.
/SX[1] SXRFIL,test2,rsx[2] SXREAL,Thick1,0.5,7.5,CONT,TK,1,,VAL[3] SXREAL,Thick2,0.5,7.5,CONT,TK,2,,VAL SXREAL,Thick3,0.5,7.5,CONT,TK,3,,VAL SXREAL,Thick4,0.5,7.5,CONT,TK,4,,VAL SXREAL,Thick5,0.5,7.5,CONT,TK,5,,VAL SXREAL,Thick6,0.5,7.5,CONT,TK,6,,VAL SXREAL,Thick7,0.5,7.5,CONT,TK,7,,VAL SXMP,Young0,1.034E+08,3.102E+08,CONT,EX,2,,VAL[4] SXRSLT,deplacement,NODE,U,ALL,,ALL[5] SXRSLT,reactions,NODE,RF,ALL,,ALL SXRSLT,mass,ELEM,MASS,ALL, SXRSLT,sigma,ELEM,S,ALL,,ALL FINI
/SOLUTION STAOPT,SX[6]
1 - Enter the VT processor with the /SX command. 2 - Specify the results file name with the SXRFIL command. 3 - Specify the input variables based on thickness with the SXREAL command. 4 - Specify the input variable based on material property with the SXMP command. 5 - Specify the results variables with SXRSLT command. 6 - Specify a Variational Technology solution with the STAOPT command.
417
5.
4.1.8. Troubleshooting
If you encounter problems running the ANSYS DesignXplorer VT: 1. 2. Make certain that you are using supported elements. Refer to Table 4.1: Elements For Use With ANSYS DesignXplorer VT for a list of elements and supported features. Make sure that the CADOE_LIBDIR90 environment variable has been set. It should point to the n\Program Files\Ansys Inc\V90\CommonFiles\Language\en-us directory in Windows and the /ansys_inc/v90/commonfiles/language/en-us directory in UNIX.
If you encounter problems running the SolutionViewer help, make sure that the CADOE_DOCDIR90 environment variable has been set. It should point to n:\Program Files\Ansys Inc\V90\CommonFiles\help\en-us\solviewer on Windows and /ansys_inc/v90/commonfiles/help/en-us/solviewer on UNIX/Linux.
418
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Define the waveguide port type and excitation using the HFPORT command. Compute the matrix of S-parameters using the SPSWP command. Display the S-parameters using the PLSP command.
Note A large number of frequency steps will product a very large database file.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
419
420
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
# GHz S MA R 188.36 94.18. ! Freq |S11| <|S11| 1.0000 0.322 142.788 2.0000 0.339 109.259 3.0000 0.329 69.074 4.0000 0.334 36.978 5.0000 0.345 0.070
|S21| <|S21| 0.945 -52.364 0.935 -107.633 0.932 197.701 0.921 145.595 0.905 95.776
|S12| <|S12| 0.947 -53.791 0.948 -106.050 0.959 200.509 0.966 146.452 0.964 93.750
|S22| <|S22| 0.326 -69.987 0.337 -141.146 0.323 141.352 0.332 66.997 0.368 7.834
/batch,list /title, Dielectric Post in a Rectangular Waveguide /com, Waveguide Dimension: 22.86 x 10.16 mm^2 (Cutoff Frequency: 6.56 GHz) /com, Dielectric Post: 12 x 10.16 x 6 mm^3 at the center of waveguide /com, epsr = 8.2 /com, Frequency Range: 8 - 12 GHz for TE10 mode /com, PML Parameter: 5 Layers with -50 dB /com, Mesh Size: Free Space Wavelength/15 at 12 GHz /com, Numerical Model: IMPD Driven Port; PML Output Port /com, Solution Target: S11 over frequency range using series expansion method /prep7 ch=10.16e-3 ! waveguide height cw=22.86e-3 ! waveguide width c=12e-3 ! post width d=6e-3 ! post length epsr=8.2 ! Dielectric constant freq=10.e9 ! Analysis frequency
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
421
! Tangential E is zero on all side walls nsel,s,loc,y,-ch/2 nsel,a,loc,y,ch/2 nsel,a,loc,x,-cw/2 nsel,a,loc,x,cw/2 nsel,a,loc,z,cl/2+lamda/5 d,all,ax,0. nsel,s,loc,z,-cl/2 ! locate rectangular port sf,all,port,1 hfport,1,rect,,te10,impd,cw,ch,1 alls fini /solu alls spswp,8.e9,12.e9,0.1e9,0 ! run frequency sweep using Variational Technology option FINISH /post1 plsyz,file,s1p,s,db,1,1 ! plot magnitude of S11 (dB) plsyz,file,s1p,s,ang,1,1 ! plot phase angle (Deg) finish
422
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
423
4.2.2. ANSYS Frequency Sweep VT for Structural Analysis with FrequencyDependent Material Properties
Using the ANSYS Frequency Sweep VT module, you can define the material elastic properties as being frequencydependent and efficiently compute the frequency response over an entire frequency range. For more information, see TB,ELAS and TB,SDAMP. To use this formulation, use the hysteretic damping formulation with the HROPT command. Note If you define the damping ratio (TB,SDAMP) as being a linear function of the frequency, the damping behaves like a viscous damping. See the ANSYS, Inc. Theory Reference for more information on the hysteretic and structural damping formulations. Limitations: The frequency-dependent tables (defined by the TB,ELAS and TB,SDAMP commands) define piecewise linear functions. These are used to define the stiffness and damping matrices, which in turn are fitted with a polynomial over the entire frequency range. To compute their derivatives as a function of frequency. Hence, if the piecewise linear approximation of the material properties is too coarse, the results will be poor.
424
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
TB,ELASTIC,1,,2
TBFIELD , FREQ,1 ! First frequency value TBDATA,1,20e6,0.3 ! E and m TBFIELD ,FREQ,500 ! Fifth frequency value TBDATA,1,30e6,0.3 TB,SDAMP,1, ,1 ! damping data table
TBFIELD , FREQ,1 ! First frequency value TBDATA,1, 0.02 ! Damping co. TBFIELD ,FREQ,500 TBDATA,1, 0.01 ! Fifth frequency value
MP,DENS,1,.10 BLOCK,0,10,0,2,0,2 LSEL,S,LOC,X,-.5,0.5 LESIZE,ALL,,,2 LSEL,S,LOC,X,9.5,10.5 LESIZE,ALL,,,2 LSEL,S,LOC,X,2,8 LESIZE,ALL,,,5 VMESH,ALL FINISH /SOL LSEL,S,LOC,X,-.5,0.5 DL,all,,all KSEL,S,LOC,X,8,12 KSEL,R,LOC,Y,-.5,.5 FK,ALL,FY,1000 ASEL,S,LOC,Y,1.8,2.2 SFA,ALL,,PRES,1000, allsel FINI /com, * ============================================== /com, * /com, * VT Harmonic Analysis /com, * /com, * ============================================== /SX SXCLR,ALL SXRFIL SXFREQ,frq,LF,UF,N SXRSLT,disp,NODE,U,ALL,0.01,ALL FINISH /SOLU ANTY,HARM HROUT,OFF ! Print complex displacements as amplitude and phase angle KBC,1 HROPT,SX,,,,HYST Solve FINISH /show,post /post26
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
425
The graph below shows the difference in the Y displacement at the end of the beam, taking constant material properties for 0Hz, constant properties for 500 Hz, and variable properties. Note that the first peak is higher on the variable curve than the other two. This is because of the frequency step used to create the frequency response.
426
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
2.
3.
4. 5.
52
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Selective adaptivity can improve the performance of models having concentrated loads. If you select a set of keypoints, the ADAPT macro will still include all your keypoints (that is, the ADAPT macro will modify the mesh at both selected and non-selected keypoints), unless you also set KYKPS = 1 in the ADAPT command (Main Menu> Solution> Solve> Adaptive Mesh). If you select a set of areas or volumes, the ADAPT macro will adjust element sizes only in those regions that are in the selected set. You will have to mesh your entire model in PREP7 before executing ADAPT.
53
Chapter 5: Adaptive Meshing the boundary condition command sequence, the solution command sequence
The corresponding user subroutine files must be named ADAPTMSH.MAC, ADAPTBC.MAC, and ADAPTSOL.MAC, respectively.
Please see the TYPE, ACLEAR, VCLEAR, AMESH, and VMESH command descriptions for more information. We strongly recommend that you include a comment line (C***) to identify your macro uniquely. This comment line will be echoed in the job printout, and will provide assurance that the ADAPT macro has used the correct user subroutine.
This default sequence will solve only a single load step. You might be able to implement other solution sequences by incorporating them into the user subroutine ADAPTSOL.MAC.
54
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
If you specify line divisions or spacing ratios, the ADAPT macro will use these values in every loop. (That is, line divisions or spacing ratios that you specify will not be changed by the ADAPT macro.) If you do not specify mesh
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
55
Chapter 5: Adaptive Meshing divisions of any kind, default element sizing (SMRTSIZE and DESIZE) will be used for the initial mesh. To specify line divisions or spacing ratios, use one of these methods: Command(s): LESIZE GUI: Main Menu> Preprocessor> Meshing> Size Cntrls> ManualSize> Lines> All Lines Main Menu> Preprocessor> Meshing> Size Cntrls> ManualSize> Lines> Picked Lines Mapped meshing (all quadrilaterals) is available for 2-D solid and 3-D shell analyses. The benefits of using mapped area meshing are usually minimal, however. Mapped meshing (all hexahedral bricks) is available for 3-D solid analyses. Mapped volume meshing, if possible for a given model, will probably give superior performance, compared to tetrahedral meshing. In general, midside-node elements will perform better than linear elements in an adaptive meshing operation. Do not use concentrated loads or other singularities (such as sharp re-entrant corners), because the ADAPT procedure cannot show energy value convergence with mesh refinement in the vicinity of these singularities. If a concentrated loading condition is present in your model, replace it with an equivalent pressure load, applied over a small area. (Or, exclude the region of the concentrated load from adaptive modification using the select options discussed previously.) For many problems, it could be preferable to use a number of relatively small, simple regions in place of fewer large, complicated regions, for best meshing performance. If the location of maximum response is known or suspected beforehand, then a keypoint should be placed near that location. If the ADAPT procedure is used in an interactive run and the ANSYS program aborts abruptly without issuing the proper error message, then the output file for the adaptive meshing portion of your run (Jobname.ADPT) should be reviewed to determine the cause. Similarly, if the ADAPT procedure is used in a batch run, then Jobname.ADPT should be saved and examined in case of an abrupt abort. If a model has an excessive curvature in some region, then your model might experience mesh failure. In this case, use the SIZE field on the KESIZE command (Main Menu> Preprocessor> Meshing> Size Cntrls> ManualSize> Keypoints> Picked KPs) to define the maximum element edge length settings at keypoints near the excessive curvature region. FACMX should also be set equal to 1 (in the ADAPT command) so that element size will not be permitted to grow in the vicinity of the excessive curvature. You should save the results file (Jobname.RST or Jobname.RTH). In case of a program abort in the middle of the ADAPT procedure, the results file will still have the entire analysis data from the previous solution completed by the ADAPT procedure. You should issue a SAVE (Utility Menu> File> Save as Jobname.db) before starting the adaptive meshing operation. In case of system abort, Jobname.DB can then be used to restart the analysis.
56
Section 5.5: Where to Find Examples VM193 - Adaptive Analysis of 2-D Heat Transfer with Convection VM205 - Adaptive Analysis of an Elliptic Membrane Under a Uniformly Distributed Load
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
57
58
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
The simulation terminates at TIME = 0.44. Rezoning begins on the deformed mesh at substep 7 (TIME = 0.40):
62
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
63
Based on the new mesh, the simulation concludes successfully at TIME = 1.0:
64
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Contact elements
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
65
Files
The conditions specified apply only to the region to be remeshed. No limitations exist for other regions, although the analysis type itself must support rezoning.
If termination occurred because of a mesh distortion, determine the substep at which you intend to activate rezoning. The following flowchart illustrates the general process and key ANSYS commands involved in manual rezoning:
66
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Clear the database (/CLEAR) first, before reentering the solution processor (/SOLU) and starting the rezoning process. When you initiate rezoning, (REZONE,MANUAL), ANSYS verifies that the necessary files (.rdb, .rst, .rxxx, and .ldhi) exist for the specified substep and rebuilds the data environment at that substep. ANSYS updates all nodes to the deformed geometry in preparation for remeshing. You can remesh more than one region at the same specified substep during the rezoning process. After remeshing (REMESH,FINISH), ANSYS generates contact elements (if any) and transfers loads and boundary conditions (BCs) automatically. The MAPSOLVE command maps the solved nodal and element solutions and achieves equilibrium on the new mesh.
67
Chapter 6: Manual Rezoning Typically, the best choice is the first, second, or third converged substep preceding the last converged substep. To determine the best possible substep to initiate rezoning, you may need to enter the general postprocessor (/POST1) to examine the deformed element shapes, and stress and strain distributions. If no results data exists for a substep in the results file, you can use ANSYS restart features to generate results data for the substep, and then enter /POST1 to examine the deformed shape; afterwards, you can reenter the solution processor and initiate rezoning as usual. Hints for selecting a substep to initiate rezoning: The substep should have an obvious mesh distortion but should contain no element having an internal angle too closely approaching, equal to, or exceeding 180 degrees for 2-D quadrilateral elements. The substep should have minimal penetration in contact. If an error occurs when ANSYS transfers boundary conditions and loads after remeshing (REMESH,FINISH) and the old mesh is severely distorted, try the substep preceding the one most recently chosen. The best substep is often not the last converged substep, but rather one of the several preceding the last one. If the last few converged substeps are separated by very small time increments and you have already tried one or more of those substeps unsuccessfully, select a converged substep that is separated from the others by a larger time increment. If you are still having difficulty obtaining a mesh of reasonable quality because the old mesh is too distorted, try the substep preceding the one most recently chosen. If the mapping operation (MAPSOLVE) fails to converge even if you allow up to 500 substeps, try the substep preceding the one most recently chosen.
6.5. Remeshing
After starting the remeshing operation (REMESH,START), you can select any region in the deformed domain to generate a new mesh for rezoning. During remeshing, your analysis temporarily exits the /SOLU solution processor and enters a special mode of the /PREP7 preprocessor, where a limited number of preprocessing commands are available for mesh control. To exit the special preprocessing mode and reenter the solution processor at any time, issue a REMESH,FINISH command. The following remeshing topics are available: Section 6.5.1: Selecting a Region to Remesh Section 6.5.2: Mesh Control Section 6.5.3: Contact Boundaries, Loads, and Boundary Conditions
Section 6.5: Remeshing Thickness (real constant) for plane stress Nodal coordinate system (except for boundary nodes which can have different nodal coordinate systems).
A selected region should contain all of the highly distorted elements. For a 2-D mesh, the region should encompass elements with very large or very small internal angles and large aspect ratios. If the boundary nodes are distributed too unevenly, the elements attached to the nodes should also be included. The selected region's boundary can have any shape but cannot cross contact boundaries, nor can the boundary surround an unselected area (that is, the region cannot contain a hollow area). A selected region that is too large may introduce mapping errors and require more processing time. If the selected region is too small to contain all of the highly distorted mesh areas, the new model after rezoning may not be of sufficient quality to achieve convergence. If more than one region requires rezoning, or if elements that you intend to remesh exist on both sides of a contact boundary, see Section 6.5.1.2: Remeshing Multiple Regions at the Same Substep. Using the ANSYS GUI Select a region to remesh using either of the following methods available via the ANSYS Main Menu: In the solution processor (/SOLU): Solution>Manual Rezoning>Select Rezone Elements In the postprocessor (/POST1): General Postproc>Manual Rezoning>Create Rezone Component Select elements and group them into a component. During rezoning, import the component after remeshing starts (REMESH,START).
To maintain compatibility, ANSYS does not combine line segments connected to elements outside the selected remeshing region (even if you specify line combining). Also, two segments are not combined if an old node is located between them and that node: Has applied force or displacements, or Is the starting and ending point of applied pressures, distributed displacements, or contact boundaries.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
69
Chapter 6: Manual Rezoning If necessary, you can retain some old nodes on the boundaries of the selected region to use on the new mesh. To do so, select the nodes that you want to keep and group them into a nodal component named _ndnocmb_rzn (CM,_ndnocmb_rzn,NODE) before issuing the AREMESH command. It is best to avoid using nodes from the old mesh whenever possible. Retaining old nodes introduces more constraints when generating the new mesh and makes it more difficult to create a new mesh of better quality.
For purposes of creating a good mesh, satisfactory internal angles are a more important consideration than whether aspect ratios may be too high or too low. Avoid triangle elements when possible; however, if quadrilateral elements have very large internal angles, it is preferable to accept some triangle elements with more acceptable internal angles instead. The quality of the new mesh is fully dependent on the shape of the selected region, neighboring elements, and boundary nodes with applied loads and boundary conditions; therefore, no single ANSYS command can guarantee a successful new mesh. You may need to experiment with various command combinations to obtain the best mesh possible. After generating the area (AREMESH) for the new mesh, several preprocessing (/PREP7) commands are available to help you create a good mesh on the selected region:
610
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Element internal angles SHPP,MODIFY to reset the shape parameter limits. Specify input values of 11~14 and 17~18 depending on the element type. Boundary node distribu- Boundary nodes require special attention. Use the LESIZE command tion to space the nodes as uniformly as possible without disturbing other characteristics of the mesh. Refining Other AREFINE, EREFINE, KREFINE, LREFINE, NREFINE, ACLEAR, AMESH, KSCON, LCCALC, MSHMID Note For rezoning, ACLEAR applies only to the area generated via the AREMESH command.
The commands are available at any point after issuing a REMESH,START command and before issuing a REMESH,FINISH command. Nodes at which force or isolated displacements are applied remain during remeshing, as do nodes at the beginning or ending point of distributed displacements, pressures, or contact/target boundaries. The new elements have the same attributes as the old elements, such as element type, material, real constant, and element coordinate system. ANSYS rotates the new nodes to the same angles as the old nodes in the region or on the boundary, as the case may be. After creating the new mesh, verify that the new elements cover the entire selected region and are compatible with neighboring regions. (If another region requires remeshing, you can do so, but do not issue another REMESH,START command. For more information, see Section 6.5.1.2: Remeshing Multiple Regions at the Same Substep.)
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
611
612
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
200 1
) ('
3 3 3
S T E P
O P T I O N S . . . . . . . . . . . . . . . . . . 1 1.0000 ON 10 100 5 50 15 NO
LOAD STEP NUMBER. . . . . . . . . . . . . . TIME AT END OF THE LOAD STEP. . . . . . . . AUTOMATIC TIME STEPPING . . . . . . . . . . INITIAL NUMBER OF SUBSTEPS . . . . . . . MAXIMUM NUMBER OF SUBSTEPS . . . . . . . MINIMUM NUMBER OF SUBSTEPS . . . . . . . MAXIMUM NUMBER OF SUBSTEPS FOR MAPSOLVE. MAXIMUM NUMBER OF EQUILIBRIUM ITERATIONS. . STEP CHANGE BOUNDARY CONDITIONS . . . . . .
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
613
Mapping Substeps The number of substeps used for mapping appears as follows:
*** LOAD STEP 1 *** TIME = 0.399110 SUBSTEP 10 COMPLETED. REBALANCE FACTOR = CUM ITER = 1.00000 101
*** ANSYS BINARY FILE STATISTICS BUFFER SIZE USED= 16384 0.375 MB WRITTEN ON ELEMENT SAVED DATA FILE: RznExample.esav 0.125 MB WRITTEN ON ASSEMBLED MATRIX FILE: RznExample.full 0.375 MB WRITTEN ON RESULTS FILE: RznExample.rst MAPSOLVE IS DONE SUCCESSFULLY IN 3 SUBSTEPS FOR MANUAL REZONING.
Monitor File The 6th and 7th columns of the monitor file indicate the rebalance factor (rather than the time) for each mapping substep, as shown:
SOLUTION HISTORY INFORMATION FOR JOB: RznExample.mntr ANSYS RELEASE 9.0 13:06:16 09/20/2004 LOAD STEP SUBSTEP NO. NO. TOTL ATTMP ITER ITER INCREMENT REBALANCE FACTOR 0.35000 0.35000 0.30000 TOTAL REBALANCE FACTOR 0.35000 0.70000 1.0000 VARIAB 1 MONITOR CPU 5.4300 8.0600 11.260 VARIAB 2 MONITOR MxDs -.64291 -.81383 -.93615 VARIAB 3 MONITOR MxPl 0.78886E-30 0.78886E-30 0.78886E-30
1 1 1
8 9 10
2 1 1
7 4 4
93 97 101
Although multiple substeps may be necessary to balance all residuals, ANSYS generates the restart file and saves the result in a results file for only the last converged mapping substep. (Only the last substep gives the balanced solution.) ANSYS ignores any preexisting output specifications (set via OUTRES or RESCONTROL commands, for example).
614
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 6.7: Repeating the Rezoning Process if Necessary After the MAPSOLVE command has executed, the new mesh may be somewhat distorted, and the distortion may be even more significant if the residual forces are large. In such a case, more careful region selection and better remeshing are necessary.
The maximum number of .rdb files and .rst files is 99. The .ldhi load history file contains information for all models created as a result of multiple rezonings.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
615
List Results Files Summary After entering the /POST1 postprocessor, it is helpful to issue the SET,LIST command. For rezoning, the output list generated by the command includes an additional column indicating which postprocessing data file contains each saved substep of each load step. Further, to emphasize the change of file, the first use of the new file is flagged with the word rezone. Following is an example output list from a SET,LIST command:
***** INDEX OF DATA SETS ON RESULTS FILE ***** SET TIME/FREQ LOAD STEP SUBSTEP CUMULATIVE 1 0.1000000 1 1 2 2 0.2000000 1 2 4 3 0.3500000 1 3 6 FILE SUFFIX rst rst rst
616
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
rezone
The output from a SET,LIST command is also useful for simply determining what information is available. For non-rezoning runs, for example, you can select substeps for further study by load step and substep number, time, or set number. Although ANSYS creates multiple postprocessing data files for rezoning, you can consider them a single file for /POST1 processing (assuming that the appropriate jobname is already specified) because there is no need to access individual files directly. ANSYS automatically detects the specific file needed according to the SET command issued, after which most of the usual postprocessing command capability (PLESOL, PRNSOL, etc.) is available. Animation Animation for rezoning is available via the ANDATA macro. Assuming that the appropriate jobname is already specified, the program proceeds from one postprocessing data file to the next automatically, using the data in each to generate the animation. During the macro's initial scan, ANSYS stores the view location and size of every saved substep. The program then combines the information to provide one fixed view (by internally setting the /FOCUS and /DIST commands to fixed values).
Only the output information from the requested file is available for output at any given time because elements and nodes that exist in one file do not always exist in another file.
617
Chapter 6: Manual Rezoning ial is unstable, you can check the strain values, stress states, and convergence patterns. A sudden convergence difficulty could mean that material is no longer stable. ANSYS also issues a warning at the beginning of the solution indicating when hyperelastic material could be unstable, although such a warning is very preliminary and applies only to cases involving simple stress states. Unstable Structures For some geometries and loads, a deformation may cause a "snap-through," or local buckling. Such behavior can also manifest itself as a mesh distortion, but one that rezoning cannot repair. The effect is usually easy to detect by closely checking the deformed region or the load-versustime (displacement) curve. Numerical Instabilities A condition of numerical instability can occur when a problem is nearly overconstrained. The constraints can include kinematic constraints such as applied displacements, CP, and CE, and volumetric constraints introduced by fully incompressible material in mixed u-P elements. In many cases, numerical instability is apparent even in the early stages of an analysis. For a successful rezoning, the new mesh must be of a higher quality than the old mesh. If the new mesh is not better than the original mesh, rezoning cannot improve convergence, and can even worsen convergence problems if the new mesh is worse.
618
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
619
et,4,169 et,5,172 keyopt,5,9,0 keyopt,5,10,1 tb,hyper,1,,2,mooney tbdata,1,c10,c01,dd mp,mu,2,0.0 r,3 r,4 /com define geometry k,1,xc,yc k,2,xc,yc,yc k,3,xc-rc,yc k,4,0.0,0.0 k,5,2*rc,0.0 rect,0,b,0,h circle,1,rc,2,3,360,1 /pnum,line,1 lplot l,4,5 lplot aplot /com create solid elements esize,el mat,1 type,1 real,1 amesh,1 /com generate the 1st contact pair mat,2 real,3 type,2 esize,h lmesh,5,7 *get,PilotID,node,,num,max PilotID=PilotID+1 nkpt,PilotID,1 tshap, pilo e,PilotID type,3 lsel,,,,2,3 nsll,,1 esln,,0 esurf alls /com generate the 2nd contact pair real,4 type,4 lmesh,8 lsel,,,,8 esll esurf,,reverse alls type,5 lsel,,,,1,2 nsll,,1 esln,,0 esurf alls
620
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
! map solutions
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
621
622
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
This chapter describes cyclic symmetry concepts and the process involved in a cyclic symmetry analysis. The following pages cover these topics: Section 7.1: Understanding Cyclic Symmetry Analysis Section 7.2: Cyclic Modeling Section 7.3: Solving a Cyclic Symmetry Analysis Section 7.4: Postprocessing a Cyclic Symmetry Analysis Section 7.5: Sample Modal Cyclic Symmetry Analysis Section 7.6: Sample Buckling Cyclic Symmetry Analysis
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
For example, by analyzing a single 10 sector of a 36-blade turbine wheel assembly, you can obtain the complete 360 model solution via simple postprocessing calculations. Using twice the usual number of degrees of freedom (DOFs) in this case, the single sector represents a 1/18th part of the model.
Depending upon the type of cyclic symmetry analysis that you want to perform and your specific needs, it may be necessary to issue other ANSYS commands. For example: In a prestressed modal cyclic symmetry analysis, you must issue the PSTRES,ON command during the static portion of the analysis to apply the prestress effects. During postprocessing, you may want to issue the ANCYC command to apply a traveling wave animation to your cyclic model.
The sections of this document describing various cyclic symmetry analyses mention such commands as necessary. For more information, see Section 7.3: Solving a Cyclic Symmetry Analysis. 72
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Define a basic sector model that is cyclically symmetric in any global or user-defined cylindrical coordinate system. (For information about creating a model, see the ANSYS Modeling and Meshing Guide.) The angle (in degrees) spanned by the basic sector should be such that N = 360, where N is an integer. The basic sector can consist of meshed or unmeshed geometry. ANSYS allows user-defined coupling and constraint equations on nodes that are not on the low or high edges of the cyclic sector. (For more information about the cyclic sector's low and high edges, see Section 7.2.2: Edge Component Pairs.) If meshed, the basic sector may have matching (as shown in Figure 7.3: Basic Sector Definition) or unmatched lower and higher angle edges. Matching means that corresponding nodes exist on each edge, offset geometrically by the sector angle . The edges may be of any shape and need not be "flat" in cylindrical coordinate space. For more information, see Section 7.2.2.1: Identical vs. Dissimilar Edge Node Patterns.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
73
Z Y
a Sector ngle
X CSYS = 1
(potentially unmatched node patterns) The name value is the default (CYCLIC) or specified root name, and xx is the component pair ID number (sequential, starting at 01).
74
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 7.3: Solving a Cyclic Symmetry Analysis To ensure the most accurate solution, it is preferable to have identical node and element face patterns on the low and high edges of the cyclic sector. If you issue the CYCLIC command before meshing the cyclic sector (via the AMESH or VMESH command only), the mesh will, if possible, have identical node and element face patterns on the low and high edges. ANSYS allows dissimilar node patterns on the low and high edges of the cyclic sector, useful when you have only finite-element meshes for your model but not the geometry data necessary to remesh it to obtain identical node patterns. In such cases, it is possible to obtain solution (SOLVE) results, although perhaps at the expense of accuracy. A warning message appears because results may be degraded near the cyclic sector edges.
If you specify edge components and cyclic quantities manually, you must verify the two conditions yourself.
75
Chapter 7: Cyclic Symmetry Analysis Section 7.3.2: Supported Analysis Types Section 7.3.3: Solving a Static Cyclic Symmetry Analysis Section 7.3.4: Solving a Modal Cyclic Symmetry Analysis Section 7.3.5: Solving a Linear Buckling Cyclic Symmetry Analysis Section 7.3.6: Solving a Magnetic Cyclic Symmetry Analysis Section 7.3.7: Database Considerations After Obtaining the Solution Section 7.3.8: Model Verification (Solution)
76
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Figure 7.4 Connecting Low and High Edges of Basic and Duplicate Sectors
sin k cos k
UA Low B U Low
(71)
k = Harmonic index -- (0,1,2,,N / 2) when N is even, (0,1,2,,(N-1) / 2) when N is odd. (N is an integer representing the number of sectors in 360.) = Sector angle (2 / N) U = Vector of displacement and rotational degrees of freedom UALow represents the basic sector low side edge UAHigh represents the basic sector high side edge UBLow represents the duplicate sector low side edge UBHigh represents the duplicate sector high side edge The equation is a function of harmonic index k generating different sets of constraint equations for each harmonic index. Therefore, for each harmonic index solution requested, ANSYS creates the appropriate constraint equations automatically, connects the edge-component nodes on basic sector A and duplicate sector B, and solves. Constraint equations that tie together the low and high edges of your model are generated from the low- and high-edge components, and nowhere else. You should verify that automatically detected components are in the correct locations and that you are able to account for all components; to do so, you can list (CMLIST) or plot (CMPLOT) the components.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
77
Surface Loads
78
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 7.3: Solving a Cyclic Symmetry Analysis If a SECTOR-varying table exists on an entity-BC combination (for example, node 17 FZ) and you enter another value for the same entity-BC combination (perhaps specifying a different sector on which to apply the load), the following conditions occur: ANSYS modifies the existing table to accommodate the new specification. The table cannot reference any other independent variable (for example, TEMP). You must manually define any BC table requiring more than one independent variable.
If a table exists for an entity-BC combination and you enter another table for the same entity-BC combination, but the table does not reference SECTOR, the new table reference replaces the existing one. During preprocessing, all tabular BCs referencing SECTOR list table names only. During solution or postprocessing, all tabular BCs referencing SECTOR list per sector as they would be applied when solving (SOLVE). Any tabular data X, Y, or Z variation applied to a cyclic model may not be applied in the same manner in which such a variation would occur for an equivalent full model (the exception being a variation in the axial direction). For example, if a tabular value of a nodal force is applied as function of the tabular variable Y, ANSYS applies it to the designated cyclic sectors using values based upon the Y values of the basic sector only. A given high-edge node is usually the same location in the structure as the corresponding low-edge node of the adjacent sector; therefore, it is necessary to apply constraints consistently. ANSYS can trap inconsistent constraints only for matched-node cases; however, for tabular BCs, you must perform the consistency verification yourself. Because inconsistent constraints are impossible to satisfy if the solution remains cyclic, the results can be unpredictable. Because edge nodes are rotated into the cyclic coordinate system during solution, any applied displacements or forces on sector edges will be in the cyclic coordinate system.
For DOF constraints, force loads, and body forces, any non-tabular load is cyclic. Any tabular load that does not reference the variable SECTOR is cyclic. ANSYS assumes any tabular load referencing SECTOR to be non-cyclic (although it could be identical on all sectors).
When combined with other independent variables, SECTOR can be in positions 1, 2, or 3 only. Other independent variables operate as they do for non-cyclic data. (Think of X, Y, and Z as ghost coordinates, behaving as though all sectors have been modeled with actual nodes and elements.)
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
79
BCs applied by graphical picking ignore the current CYCOPT,LDSECT setting when cyclic expansion (/CYCEXPAND) is active. When cyclic expansion is not active, BCs are applied to the sector specified by CYCOPT,LDSECT (or all sectors if CYCOPT,LDSECT,ALL). The mathematical characteristics of a cyclic symmetry solution require that displacement BCs (D, DK, DL, DA) apply to all sectors; however, the value of a constrained displacement can vary between sectors.
710
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 7.3: Solving a Cyclic Symmetry Analysis For cyclically symmetric loading, support is available for linear static and large-deflection nonlinear static solution options. For non-cyclically symmetric loading, ANSYS supports linear static analysis only. For more information, see Section 7.3.3: Solving a Static Cyclic Symmetry Analysis. ANSYS also supports static analyses involving magnetic cyclic symmetry. For more information, see Section 7.3.6: Solving a Magnetic Cyclic Symmetry Analysis. Modal analysis ANSYS supports modal analyses with or without prestress effects. In the case of a prestressed modal analysis, the prestress state of the sector may be from a linear static or large-deflection nonlinear static analysis. For more information, see Section 7.3.4.2: Solving a Stress-Free Modal Analysis and Section 7.3.4.3: Solving a Prestressed Modal Analysis. For a large-deflection prestressed modal cyclic symmetry analysis, partial solution steps employing the PSOLVE command are necessary; however, no separate expansion (via PSOLVE,EIGEXP) is needed because ANSYS expands the eigenvectors out to the results file automatically. Alternatively, you can simply issue the SOLVE command; in this case, ANSYS performs the partial solution step (via PSOLVE,EIGLANB) automatically and expands the eigenvectors out to the results file. For more information, see Section 7.3.4.4: Solving a Large-Deflection Prestressed Modal Analysis. Linear buckling analysis Support is available for linear eigenvalue buckling analyses with prestress effects. ANSYS recommends the Block Lanczos mode-extraction method (via BUCOPT,LANB). You can also employ the subspace option (via BUCOPT,SUBS); however, extracting negative buckling loads may be more difficult. For more information, see Section 7.3.5: Solving a Linear Buckling Cyclic Symmetry Analysis, and Buckling Analysis in the ANSYS Structural Analysis Guide.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
711
W ` b 5 7 3 3 # a Y 3 U 99 V ` 8 7 3 T # ( ' 4 # S ` 00 S X ` W 7 $ 3 3 # # 3 0 # ( ! $ % @( 3 # & # 3 0 # ( ' 3 # U @ YR U 8 TR X W V U S 7 3 3 # ( ' 3 # Q P I G F F 5H5E
9 @ 8 7 # 6 6 3 $ 0 ( # 5 4 $ 3 3 1 # 2# 0# ( ' # D9A A C B ) # ( ' ! %# " # & # $ $ $ !
712
This section describes harmonic indices in relation to modal cyclic symmetry analyses and provides information necessary for solving several types of modal analyses. The following pages cover these topics:
Figure 7.6 Process Flow for a Static Cyclic Symmetry Analysis (Non-Cyclic Loading)
For non-cyclically symmetric loading, ANSYS supports linear static analysis only. The following flowchart illustrates the process involved in a static cyclic analysis with non-cyclic loading.
Only a nodal-diameter zero solution is valid for a static solution with cyclic loading.
Figure 7.5 Process Flow for a Static Cyclic Symmetry Analysis (Cyclic Loading)
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 7.3: Solving a Cyclic Symmetry Analysis Section 7.3.4.3: Solving a Prestressed Modal Analysis Section 7.3.4.4: Solving a Large-Deflection Prestressed Modal Analysis
For a complicated structure exhibiting cyclic symmetry (for example, a turbine wheel), lines of zero displacement may not be observable in a mode shape. The harmonic index is an integer that determines the variation in the value of a single DOF at points spaced at a circumferential angle equal to the sector angle. For a harmonic index equal to nodal diameter d, the function cos(d*) describes the variation. This definition allows a varying number of waves to exist around the circumference for a given harmonic index, provided that the DOF at points separated by the sector angle vary by cos(d*). For example, a harmonic index of 0 and a 60 sector produce modes with 0, 6, 12, ... , 6N waves around the circumference. The nodal diameter is the same as the harmonic index in only some cases. The solution of a given harmonic index may contain modes of more than one nodal diameter. The following equation represents the relationship between the harmonic index k and nodal diameter d for a model consisting of N sectors:
d = mN k
where m = 0, 1, 2, 3, ...,
(72)
For example, if a model has seven sectors (N = 7) and the specified harmonic index k = 2, ANSYS solves for nodal diameters 2, 5, 9, 12, 16, 19, 23, .... The following table illustrates Equation 72, showing how the harmonic index, nodal diameter and number of sectors relate to one another:
Harmonic Index (k) 0 0 N Nodal Diameter (d) N 2N 2N ...
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
713
Note To avoid confusion, be aware that in some references mode refers to harmonic index as defined here and nodal diameter describes the actual number of observable waves around the structure. Harmonic Index in an Electromagnetic Analysis For electromagnetic analyses, only the EVEN and ODD harmonic index settings are valid (for symmetric and antisymmetric solutions, respectively).
Figure 7.8 Process Flow for a Stress-Free Modal Cyclic Symmetry Analysis
Stress-Free Modal
SOLUTION Define modal analysis: ANTYPE, MODAL POST1 Define modal options: MODOPT Define cyclic options: CYCOPT Solve modal analysis: SOLVE Read results: SET Calculate max/min results: CYCPHASE Display results on full model: /CYCEXPAND
A modal cyclic symmetry analysis allows only cyclically symmetric applied boundary constraints and applied loads. Applied loads are not used in a modal analysis (which is a free-vibration problem). Eigensolutions are performed, looping on the number of harmonic indices specified (via the CYCOPT command) at each load step.
Figure 7.9 Process Flow for a Prestressed Modal Cyclic Symmetry Analysis
Prestressed Modal PREP7 Define the basic sector Specify cyclic symmetry: CYCLIC
SOLUTION Define modal analysis: ANTYPE, MODAL Define modal options: MODOPT Define cyclic options: CYCOPT
SOLUTION
Define static loads to induce prestress POST1 Include prestress effects: PSTRES, ON Read results: SET Calculate max/min results: CYCPHASE Display results on full model: /CYCEXPAND
The modal cyclic symmetry solution occurs after the static cyclic symmetry solution. The modal solution uses the same low- and high-edge components defined in the static cyclic analysis stage (via the CYCLIC command). The analysis yields the eigenvectors of the structure in the prestressed state.
The following flowchart illustrates both methods for solving a large-deflection prestressed modal cyclic symmetry analysis.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
715
Figure 7.10 Process Flow for a Large-Deflection Prestressed Modal Cyclic Symmetry Analysis
5 & D @ D 1 C C 8 C ( )GEF77'71 ( 771 B A 8 6 1 2 1 ( & 9@ 77 51 4 3 '0 )'%
Large-Deflection Prestressed Modal (PSOLVE Method) Same as above, but the following two commands replace the SOLVE command in the solution step: SOLUTION Update geometric coordinates: UPCOORD,1.0,ON Solve modal analysis: PSOLVE, EIGLANB
Solving a large-deflection prestressed modal cyclic symmetry analysis is similar to solving a prestressed modal cyclic analysis in that the modal solution requires a linear static cyclic solution. The differences are as follows: The large-deflection key (via the NLGEOM command) in the static cyclic analysis stage The partial solutions logic (via the PSOLVE command) in the modal cyclic analysis stage.
716
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
p o n m l k i Ggd'rj)hGg 7 e e d '7' )77 7 f l p ~ dow 7 e e d '7' )7'd } 'w f idopdn k o 7e ) r ) ''77 f q i"do | j | k 77' r 'd t t d 7 f e q t iw l 7e r 7u ' 7'x f e v "d
$ #!" u p"x v "w y a a g X P I W W 7W S 'I P 7GW 7I ` S 'I ` b 77 e X7 sR I h )rph s q h i g I f f W 'c ` S 7c G eQX X c dc QP 'I a X X b ` X W W V U I S 'Y S 'I G QX 777T I QR P7H I v sh "t v a i rt y x w v u g 7 QW W c '7'd QX S V S I QR 7H e V R V W P I v dph w h i g W R 77' QY S b d eQX X c I QR 7H Y X P I W 7I ` S 'I ` b I 7'7 QR W W X Y G7'7Y d QX 7V S I QR 7IH S W V e S W P
x q a g R e W ') QY S 'Y d QX S V S 7I W 'I ` S W7I ` b W W R X I I e Q ' QY S ' eI P ' 77 `)V R 'V S U
Figure 7.11 Process Flow for a Linear Buckling Cyclic Symmetry Analysis
You can specify the SET command's ORDER option to sort the harmonic index results in ascending order of buckling load multipliers.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
717
Chapter 7: Cyclic Symmetry Analysis In Section 7.7: Sample Magnetic Cyclic Symmetry Analysis, the ODD model is smaller and thus more practical. For some problems, depending on geometry and excitation, EVEN symmetry may be more practical. ANSYS supports both ODD and EVEN cyclic symmetry. In a more general case, the mesh on the low and high end may be different. In this case, more general cyclic symmetry conditions can be established by interpolation on the pertinent faces. ANSYS handles this process automatically via the CYCLIC command. ANSYS requires node-matching only for SOLID117 magnetic edge elements; however, you will typically obtain greater accuracy using node-matching for any element type. The geometry of the low- and high-end cyclic faces may be more general than a simple plane surface. Thus, for example, a skewed slot of an electric machine may constitute the cyclic sector modeled. Section 7.2: Cyclic Modeling discusses cyclic modeling in detail. The following restrictions apply to a magnetic cyclic symmetry analysis: For SOLID117 elements, the low and high edges must have node-matching conditions. Cyclic conditions can be restricted to specific degrees of freedom (DOFs) via the DOF option. DOF restrictions may be useful, for example, in cases involving circuit-/voltage-fed solenoidal edge elements (SOLID117 with KEYOPT(1) = 5 or 6). Multiphysics coupling must use the same EVEN/ODD condition. Circuit coupling is not supported for cyclic symmetry except solenoidal SOLID97 and SOLID117. Harmonic and transient analyses are not supported. By default, plotting displays the partial solution only. To see the full model solution, issue the /CYCEXPAND command. For magnetic cyclic symmetry, the /CYCEXPAND command produces contour plots but not vector plots.
Figure 7.5: Process Flow for a Static Cyclic Symmetry Analysis (Cyclic Loading) shows the process for a cyclic symmetry analysis. The process is virtually identical for a magnetic cyclic symmetry analysis; simply disregard the step for a large-deflection solution. Magnetic cyclic boundary conditions can be applied to the following element types: Nodal magnetic vector potential elements: PLANE13, PLANE53, SOLID97 Magnetic edge elements, classical or solenoidal: SOLID117 Magnetic scalar potential elements: SOLID5, SOLID96, SOLID98 Electrostatic elements: PLANE121, SOLID122, SOLID123
Section 7.4: Postprocessing a Cyclic Symmetry Analysis analysis model; if not, try to determine the reason for the discrepancy. The following extracts (from a batch output file or an interactive output window) are typical:
NUMBER OF CONSTRAINT EQUATIONS GENERATED = 124 (USING THE MATCHED NODES ALGORITHM -MAX NODE LOCATION ERROR NEAR ZERO)
Meaning: 124 constraint equations are created, used, and then deleted to enforce cyclic symmetry conditions between the low- and high-edge nodes. Every node on the low edge is precisely matched to a corresponding node on the high edge, representing the best possible situation.
NUMBER OF CONSTRAINT EQUATIONS GENERATED = 124 (USING THE MATCHED NODES ALGORITHM -MAX NODE LOCATION ERROR = 0.73906E-02)
Meaning: 124 constraint equations are created, used, and then deleted to enforce cyclic symmetry conditions between the low- and high-edge nodes. Every node on the low edge is matched to a corresponding node on the high edge within the current tolerance setting, but not all matches are precise. The largest position mismatch is 0.0073906.
NUMBER OF CONSTRAINT EQUATIONS GENERATED = (USING THE UNMATCHED NODES ALGORITHM) 504
Meaning: 504 constraint equations are created, used, and then deleted to enforce cyclic symmetry conditions between the low- and high-edge nodes. At least one node on the low edge does not match any node on the high edge within the current tolerance setting, so ANSYS uses the unmatched nodes algorithm.
If you exited the ANSYS program after obtaining the cyclic symmetry solution, use the database (file.db) that you saved for postprocessing. For more information, see Section 7.3.7: Database Considerations After Obtaining the Solution.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
719
Chapter 7: Cyclic Symmetry Analysis To transform the real and imaginary cyclic symmetry solution results to the actual structure solution, three postprocessing (/POST1) commands are available: /CYCEXPAND EXPAND CYCPHASE
For information about /CYCEXPAND and EXPAND command usage, see Section 7.4.2: Expanding the Cyclic Symmetry Solution. For information about CYCPHASE command usage, see Section 7.4.3: Phase Sweep of Repeated Eigenvector Shapes.
(73)
UA = Basic sector solution UB = Duplicate sector solution j = Sector number for response expansion -- j = 1,2,3,,N k = Harmonic index -- (0,1,2,,N / 2) when N is even, (0,1,2,,(N-1) / 2) when N is odd. (N is an integer representing the number of sectors in 360.) = Sector angle (2/N) The equation applies when expanding the static cyclic solution as well as the modal cyclic eigenvector solution. If cyclic expansion via the /CYCEXPAND command is active for a static cyclic symmetry analysis, the PLNSOL and PRNSOL commands have summation of all required harmonic index solutions by default. (You can override the default behavior if necessary.) A SET,LIST command lists the range of load step numbers in the group containing each solution. Each load step post data header contains the first, last, and count of load steps from the given SOLVE command, as shown:
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
720
SET 1 2 3 4 5 6 ...
The SET command establishes which SOLVE load step group should display. Summation via /CYCEXPAND is automatic (although you can override the default behavior). Plots and printed output show the summation status. Accumulation occurs at the first applicable PLNSOL or PRNSOL command. After accumulation, the last load step number of the current group becomes the new current load step number.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
721
U = c1 * Ui + c 2 * Ui+1
where, c1 and c2 = Arbitrary constants Ui and Ui+1 = Eigenvectors corresponding to fi and fi+1, respectively
(74)
The orientation of the combined mode shape U will be along a nodal diametral line that is neither along that of Ui nor Ui+1. Because the full structure may have stress-raising features (such as bolt holes), determining the eigenvector orientation that causes the most severe stresses, strains, or displacements on the structure or assembly is critical. To determine the peak value of stress, strain or displacement in the full structure or assembly, it is necessary to calculate U at all possible angular orientations in the range of 0 through 360. In the general postprocessor, the CYCPHASE command performs the computational task. Because c1 and c2 are arbitrary constants, the CYCPHASE calculation rewrites Equation 74 as follows:
(75)
Using the cyclic symmetry expansion of Equation 73 in Equation 75, the simplified phase-sweep equation that operates on the cyclic sector solution (rather on the computation-intensive full-structure expression in Equation 75) is:
(76)
722
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 7.5: Sample Modal Cyclic Symmetry Analysis A phase sweep using the CYCPHASE command provides information about the peak values of stress, strain and/or displacement components and the corresponding phase angle values. Using the phase angle value further, you can expand the mode shape at that phase angle to construct the eigenvector shape that produces the peak stress, strain and/or displacement. The expansion expression with the phase angle used by the /CYCEXPAND command is:
(77)
To determine the eigenvector orientation that causes the highest equivalent stress, perform a phase sweep on the stress via the CYCPHASE,STRESS command. Obtain a summary of the phase sweep via the CYCPHASE,STAT command to determine the value of at which maximum equivalent stress occurred. You can shift the mode shape to that angle via the /CYCEXPAND,,PHASEANG command and plot the expanded mode shape via the PLNSOL,S,EQV command.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
723
724
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
The material properties for this analysis are as follows: Young's modulus (E) = 10e6 Poisson's ratio () = 0.3 Density = 1e-4 All applicable degrees of freedom are used for the cyclic symmetry edge-component pairs. The first six mode shapes for all applicable harmonic indices are requested.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
725
726
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
! STEP #7 ! List the cyclic status cyclic,status ! STEP #8 ! List the cyclic solution option settings cycopt,status ! STEP #9 ! Solve the modal cyclic symmetry analysis /solution solve ! STEP #10 ! Specify global cylindrical as the results coordinate system /post1 rsys,1 ! STEP #11 ! Read results for "load step 1 - substep 4 - harmonic index 0" set,1,4 ! STEP #12 ! Plot the tangential displacement contour plns,u,y ! STEP #13 ! Read results for "load step 13 - substep 1 - harmonic index 12" set,13,1 ! STEP #14 ! Plot the tangential displacement contour plns,u,y ! STEP #15 ! Read results for "load step 2 - substep 5 - harmonic index 1" set,2,5 ! STEP #16 ! Plot the tangential displacement contour plns,u,y
727
728
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
To view a traveling wave animation of your model, issue the ANCYC,24,,0.1 command. For more information, see Section 7.4.2.1.1: Applying a Traveling Wave Animation to the Cyclic Model.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
729
730
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
The material properties for this analysis are as follows: Poisson's ratio () = 0.3 Density = 1e-4 Coefficient of thermal expansion () = 5e-5 Young's modulus (E) = 10e6 (at 0 F) Youngs modulus (E) = 4e6 (at 600 F) The Youngs modulus value varies linearly between 0 and 600 F. All applicable degrees of freedom (DOFs) are used for the cyclic symmetry edge-component pairs. The first six mode shapes for all applicable harmonic indices are requested.
731
732
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
733
9. 10.
Specify buckling analysis options Specify mode expansion options. Solve the buckling analysis.
Read the results from the smallest load factor. (This should correspond to the FINISH smallest frequency.) /POST1 SET, FIRST , , , , , , , ORDER Plot the buckled mode shape. ---This step completes the sample buckling cyclic symmetry analysis. Your results should match those shown in Figure 7.14: Sample Buckling Cyclic Symmetry Analysis Results. PLNSOL, U, SUM
15.
734
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
735
Use the /PREP7 portion of the previous input file (buck_cyc_sym.inp) to construct your model. After defining the model parameters--but before activating cyclic symmetry--define the arrays and the programming operations, as follows:
*dim,Tstrut,array,10 *dim,Tfact,array,10 *do,I,1,10 /prep7 *if,I,eq,1,then Tstrut(I)=100 *else Tstrut(I)=Tstrut(I-1)*Tfact(I-1) cyclic,undouble *endif asel,,real,,2 bfa,all,temp,Tstrut(I) allsel
After you have defined the iterative parameters, proceed with the cyclic symmetry portion of the analysis:
cyclic /cycexpand,,on eplot
736
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
ANSYS then plots the data to determine the critical strut temperature:
*dim,data,table,10,2 data(0,1)=1 data(0,2)=2 *do,I,1,10 data(I,0)=I data(I,1)=Tstrut(I) data(I,2)=Tfact(I) *enddo /AXLAB,X,Strut Temperature /AXLAB,Y,Load Factor /GROPT,DIVX,5 /GROPT,DIVY,5 /XRANGE,100,200 /YRANGE,0.9,1.4 /GTHK,CURVE,1 /GMARKER,1,3 *VPLOT,data(1,1),data(1,2)
The eigenvalues (frequencies) calculated for the buckling analysis represent the buckling load factors. The eigenvalues represent load factors for all applied loads. The iteration strategy yields the following results:
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
737
Figure 7.16 Buckling Cyclic Symmetry Results: Load Factor Results Graph
738
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 7.7: Sample Magnetic Cyclic Symmetry Analysis In the full model, flux parallel boundary conditions can be formulated at the outer surface of the stator frame. If only phase A were excited, the magnetic flux would point in the y direction at x=0 plane; flux parallel condition could be formulated at the x=0 plane, allowing an analysis on a half model in the x>=0 space. Similarly, if only phase B were excited, the magnetic flux would have only x component on the y=0 plane; again, flux parallel could be applied to a half model in the y>=0 plane. Typically, however, both coils are excited, and no flux parallel conditions could be formulated over the x=0 or y=0 planes. However, due to the cyclic nature of the field, the field pattern repeats itself after 180 degrees. In particular, on the y=0 plane: By(x) = By(-x) A similar pattern can be observed in Figure 7.18: Two-Phase Electric Machine Half Model, where the flux lines (equi vector potential lines) are plotted: Az(x) = - Az(-x) In this example, the field has a two pole pattern. In general, there are 2p poles; the repetition would take place after 180/p degrees.
"#
739
/title,Cyclic Symmetry Model for EMAG Analysis (Dual Coils with Iron Yoke) /com /com ***** Quarter Symmetry Model Expanded to Half Then to Full ***** /com /com /com /nopr /out,scratch !!! Setup Model Parameters
! ! ! ! !
Use for number of quarter sectors (i.e. 1 = 1 90deg sector, 2 = 2 sectors in 90deg) angle up to the end of first coil angle from coil1 to coil2 angle from beginning of coil2 to end of sector
740
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
*do,i,1,ncoil alpha1(i) = -alpha + (i-1)*(90/p) alpha2(i) = alpha + (i-1)*(90/p) *enddo ii=0 *do,i,1,p ii = ii + 1 current(ii) ii = ii + 1 current(ii) ii = ii + 1 current(ii) ii = ii + 1 current(ii) *enddo
= i2 = i1 = -i2 = -i1
/prep7
ET,1,13,4
!!! Setup Model using Parameters PCIRC,r1, ,0,alpha, PCIRC,r1, ,0,beta PCIRC,r1, ,0,gamma PCIRC,r2, ,0,alpha PCIRC,r2, ,0,beta PCIRC,r2, ,0,gamma PCIRC,r3, ,0,alpha PCIRC,r3, ,0,beta PCIRC,r3, ,0,gamma PCIRC,r4, ,0,alpha PCIRC,r4, ,0,beta PCIRC,r4, ,0,gamma PCIRC,r5, ,0,alpha PCIRC,r5, ,0,beta PCIRC,r5, ,0,gamma AOVLAP,ALL !!! Setup Material Properties ! IRON MP,MURX,1,1000 MP,RSVX,1,9.579E-8 ! AL MP,MURX,2,1 MP,RSVX,2,2.65E-8
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
741
! Copper MP,MURX,3,1 MP,RSVX,3,1.74E-8 ! Air MP,MURX,4,1 MP,RSVX,4,0 !!! Setup Components and Atributes ! Iron Core CSYS,1 ASEL,S,LOC,X,0,r1 CM,Inner_Iron,AREA AATT,1,,1, ! Al Core ASEL,S,LOC,X,r1,r2 CM,Outer_AL,AREA AATT,2,,1, ! Air Gap ASEL,S,LOC,X,r2,r3 CM,AIR,AREA AATT,4,,1 ! Coil 1 ASEL,S,LOC,X,r3,r4 ASEL,R,LOC,Y,0,alpha CM,COIL1,AREA AATT,3,,1 ! Coil 2 ASEL,S,LOC,X,r3,r4 ASEL,R,LOC,Y,beta,gamma CM,COIL2,AREA AATT,3,,1 ! Iron Yoke ASEL,S,LOC,X,r3,r4 ASEL,R,LOC,Y,alpha,beta ASEL,A,LOC,X,r4,r5 CM,YOKE,AREA AATT,1,,1 ALLSEL CSYS,0 !!! Setup and Mesh Model MSHKEY,1 CSYS,1 LSEL,S,LOC,Y,0 LSEL,A,LOC,Y,gamma LESIZE,ALL,,,6,,1,,,1, CMSEL,S,Inner_Iron AMESH,ALL CMSEL,S,Outer_AL AMESH,ALL CMSEL,S,Air AMESH,ALL CMSEL,S,Coil1 AMESH,ALL CMSEL,S,Coil2 AMESH,ALL CMSEL,S,Yoke AMESH,ALL ALLSEL CSYS,0 !!! Reflect Model across X-axis !! Create HALF model from QUARTER model
742
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
arsym,x,all
! save half model for cyclic ! create full model reflecting on y axis
! Apply BFE Current loads to each coil *do,i,1,ncoil asel,s,loc,x,r3,r4 asel,r,loc,y,alpha1(i),alpha2(i) esla,s cm,coilname(i),element bfe,all,js,,,,current(i) *enddo csys,0 allsel cmsel,s,extnode d,all,az,0 d,all,temp,25 allsel FINISH /solu /out,scratch antype,static allsel solve FINISH /post1
!!! Plot Out Result Plots plvect,b,,,,VECT,ELEM,ON,0 FINISH parsav,all /clear,nostart resume,magtest,db parres,new
!! Delete Bottom half of model and all loading attatched to bottom nodes /prep7 allsel nummrg,all csys,1 nsel,s,loc,x,r5 D,all,az,0 ! AZ = 0 on outside nodes of arc D,all,temp,25 !! Define Coils on Half Model ! Coil 1 ASEL,S,LOC,X,r3,r4
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
743
cmsel,s,COIL1 bfe,all,js,,,,i2 cmsel,s,COIL2 bfe,all,js,,,,i1 cmsel,s,COIL3 bfe,all,js,,,,(-i2) !!! Apply cyclic - create cyclic model with two sectors
allsel csys,0 cyclic,2 /solution cycopt,hindex,odd solve FINISH /post1 /out ! Odd Symmetry for half model
744
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Figure 7.19 Vector Plot of Cyclic Flux Density (B) - Half Model
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
745
746
Chapter 8: Submodeling
Submodeling is a finite element technique used to get more accurate results in a region of your model. Often in finite element analysis, the finite element mesh may be too coarse to produce satisfactory results in a region of interest, such as a stress concentration region in a stress analysis (see Figure 8.1: Submodeling of a Pulley (a). The results away from this region, however, may be adequate. To obtain more accurate results in such a region, you have two options: (a) reanalyze the entire model with greater mesh refinement, or (b) generate an independent, more finely meshed model of only the region of interest and analyze it. Obviously, option (a) can be time-consuming and costly (depending on the size of the overall model). Option (b) is the submodeling technique (see Figure 8.1: Submodeling of a Pulley (b).
Submodeling of a pulley hub and spokes: (a) coarse model, (b) submodel shown superimposed over coarse model Submodeling is also known as the cut-boundary displacement method or the specified boundary displacement method. The cut boundary is the boundary of the submodel which represents a cut through the coarse model. Displacements calculated on the cut boundary of the coarse model are specified as boundary conditions for the submodel. Submodeling is based on St. Venant's principle, which states that if an actual distribution of forces is replaced by a statically equivalent system, the distribution of stress and strain is altered only near the regions of load application. The principle implies that stress concentration effects are localized around the concentration; therefore, if the boundaries of the submodel are far enough away from the stress concentration, reasonably accurate results can be calculated in the submodel. The ANSYS program does not restrict submodeling to structural (stress) analyses only. Submodeling can be used effectively in other disciplines as well. For example, in a magnetic field analysis, you can use submodeling to calculate more accurate magnetic forces in a region of interest.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Chapter 8: Submodeling Aside from the obvious benefit of giving you more accurate results in a region of your model, the submodeling technique has other advantages: It reduces, or even eliminates, the need for complicated transition regions in solid finite element models. It enables you to experiment with different designs for the region of interest (different fillet radii, for example). It helps you in demonstrating the adequacy of mesh refinements.
Some restrictions for the use of submodeling are: It is valid only for solid elements and shell elements. The principle behind submodeling assumes that the cut boundaries are far enough away from the stress concentration region. It is up to you to verify that this assumption is adequately satisfied.
82
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 8.1: Employing Submodeling Modeling -- In many cases, the coarse model need not include local details such as fillet radii, as shown in the following figure. However, the finite element mesh must be fine enough to produce a reasonably accurate degree of freedom solution. This is important because the results of the submodel are almost entirely based on interpolated degree of freedom results at the cut boundary.
Initial, coarse model may not need to include many details Files - Both the results file (Jobname.RST, Jobname.RMG, etc.) and the database file (Jobname.DB, containing the model geometry) are required from the coarse-model analysis. Be sure to save the database before going on to create the submodel. To save the database, use one of these methods: Command(s): SAVE GUI: Utility Menu> File> Save as Utility Menu> File> Save as Jobname.db
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
83
Chapter 8: Submodeling The location of the submodel (with respect to the global origin) must be the same as the corresponding portion of the coarse model, as shown in Figure 8.3: Submodel Superimposed Over Coarse Model.
Specify appropriate node rotations. Node rotation angles on cut boundary nodes should not be changed after they have been written to the node file in interpolation step 1 (see Section 8.1.3: Perform CutBoundary Interpolation). To specify node rotations, use one of these methods: Command(s): NROTAT GUI: Main Menu> Preprocessor> Modeling> Create> Nodes> Rotate Node CS> To Active CS Main Menu> Preprocessor> Modeling> Move/Modify> Rotate Node CS> To Active CS
Be aware that node rotation angles might be changed by application of nodal constraints [DSYM], by transfer of line constraints [SFL], or by transfer of area constraints [SFA], as well as by more obvious methods [NROTAT and NMODIF]. The presence or absence of node rotation angles in the coarse model has no effect upon the submodel. Loads and boundary conditions for the submodel will be covered in the next two steps.
84
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
At this point, it is worthwhile to discuss temperature interpolation. In an analysis with temperature-dependent material properties, or in a thermal-stress analysis, the temperature distribution must be the same between the coarse model and the submodel. For such cases, you must also interpolate the temperatures from the coarse model to all nodes in the submodel. To do this, select all submodel nodes and write them to a different file using NWRITE,Filename,Ext. Be sure to specify a file name; otherwise, your file of cut boundary nodes will be overwritten! Step 7 shows the command to do temperature interpolation. 2. Restore the full set of nodes, write the database to Jobname.DB, and leave PREP7. You must write the database to Jobname.DB because you need to continue with the submodel later. To restore the full set of nodes, use one of these methods: Command(s): ALLSEL GUI: Utility Menu> Select> Everything To write the database to Jobname.DB, use one of these methods: Command(s): SAVE GUI: Utility Menu> File> Save as Jobname.db 3. To do the cut boundary interpolation (and the temperature interpolation), the database must contain the geometry for the coarse model. Therefore, you must resume the database using one of the methods shown below, making sure to identify the name of the coarse-model database file: Command(s): RESUME GUI: Utility Menu> File> Resume from For example, if the jobname for the coarse-model analysis was COARSE, issue the command RESUME,COARSE,DB. 4. 5. 6. 7. Enter POST1, which is the general postprocessor (/POST1 or menu path Main Menu> General Postproc). Interpolation can only be performed in POST1. Point to the coarse results file (FILE or menu path Main Menu> General Postproc> Data & File Opts). Read in the desired set of data from the results file (SET or menu path Main Menu> General Postproc> Read Results> option). Initiate cut-boundary interpolation. To do so, use one of these methods: Command(s): CBDOF GUI: Main Menu> General Postproc> Submodeling> Interpolate DOF By default, the CBDOF command assumes that the cut boundary nodes are on file Jobname.NODE. The ANSYS program will then calculate the cut boundary DOF values and write them in the form of D commands to the file Jobname.CBDO. To do temperature interpolation, use one of these methods, being sure to identify the name of the file containing all submodel nodes: Command(s): BFINT
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
85
Chapter 8: Submodeling GUI: Main Menu> General Postproc> Submodeling> Interp Body Forc Interpolated temperatures are written in the form of BF commands to the file Jobname.BFIN. Note If real and imaginary data are involved, steps 6 and 7 will need to be done twice. First issue the SET command to get the real data, followed by the interpolation step [CBDOF and/or BFINT]. Then issue the SET command with the field set to 1 to get the imaginary data, and repeat the interpolation step, this time writing the interpolated imaginary data to a different file. 8. All interpolation work is now done, so leave POST1 [FINISH] and restore the submodel database (RESUME or menu path Utility Menu> File> Resume from). (Be sure to use the submodel database jobname.)
Section 8.1: Employing Submodeling Command(s): SOLVE GUI: Main Menu> Solution> Solve> Current LS Main Menu> Solution> Run FLOTRAN After the solution is obtained, leave SOLUTION [FINISH]. The overall data flow for submodeling (without temperature interpolation) is shown in Figure 8.6: Data Flow Diagram for Submodeling (Without Temperature Interpolation).
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
87
Chapter 8: Submodeling
Figure 8.6 Data Flow Diagram for Submodeling (Without Temperature Interpolation)
8.1.5. Verify the Distance Between the Cut Boundaries and the Stress Concentration
The final step is to verify that the cut boundaries of the submodel are far enough away from the concentration. You can do this by comparing results (stresses, magnetic flux density, etc.) along the cut boundaries with those along the corresponding locations of the coarse model. If the results are in good agreement, it indicates that proper cut boundaries have been chosen. Otherwise, you will need to recreate and reanalyze the submodel with different cut boundaries further away from the region of interest. An effective way to compare results is to obtain contour displays and path plots, as shown in Figure 8.7: Contour Plots to Compare Results and Figure 8.8: Path Plots to Compare Results.
88
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
89
Chapter 8: Submodeling
! Results are on coarse.rst (or rmg, etc.) FINISH ! Create submodel: /CLEAR /FILNAME,submod /PREP7 ... ... ...
! Clear the database (or exit ANSYS and re-enter) ! New jobname = submod ! Re-enter PREP7 ! Generate submodel
! Perform cut boundary NSEL,... ! NWRITE ! ALLSEL ! NWRITE,temps,node ! ! SAVE ! FINISH RESUME,coarse,db /POST1 FILE,coarse,rst SET,... CBDOF BFINT,temps,node ! ! ! ! ! ! ! ! ! !
interpolation: Select nodes on cut boundaries Write those nodes to submod.node Restore full sets of all entities Write all nodes to temps.node (for temperature interpolation) Submodel database file submod.db
FINISH RESUME /SOLU ANTYPE,... ... /INPUT,submod,cbdo /INPUT,submod,bfin DSYMM,... ACEL,... ... SOLVE FINISH /POST1 ... ... ... FINISH
Resume coarse model database (coarse.db) Enter POST1 Use coarse model results file Read in desired results data Reads cut boundary nodes from submod.node and writes D commands to submod.cbdo Reads all submodel nodes from temps.node and writes BF commands to submod.bfin (for temperature interpolation) End of interpolation
! Resume submodel database (submod.db) ! Enter SOLUTION ! Analysis type and options ! Cut boundary DOF specifications ! Interpolated temperature specifications ! Other loads and load step options
! Submodel solution
810
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
The procedure for shell-to-solid submodeling is essentially the same as that for solid-to-solid submodeling, with these exceptions: Shell-to-solid submodeling is activated by setting KSHS to 1 on the CBDOF command (Main Menu> General Postproc> Submodeling> Interpolate DOF) and the BFINT command (Main Menu> General Postproc> Submodeling> Interp Body Forc). This feature is not applicable to offsets used with SHELL91 (KEYOPT(11) 0), SHELL99 (KEYOPT(11) 0), or SHELL181 (SECOFFSET). Cut boundaries on the submodel are the end planes that are normal to the shell plane (see Figure 8.10: Node Rotations). Nodes on these cut boundaries are written to the node file [NWRITE] (Main Menu> Preprocessor> Modeling> Create> Nodes> Write Node File). To determine the DOF values at a cut boundary node [CBDOF], the program first projects the node onto the nearest element in the shell plane. The DOF values of this projected point are then calculated by interpolation and assigned to the corresponding node. Interpolated temperatures [BFINT] are calculated based on the average temperature at the midplane of the nearest shell element. Note The nodes on the cut boundary must lie within a distance of 0.75 times the average thickness of the nearest shell element, as shown in Figure 8.10: Node Rotations. That is, the submodel should be approximately centered on the coarse model. In a structural analysis, only translational displacements are calculated for the cut boundary nodes, but their values are based on both the translations and rotations of the projected point. Also, the node is rotated such that the nodal UY direction is always perpendicular to the shell plane, as shown in Figure 8.10: Node Rotations. A UY constraint will be calculated only for nodes that are within 10% of the average shell element thickness from the shell plane. This prevents over-constraint of the submodel in the transverse direction.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
811
Chapter 8: Submodeling
Node rotations: (a) before CBDOF command, (b) after CBDOF command The .CBDO file written by the CBDOF command will consist of two blocks: a block of NMODIF commands (indicating node rotation angles) and DDELE commands (to delete UY constraints) a block of D commands (to apply the interpolated DOF values).
The two blocks are separated by a /EOF command and a :CBnn label (where nn is the cumulative iteration number of the results set used). You must read in the .CBDO file in PREP7, because the NMODIF command is only valid in PREP7. To do so, enter the preprocessor, then use one of these methods: Command(s): /INPUT GUI: Utility Menu> File> Read Input from
Also, you will have to read in the .CBDO file twice, because the two blocks of commands are separated by a /EOF command. The second time you read in the file, use the LINE field on /INPUT ("Optional line number or label" in the GUI) to instruct the program to read the file starting with the :CBnn label, as shown below:
/PREP7! The .CBDO file must be read in PREP7 /INPUT,,cbdo ! Reads Jobname.cbdo up to the /EOF command /INPUT,,cbdo,,:cb1 ! Reads same file from the label :cb1
812
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 8.4: Where to Find Examples VM142 - Stress Concentration at a Hole in a Plate
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
813
814
Chapter 9: Substructuring
Substructuring is a procedure that condenses a group of finite elements into one element represented as a matrix. The single-matrix element is called a superelement. You can use a superelement in an analysis as you would any other ANSYS element type. The only difference is that you first create the superelement by performing a substructure generation analysis. Substructuring is available in the ANSYS Multiphysics, the ANSYS Mechanical, and the ANSYS Structural products. Substructuring reduces computer time and allows solution of very large problems with limited computer resources. Nonlinear analyses and analyses of structures containing repeated geometrical patterns are typical candidates for employing substructuring. In a nonlinear analysis, you can substructure the linear portion of the model so that the element matrices for that portion need not be recalculated at every equilibrium iteration. In a structure with repeated patterns (such as the four legs of a table), you can generate one superelement to represent the pattern and simply make copies of it at different locations, thereby saving a significant amount of computer time. You can also use substructuring on models with large rotations. For these models, ANSYS assumes each substructure to rotate about its mass center. In 3-D cases, the substructures contain three rigid body rotations and three translational motions. With a large rotation model, you do not constrain the substructure until the use pass because each substructure is treated as a single finite element that should allow rigid body motions. An example of reason (b) is an analysis that is too large for the computer in terms of wavefront size or disk space requirements. In such a situation, you can analyze the model in pieces, where each piece is a superelement small enough to fit on the computer.
Figure 9.1: Applicable Solvers in a Typical Substructuring Analysis shows the data flow for a complete substructure analysis and some of the files involved.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Chapter 9: Substructuring
The three passes are explained in detail next. Note Perform each step while using the same version of ANSYS. Do not go from one version of ANSYS to another while performing these steps.
92
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 9.1: Employing Substructuring The procedure to generate a superelement consists of two main steps: 1. 2. Build the model. Apply loads and create the superelement matrices.
gives the jobname GEN to all files produced by the generation pass. The default jobname is FILE (or file) or whatever name was specified while entering the ANSYS program. Element Types - Most ANSYS element types can be used to generate a substructure. In general, the only restriction is that elements within the superelement are assumed to be linear and cannot use Lagrange multipliers. If you include bilinear elements, they will be treated as linear elements (in their initial state). Caution: Coupled-field elements used in a direct method coupled-field analysis with load vector coupling are not valid in a substructure analysis. Other elements in the same shape family should be used instead. See the ANSYS Coupled-Field Analysis Guide for details. In addition, elements with Lagrange multipliers cannot be used in substructuring. These type of elements include MPC184, CONTA171, CONTA172, CONTA173, CONTA174, CONTA175, and CONTA178 with appropriate KEYOPT(2) setting, and elements PLANE182, PLANE 183, SOLID185, SOLID186 and SOLID187 when using KEYOPT(6) > 0. Material Properties - Define all necessary material properties. For example, if the mass matrix is to be generated, density (DENS) (or mass in some form) must be defined; if the specific heat matrix is to be generated, the specific heat (C) must be defined; and so on. Again, because a superelement is linear, any nonlinear material properties will be ignored. Model Generation - In the generation pass, you are mainly concerned with creating the superelement portion of the model. The nonsuperelement portion, if any, is defined later in the use pass. However, you should plan the modeling approach for both portions before you start building the model. In particular, decide on how you want to connect the superelement to the other elements. To ensure the connection, use the same node numbers at the interface. (Other methods requiring less effort on your part are discussed in the use pass section later in this chapter.) One approach might be to develop the entire model, save it on a named database file, and select only the portion to be substructured for the generation pass. In the use pass then, you can RESUME (Utility Menu> File> Resume from) from the named database file, unselect the portion that was substructured and replace it with the superelement matrix.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
93
Chapter 9: Substructuring
Analysis Type - Choose a substructure generation using one of these methods: Command(s): ANTYPE GUI: Main Menu> Solution> Analysis Type> New Analysis New analysis or restart - If you are starting a new analysis, choosing the analysis type (as described above) is all you need to do. However, if the run is a restart, you must also indicate this by setting STATUS = REST on the ANTYPE command (Main Menu> Solution> Analysis Type> Restart). A restart is applicable if you need to generate additional load vectors. (The files Jobname.EMAT, Jobname.ESAV, and Jobname.DB from the initial run must be available for the restart.) Note Restarting a substructuring analysis is valid only if the backsubstitution method is chosen. You cannot restart a run if the full resolve option is selected using the SEOPT command. Name of the superelement matrix file - Specify the name (Sename) to be assigned to the superelement matrix file. The program will automatically assign the extension SUB, so the complete file name will be Sename.SUB. The default is to use the jobname [/FILNAME]. To specify the name of the superelement matrix file: Command(s): SEOPT GUI: Main Menu> Solution> Analysis Type> Analysis Options Equation Solver to Use - Specify which equation solver to use (FRONTAL (default) or SPARSE (recommended)) during the generation pass of the substructure analysis. To specify an equation solver: Command(s): EQSLV GUI: Main Menu> Solution> Analysis Type> Analysis Options Matrices to be generated - You can request generation of just the stiffness matrix (or conductivity matrix, magnetic coefficient matrix, etc.); stiffness and mass matrices (or specific heat, etc.); or stiffness, mass, and damping matrices. The mass matrix is required if the use pass is a structural dynamic analysis or if you need to apply inertia loads in the use pass. For the thermal case, the specific heat matrix is required only if the use pass is a transient thermal analysis. Similar considerations apply to other disciplines and to the damping matrix. To make your request, use the SEOPT command as described above. Note The sparse solver cannot be used to generate the damping matrix. Matrices to be printed - This option allows you to print out the superelement matrices. You can request listing of both matrices and load vectors, or just the load vectors. The default is not to print any matrices. To print out the matrices, use the SEOPT command: Expansion Pass Method - Allows you to select the expansion pass method you plan to use during subsequent expansion passes with this superelement. The backsubstitution method (default) saves the triangularized matrix files needed to perform a backsubstitution of the master DOF solution during the expansion pass. The full resolve method does not save any triangularized matrix files. Triangularized matrix files are Sename.tri for the frontal solver and Sename.LNxx for the sparse solver. 94
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 9.1: Employing Substructuring Note Triangularized matrix files can become very large as the problem size increases, but are not needed if the full resolve method is chosen during the expansion pass. During the expansion pass, the full resolve method reforms the elements used to create the superelement, reassembles the global stiffness matrix, and applies the master DOF solution as displacement boundary conditions internally. Note You cannot restart a substructure analysis with the full resolve expansion pass method chosen. Mass matrix formulation - Applicable only if you want the mass matrix to be generated. You can choose between the default formulation (which depends on the element type) and a lumped mass approximation. We recommend the default formulation for most applications. However, for dynamic analyses involving "skinny" structures, such as slender beams or very thin shells, the lumped mass approximation has been shown to give better results. To specify a lumped mass approximation, use one of these methods: Command(s): LUMPM GUI: Main Menu> Solution> Analysis Type> Analysis Options Define master degrees of freedom using one of these methods Command(s): M GUI: Main Menu> Solution> Master DOFs> User Selected> Define In a substructure, master DOFs serve four purposes: They serve as the interface between the superelement and other elements. Be sure to define master DOFs at all nodes that connect to nonsuperelements, as shown in Figure 9.2: Example of a Substructuring Application. All degrees of freedom at these nodes should be defined as master DOFs (Lab = ALL on the M command). Master DOFs must be defined even if you plan to have no elements in the model other than a superelement. If the superelement is to be used in a dynamic analysis, master DOFs characterize the dynamic behavior of the structure. See Chapter 3, Modal Analysis in the ANSYS Structural Analysis Guide for guidelines. If constraints [D] or force loads [F] are to be applied in the use pass, master DOFs must be defined at those locations with the M command. Master DOFs are required in the use pass for large deflections [NLGEOM,ON] (Main Menu> Solution> Analysis Type> Analysis Options) or when used with the SETRAN command (Main Menu> Preprocessor> Modeling> Create> Elements> Superelements> By CS Transfer). For these cases, all nodes that have master DOFs must have all six (UX, UY, UZ, ROTX, ROTY, ROTZ) defined.
Apply loads on the model You can apply all types of loads in a substructure generation pass (see Table 9.1: Loads Applicable in a Substructure Analysis), but keep in mind the following points: The program will generate a load vector that includes the effect of all applied loads. One load vector per load step is written to the superelement matrix file. This load vector is the equivalent load for the combined loads in the load step. A maximum of 31 load vectors are allowed. Nonzero DOF constraints can be used in the generation pass and will become part of the load vector. (In the expansion pass, if the load step being expanded contains nonzero DOF constraints, the database must have matching DOF values. If it does not, the DOF constraints must be respecified [D] in the expansion pass.) Application of constraints [D] or force loads [F] can be postponed until the use pass, but master DOF must be defined at those locations with the M command or corresponding GUI path.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
95
Chapter 9: Substructuring Similarly, application of linear and angular accelerations can be postponed until the use pass, but only if a mass matrix is generated. This is recommended if you plan to rotate the superelement in the use pass, because load vector directions are "frozen" and rotated with the superelement. The Maxwell force flag (MXWF label on the SF family of commands) is normally used in a magnetic analysis to flag element surfaces on which the magnetic force distribution is to be calculated. This flag has no effect (and therefore should not be used) for a superelement in a magnetic analysis. Note If a mass matrix is generated, it is recommended that degree of freedom constraints be applied in the use pass at the master DOF (defined in the generation pass). This ensures that all mass is accounted for in the substructure. For analyses with acceleration loadings, it is recommended that the load be applied in the generation pass and used in the use pass, rather than apply the acceleration load on the reduced mass matrix. For large rotation analyses - Do not apply constraints to the model in this pass. You will apply constraints for large rotation analyses in the use pass.
SFL, SFLLIST, SFLDELE, SFA, SF, SFLIST, SFDELE, SFE, SFALIST, SFADELE, SFGRAD, SFELIST, SFEDELE, SFBEAM, SFTRAN SFGRAD, SFFUN, SFSCALE, SFCUM BFK, BFKLIST, BFKDELE, BFL, BF, BFLIST, BFDELE, BFE, BFLLIST, BFLDELE, BFA, BFELIST, BFEDELE, BFSCALE, BFALIST, BFADELE, BFV, BFCUM BFVLIST, BFVDELE, BFTRAN ACEL, DOMEGA
Body Loads
1.
The menu path used to access each command in the GUI will vary depending on the engineering discipline of the analysis (structural, magnetic, etc.). For a list of menu paths, see the description of individual commands in the ANSYS Commands Reference. The only options valid for the substructure generation pass are dynamics options
Damping (Dynamics Options) - Applicable only if the damping matrix is to be generated. To specify damping in the form of alpha (mass) damping: Command(s): ALPHAD GUI: Main Menu> Solution> Load Step Opts> Time/Frequenc> Damping To specify damping in the form of beta (stiffness) damping: Command(s): BETAD GUI: Main Menu> Solution> Load Step Opts> Time/Frequenc> Damping 96
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 9.1: Employing Substructuring To specify damping in the form of material-dependent beta damping: Command(s): MP,DAMP GUI: Main Menu> Preprocessor> Material Props> Material Models> Structural> Damping Save a backup copy of the database on a named file Doing this is required because you need to work with the same database in the expansion pass. To save a backup copy, use one of these methods: Command(s): SAVE GUI: Utility Menu> File> Save as Jobname.db Start solution calculations using one of these methods: Command(s): SOLVE GUI: Main Menu> Solution> Solve> Current LS Output from the solution consists of the superelement matrix file, Sename.SUB, where Sename is the name assigned as an analysis option [SEOPT] or the jobname [/FILNAME]. The matrix file includes a load vector calculated based on the applied loads. (The load vector will be zero if no loads are defined.) Repeat for additional load steps (that is, to generate additional load vectors) The load vectors are numbered sequentially (starting from 1) and appended to the same superelement matrix file. See Chapter 2, Loading in the ANSYS Basic Analysis Guide for other methods for multiple load steps. Leave SOLUTION using one of these methods Command(s): FINISH GUI: Main Menu> Finish
97
Chapter 9: Substructuring Command(s): /FILNAME GUI: Utility Menu >File> Change Jobname
2. 3. 4.
Interface nodes between superelement and nonsuperelement must exactly match the master node locations. 5. Define the superelement by pointing to the proper element type reference number and reading in the superelement matrix. To point to the element type: Command(s): TYPE GUI: Main Menu> Preprocessor> Modeling> Create> Elements> Elem Attributes
98
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 9.1: Employing Substructuring Now read in the superelement matrix using one of these methods (you may first need to use other commands to modify the matrix, as explained below): Command(s): SE GUI: Main Menu> Preprocessor> Modeling> Create> Elements> Superelements> From .SUB File a. If there are no nonsuperelements in the model, or if there are nonsuperelements and the interface nodes have the exact same node numbers as the master nodes on the superelement, then simply read in the superelement using the SE command:
TYPE,...! Element type reference number SE,GEN! Reads in superelement from file GEN.SUB
The Sename field on the SE command shown above identifies the name of the superelement matrix file. The extension .SUB is assumed, so the complete file name is Sename.SUB (GEN.SUB in the above example). The superelement is given the next available element number. b. If there are nonsuperelements in the model and the interface nodes have a constant node number offset from the master nodes, you must first create a new superelement matrix with new node numbers and then read in the new matrix. To create a new superelement matrix, use one of these methods: Command(s): SETRAN GUI: Main Menu> Preprocessor> Modeling> Create> Elements> Superelements> By CS Transfer Main Menu> Preprocessor> Modeling> Create> Elements> Superelements> By Geom Offset To read in the new matrix, use one of these methods: Command(s): SE GUI: Main Menu> Preprocessor> Modeling> Create> Elements> Superelements> From .SUB File For example, given an existing superelement matrix file GEN.SUB and a node number offset of 2000, the commands would be:
SETRAN,GEN,,2000,GEN2,SUB TYPE,... SE,GEN2 ! Creates new superelement GEN2.SUB with ! node offset = 2000 ! Element type reference number ! Reads in new superelement from file GEN2.SUB
c.
If there are nonsuperelements in the model and the interface nodes have no relationship with the master nodes (as would be the case with automatically meshed models), first observe the following caution. Caution: It is quite likely that the node numbers of the master nodes from the generation pass overlap with node numbers in the use pass model. In such cases, reading in the superelement [SE] will cause existing use pass nodes to be overwritten by the superelement's master nodes. To avoid overwriting existing nodes, use a node number offset [SETRAN] before reading in the superelement. In any case, save the database [SAVE] before issuing the SE command. Thus you should first save the database [SAVE], use the SETRAN command to create a new superelement matrix with a node number offset, and then use the SE command to read in the new matrix. The CPINTF command (Main Menu> Preprocessor> Coupling/Ceqn> Coincident Nodes) can
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
99
Chapter 9: Substructuring then be used to connect the pairs of nodes at the interface. For example, given a superelement matrix file called GEN.SUB:
*GET,MAXNOD,NODE,,NUM,MAX SETRAN,GEN,,MAXNOD,GEN2,SUB SE,GEN2 NSEL,... CPINTF,ALL NSEL,ALL ! ! ! ! ! ! ! MAXNOD = maximum node number Creates new superelement with node offset = MAXNOD, name = GEN2.SUB Reads in new superelement Select all nodes at the interface Couples each pair of interface nodes in all DOF
d.
If the superelement is to be transformed - moved or copied to a different position, or symmetrically reflected - you must first use the SETRAN command or SESYMM command (Main Menu> Preprocessor> Modeling> Create> Elements> Superelements> By Reflection), with the appropriate node number offsets, to create new superelement matrix files and then use SE to read in the new matrices. Connecting the superelements to the nonsuperelements is done the same way as above - by using common node numbers, a constant node number offset, or the CPINTF command. Note If you use SETRAN to transfer the superelement to a different coordinate system, the superelement's master nodes are rotated with it by default. This is typically useful if the original superelement's master nodes are rotated, into a cylindrical system for example. (In this case, the transfer does not effect the superelement stiffness matrix.) If the original superelement has no rotated nodes, it is likely that the transferred superelement will not need rotated nodes either. You can prevent node rotation in such cases by setting the NOROT field on SETRAN to 1. (The superelement stiffness matrix and load vector are modified by the program for this type of transfer.)
6.
Verify the location of the superelement using graphics displays and listings. Superelements are represented by an edge outline display, the data for which are written to the matrix file in the generation pass. To produce a graphics display: Command(s): EPLOT GUI: Utility Menu> Plot> Elements To produce a listing: Command(s): SELIST GUI: Utility Menu> List> Other> Superelem Data
7.
Save the complete model database: Command(s): SAVE GUI: Utility Menu> File> Save as Jobname.db Leave PREP7 using one of these methods: Command(s): FINISH GUI: Main Menu> Finish
910
Section 9.1: Employing Substructuring 2. Define the analysis type and analysis options. For large rotation analyses - turn large deformation effects on [NLGEOM,ON], and define the proper number of substeps for the nonlinear analysis. 3. Apply loads on the nonsuperelements. These may consist of DOF constraints and symmetry conditions [D family of commands], force loads [F family], surface loads [SF family], body loads [BF family], and inertia loads [ACEL, etc.]. Remember that inertia loads will affect the superelement only if its mass matrix was generated in the generation pass. Note For large rotation analyses, be sure to apply the proper constraints in this step. 4. Apply superelement load vectors (if any) using one of these methods: Command(s): SFE GUI: Main Menu> Solution> Define Loads> Apply> Load Vector> For Superelement One load vector per load step (created during the generation pass) is available on the superelement matrix file, and is identified by its reference number:
SFE,63,1,SELV,,0.75
applies, on element number 63, load vector number 1, with a scale factor of 0.75. Thus the ELEM field represents the element number of the superelement, LKEY represents the load vector number (default = 1), Lab is SELV, and VAL1 represents the scale factor (default = 0.0). (See the SFE command description for more information.) Note The load vector orientation is fixed (frozen) to the superelement, so if the superelement is used in a rotated position, the load vector rotates with it. The same applies to the degree of freedom directions (UX, UY, ROTY, etc.). They too are fixed to the superelement and will rotate with the superelement if it is rotated (unless NOROT = 1 on the SETRAN command, in which case the nodal coordinate systems will not be rotated). 5. Specifiy load step options that are appropriate for the analysis type. Use the EQSLV command to select an appropriate equation solver based on the chosen analysis type and the physics of the problem. Note Some solvers, such as the PCG solver, are not available for the use pass. 6. Initiate the solution: Command(s): SOLVE GUI: Main Menu> Solution> Solve> Current LS Results from the solution consist of the complete solution for nonsuperelements and the reduced solution - DOF solution at masters - for the superelements. The complete solution for nonsuperelements is written to the results file (Jobname.RST, RTH, or RMG), which you can postprocess using normal postprocessing procedures. The reduced solution is written to the file Jobname.DSUB. You can review this file using one of these methods: Command(s): SEDLIST GUI: Main Menu> General Postproc> List Results> Superelem DOF Utility Menu> List> Results> Superelem DOF Solu To expand the reduced solution to all elements within the superelement, you will need to perform the expansion pass, explained next.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
911
Chapter 9: Substructuring 7. Leave SOLUTION: Command(s): FINISH GUI: Main Menu> Finish
3.
4.
912
Section 9.1: Employing Substructuring GUI: Main Menu> Solution 5. Activate the expansion pass and its options: Command(s): EXPASS GUI: Main Menu> Solution> Load Step Opts> ExpansionPass Expansion pass on or off - Choose "on." Name of superelement to be expanded - Specify the name (Sename): Command(s): SEEXP GUI: Main Menu> Solution> Load Step Opts> ExpansionPass> Expand Superelem (The complete name of the file is assumed to be Sename.SUB.) Name of the reduced solution file from use pass - Specify the name (Usefil) using the SEEXP command (or the menu path shown above). The complete name of the file is assumed to be Usefil.DSUB. Real or imaginary component of displacement - Applicable only if the use pass was a harmonic response analysis. Use the SEEXP command (or the menu path shown above). Solution to be expanded - Identify the use pass solution to be expanded. You can use either the load step and substep numbers or the time (or frequency) to identify the solution: Command(s): EXPSOL GUI: Main Menu> Solution> Load Step Opts> ExpansionPass> Single Expand> By Load Step Main Menu> Solution> Load Step Opts> ExpansionPass> Single Expand> By Time/Freq Note If the load step being expanded contains nonzero DOF constraints, the database must have matching DOF values. If it does not, the DOF constraints must be respecified [D] in the expansion pass. 6. Specify load step options. The only options valid for a substructure expansion pass are output controls: Output Controls - These options control printed output, database and results file output, and extrapolation of results. If you want to include any results data on the printed output file (Jobname.OUT): Command(s): OUTPR GUI: Main Menu> Solution> Load Step Opts> Output Ctrls> Solu Printout If you want to control the data on the results file (Jobname.RST): Command(s): OUTRES GUI: Main Menu> Solution> Load Step Opts> Output Ctrls> DB/Results File If you want to review element integration point results by copying them to the nodes instead of extrapolating them (default): Command(s): ERESX GUI: Main Menu> Solution> Load Step Opts> Output Ctrls> Integration Pt 7. Start expansion pass calculations: Command(s): SOLVE GUI: Main Menu> Solution> Solve> Current LS Repeat steps 5 to 7 for additional use pass solutions to be expanded. If you need to expand the solution for a different superelement, you will need to leave and re-enter SOLUTION.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
8.
913
Chapter 9: Substructuring 9. Finally, leave SOLUTION: Command(s): FINISH GUI: Main Menu> Finish
10. Postprocess results in the superelement using standard techniques. Note An expansion pass is not valid if the use pass was a PSD analysis.
914
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
For more information, see the ANTYPE, SEOPT, M, ET, SETRAN, SE, CPINTF, EXPASS, and SEEXP command descriptions.
2.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
915
Chapter 9: Substructuring Enter SOLUTION and define the analysis type and analysis options. Apply loads on the nonsuperelements, read in load vectors (if any), specify load step options, and initiate the use pass solution. 4. Perform the expansion pass. Start by restoring the full model database, with all elements and nodes active. Then expand each superelement separately, using the appropriate jobnames and exiting and reentering SOLUTION each time. You can then review the results in each superelement using normal postprocessing procedures. Use of the full database, FULL.DB, allows the reading in of multiple superelement results:
RESUME,FULL,DB /POST1 FILE,GEN1 SET,... FILE,GEN2 SET,...!Will not clear previous superelement results
A sample input for top-down substructuring follows. This example assumes a model with one superelement and other nonsuperelements.
! Sample ! ! BUILD THE FULL ! /FILNAME,FULL /TITLE,... /PREP7 --------SAVE FINISH ! ! /FILNAME,GEN /SOLU ANTYPE,SUBSTR SEOPT,GEN,... ESEL,... NSLE M,... D,... ------SOLVE --SOLVE ----FINISH ! USE PASS ! /CLEAR /FILNAME,USE RESUME,FULL,DB ESEL,... NSLE /PREP7 ET,...,MATRIX50 TYPE,... SE,GEN ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! Jobname = GEN (for example) Enter SOLUTION Substructure analysis type Analysis options Select elements and nodes in the superelement portion Master DOF Loads. A load vector will be generated and written to the superelement matrix file Load step options Initiate solution -- creates superelement matrix file GEN.SUB. Loads for second load vector (D and M may not changed) Add load vector 2 Repeat loading and SOLVE sequence for additional load vectors (Up to 31 total) GENERATION PASS input for top-down substructuring MODEL ! Jobname = FULL (for example) ! Enter PREP7 ! Generate entire model, including both the ! superelement and nonsuperelement portions ! Save the full model database. It is required for ! the (use pass and) expansion pass.
! ! ! ! !
Clear database for use pass Jobname = USE (for example) Restore full model database (for nonsuperelements) Select elements and nodes in the nonsuperelement portion
! Superelement type (type number not used by nonsuperelements) ! Point to superelement type reference number ! Read in superelement matrix (GEN.SUB created above)
916
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
! Superelement load vector ! Load step options ! Initiates solution -- calculates complete ! solution for nonsuperelements (USE.RST, etc.) ! and reduced solution for superelement (USE.DSUB)
FINISH ! EXPANSION PASS ! /CLEAR ! Clear database for expansion pass /FILNAME,GEN ! Change jobname back to generation pass jobname RESUME,FULL,DB ! Restore full model database /SOLU ANTYPE,SUBSTR EXPASS,ON EXPSOL,... SEEXP,GEN,USE,... ----SOLVE ! Enter SOLUTION ! ! ! ! Activate expansion pass Specifies the solution to be expanded Superelement name to be expanded Load step options (mainly output controls)
! Initiate expansion pass solution. Full ! superelement solution written to GEN.RST (or ! RTH or RMG).
Please see the ANTYPE, SEOPT, M, ET, SE, EXPASS, and SEEXP command descriptions for more information.
2. 3.
917
Chapter 9: Substructuring preview each domain by using /PNUM,DOMAIN. By default, master DOFs are automatically defined at each of the following locations: all DOFs on the interfaces between each superelement, all DOFs associated with contact elements (TARGE169 to CONTA175), and at all DOFs associated with nodes having a point load defined. The option to manually define the master DOF only makes sense AFTER a 'preview pass' has been made, as the exact number of superelements and the superelement boundaries for each superelement cannot be known until the process is completed at least once. Note Due to the heuristics in the automatic domain decomposer, which is used to create the domains that will become superelements, the number of defined superelements may exceed the number of requested superelements. After completing a preview pass, you can then add master DOFs or remove master DOFs that were automatically defined during the preview pass. At least one master DOF must be defined for each superelement. Then set stopStage = GEN, and if any master DOFs were added or removed, set mDof = YES, and solve the model. 4. Use SOLVE to either preview or generate the automatically created superelements. Note that multiple load steps are not supported with automatic superelement generation.
3. 918
Section 9.7: Where to Find Examples 4. 5. Initiate the static analysis (SOLVE command or menu path Main Menu> Solution> Solve> Current LS). Perform the generation pass. Include the prestress effects from the static analysis by issuing the PSTRES command. (It is important to have the prestress effects active during the static analysis and the generation pass.) Perform the use and expansion passes. Review the results.
6. 7.
2. 3. 4. 5. 6.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
919
920
A typical use of CMS involves a modal analysis of a large, complicated structure (such as an aircraft or nuclear reactor) where various teams each design an individual component of the structure. With CMS, design changes to a single component affect only that component; therefore, additional computations are necessary only for the modified substructure. Finally, CMS supports these substructuring features: Top-down substructuring Nested superelements Prestressed substructures.
For most analyses, the fixed-interface CMS method is preferable. The free-interface method is useful when your analysis requires more accurate eigenvalues computed at the mid- to high-end of the spectrum. The following table describes the primary differences between the fixed- and free-interface methods:
CMS Methods: Fixed-Interface vs. Free-Interface Fixed Free
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Generally recommended when accuracy on only the lower Generally recommended when accuracy on both lower and modes of the assembled structure (use pass) is necessary. higher modes of the assembled structure (use pass) is required.
For more information, see the discussion of component mode synthesis theory and methods in the ANSYS, Inc. Theory Reference.
The CMS generation pass condenses a group of finite elements into a single CMS superelement, which includes a set of master degrees of freedom (DOFs) and truncated sets of normal mode generalized coordinates. The master DOFs serve to define the interface between the superelements or other elements. This section covers the following topics:
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
102
Section 10.2: Employing Component Mode Synthesis Section 10.2.1: The CMS Generation Pass: Creating the Superelement Section 10.2.2: The CMS Use and Expansion Passes Section 10.2.3: Superelement Expansion in Transformed Locations Section 10.2.4: Plotting or Printing Mode Shapes
CMS Wizard A user-friendly wizard is available to help you better understand the CMS process as well as to guide you through the generation, use, and expansion passes. The wizard also provides file organization and management support as files are generated by a CMS analysis. Use the Solution (/SOLU) processor to access the CMS Wizard.
Specifying the CMS method When specifying the CMS method, also specify the number of modes and, optionally, the frequency range used to generate the superelement. ANSYS supports both the fixedinterface (CMSOPT,FIX) and free-interface (CMSOPT,FREE) CMS methods. If employing the free-interface method, also specify the rigid body modes (CMSOPT,,,,FBDDEF). Naming the superelement matrix file ANSYS assigns the extension SUB to the superelement matrix file name that you specify (SEOPT,Sename); therefore, the complete file name is Sename.SUB. The default file name is the Jobname (/FILNAME).
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
103
Chapter 10: Component Mode Synthesis Specifying the lumped mass matrix formulation Specify the lumped mass matrix formulation (LUMPM) if necessary. For most applications, ANSYS recommends the default formulation (depending upon the element type); however, for dynamic analyses involving "skinny" structures such as slender beams or very thin shells, the lumped mass approximation typically yields better results. Defining master DOFs In a substructure, master degrees of freedom (DOFs) serve as the interface between the superelements or other elements. Define master DOFs (M) at all nodes that connect to nonsuperelements (Lab1 = ALL), as shown in Example of a Substructuring Application. You must define master DOFs even if you intend to have no elements in the model other than a superelement. Saving a copy of the database Saving a copy of the database (SAVE) is necessary because you must work with the same data in the expansion pass. Obtaining the CMS generation pass solution Output from the solution (SOLVE) consists of the superelement matrix file (Sename.SUB), where Sename is the file name you assigned (via the SEOPT command). After obtaining the CMS superelement matrices, proceed to the use pass and then the expansion pass, as you would in a substructuring analysis. For a detailed example of how to employ CMS, see Section 10.3: Sample Component Mode Synthesis Analysis.
104
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
105
106
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
% & '
# $" !
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
'$"&% !
#$!"
107
Chapter 10: Component Mode Synthesis The material properties for this analysis are as follows: Young's modulus (E) = 190e9 Poisson's ratio () = 0.3 Density = 7.7e3 The first 10 eigenfrequencies are extracted, and the fourth mode shape (the first non-rigid body mode) is expanded.
108
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
109
! Repeat the generation pass for "part3" ! Generation pass 3 /filnam,part3 /solu antype,substr seopt,part3,2 cmsopt,fix,10 cmsel,s,part3 cmsel,s,interface3 m,all,all nsle solve finish save
! STEP #4 (a. through i.) ! Use pass ! a. ! Clears the database /clear,nostart ! b. ! Change the active jobname which will become the use pass name /filnam,use ! c. ! A superelement element type is created
1010
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
/prep7 et,1,matrix50 ! d. ! Element type attribute pointer set to 1 type,1 ! e. ! Brings in the three superelements created above se,part1 se,part2 se,part3 finish ! f. ! A modal analysis is performed /solu antype,modal ! g. ! Specifies modal analysis options modopt,lanb,10 ! h. ! Expands 10 modes mxpand,10 ! i. ! Solve the modal analysis solve finish ! STEP #5 (a. through g.) ! Expansion pass ! Expansion pass 1 ! a. ! Clears the database /clear,nostart ! b. ! Changes the jobname to superelement 1 name /filnam,part1 ! c. ! resume the database resume ! d. ! Specifies the expansion pass /solu expass,on ! e. ! Specifies superelement name and use pass name seexp,part1,use ! f. ! Specifies the loadstep and substep to be expanded
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
1011
expsol,1,4 ! g. ! Solve the first expansion pass solve finish ! Repeat the expansion pass for "part2" ! Expansion pass 2 /clear,nostart /filnam,part2 resume /solu expass,on seexp,part2,use expsol,1,4 solve finish ! Repeat the expansion pass for "part3" ! Expansion pass 3 /clear,nostart /filnam,part3 resume /solu expass,on seexp,part3,use expsol,1,4 solve finish
! STEP #6 (a. through c.) ! Reads results for "load step 1 - substep 4" ! a. ! Specifies the data file where results are to be found /post1 cmsfile,add,part1,rst cmsfile,add,part2,rst cmsfile,add,part3,rst ! b. ! Reads the first data set set,first ! c. ! Plots the displacement contour in the x direction plnsol,u,x finish
1012
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
e. Define the three superelements to use in the model (PART1, PART2 and SE,PART1 PART3). SE,PART2 SE,PART3 FINISH f. Specify the analysis type as modal. /SOLU ANTYPE,MODAL g. Specify modal analysis options. h. Expand 10 modes. i. Solve the current analysis. MODOPT,LANB,10 MXPAND,10 SOLVE FINISH 5. Perform the expansion pass. a. Clear the database. b. Change the Jobname to PART1. c. Resume the database. /CLEAR,NOSTART /FILNAME,PART1 RESUME
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
1013
The results of your fixed-interface CMS analysis should match those shown here:
1014
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
1015
! c. ! Specifies the name to be assigned to superelement matrix file ! Strongly suggested to be the same as the active jobname seopt,part1,2 ! d. ! Specifies CMS options cmsopt,FREE,10,,,FNUM,3 ! If not otherwise specified, the CMSOPT command default behavior ! is to automatically determine rigid body modes in the calculation ! e. ! Selects element component named "part1" cmsel,s,part1 ! f. ! Selects node component named "interface1" cmsel,s,interface1 ! g. ! All the active DOFs (that is, on the nodes which belong to "interface1") ! are set as masters m,all,all ! h. ! Selects all the nodes attached to the selected elements ! (that is, elements which belong to "part1") nsle ! i. ! solve the first CMS generation pass solve finish ! j. ! Save the generation pass 1 database save ! Repeat the generation pass for "part2" ! Generation pass 2 /filnam,part2 /solu antype,substr seopt,part2,2 cmsopt,free,10,,,FNUM,3 cmsel,s,part2 cmsel,s,interface2 m,all,all nsle solve finish save ! Repeat the generation pass for "part3" ! Generation pass 3 /filnam,part3 /solu antype,substr seopt,part3,2
1016
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
1017
1018
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
/clear,nostart /filnam,part1 resume /solu expass,on seexp,part1,use expsol,1,4 solve finish ! Expansion pass 2 /clear,nostart /filnam,part2 resume /solu expass,on seexp,part2,use expsol,1,4 solve finish ! Obtain the third part of the model from PART2 ! Expand the solution in the transformed location /assign,rst,part2sym,rst /solu expass,on seexp,part2sym,use,,on ! Offset node and element IDs in the new superelement rstoff,node,10000 rstoff,elem,10000 expsol,1,4 solve finish
! STEP #6 ! Reads results for "load step 1 - substep 4" ! Specify the data file where results are to be found /post1 cmsfile,add,part1,rst cmsfile,add,part2,rst cmsfile,add,part2sym,rst . . .
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
1019
1020
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Detailed descriptions for each step are presented in the following sections.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Chapter 11: Rigid Body Dynamics and the ANSYS-ADAMS Interface analyses and are described in Section 1.2: Building a Model in the ANSYS Basic Analysis Guide. For further details on how to create the geometry and mesh, see the ANSYS Modeling and Meshing Guide. When building your model, remember these points: The interface is designed to support most element types that have displacement degrees of freedom. Exceptions are axisymmetric elements (for example, PLANE25) and explicit dynamic elements (for example, SOLID164). Only linear behavior is allowed in the model. If you specify nonlinear elements, they are treated as linear. For example, if you include nonlinear springs (like COMBIN39), their stiffnesses are calculated based on their initial status and never change. Material properties can be linear, isotropic or orthotropic, constant or temperature-dependent. You must define both Young's modulus (EX, or stiffness in some form) and density (DENS, or mass in some form) for the analysis. Nonlinear properties are ignored. Damping is ignored when the interface computes the modal neutral file (Jobname.MNF). Damping of the flexible component can be added later in the ADAMS program. The ADAMS program requires a lumped mass approach (LUMPM,ON). This requirement results in the following special considerations. For most structures that have a reasonably fine mesh, this approximation is acceptable. If a model has a coarse mesh, the inertia properties may have errors. To determine what the effect will be, start a modal analysis with and without LUMPM,ON and compare the frequencies. When using SHELL63, set KEYOPT(3) = 2 to activate a more realistic in-plane rotational stiffness. If the elements are warped, use SHELL181 with KEYOPT(3) = 2 instead. When using two dimensional elements, the corresponding ADAMS model must lie in the X-Y-plane. Remember that ADAMS models are always three dimensional. The 2-D flexible component transferred will not have any component in the Z-direction. Nodes of a plane element only have two degrees of freedom: translations in the X- and Y-direction. Thus, no moment loads (forces, joints) can be applied in the ADAMS analysis. Likewise, nodes of a solid element only have translational degrees of freedom.
You cannot apply constraints (D command) to the model. Also, make sure that no master degrees of freedom (M or TOTAL commands) were defined in an earlier analysis.
112
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 11.2: Modeling Interface Points Force (applied directly or via a joint) should be applied to the structure by distributing it over an area rather than applying it at a single node. If there is no node in the structure where you can apply the force or joint in ADAMS (for example, a pin center), you need to create a geometric location for that point.
Use the following guidelines to determine the best way to model the interface points for your structure: To ensure that all your loads will be projected on the deformation modes in the ADAMS simulation, you must define all nodes where you are going to apply a joint or a force as interface points. Interface points in ANSYS must always have 6 degrees of freedom, except for 2-D elements. If your model consists of solid elements, use constraint equations or a spider web of beam elements (as shown in Figure 11.1: Connecting a Structure to an Interface Point) to ensure that the interface node has 6 degrees of freedom. A good practice for modeling interface points is to reinforce the area using beam elements or constraint equations. Using one of these techniques will distribute the force over an area rather than applying it to a single node, which would be unrealistic. If you use a spider web of beam elements, use a high stiffness and a small mass for the beams. Otherwise, you will alter the stiffness and mass of your model, which could result in eigenmodes and frequencies that do not represent the original model. You may use constraint equation commands such as CE and CERIG to attach the interface node (for example, CERIG,MASTE,SLAVE,UXYZ, where MASTE is the interface node). Avoid the RBE3 command since problems can occur with the master degrees of freedom. If you use constraint equations, mesh the interface point with a MASS21 element (use KEYOPT(3) = 0) that has small (negligible) inertias. Do not define interface points that lie next to each other and are connected by constraint equations or short beams. This type of connection would require too many eigenmodes and result in a model that is not well conditioned.
Figure 11.1: Connecting a Structure to an Interface Point shows three different ways that you may attempt to attach an interface point to a structure. The first two examples (a and b) demonstrate valid methods of attachment. The third example (c) demonstrates a poor method of attachment that should not be used.
Each method depicted in the figure is described below. a) Constraint equations are connecting the interface point to the structure. This method is recommended because: Force is distributed over an area. A MASS21 element is used to define the six degrees of freedom of the interface point. Moment loads are transmitted.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
113
Chapter 11: Rigid Body Dynamics and the ANSYS-ADAMS Interface b) A spider web of beams is connecting the interface point to the structure. This method is recommended (and preferred) because: Force is distributed over an area. No MASS21 element is necessary (because the beams supply the six degrees of freedom). Moment loads are transmitted.
c) One beam is used to connect the interface point to the structure. This is not recommended because: The force is applied to the structure at a single node. Solid elements do not have rotational degrees of freedom. Therefore, moments will not be properly transmitted from the interface point to the structure (a spider web scheme should be used).
114
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Complete the following steps using this dialog box. 1. System of Model Units: The units used for the model is important to the ADAMS program, whereas ANSYS only requires that you use a consistent set of units. The units chosen will be written to the .MNF file and can be recalled with the ADAMS/Flex module. If no units are specified, ADAMS assumes that the same units were used in ANSYS as the ones chosen in the ADAMS model. See the /UNITS command for details. If you specify user defined units, a Define User Units dialog box will appear for you to input the conversion factors (for length, mass, force, and time) between SI units and your chosen units. Below is an example of user defined units in which the component has been modeled using millimeter, tonne (metric ton), newton, and second.
Length Factor = Mass Factor = Force Factor = Time Factor = 1 meter/millimeter 1 kilogram/tonne 1 newton/newton 1 second/second = 1000 = 0.001 =1 =1
2.
Number of Modes to Extract: Input the number of normal modes to compute. Normal modes are the eigenmodes of the component with all degrees of freedom of all interface points fixed. The number of
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
115
Chapter 11: Rigid Body Dynamics and the ANSYS-ADAMS Interface normal modes depends on the frequency range of the excitation you will apply in your ADAMS model. You must choose a sufficient number of modes to represent your structure in that frequency range. In ADAMS, if you have chosen too many normal modes, you are able to deactivate eigenmodes based on the frequency or an energy criterion. 3. Element Results: Specify whether or not the program should write stress and/or strain results. This option has no effect on the output for beam elements. If you want to output stress and strain for only a subset of nodes, you should create a node component named "STRESS" before running the ADAMS command macro. Shell Element Result Output Control: Specify the shell element output location (top, middle, bottom). This option has no effect on the output for solid elements and beam elements. Filename: Specify a filename for the modal neutral file. The default name is Jobname.MNF. If a file with the chosen name exists, it will be moved to a file named filename.MNFBAK. Export to ADAMS: Choose Solve and create export file to ADAMS to initiate the solution sequence. Static and normal modes are computed and all information required by ADAMS is written to the .MNF file specified above. Only the selected elements are considered. The current model is written to the database file Jobname.DBMNF.
4. 5. 6.
Note Note that the algorithm used to compute the .MNF file adds constraints to the interface points. If you create the .MNF file a second time using the same model in the same run, be sure to delete all constraints on the interface points (or resume the database file Jobname.DBMNF) before you run it again.
See the ADAMS command description for more information. When you use command input to compute the .MNF file, there is no option to change the file name. The default name of Jobname.MNF will be used.
116
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 11.5: Transferring Loads from ADAMS to ANSYS The first few modes are equal to the free-free eigenmodes of the component. You might want to verify this by doing a modal analysis: Set analysis option to ANTYPE,MODAL with MODOPT,LANB (Block Lanczos); activate the lumped mass approach with LUMPM,ON.
Review the normal modes (load step 1) and the constraint modes (load step 2) in the General Postprocessor. Verify the transfer by doing a modal analysis of the component in ADAMS with all interface degrees of freedom fixed. Compare the results with the normal modes computed in ANSYS (load step 1).
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
117
Complete the following steps in this dialog box. 1. 2. 3. 4. File Type: Choose FEA Loads File Format: Choose ANSYS File Name: Specify a name for the load file. The default extension is .LOD. Specify whether you want to export loads on a rigid body or a flexible body. 5. Rigid body: You must define a marker on the body that has the same position and orientation relative to the body as the global origin does in the ANSYS model. Flexible body: The marker is set automatically since this information is known from the .MNF file.
Click on Add Load Points to Nodes Table. If you chose a rigid body, you can input the Node IDs of the nodes where the loads have to be applied in ANSYS. If you chose a flexible body, ADAMS will automatically input the correct Node IDs.
6. 7.
Output at times: Specify at what time steps you want to export the loads. Finally, ADAMS will ask you about the units. The units for export must be the same as those chosen for building the ANSYS model. If they are not the same, change them temporarily to the ANSYS units or scale the loads in the load file later.
Every time step in ADAMS is treated as a load step in ANSYS. In ADAMS versions up to 11.0.0, ADAMS writes the LSWRITE command before the load commands. Therefore, if you are using ADAMS version 11.0.0 or earlier, you must use a text editor to move the LSWRITE command to the end of each time step in the .LOD file. The following loads will be included in the load file:
118
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 11.5: Transferring Loads from ADAMS to ANSYS Joint forces (F command) External forces (F command) Accelerations and rotational velocities (ACEL, OMEGA, DOMEGA commands)
Complete the following steps in the dialog box: 1. 2. Import file from ADAMS: Enter the name of the load file that was exported from ADAMS. Import option: Theoretically, external forces and inertia forces are in equilibrium. Due to numerical errors or due to mass discrepancies between ADAMS and ANSYS, this is insufficient to prevent a rigid body motion of the component. Hence, you must constrain the component against rigid body motion in order to do a static structural analysis. The ANSYS-ADAMS Interface offers two import options to achieve this. Import loads only. The program applies inertia loads and external forces to the structure according to the load file. For this option, you must manually add constraints to the ANSYS model that are compatible with the constraints used in the ADAMS model (if possible), or use common engineering sense to prevent rigid body motion. Add weak springs: The program adds weak springs (COMBIN14 elements) to the corners of the bounding box of the component. (For more information, see the WSPRINGS command documentation). The weak springs prevent rigid body motion without influencing the stress results. (See Section 11.6.2: Adding Weak Springs for more information on how the program adds weak springs to the model.)
3.
Import button: When you pick the Import button, one load step file is written per time step exported from ADAMS; existing load step files are deleted. If you chose the Import loads only option, you will have to start the static solution manually by issuing the SOLVE command for each load step. If you chose
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
119
Chapter 11: Rigid Body Dynamics and the ANSYS-ADAMS Interface the Add weak springs option, inertia relief is activated (IRLF,1) to compute accurate acceleration loads, and the static analysis is started automatically. Note If you use the import procedure a second time with the Add weak springs option, additional weak springs will be added to the model. This will have only a small influence on the results.
Every subsequent call of the WSPRINGS command will apply weak springs. Therefore, this command may be omitted when importing new loads.
The external forces have to be balanced by the applied inertia forces only. If one of the above is not true, there is an imbalance in your model that must be removed. Check your ANSYS and ADAMS models, respectively.
1110
Section 11.6: Methodology Behind the ANSYS-ADAMS Interface Export Nodal Loads: Using this feature, you can write an ANSYS input file to perform stress recovery as a superposition of unit force load steps. This method ignores the inertia load contribution to the flexible body deformation, so it may be inaccurate when interpreting dynamic effects. Note The MSR toolkit features described here are not supported by the ANSYS-ADAMS Interface.
To supply the above information, ANSYS does a sequence of analyses through a macro file called ADAMS.MAC (see the ADAMS command) in order to generate the required interface constraint modes and interface normal modes.
1111
Chapter 11: Rigid Body Dynamics and the ANSYS-ADAMS Interface COMBIN14 elements are used to link the six nodes of the bounding box to the ground in all three translational directions. The stiffness of the spring element is computed as k = (Emean)(106), where Emean is the mean value of all moduli of elasticity defined. This is a very rough approach, but one which has proven to be effective in practical applications. If the stress results are influenced by the springs, you can change the stiffness by changing the corresponding COMBIN14 real constant.
U3
U2
1112
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
The following are dimensions and properties for the Link3 component. Radius of holes (radh) = 6mm Width of rectangular rod (width) = 25mm Thickness of rectangular rod (thick) = 10mm Length of rectangular rod (length) = 300mm + 4*Radius of holes = 324mm Young's modulus for rod = 7.22 x 104 MPa Poisson's ratio for rod = 0.34 Density of rod = 2.4 x 10-9 tons/mm3 Young's modulus for beams = 2.1 x 105 MPa Poisson's ratio for beams = 0.3 Density of beams = 0.1 x 10-9 tons/mm3
1113
1114
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 11.7: Sample Rigid Body Dynamic Analysis At this point you may import the adamsout.mnf file into your ADAMS model and perform a rigid body dynamics simulation. The ADAMS model should consist of the components shown in Figure 11.5: Linkage Assembly. After the simulation is done, export the loads acting on the Link3 component at five arbitrary time steps. Name the load file loads.lod. Once you have exported the load file, you can perform a stress analysis for Link3 in ANSYS using the command input shown below.
RESUME,adamsout,db ! Resume model /FILNAM,adamsin ! Change jobname /TITLE,Import loads from ADAMS ! Change title ! WSPRINGS ! Create weak springs ! ! Enter Solution and solve all load steps /SOLU /INPUT,loads,lod ! Read in 5 load steps written by ADAMS *DO,i,1,5 ! Use a do loop to solve each load step LSREAD,i ! Read in load step IRLF,1 ! Activate inertia relief SOLVE ! Solve current load step *ENDDO ! /POST1 ! Enter the general postprocesser ! Write deformation and equivalent stress to graphics file /VIEW,1,1,1,1 /AUTO,1 EPLOT /TYPE,1,4 /SHOW, EPLOT *DO,i,1,5 SET,i PLNSOL,u,sum PLNSOL,s,eqv *ENDDO /SHOW,term FINISH /EXIT,nosave
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
1115
1116
User elements may also be given the birth and death capability. See the Guide to ANSYS User Programmable Features for more information on user elements In some circumstances, an element's birth and death status may be dependent upon an ANSYS-calculated quantity, such as temperature, stress, strain, etc. You can issue commands such as ETABLE and ESEL to determine the value of such quantities in selected elements, and to change the status (melted, solidified, ruptured, etc.) of those elements accordingly. This capability is useful for modeling effects due to phase changes (as in welding processes, when structurally inactive molten material solidifies and becomes structurally active), failure-surface propagation, and other analysis-dependent element changes.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Chapter 12: Element Birth and Death factor (ESTIF). This factor is set to 1.0E-6 by default, but can be given other values. (For more information, see Section 12.3.2: Apply Loads and Obtain the Solution.) Element loads associated with deactivated elements are zeroed out of the load vector, however, they still appear in element-load lists. Similarly, mass, damping, specific heat, and other such effects are set to zero for deactivated elements. The mass and energy of deactivated elements are not included in the summations over the model. An element's strain is also set to zero as soon as that element is killed. In like manner, when elements are "born," they are not actually added to the model; they are simply reactivated. You must create all elements, including those to be born in later stages of your analysis, while in PREP7. You cannot create new elements in SOLUTION. To "add" an element, you first deactivate it, then reactivate it at the proper load step. When an element is reactivated, its stiffness, mass, element loads, etc. return to their full original values. Elements are reactivated with no record of strain history (or heat storage, etc.); however, initial strain defined as a real constant (for elements such as LINK1) will not be affected by birth and death operations. Unless large-deformation effects are activated (NLGEOM,ON), some element types will be reactivated in their originally specified geometric configuration. (Large-deformation effects should be included to obtain meaningful results.) Thermal strains are computed for newly-activated elements based on the current load step temperature and the reference temperature. Thus, newborn elements with thermal loads may not be stress-free as intended. The material property REFT can be used instead of the global TREF to specify material-dependent reference temperatures, allowing you to specify the activation temperature as a stress-free temperature.
122
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
123
Chapter 12: Element Birth and Death when you reactivate elements, and remove nodal loads from inactive DOFs (that is, at nodes not connected to any active elements). Similarly, you must specifically add nodal loads (if any) to reactivated DOFs.
124
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 12.4: Where to Find Examples "smear" the results. Ignore the entire element printout for deactivated elements because many items computed make little physical sense. To remove deactivated elements for element displays and other postprocessing operations, issue the ESEL command.
! Enter POST1 ! Store total equivalent strain in ETABLE ! Select all elements with total equivalent strain ! greater than or equal to 0.20
! Re-enter SOLUTION ! Deactivate selected (overstrained) elements ! Restore full element set ! Continue with solution
125
126
The ANSYS program activates some UPFs (such as user elements) automatically when you use them. For example, to activate a user element, all you need to do is specify it as one of the element types in the model (via the ET
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Chapter 13: User-Programmable Features and Nonstandard Uses command), set the element type attribute pointer (via the TYPE command) ), and define elements using the solid modeling (AMESH, VMESH, etc.) or direct generation (ET, etc.) method. For other UPFs, you must issue the USRCAL command to activate them. If you fail to issue the command, standard ANSYS logic applies by default. For example, when you apply a convection load, the default is to use standard ANSYS logic even if you have linked a user convection routine. You must activate the appropriate user routine with the USRCAL command if you want the user convection routine to be used. Refer to the USRCAL command description for a list of user routines affected by the command. Use the NSVR command to define the number of extra variables that need to be saved for such user-programmable element options as user plasticity. (The NSVR command has no equivalent GUI path.) Another useful command is /UCMD, which allows you to create your own command from a user routine. Suppose you link in a user routine for a parabolic distribution of pressure. If you name the routine USERnn (where nn = 01 to 10), you can create your own command to call the routine:
/UCMD,PARAB,1
PARAB now becomes a valid ANSYS command that simply calls the user routine USER01. You can call up to ten such user routines as commands. By including /UCMD commands in your start-up file (start90.ans), you can make the user routines available in all of your ANSYS sessions.
Section 13.2: Nonstandard Uses of the ANSYS Program User hyperelasticity - Available for hyperelastic elements HYPER56, HYPER58, HYPER74, and HYPER158. User failure criteria - Available for the layered elements SOLID46 and SHELL99. Up to six user-defined failure criteria can be supplied. User viscosity - You can define viscosity as a function of pressure, temperature, position, time, velocity, and velocity gradients for FLUID141 and FLUID142. User loads - Body loads such as temperatures, heat generations, and fluences (such as neutron flux), as well as surface loads such as pressures, convections, heat fluxes and charge density may be defined by way of userwritten logic. User load vector - This allows you to create a complex load vector for the frequency domain logic of the PIPE59 element. You can use it to represent hydrodynamic forces. ANSYS as a subroutine - You can call the entire ANSYS program as a subroutine in your own program, such as a user-written design optimization algorithm. User optimization - You can replace the ANSYS optimization logic with your own algorithm and termination logic. User access at the beginning and end of each ANSYS run solution, load step, substep, and equilibrium iteration - Allows you to evaluate results and perform any desired calculations during solution.
133
Chapter 13: User-Programmable Features and Nonstandard Uses Using undocumented features, such as an element option not documented in the ANSYS Elements Reference or a command argument not mentioned in the ANSYS Commands Reference. Undocumented features are, by definition, unsupported and unverified; use them with caution.
If the ANSYS program can detect the use of a nonstandard feature, it will often issue a warning message to that effect.
For detailed information on UPFs, see the Guide to ANSYS User Programmable Features.
134
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Chapter 14: Improving ANSYS Performance and Parallel Performance for ANSYS
Solving a large model with millions of DOFs can require many CPU hours. To decrease processing time, ANSYS offers several options for distributing model-solving power over multiple processors. You can run the entire model using Distributed ANSYS. With Distributed ANSYS, the entire /SOLUTION phase runs in parallel, including the stiffness matrix generation, linear equation solving, and results calculations. With multiple processors, you can see significant speedup in the time it takes to run your analysis. You can also run just the equation solver step itself in a parallel manner. These options fall under two primary configurations: shared-memory architecture and distributed-memory architecture. This document discusses the latter option, running distributed solvers under shared-memory ANSYS. For more information on running Distributed ANSYS, see the Distributed ANSYS Guide. Both Distributed ANSYS and the distributed solvers running under shared-memory ANSYS require Parallel Performance for ANSYS (PPFA) licenses. Shared-Memory Architecture Shared-memory architecture runs a solution over multiple processors on a single machine. The shared-memory options in ANSYS include: ANSYS solvers such as the Sparse, PCG, or ICCG run over multiple processors but share the same memory address. No additional add-on licenses are required for these solvers. While these solvers feature greater ease-of-use, they have limited scalability (typically two to four processors). The Parallel Performance for ANSYS add-on using the AMG solver. Use this option to solve static or transient analyses over multiple processors on the same system to speed up processing time, or to solve ill-conditioned problems that have difficulty converging with the conventional PCG or ICCG solvers.
Distributed-Memory Architecture Distributed-memory architecture runs a solution over multiple processors on a single or on multiple machines. It decomposes large problems into smaller domains, transfers the domains to each processor, solves each domain, and creates a complete solution to the model. Because the solutions are running in parallel, the whole model solution takes much less time to solve. The memory required is also distributed over multiple systems. The distributed-memory options in ANSYS include: The Parallel Performance for ANSYS add-on using the distributed solvers (DDS, DPCG, DJCG). This option affords better scalability and better memory distribution than a shared-memory architecture. See Section 14.2.2: About the Distributed Solvers (DDS, DPCG, DJCG) for specific recommendations for each of the distributed solvers.
The distributed solvers can run under either shared or distributed-memory platforms, running on a sharedmemory machine by treating each processor in a distributed manner. However, the shared-memory solvers cannot run under the distributed-memory architecture. Note If you are running ANSYS LS-DYNA, you can use the shared-memory parallel processing (SMP) capabilities of LS-DYNA. For more information, see Section 5.3: Shared Memory Parallel Processing in the ANSYS LS-DYNA User's Guide.
Chapter 14: Improving ANSYS Performance and Parallel Performance for ANSYS Specify multiple processors via the NUM_PROC configuration parameter. Place this line (which must begin in column 1) in your config90.ans file:
NUM_PROC=N
Issue the SETNPROC macro in one of the following ways. SETNPROC sets the number of processors to the maximum allowed on the system. (The value may be less than the actual number of processors.)
SETNPROC,N
sets the number of processors to the maximum allowed on the system minus the number specified by P (but never less than one processor). In each case, N represents the number of processors to use. If N exceeds the number of available processors, ANSYS uses all available processors. For large multiprocessor servers, ANSYS recommends setting N to a value no higher than the number of available processors minus one. For example, on an eight-processor system, set N to 7. However, on multiprocessor workstations, You may want to use all available processors to improve the total solution time. Shared-memory parallel processing actually occurs in three separate operations: element matrix generation, equation solution, and element results calculations. With shared-memory architecture, you can use the PSCONTROL command to control which of these operations actually use parallel behavior. For example, operational randomness and numerical roundoff inherent to shared-memory parallel mode can cause slightly different results. You could use this command to show that the element matrix generation running in parallel is causing a nonlinear job to converge to a slightly different solution each time it runs (even on the same machine with no change to the input data). For the distributed-memory architecture method, issue the DSPROC command in SOLUTION to specify the total number of processors to be used. You will also need to issue the DSOPT command to specify the distributed mode, and optionally, the number of preconditioner domains. Specify the DSOPT,Local option to use the distributed solvers on a single, multi-processor machine, which is normally a shared-memory machine. For optimal performance when solving a large model, close down all other applications before launching ANSYS with a multiprocessor solver. ANSYS recommends running distributed solvers when the network is not busy, such as at night and on weekends. For a complete and up-to-date list of systems on which ANSYS supports parallel processing, point your Web browser to the following URL:
http://www.ansys.com/services/hardware_support/parallel/index.htm
142
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 14.2: Using the Parallel Performance for ANSYS Add-On The value specified via the /CONFIG,NPROC command or the NUM_PROC configuration parameter (if used). Note Issuing the /CONFIG,NPROC command to change the number of processors overrides the number specified via the NUM_PROC configuration parameter. On SGI systems, the number of processors is limited to the lesser of the actual quantity of CPUs and the value of the environment variable MP_SET_NUMTHREADS (if used).
You can specify multiple settings for the number of CPUs to use during an ANSYS session. However, ANSYS recommends that you issue the /CLEAR command before resetting the number of processors for subsequent analyses. On IBM AIX systems, verify that the host.list file is consistent with the number of processors specified. For more information, see the IBM Parallel Environment for AIX documentation, Operation and Use, Volume 1, Using the Parallel Operating Environment. If you are using the distributed-memory architecture (and thus the DDS, DPCG, or DJCG solvers), you can specify more processors (via DSPROC) than are physically available at the cost of slower total elapsed run time. This usage is not recommended; however, it is useful to test distributed parallel computing over a limited-resource network.
This section does not document the configuration of the Parallel Performance for ANSYS solvers. If you want to run Parallel Performance for ANSYS solvers, see the ANSYS Installation and Configuration Guide for your platform.
143
Chapter 14: Improving ANSYS Performance and Parallel Performance for ANSYS problems in which the PCG and ICCG solvers would have difficulty converging (for example, large, ill-conditioned problems where the ill-conditioning is due to large element aspect ratios within a mesh, or cases in which shell or beam elements are attached to solid elements). In terms of CPU time when used in a single-processor environment, the AMG solver performs better than the PCG and ICCG solvers for ill-conditioned problems, and it delivers about the same level of performance for ordinary problems. The AMG solver is available only for static analyses and full transient analyses. (These analyses can be linear or nonlinear.) In addition, the efficiency of the AMG solver is limited to single-field structural analyses in which the solution DOFs are combinations of UX, UY, UZ, ROTX, ROTY, and ROTZ. For analyses such as single-field thermal analyses in which the solution DOF is TEMP, the AMG solver is less efficient than the PCG or ICCG.
2. 3.
When defining the analysis, select the AMG solver [EQSLV,AMG]. (Optional.) To use the AMG solver in a multiprocessor environment, activate parallel processing. You can do this either by issuing the /CONFIG,NPROC,VALUE command, or by executing the SETNPROC macro. (VALUE indicates the number of processors to be used. The AMG solver is expected to scale linearly when used with up to 8 processors. When the AMG solver is used with more than 8 processors, any additional scalability is minimal; the larger the problem, the higher the potential for scalability.)
Section 14.2: Using the Parallel Performance for ANSYS Add-On cannot be used with models containing p-elements, superelements, or with PRETS179 elements, and should not be used with SOLID97, INTER115, or SOLID117. ANSYS does not recommend using the DDS solver with high-aspectratio elements; doing so could result in convergence difficulties. The solver can be used in analyses involving coupling and constraint equations. The DDS solver works with the deformable-to-deformable, surface-to-surface contact elements TARGE169 to CONTA174, and the node-to-node contact elements. It does not work with the rigid-to-deformable or node-tosurface contact elements in general. It also does not support elements with u-P formulation option or Lagrange multipliers. In general, the DDS solver works well when simple coupling and/or constraint equations are used in the model. However, it may not work with complicated constraint equation cases, which often arise from the use of CERIG, RBE3, CEINTF or internal constraint equations generated by contact applications. In this last case, the program will issue an error message. The solver treats contact nodes and DOFs in coupling and constraint equations as internal master DOFs, resulting in higher memory requirements. Caution: The solver may fail or its scalability may deteriorate for models with many (greater than 10% of total nodes) contact pairs. DPCG Solver The Distributed Preconditioned Conjugate Gradient iterative equation solver is based on the PCG solver. The DPCG solver preserves all of the merits of the PCG solver and can be run on either shared-memory or distributed-memory machines with superior scalability to the PCG solver. Compared to the DDS solver, the DPCG solver is more robust and uses less memory, but has inferior scalability, especially when more than 16 processors are used. The total sum of memory used by the DPCG (summed total over the network or all processors) is about 30% more than the PCG solver. In addition to the limitations of the PCG solver, the DPCG solver does not support subspace eigensolver (Powerdynamics), the PRECISION command, or p-elements. DJCG Solver The Distributed Jacobi Conjugate Gradient iterative equation solver is based on the JCG solver. Scalability of this solver is superior to the JCG solver with little extra memory required. DJCG solver is available only for static and full transient analyses where the stiffness is symmetric. This solver does not support the fast thermal option (THOPT). Similar to the DPCG solver, the DJCG solver decomposes large models into domains, but unlike the DPCG, the DJCG uses a less sophisticated diagonal preconditioner. Because of the simplicity of the diagonal preconditioner, the scalability of the DJCG is superior to the DPCG or the DDS solvers. However, as with the JCG solver, this solver is only effective for well-conditioned problems.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
145
Chapter 14: Improving ANSYS Performance and Parallel Performance for ANSYS 2. 3. Verify that you are running on a homogenous network. Distributed solving will work only across machines of the same platform. If running on a single system, verify that the system has more than one processor. Verify that you have the correct MPI software installed. All machines must use the same version of MPI, installed in the same path. Both ANSYS 9.0 and MPI software must be installed on each system where you will run. Configure the necessary hosts90.ans if using the GUI, and configure or check the appropriate host.list or host.list.dds/.dpcg files. Use the Configure Cluster option of the ANS_ADMIN utility to configure the hosts90.ans file. On UNIX and Linux systems, verify that you have an .rhosts file that includes all machines that can be connected on the system. 5. When starting your ANSYS session, specify the Parallel Performance for ANSYS add-on and the correct MPI type in the launcher, or from the operating system command line by issuing the following commands: For native MPI or MPI/Pro:
ansys90 -pp
4.
or for MPICH:
ansys90 -pp -mpi mpich
6.
Choose the solver type and options. Interactively, choose Main Menu>Solution>Sol'n Options. From there you can choose the type of solver (DDS, DPCG, or DJCG), as well as the number of domains (we recommend that you use auto), the distribution method (local, file, or script), and the number of processors. Use the Host Selection button (available only if you choose the script option and have already created a hosts90.ans file and placed it in your working directory) to choose the hosts and number of processors to run on each machine for this run from those specified in the hosts90.ans file.The Host Selection button will create the script file and the correct host.list file in the appropriate format for your platform if they do not already exist. When using the DPCG or DJCG solvers, you must specify the total number of processors on the network via the DSPROC command. All options are not available on all platforms; you will see only those combinations that are valid on your platform. In batch mode, you can specify this same information via the EQSLV, DSOPT, and DSPROC commands. If you use the commands directly, you can also specify the maximum number of iterations and the level of difficulty via DSOPT. Be aware, however, that if you start in batch mode or by using an existing input listing, and then use the GUI to modify or complete your parallel setup and run, the GUI settings will override any existing commands from your input listing.
7.
Click OK or issue a SOLVE command, and run your analysis as you normally would.
146
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 14.2: Using the Parallel Performance for ANSYS Add-On executable (ansdds.e90, etc.), number of threads, or other information, depending on the platform. Platform specifics are discussed in a later section, and include examples of the host.list files for each platform. The correct host.list file and script files are created automatically via the GUI when you choose Host Selection. Note This file is sometimes referred to as a host file or a machines file.
.rhosts File
On UNIX and Linux systems, you need to specify the .rhosts file, and it must reside directly under the home directory on each machine. You must be able to log in to each system listed in the .rhosts file. The .rhosts file must include all machines involved in distributed solving. The format for the .rhosts file is:
machinename1 username machinename2 username machinename1.ansys.com username machinename2.ansys.com username localhost
For example, on an SGI machine, the .rhosts file might look like this: lmserv jqdoe beast jqdoe lmserv.ansys.com jqdoe beast.ansys.com jqdoe localhost
Hosts90.ans File
For parallel processing you need to specify the remote hosts you want to use. This information is placed in a file called hosts90.ans. You can create this file using a text editor or you can use the ANS_ADMIN utility (see the online help available with the ANS_ADMIN utility for more information). This file contains host information for all remote machines on which you may want to run. This file is global and does not contain job-specific information. If you have multiple users running parallel or distributed jobs at your site, you should have one hosts90.ans file for all users. A sample hosts90.ans file looks like this:
# # # # # # # # # # # # This file is used to specify those hosts that the ANSYS Nanny may run children on. Each host entry is to be on its own line. several fields which are space delimited. The host entry consists of
Field 1 - host IP address or name Field 2 - host machine type Field 3 - execution key (used for Probabilistic Design only): 0-Use a remote shell to start the child process; this requires a remote shell server to be running on the host machine.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
147
Chapter 14: Improving ANSYS Performance and Parallel Performance for ANSYS
# # # # # # # # # # # >1024-Use a running ANSYS thin server on the host which is listening on this port number. Field 4 - The default maximum number of jobs to run on this host Field 5 - The time in minutes to check again if the host is available. If this is zero then the host will not be checked again. Field 6 - The local port number to start the communication with the ANSYS Thin Server on. This is tied to authentication on the ANSYS Thin Server. Field 7 - The directory to create the children subdirectories in Field 8 - The cluster type. Only valid entry is MPI. Field 9 - The speed factor (relative speed to other machines listed). Only valid entry is 1. # Field 10 - Number of OpenMP threads. Only valid entry is 1. # Example: # # UNIX box that has five processors # zeus sgi64 0 5 30 2000 /scratch/wjc # Microsoft box using the ANSYS Thin Server # wjcpc XP 2010 1 0 2000 C:\TEMP alpha1 alpha 0 1 15 2000 /scratch/epc MPI 1 1 athena sgi64 0 1 15 2000 /scratch/epc MPI 1 1 rs43p rs6000 0 1 15 2000 /home/pdstest MPI 1 1 rs260 rs64 0 1 15 2000 /home/pdstest MPI 1 1 snoopy hp64 0 1 15 2000 /home/pdstest MPI 1 1 alpha24 alpha 0 1 15 2000 /home/pdstest MPI 1 1 hp770 hp64 0 1 15 2000 /home/pdstest MPI 1 1 us60 usparc 0 1 15 2000 /home/pdstest MPI 1 1 ss60 sun64 0 1 15 2000 /home/pdstest MPI 1 1
On Windows, ANSYS searches for this file first in the local directory, followed by the home directory, and finally the apdl directory. On UNIX, the file needs to reside in your working directory. Although you can create the hosts90.ans manually using a text editor, we recommend that you use the ANS_ADMIN utility to automatically create the file in the correct format for your platform. Use caution when setting field #4 (maximum number of jobs to run on this host). We recommend that you do not set this field to a number greater than the number of processors on the machine. Although distributed solving will still work in such a scenario, you will see a marked degredation in performance. On UNIX or Linux platforms, you need to run ANSYS from within the working directory if you want the Host Selection option in the GUI to work properly.
file is explained in more detail in later sections. See your MPI software documentation for more information about MPI commands and options. Note The file option will not run multiple machines across a network on Sun and IBM platforms. Use the script option instead.
script -- Calls the distributed solver executable (ansdds90, ansddsmpich90, etc.) to set processor in-
formation for the distributed solvers. Use this option only if you are experienced in writing MPI applications.
148
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 14.2: Using the Parallel Performance for ANSYS Add-On To handle more difficult analyses, specify a level of difficulty on the DSOPT command (DDS and DPCG solvers only). The higher the level of difficulty, the more difficult the analysis the solver can handle, but the more memory and CPU time the solver will take. Lev_Diff = 1 or 2 is recommended for less difficult problems (such as wellshaped 3-D solid elements). Lev_Diff = 3 or 4 is recommended for more ill-conditioned (difficult) problems (more than 30% of elements are beams or shells). For models using nonuniform materials, use a higher level of difficulty. Analyses with Lev_Diff = 3 or 4 will converge faster, but with high memory consumption and increased CPU time per iteration.
On UNIX platforms, the format of the config90.dds file varies, depending on the platform. Refer to the MPI documentation for the specific format of each platform. In general, the config90.dds file contains the following information on each line; specific examples for each platform are shown in platform specifics. Note The -np immediately before the number of processors is an mpirun command argument indicating "number of local processors." Other mpirun command arguments can be used in this position in the file. For information about the mpirun command arguments, type:
man mpirun
The number of processors on the named system to send distributed solver processes to.
ExecutablePath
The full path name to the executable on the local system. Do not use relative path names. Executable names for DDS are: ansdds.e90 - UNIX DDS ansdds.exe - Windows DDS ansddsmpich.e90 - MPICH Linux DDS ansddsmpich.exe - MPICH Windows DDS
Executable names for DPCG or DJCG are: ansdpcg.e90 - UNIX DPCG, DJCG
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
149
Chapter 14: Improving ANSYS Performance and Parallel Performance for ANSYS ansdpcg.exe - Windows DPCG, DJCG ansdpcgmpich.e90 - MPICH Linux DPCG, DJCG ansdpcgmpich.exe - MPICH Windows DPCG, DJCG
Use the file option to specify exactly how many processes you want sent to certain machines. Machines are listed in the host.list file. The first name in the host.list file should be the local hostname. If the config90.dds file contains entries for multiple machines, the master or host machine must be the first machine referenced in the file. ANSYS searches your directories in the following order to look for the config90.dds file: 1. 2. Your current directory Your home directory
Using the Script Option and the Distributed Solver Launch Scripts
If you are familiar with writing MPI applications, you can create a launch script to further customize the application. When you choose the script distribution option in the GUI or invoke DSOPT,script, ANSYS searches your directories in the following order to look for these scripts: 1. 2. 3. Your current directory Your home directory The /ansys_inc/v90/ansys/bin/ directory (On Windows, C:\Program Files\ANSYS Inc\V90\ANSYS\bin\platform)
Caution: If the script does not have execution permission, you will get a fatal error. For best performance, we recommend that you place the scripts and config files in your working directory.
1410
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Examples for each platform are shown under platform specifics. Remember that with the DPCG and DJCG solvers, you must also specify the total number of (network) processors.
host.list
Format:
MPIFlag MachineName NumProcessors ExecutablePath NumThreads
Example:
-h rx5670 -np n /ansys_inc/v90/ansys/bin/hpia64/ansdds.e90 -n 1 -h hpux64 -np n /ansys_inc/v90/ansys/bin/hpia64/ansdds.e90 -n 1
ansdds90
MP, S
#!/bin/sh ANSYS90_DIR=/ansys_inc/v90/ansys export ANSYS90_DIR ANSYS_DIR=$ANSYS90_DIR WHICHANSCRIPT=ansdds export WHICHANSCRIPT . $ANSYS_DIR/bin/anssh.ini stat=0 mpirun -f host.list exit
Note If you create this file manually, it should look exactly as it appears here, unless your ANSYS90_DIR path is different.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
1411
Chapter 14: Improving ANSYS Performance and Parallel Performance for ANSYS
File ansdpcg90 Use MP, S Format and Example
#!/bin/sh ANSYS90_DIR=/ansys_inc/v90/ansys export ANSYS90_DIR ANSYS_DIR=$ANSYS90_DIR WHICHANSCRIPT=ansdpcg export WHICHANSCRIPT . $ANSYS_DIR/bin/anssh.ini stat=0 mpirun -f host.list exit
Note If you create this file manually, it should look exactly as it appears here, unless your ANSYS90_DIR path is different. config90.dds MP, F Format:
NumProcessors ExecutablePath MPIFlag MachineName NumProcessors ExecutablePath
Example:
-np n /ansys_inc/v90/ansys/bin/hpia64/ansdds.e90 -h hpux64 -np n /ansys_inc/v90/ansys/bin/hpia64/ansdds.e90
config90.dpcg MP, F
Format:
NumProcessors ExecutablePath MPIFlag MachineName NumProcessors ExecutablePath
Example:
-np n /ansys_inc/v90/ansys/bin/hpia64/ansdpcg.e90 -h hpux64 -np n /ansys_inc/v90/ansys/bin/hpia64/ansdpcg.e90
.rhosts
host.list.dds
Format:
MPIFlag MachineName NumProcessors ExecutablePath NumThreads
Example:
-h snoopy -np n /ansys_inc/v90/ansys/bin/hp64/ansdds.e90 -n 1 -h hpuxdemo -np n /ansys_inc/v90/ansys/bin/hp64/ansdds.e90 -n 1
1412
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Example:
-h snoopy -np n /ansys_inc/v90/ansys/bin/hp64/ansdpcg.e90 -n 1 -h hpuxdemo -np n /ansys_inc/v90/ansys/bin/hp64/ansdpcg.e90 -n 1
ansdds90
MP, S
#!/bin/sh ANSYS90_DIR=/ansys_inc/v90/ansys export ANSYS90_DIR ANSYS_DIR=$ANSYS90_DIR WHICHANSCRIPT=ansdds export WHICHANSCRIPT . $ANSYS_DIR/bin/anssh.ini stat=0 mpirun -f host.list exit
Note If you create this file manually, it should look exactly as it appears here, unless your ANSYS90_DIR path is different. ansdpcg90 MP, S
#!/bin/sh ANSYS90_DIR=/ansys_inc/v90/ansys export ANSYS90_DIR ANSYS_DIR=$ANSYS90_DIR WHICHANSCRIPT=ansdpcg export WHICHANSCRIPT . $ANSYS_DIR/bin/anssh.ini stat=0 mpirun -f host.list exit
Note If you create this file manually, it should look exactly as it appears here, unless your ANSYS90_DIR path is different. config90.dds MP, Format: F NumProcessors ExecutablePath
MPIFlag MachineName NumProcessors ExecutablePath
Example:
-np n /ansys_inc/v90/ansys/bin/hp64/ansdds.e90 -h hpuxdemo -np n /ansys_inc/v90/ansys/bin/hp64/ansdds.e90
config90.dpcg
Example:
-np n /ansys_inc/v90/ansys/bin/hp64/ansdpcg.e90 -h hpuxdemo -np n /ansys_inc/v90/ansys/bin/hp64/ansdpcg.e90
.rhosts
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
1413
Chapter 14: Improving ANSYS Performance and Parallel Performance for ANSYS
host.list ansdds90
A MP, S
Not required
#!/bin/sh ANSYS90_DIR=/ansys_inc/v90/ansys export ANSYS90_DIR ANSYS_DIR=$ANSYS90_DIR WHICHANSCRIPT=ansdds export WHICHANSCRIPT . $ANSYS_DIR/bin/anssh.ini stat=0 mpirun lmserv -np n /ansys_inc/v90/ansys/bin/sgi64/ansdds.e90 -n 1 : beast -np n /ansys_inc/v90/ansys/bin/sgi64/ansdds.e90 -n 1 exit
Note If you create this file manually, it should look exactly as it appears here, except for the ANSYS path and machine names, and number of processors. ansdpcg90 MP, S
#!/bin/sh ANSYS90_DIR=/ansys_inc/v90/ansys export ANSYS90_DIR ANSYS_DIR=$ANSYS90_DIR WHICHANSCRIPT=ansdpcg export WHICHANSCRIPT . $ANSYS_DIR/bin/anssh.ini stat=0 mpirun lmserv -np n /ansys_inc/v90/ansys/bin/sgi64/ansdpcg.e90 -n 1 : beast -np n /ansys_inc/v90/ansys/bin/sgi64/ansdpcg.e90 -n 1 exit
Note If you create this file manually, it should look exactly as it appears here, except for the ANSYS path and machine names. config90.dds MP, Format: F MachineName NumProcessors MachineName NumProcessors (...) ExecutablePath
Example:
lmserv -np n,beast -np n /ansys_inc/v90/ansys/bin/sgi64/ansdds.e90
config90.dpcg
Example:
lmserv -np n,beast -np n /ansys_inc/v90/ansys/bin/sgi64 /ansdpcg.e90
.rhosts
1414
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
host.list
Format:
MachineName MachineName ...
Note If you create this file manually, it should look exactly as it appears here, unless your ANSYS path is different. ansdpcg90 MP, S
#!/bin/sh ANSYS90_DIR=/ansys_inc/v90/ansys export ANSYS90_DIR ANSYS_DIR=$ANSYS90_DIR WHICHANSCRIPT=ansdpcg export WHICHANSCRIPT . $ANSYS_DIR/bin/anssh.ini stat=0 mprun -np n -m host.list /ansys_inc/v90/ansys/bin/usIII /ansdpcg.e90 -n 1 exit
Note If you create this file manually, it should look exactly as it appears here, unless your ANSYS path is different. config90.dds/.dpcg .rhosts MP, File option not supported by Sun F A See .rhosts File.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
1415
Chapter 14: Improving ANSYS Performance and Parallel Performance for ANSYS
host.list
Format:
MachineName MachineName ...
Note If you create this file manually, it should look exactly as it appears here, unless your ANSYS path is different. ansdpcg90 MP, S
#!/bin/sh ANSYS90_DIR=/ansys_inc/v90/ansys export ANSYS90_DIR ANSYS_DIR=$ANSYS90_DIR WHICHANSCRIPT=ansdpcg export WHICHANSCRIPT . $ANSYS_DIR/bin/anssh.ini stat=0 poe /ansys_inc/v90/ansys/bin/aix64/ansdpcg.e90 -procs 2 exit
Note If you create this file manually, it should look exactly as it appears here, unless your ANSYS path is different. config90.dds/config90.dpcg .rhosts MP_HOSTFILE NLSPATH MP, File option not supported on IBM F A A A See .rhosts File. Environment variable - set to host.list location. Use absolute addressing, not relative. Environment variable - set to /usr/lib/nls/msg/en_US/pepoe.cat
1416
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
host.list.dds
Format:
MPIFlag MachineName ExecutablePath
Example:
1 deva1.ansys.com /ansys_inc/v90/ansys/bin/alpha/ansdds.e90 1 alpha3.ansys.com /ansys_inc/v90/ansys/bin/alpha/ansdds.e90
host.list.dpcg
Format:
MPIFlag MachineName ExecutablePath
Example:
1 deva1.ansys.com /ansys_inc/v90/ansys/bin/alpha/ansdpcg.e90 1 alpha3.ansys.com /ansys_inc/v90/ansys/bin/alpha/ansdpcg.e90
ansdds90
MP, S
#!/bin/sh ANSYS90_DIR=/ansys_inc/v90/ansys export ANSYS90_DIR ANSYS_DIR=$ANSYS90_DIR WHICHANSCRIPT=ansdds export WHICHANSCRIPT . $ANSYS_DIR/bin/anssh.ini stat=0 dmpirun -pf host.list exit
Note If you create this file manually, it should look exactly as it appears here, unless your ANSYS90_DIR path is different. ansdpcg90 MP, S
#!/bin/sh ANSYS90_DIR=/ansys_inc/v90/ansys export ANSYS90_DIR ANSYS_DIR=$ANSYS90_DIR WHICHANSCRIPT=ansdpcg export WHICHANSCRIPT . $ANSYS_DIR/bin/anssh.ini stat=0 dmpirun -pf host.list exit
Note If you create this file manually, it should look exactly as it appears here, unless your ANSYS90_DIR path is different. config90.dds MP, Format: F MPIFlag MachineName ExecutablePath Example:
1 deva1 /ansys_inc/v90/ansys/bin/alpha/ansdds.e90 1 alpha3 /ansys_inc/v90/ansys/bin/alpha/ansdds.e90
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
1417
Chapter 14: Improving ANSYS Performance and Parallel Performance for ANSYS
File config90.dpcg Use Example MP, Format: F MPIFlag MachineName ExecutablePath Example:
1 deva1 /ansys_inc/v90/ansys/bin/alpha/ansdpcg.e90 1 alpha3 /ansys_inc/v90/ansys/bin/alpha/ansdpcg.e90
.rhosts
host.list
Format:
MachineName MachineName ...
Note If you create this file manually, it should look exactly as it appears here, unless your ANSYS path is different.
1418
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Note If you create this file manually, it should look exactly as it appears here, unless your ANSYS path is different. ansddsmpich90 MC, S
#!/bin/sh ANSYS90_DIR=/home/jqdoe/ansys_inc/v90/ansys export ANSYS90_DIR ANSYS_DIR=$ANSYS90_DIR WHICHANSCRIPT=ansdds export WHICHANSCRIPT . $ANSYS_DIR/bin/anssh.ini stat=0 mpirun -np n -machinefile host.list "/home/jqdoe /ansys_inc/v90/ansys/bin/linia32/ansddsmpich.e90" exit
Note If you create this file manually, it should look exactly as it appears here, unless your ANSYS path is different. ansdpcgmpich90 MC, S
#!/bin/sh ANSYS90_DIR=/home/jqdoe/ansys_inc/v90/ansys export ANSYS90_DIR ANSYS_DIR=$ANSYS90_DIR WHICHANSCRIPT=ansdpcg export WHICHANSCRIPT . $ANSYS_DIR/bin/anssh.ini stat=0 mpirun -np n -machinefile host.list "/home/jqdoe /ansys_inc/v90/ansys/bin/linia32/ansddsmpich.e90" exit
Note If you create this file manually, it should look exactly as it appears here, unless your ANSYS path is different. config90.dds MP, Format: F SystemName NumProcessors ExecutablePath Example:
linux32 1 /ansys_inc/v90/ansys/bin/linia32/ansdds.e90 linux3 1 /ansys_inc/v90/ansys/bin/linia32/ansdds.e90
config90.dpcg
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
1419
Chapter 14: Improving ANSYS Performance and Parallel Performance for ANSYS
File configmpich90.dds Use Example MC, Format: F MachineName Master/Slave ExecutablePath UserName Example:
linux32 0 /home/jqdoe/ansys_inc/v90/ansys/bin/linia32/ansddsmpich.e90 jqdoe linux3 1 /home/jqdoe/ansys_inc/v90/ansys/bin/linia32/ansddsmpich.e90 jqdoe
configmpich90.dpcg
.rhosts
host.list
Format:
MachineName MachineName ...
1420
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Note If you create this file manually, it should look exactly as it appears here, unless your ANSYS path is different. ansdpcgmpich90 MC, S
#!/bin/sh ANSYS90_DIR=/ansys_inc/v90/ansys export ANSYS90_DIR ANSYS_DIR=$ANSYS90_DIR WHICHANSCRIPT=ansdpcg export WHICHANSCRIPT . $ANSYS_DIR/bin/anssh.ini stat=0 mpirun -np n -machinefile host.list /ansys_inc/v90/ansys/bin/linia64/ansdpcgmpich.e90 exit
Note If you create this file manually, it should look exactly as it appears here, unless your ANSYS path is different. configmpich90.dds MC, Format: F MachineName Master/Slave ExecutablePath UserName Example:
cloud9 0 /ansys_inc/v90/ansys/bin/linia64/ansddsmpich.e90 jqdoe linux2 1 /ansys_inc/v90/ansys/bin/linia64/ansddsmpich.e90 jqdoe
configmpich90.dpcg
.rhosts
Usage Notes:
C:\Program Files\MPICH\mpd\bin
You will also be required to enter your account information in the ANSYS output window for the first distributed solve after you login. Refer to the MPICH documentation at http://www-unix.mcs.anl.gov/mpi/mpich/ for recommendations on the machine file format for a cluster.
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
1421
Chapter 14: Improving ANSYS Performance and Parallel Performance for ANSYS To avoid confusion and minimize difficulties, install ANSYS on the same drive letter on all machines to be used in the parallel run.
Additional files will also be written, but will be removed at the end of the SOLVE.
MPI configuration file config90.dds not found. Be certain that the config90.dds file exists and is in the correct directory.
1422
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Section 14.3: Troubleshooting Parallel Performance Distributed solver failure, no U file detected Several conditions can cause this error: If you get this error with a Windows error of The instruction at nnnnnnnnnn referenced memory at mmmmmmmmmm. The memory could not be written. Click on OK to terminate the program, verify that all machines are running the same version of MPI/Pro. Also, you might have provided MPI/Pro with an invalid network password. (Windows only) Check that the directory structures on subsequent machines are identical to the host machine's structure. (This can occur while running the SCRIPT option.) Verify that you have the same login on all machines. Verify that the username exists in the same domain on all machines. (Windows only) Verify that the pathname to the distributed solver executable in the config90.dds file is correct. Verify that you have gone through the MPI/Pro Password Registration process on all machines. (Windows, Linux only) The distributed solver did not complete successfully. Check your solver and MPI settings. For Windows systems: The machines file must be present in either the ANSYS working directory or in the directory set by the MPI_HOME environment variable. Be certain this file does not have an extension. This file contains a list of the host machines, and the first machine on the list must be the local host. The distributed solver will not run on a Windows system Windows requires that each machine being used must have a working directory with a path identical to that on the host machine. Slave Machine Name:_desktop failed. User name unable to CreatProcess for \\pathname\<solver executable> The directory name is invalid. Local Machine Name: Process exited with code 1 Local Machine Name: Process exited with code 1 Check that the directory structures on subsequent machines are identical to those on the host machine. (Windows only) Machine Name: Access violation This can be caused when more than one host tries to access the same machine while using an older version of MPI/Pro. The version of MPI/Pro provided with ANSYS Release 9.0 resolves this problem. (Windows, Linux only) The distributed solver execution script not found. Looking for: .\<solver>.bat or M:\<solver>.bat Verify that the <solver>.bat file exists and is in the correct directory. (Windows only)
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
1423
Chapter 14: Improving ANSYS Performance and Parallel Performance for ANSYS The results are nonsensical. Verify that the KMP_LIBRARY environment variable is not set to SERIAL. The ANSYS installation unsets this environment variable; however, other software installed or modified after ANSYS was installed could reset this environment variable. (Windows only) Solver aborts If you try to access more nodes than available, the solver will hang. (IBM only) ansdds process aborts without warning This can happen on a single system when at least two processors have been specified. There may be insufficient memory allocated, if virtual swap is in use. Display the vswap setting for the system (from command level, type: /sbin/swap -1) and, if necessary, reallocate memory. (SGI only) *** MPI has run out of PER_PROC message headers. In some cases, the default settings for environment variables MPI_MSGS_PER_PROC and MPI_REQUEST_MAX may be too low and may need to be increased. See the MPI documentation for SGI for more information on settings for these and other environment variables. (SGI only) Other systems may have additional environment variables that need to be adjusted for running very large models as well. If you encounter problems with system-dependent variables, please see your systems support staff or contact your MPI vendor. no_mp_jobs: Not enough resources available This can happen when you request more processors than are available. This happens via ansdds90 if -np is greater than the number of available processors. Use
mpinfo -N
to check the number of available processors. (Sun only) Distributed solver failure If you are running on a SUN cluster, you may require a shared file system to enable file availability to ANSYS from nodes within the cluster when running the distributed solver. (Sun only)
1424
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Index
Symbols
.mnf suffix, 1111
B
birth and death of elements applying loads and solving, 123 building the model, 123 constraint equations, 122 controlled by ANSYS results, 125 employing in an analysis, 123 example problems, 125 first load step: defining, 123 in linear models, 122 initial strain, 122, 123 material properties: changing, 123 multiple load steps, 122 Newton-Raphson option, 122 nodal constraints and loads, 123 overview of, 121 reviewing results, 124 sample input, 124, 125 status of an element: determining, 122 strain, 121 subsequent load steps: defining, 124 supported elements, 121 usage guidelines, 122
A
ADAMS (see ANSYS-ADAMS Interface) ADAMS.MAC macro, 1111 adaptive meshing activating custom subroutines, 55 ADAPT macro: customizing (via UADAPT.MAC), 55 custom loads (via ADAPTBC.MAC), 54 custom meshing (via ADAPTMSH.MAC), 54 custom solution (via ADAPTSOL.MAC), 54 element types for, 51 example problems: finding, 56 hints, 55 modifying the basic process, 52 overview of, 51 prerequisites for, 51 process involved, 52 selective adaptivity, 53 user subroutines: employing, 53 Algebraic Multigrid (AMG) solver, 143 analysis initiating for design optimization, 111 analysis file design optimization and, 15 generating, 122 analysis file (design optimization), 11 ANSYS DesignXplorer VT, 42 ANSYS Probabilistic Design System (PDS) (see probabilistic design) ANSYS-ADAMS Interface ADAMS simulation: running, 117 ADAMS.MAC macro, 1111 batch mode, 116, 1110 exporting to ADAMS, 116 importing loads, 1110 exporting to ADAMS, 114 interface points: modeling, 112 loads, transferring from ADAMS to ANSYS, 117 methodology employed by, 1111 modal neutral file, 114, 1111 model: building, 111 overview of, 111 rigid body dynamics, 111 sample analysis, 1112 verifying results following export to ADAMS, 116 weak springs, 119, 1111, 1111
C
CMS (see component mode synthesis) command syntax, 14 commands LGWRITE, 122 OPEXE, 114 OPFACT, 119 OPGRAD, 119 OPRAND, 118 OPRESU, 114 OPSWEEP, 118 OPTYPE, 118 component mode synthesis database: saving copy during generation pass, 103 definition of, 101 example: expanding a superelement in a transformed location, 1017 expanding superelements in transformed locations, 104 expansion pass, 104 generation pass, 103 introduction to, 101 lumped mass approximation, 103 master DOFs, 103 methods supported, 101 mode shapes: plotting or printing, 105 offsets: applying to node and element IDs, 104
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Index process (passes) involved, 102 sample analysis, 105 solvers and files used, 102 specifying CMS results files for postprocessing, 105 superelement: creating, 103 understanding, 101 use pass, 104 constraint equations in a cyclic symmetry analysis, 76 cut boundary displacement method (see submodeling) cyclic symmetry analysis analysis types supported, 710 ANCYC command, 721 automated by ANSYS, 72 availability, 72 basic sector, 73 buckling, 716 commands affected by non-cyclic loading, 710 constraint equations for non-cyclically symmetric loading, 78 coupling and constraint equations (CEs), 76 CYCLIC command, 74 database: saving after solution, 718 definition of cyclic symmetry, 71 deleting a sector load, 78 Duplicate Sector solution method, 76 edge component pairs, 74 edge node patterns: identical vs. dissimilar, 74 example: buckling, 729 example: modal, 723 EXPAND command, 722 expanding the solution, 720 geometric nonlinearity, 715 graphical picking of non-cyclic boundary conditions, 710 harmonic index, 713 inconsistent constraints, 78 introduction to, 72 large-deflection prestressed modal, 715 linear buckling, 716 meshing the cyclic sector, 74 modal, 712 model only one sector, 72 model verification during preprocessing, 75 model verification during solution, 718 modeling, 73 most common commands, 72 naming convention for low- and high-edge component pairs, 74 nodal diameter, 713 non-cyclic loading, 711 non-cyclically symmetric loading, 78 phase sweep of repeated eigenvector shapes, 722 plotting and listing non-cyclic BCs, 710 postprocessing, 719 prestressed modal, 714 real and imaginary solution components: understanding, 719 sector angle, 74 SECTOR primary variable, 78 solution architecture, 76 solving, 75 static (linear and large-deflection nonlinear), 711 stress-free modal, 714 traveling wave animation, 721 understanding, 72 unmatched nodes on edge-component pairs, 75
D
damping substructuring, 94 DDS, 144 declaring optimization variables design optimization, 19 design optimization algorithms for, 19, 115 analysis file: creating, 15 analysis: initiating, 111 choosing optimization variables, 120 design sets data: reviewing and manipulating, 112 design variables: choosing, 120 example problems: finding, 130 factorial tool, 119 general steps, 14 gradient evaluation tool, 119 GUI paths and command syntax: understanding, 14 hints and tips, 122 looping controls: specifying, 110 mesh density and, 125 multiple executions, 114 objective function: choosing, 122 optimization methods, 11 optimization processor, 18 optimization variables: declaring, 19 overview of, 11 parameters: establishing, 18 process involved, 14 random design generation, 118 restarting analysis, 114 sample optimization analysis, 125 sample problem, 125 state variables: choosing, 121 subproblem approximation method, 115, 117
Index2
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Index substructuring, 125 sweep tool, 118 terminology, 11, 11 design variables (DVs), 11 state variables (SVs), 11 terminology used, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11 analysis file, 11 design or design set, 11 feasible design, 11 loop, 11 loop file, 11 objective function, 11 optimization database, 11, 11 optimization iteration, 11 optimization variables, 11 using, 14 design optimization analysis file, 11 design optimization methods introduction to, 11 design set, 11 design sets manipulating, 112 reviewing, 112 design variables (DVs), 11 choosing, 120 fixing after execution, 123 distributed solvers, 144 distribution methods, 148 platform specific information, 1411 required files, 146 using, 145 DPCG, DJCG, 144 Jobname.PDS, 33 probabilistic design analysis file, 38 sename.sub, 94 first order method considerations for design optimization, 118 design optimization, 117 introduction to, 11
G
global minima versus local, 124 gradient evaluation tool design optimization, 119 GUI paths syntax, 14
J
Jobname in a submodeling analysis, 82 in a substructure analysis, 93 Jobname.LOG file, 122 , 17, 122 Jobname.LOOP, 11 Jobname.OPO, 11 Jobname.OPT, 11
L
LGWRITE command, 122 loads substructuring, 94 local minima versus global, 124 loop, 11 loop file, 11 looping specifying controls, 110
E
elements birth and death of, 121 environment variables MP_SET_NUMTHREADS, 142 expansion pass substructuring, 912
M
macros ADAMS.MAC, 1111 SETNPROC, 141 material properties changing to deactivate or reactivate elements, 123 mesh density design optimization and, 125 meshing adaptive, 51 modal neutral file, 1111 model generation adaptive meshing, 51
F
feasible design, 11 files .mnf, 1111 design optimization analysis file, 11, 15 Jobname.LOG, 17 Jobname.LOOP, 11, 33 Jobname.NODE, 84 Jobname.OPO, 11 Jobname.OPT, 11
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Index3
Index
N
Newton-Raphson birth and death analysis, 122 nonstandard uses of ANSYS, 133
O
objective function choosing for design optimization, 122 objective function (design optimization), 11 offsets to node and element IDs in a CMS analysis, 104 OPEXE command, 114 OPFACT command , 119 OPGRAD command, 119 OPRAND command , 118 OPRESU command, 114 OPSWEEP command , 118 optimization iteration, 11 optimization processor design optimization, 18 optimization variables, 11 choosing, 120 modifying after execution, 124 OPTYPE command , 118
P
Parallel Performance for ANSYS activating, 141 distributed solvers, 144 distribution methods, 148 platform specific information, 1411 required files, 146 running, 145 Parallel Performance for ANSYS add-on, 143 parallel processing activating, 141 Algebraic Multigrid (AMG) solver, 143 considerations for specific systems, 142 distributed solvers, 144 MP_SET_NUMTHREADS environment variable, 142 number of processors, setting, 141 NUM_PROC configuration file parameter, 141 overview of, 141 Parallel Performance for ANSYS add-on, 143 SETNPROC macro, 141 troubleshooting, 1422 parameters establishing for design optimization, 18 Index4
NUM_PROC, 141 PDS (see probabilistic design) platform information distributed solvers, 1411 probabilistic design algorithms available, 321, 347 analysis file, 38, 312 creating, 38 specifying, 312 analysis flow, 33 analysis results: reviewing, 339 and traditional analysis methods: comparison of, 32 correlations between random variables, 318 cumulative distribution function: plotting, 339 definition of, 31 employing, 37 histogram: plotting, 339 HTML report: generating, 364 inverse probabilities: requesting, 339 loops: executing, 323 Monte Carlo Simulation method, 348 parallel execution, 325 parameters: establishing, 311 PDS database, 33, 365, 365 clearing, 365 description of, 33 saving, 365 postprocessing, 356 print correlation matrix, 341 Probabilistic Method Determination Wizard, 322 probability value: printing, 339 process involved, 37 random input variables, 313, 318 declaring, 313 visualizing, 318 random output parameters: specifying, 321 report options, 341 response surface analysis: sampling methods, 352 response surfaces: fitting and using, 336 restarting an analysis, 365 results data: reviewing, 339 results report: creating, 341 sample analysis, 366 sample history: plotting, 339 sample problem, 39 scatter plot, 341 sensitivities, 341 serial execution, 325 statistics: viewing, 339 techniques available, 347
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Index terminology, 33, 33, 33, 33, 33, 33, 33, 33, 33 analysis file, 33 loop file, 33 looping, 33 random input variables (RVs), 33 random output parameters (RPs), 33 response surface set, 33 simulation, 33 simulation loop, 33 solution set, 33 trends: viewing, 341 understanding, 31 using, 37 variables: guidelines for defining, 342 when to use, 33 Probabilistic Method Determination Wizard (see probabilistic design)
S
SETNPROC macro, 141 solid modeling adaptive meshing, 51 mesh density, 51 solvers Algebraic Multigrid (AMG) solver, 143 Parallel Performance for ANSYS add-on, 143 Solvers distributed (DDS, DPCG, DJCG), 144 state variables (SVs), 11 choosing, 121 submodeling, 81 analyzing the submodel, 86 coarse model: creating and analyzing, 82 creating the submodel, 83 cut-boundary interpolation: performing, 84 distance between cut boundaries and stress concentration: verifying, 88 example problems, 812 overview of, 81 sample input, 89 shell-to-solid, 810 Submodeling process involved, 82 subproblem approximation introduction to, 11 subproblem approximation method considerations for design optimization, 116 design optimization, 115 substructuring applying loads, 94 bottom-up, 914 damping, 94 example problems, 919 expansion pass, 912 generation pass, 92 nested superelements, 918 overview of, 91 prestressed, 918 process (passes) involved, 91 sample input, 914 top-down, 915 use pass, 97 superelements and substructuring, 91 expanding in transformed locations, 104 generating automatically, 917
R
random design generation design optimization, 118 resuming design optimization analysis, 114 rezoning balancing residual forces, 613 contract boundaries, 611 convergence difficulties during mapping operation, 615 example usage, 618 file structures for repeated rezonings, 615 forces and isolated applied displacements, 611 horizontal multiple rezoning, 610 introduction to, 61 limitations and restrictions, 617 mapping variables, 613 mesh control during, 610 multiframe restart after, 616 multiple regions remeshed at the same substep, 610 nodal temperatures, 611 postprocessing results, 616 pressure and contiguous displacements, 611 process for, 66 remeshing, 68 repeating as needed, 615 requirements, 65 selecting a region for remeshing, 68 substep at which to initiate, 67 supported analyses, 65 uses for, 61 variable mapping, 613 rigid body dynamics, 111
T
topological optimization defining and controlling, 24 Index5
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.
Index element types: selecting, 22 example optimization, 29, 215 2-D Multiple-Load Case, 29 2-D Natural Frequency Maximization, 215 frequency extraction: defining and controlling, 23 hints and comments, 219 load cases: defining and controlling, 23 optimized and non-optimized regions: specifying, 22 overview of, 21 problem: defining, 22 process involved, 21 results: reviewing, 28 standard formulation for, 21 understanding, 21 traveling wave animation, 721
U
UPFs (see user-programmable features) user-programmable features automatic activation, 131 available types, 132 creating your own command, 131 manual activation, 131 overview of, 131 process involved, 131
V
variables declaring optimization variables, 19 Variational Technology ANSYS Frequency Sweep VT, 418 example problem, 419, 421 transmission line, 419 waveguide, 421 forced-frequency simulations: solving, 418 response surface, 41
Index6
ANSYS Advanced Analysis Techniques Guide . ANSYS Release 9.0 . 002114 . SAS IP, Inc.