You are on page 1of 11

HW-PTC-India

Professional Training Centre

Tutorial 13: TOPOLOGY OPTIMIZATION Design Concept for a Structural C-clip.


The topology optimization technique yields a new design and optimal material distribution. Topology optimization allows designers to start with a design that already has the advantage of optimal material distribution and is ready for design fine tuning with shape or size optimization. In this tutorial, topology optimization is performed on a model to create a new topology for the structure, removing any unnecessary material. The resulting structure is lighter and satisfies all design constraints. The optimization problem for this tutorial is stated as: Objective: Constraints: Minimize volume fraction. Translation in the y-axis for node A < 0.07mm. Translation in the y-axis at node B > -0.07mm. Design variables: The density of each element in the design space.

In this tutorial, you will: Set up the model in HyperMesh. Analyze the baseline model. Set up the optimization. Post-process the optimization results.

Exercise
Set Up the Model in HyperMesh. Step 1: Launch HyperMesh and Set the User Profile.
1. Launch HyperMesh through the start menu. The User Profiles dialog will appear by default. 2. Choose the OptiStruct user profile by selecting the radio button beside it. 3. Click OK. This loads the user profile. It includes the appropriate template, macro menu, and import reader, paring down the functionality of HyperMesh to what is relevant for generating models in Bulk Data Format for RADIOSS and OptiStruct.

Step 2: Open the cclip.hm File


1. Click the Open .hm File button . 2. Select the cclip.hm file. 3. Click Open. The cclip.hm database is loaded into the current HyperMesh session, replacing any existing data. The database only contains geometric data and the mesh

Step 3: Create Materials and Properties; Assign to Components


Since components need to reference a material, the materials collectors should be created first. 1. Select the Model tab. 2. Right click inside of the Model Browser window, activate the menu over Create, and click Material.

Rev 1.0 : Created on March 15, 2013, using HyperWorks Student Edition 11.0

Page 1

HW-PTC-India
Professional Training Centre

Tutorial 13: TOPOLOGY OPTIMIZATION Design Concept for a Structural C-clip.


When in this popup, do not press the Enter key until you are done. 3. In the Name: field, type Steel. 4. Select MAT1 as Card Image: 5. Select the box for Card edit material upon creation and click Create. The MAT1 card image pops up. 6. For E, enter the value 2.1E5 7. For Nu, enter the value 0.3. 8. For RHO, enter the value 7.9E-9. 9. Click return. 10. Right click inside the Model Browser window, activate the menu over Create, and click Property. 11. In the Name: field, type prop_shell. 12. Select PSHELL as the Card Image:. 13. Select the Material tab and check the box for Assign material. 14. From the Name pull down, select Steel as the material. 15. Select the Property tab and select the box for Card edit property upon creation, and click Create. The PSHELL card image appears. A new property has been created and the material property (named Steel) is assigned to it. Look for the material ID under the MID1 field. 16. Activate the thickness field for the shell component by clicking [T]. This allows you to edit this field. Accept the default of 1.0. 17. Click return to go to the main menu. To update the component collectors with the newly created properties, click on the Components icon . Select the update radio button and click on comps. Check the box for comp_shell, and click select. Toggle <no property> to property=. Double click on property= and select prop_shell. Click update. Click return.

18. 19. 20. 21. 22. 23.

Step 4: Create Load Collectors.


Next we will create two load collectors (Constraints and Forces) and assign each a color. Follow these steps for each load collector. 1. Right click inside the Model Browser window, activate the menu over Create, and click LoadCollector. When in this popup, do not press Enter on the keyboard until you are completely done. 2. In the Name: field, type Constraints. 3. Leave the Card Image: field set to None. 4. Select a colour from the palette. 5. Click create. 6. Using the same method, create the second load collector, named Forces.

Step 5: Create Constraints


For the three nodes that show constraints in the following figure, we need to create the SPC constraints and assign them to the Constraints load collector as outlined in the following steps. 1. From the Model Browser, expand LoadCollector, right click on Constraints, and click on Make Current.

Rev 1.0 : Created on March 15, 2013, using HyperWorks Student Edition 11.0

Page 2

HW-PTC-India
Professional Training Centre

Tutorial 13: TOPOLOGY OPTIMIZATION Design Concept for a Structural C-clip.

