# OS-SL-T: 1060 Free Shape Optimization Analysis of Bracket

This tutorial demonstrates how to solve a linear static analysis for Bracket model and how to optimize the rib shape of the bracket using Free shape optimization analysis.

Before you begin, copy the file(s) used in this tutorial to your working directory.
The following exercises are included:
• Solve a Linear static analysis for the model
• Solve a Free shape Optimization analysis for the model
• View the results

Launch SimLab.

## Import the Model

1. From the menu bar, click File > Import > Database.
An Import File dialog opens.
2. Select the BaseModel.gda file you saved to your working directory from the BaseModel.zip file.
3. Click Open.
The BaseModel.gda file only contains geometric data.
The BaseModel.gda file is loaded into the current SimLab database.

## Solve Linear Static Analysis

In the following steps, linear static analysis will be defined for the model.

Pressure load will be applied on the face of Sleeve body and Constraints will be applied on the faces of the Bracket body. Tie contact is defined between the sleeve and bracket body. The model setup is solved and the maximum von mises stress value is observed from the analysis.

### Define the Solution

1. From the Solutions ribbon, Physics group, click the Structrual tool.
The Create Solution dialog opens.
2. From the Create Solution dialog, complete the following and click OK.
1. For name, enter BracketAnalysis.
2. For Solver type, select OptiStruct.
3. For Solution type, select Linear Static.
4. For Select bodies, select all the bodies of the model.

### Assign Property to Bodies

In this step, you will assign the Cast Iron property for the Carrier and Cover bodies and the Steel property for the Bolts.

Since SimLab has default materials defined, there is no need to define materials.

1. From the Analysis ribbon, Property group, click the Property tool.
The Analysis Property dialog opens.
2. In the modeling window, select the Snap body.
3. In the Analysis Property dialog, complete the following and click Apply.
1. For Name, enter Sleeve.
2. For Entity, select Solid.
3. For Type, select Solid.
4. For Behavior, select Isotropic.
5. For Material, select Steel.
4. In the modeling window, select the Bracket body.
5. In the Analysis Property dialog, complete the following and click OK.
1. For Name, enter Bracket.
2. For Entity, select Solid.
3. For Type, select Solid.
4. For Behavior, select Isotropic.
5. For Material, select Steel.
The property for each body is created in the Property tab of the Model Browser.

### Pressure Load on Sleeve Face

1. From the Analysis ribbon, Loads and Constraints group, click the Loads tool.
2. From the secondary tool set, click the Pressure tool.
The Pressure dialog opens.
3. In the Pressure dialog, enter Pressure for the Name.
4. For Pressure, enter 40.
5. In the modeling window, select the Sleeve body.
6. In the Pressure dialog, click OK.

### Fixed Constraint on Bolt Holes

In this step, you will create fixed constraints on the bolt holes of the bracket body.

1. From the Analysis ribbon, Loads and Constraints group, click the Contraints tool.
2. From the secondary tool set, click the Fixed tool.
The Fixed Constraint dialog opens.
3. In the Fixed Constraint dialog, enter Constraints for the Name.
4. Enable the X, Y, and Z checkboxes under Displacement.
5. In the modeling window, select the bolt hole faces of the Bracket body.
6. In the Fixed Constraint dialog, click OK.

### Symmetry Constraints on Side Faces

Since the Bracket is symmetrical, fixed constraints are defined on the end faces of the model to represent the symmetry.

1. From the Analysis ribbon, Loads and Constraints group, click the Contraints tool.
2. From the secondary tool set, click the Fixed tool.
The Fixed Constraint dialog opens.
3. In the Fixed Constraint dialog, enter Symmetry_Constraints for the Name.
4. Enable the X checkbox under Displacement.
5. In the modeling window, select the side faces of the model.
6. In the Fixed Constraint dialog, click OK.

### Contact Between Sleeve and Bracket Body

