Tutorial: Topology Optimization of A Cantilever Beam
Tutorial: Topology Optimization of A Cantilever Beam
2000 N 2000 N
1000 mm
2000 mm 100 mm
OBJECTIVE Minimize Volume
Construct this model in any CAD system and save as IGES format. 1
Terminology
Collectors - Collectors store data for collected entities. A collected entity must
belong to only one collector.
Card image- Card images allow for creation, editing, and deletion of a solver card
within a HyperMesh model.
Property - Property entities are used to define and store 1D, 2D, and 3D property
definitions for a model.
1. Import Geometry
12. Constraints 13. Objective
10. Design
11. Responses
Variable
6. Load Collector
3
Opening HyperWorks
We will now open HyperWorks and enter into the Optistruct Profile. This will allow us to perform
finite element analysis and structural optimization.
1. Click to OptiStruct
2. Click OK
4
Import IGES File
Choose the file beam.igs to import into HyperWorks.
1. Click on file
2. Click Open
5
Import IGES
The geometry has been transferred into HyperWorks as a set of lines defining the perimeter of the
object.
1. Click Import
6
Rename Component
The default name assigned to any component which is imported into HyperWorks is lvl0. We will
change this name to Beam.
7
Create Material
9
Material Properties
The material properties are:
E (Stiffness) = 2.1e5 N/mm2 , Nu (Poission’s Ratio) = 0.3, Rho (Density) = 7.9e-6 kg/mm3
These units correspond to the ones we have established.
In the next screen, click on [T] (Element Thickness) and input a value of 1.
12
Then click Return once to come back to this screen.
Create Property
A property will now be created for storing the data relating to a solid mesh (3D elements).
13
Create Components
6. Click
create
2. Click on
create
15
Create Components
The solid component will store the data of the 3D mesh which will be created.
4. Click
create
16
2D/3D Mesh
18
Creating 2D Mesh
We will now change the view to iso-view in order to get a better view of the surfaces of the model.
19
Creating 2D Mesh
We will now choose the surface which will be meshed with 2D elements. When meshing, we will
select elems to current comp option. This will tell the program that we want the mesh to be
assigned to the current component, Shell. This will differentiate the 2D mesh from the 3D mesh.
5. Click mesh
21
Creating 3D mesh
We will now offset the 2D elements created earlier. The total thickness is set to 2000 mm and the
number of layer is set to 6. After the mesh has been created, it is represented by yellow signifying
that it corresponds to the Solid component.
5. Number of layer = to 6
1. Click on solid 6. Change initial offset = to 0
layers 7. Total thickness = to 2000
9. Click offset+
10. Click
3. Click on surfs return
8. Change to elements to current comp 22
Load Collector
4. Click on create
5. Repeat this step again but in step 2, change the name to BC. 24
The click on return to proceed to the main menu.
Boundary Conditions
The beam has a fixed boundary condition on the side surface replicating that of a cantilever beam.
25
Boundary Conditions
First we will select the nodes which will be constrained and then specify the types of constraints. The
following is the convention used in HyperWorks: dof1 = x displacement, dof2 =y displacement, dof3=z
displacement, dof3=rotation about x-axis, dof3=rotation about y-axis, dof3=rotation about z-axis. These
constraints are given with respect to the axis defined by HyperWorks shown at the bottom left hand
corner.
3. Choose the
following 8 nodes
7. Click
1. Click on create return
26
Forces
We will now create loads on the model. First we have to initiate the forces load collector by making
it current. This will tell the program that we want to create forces.
2. Click on
forces
27
Forces
We will now create forces on two nodes as defined by the problem statement, 2000 N each. Note
that a negative sign has been placed before the force in order to stay consistent with the
HyperWorks coordinate system which is shown at the bottom left of the screen.
1. Click on create
1. Click on loadsteps
29
Loadsteps
We will now gather our forces and constraints, into one loadstep. The analysis type is set to linear
elastic.
6. Click
return 30
Optimization
1. Click on
optimization
32
Topology
The topology option will allow us to define our design variable as stated in the problem statement.
This will also tell the program that we want to perform topology optimization.
1. Click on topology
33
Design Variable
The design variable we have set is the element density of the solid 3D mesh. This is one method of
differentiating between the design space and the non-design space because under the props
(properties) option, only Solid is selected. Therefore, different components can be created to
differentiate between the design/nondesign space. We will call the design variable Disp.
5. Click
2. Set desvar = Disp create
1. Click on
create
6. Click return
3. Choose PSOILD 34
Responses
We will now define the responses of the system.
1. Click on responses
35
Responses
The first response will be the magnitude of deflection at the two nodes where forces are applied.
5. Click
create
4. Click
return
37
Optimization Constraints
It is now time to set the constraints on the response.
1. Click on dconstraints
38
Optimization Constraints
A constraint will now be imposed on one of the response, the deflection. Here we are specifying
that the maximum deflection permitted is 0.02 mm at the nodes where the forces are applied, as
defined in the problem statement.
5. Click
1. Check upper create
bound = and set it
to 0.02
6. Click 39
return
Objective
We will now define the objective of the optimization.
1. Click on objective
40
Optimization Objective
The objective of the optimization, as defined in the problem statement, is to minimize the volume.
We use the response of volume and set the objective function to minimize it.
3. Click create
4. Click return
5. Click return on the next screen to reach the main menu 41
Optimization Controls
We will now activate the SCREEN control. This allows us to view the result of each iteration
performed during the optimization process.
2. Click return
two times
1. Click on screen
43
Optistruct
1. Click on OptiStruct
44
Optistruct
It is very important that a new folder is created because several data files are saved at the same
location. After the optimization is complete, the results can be viewed using HyperView.
2. Click on OptiStruct
3. Click OK
1. Click on Design
2. Click on Iteration 7
46
Iso Density Plot
There are several ways of viewing the results in HyperView. An iso element density plot give us the
ability to only view elements which have densities over, under, or at a certain value. This can be
used to set an element density which gives us a feasible solution. Note that as you vary the
densities, the dark green component (2D elements) does not change because it is a “non-design”
area.
3. Click apply
47
2. Choose Element Densities
Contour Plot
A contour plot is another way of viewing results. Colours correspond to different density values
with red being close to 1.0 and blue being close to 0.
3. Click apply
48
Masking Element
Another way of viewing results is to mask elements. For this tutorial, we will mask elements with
densities under 0.45 because in the iso density plot this seemed like a good solution.
2. Choose Elements
49
Masking Elements
By performing this step, the program will highlight all elements with element densities under 0.45.
1. Choose Elements
4. Click Add
3. Enter <=0.45
50
Masking Elements
The final solution we have obtained is a simple truss like structure.
1. Choose Mask
51
Final Solution
Starting with a cantilever beam with a point load, by applying topology optimization, we have
obtained a truss structure. This simple yet powerful example clearly shows the potential of
topology optimization.
Topology
Optimization
52