2. From the Analysis page, enter the constraints panel.. 3. Select nodes and corresponding dofs, and click on create to create constraints as shown below.

Mesh showing the boundary conditions applied on the c-clip.

4. Click Return.

Step 6: Create Forces.


In this step, we will load the structure with two opposing forces of 100.0 N at the opposite tips of the opening of the c-clip 1. From the Model Browser, under (expanded) LoadCollector, right click on Forces, and click on Make Current. 2. From Analysis page, enter the forces panel. 3. To create the force at the top of the opening, click on the node at the top of the opening (A) of the c-clip as in the figure below.

Rev 1.0 : Created on March 15, 2013, using HyperWorks Student Edition 11.0

Page 3

HW-PTC-India
Professional Training Centre

Tutorial 13: TOPOLOGY OPTIMIZATION Design Concept for a Structural C-clip.

Opposing forces created at the opening of the c-clip.

4. Click magnitude=, enter 100.0, and press ENTER. 5. Set the switch below to y-axis. 6. Click create. An arrow, pointing up, should appear at the node on the screen. 7. Similarly, to create the force at the bottom of the opening, click on the node at the bottom of the opening (B) of the c-clip. 8. Click magnitude=, type -100.0, and press ENTER. 9. Verify that the y-axis is selected. 10. Click create.. An arrow, pointing down, should appear at the node on the screen. 11. To provide a separation between the arrows, select uniform size=, type 7, and press ENTER. 12. Click return to go back to the Analysis page.

Step 7: Create Load Cases.


The last step in establishing boundary conditions is the creation of a loadstep. 1. 2. 3. 4. 5. 6. 7. 8. From the Analysis page, enter the loadsteps panel. Click name=, type opposing forces, and press ENTER. Set type to linear static. Check the box preceding SPC. An entry field appears to the right of SPC. Click on the entry field and select constraints from the list of load collectors. Check the box preceding Load and select forces from the list of load collectors. Click Create. Click return to go back to the Analysis page.

Analyze the Baseline Model.

Rev 1.0 : Created on March 15, 2013, using HyperWorks Student Edition 11.0

Page 4

HW-PTC-India
Professional Training Centre

Tutorial 13: TOPOLOGY OPTIMIZATION Design Concept for a Structural C-clip. Step 8: Run the Analysis.
A linear static analysis of this c-clip is performed prior to the definition of the optimization process. An analysis identifies the responses of the structure before optimization to ensure that constraints defined for the optimization are reasonable. 1. From the Analysis page enter the RADIOSS panel. 2. Click save as following the input file: field. 3. Select the directory where you would like to write the OptiStruct model file and enter the name for the model, cclip.fem, in the File name: field. .fem is the recommended extension for Bulk Data Format input decks. 4. Click Save. Note the name and location of the cclip.fem file displays in the input file: field. 5. Set the export options: toggle to all. 6. Click the run options: switch and select analysis. 7. Set the memory options: toggle to memory default. 8. Set the options: field to blank. 9. Click Radioss. Upon successful completion of the analysis, the message ANALYSIS COMPLETED will appear in the command window.

Step 9: View Displacement Contour.


1. From the Radioss panel, click on HyperView. HyperView launches the cclip.mvw file which loads the model and the results files. 2. From the Results pull down menu, click on Plot and then click on Contour. 3. Choose Displacement as the Result type and set the pull-down menu below Displacement to Y. 4. Click Apply.

This shows the contour of Y displacements.

5. Verify if the values are equivalent to those in the image above. 6. From File pull-down menu, click on Exit to quit HyperView. 7. Back in HyperMesh, click return to exit the panel.

Set Up the Optimization

Rev 1.0 : Created on March 15, 2013, using HyperWorks Student Edition 11.0

Page 5

HW-PTC-India
Professional Training Centre

Tutorial 13: TOPOLOGY OPTIMIZATION Design Concept for a Structural C-clip.


The finite element model, consisting of shell elements, element properties, material properties, and loads and boundary conditions has been defined. Now a topology optimization will be performed with the goal of minimizing the amount of material to be used. Typically, removing the material in an existing volume with the same loads and boundary conditions makes the model less stiff and more prone to deformation. Therefore, we need to track the displacements (which represents the stiffness of the structure) and constrain the optimization process such that the least material necessary is used and overall stiffness is also achieved. The forces in the structure are applied on the outer nodes of the opening of the clip, making those two nodes critical locations in the mesh where the maximum displacement is likely to occur. In this tutorial, we will apply a displacement constraint on the nodes so that they would not displace more than 0.07 in the y-axis.