1. From the Analysis ribbon, Loads and Constraints group, click the Define Auto Contact satelite tool.
The Define Auto Contact dialog opens.
2. In the Define Auto Contact dialog, enter bracket_Sleeve for Name.
3. In the modeling window, select the Bracket body for Main body.
4. In the modeling window, select the Sleeve body for Secondary body.
5. In the Define Contact dialog, define the following parameters and click OK.
1. For Trim, select Secondary and Main.
2. For Tolerance, enter 0.1.
3. For Face type, select Cylindrical.
4. For Contact Type, select TIE.

### Solve the Solution

In the Solutions tab of the modeling window, right-click on Results and select Update from the context menu.
The Solution begins to solve.
The results are automatically loaded in the modeling window.

## Solve Free Shape Optimization

In the following steps, the shape of the rib will be optimized using the Free shape optimization method to maximize the displacement and constraint the von-mises stress.

### Define Optimization

1. From the Solutions ribbon, Advanced group, click the Optimization tool.
The Define Optimization dialog opens.
2. In the Define Optimization dialog, enter Optimize_Bracket for the Name.
3. Select Free shape for method and click OK.
The Free shape optimization solution is defined.

### Create Design Space

1. From the Analysis ribbon, Optimization group, click the Design Space tool.
The FreeShape Design Space dialog opens.
2. In the FreeShape Design Space dialog, enter Design_Space for the Name.
3. For Bodies/Faces/Nodes, select the face of the Rib in the modeling window and click Apply.

### Create Design Space Constraints

Once the design space is defined, constraints must be defined.
1. In the FreeShape Design Space dialog, click the Constraints tab.
2. For Name, enter Design_Space_Constraints.
3. For Pattern Constraint, enable the Bilateral Symmetry checkbox.
4. Define the axis for the Pattern Constraint.
1. Click Define Direction.
The Define Axis dialog opens.
2. In the Define Axis dialog, verify the 2 Nodes checkbox is enabled.
3. In the modeling window, pick two nodes of the rib face.
4. Click OK.
5. In the FreeShape Design Space dialog, click under Grid Constraint.
6. For Face, select the rib face in the modeling window.
7. Click Define Vector.
The Define Vector dialog opens.
8. In the Define Vector dialog, select Element normal for Direction.
9. In the modeling window, select any element of the Rib face and click OK.
10. Create Grid constraint on the supporting face of the bracket.
1. In the FreeShape Design Space dialog, click under Grid Constraint.
2. For Face, select the supporting faces in the modeling window.
3. For Type, select Fixed.
4. Click OK.

### Create Responses

In this step, you will define displacement and stress response.

You will also define the limit for the stress response.

1. From the modeling window, right-click the Optimization solution and select Set Current from the context menu.
2. From the Analysis ribbon, Optimization group, click the Response tool.
The Response dialog opens.
3. Define displacement response.
1. In the Response dialog, enter Disp_Resp for the Name.
2. For Classification, select All.
3. For Response type, select Static displacement.
4. In the modeling window, select the corner node of the Bracket body.
5. In the Response dialog, click Apply.
4. Define stress response.
1. In the Response dialog, enter Stress_Resp for the Name.
2. For Response type, select Static stress homogeneous material.
3. In the modeling window, select the bracket body.
4. For Response Component, select Von Mises.
5. Click Apply.
5. Set the limit for the Stress response.
1. In the Response dialog, click the Constraint tab.
2. For Name, enter Stress_Resp_Constraint.
3. For Response, select Stress_Resp.
4. Enable the Upper bound checkbox and enter 200.
5. Click OK.
The responses and the constraint for the response is defined.

### Define Objective

The objective of this optimization is to maximize the displacement.

1. From the Analysis ribbon, Optimization group, click the Objective tool.
The Optimization Objective dialog opens.
2. In the Optimization Objective dialog, select Maximize for the type.
3. For Response, select Disp_Resp and click OK.

## Solve and View Results

### Solve the Solution

From the Solutions tab of the Model Browser, right-click Results under the Optimize_Bracket solution and select Update from the context menu.
The Solution begins to solve. Once solved, the results are automatically loaded back into the database.

### Interpret the Results

View the optimized shape of the rib.
1. In the Animation toolbar, click the Deformation Settings icon and enter 1 for Auto scale.
2. For Deformation, select XYZ.