Step 10: Create the Topology Design Variables.


1. 2. 3. 4. From the Analysis page, enter the optimization panel. Select topology. Make sure the create subpanel is selected using the radio buttons on the left-hand side of the panel. Click DESVAR=, type d_shell, and press ENTER.

5. Click props and choose prop_shell from the list of props; click select. 6. Choose type: PSHELL. 7. Verify that the base thickness is 0.0. A value of 0.0 implies that the thickness at a specific element can go to zero, and therefore becomes a void. 8. Click Create. 9. Click return to go back to the optimization panel.

Step 11: Create a Volume Response.


1. 2. 3. 4. Enter the responses panel. Click response= and type volfrac. Click the switch below response type switch and select volumefrac from the pop-up menu. Click create.

Step 12: Create a Displacement Response.


To create a displacement as a response, you will need to supply a meaningful name for the response, set the response type to displacement, select the node for the response, and select the type of displacement (dof). 1. 2. 3. 4. Click responses. Click response= and type upperdis. Change the response type: to static displacement. Click the node labeled A (upper opening of c-clip) as shown in the figure to select it.

Rev 1.0 : Created on March 15, 2013, using HyperWorks Student Edition 11.0

Page 6

HW-PTC-India
Professional Training Centre

Tutorial 13: TOPOLOGY OPTIMIZATION Design Concept for a Structural C-clip.


5. 6. 7. 8. 9. Choose dof2 for the node. Click create. Click response= and type lowerdis. The response type: should still be static displacement. Click the node labeled B (lower opening of the c-clip) as shown in the figure.

. 10. Select dof2 and create the response. 11. Click return to go back to the optimization panel.

Step 13: Create Constraints on Displacement Responses.


In this step we set the upper and lower bound constraint criteria for this analysis. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. Select the dconstraints panel. Click constraint= and enter c_upper. Check the box for upper bound only. Click upper bound= and enter 0.07. Select response= and set it to upperdis. Click loadsteps. Check the box next to forces. Click select. Click create. Click constraint= and enter c_lower. Check the box for lower bound only. Click lower bound= and enter -0.07. Select response= and set it to lowerdis. Click loadsteps. Check the box next to forces. Click create. Click return to go back to the optimization panel.

Step 14: Define the Objective Function


1. 2. 3. 4. 5. Click objective. The switch on the left should be set to min. Click response= and select volfrac. Click create. Click return twice to exit the optimization panel.

Step 15: Run the Optimization Problem


1. From the Analysis page, click on control cards.

Rev 1.0 : Created on March 15, 2013, using HyperWorks Student Edition 11.0

Page 7

HW-PTC-India
Professional Training Centre

Tutorial 13: TOPOLOGY OPTIMIZATION Design Concept for a Structural C-clip.


2. Click next twice. 3. Click on SCREEN and return. This will make OptiStruct output the optimization iterations to the output window. 4. From the Analysis page, select OptiStruct. 5. Click save as, enter cclip_complete.fem as the file name, and click Save. 6. Click the run options: switch and select optimization. 7. Click OptiStruct to run the optimization. The message following message appears in the window at the completion of the job: OPTIMIZATION HAS CONVERGED FEASIBLE DESIGN (ALL CONSTRAINTS SATISFIED). OptiStruct also reports error messages if any exist. The file cclip_complete.out can be opened in a text editor to find details regarding any errors. This file is written to the same directory as the .fem file. 8. Close the DOS window or shell and click return. The default files that get written to your run directory include: cclip_complete.res cclip_complete.h3d HyperMesh binary results file. HyperView binary results file.

cclip_complete.HM.comp.cmf HyperMesh command file used to organize elements into components based on their density result values. This file is only used with OptiStruct topology optimization runs. cclip_complete.out OptiStruct output file containing specific information on the file setup, the setup of the optimization problem, estimates for the amount of RAM and disk space required for the run, information for each optimization iteration, and compute time information. Review this file for warnings and errors that are flagged from processing the cclip_complete.fem file. Shape file for the final iteration. It contains the material density, void size parameters and void orientation angle for each element in the analysis. This file may be used to restart a run. HyperGraph file containing data for the objective function, percent constraint violations, and constraint for each iteration. OSSmooth file with a default density threshold of 0.3. The user may edit the parameters in the file to obtain the desired results. Contains the iteration history of the objective, constraints, and the design variables. It can be used to plot curves in HyperGraph, HyperView, and MotionView. Contains information about the CPU time used for the complete run and also the break up of the CPU time for reading the input deck, assembly, analysis, convergence, etc.

cclip_complete.sh

cclip_complete.hgdata

cclip_complete.oss

cclip_complete_hist.mvw

cclip_complete.stat

Rev 1.0 : Created on March 15, 2013, using HyperWorks Student Edition 11.0

Page 8

HW-PTC-India
Professional Training Centre

Tutorial 13: TOPOLOGY OPTIMIZATION Design Concept for a Structural C-clip. Post-process the Optimization Results
OptiStruct provides element density information for all iterations, and also gives displacement and von Mises stress results (linear static analysis) for the starting and last iterations. This section describes how to view those results in HyperView.

Step 16: View an Iso Value Plot of Element Densities.


This plot provides the information about the element density. Iso Value retains all of the elements at and above a certain density threshold. Pick the density threshold providing the structure that suits your needs. 1. From the OptiStruct panel, click the HyperView button. This will launch HyperView and open the session file cclip_complete.mvw which contains two pages with the results from two files: Page 1 - cclip_complete_des.h3d: Optimization history results (element density). Page 2 - cclip_complete_s1.h3d: Subcase 1 results; initial and final (displacement stress). 2. On page 1, click in the area of the Results Browser circled below.

3. 4. 5. 6. 7. 8.

Select Design under the load case section and the last iteration listed. From Results pull down menu, click on Plot > Iso. In the panel area at the bottom of the GUI, choose Element Densities as the Result type. Set the Current Value: to 0.3. Click on Top view orientation to set the correct view. Click Apply.

Rev 1.0 : Created on March 15, 2013, using HyperWorks Student Edition 11.0

Page 9

HW-PTC-India
Professional Training Centre

Tutorial 13: TOPOLOGY OPTIMIZATION Design Concept for a Structural C-clip.

Iso value plot of element densities.

9. Move the slider below Current value: to change the density threshold. You will see the iso value in the graphics window update interactively when you scroll to a new value. Use this tool to get a better look at the material layout and the load paths from OptiStruct.

Step 17: Compare Static Contour of Original to the Optimized Material Layout.
1. In HyperView, click on the Next Page arrow toolbar button to go to page 2. This will bring up the cclip_complete_s1.h3d file, which contains the static subcase results for the first and last iteration steps. 2. Divide this page into two vertical windows using the Page Layout toolbar icon 3. 4. 5. 6. .

Click on the Top view orientation to set the correct view . From the Results pull-down menu, select Plot > Contour. Choose Displacement as the Result type, and set the pull-down menu below Displacement to Y. Click Apply.

7. Click on the Deformed toolbar button . 8. On the Deformed shape panel, change the scale value to 100, the unperformed shape to edges, and click Apply. 9. From Edit pull-down menu, click on Copy > Window, and then click on the empty window. 10. Again, from the Edit pull down menu, click Paste > Window. 11. Switch the animation mode to Linear Static . 12. With the second window selected, choose Iteration 28.

Rev 1.0 : Created on March 15, 2013, using HyperWorks Student Edition 11.0

Page 10

HW-PTC-India
Professional Training Centre

Tutorial 13: TOPOLOGY OPTIMIZATION Design Concept for a Structural C-clip.

. 13. From Edit pull down menu, click Copy > Page. 14. From the Edit pull down menu again, click Paste > Page. This will create a 3rd page on this report. 15. 16. 17. 18. Now click on the first window and click on the Contour button . Change the result type to Element Stresses (2D & 3D) (t). For Averaging method:, select Simple and click Apply. Click with the right button on the first window; choose Apply Style To, then Current Page, and select Contour.

. These stress results can be used only as reference to help understanding how far from the limits the design is. Remember that topologic optimization will show you a concept shape and the stress results should be validated during the next design phases.

Rev 1.0 : Created on March 15, 2013, using HyperWorks Student Edition 11.0

Page 11

You might also like