Professional Documents
Culture Documents
OptiStruct 12.0 Tutorials PDF
OptiStruct 12.0 Tutorials PDF
0
Tutorials
Altair Engineering Support Contact Information
Web site www.altairhyperworks.com
In addition, the following countries have resellers for Altair Engineering: Colombia, Czech Republic, Ecuador, Israel, Russia,
Netherlands, Turkey, Poland, Singapore, Vietnam, Indonesia
Official offices with resellers: Canada, China, France, Germany, India, Malaysia, Italy, Japan, Korea, Spain, Taiwan, United
Kingdom, USA
In addition to HyperWorks trademarks noted above, GridWorks, PBS GridWorks, PBS Professional, PBS, PBS Works
and Portable Batch System are trademarks of ALTAIR ENGINEERING INC. All are protected under U.S. and international laws
and treaties. Copyright 1994-2013.
Additionally, the Altair software is protected under patent #6,859,792 and other patents pending.
All other marks are the property of their respective owners.
ALTAIR ENGINEERING INC. Proprietary and Confidential. Contains Trade Secret Information. Not for use or disclosure outside of
ALTAIR and its licensed clients. Information contained in HyperWorks shall not be decompiled, disassembled, or unlocked,
reverse translated, reverse engineered, or publicly displayed or publicly performed in any manner. Usage of the software is only as
explicitly permitted in the end user software license agreement.
OptiStruct
........................................................................................................................................... 1
Topology Optimization
............................................................................................................................................... 2
OS-2000: Design Concept for a Structural C-clip
................................................................................................................................... 3
OS-2005: Design Concept for a Structural C-clip with Minimum Member Size
Control................................................................................................................................... 18
OS-2010: Design Concept for an Automotive Control Arm
................................................................................................................................... 22
OS-2020: Increasing Natural Frequencies of an Automotive Splash Shield with
Ribs ................................................................................................................................... 37
OS-2030: Control Arm Topology Optimization with Draw Direction Constraints
................................................................................................................................... 53
OS-2040: Spot Weld Reduction using CWELD and 1-D Topology Optimization
................................................................................................................................... 62
OS-2050: Pattern Repetition using Topology Optimization
................................................................................................................................... 67
OS-2060: Symmetry and Draw Direction Applied Simultaneously in Topology
Optimization
................................................................................................................................... 77
OS-2070: Topology Optimization of a Reduced Model using DMIG
................................................................................................................................... 84
OS-2080: Topology Optimization of a Hook with Stress Constraints
................................................................................................................................... 98
OS-2090: Topology Optimization with Extrusion Constraints
................................................................................................................................... 106
OS-2095: Frequency Response Optimization of a Rectangular Plate
................................................................................................................................... 113
OS-2098: Topology Optimization of an Excavator Arm Model
................................................................................................................................... 134
Topography Optimization
............................................................................................................................................... 142
OS-3000: Topography Optimization of a Plate Under Torsion
................................................................................................................................... 143
OS-3010: Topography Optimization of an L-bracket
................................................................................................................................... 155
OS-3020: Automatic Recognition of Bead Results from Topography Optimization of
an L-bracket
................................................................................................................................... 164
OS-3030: Random Response Optimization
................................................................................................................................... 170
Combination Optimization
............................................................................................................................................... 177
OS-3100: Combined Topology and Topography Optimization of a Slider
Suspension
................................................................................................................................... 178
OS-3200: Optimization-driven Design of a Composite Aircraft Underbelly Fairing
................................................................................................................................... 186
Size Optimization
............................................................................................................................................... 207
OS-4000: 3-D Size Optimization of a Rail Joint
................................................................................................................................... 208
OS-4010: Size Optimization of a Welded Bracket
................................................................................................................................... 219
OS-4020: Composite Bike Frame Optimization
................................................................................................................................... 228
OS-4030: Discrete Size Optimization of a Welded Bracket
................................................................................................................................... 239
OS-4040: Size Optimization of a Shredder
................................................................................................................................... 248
OS-4050: Optimization of a Horizontal Tail Plane
................................................................................................................................... 261
OS-4070: Free-sizing Nonlinear Gap Optimization on an Airplane Wing Rib
................................................................................................................................... 292
OS-4080: Minimization of the Maximum Stress of a Rotating Bar: A Size
Optimization
................................................................................................................................... 303
Topology Optimization
Topography Optimization
Combination Optimization
Size Optimization
Shape Optimization
OS-2005: Design Concept for a Structural C-clip with Minimum Member Size Control
OS-2040: Spot Weld Reduction using CWELD and 1-D Topology Optimization
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.
Exercise
2. Choose the O ptiStruct user profile by selecting the radio button beside it.
3. Click O K.
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.
2. Select the cclip.hm file, located in the HyperWorks installation directory under
<install_directory>/tutorials/hwsolvers/optistruct/.
3. Click O pe n.
The cclip.hm database is loaded into the current HyperMesh session, replacing any
existing data. The database only contains geometric data and the mesh.
2. Right-click inside of the Model Browser window, activate the menu over Create, and
click M a te ria l.
When in this pop-up, do not press the ENTER key until you are done.
5. Select the box for Card edit material upon creation and click C re a te .
9. Click re turn.
10. Right-click inside the Model Browser window, activate the menu over Create, and click
Pro pe rty .
13. Select the Material tab and check the box for Assign material.
15. Select the Property tab and select the box for Card edit property upon creation, and
click C re a te .
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.
This allows you to edit this field. Accept the default of 1.0.
18. To update the component collectors with the newly created properties, click on the
Components icon .
1. Right-click inside the Model Browser window, activate the menu over Create, and click
Lo a d C o lle cto r.
When in this popup, do not press ENTER on the keyboard until you are completely done.
5. Click C re a te .
6. Using the same method, create the second load collector, named Forces.
1. From the Model Browser, expand Load Collector, right-click on C o ns tra ints , and click
on M a ke C urre nt.
3. Select nodes and corresponding dofs, and click on cre a te to create constraints, as shown
below.
4. Click re turn.
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.
6. Click cre a te .
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.
11. To provide a separation between the arrows, select uniform size=, type 7, and press
5. Click on the entry field and select C o ns tra ints from the list of load collectors.
6. Check the box preceding LOAD and select Fo rce s from the list of load collectors.
7. Click cre a te .
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 Sa v e .
Note the name and location of the cclip.fem file displays in the input file: field.
9. Click R a dio s s .
Upon successful completion of the analysis, the message ANALYSIS COMPLETED will
appear in the command window.
HyperView launches the cclip.mvw file which loads the model and the results files.
2. From the Results menu, click on Plo t and then click on C o nto ur.
3. Choose D is pla ce m e nt as the Result type and set the menu below Displacement to Y .
4. Click Apply .
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.
2. Select to po lo gy .
3. Make sure the create subpanel is selected using the radio buttons on the left-hand side
of the panel.
5. Click pro ps and select pro p_s he ll from the list of props;
click s e le ct.
A value of 0.0 implies that the thickness at a specific element can go to zero, and
therefore becomes a void.
8. Click cre a te .
3. Click the switch below response type switch and select v o lum e fra c from the pop-up
menu.
4. Click cre a te .
1. Click re s po ns e s .
4. Click the node labeled A (upper opening of the c-clip) as shown in the figure to select it.
6. Click cre a te .
9. Click the node labeled B (lower opening of the c-clip) as shown in the figure to select it.
6. Click lo a ds te ps .
8. Click s e le ct.
9. Click cre a te .
14. Click lo a ds te ps .
4. Click cre a te .
2. Click ne xt twice.
This will make OptiStruct output the optimization iterations to the output window.
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.
The default files that get written to your run directory include:
cclip_complete.sh 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.
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.
This will launch HyperView inside the HyperMesh Desktop and open the session file
cclip_complete.mvw which contains two pages with the results from two files:
3. Select D e s ign under the load case section and the la s t ite ra tio n listed.
5. In the panel area at the bottom of the GUI, choose Element Densities as the Result
8. Click Apply .
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.
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 .
8. On the Deformed shape panel, change the scale value to 100, the undeformed shape
to e dge s , and click Apply .
9. From Edit menu, click on C o py > W indo w, and then click on the empty window.
12. With the second window selected, choose Ite ra tio n 28.
15. Now click on the first window and click on the Contour button .
17. For Averaging method:, select Sim ple and click Apply .
18. Click with the right button on the first window; choose Apply Sty le To , then C urre nt
Pa ge , and select C o nto ur.
Remember that topologic optimization will show you a concept shape and the stress
results should be validated during the next design phases.
Performing topology optimizations early in the conceptual design stage results in the
generation of a good baseline design and contributes to a shorter design cycle. One
challenge with post-processing topology optimization results is that the results may have
several intermediate density elements or checkerboard patterns which can be interpreted
either as solid members or as a void. If these semi-dense elements are interpreted as thin
members, the final design is harder to manufacture.
OptiStruct offers the minimum member size control method which provides some control over
member size in the final topology designs by defining the least dimension required in the final
design. It helps achieve a discrete solution by eliminating the intermediate density elements
and checkerboard density pattern, resulting in a discrete and better-reinforced structure,
which is easier to interpret and also easier to manufacture.
Exercise
This optimization problem applies the technique of minimum member size control on the
elements of the model to achieve a discrete solution.
The following exercise is an OptiStruct topology optimization and covers the following
processes:
Step 1: Launch the HyperMesh Desktop, Load the User Profile, and
Retrieve a File
1. Launch HyperMesh Desktop, choose the O ptiStruct user profile in the User Profiles
dialog, and click O K.
User Profiles can also be accessed from the Preferences menu on the toolbar.
5. Use the file browser to select the cclip_complete.fem file, located in the HyperWorks
installation directory under <install_directory>/tutorials/hwsolvers/optistruct/
and click O pe n.
2. Click the radio button to the left of two nodes to select it.
4. N2 is highlighted, indicating that it is active. Select another node on the same element.
5. Repeat step 3 and 4 a few times using different elements to obtain an average element
size.
The average element size for this model is about 2.5. It is recommended that the MINDIM
value be three times larger than this average element size unless the element's mesh is
aligned; in which case it can be two times larger.
7. Click Ana ly s is .
9. Click to po lo gy .
11. Click re v ie w.
13. Click the toggle next to minmemb off to activate mindim= and set the value to 5.
A minimum member size control has been applied on this topology optimization problem.
This will launch HyperView within HyperMesh Desktop and open the session file load
cclip_complete_min_member.mvw that contains two pages with the results from two
files:
2. Select Design under the load case column and the last iteration to review the optimized
iteration result.
5. Click Apply .
7. Compare this image to the one we achieved in the previous optimization without the
application of minimum member size control, OS-2000.
The iso value plot displayed is similar to the one we saw previously. Notice the smaller
members in the original iso surface plot are replaced by a more discrete rib pattern. This
design is easier to manufacture.
This tutorial uses OptiStruct's topology optimization functionality to create a design concept
for an automotive control arm required to meet performance specifications. The finite
element mesh containing designable (blue) and non-designable regions (yellow) is shown in
the figure below. Part specifications constrain the resultant displacement of the point where
loading is applied for three load cases to 0.05mm, 0.02mm, and 0.04mm, respectively. The
optimal design would use as little material as possible.
Finite element mesh containing designable (blue) and non-designable (yellow) material.
A finite element model representing the designable and non-designable material (shown in
figure) is imported into HyperMesh. Appropriate properties, boundary conditions, loads, and
optimization parameters are defined and the OptiStruct software is used to determine the
optimal material distribution. The results (the material layout) are viewed as contours of a
normalized density value ranging from 0.0 to 1.0 in the design space. Isosurfaces are also
used to view the density results. Areas that need reinforcement will tend towards a density
of 1.0.
Exercise
Step 1: Launch the HyperMesh Desktop, Set the User Profile and
Retrieve the File
1. Launch HyperMesh Desktop.
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. The User Profiles GUI can
also be accessed from the Preferences menu on the toolbar.
4. Select the carm.hm file, located in the HyperWorks installation directory under
<install_directory>/tutorials/hwsolvers/optistruct/.
5. Click O pe n.
2. Right-click inside the Model Browser and, from the C re a te menu, select M a te ria l.
5. Select the box for Card edit material upon creation and click C re a te .
8. Click re turn.
9. Right-click inside the Model Browser and, from the C re a te menu, select Pro pe rty .
11. For Card image:, choose PSO LID as the property type.
13. Check the box for Assign material and from the Name menu, select Ste e l as the
material.
15. Right-click inside the Model Browser and, from the C re a te menu, select Pro pe rty .
17. For Card image:, choose PSO LID as the property type.
18. Select the Material tab and check the box for Assign material.
20. Click C re a te .
21. Click on the Components icon to update the component collectors with the newly
created properties.
23. Click on co m ps , check the nondesign box, and then click s e le ct.
1. Right-click inside the Model Browser and, from the C re a te menu, select Lo a dC o lle cto r.
When in this popup, do not press the ENTER key on the keyboard until you are completely
done.
5. Click C re a te .
1. From the Model Browser, expand LoadCollectors, right-click on SPC , and click on M a ke
C urre nt.
3. Make sure the create subpanel is selected using the radio buttons on the left-hand side
of the panel.
5. Select the node at one end of the bushing (see the figure below) by clicking on it in the
graphics window.
6. Constrain dof1, dof2, and dof3; make sure dofs 1, 2, and 3 are checked and dofs 4, 5,
and 6 are unchecked.
Dofs with a check will be constrained, while dofs without a check will be free.
7. Click cre a te .
8. Select the node at the other end of the bushing (see the following figure) by clicking on it
in the graphics window.
9. Constrain dof2 and dof3; make sure only dofs 2 and 3 are checked.
11. Click no de s and select by id from the extended entity selection window.
12. Type the value 3239 and press the E NTE R key.
13. This selects node ID 3239 (see the next figure), which corresponds to the shock absorber
mounting location.
4. Type the node number 2699 and press the E NTE R key. This selects the node where the
force is being applied.
7. Click cre a te .
An arrow, pointing the x direction, should appear at the node on the screen.
8. For better visualization of the arrows, select unifo rm s iz e = , type 100, and press E NTE R.
9. From the Model Browser, under the expanded LoadCollectors, right-click on C o rne r,
and click on M a ke C urre nt.
10. Click no de s and select by id from the extended entity selection menu.
An arrow pointing in the Y direction should appear at the node on the screen.
15. From the Model Browser, under the expanded LoadCollectors, right-click on Po tho le ,
and click M a ke C urre nt.
16. Click no de s and select by id from the extended entity selection menu.
An arrow, pointing in the Z direction, should appear at the node on the screen.
5. Click on the entry field and select SPC from the list of load collectors.
6. Check the box preceding Load and select B ra ke from the list of load collectors.
7. Click C re a te .
8. Similarly create the load cases Corner [by selecting the load collectors C o rne r and SPC ]
and Pothole [by selecting the load collectors Po tho le and SPC ].
3. Make sure the create subpanel is selected using the radio buttons on the left-hand side
of the panel.
7. Click C re a te .
A topology design space definition, design_prop, has been created. All elements
organized in this design property collector are now included in the design space.
3. Click on the switch below response type and select v o lum e from the pop-up menu.
5. Click cre a te .
7. Click on the switch below response type and select s ta tic dis pla ce m e nt from the pop-
up menu.
8. Click no de s and select by ID from the extended entity selection menu that pops up.
4. Click cre a te .
6. Click lo a ds te ps .
8. Click s e le ct.
9. Click cre a te .
14. Click lo a ds te ps .
21. Click lo a ds te ps .
3. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, carm_check.fem, in the File name: field.
4. Click Sa v e .
5. Note the name and location of the carm_check.fem file displays in the input file: field.
9. Click O ptiStruct.
Once the processing is complete (indicated in the solver GUI window which pops up), view
the file carm_check.out. This is the OptiStruct output file containing specific information
on the file setup, optimization problem setup, RAM and disk space requirement for the run.
Review this file for possible warnings and errors.
Is the optimization problem set up correctly? See Opt im iza t ion Proble m Pa ra m e t e rs
section of the carm_check.out file.
The objective function? See Opt im iza t ion Proble m Pa ra m e t e rs section of the
carm_check.out file.
The constraints? See Opt im iza t ion Proble m Pa ra m e t e rs section of the carm_check.out
file.
What is the recommended amount of RAM for an In-Core solution? See M e m ory
Est im a t ion Inform a t ion section of the carm_check.out file.
Is there enough disk space to run the optimization? See Disk Spa c e Est im a t ion
Inform a t ion section of the carm_check.out file.
The 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 carm_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.
carm_complete.oss OSSmooth file with a default density threshold of 0.3. The user
may edit the parameters in the file to obtain the desired
results.
carm_complete.sh Shape file for the final iteration. It contains the material
density, void size parameters and void orientation angle for
each element in the analysis. The .sh file may be used to
restart a run and, if necessary, run OSSmooth files for topology
optimization.
Element density results are output to the carm_complete_des.h3d file from OptiStruct for all
iterations. In addition, Displacement and Stress results are output for each subcase for the
first and last iterations by default into carm_complete_s#.h3d files, where # specifies the
sub case ID. This section describes how to view those results in HyperView.
HyperView is launched with the HyperWorks Desktop and the results are loaded. A
message window appears to inform about the successful loading of the model and result
files into HyperView. Notice that all three .h3d files get loaded, each in a different page
of HyperView.
3. Click the Next Page toolbar button to move to the second page.
The second page has the results from the carm_complete_s1.h3d file. Note that the
name of the page is displayed as Subca s e 1 B ra ke to indicate that the results
correspond to subcase 1.
6. Select the first drop-down menu below Result type: and select D is pla ce m e nt [v ].
10. Set Result type: to D is pla ce m e nt (v ), Scale: to m o de l units , and Type: to Unifo rm .
This means that the maximum displacement will be 10 Model units and all other
displacements will be proportional.
12. Below the Undeformed shape: section, click on the drop-down menu next to Show and
select W ire fra m e .
A deformed plot of your model with displacement contour should be visible, overlaid on the
original undeformed mesh.
14. Click the Sta rt/ Pa us e Anim a tio n button to animate the model .
Does the deformed shape look correct for the boundary conditions applied to the mesh?
The contour now shows the displacement results for Subcase 1 (brake) and iteration 18
which corresponds to the end of the optimization iterations.
17. Click on the Next Page toolbar button to move to the third page.
The third page which has results loaded from carm_complete_s12.h3d file, is displayed.
Note that the name of the page is displayed as Subca s e 2 co rne r to indicate that the
results correspond to subcase 2.
18. Repeat this process to display the displacement contours and deformed shape of the
model for the second subcase.
Does the deformed shape look correct for the boundary conditions applied to the mesh?
19. Similarly, review the displacements and deformation for subcase 3 (pothole).
1. Click the Previous Page button until the name of the page is displayed as Design
History, indicating that the results correspond to optimization iterations.
Note the Result type: is Element Densities [s]; this should be the only results type in
the file_name_des.h3d file.
Note the contour is all blue this is because your results are on the first design step or
Iteration 0.
Each element of the model is assigned a legend color, indicating the density of each
element for the selected iteration.
If there are many elements with intermediate densities, the DISCRETE parameter may
need to be adjusted. The DISCRETE parameter (set in the opti control panel on the
optimization panel) can be used to push elements with intermediate densities towards 1
or 0 so that a more discrete structure is given.
In this model, refining the mesh should provide a more discrete solution; however, for the
purposes of this tutorial, the current mesh and results are sufficient.
Regions that need reinforcement tend towards a density of 1.0. Areas that do not need
reinforcement tend towards a density of 0.0.
If it is not, the optimization has not progressed far enough. Allow more iterations and/or
decrease the OBJTOL parameter (also set in the o pti co ntro l panel).
If adjusting the discrete parameter, refining the mesh, and/or decreasing the objective
tolerance does not yield a more discrete solution (none of the elements progress to a
density value of 1.0), review the set up of the optimization problem. Some of the defined
Step 15: View an Iso Value Plot on Top of the Element Densities
Contour
This plot provides the information about the element density. Is o Va lue retains all of the
elements at and above a certain density threshold. Pick the density threshold providing the
structure that suits your needs.
2. From the panel area (lower portion of the GUI), choose E le m e nt D e ns itie s as the Result
type.
3. Click Apply .
5. 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.
A preliminary design of stiffeners in the form of ribs for an automotive splash shield will be
generated in this tutorial. The objective is to increase the natural frequency of the first
normal mode using topology to identify locations for ribs in the designable region (shown in
red).
Finite element mesh containing designable (red) and non-designable (blue) material.
Exercise
Step 1: Launch the HyperMesh Desktop, Load the User Profile, and
Retrieve a File
1. Launch HyperMesh Desktop.
User Profiles can also be accessed from the Preferences menu on the toolbar.
7. Select the sshield_opti.fem file, located in the HyperWorks installation directory under
<install_directory>/tutorials/hwsolvers/optistruct/ and click O pe n.
8. Click Im po rt.
The sshield_opti.fem OptiStruct input file is loaded into the current HyperMesh session.
5. Click C re a te .
6. Right-click inside the Model Browser again to select C re a te , and then Lo a dC o lle cto r.
10. Select the box for Card edit loadcollector upon creation and click C re a te .
If a quantity in brackets does not have a value below it, it is off. To change this, click on
the quantity in brackets and an entry field will appear below it. Click in the entry field,
and a value can be entered.
We just created a load collector which defines data needed to perform real eigenvalue
analysis (vibration or buckling) and specified the solver to calculate the first two modes
between a frequency range of 0 and 3000 Hz.
The load collector name changes to bold to signify that it is now the current load
collector.
3. Make sure the create subpanel is selected using the radio buttons on the left-hand side
of the panel.
4. Click the entity selection switch and select no de s from the pop-up menu.
9. Click cre a te .
Two constraints are created. Constraint symbols (triangles) appear in the graphics
window at the selected nodes. The number 123456 is written beside the constraint
symbol, indicating that all dofs are constrained.
3. Click the type switch and choose no rm a l m o de s from the pop-up menu.
5. Click on the entry field and select co ns tra ints from the list of load collectors.
7. Click on the entry field (=) and select e igrl from the list of load collectors.
8. Click cre a te .
A RADIOSS loadstep has been created which references the constraints in the load
collector spc and the eigenvalue extraction data in the load collector eigrl.
3. Select the directory where you would like to write the RADIOSS model file and enter the
name for the model, sshield_analysis.fem, in the File name: field.
The .fem file name extension is the suggested extension for RADIOSS input decks.
4. Click Sa v e .
Note that the name and location of the sshield_analysis.fem file now displays in the
9. Click R a dio s s .
This launches the RADIOSS job. If the job is successful, new results files can be seen in
the directory where the RADIOSS model file was written. The sshield_analysis.out file
is a good place to look for error messages that will help to debug the input deck if any
errors are present.
Eige nv e c t or results are output from RADIOSS for a normal modes analysis by default. This
This button launches HyperView in page 2 of the HyperWorks Desktop and loads the
session file sshield_analysis.mvw that is linked with the sshield_analysis.h3d file.
A Message Log pop-up will inform about the result files loaded into HyperView.
4. Click the drop-down menu, as shown in the following image of the Results Browser.
The window will appear showing the calculated first two natural frequencies between 0
and 3000Hz.
Scale: M o de l Units
Type: Unifo rm
Value: 10
8. Click Apply .
10. Move the Max Frame Rate: slider between 60 and 1 to increase or decrease the
animation speed.
11. Click the Pla y / Pa us e Anim a tio n button to start the animation.
An animation of the mode shape should be seen for the first frequency.
12. Click the Pla y / Pa us e Anim a tio n icon again to stop the animation.
13. Use the page delete button contained within the page control toolbar to delete the
HyperView page as seen in the figure below.
4. Select the create subpanel using the radio buttons on the left-hand side of the panel.
6. Click pro ps .
A topology design space definition, shield, has been created. All elements referring to
the design property collector (elements organized into the "design" component collector)
are now included in the topology design space. The thickness of these shells can vary
between 0.3 (base thickness defined above) and the maximum thickness defined by the T
(thickness) field on the PSHELL card.
The object of this exercise is to determine where to locate ribs in the designable region.
Therefore, a non-zero base thickness is defined, which is the original thickness of the
shells. The maximum thickness, which is defined by the T field on the PSHELL card, should
be the allowable depth of the rib.
Currently the T field on the PSHELL card is still set to 0.3 (the original shell thickness).
We will change this to 1.0 so that the ribs of a maximum height of 0.7 units can be
obtained by the topology optimization.
13. Set the entity selection to pro ps using the down arrow next to the listed entity.
14. Click the yellow pro ps button and check the box next to de s ign.
16. Select the ca rd im a ge = and select PSH E LL from the pop-up menu.
The PSHELL card image for the design component collector pops up.
Two responses will be defined here: the first frequency that will be the objective function and
a volume fraction response that will be used as a constraint.
3. Click on the switch below response type and select fre que ncy from the pop-up menu.
5. Click cre a te .
A response, freq1, is defined for the frequency of the first mode extracted.
7. Click on the switch below response type and select v o lum e fra c from the pop-up menu.
9. Click cre a te .
A response, volfrac, is defined for the volume fraction of the design space.
1. Enter the o bje ctiv e panel from within the optimization panel.
2. Click on the switch in the upper left corner of the panel, and select m a x from the pop-up
menu.
4. Click lo a ds te p and select the fre que ncie s loadstep previously defined.
5. Click cre a te .
1. Enter the dco ns tra ints panel from the optimization panel.
6. Click cre a te .
A constraint is defined on the response volfrac. The constraint is an upper bound with a
value of 0.40. The constraint applies to all subcases as the volumefrac response is a
global response. In this exercise we are allowing the topology optimization to use
additional volume with which it can come with ribsvconstr.
3. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, sshield_optimization.fem, in the File name: field.
Note that the name and location of the sshield_optimization.fem file now displays in
the input file: field.
8. Click O ptiStruct.
This launches the OptiStruct job. If the job is successful, new results files can be seen in
the directory where the OptiStruct model file was written. The sshield_optimization.
out file is a good place to look for error messages that will help to debug the input deck if
any errors are present.
With topology optimization of shell elements, Element Density and Element Thickness results
are output from OptiStruct for all iterations. In addition, Eigenvector results are output for
the first and last iterations by default. This section describes how to view those results in
HyperView.
This launches HyperView with the HyperWorks Desktop and loads the session file
sshield_optimization.mvw that is linked with the sshield_optimization_des.h3d and
the sshield_optimization_s1.h3d files.
5. Click Apply .
Each element of the model is assigned a legend color, indicating the thickness of each
element for the selected iteration.
Regions that need reinforcement tend towards a density of 1.0. Areas that do not need
reinforcement tend towards a density of 0.0.
In this case, it is. If it is not, the optimization has not progressed far enough. Allow more
iterations and/or decrease the OBJTOL parameter (set in the o pti co ntro l panel).
7. Use the page delete button contained within the page control toolbar to delete the
HyperView page, as seen in the figure below.
Based on the topology results obtained above, a number of ribs were added to the model.
The new design sshield_newdesign.fem, which includes these ribs can be found in the
HyperWorks installation directory under <install_directory>/tutorials/hwsolvers/
optistruct/.
or
3. Click de le te m o de l.
A message will pop-up asking you if you want to delete the current model.
4. Click Y e s .
Deleting the current model clears the current HyperMesh database. Information stored in
.hm files on your disk is not affected.
6. Click Im po rt.
The sshield_newdesign.fem OptiStruct input file is loaded into the current HyperMesh
session. The ribs which were added are in the ribs component collector.
7. Click C lo s e .
3. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, sshield_newdesign.fem, in the File name: field.
4. Click Sa v e .
Note that the name and location of the sshield_newdesign.fem file now displays in the
input file: field.
9. Click R a dio s s .
This button launches HyperView in the HyperMesh Desktop and loads the file
sshield_newdesign.mvw that is linked with the file sshield_newdesign.h3d.
A Message Log window opens, indicating the location of the .h3d file.
Type: Unifo rm
Value: 10
7. Click Apply .
An animation of the mode shape should be seen for the first frequency.
What is the percentage increase in frequency for your first mode (sshield_analysis.fem vs.
sshield_newdesign)?
We have seen that the frequency of the structure for the first mode has increased from 43.63
Hz to 84.88 Hz.
How much mass has been added to the part (check the mass of your ribs in the mass calc
panel in the Tool page)?
In this exercise, you will perform a topology optimization using draw direction constraints on a
control arm. The finite element mesh containing designable (brown) and non-designable
regions (blue) is shown in Figure 1.
Setting up topology design variables and the draw direction constraints in HyperMesh
Exercise
Step 1: Launch the HyperMesh Desktop and Load the User Profile
1. Launch HyperMesh Desktop.
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 (bulk) and OptiStruct.
2. Select the controlarm.hm file, located in the HyperWorks installation directory under
<install_directory>/tutorials/hwsolvers/optistruct/.
3. Click O pe n.
3. Make sure the create radio button is selected on the left hand side of the panel.
6. Click s e le ct.
8. Click cre a te .
9. Click the draw radio button, and toggle the draw type: to s ingle .
The option 'SINGLE' assumes that a single die will be used and it slides in the given
drawing direction. The anchor node and the first node define the drawing direction.
14. Under obstacle, double-click pro ps , select No n- de s ign and click s e le ct.
This selects the non-designable parts as obstacles for the casting process on the same
DTPL card. This preserves the casting feasibility of the final structure.
3. Select the switch below response type: and set it to v o lum e fra c.
4. Click cre a te .
Just eight characters can be used here. Since the name is used, a label is needed for the
response.
6. Set the response type: to we ighte d co m p (use the arrows to access the second page,
if not shown).
7. Click lo a ds te ps , check the boxes next to both loadcases, and click re turn.
8. Click cre a te .
Only eight characters can be used here. Since the name is used, a label is needed for the
response.
6. Click cre a te .
2. Click the min/max switch in the upper left corner and select m in.
4. Click cre a te .
You can also get to the OptiStruct panel from the Applications menu on the toolbar.
5. Click O ptiStruct.
This launches the OptiStruct job. If the job is successful, new result files will be seen in
the directory where HyperMesh was invoked. The controlarm_opt.out file is a good
place to look for error messages that will help to debug the input deck if any errors are
present.
controlarm_opt.sh Shape file for the final iteration containing the material
density, void size parameters, and void orientation angle
for each element in the analysis. The .sh file may be
used to restart a run and, if necessary, run OSSmooth
files for topology optimization.
OptiStruct provides the Element density information for all of the iterations. OptiStruct will
also show Displacement and Von Mises stress results of a linear static analysis for iteration
0 and iteration 38. This section describes how to view those results in HyperView. First, the
HyperMesh binary results file needs to be loaded.
5. Under Result type:, select E le m e nt de ns itie s (s ) from the first menu and D e ns ity for
the second menu.
7. Click Apply .
The resulting contours represent the displacement field resulting from the applied loads
and boundary conditions.
In this model, refining the mesh should provide a more discrete solution; however, for the
sake of this tutorial, the current mesh and results are sufficient.
3. Make sure the last iteration is still selected in the Results Browser.
4. Click Apply .
8. You can also move the slider bar to change current value of Element densities.
1. Click the Next Page arrow to proceed to the results of Load Case 1 on page 3.
5. Click Apply .
The stress results are also available for the respective iterations.
7. Similarly, results for Load Case 2 can be viewed on page 4 using the Next Page button.
This tutorial demonstrates how to perform 1-D topology optimization. The model is a simple
welded hat section. The welding is modeled using CWELD elements.
The objective is to minimize the weighted compliance through all three load cases. The
volume fraction of the weld component is limited to 0.3. The design space is the spot weld
component.
Exercise
User Profile can also be accessed from the Preferences menu on the toolbar.
4. Select the hut.hm file, located in the HyperWorks installation directory under
<install_directory>/tutorials/hwsolvers/optistruct/.
5. Click O pe n.
The hut.hm database is loaded into the current HyperMesh session, replacing any existing
data.
3. Click to po lo gy .
7. Click pro ps .
9. Click re turn.
2. From the drop-down menu below response type:, select v o lum e fra c from the list of
responses that are available for optimization in OptiStruct.
5. Click pro ps .
7. Click s e le ct.
9. Click cre a te .
11. Select the drop-down menu below response type: to open a window listing all responses
available for optimization in OptiStruct.
12. Click we ighte d co m p to select it as the response type and return to the response
panel.
13. Click lo a ds te ps .
15. Change the weighting factors for SUBCASE2 and SUBCASE3 to 100.0.
This increases the influence of the two bending load cases vs. the torsion load case
SUBCASE1, which is kept at 1.0.
5. Click cre a te .
6. Click re turn.
This concludes the definition of the optimization problem. Some optimization parameters
should be modified to achieve a good result.
This increases the penalty factor in the density method only for the 1-D elements to
achieve a discrete result.
3. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, hut_opt.fem, in the File name: field.
4. Click Sa v e .
Note the name and location of the hut_opt.fem file now displays in the input file: field.
8. Click O ptiStruct.
This will export the input deck and start the execution of OptiStruct in the solver GUI
window.
2. Use browse to find the output hut_opt.HM.comp.cmf from your OptiStruct run.
4. Click e xe cute .
As a result, four of the welds are in the DENS 0.9-1.0 component, all others are in the
DENS 0.0-0.1 component.
5. To do a re-analysis with the new weld configuration, undisplay the components with low
density (DENS 0.0-0.1 to DENS 0.8-0.9) and rerun the analysis with export options: set
to dis pla y e d in the Radioss panel.
Final configuration.
This tutorial demonstrates how to perform topology optimization using pattern repetition. The
model is a rectangular plate with a concentrated force on one edge and two constraints on
the opposite edge. Two other rectangular plates with a scaled size of 0.6 and 0.3 from the
original plate, with forces and boundary conditions applied in different directions, are also
modeled to highlight the difference between the topology results with and without pattern
repetitions.
The objective is to minimize the compliance for the single subcase. The volume fraction of
the design space is limited to 0.3. The design spaces are the three plates.
Exercise
Step 1: Launch the HyperMesh Desktop, Set the User Profile, and
Import the File
1. Launch HyperMesh Desktop.
User Profiles can also be accessed from the Preferences menu on the toolbar.
6. Click the Select file... button to find and open the no_repeat.fem file, located in the
HyperWorks installation directory under <install_directory>/tutorials/hwsolvers/
optistruct/.
7. Click Im po rt.
The no_repeat.fem OptiStruct input file is loaded into the current HyperMesh session.
8. Click C lo s e .
3. Make sure the create subpanel is selected using the radio buttons on the left-hand side
of the panel.
5. Click pro ps and select the property labeled firs t by checking the box beside it.
6. Click s e le ct.
8. Click cre a te .
9. Select the parameters subpanel using the radio buttons on the left-hand side of the
panel.
13. Repeat steps 3 through 12 for the components called second and third with desvar
names dv2 and dv3, respectively.
5. Click cre a te .
9. Click cre a te .
6. Click cre a te .
7. Click re turn.
5. Click cre a te .
This completes the definition of the topology optimization problem without pattern
repetition.
3. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, no_repeat_opt.fem, in the File name: field.
4. Click Sa v e .
Note the name and location of the no_repeat_opt.fem file now displays in the input file:
field.
9. Click O ptiStruct.
This launches HyperView in a new page with the HyperMesh Desktop and loads the session
file no_repeat_opt.mvw that is linked with the no_repeat_opt_des.h3d file.
6. Click Apply .
7. Set Current value: to 0.4 using the slider bar in the same panel.
9. Check the boxes beside Features and Transparent under Clipped geometry:.
An isosurface plot is displayed in the graphics window. (Note the display of each plate).
Those elements of the model with a density greater than the value of 0.4 are shown in
color, the rest are transparent.
3. Enter all of the following values after id= , separating them with commas:
1329
66
6
46
507
447
487
928
892
948
7. From the View menu, select the M a s k browser tab menu, if it not already displayed.
8. From the Mask tab menu, select 1 under the Isolate column to display only component
collectors.
11. Select the pa tte rn re pe titio n subpanel using the radio buttons on the left side of the
panel.
16. Notice that the blue border moves over second after the first has been selected; now
choose the second node ID 46.
18. Click the a ncho r button and choose the node ID 66.
19. Click upda te on the right side to create a master DTPL card.
23. Set the following values: sx= 0.6, sy= 0.6, sz= 1.0.
24. Click the firs t button and choose the node ID 447.
28. Click the upda te button on the right side to create the slave DTPL card.
32. Set the following values: sx= 0.3, sy= 0.3, sz= 1.0.
33. Click the firs t button and choose the node ID 892.
37. Click the upda te button on the right side to create the slave DTPL card.
The above modification identifies the first DTPL card with ID 1 (on the first component) as
the master. The DTPLs of ID 2 (second component) and ID 3 (third component) are
slaves and dependent on DTPL of ID1. The second component is scaled 0.6 in both the x-
and y-axis, while the third component is scaled 0.3 in both the x- and y-axis with respect
to the first component.
You can right-click on any of the design variables in the Results Browser and select
C a rd E dit to view the card image for the DTPL card. The card image for dv2 is shown
below.
3. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, repeat_opt.fem, in the File name: field.
4. Click Sa v e .
Note that the name and location of the repeat_opt.fem file now displays in the input
9. Click O ptiStruct.
This will export the input deck and start the execution of OptiStruct in the solver GUI
window.
This launches HyperView in a new page within the HyperMesh Desktop and loads the
session file repeat_opt.mvw that is linked with the repeat_opt_des.h3d file.
A Message Log window will appear, indicating the location of the .h3d file.
6. Click Apply .
7. Set current value: to 0.38 using the slider bar in the same panel.
9. Check the boxes for Features and Transparent under Clipped geometry:.
An iso surface plot is displayed in the graphics window. Those parts of the model with a
density greater than the value of 0.38 are shown in color, and the rest are transparent.
This tutorial will use the same optimization problem considered in Design Concept for an
Automotive Control Arm (OS-2010), except that a refined mesh will be used in order to better
capture the effect of applying symmetric and draw manufacturing constraints simultaneously.
The finite element mesh of the structural model containing the designable (blue) and the non-
designable (red) regions, along with the loads and constraints applied, is shown in the
following figure.
Defining the symmetry and draw direction control parameters for optimization
Step 1: Launch HyperMesh, Set the User Profile, and Import a File
1. Launch HyperMesh Desktop.
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. The User Profiles GUI can
also be accessed from the Preferences menu on the toolbar.
3. Click the Import Solver Deck button and navigate to and open the the
carm_draw_symm.fem file, located in the HyperWorks installation directory under
<install_directory>/tutorials/hwsolvers/optistruct/.
4. Click Im po rt.
4. Select the pa ra m e te rs subpanel and define a minimum member size = 16.0 mm.
This forces the diameter or thickness of any structural member to be higher then 16 mm;
if this is not user-set, OptiStruct will automatic select a minimum member size based on
the average mesh size (if a manufacturing constraint is selected).
8. Select the Ancho r no de and the firs t no de as shown below. Together, these two nodes
define a vector in the positive Z direction. This defines that the die draw direction is
along the positive Z direction.
10. Select the pa tte rn gro uping subpanel to define the symmetry constraint and toggle the
pattern type: to 1- pln s y m .
The symmetry constraints in topology optimization lead to symmetric designs for solid
models, regardless of the initial mesh, boundary conditions or loads. In this case, the 1-
pln s y m option enforces symmetry across a defined plane. A symmetric mesh is not
required, as OptiStruct will create variables that are nearly identical across the plane(s) of
symmetry. The plane of symmetry is defined by specifying the a ncho r and the firs t
nodes. The plane of symmetry will then be perpendicular to the vector from the anchor
node to the first node, and pass through the anchor node.
11. Click a ncho r no de , input the node id= 1, and press E NTE R.
12. Click firs t no de , input the node id= 2 and press E NTE R.
Together, these two nodes define a vector in the negative Z direction. Hence, the
symmetry plane is defined as the plane perpendicular to the Z-axis (which is the same as
the Y-Z plane), and passing through the anchor node.
8. Close the DOS window or shell when the message ...Pro ce s s ing co m ple te appears.
OptiStruct reports error messages (if any exist). The file carm_draw_symm_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.
1. Once you see the message Process completed successfully in the command window,
click the green H y pe rVie w button.
HyperView is launched and the results are loaded. A message window appears to inform
about the successful loading of the model and result files into HyperView. Notice that all
three .h3d files get loaded, each in a different page of HyperView.
Note the Result type: is E le m e nt D e ns itie s [s ]; this should be the only results type in
the file_name_des.h3d file. The second drop-down list shows D e ns ity .
Note the contour is all blue because your results are on the first design step or Iteration
0.
Each element of the model is assigned a legend color, indicating the density of each
element for the selected iteration.
Step 5: View an Iso Value Plot on Top of the Element Densities Contour
This plot provides the information about the element density. Is o Va lue 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 Graphics menu, click on Is o , and choose E le m e nt D e ns itie s as the Result type.
3. Click Apply .
An iso value plot is displayed in the graphics window. The parts of the model with
densities greater than the specified value of 0.2 are shown in the figure below.
If there are many elements with intermediate densities, the DISCRETE parameter may
need to be adjusted. The DISCRETE parameter (set in the opti control panel on the
optimization panel) can be used to push elements with intermediate densities toward 1
or 0, so that a more discrete structure is given.
In this model, refining the mesh should provide a more discrete solution; however, for the
purposes of this tutorial, the current mesh and results are sufficient.
Regions that need reinforcement tend towards a density of 1.0. Areas that do not need
reinforcement tend towards a density of 0.0.
If it is not, the optimization has not progressed far enough. Allow more iterations and/or
decrease the OBJTOL parameter (also set in the opti control panel).
If adjusting the discrete parameter, refining the mesh, and/or decreasing the objective
tolerance does not yield a more discrete solution (none of the elements progress to a
density value of 1.0), review the set up of the optimization problem. Some of the defined
constraints may not be attainable for the given objective function (or vice versa).
4. Move the slider below Current value: to change the density threshold.
Review
In this tutorial, an existing finite element model of a simple cantilever beam will be used to
demonstrate how to reduce the finite element model using static reduction and also how to
perform topology optimization on that reduced model. The full cantilever beam model without
static reduction is shown here.
Design variables: The density for each element in the design space.
The part to be reduced out of the model through the static reduction model reduction
technique is referred to as a superelement. In RADIOSS, ASET or ASET1 bulk data entries are
required to indicate the boundary degrees of freedom of a superelement, meaning the set of
degrees-of-freedom where the component (being replaced by direct matrix input) connects to
the modeled structure. Both the accuracy and the cost of static reduction increase as the
number of ASET entries is increased. For example, by using static reduction, the size of the
matrix to solve will become smaller, but if the reduced matrix (DMIG) is very dense, then the
solution time will become larger than the solution time for the full model where the matrix may
be sparse. Hence, the selection of ASET entries is very important in performing an efficient
analysis using DMIG.
In order to prevent the reduced matrix from being too dense, ASET entries are chosen
carefully (see the next figure) instead of creating ASET entries for all of the boundary nodes
between the design and non design spaces. Due to the small size of the problem used for this
tutorial, the selection of ASET entries may not affect the solution time.
Generate a superelement
Exercise
3. Click O K.
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.
2. Click the O pe n M o de l icon and load the cantilever_full.hm file into the current
HyperMesh session.
C omplete model.
Generate a Superelement
2. Name the new load collector Asets and set the card image to no ne .
4. Select the create subpanel using the radio buttons on the left-hand side of the panel.
5. Select the boundary nodes (as shown in the image before step 1) by clicking in the
graphics window.
8. Click cre a te .
2. Click the entity selection switch and select e le m s from the pop-up menu.
4. Move the mouse over to the graphics area and draw a window around the elements as
shown in the figure below.
Elements to be deleted.
5. Click de le te e ntity .
2. Click ne xt twice to be able to select PAR AM , check the box next to EXTOUT.
3. Select D M IG PC H .
1. Click on the Sa v e M o de l icon set the directory in which to save the file and, in File
name:, type cantilever_dmig.hm.
2. Click Sa v e .
3. Select the directory where you would like to write the file and enter the name
cantilever_dmig.fem in the File name: field.
4. Click Sa v e .
Note that the name and location of the cantilever_dmig.fem file shows in the input file:
field.
8. Click O ptiStruct.
If the analysis is successful, no error messages are reported to the shell. The analysis is
complete when the line Processing completed successfully appears in the shell. The
new results files can be seen in the directory where the OptiStruct model file was written.
The cantilever_dmig.out file is a good place to look for error messages that will help to
debug the input deck if any errors are present.
The matrices are written to the .pch file with the same format as the DMIG bulk data
entry. They are defined by a single header entry and one or more column entries. By
default, the name of the stiffness matrix is KAAX, the mass is MAAX, and the load is PAX.
Since mass matrix is not used in this tutorial, it is not written to .pch file.
The I/O Option entry, DMIGNAME, provides you with control over the name of the
matrices.
2. Move the mouse to the right until the list appears and select cantilever_full.hm.
Step 10: Delete the Superelement Part Reduced out Using DMIG
Since the matrices for the superelement part will be replaced by DMIG, the bulk data entries
for the nodes and elements, as well as all loads and boundary conditions that are in the
superelement, should be deleted.
2. Click the entity selection switch and select e le m s from the pop-up menu.
4. Move the mouse over to the graphics area and draw a window around the elements as
shown in the following figure.
5. Click de le te e ntity .
All of the loads and boundary conditions associated with those elements will be deleted
automatically.
The reduced matrices (DMIG) will be included in RADIOSS input deck. Here we are
assuming that the topology optimization will be run in the same folder as the
cantilever_dmig_AX.pch file. If you plan to run it in a different folder, then define the
full path of this file.
5. Select K2G G .
This specifies that the reduced stiffness matrix with the name KAAX has to be used
(stored in the cantilever_ dmig_AX.pch file).
2. Go to the to po lo gy panel.
3. Select the create subpanel using the radio buttons on the left-hand side of the panel.
5. Click pro ps .
7. Click s e le ct.
9. Click cre a te .
10. Click pa ra m e te rs .
4. Click cre a te .
Just eight characters can be used here, since the name is used, a label is needed for the
response.
7. Click cre a te .
Only eight characters can be used here. Since the name is used, a label is needed for the
response.
6. Click cre a te .
4. Click lo a ds te p.
6. Click cre a te .
3. Click s a v e a s to set the directory in which to save the file and, in File name:, type
cantilever_opti.hm.
4. Click Sa v e .
3. Select the directory where you would like to write the file and enter the name
cantilever_opti.fem in the File name: field.
4. Click Sa v e .
Note that the name and location of the cantilever_opti.fem file shows in the input file:
field.
8. Click O ptiStruct.
If the job was successful, new results files can be seen in the directory where the
OptiStruct model file was written. The cantilever_opti.out file is a good place to look
for error messages that will help to debug the input deck if any errors are present.
Element density and element thickness results are output from OptiStruct for all iterations. In
addition, displacement and stress results are output for the first and last iteration by default.
This section describes how to view those results in HyperView.
3. Under Result type:, select E le m e nt de ns itie s (s ) from the drop-down list and review
the D e ns ity component.
5. Click Apply .
4. Click Apply .
6. The current value can be changed to see more material. Enter a value of 0.3 in the
Current value: field.
The isosurface post-processing feature in HyperView is an excellent tool for viewing the
density results from OptiStruct.
Click and move the slider bar (currently pointing to a value representing 0.3) for your
density to change the isosurface.
You will see the isosurface in the graphics window interactively update when you change
it to a new value. Use this tool to get a better look at the material layout and the load
paths from OptiStruct.
The structural model is loaded into HyperMesh. The constraints, loads, subcases and material
properties are already defined in the model. The topology design variables and the
optimization problem set up will be defined using HyperMesh, and OptiStruct will be used to
determine the optimal material layout. The results will then be reviewed in HyperView.
Exercise
2. Choose O ptiStruct as the user profile by selecting the radio button beside it.
3. Click O K.
5. Click O pe n.
6. Click Im po rt.
5. Click pro ps and select the check boxes by the Design and Base properties.
6. Click s e le ct.
8. Click cre a te .
This stress serves as a constraint to the optimization, but can handily be created in-line
with the design variable for the design regions.
3. Click the response type: switch and select v o lum e from the pop-up menu.
4. Ensure that the total/by entity toggle is set to to ta l (this is the default).
5. Click cre a te .
4. Click cre a te .
In this example we will not define any design constraints. The stress target specified in
the topology panel acts as a design constraint. Hence, the topology optimizer has to
minimize the volume while keeping the stress to less than 1.6e4 units.
2. Select the directory where you would like to save the database and enter the name for
the database, hook_opt.hm, in the File name: field.
3. Click s a v e .
3. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, hook_opt.fem, in the File name: field.
4. Click Sa v e .
Note the name and location of the hook_opt.fem file now displays in the input file: field.
8. Click O ptiStruct.
This launches the OptiStruct job. If the job was successful, new results files can be seen
in the directory where the OptiStruct model file was written. The hook_opt.out file is a
good place to look for error messages that will help to debug the input deck if any errors
are present.
Element density results are output from OptiStruct for all of the iterations. In addition,
displacement and stress results are output for each subcase for the first and last iterations
by default. This section describes how to view those results in HyperView.
4. Ensure that the drop-down selector for the animation controls is set to Tra ns ie nt M o de
5. The Current Value in the Iso panel can be adjusted to show more or less of the resulting
design.
Step 9: Query the Results of the Elements with Stresses Higher than
0.9e4
1. Use the Open Model icon to load the subcase result file hook_opt_s19.h3d.
2. In the Subcase Selection section of the Results Browser, change Iteration 0 which
shows your results at the beginning of the optimization to Iteration 36, as shown
below, which has analysis results for the final iteration for this optimization.
6. Set the Apply to:, Value:, and Display options: sections to search for elements with a
stress above 1.6e4, as shown below.
7. Click Apply to run the query, and then click C re a te Se t to create a new set within the
session with only those elements.
8. The new set is shown in the Results Browser. Right-click on the set and select Is o la te
O nly to display only those elements within the graphics area.
There might still be high local stress regions which can be improved more
effectively with local shape and size optimization.
The extrusion constraints method allows you to perform an optimization problem with
extrusion constraints to obtain a constant cross section along a given path, particularly in the
case of parts manufactured through an extrusion process. By using extrusion manufacturing
constraints in topology optimization, constant cross-section designs can be obtained for solid
models regardless of the initial mesh, boundary conditions, or loads.
This tutorial show the steps involved in defining topology optimization over a curved beam,
simulating a rail, over which a vehicle is moving. Both ends of the beam are supported. A
point load is applied over the length of the rail in seven independent load cases, simulating
the movement of the vehicle. The rail should be manufactured through extrusion. The steps
taken to define the topology design space, the extrusion-manufacturing constraints and the
optimization parameters (responses, objective and constraints) using HyperMesh are shown.
In this tutorial, you will perform topology optimization on a curved beam so that the extruded
rail will be stiffer and have less material. The optimization problem is stated as:
The DTPL (Design Variable for Topology Optimization) card is used for this optimization.
The finite element mesh of the curved beam is shown in the following.
Finite element mesh of the curved beam showing loads and boundary conditions
Exercise
Step 1: Launch HyperMesh, Set the User Profile, and Retrieve a File
1. Launch HyperMesh Desktop.
4. Click Im po rt.
3. Make sure the create subpanel is selected using the radio buttons on the left-hand side
of the panel.
5. Click pro ps , choose ne w_s o lid from the list of props, and
click on s e le ct.
7. Click C re a te .
A topology design space definition, design_solid, has been created. All elements
organized in this design property collector are now included in the design space.
3. Enter numbers 71559,70001 and press E NTE R, check the display box, then click o n.
4. Click re turn.
6. Click to po lo gy .
7. Make sure the extrusion subpanel is selected using the radio buttons on the left-hand
side of the panel.
10. Select the primary path by selecting no de lis t and clicking by pa th.
11. First, select node 71559 and then select node 70001.
A line of nodes starting from 71559 and ending with node 70001 should be highlighted,
indicating the extrusion path.
3. Click on the switch below response type and select v o lum e fra c from the pop-up menu.
5. Click cre a te .
7. Click on the switch below response type and select we ighte d co m p from the pop-up
menu.
8. Click lo a ds te ps and select s te p1, s te p2, s te p3, s te p4, s te p5, s te p6, and s te p7 from
the extended entity selection menu that pops up.
9. Click re turn.
C onstraint set up
6. Click cre a te .
4. Click cre a te .
3. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, rail_complete_extrusion.fem, in the File name: field.
4. Click Sa v e .
Note the name and location of the rail_complete_extrusion.fem file now displays in
the input file: field.
5. Make sure the memory options: toggle and set uppe r lim it in M b = to 2000 M b.
8. Click O ptiStruct.
This launches the OptiStruct job. If the job was successful, new results files can be seen
in the directory where the OptiStruct model file was written. The
rail_complete_extrusion.out file is a good place to look for error messages that will
help to debug the input deck if any errors are present. Solving time for this extrusion
constraint problem takes about 2 hours.
2. In the Subcase Selection section of the Results Browser, change Iteration 0 which
shows your results at the beginning of the optimization to the last iteration, as shown
below, which has the final analysis results for this optimization.
4. Click Apply .
6. Click Apply .
Isosurface plot of a curved beam rail layout of the topology optimization with extrusion constraints
As expected, the result with manufacturing extrusion constraints permits a constant cross
section for the entire length of the model.
3. Click B a s e to active it, and click on any corner at the center of the model.
4. Click Apply .
5. Move the slider bar below Y Axis to scroll though the model.
6. Under Display options:, use the slider bar next to Width to change the Cross section
width.
As expected, the result with manufacturing extrusion constraints shows constant cross
section through the length of the model.
This tutorial demonstrates the capability of frequency response optimization using OptiStruct.
Initially, an existing finite element (FE) model of a flat plate is retrieved and modal frequency
response analysis is performed to derive the peak magnitude. A dynamic response
optimization is then performed on the same plate to obtain a new design.
The new design gives an optimized material layout with a minimized peak response. Post-
processing tools will be used in HyperView to visualize iso-plots, magnitude, and phase of the
complex displacement results.
Plate model
Exercise
2. Choose O ptiStruct.
3. Click O K.
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. The Us e r Pro file s GUI can also
be accessed from the Preferences menu on the toolbar.
6. Select the File button and browse to open the frf_response_input.fem file,
located in the HyperWorks installation directory under <install_directory>/tutorials/
hwsolvers/optistruct/.
7. Click Im po rt.
The frf_response_input.fem OptiStruct input file is loaded into the current HyperMesh
session.
2. Right-click inside the Model Browser window and move the mouse over Create to
activate the extended menu and click Lo a d C o lle cto r.
5. Leave the Select type: field set to no ne under the Card Image.
6. Click C re a te .
7. Right-click inside the Model Browser window and move the mouse over Create to
activate the extended menu and click Lo a d C o lle cto r again.
10. Click C re a te .
5. Click o n.
6. Click re turn.
8. Make sure the create subpanel is selected using the radio buttons on the left-hand side
of the panel.
9. Click the entity selection switch and select no de s from the pop-up menu.
3. Select the create subpanel using the radio buttons on the left-hand side of the panel.
4. Click the entity selection switch and select no de s from the pop-up menu.
6. Un-check all dof except dof3, and click the = to the right of dof3 to type in a value of 20
.
8. Click cre a te .
9. Click re turn.
4. Below the Card Image:, toggle the Select type and choose TAB LE D 1 from the drop-
down list.
5. Ensure that C a rd e dit lo a dco lle cto r upo n cre a tio n is checked and click cre a te .
7. Click in the input field below y(1), and enter a value of 1.0.
8. Click in the input field below x(2), and enter a value of 1000.0.
9. Click in the input field below y(2), and enter a value of 1.0.
This gives us a frequency range of 0.0 to 1000.0 with a constant load over this range.
4. Below the Card Image:, toggle the Se le ct ty pe and choose R LO AD 2 from the drop-down
list.
5. Ensure that C a rd e dit lo a dco lle cto r upo n cre a tio n is selected and click cre a te .
A new window appears in the work area screen.
4. Below Card Image:, toggle Se le ct ty pe , and choose FR E Q i from the drop-down list.
5. Ensure that C a rd e dit lo a dco lle cto r upo n cre a tio n is selected and click cre a te .
7. Click F1, then click in the field box below it and input a value of 1.0.
This defines a set of frequencies for the modal method of frequency response analysis by
specification of a frequency range and fractions of the natural frequencies within that
range, as shown in the following image.
4. Below Card Image:, toggle Se le ct ty pe and choose E IG R L from the drop-down list.
7. Click re turn.
This specifies the eigenvalue extraction of the first 17 frequencies using the Lanczos
method.
3. Click the ty pe : switch and choose fre q.re s p (m o da l) from the pop-up menu.
5. Click on the entry field and select s pcs from the list of load collectors.
7. Click on the entry field and select e igrl from the list of load collectors.
9. Click on the entry field and select rlo a d2 from the list of load collectors.
11. Click on the entry field and select fre q5 from the list of load collectors.
An OptiStruct subcase has been created which references the constraints in the load
collector spc, the unit load in the load collector rload2; with a set of frequencies defined
in load collector freq5 and modal method defined in the load collector eigrl.
It is recommended to do a modal analysis before any FRF simulation. Here, this step is
suppressed to focus on Frequency Response Analysis setup.
4. Click the entity: switch and choose no de s from the pop-up menu.
5. Make sure that the yellow selection type box is set to no de s and select the node 3.
6. Click cre a te .
A message appears stating that the entity set has been created.
With FRF simulation, the amount of data generated can easily create big results files. It is
a good practice to work with sets where the user can specify only the points of interest.
This will reduce CPU time and the amount of data to be saved.
7. Click re turn.
Step 11: Create a Set of Outputs and Include Damping for Frequency
Response Analysis
1. On the Analysis page, click on the co ntro l ca rds panel and enter the
G LO B AL_O UTPUT_R E Q UE STS panel.
3. Click the field box for FORM and select PH ASE from the pop-up menu.
4. Click the field box for OPTION and select SID from the pop-up menu.
5. Double-click the yellow SID box and select SE TA from the pop-up selection on the bottom
left corner.
A value of 1 now appears below the SID field box. This sets the output for only the
nodes in set 1.
9. On the extended menu in the work area, click the FO R M AT_V1 field box and select O PTI
12. Select the PAR AM subpanel, and check the box next to G.
13. Click below G_V1, and input a value of 0.05 into the field box.
This specifies that the system will have a constant damping coefficient equal to 2.5% of
the Critical Damping Ratio.
17. Click on the box beneath FREQ and select LAST from the pop-up selection.
2. Click s a v e a s following the input file: field, select the directory where you would like to
write the model file and enter the name for the model, frf_response_analysis.fem, in
the File name: field.
3. Click Sa v e .
Note that the name and location of the frf_response_analysis.fem file now displays in
the input file: field.
8. Click R a dio s s .
This launches the Radioss analysis job. If the job is successful, new results files can be
seen in the directory where the Radioss model file was written. The
frf_response_analysis.out file is a good place to look for error messages that will help
to debug the input deck if any errors are present.
1. Click on the H y pe rVie w button in the R a dio s s panel to load the results from the analysis
into the next page.
2. Click clo s e to close the message log menu which appears that informs about the result
files loaded into HyperView.
3. In the HyperView window, select File on the menu bar, and select O pe n ...> Se s s io n.
4. Find the directory where the job was run and open the file
frf_response_analysis_freq.mvw. If you launched from the Radioss panel, you will
have to click Y e s to discard the current session.
The top graph shows Phase Angle verses Frequency. The bottom graph shows
Displacement Response verses Frequency.
The excitation is applied on Z direction, then the main effect will be detected on this
direction.
6. Click on the Curve Attributes button and change the line attribute to continue
.
7. On the same panel, click on Symbol Attributes and select the square symbol.
8. Click on the Axes button and change to Ve rtica l to edit the vertical axis.
9. Click on the Sca le a nd Tics (M a gnitude ) tab and change it to Lo ga rithm ic.
10. Change the Min: to 5 and the Max: to 200000.
11. Click on the Sca le a nd Tics (Pha s e ) tab and change the Tics pe r a xis : to 7.
12. Click on the H o riz o nta l X or change it using the drop-down list and change the Min: to 5
and the Max: to 1000.
15. Click the m a xim um button to see the maximum Y-magnitude ~ 15055 in the table. The
peak displacement of the baseline model.
4. Select the create subpanel using the radio buttons on the left-hand side of the panel.
6. Click pro ps .
A topology design space definition, plate, has been created. All elements organized into
the design component collector are now included in the design space. The thickness of
these shells can vary between 0.15 (base thickness defined above) and the maximum
thickness defined by the T (thickness) field on the PSHELL card.
The object of this exercise is to determine where to locate ribs in the designable region.
Therefore, a non-zero base thickness is defined, which is the original thickness of the
shells. The maximum thickness, which is defined by the T field on the PSHELL card, should
be the allowable depth of the rib.
Currently, the T field on the PSHELL card is still set to 0.15 (the original shell thickness),
this needs to be changed to a higher value to create a design space where the material
can be removed.
18. Change the yellow selector to pro ps , click the pro ps button and check the box next to
de s ign.
The PSHELL card image for the design component collector pops up.
4. Make sure the component switch is set to m a gnitude and the function switch is set to
a ll fre q.
7. Click cre a te .
9. Click the re s po ns e ty pe : switch and select v o lum e from the pop-up menu.
1. Select the dco ns tra ints panel from the optimization panel
7. Click cre a te .
3. Click cre a te .
3. Select the directory where you would like to write the OptiStruct model file, enter the
name for the model, frf_response_optimization.fem, in the File name: field, and click
Sa v e .
Note that the name and location of the frf_response_optimization.fem file now
displays in the input file: field.
7. Click O ptiStruct.
This launches the OptiStruct job. If the job is successful, new results files can be seen in
the directory where the OptiStruct model file was written. The
frf_response_optimization.out file is a good place to look for error messages that will
help to debug the input deck if any errors are present.
Element Density and Element Thickness results are output from OptiStruct for all iterations.
This section describes how to view an iso-plot of the new design in HyperView.
2. In the HyperView window, select File on the menu bar, and select O pe n > Se s s io n.
3. Find the directory where the job was run and open the file frf_response_optimization.
mvw.
6. Set the last Load Case Simulation by clicking the Subcase Selection Box above the
Results Browser.
Each element of the model is assigned a legend color, indicating the density of each
element for the selected iteration. The last design iteration gives the optimized material
layout.
3. Click on the B uild Plo ts button to prepare to add curves on top of the existing
analysis information.
4. For the Data File:, load the optimization file with the final iteration analysis in it:
frf_response_optimization_s2.h3d.
5. For Subca s e :, select the last iteration. Leave the X Ty pe : as Frequency. Select Y Ty pe :
Displacement (Grids), Y R e que s t: N3, and Y C o m po ne nt: X,Y, & Z.
6. Click Apply to overlay the new information onto the original plot.
This tutorial demonstrates how to set up an optimization problem of an MBD system using the
equivalent static load method (ESL). The model is setup in HyperMesh, and the Topology
optimization job is run with OptiStruct. The Objective of the optimization is to maximize the
stiffness of the Lower arm of an excavator model, while keeping the mass to less than an
allowable value. The model units are kg, N, m and s.
Excavator model
Design variables: Element density of elements in the lower arm (flexible body)
component.
Set up and run a topology optimization on a MBD system using the equivalent static
Exercise
Step 1: Launch HyperMesh, Set the User Profile, and Retrieve the File
1. Launch HyperMesh Desktop.
2. Choose O ptiStruct.
3. Click O K.
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.
5. Select the Excavator_MBD.hm file, located in the HyperWorks installation directory under
<install_directory>/tutorials/hwsolvers/optistruct/.
6. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, excavator_MBD_analysis.fem, in the File name: field.
8. Click Sa v e .
Note the name and location of the file displays in the input file: field.
This launches a RADIOSS run in a separate shell (DOS or UNIX) which appears.
If the analysis was successful, no error messages are reported to the shell and you will
see messages appear in the shell indicating that the analysis is complete.
This will automatically load the results for the current run into HyperView.
A message window appears to inform about the successful loading of the model and result
files.
4. Click the icon to start the animation and review the MBD model.
5. Close the HyperView window using the D e le te Pa ge button and return back to
HyperMesh.
4. Click re v ie w.
The lower arm component is highlighted. Body type PRBODY is shown for type=,
indicating that lower arm is modeled as a rigid body. We will update this body to a flexible
body type, and also define topology optimization on this body.
6. Enter 20 under the nmodes= to increase the number of modes included in the CMS
7. Click upda te .
A message appears in the lower left corner to indicate that the body has been update to
a new type.
8. Click re turn.
3. Make sure the create subpanel is selected using the radio buttons on the left-hand side
of the panel.
7. Click C re a te .
9. Click the toggle next to minmemb off to activate mindim= and set the value to 0.05.
Minimum member size control of 0.05 meter has been applied on this topology optimization
problem.
6. Click cre a te .
A volume fraction response, Volfrac, is defined for the topology design volume.
8. Select the switch below response type and select co m plia nce from the pop-up menu.
6. Click cre a te .
A constraint is defined on the response "Volfrac." The constraint will force the volume
fraction used in the design space to be less than 0.5.
6. Set the loadsteps selection option to All to make sure the design objective reference
7. Click cre a te .
4. Click cre a te .
2. Select the directory in which to save the file and, in File name:, type
excavator_MBD_Topology.hm.
3. Click Sa v e .
6. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, excavator_MBD_Topology.fem, in the File name: field.
7. Click Sa v e .
Note the name and location of the file displays in the input file: field.
8. Click O ptiStruct.
This launches an OptiStruct run in a separate shell (DOS or UNIX) which appears.
If the optimization was successful, no error messages are reported to the shell. The
If the job was successful, the new results file can be seen in the directory where the
input file was saved. In addition to the regular output files, you will also see a text file
named excavator_MBD_Topology.eslout. This file is a good source to review the
process of the ESL optimization.
Note that depending on the type of hardware, the optimization run time may be
substantial.
Step 12: View element density results for the last iteration
1. Once you see the message OPTIMIZATION HAS CONVERGED in the command window,
close the DOS window.
HyperView is launched and the results are loaded. A message window appears to inform
about the successful loading of the model and result files into HyperView.
4. Select the final outerloop iteration in the Results Browser as shown below to load the
optimized topology results.
7. Click Apply to see only the elements that have elemental density higher than what is
shown in the field for Current value:.
10. Using the Model Browser on the left, display only the Lo we r_Arm component.
11. Check the boxes next to Features to visualize the complete design space.
12. You can also move the slider bar to change current value of Element densities to look at
material distribution for different density threshold values.
This tutorial demonstrates how to perform topography optimization of a plate under torsion. A
finite element model of the design space with loads and constraints applied is shown in the
image below. It is assumed that the part is to be formed using a stamping process. The
objective is to minimize the displacement of the node where the force is applied in the
positive z-direction. Only the shape of the plate can be changed to achieve the objective,
not the thickness.
Finite element model of the design space with loads and constraints.
A finite element model (shown in the above figure) is loaded into HyperMesh. The
constraints, load, material properties, and subcase (loadstep) of the model are already
defined. Topography design variables and optimization parameters are defined and the
OptiStruct software is used to determine the optimal reinforcement patterns. The results are
viewed as animations of the contours of shape changes of the design space. Finally, the use
of the grouping patterns is shown; based on the shape changes suggested by OptiStruct, a
possible pattern is chosen for ease of manufacturing.
Exercise
Step 1: Launch the HyperMesh Desktop, Load the User Profile and
Retrieve the File
1. Launch HyperMesh Desktop.
This loads the OptiStruct 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.
User Profiles can also be accessed from the Preferences menu on the toolbar.
3. From the File menu, click O pe n and browse to open the torsion_plate.hm file, located
in the HyperWorks installation directory under <install_directory>/tutorials/
hwsolvers/optistruct/.
4. Click O pe n.
The torsion_plate.hm database is loaded into the current HyperMesh session, replacing
any existing data.
1. From the Analysis page, click o ptim iz a tio n to enter the panel.
3. Make sure the create subpanel is selected using the radio buttons on the left-hand side
of the panel.
8. A topography design space definition, 'topo', has been created. All elements organized
into the 'design' component collector are now included in the design space.
9. Select the bead params subpanel using the radio buttons on the left-hand side of the
panel.
10. The field next to desvar = should contain the name of the newly created design space by
default. If it does not, click on de s v a r = and select to po from the list of topographical
design spaces.
This parameter controls the width of the beads in the model. The recommended value is
between 1.5 and 2.5 times the average element width.
12. Click dra w a ngle = and enter 60.0 (this is the default).
This parameter controls the angle of the sides of the beads. The recommended value is
between 60 and 75 degrees.
This parameter establishes a buffer zone between elements in the design domain and
elements outside the design domain.
This parameter defines the direction in which the shape variables are created.
16. Make sure the boundary skip: switch is set to lo a d & s pc.
This tells OptiStruct to leave nodes at which loads or constraints are applied out of the
design space.
A "bead" definition has been created for the design space 'topo'. Based on this
information, OptiStruct will automatically generate bead variable definitions throughout the
design variable domain as shown on the DTPG page of the Re fe re nc e Guide .
18. Select the bo unds subpanel using the radio buttons on the left-hand side of the panel.
19. Ensure that topo is in the field next to desvar =. If it is not, click on de s v a r = and
select to po from the list of topographical design spaces.
20. Click on uppe r bo und and enter 1.0 (this is the default).
Upper bound on variables controlling grid movement (Real > LB, default = 1.0). This sets
the upper bound on grid movement equal to UB*HGT.
3. Select the switch below response type and select s ta tic dis pla ce m e nt from the pop-up
menu.
4. Click no de s and select by ID from the extended entity selection menu that pops up.
6. Select do f3.
dof4, dof5, and dof6 refer to rotation about the X, Y, and Z axes.
7. Click cre a te .
2. Click the switch in the upper-left corner of the panel, and select m in from the pop-up
menu.
5. Click cre a te .
3. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, torsion_plate.fem, in the File name: field.
4. Click Sa v e .
Note that the name and location of the torsion_plate.fem file now displays in the input
file: field.
8. Click O ptiStruct.
This launches the OptiStruct job. If the job was successful, new results files can be seen
in the directory where the OptiStruct model file was written. The torsion_plate.out file
is a good place to look for error messages that will help to debug the input deck if any
errors are present.
torsion_plate_s1_h3d HyperView binary results file for displacement and stress results
for subcase 1.
torsion_plate.sh Shape file for the final iteration. It contains the material
density, void size parameters, and void orientation angle for
each element in the analysis. The .sh file may be used to
restart a run and, if necessary, run OSSmooth files for topology
optimization.
Shape contour information is output from OptiStruct for all iterations. In addition,
Displacement and Stress results are output for the first and last iteration by default. This
section describes how to view those results using HyperView.
This will launch HyperView within the HyperMesh Desktop and load the
torsion_plate_des.h3d and torsion_plate_s1.h3d files reading the model and
optimization results.
3. Click the Contour icon on the toolbar to enter the contour panel.
6. Click Apply .
In this case, it is. If it is not, your optimization has not progressed far enough. Decrease
the OBJTOL parameter (set in the opti control panel on the optimization panel). This
value, 4.0e+00, comes from the draw height defined earlier.
C ontour plot showing the reinforcement pattern at the last iteration (converged solution)
4. With the animation running, use the slider bar below Max Frame Rate: on the left side of
the panel to adjust the speed of the animation.
This page has the subcase information from the torsion_plate_s1.h3d file.
2. Verify that the animate mode menu is set to Line a r Sta tic.
For a better visual of what it happening with this model, turn on mesh lines and contour
the results.
5. Select the first iteration (Iteration 0) in the Results Browser, as shown below.
9. With the animation running, use the slider bar below Max Frame Rate: on the left side of
the panel to adjust the speed of the animation.
Does the deformed shape look correct for the boundary conditions you applied to the
mesh?
11. Use the page delete button contained within the page control toolbar to delete the
HyperView page, as seen in the image below.
The configuration obtained in the previous example (see the contour plot showing the
reinforcement pattern at the 17th iteration) might be difficult to manufacture. It does give
an idea of what kinds of patterns are likely to optimize the structure (in this case -- to
minimize the displacement at the selected node).
A possible pattern, suggested by the static contour plot obtained in the previous exercise, is
to use channels parallel to a diagonal. In this example, we choose the diagonal emerging from
the node where the load is applied.
2. From the Analysis page, click o ptim iz a tio n to enter the panel.
4. Select the pa tte rn gro uping subpanel using the radio buttons on the left-hand side of
the panel.
8. Click a ncho r no de and select the node at the corner where the load is applied by clicking
on it in the graphics window.
9. HyperMesh automatically moves the blue halo around the first node; select the node in
the opposite corner by clicking on it in the graphics window.
3. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, torsion_pattern.fem, in the File name: field.
4. Click Sa v e .
Note the name and location of the torsion_pattern.fem file now displays in the input
file: field.
This launches the OptiStruct job. If the job was successful, new results files can be seen
in the directory where the OptiStruct model file was written. The torsion_pattern.out
file is a good place to look for error messages that will help to debug the input deck if any
errors are present.
View the new results as before. Also check the objective value for the zero-th and last
iteration in the .out file. How does the final value for the objective compare to the final
value obtained using 'none' option for pattern grouping?
C ontour plot showing the reinforcement pattern with pattern grouping constraint at the last iteration
L-bracket layout.
Step 1: Launch the HyperMesh Desktop, Set the User Profile, and
Retrieve the File
1. Launch HyperMesh Desktop.
3. Click O K.
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.
4. From the File menu on the toolbar, select O pe n and browse to open the Lbkttopog.hm
file, located in the HyperWorks installation directory under <install_directory>/
tutorials/hwsolvers/optistruct/.
In this tutorial, the values of a bead width of 15mm, a bead height of 5mm, and draw angle of
85 degrees will be used. Symmetry of the bead pattern should be forced along the symmetry
line of the design space.
3. Select the create subpanel using the radio buttons on the left-hand side of the panel.
5. Click pro ps .
7. Click cre a te to create the shape design variables for the selected component.
8. Select the bead params subpanel using the radio buttons on the left side of the panel.
9. By default, the field next to desvar = should contain the name of the newly created
design space; if not, click on de s v a r = and select to po from the list of topographical
design spaces.
This parameter controls the width of the beads in the model. Recommended value is
between 1.5 and 2.5 times the average element width.
This parameter controls the angle of the sides of the beads. The recommended value is
between 60 and 75 degrees.
This parameter establishes a buffer zone between elements in the design domain and
elements outside the design domain.
This tells OptiStruct to leave nodes at which loads or constraints are applied out of the
design space.
This parameter defines the direction in which the shape variables are created.
A bead definition has been created for the design space topo. Based on this information,
OptiStruct will automatically generate circular bead variable definitions throughout the
design variable domain as shown on the DTPG page of the reference guide.
17. Select the pa tte rn gro uping subpanel using the radio buttons on the left-hand side of
the panel.
18. By default, the field next to desvar = should contain the name of the newly created
design space; if not, click on de s v a r = and select to po from the list of topographical
design spaces.
19. Click the pattern type: switch and select 1- pln s y m from the pop-up menu.
23. Select the bounds subpanel using the radio buttons on the left side of the panel.
The upper bound sets the upper bound on grid movement equal to UB*HGT and the lower
bound sets the lower bound on grid movement equal to LB*HGT.
3. Select the switch below response type and select fre que ncy from the pop-up menu.
5. Click cre a te .
2. Click the switch in the upper left corner of the panel, and select m a x from the pop-up
menu.
5. Click cre a te .
3. Click s a v e a s to set the directory in which to save the file and, in File name:, type
Lbkttopog.hm.
4. Click Sa v e .
3. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, Lbkttopog.fem, in the File name: field.
4. Click Sa v e .
Note the name and location of the Lbkttopog.fem file now displays in the input file: field.
8. Click O ptiStruct.
This launches the OptiStruct job. If the job was successful, new results files can be seen
in the directory where the OptiStruct model file was written. The lbkttopog.out file is a
good place to look for error messages that will help to debug the input deck if any errors
are present.
lbkttopog. HyperGraph file containing data for the objective function, constraint
hgdata functions, design variables, and response functions for each
iteration.
lbkttopog.out The OptiStruct output file containing specific information on the file
set up, the set up of the optimization problem, estimate 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
lbkttopog.fem file.
Lbkttopog_s1_h3 HyperView binary results file for displacement and stress results for
d subcase 1.
lbkttopog.sh Shape file for the final iteration. It contains the material density,
void size parameters and void orientation angle for each element in
the analysis. The .sh file may be used to restart a run and, if
necessary, run OSSmooth files for topology optimization.
Shape contour information is output from OptiStruct for all iterations. In addition, Eigenvector
results are output for the first and last iteration by default. This section describes how to
view those results in HyperView.
This launches HyperView in a new page within the HyperMesh Desktop and loads
lbkttopog_des.h3d.
A Message Log window appears indicating the location of the .h3d file.
6. Move the Max Frame Rate: slider to adjust the animation speed.
1. Click the Next Page arrow to proceed to the results for first and the last iterations
on page 3.
2. Select the first iteration listed in the Results Browser ( Ite ra tio n 0).
The frequencies of all of the modes requested from the analysis are shown in the
Subcase drop-down.
Look at the frequency values for the last iteration. Upon observation, the frequency for
the first mode has changed from around 48 Hz to around 93 Hz for first and last iterations
respectively.
1. Click the Next Page arrow to navigate back to the Design History page (page 2).
2. Click the button to set the Current time: to the last step.
Topography results
5. For File name:, select your working directory for the field and name the file deformed.
fem before clicking O K.
7. Import this file into HyperMesh with overwrite on and your final shape will now exist in
The objective of this tutorial is, to run the completed model from the previous tutorial, 0S-
3010, post-process the results, and use the autobead functionality.
L-bracket layout
Exercise
Step 1: Launch HyperMesh, Set the User Profile, and Import a File
User Profiles can also be accessed from the Preferences menu on the toolbar.
3. Click the Im po rt So lv e r D e ck .
6. For File:, click on the Se le ct file ... icon to open the OptiStruct file browser.
8. Click Im po rt.
The Lbkttopog_bead.fem OptiStruct input file is loaded into the current HyperMesh
session.
3. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, Lbkttopog_bead.fem, in the File name: field.
4. Click Sa v e .
8. Click O ptiStruct.
This launches the OptiStruct job. If the job was successful, new results files can be seen
in the directory where the OptiStruct model file was written. The lbkttopog_bead.out
file is a good place to look for error messages that will help to debug the input deck if any
errors are present.
3. Click on File > O pe n Se s s io n and select Lbktto po g_be a d.m v w to load the results
session into the HyperView client.
4. Ensure that the animation mode is set to Tra ns ie nt and click the Pla y button to
start the animation.
An animation of the shape changes over the course of the optimization is displayed.
5. To slow down the animation, move the Animation Controls slider underneath the
3. Click on the Load Case and Simulation Selection area above the Results Browser.
Notice the topography optimization yields an almost 100% increase in the frequency of the
first mode by reviewing the Mode 1-F value in the Simulation list. To animate the model,
click the modal icon next to the director's chair.
3. Click s im ula tio n = and select D E SIG N - ITE R 12 from the list of simulations.
5. Choose displacements using the radio buttons on the left-hand side of the panel.
9. Click a pply .
The final nodal positions are applied to the structure. Be careful with saving the model
now, the HyperMesh database has changed. This model can be used for further analyses.
Results can now be viewed on the final shape.
10. Click re je ct to get back the original shape and re turn to go back to main menu.
2. For file:, select the OptiStruct base input file from which to extract the final geometry.
The default output format is STL. Other format options are: Mview, Nastran, IGES,
and H3D.
If you select IGES as the output format, select the output unit type. The default is
mm (millimeters).
4. Select lo a d ge o m to load the new geometry into the current HyperMesh session.
5. Check the box next to autobead and enter a value of 0.3 for the bead threshold:.
8. Click Y e s to overwrite.
9. OSSmooth can automatically create geometry based on the new mesh. Click FE > Surf to
generate new geometry from the optimization results.
11. Using the Mask tab, click on Is o la te for Geometry and on H ide for Load Collectors.
12. Use the Model Browser to uncheck geometry display for the original components
design and fixed.
A topography optimization with random response is performed on a flat plate in this tutorial. A
random response analysis has been set up. As shown in the following image, the flat panel is
constrained through an RBE2 element. Two frequency-varying accelerations are applied on
the independent node of the RBE2 element as excitations. They are correlated through a
cross-spectral density. The objective of the optimization is to minimize the maximum
(minmax) Power Spectral Density (PSD) acceleration in X direction at the center of the panel.
Model review
Exercise
Step 1: Load the OptiStruct User Profile and Import the Model
1. Launch HyperMesh.
User Profiles can also be accessed from the Preferences menu on the toolbar.
5. Select the panel.fem file, located in the HyperWorks installation directory under
<install_directory>/tutorials/hwsolvers/optistruct/.
6. Click O pe n.
7. Click Im po rt.
3. Select the create subpanel by clicking the radio button on the left side of the panel.
12. Select the pattern grouping subpanel using the radio button.
14. Under pattern type:, click on the switch and select 2- plns s y m .
15. For anchor node, first node, and second node, click the switch to change from node id
to co o rdina te s .
16. Enter the values as shown below to define a 2-plane symmetry constraint.
The design variables for the topography optimization have been created. The design
response and objective need to be created next.
7. Click ra ndps = and select R AND PS100, which specifies the Power Spectral Density for the
random response analysis.
4. Check the box next to neg reference= and leave the value as -1.0.
5. Check the box next to pos reference= and input the value 1.0e6.
The values of the response, psdaccl, will be normalized by the negative and positive
reference values.
7. Click cre a te .
3. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, panel_complete.fem, in the File name: field.
4. Click Sa v e .
Note the name and location of the panel_complete.fem file now displays in the input
file: field.
8. Click O ptiStruct.
This launches the job. If the job is completed successfully, you should see new results
files in the directory from which panel_complete.fem was selected.
HyperView is used to view the bead design generated from the topography optimization.
XYPUNCH, ACCE, PSDF/67(T1RM) was used to output the PSD accelerations to punch files.
The PSD plot from punch output can be viewed with HyperGraph. The RMS and peak PSD
values are output to the .peak file and can be viewed with text editor.
HyperView is launched and the optimization results (_des.h3d) are loaded. A message
window appears to inform of the successful model and result files being loaded into
HyperView.
6. Click Apply .
6. Click Apply .
How much was the peak value of the PSD acceleration reduced?
This tutorial performs a combined topology and topography optimization on a slider suspension
using OptiStruct. The objective is to increase the stiffness of the slider suspension and make
it lighter at the same time. This requires the use of both topology and topography
optimization.
The finite element model of the slider suspension contains force and boundary conditions.
The structure is made of quad elements and has both linear statics and normal modes
subcases (loadsteps). Steps are described to define topology and topography design space,
responses, constraints, and objective function. The optimized structure will be stiffer for
both linear statics and normal modes subcases and will have beads and less material.
Problem Statement
Perform combined topology and topography optimization on a disk drive slider suspension to
maximize the stiffness and weighted mode. The lower bound constraint on the seventh mode
is 12 cycles/ms.
Exercise
Step 1: Set the User Profile and Import a Finite Element Model
1. Launch HyperMesh.
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.
5. Click on the Se le ct File s button and browse for the combined.fem file located in the
HyperWorks installation directory under <install_directory>/tutorials/hwsolvers/
optistruct/.
6. Click O pe n.
7. Click Im po rt.
2. Click to po lo gy .
8. Click cre a te .
3. Click pro ps , check 1pin and 3be nd, and click s e le ct.
5. Click cre a te .
7. For minimum width=, enter a value of 0.4; for draw angle=, 60; and for draw height=
, 0.15.
We will use 1-plane symmetric beads, as it is the simplest and can be symmetric at the
same time.
12. Go to the pa tte rn gro uping subpanel and set pattern type: to 1- pla ne s y m .
5. Click cre a te .
9. Make sure that the option to define normalizing factor is toggled to a uto no rm .
10. Enter the mode numbers and their corresponding weights using the following chart.
Mode Weight
1 1.0
2 2.0
3 1.0
4 1.0
5 1.0
6 1.0
5. Click lo a ds te ps and click the fre que ncy checkbox, then click s e le ct.
6. Click cre a te .
4. Click cre a te .
5. Click re turn.
2. Click the checkbox for M IND IM to activate it and enter a value of 0.25.
3. Click the checkbox for M ATINIT to activate it and enter a value of 1.0.
MATINIT declares the initial material fraction in a topology optimization. MATINIT has
several defaults based upon the following conditions: If mass is the objective function, the
MATINIT default is 0.9. With constrained mass, the default is reset to the constraint
value. If mass is not the objective function and is not constrained, the default is 0.6.
2. Click PAR AM .
5. Click re turn.
Note that the PAR AM button is now green, indicating that it is active.
6. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, comb_complete.fem, in the File name: field.
7. Click Sa v e .
Note the name and location of the file now displays in the input file: field.
8. Click O ptiStruct.
This launches an OptiStruct run ain a seperate shell (DOE or UNIX) which appears.
If the optimization was successful, no error messages are reported to the shell. The
optimization is complete when the line Pro ce s s ing co m ple te appears in the shell.
2. Back in HyperMesh, click H y pe rVie w (from the OptiStruct panel) to launch HyperView.
The HyperView GUI window opens and the results get loaded automatically in HyperView.
A M e s s a ge Lo g window appears to inform about the successful loading of the model and
result files into HyperView.
5. By clicking on the drop-down menus next to each option, for Result type:, select Sha pe
C ha nge (v ); for Scale:, select Sca le fa cto r; and for Type:, select Unifo rm .
9. In the Result Browser open the Load Case and Simulation Selection drop-down menu
and select the 25th iteration.
2. Select the first drop-down list below Result Type: and select E le m e nt Thickne s s e s (s ).
3. Select the second drop-down list below Result Type: and select Thickne s s .
2. For the first drop-down list below Result Type:, choose E le m e nt D e ns itie s (s ) and
D e ns ity in the second list.
3. Make sure that Abo v e is selected in the field next to Show values:.
5. Enter 0.3 in the field next to Current value and press the E NTE R key.
Composite materials have become popular in the application of aircraft structures. The need
for innovative designs has posed a great challenge. This tutorial discusses the optimization-
driven design approach of a composite aircraft underbelly fairing using OptiStruct.
The process expands upon three important and advanced optimization techniques; free-size
optimization, size optimization and ply stacking sequence optimization. By stringing these
three techniques together, OptiStruct offers a unique and comprehensive process for the
design and optimization of composite laminates. The process is automated and integrated in
HyperWorks by generating the input data for a subsequent phase automatically from the
previous design phase.
Problem Definition
The finite element model of the underbelly fairing was generated in HyperMesh, as shown in
the following image. Material properties for carbon-fiber were considered and represented
using an orthotropic material (MAT8) for two dimensional elements. The fairing was modeled
with four ply orientations (0, 90, 45 and -45) of uniform thickness. The SMEAR option is
applied in the PCOMP card to eliminate stack biasing.
Two load cases were defined to represent the operating conditions an internal uniform
pressure loading of 0.02MPa and an external gravity loading of 6.75g. The fairing was
considered to be riveted along its edges to the surrounding structure. Two equipment
masses, weighing 2Kg and 3Kg each, were mounted to the fairing through RBE3 elements.
The fairing has been designed considering two major performance criteria: the first natural
frequency is at least 20Hz, and the maximum strain is less than 1000 micro-strain.
The following optimization setup is defined in the concept design phase to identify the stiffest
design for the given fraction of the material. To obtain more meaningful results,
manufacturing constraints are incorporated and carried through all design phases
automatically.
Step 1: Load the OptiStruct user profile and import the model into
HyperMesh
1. Launch HyperMesh.
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 OptiStruct.
User Profiles can also be accessed from the Preferences menu on the toolbar.
6. Select the fairing.fem file, located in the HyperWorks installation directory under
<install_directory>/tutorials/hwsolvers/optistruct/.
7. Click O pe n.
8. Click Im po rt.
6. Click cre a te .
The design variable fairing is created for the free-size optimization. The manufacturing
constraints on ply percentage and ply balance will be defined next.
8. Click the green e dit button and enter the D SIZ E panel to define the manufacturing
constraints on ply percentage and ply balance.
10. Make sure the Ply Thickness Options are set to ALL.
16. Define the PLYTHK, PLYPCT, and BALANCE constraints, as shown in the following plot.
5. Select gra v ity and pre s s ure loadcases, and make sure the factors are 1.0 for both
loadcases.
7. Click cre a te .
10. Make sure the total volume fraction is selected and the toggle is set to no re gio nid.
5. Click cre a te .
6. Click re turn.
4. Click cre a te .
3. Input the following request to output all composite strain results of all elements to H3D
file.
4. Input the following request to output all composite stress results of all elements to H3D
file.
5. Click re turn.
3. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, fairing_freesize.fem, in the File name: field.
4. Click Sa v e .
Note the name and location of the fairing_freesize.fem file now displays in the input
file: field.
8. Click O ptiStruct.
This launches OptiStruct to run the job. If the job was completed successfully, new
results files can be seen in the directory from which fairing_freesize.fem was saved.
2. On Page 1, go to the C o nto ur panel and select the plot options, as shown below:
3. Select the last iteration in the Load Case and Simulation Selection drop-down in the
Results browser.
4. Click Apply .
The element thickness results from the free-size optimization are shown in the following
image. The regions indicated in red or in colors tending towards red (from the legend) can
be interpreted as thicker regions, while those in blue or tending towards blue are thinner
regions. The contour plot indicated above is the total thickness distribution that includes
contributions from each ply orientation, i.e. a thickness contribution from the 0s, +/-45s
and the 90s. It also indicates the shape and layout of plies per orientation as can be
seen in the ply thickness plot.
2. Select the last iteration in Load Case and Simulation Selection drop-down.
3. Click Apply .
The thickness distribution of 0 degree super ply is generated and shown in Figure 3. It
represents the ply shapes and patch locations of the 0 degree ply bundles.
4. Repeat step 1 through 3 to create the ply thickness contours for super-ply 2 (45), 3 (-45
), and 4 (90).
5. The following images represent the ply shapes and patch locations of +/-45 and 90 ply
bundles. Due to the balance constraint applied, the thickness distribution of the +45 and
7. Turn the display off for all the load collectors: go to the Model Browser, right-click on
Lo a dC o lle cto r and choose H ide .
9. Click the re v ie w button on the right side of the window and select s e t 13 which
represents the ply bundle 1 of 45, as shown below:
The ply bundles can also be reviewed under Ply in the Model Browser, right-click on any
PLY S and click E dit.
The shapes of the plies as indicated through the element set can be used as-is in design
In the second design phase, a size optimization is performed to fine tune the thicknesses of
the optimized ply bundles from Pha se 1. To ensure that the optimization design meets the
design requirements, additional performance criteria on natural frequencies and composite
strains are incorporated into the problem formulation. A load case of normal modes analysis is
added to calculate the natural frequencies of the fairing under assembled conditions. The
optimization setup is also modified to factor in these additional performance targets, among
others.
Design Ply thicknesses, which have been defined in the size input deck from Pha se
variables: 1
Manufacturing constraints are preserved and transferred to the DCOMP card. A minimum
manufacturable ply thickness of 0.1, defined in Pha se 1, is transferred to the PLY card. It
allows for the optimal ply bundle thicknesses to be a multiple of the minimum ply thickness
value, and helps in calculating the total number of plies required per fiber orientation.
Step 1: Load the OptiStruct user profile and import the model
Follow Step 1 in the free-size phase ( Pha se 1) to load the fairing_freesize.*.fem file into
HyperMesh.
Click e dit and review the DCOMP card image, as shown below. PLYPCT and BALANCE
constraints are transferred to DCOMP card. The manufacturable ply thickness constraint
0.1 in PLYTHK is transferred to the PLY card.
4. Click s e le ct.
5. Click de le te e ntity .
The responses defined in free-sizing phase are deleted. The constraint and objective
function defined based on them are automatically removed.
6. Click re turn.
4. Click cre a te / e dit and enter the EIGRL card image panel.
7. Click lo a ds te ps .
4. Make sure the total volume is defined and the toggle is set to no re gio nid.
5. Click cre a te .
8. In the Mode Number field, enter 1 to create the frequency response for the first mode
and make sure that the toggle is set to no re gio id.
9. Click cre a te .
10. Repeat step 6 through 8 to create frequency responses for mode 2, 3, 4, and 5.
6. Click cre a te .
7. Repeat step 2 through 6 to create constraints freq2, freq3, freq4, and freq5
respectively with the same lower bound of 0.02.
11. Click lo a ds te ps and select loadcases gra v ity and pre s s ure .
4. Click cre a te .
OptiStruct will automatically generate a size model after the free-size optimization.
2. Follow the instructions in Step 7 from the free-size phase ( Pha se 1) to save the input file
as fairing_size.fem and set up the run/memory options.
If the job was completed successfully, new results files can be seen in the same directory
where fairing_size.fem was saved.
2. Follow the instructions in Step 8 from Pha se 1 to create the element thickness contour, as
shown in the following image.
3. Set the Result type to O rie nta tio n Thickne s s e s (s ) to create the thickness contour for
each ply orientation.
4. Set the Result type to Ply Thickne s s e s (s ) to create the thickness contour for each ply
bundle.
After the free-size and size optimizations, a weight reduction of ~65% of the original
design was achieved without violating any of the prescribed design constraints. The
optimum ply shape and patch locations in Pha se 1, and subsequently optimized ply bundle
thicknesses in Pha se 2, have been established, and allow us to determine the required
number of plies. This brings us to the third and final phase of the design process in which
we try to identify a proposal for the optimal stacking sequence of the plies.
This algorithm is aimed at providing a global view of what the optimal stacking sequence could
be. An input deck for the ply stacking sequence optimization, fairing_size_shuffling.*.
fem, was generated from a previous design stage. Each ply bundle is divided into multiple
PLYs whose thickness is equal to the manufacturable thickness (0.1 in this case), and the
STACK card is updated accordingly. In this design phase, composite plies are shuffled to
determine the optimal stacking sequence.
It is important that design performances are preserved. Hence, the optimization problem is
retained as previously formulated in the size optimization phase. Two manufacturing
constraints are applied:
The maximum successive number of plies of a particular orientation does not exceed 4
plies.
2. Click re s po ns e s .
6. Click upda te .
7. Click re turn.
4. Go to pa ra m e te rs .
7. Select re v e rs e as the pair type and make sure that ply angles1 and ply angles2 are
45.0 and -45.0, respectively.
8. Click upda te .
9. Click e dit.
2. Follow the instructions in Step 7 in free-size phase ( Pha se 1) to save the input file as
fairing_shuffling.fem and set up the run/memory options.
If the job was completed successfully, new results files can be seen in the same directory
where fairing_shuffling.fem was saved.
The above image shows the history of the shuffling optimization. The columns represent
the global trend of the ply stacking sequence at a particular iteration, with the last
column being the final solution.
The weight of the fairing has not been changed during the shuffling design phase.
Reviewing the results from this process:
This light weight design therefore meets all of the performance requirements, is feasible
and manufacturable.
This tutorial demonstrates how to perform a size optimization on an automobile rail joint
modeled with shell elements. The structural model with loads and constraints applied is
shown in the figure below. The deflection at the end of the tubular cross-member should be
limited. The optimal solution would use as little material as possible.
The structural model, shown above, is loaded into HyperMesh. The constraints, loads, material
properties, and subcases (loadsteps) are already defined in the model. Size design variables
and optimization parameters are defined, and OptiStruct is used to determine the optimal
gauges for the components. The results are then reviewed in HyperView.
Constraints: A given maximum nodal displacement at the loading grid point for
two loading conditions.
Exercise
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. The User Profiles GUI can also
be accessed from the Preferences menu on the toolbar.
4. Select the joint_size.hm file, located in the HyperWorks installation directory under
<install_directory>/tutorials/hwsolvers/optistruct/.
5. Click O pe n.
3. Make sure the de s v a r subpanel is selected using the radio buttons on the left-hand side
of the panel.
9. Make sure the discrete design variable (ddval) toggle is set to no ddv a l.
A design variable, tube, has been created. The design variable has an initial value of 1.0,
a lower bound of 0.1, and an upper bound of 5.0.
11. Repeat steps 4 through 10 to create the design variable rail using the same initial value,
lower, and upper bounds.
A design variable, rail, has been created. The design variable has an initial value of 1.0, a
lower bound of 0.1, and an upper bound of 5.0.
12. Select the generic relationship subpanel using the radio buttons on the left-hand side of
the panel.
14. Click pro p and select tube 2 from the list of property collectors.
Note the linear factor (value is box beside tube) automatically gets set to 1.000.
A design variable to property relationship, tube_th, has been created relating the design
variable tube to the thickness entry on the PSHELL card for the property tube2.
20. Repeat steps 13 through 19 to create the design variable to property relationship rail_th
relating the design variable rail to the thickness entry on the PSHELL card for the
property tube1.
3. Click the response type: switch and select v o lum e from the pop-up menu.
5. Click cre a te .
7. Click the response type: switch and select s ta tic dis pla ce m e nt from the pop-up menu.
9. Enter 3143 (node at center of rigid spider at loading point) and press E NTE R.
Upper bound constraints are to be defined for the responses X_Disp and Z_Disp.
6. Click lo a ds te ps .
8. Click cre a te .
A constraint is defined on the response X_Disp. The constraint is an upper bound with a
value of 0.9. The constraint applies to the subcase FORCE_X.
13. Click lo a ds te ps .
A constraint is defined on the response Z_Disp. The constraint is an upper bound with a
value of 1.6. The constraint applies to the subcase FORCE_Z.
4. Click cre a te .
2. Select the directory where you would like to save the database and enter the name for
the database, joint_sizeOPT.hm, in the File name: field.
3. Click s a v e .
2. Click s a v e a s .
3. Select the directory where you would like to write the model file and enter the name for
the file name, joint_sizeOPT.fem, in the File name: field.
4. Click Sa v e .
Note the name and location of the joint_sizeOPT.fem file now displays in the input file:
field.
This launches the OptiStruct job. If the job was successful, new results files can be seen
in the directory where the OptiStruct model file was written. The joint_sizeOPT.out file
is a good place to look for error messages that will help to debug the input deck if any
errors are present.
Displacement and stress results are output by OptiStruct (by default) for linear static
analyses. This section describes how to view those results in HyperView. Size optimization
results from OptiStruct are given in the .h3d files and joint_sizeOPT.out.
The results contained in the HyperView binary results file will be examined first. Then the
gauge history in the joint_sizeOPT.out file will be reviewed.
HyperView will launch and the results will be loaded. A message window appears to inform
about the successful loading of the model and result files into HyperView. Notice that all
three .h3d files get loaded, each into a different page in HyperView. The files
joint_sizeOPT_des.h3d, joint_sizeOPT_s1.h3d, and joint_sizeOPT_s2.h3d get
loaded in page 2, page 3, and page 4, respectively. The optimization iteration results
(gauge thickness) are loaded in the first page. Note that the name of the page is
displayed as Design History to indicate that the results correspond to optimization
iterations.
4. Make sure the first drop-down list below Result type: is on E le m e nt Thickne s s e s (s ).
7. Set the last load case simulation in the HyperView Results Browser, as shown below.
Scroll down to choose the last iteration ( Ite ra tio n 4, in this case), and click O K.
The third page, which has results loaded from the file joint_sizeOPT_s1.h3d, is
displayed. Note that the name of the page is displayed as Subcase 1 FORCE_X to
indicate that the results correspond to subcase 1.
4. Select the first drop-down list below Result type: and select D is pla ce m e nt [v ].
6. Click on Apply .
The resulting contours represent the x component displacement field resulting from the
applied loads and boundary conditions.
The Measure panel helps measure different results. Here, we will measure the
displacement at node 3143 for which we have constrained the displacement.
13. In the HyperView Results Browser, select the last iteration by double-clicking on the
last Ite ra tio n # .
The contour now shows the x-displacement results for Subcase 1 (FORCE_X) and iteration
4, which corresponds to the end of the optimization iterations. Note that the x-
displacement is now less than 0.9.
14. Click the Next Page button again to move to the fourth page.
The fourth page shows results loaded from the joint_sizeOPT_s2.h3d file. Note that
the name of the page is displayed as Subcase 2 Force_Z to indicate that the results
correspond to subcase 2.
16. Select the first drop-down menu below Result type: and select D is pla ce m e nt [v ].
The resulting contours represent the z component displacement field resulting from the
applied loads and boundary conditions.
19. Repeat steps 8 through 14 to measure and display the z-displacement value for node
3143.
From the UNIX or MSDOS shell, open the joint_sizeOPT.out file in a text editor. Review all
five iterations, noting the volume, constraint information, and gauge at each iteration.
What are the resulting gauges for the rail and tube?
This tutorial demonstrates how to perform a size optimization on a welded bracket modeled
with shell elements. The structural model with loads and constraints applied is shown in the
figure below. The objective is to minimize the amount of material used in the model subject
to certain stress specifications. The gauge changes of the bracket are linked to each other
so that the gauge is identical for both sides at the optimal design.
The structural model, as shown, is loaded into HyperMesh. The constraints, loads, material
properties, and subcases (loadsteps) are already defined in the model. Size design variables
and optimization parameters are defined and the OptiStruct software is used to determine the
optimal gauges. The results are then reviewed in HyperMesh.
Constraints: Maximum von Mises Stress of the brackets < 100 Mpa.
Exercise
Step 1: Launch the HyperMesh Desktop, Set the User Profile and
Retrieve the Database File
1. Launch HyperMesh Desktop.
This loads the OptiStruct user profile. It includes the OptiStruct template, macro menu,
and import reader, paring down the functionality of HyperMesh to what is relevant for use
with OptiStruct.
User Profiles can also be accessed from the Preferences menu on the toolbar.
The bracket_size.hm database is loaded into the current HyperMesh session, replacing
any existing data.
3. Select the de s v a r subpanel using the radio buttons on the left-hand side of the panel.
9. Click cre a te .
A design variable, part1, has been created. The design variable has an initial value of
2.5, a lower bound of 1.0, and an upper bound of 2.5.
10. Repeat steps 4 through 9 to create the design variable part2 using the same initial value,
lower, and upper bounds.
14. Click pro p and select pa rt1 from the list of component collectors.
15. Click the property selection switch and select Thickne s s T from the pop-up menu.
Note that the linear factor (value is box beside part1) automatically gets set to 1.000.
A design variable to property relationship, part1_th, has been created relating the design
variable part1 to the thickness entry on the PSHELL card for the component part1.
20. Repeat steps 12 through 19 to create the design variable to property relationship
part2_th relating the design variable part2 to the thickness entry on the PSHELL card for
the component pa rt2.
Note the linear factor (value is box beside part1) automatically is set to 1.000.
5. Click re turn.
7. Click cre a te .
The design variable part2 is now linearly dependent on the design variable 'part1'.
3. Click the response type: switch and select v o lum e from the pop-up menu.
4. Click cre a te .
6. Click the response type: switch and select s ta tic s tre s s from the pop-up menu.
8. Click s e le ct.
9. Click the response selector switch and select v o n m is e s from the pop-up menu.
10. Click the switch under von mises and select bo th s urfa ce s from the pop-up menu.
A response, stress1, is defined for the von Mises stress of the elements in the
component part1.
14. Click one of the pink shell elements in the graphics window to select the component pa rt2
.
A response, stress2, is defined for the von Mises stress of the elements in the
component part2.
2. Click the switch in the upper left corner of the panel, and select m in from the pop-up
menu.
4. Click cre a te .
Upper bound constraints are to be defined for the responses stress1 and stress2.
4. Click lo a ds te ps .
8. Click cre a te .
A constraint is defined on the response stress1. The constraint is an upper bound with a
value of 100. The constraint applies to the subcase STEP.
11. Click lo a ds te ps .
A constraint is defined on the response stress2. The constraint is an upper bound with a
value of 100. The constraint applies to the subcase STEP.
2. Select the directory where you would like to save the database, enter the name
bracket_size.hm for the database, and click Sa v e .
3. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, bracket_size.fem, in the File name: field.
4. Click Sa v e .
Note the name and location of the bracket_size.fem file now displays in the input file:
field.
8. Click O ptiStruct.
This launches the OptiStruct job. If the job was successful, new results files can be seen
in the directory where the OptiStruct model file was written. The bracket_size.out file
is a good place to look for error messages that will help to debug the input deck if any
errors are present.
bracket_size.sh Shape file for the final iteration. It contains the material
density, void size parameters and void orientation angle for
each element in the analysis. The .sh file may be used to
restart a run and, if necessary, run OSSmooth files for
topology optimization.
Size optimization results from OptiStruct are given in two places. The bracket_size.out file
contains gauge and volume information for each iteration. The bracket_size.h3d file
contains the element thickness for all five iterations and Displacement and Stress results for
the linear static analysis for iteration 0 and iteration 3. This section describes how to review
all results. The results contained in the HyperMesh binary results file will be examined first.
The gauge history in the bracket_size.out file will then be reviewed.
1. Once you see the message Process completed successfully in the command window,
click the green H y pe rVie w button.
This launches HyperView and opens the results. A message window appears to inform
about the successful loading of the model and result files into HyperView. Notice that all
of the .h3d files get loaded, each into a different page in HyperView. The files
bracket_size_des.h3d and bracket_size_s2.h3d get loaded in pages 2 and 3,
respectively.
5. Select the first drop-down menu below Result type: and select E le m e nt Stre s s e s [2D &
3D ] (t).
8. Click Apply .
A contoured image representing von Mises stresses should be visible. Each element in the
model is assigned a legend color, indicating the von Mises stress value for that element
resulting from the applied loads and boundary conditions. If you did not change the
Iteration step, you should be contouring the stress of the initial step. To contour the final
step, set the last iteration of that loadcase using the Model Browser.
Notice only two iterations are displayed; the First and Last (FL) is the default setting for
optimization runs. To change this setting, add an OUTPUT control card with a frequency
setting of ALL.
This will now contour your final iteration of that loadcase. Review the stress to see that
it is under the proper constraints.
1. Click the Previous Page toolbar button to move to the First page.
3. Also make sure that you select Ite ra tio n 2 from the Load Case and Simulation
Selection window.
Alternatively, you can also open the bracket_size.prop file in a text editor to view the
final gauge thicknesses of the two parts.
Review
The .out file contains a summary of the optimization process. From the information in the .
out file, you can see how the objective, constraints, and design variables are changing from
one iteration to the next.
In this tutorial you will learn the steps required to perform a ply orientation optimization for a
composite structure. The figure below illustrates the model that will be used for this exercise.
Exercise
Step 1: Launch the HyperMesh Desktop and Set the User Profile
1. Launch HyperMesh Desktop.
3. Click O K.
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.
6. Click O pe n.
The bicycle_frame.hm database is loaded into the current HyperMesh session, replacing
any existing data.
You will find that the structural model has already been set up with the necessary
elements, parts, property, and material data. We will now try to load the frame to
simulate a sprint scenario.
Step 2: Create Load Collectors for the Loads and Boundary Conditions
2. Select the create subpanel using the radio buttons on the left-hand side of the panel.
5. Click the creation method switch and select no ca rd im a ge from the pop-up menu.
6. Click cre a te .
9. Click cre a te .
4. Select the cre a te subpanel using the radio buttons on the left-hand side of the panel.
5. Click the entity selection switch, immediately to the right of the create radio button and
select no de s from the pop-up menu.
6. Select the node at the center of the rigid spider as seen in the figure below, by clicking on
it in the graphical display area.
9. Click the direction definition switch below magnitude = and select the z - a xis from the
pop-up menu.
10. Click C re a te .
13. Select the create subpanel using the radio buttons on the left-hand side of the panel.
14. Click the entity selection switch, immediately to the right of the create radio button and
select no de s from the pop-up menu.
15. Select the node at the center of the rigid spider as seen in the figure below, by clicking on
it in the graphical display window.
18. Click the direction definition switch below magnitude = and select the x- a xis from the
pop-up menu.
Note: This is a simplified loading regime that represents the transformed loads from a
person's foot on the pedal.
Note that spcs now appears on the footer bar to indicate that it is the current load
collector.
3. From the Analysis page, select co ns tra ints to enter the panel.
4. Select the create subpanel using the radio buttons on the left-hand side of the panel.
5. Click the entity selection switch, immediately to the right of the create radio button and
select no de s from the pop-up menu.
6. Select the nodes shown below to constrain the structure by clicking on the center of the
rigid spiders, as seen in the next two figures.
8. Click C re a te .
3. Click the type: switch and select line a r s ta tic if it is not already selected by default.
5. Click on the entry field and select s pcs from the list of load collectors.
7. Click on the entry field and select cra nk from the list of load collectors.
8. Click cre a te .
An OptiStruct loadstep has been created which references the constraints in the load
collector spcs and the forces in the load collector crank.
This launches the HyperLaminate GUI. The next steps are performed in the HyperLaminate
GUI.
2. Expand the Design Variable portion of the tree structure on the left-hand side of the
screen.
3. Right-click D E SVAR.
4. Click Ne w.
This creates a new design variable, which is named NewDv1 by default, and the tree
structure is expanded.
9. Click Apply .
10. In a similar manner, and with identical values, create a total of 5 design variables following
the procedure outlined in steps 4 through 9 for thk2, thk3, thk4, and thk5.
Alternately, you can right-click on thk1 and choose D uplica te from the floating menu to
create an identical design variable. Repeat this process to create a total of 5 design
variables, then rename the new design variables by right-clicking on them and choosing
R e na m e .
11. Examine the PCOMP branch to see all of the PCOMPs in the model.
13. Click on the check box next to Optimization at the top of the middle panel.
New fields appear in the Ply lay-up order table allowing design variables to be associated
to ply thicknesses or ply orientations.
16. Repeat steps 14 and 15 for the other rows as shown below:
This associates the design variables thk(i) with the thickness for the ply(i) of this
laminate. In this case, ply(11-i) too, since this is a symmetric laminate.
18. Repeat this process for TOP_tube and down_tube using the same DVs as on the
seat_tube property.
1. From the Analysis page, select o ptim iz a tio n to enter the panel.
4. Click the response type: switch and select s ta tic dis pla ce m e nt from the pop-up menu.
6. Click no de s and select the node at the bottom bracket where the loads were applied by
clicking on it in the graphical display window.
7. Click cre a te .
9. Click the response type: switch and select v o lum e from the pop-up menu.
6. Click lo a ds te ps .
8. Click cre a te .
A constraint is defined on the response dis p. It states that any solution (min. volume)
needs to have a displacement lower than 1.8 mm to be feasible.
6. Click cre a te .
3. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, bicycle_frameOPT.fem, in the File name: field.
4. Click Sa v e .
Note the name and location of the bicycle_frameOPT.fem file now displays in the input
file: field.
8. Click O ptiStruct.
This launches the OptiStruct job. If the job is successful, new results files can be seen in
the directory where the OptiStruct model file was written. The bicycle_frameOPT.out
file is a good place to look for error messages that will help to debug the input deck if any
errors are present.
3. Select the bicycle_frameOPT_hist.mvw file that was created from your OptiStruct run
and click O pe n.
This file contains plots of the objective, constraints, and design variables against iteration
history. The first page shows the Objective function:
The next pages show the Design Variables (DVs) which are grouped together making it
possible to compare the behavior of the different plies. This plot can be created by
opening the bicycle_frameOPT.hgdata file.
This tutorial demonstrates how to perform a size optimization on a welded bracket modeled
with shell elements using discrete design variables. The structural model with loads and
constraints applied is shown in the figure below. The objective is to minimize the amount of
material used in the model subject to certain stress specifications.
The structural model, as shown in the figure, is loaded into HyperMesh. The constraints,
loads, material properties, and subcases (loadsteps) are already defined in the model. Size
design variables and optimization parameters are defined, and OptiStruct is used to determine
the optimal gauges. The results are then reviewed in HyperView.
Constraints: Maximum von Mises stress of the brackets < 120 MPa.
Exercise
Step 1: Launch the HyperMesh Desktop, Set the User Profile, and
Retrieve the Database File
1. Launch HyperMesh Desktop.
User Profiles can also be accessed from the Preferences menu on the toolbar.
5. Click O pe n.
The bracket_size.hm database is loaded into the current HyperMesh session, replacing
any existing data.
4. Click on the field next to from= and enter the value 0.5. With the same method, enter
3.0 for to = and 0.1 for increment=. The tab key can be used for faster inputs.
5. Click cre a te .
This sets up a discrete design variable with a starting value of 0.5 and ending value of
3.0. The variables are incremented by 0.1, making the possible values as 0.5, 0.6, 0.7,
and so on until 3.0.
6. Create another discrete design variable, DDV2, with the same discrete values as DDV1.
9. Select the desvar subpanel using the radio buttons on the left-hand side of the panel.
A design variable, part1, has been created. The design variable has an initial value of 2.5,
a lower bound of 0.5, and an upper bound of 3.0 and is linked to a DDVAL (Discrete Design
Variable Value) of the name DDV1.
17. Repeat steps 10 through 16 to create the design variable part2 using the same initial
value, lower, and upper bounds, linking it to a DDVAL of name DDV2.
18. Select the generic relationship subpanel using the radio buttons on the left-hand side of
the panel.
21. Click pro p and select pa rt1 from the list of component collectors.
22. Click the property selection switch and select Thickne s s T from the pop-up menu.
25. Note that the linear factor (value in box beside part1) automatically gets set to 1.000.
A design variable to property relationship, part1_th, has been created, relating the design
variable part1 to the thickness entry on the PSHELL card for the component part1.
28. Repeat steps 19 through 26 to create the design variable to property relationship
part2_th, relating the design variable part2 to the thickness entry on the PSHELL card
for the component part2.
3. Click the re s po ns e ty pe : switch and select v o lum e from the pop-up menu.
4. Click cre a te .
6. Click the re s po ns e ty pe : switch and select static stress from the pop-up menu.
7. Click pro ps .
8. Click one of the green shell elements in the graphics window to select the component
pa rt1.
9. Click s e le ct.
10. Click the stress type selector switch and select v o n m is e s from the pop-up menu.
11. Click the selector switch below the stress selector and choose the bo th s urfa ce s option.
A response, stress1, is defined for the von Mises stress of the elements in the component
part1.
15. Click one of the pink shell elements in the graphics window to select the component pa rt2
.
A response, stress2, is defined for the von Mises stress of the elements in the component
part2.
Upper bound constraints are to be defined for the responses stress1 and stress2.
4. Click lo a ds te ps .
8. Click cre a te .
A constraint is defined on the response stress1. The constraint is an upper bound with a
value of 100. The constraint applies to the subcase STEP.
11. Click lo a ds te ps .
A constraint is defined on the response stress2. The constraint is an upper bound with a
value of 120. The constraint applies to the subcase STEP.
2. Click the switch in the upper left corner of the panel, and select m in from the pop-up
menu.
4. Click cre a te .
2. Click s a v e a s .
3. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, discrete_bracket_size.fem, in the file: field.
4. Click Sa v e .
Note the name and location of the discrete_bracket_size.fem file now displays in the
input file: field.
8. Click O ptiStruct.
This launches the OptiStruct job. If the job was successful, new results files can be seen
in the directory where the OptiStruct model file was written. The bracket_size.out file
is a good place to look for error messages that will help to debug the input deck if any
errors are present.
1. Once you see the message Process completed successfully in the command window,
click the green H y pe rVie w button.
This launches the HyperView into a new page and opens the results. A message window
appears to inform about the successful loading of the model and result files into
HyperView. Notice that all of the h3d files get loaded, each into a different page in
HyperView. The files discrete_bracket_size_des.h3d and
discrete_bracket_size_s2.h3d get loaded in pages 2 and 3, respectively.
The third page has the results loaded from the discrete_bracket_size_s1.h3d file.
Note that the name of the page is displayed as Subcase 1 STEP to indicate that the
results correspond to subcase 1.
5. Select the first drop-down menu below Result type: and select E le m e nt Stre s s e s [2D &
3D ] (t).
8. Click Apply .
A contoured image representing von Mises stresses should be visible. Each element in the
model is assigned a legend color, indicating the von Mises stress value for that element
resulting from the applied loads and boundary conditions. If you did not change the
Iteration step you should be contouring the stress of the initial step. To contour the final
step, set the last iteration of that loadcase using the button on the animation
9. Use the bottom drop-down menus in the Results Browser to select the last Ite ra tio n #
in the Simulation: list.
Notice only two iterations are displayed; the First and Last (FL) is the default setting for
optimization runs. To change this setting, add an OUTPUT control card with a frequency
setting of ALL.
This will now contour your final iteration of that loadcase. Review the stress to see that
it is under the proper constraints.
Review
The .out file contains a summary of the optimization process. From the information in the .
out file, you can see how the objective, constraints, and design variables are changing from
one iteration to the next.
Hints
Go to the des.h3d page, clear the contour if one was applied, set to the last simulation step
and apply the Element Thickness contour.
A size optimization is performed in this tutorial using OptiStruct. Size optimizations involve
the changing of the properties of either 1-D or 2-D elements. These properties include area,
moments of inertia of the 1-D elements, and the thickness of 2-D elements. Size optimization
is performed when it is not necessary to remove materials, generate beads or change the
shape of the structure.
With size optimization, the cross-sectional properties of the elements are changed to meet
the necessary objective. Properties are linked with design variables (DESVAR) using DVPREL
cards.
This tutorial goes through the steps involved in defining a size optimization for a model
comprised of shell and bar elements. You will update the PBARL property to simulate the
properties of the bar elements and then link that to the design variable. The resulting design
will have higher frequencies and updated element properties.
In this chapter, we will also use OptiStruct macros under an OptiStruct user profile to set up
the optimization problem.
Problem Statement
Design variables: Beam width, beam thickness, beam depth, and shell thickness
Exercise
Step 1: Launch the HyperMesh Desktop, Set the User Profile, and
Import an FE Model File
1. Launch HyperMesh Desktop.
3. Click O K.
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.
7. Click on the Select Files button and browse for the shredder.fem file located in the
HyperWorks installation directory under <install_directory>/tutorials/hwsolvers/
optistruct/.
8. Click O pe n.
9. Click Im po rt.
3. Select the directory where you would like to write the file and enter the name
shredder_analysis.fem in the File name: field.
4. Click Sa v e .
Note that the name and location of the shredder_complete.fem file shows in the input
file: field.
9. Click R a dio s s .
If the job was successful, new results files can be seen in the directory where the
RADIOSS model file was written. The shredder_analysis.out file is a good place to look
for error messages that will help to debug the input deck if any errors are present.
A HyperView client launches in a new page and the session file, shredder_analysis.mvw,
is loaded. This file is linked with the shredder_analysis.h3d file, which contains the
model and results.
7. Set Type: to Unifo rm : and type in a scale factor of 1000 for Value.
This means that the maximum displacement will be 1000 modal units and all other
displacements will be proportional.
Using a scale factor higher than 1.0 amplifies the deformations while a scale factor smaller
than 1.0 would reduce them. In this case, we are accentuating displacements in all
9. Set Color: to M e s h.
11. In the Results Browser, use the Simulation drop-down to select M o de 1 and click O K.
12. Click the contour button and click Apply to plot the Eigen Mode contour.
13. Click on the Note button and remove the first two lines, leaving the rest as below,
and click Apply .
14. Click on the Page Window Layout button to choose the four window layout .
15. Click in the first window and, from the Edit menu, click on C o py W indo w.
16. Click in the second window and, from the Edit menu, click on Pa s te W indo w.
18. Next, update the 2nd, 3rd, and 4th windows with the 2nd, 3rd, and 4th modes. This can be
done easily by selecting the window and clicking in the mode selection box above the
HyperView Entities tree (in the Results Browser). Select each window and then use the
selector drop-down to choose which mode you wish to display in that window.
19. Click on the play button in the animation controls to start the animation, and click
again to stop the animation.
The 3rd and 4th mode (~ 3.9 and 4.8 Hz) has a transversal shape that can reduce the
performance of the shredder when it gets excited. The objective, then, is to get the
minimum mass to greater than 7Hz.
3. Make sure the desvar subpanel is selected using the radio button on the left hand side of
the panel.
5. Enter the following values: initial value = 3.0, lower bound = 1.0, upper bound = 6.0
.
7. Similarly create four more design variables with following initial values, lower bounds and
upper bounds from the size panel.
Beamwide 50 30 90
Beamthck1 10 5 15
Beamthck2 20 15 30
7. Click re turn.
8. Click cre a te .
9. Click re turn.
1. From the size panel, select the generic relationship subpanel by selecting the radio
button.
4. Click cre a te .
8. Click cre a te .
5. Click the lo a ds te p button and check the box beside ld1, then click s e le ct.
6. Click cre a te .
7. Repeat items 2 through 6 with the following values: constraint= c_f4, lower bound =
6.0, response = f4, and loadstep ld1.
4. Click cre a te .
2. In the Save file... window, browse for the working directory and save the database as:
shredder_optimization.hm.
3. Click Sa v e .
5. Click O ptiStruct.
If the job was successful, new results files can be seen in the directory where the
OptiStruct model file was written. The shredder_optimization.out file is a good place
to look for error messages that will help to debug the input deck if any errors are present.
A message window appears to inform about the successful loading of the model and result
files.
4. Navigate to the Design History page, if you are not already there through the use of the
page navigation arrows, as shown below.
5. From the Model Browser, select the last Ite ra tio n # and click O K, as shown in the
image below.
7. Select the first drop-down menu below Result type: and select E le m e nt Thickne s s e s
(s ) and Thickne s s .
8. Click Apply .
The resulting colors represent the thickness fields resulting from the applied loads and
boundary conditions. Notice the final optimized thickness of the cover component is 1.0.
9. Open the shredder_optimization.prop file using any text editor to review final
optimized PBAR property. The following figure illustrates what you will be looking for.
Beam Thck 5
(DIM3):
Beam wide 15
(DIM4):
This .prop file can be read into HyperMesh with over write mode on and the PBARL card
will be updated.
The purpose of this tutorial is to optimize the thickness of the aluminum ribs for a horizontal
tail plane (model shown below).
It is assumed that the tail is cantilevered about its inboard section. Three loading scenarios
are considered; one where the tail experiences pressure loads of 0.25psi on the bottom skin,
a second where the tail experiences a tip load of 400lbs, and a third where the tail
experiences both the pressure load and tip load simultaneously. The applied loading is
represented in the following figure.
The materials available for this part are described in the following table. The optimum design
should be as light as possible without failing or buckling under the given loading conditions.
G1,Z 800ksi (800000 4ksi (4000 psi) Yield 50ksi (50000 psi)
psi)
Exercise
Step 1: Launch HyperMesh Desktop, Set the User Profile, and Retrieve
the File
1. Launch HyperMesh Desktop.
3. Click O K.
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. The User Profiles GUI can
also be accessed from the Preferences menu on the toolbar.
5. Select the tail_baseline.hm file, located in the HyperWorks installation directory under
<install_directory>/tutorials/hwsolvers/optistruct/.
6. Click O pe n.
7. Click Apply .
5. Ensure that C a rd e dit m a te ria l upo n cre a tio n is checked and click C re a te .
6. Fill in the fields for E, Nu and Rho with values 10.6e6, 0.33 and 0.1, respectively.
These values are taken from the table Aluminum 2024-T3 at the beginning of the
8. Right-click in the Model Browser window, and select C re a te > Pro pe rty .
12. Ensure that C a rd e dit pro pe rty upo n cre a tio n is checked and click C re a te .
14. Enter the thickness for the shell component by clicking [T], clicking in the text box, and
typing 1.0.
16. Using the Model Browser, create a new Component named Ribs.
18. Click C re a te .
A property collector called Ribs has been created. It has a PSHELL definition with a
thickness of 1.0. It also references the Aluminum 2024-T3 material definition and the
2. On the left-hand tree structure, left click on M AT8 to highlight it, and then right-click on
the highlighted M AT8.
3. Click on Ne w.
A new material definition is created and appears in the left-hand tree structure on a
branch underneath MAT8.
4. Under the section Define/Edit material, click in the field to the right of Material:.
6. Fill in the fields for E1, E2, NU12, G12, G1, Z, G2, Z, RHO, Xt, Xc, Yt, Yc, and S with
the information provided in the table at the beginning of the tutorial. Refer to the
examples in the model, if needed.
7. Click Apply .
8. Repeat steps 4 through 8 to create other material called Core with the material properties
provided in the table. You could also select a different color.
You should now have two new orthotropic material definitions on the MAT8 branch of the
left-hand tree structure.
A new laminate definition is created and appears in the left-hand tree structure on a
branch underneath PCOMP.
6. To the right of this field, click co lo r and choose a color for this laminate.
10. Under Ply lay-up order, in the 2nd row, modify the information:
11. Under Ply lay-up order, in the 1st row, modify the information:
The Ply lay-up order should look as shown in the following figure:
15. Update the ply angles on the other four laminates (Outboard_section_btm,
Outboard_section_top, Midspan_section_btm, and Midspan_section_top) to be the
same as shown previously.
You should now have six laminate definitions on the PCOMP branch of the left-hand tree
structure. The tree-structure should look like the one shown in the figure below at this
point.
This will let you exit the HyperLaminate GUI, and will export the information back to
HyperMesh.
1. Expand the Component branch of the Model Browser tree. Right-click on the
Inboard_section_top collector and select As s ign.
2. Select the property Inboard_section_top from the list in the dialog box and click O K to
return to the main window.
3. Set the mesh radio button on the left hand side of the panel.
5. Click re turn.
7. Select one of the elements on the top inboard section, shown in brown in the picture
below.
Notice a number of elements are selected on the top surface, stopping where the angle
between elements is greater than 37deg. The ribs elements in between the top and
bottom surface create a 90deg, thus the selection set stops here.
9. Click de s t = and select Inbo a rd_s e ctio n_to p from the list of component collectors.
10. Click M o v e .
Only the elements forming the ribs which are in the tail collector should now be displayed.
16. Click M o v e .
21. Click pre v ie w e m pty and de le te e ntity to clear any empty components (the tail
component in this case).
2. Make sure the elements radio button is selected at the left of the panel.
6. Click on the co m ps entity selection and select re v e rs e from the extended selection list.
7. Click s e le ct.
You may verify if the element normals are not all in the same direction. If they are not,
follow steps 9 and 10.
9. Click on e le m under orientation: and choose an element whose normal is pointing inward.
All "skin" normals should now point inwards. These skin normals are the local z-axes for
each element.
13. Make sure the radio button is set to m a te ria l o rie nta tio n.
14. Select those elements belonging to the "skin" (all the comps except ribs) components.
15. Click the switch under Material orientation method: and select by v e cto r from the
drop-down menu.
16. Click on the switch under by vector and select z - a xis from the drop-down menu.
Having defined the local x and z axes of the elements belonging to the component
collectors Inboard_section_top, Inboard_section_btm, Midspan_section_top,
Midspan_section_btm, Outboard_section_top, and Outboard_section_btm, we
have fully established the local orientation for each element referencing a composite
laminate.
Three loading scenarios are to be considered in this exercise: one where the tail experiences
pressure loads on the bottom skin, a second where the tail experiences a tip load, and a third
where the tail experiences both the pressure load and tip load simultaneously.
Currently we have a load collector containing the pressure loads and another containing the
tip load, but we do not have a load collector containing both together. We need to create a
load collector which is a combination of the load collectors pressure and tip_load.
5. Ensure that C a rd e dit lo a dco lle cto r upo n cre a tio n is checked and click C re a te .
An OptiStruct LOAD card is created and the card image appears in the lower part of the
display area. For information on the LOAD card, please read the OptiStruct on-line help.
9. Double-click L1(1) and select pre s s ure from the list of load collectors.
11. Double-click L1(2) and select tip_lo a d from the list of load collectors.
A combination load collector, combining 1.0 times the loads in the pressure load-collector
with 1.0 times the loads in the tip_load collector, is created.
With this window, you will create a static subcase and an associated buckling subcase in
one step.
If you call the static subcase name, then the associated buckling subcase will be called
buck_name.
5. Select E IG R L from the drop-down menu that follows the field for Name:.
This indicates that eigenvalue analysis is to be used to calculate the buckling modes.
Currently this is the only option available.
This indicates that the lower bound for the eigenvalue extraction is 0.0. This prevents
negative buckling modes being calculated (negative buckling modes indicate that buckling
will occur if the loading is reversed).
This is the upper bound for the eigenvalue extraction. We will choose a number of modes
to calculate (instead of a range of eigenvalues) for this exercise.
This requests that the 10 lowest buckling modes (which are greater than V1) be
calculated.
9. Select pre s s ure from the drop-down list to the right of LOAD:.
10. Select co ns tra ints from the drop-down list to the right of SPC:.
11. Click C re a te .
You have now created a linear static subcase called pressure_only which combines the
pressure loads in the load-collector pressure with the single-point constraints in the load
collector constraints.
12. Repeat steps 3 through 11 to create a static subcase called tip_load_only, which
combines the point loads in the load-collector tip_load with the single point constraints
in the load collector constraints, and an associated buckling subcase which will calculate
the first 10 modes greater than 0.0.
13. Repeat steps 3 through 11 again to create a static subcase called combo, which
combines the loads in the load-collector combined (i.e. both pressure and tip_load)
with the single point constraints in the load collector constraints, and an associated
buckling subcase which will calculate the first 10 modes greater than 0.0.
Step 10: Request Stress, Strain, and Failure Results for Composite
Laminates
Stress, strain, and failure results are not output by default for composite laminates, but need
to be requested.
1. Right-click on the O utbo a rd_s e ctio n_to p property in the Model Browser and select
C a rd E dit.
The PCOMP card image for the Outboard_section_top laminate appears in the lower
portion of the display area. For more details on the PCOMP card image, please refer to
the OptiStruct online documentation.
2. If HILL does not appear beneath [FT], click [FT] notice HILL appears beneath.
This activates failure theory calculation. If you click H ILL, a list of other failure theories
pop-up - use the Hill failure criteria for this exercise.
3. Click [SB ] in the card image window and enter 3,500 in the field beneath it.
This is the interlaminate shear strength of the laminate, which is the bonding material
shear strength. 3.5ksi is an assumed value, as no material data was provided.
4. Click on the button beneath SOUT(1) and select Y E S from the pop-up menu.
5. Set all other plies, i.e. SOUT(2), SOUT(3), SOUT(4) and SOUT(5) to Y E S also.
6. Click re turn to keep the changes you made to the card image.
(Note: Select all PCOMP props in step 3 to reduce steps. Make sure you click H ILL).
9. From Analysis page, select the co ntro l ca rds panel, and enter GLOBAL_CASE_REQUEST.
10. Make sure CSTRAIN is selected from the list of control cards.
11. Make sure CSTRESS is selected from the list of control cards.
The CSTRESS card image appears in the lower portion of the display area.
Stress, strain, and failure results will now be output for the composite laminates.
The message Processing complete appears in the window at the completion of the
job. RADIOSS also reports error messages if any exist. The file
tail_baseline_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.
Analysis results.
The Volume, Mass, and Buckling Modes for the baseline model are given in the analysis results
section, as shown in the following tail_baseline_complete.out analysis results section:
ANALYSIS RESULTS :
------------------
Subcase Compliance
1 5.455666E+02
3 2.486638E+01
5 7.735856E+02
HyperView is launched and the results are loaded. A message window appears to inform
about the successful loading of the model and result files into the HyperView client in a
Note that this capture is shown for the 1st subcase [pressure only]. You could also view
the same for other subcases.
2. Make sure that the box for Auto apply mode: is checked.
This will cause any component selected, either in the display or from the list of
components, to be hidden.
4. Hide all of the components except the ribs by clicking them in the GUI.
8. Click Apply .
This shows a contour plot of the von Mises stresses for the metallic ribs.
The Ribs component is now hidden and the composite laminate components are
displayed.
11. Click the Contour toolbar button or select C o nto ur from the Graphics menu.
12. Set Result type: to C o m po s ite Stre s s e s (s ) from the first row and Ply Fa ilure from the
second row.
A contour plot of the composite failure indices from the composite skins results is
displayed for the first layer.
After calculating the failure indices for individual plies, OptiStruct calculates the potential
failure index for the composite shell element. This is based on the premise that failure of a
single layer qualifies as failure of the composite. Thus, a failure index for composite
elements is calculated as a maximum of all computed ply and bonding failure indices (note
that only plies with requested stress output are taken into account here).
15. Change Entity with Layers: to M a x to have the maximum index for the laminate.
Repeat this process to have the maximum failure index for all loadsteps.
We return to HyperMesh now to set up the optimization problem. The first step in this
process is to define the design variables. The design variables for this exercise are the rib
thicknesses and the laminates used in the composite skins.
HyperMesh Desktop allows you to use one HyperMesh page and multiple pages from the
HyperView, HyperGraph, MotionView, and MediaView clients without having to switch
applications. To delete the HyperView page and return to the HyperMesh client, click on the
D e le te Pa ge button. To keep the page open but return to the HyperMesh client page,
5. Make sure that the top toggle is set to v a lue fro m pro pe rty .
This sets the initial value of the design variable to be the thickness value defined on the
property card.
7. Toggle the upper bound % button uppe r bo und = and enter 2.0.
The following figure shows the how the settings should look.
9. Click cre a te .
4. Select Ne w.
9. Click Apply .
10. In a similar manner, and with identical values, create one more design variables called
isbgf_th following the procedure outlined in steps 4 through 9.
Alternately, you can right-click on is tgf_th and choose D uplica te from the menu to
create an identical design variable. Repeat this process to create the other design
variables, then rename the new design variables by right-clicking on them and choosing
R e na m e .
11. Review the other ten design variables in HyperLaminate and the information in the table
below.
Twelve total composite design variables now exist, one for the thickness of the glass
fabric for each composite laminate component, and the other for the thickness of the core
New fields appear in the Entry Rows table, allowing design variables to be associated to
ply thicknesses or ply orientations.
3. Under Ply lay-up order, click on the field under Designvar, under Thickness in row 1.
Now the design variable istgf_th is associated to the thickness of the Glass_fabric
material used in ply1, and, in this case, ply5 (as this is a symmetric-midlayer type
laminate) of the Inboard_section_top component collector.
Now the design variable istc_th is associated to the thickness of the Core material used in
ply2 & ply4 of the Inboard_section_top component collector.
This will close the HyperLaminate GUI, exporting the design variable and updated laminate
information back to HyperMesh.
Step 18: Create the Mass, Static Stress and Composite Failure
Responses
1. From the Analysis page, select the o ptim iz a tio n panel.
2. Select re s po ns e s .
4. Click the response type: switch and select m a s s from the pop-up menu.
5. Click cre a te .
7. Click the response type: switch and select s ta tic s tre s s from the pop-up menu.
9. Click Se le ct.
11. Click the switch below von Mises and set it to bo th s urfa ce s .
The optimization response vm_strs, which is the von Mises stress for the metallic ribs, is
created.
14. Click the response type: switch and select co m po s ite fa ilure from the pop-up menu.
15. Click pro ps and select the Inbo a rd_s e ctio n_to p collector.
The optimization response hl_ist is created. This is the hill failure criteria for all plies of
the composite skins of the Inboard_section_top component collector.
19. Repeat steps 12 through 17 to create optimization responses for the hill failure criteria for
the plies of the other composite laminate skins. The responses could be similarly named:
hl_osb, hl_ost, hl_msb, hl_mst, and hl_isb.
21. Click the response type: switch and select buckling from the pop-up menu.
The optimization response buckle, which is the lowest calculated buckling mode for the
structure, is created.
6. Click lo a ds te ps and select the loadsteps pre s s ure _o nly , tip_lo a d_o nly , and co m bo .
7. Click s e le ct.
8. Click cre a te .
This defines a constraint on the von Mises stress of the metallic ribs to be less than 50ksi
for all of the static subcases.
13. Click lo a ds te ps and select the loadsteps pre s s ure _o nly , tip_lo a d_o nly , and co m bo .
This defines a constraint on the hill failure criteria for the Inboard_section_top laminate
to be less than 1.0. for all of the static subcases.
16. Repeat steps 9 through 15 for all the other failure criteria responses, creating cnst3
through cnst7.
22. Click lo a ds te ps and select the loadsteps buck_pre s s ure _o nly , buck_tip_lo a d_o nly ,
and buck_co m bo .
This defines a constraint on the lowest calculated buckling mode of the structure to be
greater than 1.0 for all of the linear buckling subcases.
This defines the objective of the optimization to minimize the mass of the structure.
Together, these two options ensure that up to 10 modes are considered in the buckling
constraint. Please refer to the OptiStruct online help for a more detailed description.
3. Click re turn.
6. Click O ptiStruct.
The message Processing complete appears in the window at the completion of the
job. OptiStruct also reports error messages if any exist. The file tail_opt.fem.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.
The value of the objective, the retained constraints, and the design variables are provided for
each iteration in the optimization iteration history section. The sample output for the final
iteration is shown in the plot of objective against iteration below.
The final iteration provides information on the mass of the optimized structure, the values of
the design variables for the optimized structure and the values of the objective and retained
constraints for the optimized structure.
1. Create a new page with the HyperView client by using the Add Pa ge button .
3. Select the file tail_opt_hist.mvw from the directory where you ran the OptiStruct
optimization.
This is a HyperView session which creates plots of the objective, constraints, and design
variables against iteration number using information from the tail_opt.hist file.
The figure below shows page 1 of the session, which is the plot of the objective against
iteration. It shows how the mass decreased through the optimization process and how
convergence is achieved when the change in mass levels out.
Similar plots are available for the design variables and the constraints. There is also a plot
showing the maximum constraint violation for a given iteration against iteration. When
this value is zero, it indicates that there is no constraint violation.
2. Change the current client to H y pe rVie w using the client selector drop-down .
3. Click the down arrow to the right of the Select application toolbar button and select
HyperView .
4. Click Y e s to continue.
5. Create a two pane view by clicking on the Page Window Layout icon and selecting the
8. Select the Tail_baseline_complete.h3d file from the directory where you ran your
RADIOSS baseline analysis.
9. Click O pe n.
Note that the path and file name for Tail_baseline_complete.h3d appears in the fields
to the right of Load model and Load results. This is good because the Hyper3D format
contains both model and results data.
The model and results are loaded in the current HyperView window.
12. Repeat steps 5 through 8 to load the file tail_opt_s1.h3d from the directory where you
ran your OptiStruct optimization.
For the optimization, analysis results are written to files named *_s#.h3d (static analysis
results, where # is the subcase ID) and *_m#.h3d (eigenvalue analysis results, where # is
the subcase number), while the density, thickness and shape results are written to the
file *_des.h3d.
15. Select D is pla ce m e nt (v ) from the drop-down menu under Result type:.
19. Click O K.
21. Select D is pla ce m e nt (v ) from the drop-down menu under Result type:.
You can now see a side-by-side comparison of the displacement results before the
optimization with those after the optimization (figure below); note the big change in the
value of the total displacement. The optimized displacement results are greater than
the baseline because we were optimizing for mass without displacement
constraints.
23. With the animation mode set to Linear static , click the Pla y icon to animate the
deformation.
Similar steps can be followed to compare stress and composite failure plots before and
Notice how the maximum value for the composite failure index is almost at the design limit
of 1.0.
This clears all results information out of the client, including all pages. This will not affect
your files on your hard drive.
4. Click the file folder icon at the end of the File: field and select the tail_opt.fem file from
the directory where you ran the optimization.
5. Click Im po rt.
This loads the *.fem that the optimization was run with into HyperMesh.
6. Click the file folder icon at the end of the File: field and select the tail_opt.prop file
from the directory where you ran the optimization.
The tail_opt.prop file is created by OptiStruct at the end of the optimization run and
contains the optimized property data for model.
7. Under the Import tab, click on the arrow before the import options to expand.
9. Click Im po rt.
11. Click through the PCOMP properties and review the new thickness.
Conclusion
The objective of this tutorial was to achieve the lightest design by varying the laminate
properties and rib thicknesses. Experimenting with other materials and other laminate
configurations could lead to a lighter design.
In this tutorial, an existing finite element model of an aluminum wing rib model will be used to
demonstrate how to do free-sizing optimization using OptiStruct. HyperView will be used to
post-process the thickness pattern in the rib.
There are four shell components in the model: the mounting flange, the web, the top and
bottom flanges, and the lug. The web is connected to the lug by gap elements. Appropriate
properties, loads, boundary conditions, and nonlinear subcases have already been defined in
the model. The design region is the web and the rest of the components are non-design.
Since a large portion of aerospace components are shell structures which are manufactured
by machining or milling operations, free-sizing optimization is very suitable for those
components. To understand the limitations of topology optimization for such applications, a
nonlinear gap topology optimization will also be done on the wing rib model.
Design variables for free Thickness of each shell element in the design space.
sizing optimization:
Design variables for Element density of each element in the design domain.
topology optimization:
Review and compare results from free-size optimization and topology optimization
Exercise
Step 1: Launch HyperMesh Desktop, Set the User Profile, and Retrieve
the File
1. Launch HyperMesh Desktop.
4. Select the rib_complete.hm file, located in the HyperWorks installation directory under
<install_directory>/tutorials/hwsolvers/optistruct/.
5. Click O pe n.
3. Choose the cre a te subpanel using the radio button on the left.
7. Click cre a te .
4. Click upda te .
5. Click re turn.
4. Click lo a ds te ps and select both the C o up_Ve r and Pre s s ure loadcases.
5. Click re turn.
6. Click cre a te .
7. For response =, input the name volfrac to create the volume fraction response.
12. Click on the dco ns tra ints panel to define the volume fraction constraint.
3. Select the directory where you would like to write the optimization file and enter the
name rib_freesize.fem in the File name: field.
4. Click Sa v e .
Note the name and location of the rib_freesize.fem file shows in the input file: field.
8. Click O ptiStruct.
If the job was successful, new results files can be seen in the directory where the
OptiStruct model file was written. The rib_freesize.out file is a good place to look for
error messages that will help to debug the input deck if any errors are present.
rib_freesize_hist.mvw This file is a HypeView session file and may be opened from
the File menu in HyperView or HyperGraph. The file
automatically creates individual plots for each of the results
(objectives, constraints) contained in the .hist file. Each
plot occupies its own page within HyperView (HyperGraph).
rib_freesize_frame. The file contains two frames. The top frame opens one of
html the .h3d files using the HyperView Player browser plug-in.
The .h3d file opened depends on the results selected for
display in the bottom frame. The bottom frame opens the
_menu.html file, which facilitates the selection of results to
be displayed.
rib_freesize_menu.html This file facilitates the selection of the appropriate .h3d file
for the HyperView Player browser plug-in in the top frame of
the _frames.html file, based on chosen results.
rib_freesize.oss The file contains default settings for running OSSmooth after
a successful optimization.
rib_freesize.sh Shape file for the final iteration. The .sh file may be used
to restart a run.
rib_freesize.fsthick The element definitions for those elements that were part of
a free size design space. The optimized thickness of these
elements are provided as nodal thickness values (Ti).
rib_freesize.mvw This file is a HypeView session file and may be opened from
the File menu in HyperView. The file automatically creates
individual load the optimization results (dens.h3d) and the
loadstep results (s#.h3d).
Element thickness distributions are output from OptiStruct for all iterations. In addition,
Displacement and Stress results are output for each subcase for the first and last iteration by
default. This section describes how to view those results in HyperView.
This should open a new window with the HyperView client and load the rib_freesize.
h3d, reading the model and the results.
3. Click the Entity Attributes icon on the toolbar and undisplay all of the components,
except Web. You can do this by activating the Auto apply mode: (Display OFF) and
then clicking on the component that you want turned off in the GUI.
7. In the loadcase selection area above the Results Browser, select the last iteration listed
in the Simulation list and click O K.
This will show the contour element thickness on the Web component.
Thickness contour from free-sizing nonlinear gap optimization, on the Web of plate thickness 0.1mm
As can be seen from the figure above, the result from free-sizing optimization is a web
with optimized thickness distribution that can be reduced subsequently into larger zones
for simplification of the manufacturing process. Moreover, the design obtained from free-
sizing offers the freedom to create cavities, ribs, and varying thickness simultaneously,
which is not possible in topology optimization.
9. Close the HyperView client pages by clicking D e le te Pa ge until the HyperMesh client
is onscreen again.
2. Select the directory where you are running the optimization and enter rib_freesize.hm
for the file name.
3. Click s a v e .
4. Right-click on the Design Variable section of the Model Browser and select D e le te .
10. Under type, choose PSH E LL and leave the base thickness as 0.0.
The web component has now been defined as the design component for topology
optimization.
2. Select the directory where you are running the optimization and enter the name
rib_topology.hm for the file.
3. Click s a v e .
4. Select the parameters subpanel using the radio buttons on the left of the Topology
Optimization panel.
6. Toggle m inm e m b o ff and for mindim =, enter the value 2.0 for minimum member size
control.
7. Click upda te .
2. Make sure the rib_topology.fem file shows in the input file: field.
6. Click O ptiStruct.
rib_topology_frame.html The file contains two frames. The top frame opens one of
the .h3d files using the HyperView Player browser plug-in.
The .h3d file opened depends on the results selected for
display in the bottom frame. The bottom frame opens the
_menu.html file, which facilitates the selection of results to
be displayed.
Element density results are output from OptiStruct for all iterations. In addition, displacement
and stress results are output for each subcase for the first and last iteration by default. This
section describes how to view those results in HyperView.
This opens new pages with the HyperView client and loads the session file,
rib_topology.mvw, that is linked with .h3d files where the model and results are defined.
3. Click the Entity Attributes icon on the toolbar and undisplay all of the components,
except the Web component. You can do that by activating the Auto apply mode: (to
D is pla y O ff) and clicking on the components that you want turned off in the GUI.
7. Click in the bottom right portion of the GUI to activate the Load Case and Simulation
Selection dialog.
8. Select the last iteration listed in the Simulation list and click O K.
10. Click Apply to show the contour of element density on the Web component.
The results from topology optimization show very discrete results as expected.
Results from the topology optimization show a truss type design with extensive cavities and
voids, while the results from free-sizing optimization tend to come up with shear panels.
While solid/void density distribution is the only choice for solid elements; for shell structures,
intermediate densities can be interpreted as different thicknesses and penalizing then could
result in potentially inefficient shell structures. Moreover, since a large portion of aerospace
structures are shell structures, a shear panel type design is often desirable for manufacturing
purposes especially for machine milled shell structures. Free-sizing optimization can prove to
be very beneficial in those situations.
This tutorial demonstrates how to set up the multi-body dynamics (MBD) size optimization of
a rotating bar in HyperMesh and how to run the optimization job in OptiStruct. The structural
model is shown in the figure below. Angular velocity at the revolute joint defined left end of
the bar is 10*SIN(2*TIME) rad/sec. The objective is to minimize the maximum stress of the
structure subject to certain mass specifications. The bar consists of five bar elements with a
solid circle cross section (each element has its own PBARL with ROD cross section). The
design variables are the radius of each bar property.
Rotating bar
Exercise
Step 1: Launch HyperMesh Desktop, Set the User Profile and Retrieve
the File
1. Launch HyperMesh Desktop.
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. The Us e r Pro file s dialog can
5. Click O pe n.
1. Right-click inside the Model Browser, activate the menu over Create, and select Lo a d
C o lle cto r.
3. Click cre a te .
5. Make sure the toggle is set to gra phics and check the box for coincident picking.
Only 6 DOF per flexible body should be fixed to remove 6 rigid body motion of each flexible
body.
9. From the graphics area, click the left end of the model. You should see two node numbers
at one location. Choose node number 1.
10. Make sure all dofs (dof1 to dof6) are checked and that their values are 0.00.
2. Click B ULK_UNSUPPO R TE D _C AR D S.
3. Make sure the following two cards are listed. If they are not listed, you need to enter the
cards.
4. Click O K.
5. Click re turn.
5. Check the box next to MBSIM and click the = button to select M B SIM 1.
6. Check the box next to MOTION and click the = button to select M B SIM 1 again.
7. Click upda te .
3. Make sure that the desvar subpanel is selected using the radio buttons on the left-hand
side of the panel.
A design variable, 'rad1, has been created. The design variable has an initial value of 10,
a lower bound of 0.05, and an upper bound of 100.
11. Repeat steps 4 through 10 to create the design variable rad2, rad3, rad4, and rad5 using
the same initial value, lower, and upper bounds.
12. Select the generic relationship subpanel using the radio buttons on the left-hand side of
the panel.
A design variable to property relationship, bar1_rad1, has been created relating the
design variable rad1 to the radius entry on the PBARL card for property PBARL_1.
21. Repeat steps 13 through 20 to create the design variable to property relationship
bar2_rad2, bar3_rad3, bar4_rad4, and bar5_rad5 relating the design variables to the radius
entry on the PBARL cards for the property PBARL_2, PBARL_3, PBARL_4, and PBARL_5.
3. Click the response type: switch and select m a s s from the pop-up menu.
5. Click cre a te .
7. Click the response type: switch and select s ta tic s tre s s from the pop-up menu.
11. Make sure that stress is normal stress and stress recovery point is set to a ll.
6. Click cre a te .
A constraint is defined on the response Mass. The constraint is an upper bound with a
value of 10.0.
7. Click s e le ct.
8. Click cre a te .
11. Click the switch in the upper left corner of the panel and select m inm a x from the pop-up
menu.
3. Click Sa v e .
Notice the input file: field is populated with the same path you just saved the .hm file to
with a new .fem extension.
5. Click O ptiStruct.
This launches an OptiStruct run in a separate shell (DOS or UNIX) which appears.
If the optimization was successful, no error messages are reported to the shell. The
optimization is complete when the line Processing completed successfully appears in
the shell.
If the job was successful, the new results file can be seen in the directory where the
input file was saved. In addition to ordinary output files, you can see a text file with the
name rotating_bar_design_user.eslout. This file is a good source to see the process
of the ESL optimization.
After ~ 7 interations, the model should converge to the descending values as shown
below:
One of the advantages with composite materials is that the structural performance can be
controlled precisely by choosing the appropriate ply thickness, ply orientation, stacking
sequence, ply materials, and so on. The ability to vary many different parameters provides
greater flexibility, but at the same time it is tougher to optimize the part as the number of
design variables increases many fold. OptiStruct has the ability to directly or indirectly
optimize the ply thickness, ply orientation and stacking sequence for composite structures.
Free-size optimization handles the thickness of each ply in each element as a design variable
and optimizes the structure by determining the optimal thickness distribution for each ply in
the laminate. Please refer to the Free-Size Optimization and Composite Topology and Free-
size Optimization pages of the Opt iSt ruc t Use r's Guide help for more details.
For several reasons, every composite manufacturer has their own manufacturability standards
for the laminated composites. These additional manufacturing constraints are to be included
with free-size optimization to achieve an acceptable manufacturing solution. OptiStruct
supports different manufacturability constraints that can be defined with free-size
optimization. This tutorial helps explain the procedure used to define the manufacturing
constraints in the free-size optimization of composite structures.
In this tutorial, we will set up free-size optimization with the following manufacturing
Ply thickness should be at least 10% and at most 60% of total laminate thickness,
defined for all the plies in the design space.
The thickness of ply with a ply angle of 45 degrees to be same as the thickness of ply
with a ply angle of -45 degrees.
Exercise
Step 1: Launch HyperMesh Desktop, Load the User Profile and Retrieve
the File
1. Launch HyperMesh Desktop.
This loads the selected 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.
The User Profiles GUI can also be accessed from the Preferences menu on the
toolbar.
This opens the HyperLaminate GUI in which the ply lay-up information can be defined,
reviewed and edited. Size design variables can also be set up in this panel for performing
size optimization.
2. Expand the Laminates portion of the tree structure on the left-hand side of the screen.
3. Select the To pSkin component for review by clicking on the component name.
This loads the TopSkin component properties in the Laminate definition section and
Review section. The Laminate definition section shows the ply material, ply thickness,
ply orientation, etc. which is shown graphically under the Review section.
The same lay up information is also defined for the BottomSkin component. In this
tutorial, we will define free-size optimization on the TopSkin and BottomSkin
components.
6. Click pro ps , choose the To pSkin and B o tto m Skin properties, and click s e le ct.
7. Clicks cre a te .
This step defines the minimum member size control to be 5.0. Member size control gives
you some control over the member size in the final free-size design and the resulting
structure will have discrete members that are easy to interpret during post-processing.
4. Click upda te .
A Minimum of 10% and a maximum of 60% thickness (of total laminate thickness)
constraints defined for all the plies. This means that for each element, none of the
plies will have thickness less than 10% or greater than 60% of the totals laminate
thickness.
The thickness of ply with ply angle of 45 degree to be same as the thickness of ply
with ply angle of -45 degree.
1. While still in the free size optimization panel, select the co m po s ite s subpanel.
5. Click on upda te to update the above defined minimum laminate thickness constraint to
the free-size design variable.
8. Click on the switch below PLYPCT and select Spe cify Num be r.
This opens 4 additional lines, as shown in the image below, in which you can enter the ply
percentage constraints. The table below explains the 4 different fields in which ply
percentage constraint is defined.
10. In the first field next to COMP PLYPCT and below PANGLE, enter 0 to define that ply
percentage constraints are defined for the ply with ply angle of 0 degree. Enter 0.1 for
PPMIN and 0.6 for PPMAX. The PTMAN field can be left blank.
The above step defines that for each element, the thickness of the ply with ply angle 0,
should be no less than 10% or more than 60% of the total thickness.
11. Similarly define the same constraints of 0.1 for PPMIN and 0.6 for PPMAX for the plies
with ply angle 45, -45 and 90 as shown in the image above.
12. Similarly, activate BALANCE by clicking on the box, and define 1 in the field for
DSIZE_NUMBER_OF_BALANCE=.
The BALANCE constraint ensures that two plies will always be of equal thickness.
13. In the field below BANGLE1, enter 45 and in the field below BANGLE2 enter -45.
The above step defines that the plies with ply angle of 45 and -45 will always have the
same thickness.
15. Click upda te to update the above defined manufacturing constraints to the free-size
design variable.
1. Click re s po ns e s .
5. Click the box next to Nodes to select the set and click on s e le ct.
Notice that 6 nodes at the end side of the wing are selected.
6. Choose do f3.
7. Click cre a te to create the displacement response for the selected nodes.
8. Similarly, create another response with the name mass and a response type: of m a s s ,
with to ta l for the option.
6. Click lo a ds te ps .
8. Click s e le ct.
9. Click cre a te .
4. Click cre a te .
The message Processing complete appears in the window at the completion of the
job. OptiStruct also reports error messages if any exist. The file
Wing_FreeSize_with_PLYPCT.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.
OptiStruct provides element thickness, ply thickness information for all iterations, and also
writes out displacement and von Mises stress results for the linear static analysis. This
section describes how to view the results in HyperView.
This starts a new HyperView session. All of the result files in .h3d format are
automatically loaded into HyperView. A message window appears with information about
the model and result files loaded into HyperView.
2. From the Results menu, activate the menu over Plot and click on C o nto ur. Choose
E le m e nt thickne s s e s as the Result type; then choose the drop-down menu below and
select Thickne s s .
3. Click Apply .
This shows the contour of total laminate thickness for the selected iteration.
4. In the left top portion of the GUI, click in the area circled below to open the Iteration
selection pull-down and select the last design iteration result. The contoured thickness is
the optimal laminate thickness distribution for the current design.
1. Click on Is o and click on Apply to display the isometric view of the model.
3. Click on the Isolate Shown button and then click on B o tto m Skin and To pSkin in the
6. Click on one of the components in the graphics area to select it for translating.
7. Select X Axis for the Direction option under Translate:. Leave the default value of 5 in
the Distance field.
8. Click the plus icon to move the selected component in the positive X direction and repeat
until the component is moved enough to view both the components.
9. From the Results menu, activate the menu over Plot and click on C o nto ur. Choose Ply
Thickne s s as the Result type and leave Thickne s s selected.
This shows the first ply thickness contour. You can repeat these steps to plot the
thickness for Ply 2, Ply 3, and Ply 4 or Max, etc.
11. Verify if all the manufacturing constraints (ply percentage, balance and minimum laminate
thickness) are satisfied. Additionally, open the Wing_FreeSize_with_PLYPCT.out file in a
text editor and verify that the displacement constraints are satisfied in the last iteration.
In this tutorial, the standard responses available in OptiStruct are passed to a HyperMath
script and the newly created responses from the script are used as optimization constraints.
Since HyperMath is an interpreter, users can build custom responses without having to
compile their HyperMath script.
The structural model shown above is loaded to HyperMesh. The materials, shell properties,
loads and boundary conditions are already defined in this model. The thicknesses of the three
components are identified as design variables. The von Mises stress of element numbers 58
and 59 (elements located on the circumference of the hole) are defined as responses, and a
total volume response is defined as well.
The von Mises stress of elements 58 and 59 are passed as inputs to the HyperMath script
which in turn returns two values: the sum of the two von Mises stresses, and the average
value of the two elemental von Mises stresses.
Exercise
2. Under the File menu, select o pe n and open the file <install directory>/
dresp3_simple_h.hml.
This loads the OptiStruct 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. The User Profiles
GUI can also be accessed from the Preferences menu on the toolbar.
8. Click Im po rt.
9. Click C lo s e .
2. Click ne xt.
Type: DRESP3
GROUP: HLIB
4. Click re turn.
5. Click pre v .
The DRESP3 bulk data entry is not supported in the current version of HyperMesh. Therefore,
these cards will be defined in the BULK_UNSUPPORTED_CARDS panel.
Note: A $ symbol indicates a comment and the following data will not be read by the
solver.
The DRESP3 responses have different IDs from the DRESP1 responses and point to the
library called HLIB defined in Step 2. Also, the function MYSUM is the same function name
in the dresp3_simple_h.hml script.
This completes linking of the DRESP3 cards with the HyperMath Script.
1. With the BULK_UNSUPPORTED_CARDS dialog open, add the following constraint data
(DCONSTR and DCONADD) following the DRESP3 information:
3. Click re turn.
This defines upper bound constraints of 50 and 25 on the SUMH response and the AVGH
response respectively.
6. Add the following under the subcase information section, towards the top of the file:
DESSUB = 10.
7. Sa v e the file.
The DRESP3s created are subcase dependent responses and therefore are to be
referenced from within a subcase. The DESSUB command does this. This line has to be
added manually since the current version of HyperMesh does not support the DRESP3 bulk
data entry.
8. Launch the OptiStruct solver GUI: s ta rt > All Pro gra m s > Alta ir H y pe rW o rks 12.0 >
O ptiStruct.
OS-5020: Shape Optimization of a 3-D Bracket Model using the Free-shape Method
OS-5060: Shape Optimization of a 3-D Model using the Free-shape Method with
Manufacturing Constraints
In this tutorial, a shape optimization on a cantilever beam modeled with shell elements will be
performed. The structural model with loads and constraints applied is shown in Figure 1. The
deflection at the lower right corner should be limited to 3mm. The optimal design would use
as little material as possible.
The structural model, shown in figure 1, is loaded into HyperMesh and is used to generate and
run a shape optimization of the cantilever beam. Shape perturbation vectors are generated
using HyperMorph, which is accessed, through the HyperMesh interface. The OptiStruct
software is used to determine the optimal shape. The results are then reviewed in
HyperView.
Constraints: Given maximum nodal displacement at the end of the beam < 3.0 mm.
Exercise
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.
User Profiles can also be accessed from the Preferences menu on the toolbar.
4. Select the beamshape.hm file, located in the HyperWorks installation directory under
<install_directory>/tutorials/hwsolvers/optistruct/.
5. Click O pe n.
The beamshape.hm is loaded into the current HyperMesh session, replacing any existing
data. The database only contains geometric data.
4. Select the cre a te subpanel using the radio buttons on the left side of the panel.
5. Change the s witch subpanel to a uto functio ns and keep the default settings.
6. Click ge ne ra te .
A number of domains and handles are created which will enable us to morph the shape of
the beam.
There are two types of handles: global handles, which are represented by larger red balls;
local handles, which are represented by smaller yellow balls. Only local handles will be
covered in this tutorial.
10. Click the right-hand switch and select m o v e to no de from the pop-up menu.
12. Select the top right local handle (where the force is applied) by clicking on it in the
graphics window. Figure 2 shows the node to be selected in black.
14. Select the node in the middle of the right-hand side of the beam.
The beam instantly changes shape, so that the handle you selected moved to the location
of the node you selected. See figure 3 below. Note how the mesh adjusted to this
change in shape.
17. You can select the color button and change the color of the shape vectors or leave the
default color set.
19. Click s a v e .
20. Click Y e s .
This shape has been saved, and can be associated with a design variable later.
24. Select the cre a te subpanel using the radio buttons on the left-hand side of the panel.
26. Click on do m a in and select the top edge domain by clicking on the top edge in the
graphics window.
27. To ensure that you select the top edge domain, hold down the left mouse button and
move the mouse over the top edge of the beam until the edge is highlighted (white), then
release the mouse button.
29. Click on no de s and select the node at the center of the top edge of the beam by clicking
on it in the graphics window.
A new handle, 'aux1', is created at the center of the top edge of the beam, see Figure 4.
Figure 4. New handle added at the center of the top edge of the beam.
34. Click the switch beside move to node and select inte ra ctiv e from the pop-up menu.
36. Select the handle you just created by clicking on it in the graphics window.
38. Click the ne w ha ndle in the graphics window and keep the mouse button held down.
40. Note how the mesh morphs interactively as you move the handle.
41. When the handle is roughly at what was the center of the beam, release the mouse
button.
42. Select the s e t bia s ing subpanel using the radio buttons on the left-hand side of the
panel.
48. Click the number and keep the mouse button held down.
If you move the mouse upwards the number increases, if you move the mouse downwards
the number decreases.
49. Move the mouse upwards until the value reads 1.500, then release the button and click
upda te .
50. Note how the curvature of the top edge has altered. See Figure 6.
51. Select the s a v e s ha pe subpanel using the radio buttons on the left-hand side of the
panel.
55. Click s a v e .
56. Click Y e s in the dialog box that asks if you want to Save perturbations for nodes at
We have now saved this shape, later we can associate it to a design variable.
4. Click s ha pe s .
5. Check the boxes next to shape1 and shape2 and click s e le ct.
6. Click cre a te .
Two shape design variables are created using the shapes that were saved earlier.
3. Click the response type switch and select Vo lum e from the pop-up menu.
4. Click cre a te .
6. Click the response type switch and select s ta tic dis pla ce m e nt from the pop-up menu.
9. Select do f1.
4. Click lo a ds te p.
8. Click cre a te .
A constraint is defined on the response 'disp'. The constraint is an upper bound with a
value of 3.0. The constraint applies to the subcase 'Load'.
2. Click the switch in the upper left corner of the panel, and select m in from the pop-up
menu.
4. Click cre a te .
2. Select SH APE .
3. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, beamshape.fem, in the File name: field.
4. Click Sa v e .
Note that the name and location of the beamshape.fem file now displays in the input file:
field.
8. Click O ptiStruct.
This launches the OptiStruct job. If the job was successful, new results files can be seen
in the directory where the OptiStruct model file was written. The beamshape.out file is a
good place to look for error messages that will help to debug the input deck if any errors
are present. Make sure the process is complete before checking the results files.
This section describes how to view results in HyperView, which will be launched from within
the OptiStruct panel of HyperMesh.
3. Use the navigations buttons seen in the figure below to navigate to Design History (page
2).
4. Select last iteration from Simulation using the drop-down selection, as seen in the figure
below.
7. Select M a g.
8. Click Apply .
Step 10: View a Contour Plot of the Displacement on Top of the Shape
Optimized Model
1. Click the Next Page arrow to move to page 3 using the page navigation arrow button.
2. Select the last iteration from Sim ula tio n using the drop-down selection, as seen in the
image below.
3. Go to the Deformed panel and set Sha pe C ha nge (v ) as the Result type:.
4. Click Apply .
7. Click Apply .
10. Notice that node 1115 has a displacement which is within the constraint value.
Exercise
Step 1: Launch the HyperMesh Desktop, Set the User Profile and
Retrieve the File
1. Launch HyperMesh Desktop.
4. Select the Lbeamshape.hm file, located in the HyperWorks installation directory under
<install_directory>/tutorials/hwsolvers/optistruct/.
5. Click O pe n.
4. Select the cre a te subpanel using the radio buttons on the left-hand side of the panel.
5. Click the switch next to global domain and select the a uto functio ns from the pop-up
menu.
A number of domains and handles are created which will enable us to morph the shape of
the beam.
7. There are two types of handles; global handles, which are represented by larger red balls
and local handles, which are represented by smaller yellow balls. We will only be dealing
with the local handles in this tutorial.
10. Select the m o v e ha ndle s subpanel using the radio buttons on the left side of the panel.
11. Click the right-hand switch and select tra ns la te instead of interactive from the pop-up
menu.
13. Select the local handle that is located at the node where the load is applied by clicking on
it in the graphics window (local handles are indicated by a yellow ball).
The beam changes shape so that the handle you selected moved -10.0 in the y-direction.
Note how the mesh adjusted to this change in shape.
16. Select the s a v e s ha pe subpanel using the radio buttons on the left side of the panel.
20. Click s a v e .
We have now saved this shape as shape1, later we can associate it to a design variable.
23. Repeat steps 9 through 22 for the local handles 3, 4 and 5. Referring to the figure above,
translate handles 3 and 4 by x=-10 and handle 5 by y=-10. Save the shapes after
morphing each handle as shape2, shape3 and shape4, respectively.
2. Select the de s v a r subpanel using the radio buttons on the left side of the panel.
5. Check the boxes next to shape1, shape2, shape3, and shape4 and click s e le ct.
6. Click cre a te .
Four shape design variables are created using the shapes that were saved earlier.
A potential variation in shape of the vertical flange of the L-beam that could be achieved using the set up
described.
1. Select the re s po ns e s panel (accessed through the optimization panel on the Analysis
page).
3. Click the response type: switch and select m a s s from the pop-up menu.
4. Click cre a te .
6. Click the response type: switch and select s ta tic dis pla ce m e nt from the pop-up menu.
7. Select the response node by clicking on the node shown in the above figure.
8. Select do f 2.
9. Click cre a te .
1. Select the o bje ctiv e panel (accessed from the optimization panel on the Analysis
page).
2. Click the switch in the upper left corner of the panel, and select m in from the pop-up
menu.
4. Click cre a te .
A lower bound constraint is to be defined for the displacement response defined in the
previous section.
1. Select the dco ns tra ints panel (accessed from the optimization panel on the Analysis
page).
4. Click lo a ds te ps .
8. Click cre a te .
A constraint is defined on the response disp. The constraint is a lower bound with a
value of -2.0. The constraint applies to the subcase Load.
3. Click Sa v e .
3. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, lbeamshape_opt.fem, in the File name: field.
4. Click Sa v e .
Note the name and location of the lbeamshape_opt.fem file now displays in the input
5. Set the memory options: toggle, located in the center of the panel, to m e m o ry de fa ult
.
6. Click the run options: switch, located at the left of the panel, and select o ptim iz a tio n.
8. Click O ptiStruct.
This launches the OptiStruct job. If the job was successful, new results files can be seen
in the directory where the OptiStruct model file was written. The lbeamshape_opt.out
file is a good place to look for error messages that will help to debug the input deck if any
errors are present.
Shape contour information is output from OptiStruct for all iterations. In addition,
displacement and stress results are output for the first and last iterations by default. This
section describes how to view those results in HyperView.
1. While still in the OptiStruct panel, click the green H y pe rVie w button.
2. Close the Message Log window that details the result files loaded into HyperView.
In the HyperWorks Desktop, the loaded .h3d files contain optimization results on page 2
and analysis results on page 3.
3. Use the navigations buttons, seen in the figure below to navigate to Design History
(page 2).
4. Select the last iteration (iteration 6) using the drop-down selection, as seen in the figure
below.
7. Click Apply .
2. The seek slider and playback speed slider (top and bottom respectively) are located next
to the playback controls.
4. After reviewing the animation, click the stop button to stop the animation and move
Current time: back to 0.
4. Next, select the Y component of the Displacement (since that is what was constrained).
6. Click Apply .
A plot of the displacements on your final shape should be displayed. Note that the
maximum displacements for the last Iteration # is still below 2.0.
In this exercise, shape optimization on a solid bracket model will be performed using the Free
Shape optimization method. The objective of this optimization is to reduce the stress by
changing the geometry of the bracket model.
The essential idea of free-shape optimization, and where it differs from other shape
optimization techniques, is that the allowable movement of the outer boundary is
automatically determined, thus relieving users of the burden of defining shape perturbations.
Constraints: No Constraints
Exercise
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.
User Profiles can also be accessed from the Preferences menu on the toolbar.
4. Select the free_shape3D.hm file, located in the HyperWorks installation directory under
<install_directory>/tutorials/hwsolvers/optistruct/.
5. Click O pe n.
The free_shape3D.hm database is loaded into the current HyperMesh session, replacing
any existing data. Note the location of free_shape3D.hm file now displays in the file:
field.
4. Select nodes as shown in the figure (select only the face nodes that are also on shells).
5. Click cre a te .
4. Click the pro p button and select the s tre s s _fa ce s component which contains skin shells.
6. Click cre a te .
5. Click cre a te .
4. Click cre a te .
2. Select SH APE .
3. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, Free_Shape3D.fem, in the File name: field.
4. Click Sa v e .
Note that the name and location of the Free_Shape3D.fem file now displays in the input
file: field.
8. Click O ptiStruct.
If the optimization was successful, no error messages are reported in the GUI window.
The optimization is complete when the line Job completed appears in the window.
This section describes how to view the results in HyperView which will be launched from
within the OptiStruct panel of HyperMesh.
Note that the message window pops up to indicate that Free_Shape3D_des.h3d and
Free_Shape3D.h3d are opened.
3. Use the navigation button, seen in the figure below to navigate to Design History (page
2).
4. Select the last iteration (Iteration 8) using the drop-down selection, seen in the image
below.
7. Click Apply .
Shape optimization results are applied to the model. The figure below shows the results.
3. Go to the Contour panel and select E le m e nt Stre s s e s [2D & 3D ] as the Result
type:.
5. Click Apply .
The stress contour shows on top of the shape changes applied to the model.
In the previous run, no constraints were applied on the movement of the DSHAPE grids.
Therefore, grids are free to move and the part thickness increases as shown in the figure.
In practice, however, there will be some sort of constraints imposed upon the movement of
grids due to manufacturability. For this tutorial model, thickness must be unchanged to avoid
any interference with other parts.
The next step will describe how to define constraints on DSHAPE grids such that the
thickness of design space will remain unchanged.
The constraints on the curved part will be created using a local rectangular coordinate
system (the other constraints on the flat part do not need a local coordinate system).
Therefore, a local rectangular coordinate system (z-axis will point to normal to DSHAPE
surface) needs to be created first.
1. Use the page navigation controls to move back to Page 1 and the HyperMesh
client.
3. Click s y s te m s .
9. Click cre a te .
The constraints on the flat part will be created first without any coordinate system.
18. Select N1, N2, N3 as those three nodes on plane geometry (as shown in the figure).
These nodes will move only on the specified plane above. Next, the constraints on the
21. Click no de s .
22. Select nodes shown in the following figure (select only the nodes that are on the curved
part).
24. Click the local coordinate system created in the previous step.
26. Click the direction definition switch below v e cto r, and select z - a xis from the pop-up
menu.
4. Click Sa v e .
Note that the name and location of the Free_Shape3D_const.fem file now displays in the
input file: field.
8. Click O ptiStruct.
Follow the previously described steps on how to post-process the results (optimization results
without constraints) using HyperView, and compare the final shape change and stress results.
Structures are said to "buckle" when a certain combination of loads cause them to be
unstable and deflection occurs. When a particular loading is reached, the structure continues
to deflect without an increase in the magnitude of the load. The critical load at which
buckling occurs is the product of the critical buckling factor and the applied reference load.
The buckling factor is an eigenvalue and has no dimension. Generally speaking, the lowest
buckling load is usually of the most interest to engineers, since a structure will fail prior to
reaching any higher buckling loads.
When using OptiStruct to solve a linear buckling problem, apply a reference load to the
structure and calculate the buckling factors based on linear static and normal mode analysis.
Use OptiStruct also to perform size and/or shape optimizations on the structure to optimize
for linear buckling. Neither yielding of a structure nor change of force can occur during the
optimization process.
In this tutorial, a size and shape optimization are performed on a structural rail to increase the
buckling factor, thereby increasing the load it can carry before buckling. The rail has external
forces applied at one end, and is constrained in all degrees of freedom at the other end. By
performing buckling optimization, we can increase the buckling factor and thereby increase
critical buckling force.
We want to perform buckling optimization to minimize the maximum von Mises stress among
several elements. We do this using the minimize maximum problem setup. Use MINMAX or
MAXMIN statements to define the objective function of a minimize maximum or maximize
minimum problem. Many times you will need to minimize or maximize several responses;
minimizing the maximum von Mises stress among several elements, for example. In such
situations, using user-defined equations to minimize the maximum von Mises stress will not
achieve the expected result. Reducing the maximum stress in one element often results in
increased stress on another element.
This tutorial describes the steps involved in defining linear buckling and size optimization using
the gauge panel. Shape and size optimizations will both be applied to this structural
optimization. The shape optimization has been pre-defined in this model using HyperMorph, so
you will not need to set up the shapes and shape design variables. The size optimization is
part of the exercise. A reference value is given to the stress design objective, and the
problem is formulated as a minmax optimization problem. The resulting structure is thicker and
wider to prevent buckling.
Problem Statement
This problem will perform a size and shape optimization on a structural rail to prevent buckling
in the rail structure.
Exercise
Step 1: Launch the HyperMesh Desktop, Set the User Profile, and
5. Click O pe n.
If the Utility tab is not visible on the left side of the GUI in HyperMesh, go to the View
menu, and select B ro ws e rs > H y pe rM e s h > Utility .
v1 and v2 are pre-defined with Lower Bound = -2.0, Initial Value = 0.0, and Upper
Bound = 2.0 (see figure below).
6. Click s ha pe .
10. Click line a r and notice the animation of the first shape.
11. To review the second shape repeat steps 7 9, setting change simulation = to SH APE -
v 2 (2).
2. Verify that the create subpanel is selected with the radio buttons on the left.
3. Set the type: switch to PSH E LL- T and the toggle beneath to s a m e de s v a r fo r a ll pro ps
.
5. Click pro ps .
9. Click the first toggle and change from lower bound % = to lo we r bo und = and enter a
value of 3.0.
10. Click the second toggle and change from upper bound % = to uppe r bo und = and enter
a value of 9.0.
11. Click C re a te .
2. Select the cre a te subpanel using the radio buttons on the left side of the panel.
4. Click ca rd im a ge = and choose the E IG R L card image for this load collector.
To enter a value for a field in the card image, click the number field and type in the
number.
OptiStruct will search for the three lowest eigenvalues below 100.
3. Click the type: switch and choose line a r buckling from the pop-up menu.
4. Click the box preceding STATSUB and select LINE AR (already existing static loadcase).
3. Create three responses with the following settings: Region ID is not required.
4. Click re turn.
3. Click the check box to the left of lower bound and assign a value of 30.
5. Click lo a ds te ps , then click the box besides the Buckling and click s e le ct.
6. Click cre a te .
8. Uncheck lower bound and click the check box to the left of upper bound to assign a
value of 800000.
9. Click cre a te .
3. Click the check box to the left of pos reference = and enter a value of 1.000.
5. Toggle all to lo a ds te ps .
6. Click lo a ds te ps .
8. Click cre a te .
9. Click re turn.
3. Click do bjre fs .
5. Click s e le ct.
6. Click cre a te .
2. Click s a v e a s .
3. Select the directory where you would like to write the OptiStruct model file and enter the
file name, os_buckle_optimization.fem, in the File name: field.
4. Click Sa v e .
Note the name and location of the os_buckle_optimization.fem file now displays in the
input file: field.
8. Click O ptiStruct.
This exports the OptiStruct input file and launches the OptiStruct job. If the job is
successful, new results files can be seen in the directory where the OptiStruct model file
was written. The os_buckle_optimization.out file is a good place to look for error
messages that will help to debug the input deck if any errors are present.
9. At the end of the optimization run, close the solver GUI window.
3. Using the page selector arrows (shown below), navigate to the Design History page
(page 2).
4. Select Iteration 3 using the drop-down selector in the Model Browser, as shown below.
6. Under Result type:, select Sha pe C ha nge (v ) from the first drop-down list, and M a g
from the second.
7. Click Apply .
8. The seek slider and playback speed slider (top and bottom respectively) are located next
to the playback controls.
10. Click the Animation Controls button next to the seek slider and activate the Bounce
option to review a back and forth animation of the impact.
11. Stop the animation and use the Current time: slider bar to manually control the
animation.
For complete details on the various options available in this panel, please refer to the on-
line help.
3. Under Result type:, select E le m e nt Stre s s e s (2D & 3D )(t) from the first drop-down list,
and v o nM is e s from the second.
4. Select the final iteration (Iteration 3) using the drop-down selector in the Model Browser
as shown in step 11.
5. Click Apply .
2. Click the Deformed button contained within the HyperView toolbar, as shown below. Set
the deformed shape parameters to the same as those below. This will improve the
animation visualization that will be performed in the next step.
5. With the animation running, use the speed slider bar to adjust the animation.
7. The animation can also be manually controlled using the time slide to manually control the
Shape optimization requires you to have knowledge of the kind of shape you would like to
change in the structure. This may include finding the optimum shape to reduce stress
concentrations to changing the cross-sections to meet specific design requirements.
Therefore, you need to define the shape modifications and the nodal movements to reflect
the shape changes. Shape optimization requires the use of two cards DESVAR and DVGRID.
They can be defined using HyperMorph. Then these cards are included in the OptiStruct input
file along with the objective function and constraints to run the shape optimization.
In this exercise you perform a shape optimization on a rail-joint. The rail-joint is made of shell
elements and has one load case. The shape of the joint is modified to satisfy stress
constraints while minimizing mass.
Rail joint
Problem Statement
Constraint: Maximum von Mises stress of the joint < 200 MPa
Exercise
Step 1: Launch HyperMesh Desktop, Set the User Profile and Retrieve
the File
1. Launch HyperMesh Desktop.
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.
The User Profiles GUI can also be accessed from the Preferences menu on the
toolbar.
1. Once you see the message Process completed successfully in the command window,
click the H y pe rVie w button.
HyperView will launch and the results will be loaded. A message window appears to inform
about the successful loading of the model and result files into HyperView.
4. Select the first drop-down menu below Result type: and select E le m e nt Stre s s e s [2D &
3D ] (t).
6. Click Apply .
4. Click s e le ct.
6. Click re turn.
Step 6: Split the Circular Edge Domains Around the Opening of the Rail
The following steps show the procedure to split each of the two circular domains (as seen in
the previous figure) into four curved edge domains.
3. Click do m a in and select the circular edge-domain passing through nodes 1300, 1305,
1311, 1316.
4. Click no de and select node 1311 from the display. Refer to the previous figure.
5. Click s plit.
The circular domain is split at Node 1311 and a new handle is created at node1311.
6. Select the circular edge between node 1311 and the other handle.
8. Similarly (as in steps 6-7), split the curved edge at nodes 1305 and 1300, respectively.
Refer to the previous figure.
A similar process is followed to split the circular domain using the four nodes on the other
side of the rail.
12. Select the circular edge between node 931 and the other handle.
14. Similarly (as in steps 11-14), split the curved edge at nodes 937 and 942, respectively.
The following figure shows the image after the circular edge domains are split.
2. Click the left do m a in, below merge and select the outer red curve from node 926 to pre-
existing handle (refer to previous figure).
5. Click m e rge .
6. Repeat steps 1 through 5 to merge two edge domains between node 1316 and node 1300
on the other side of the rail.
7. Click s e le ct.
9. Repeat steps 5 through 8 to create three more 2-D domains for elements in sets
elem_set2, elem_set3, and elem_set4 respectively.
1. Click m o rph.
We use the alter dimensions feature in HyperMorph to modify the curvatures of selected
edge domains.
Holding two ends of a selected edge domain allows a change of curvature of the selected
edge without altering its end points.
7. Under edges only, click do m a ins and select red edge-domains as shown in the following
figure. You might need to zoom in for easier picking operation.
8. Verify that a total of eight edge domains are selected and highlighted on screen.
A new curvature is applied to the selected eight edge domains. See the following figure
below.
14. Click on the color button and change the color of the shape vectors or leave the default
color.
15. Click s a v e .
16. Click undo a ll to prepare for the generation of the next shape.
17. In the Model Browser tab, right-click on Sha pe and select H ide .
20. Click do m a ins and select the red edge curves as shown the following figure.
A new curvature is applied to the selected eight edge domains. See the following figure
below.
25. Click on the co lo r button and change the color of the shape vectors or leave the default
color.
26. Click s a v e .
27. Click undo a ll to prepare for the generation of the next shape.
28. In the Model Browser tab, right-click on Sha pe and select H ide .
The new shape sh3 includes influences from both sh1 and sh2 shapes as shown in the
next figure.
37. Click s a v e .
38. In the Model Browser tab, right-click on Sha pe and select H ide .
Do NOT click undo all at this moment because we will create one more shape based on
this third shape change.
The third shape variable, sh3, converts the tube to a square cross-section
An additional shape variable is created using the shape created in the previous step.
39. In the Model Browser, right-click on the component PSH E LL and click on H ide .
42. Switch the top selector from curve ratio to dis ta nce = .
This feature allows you to shorten the distance between selected domains.
Once nodes a and b are selected, the distance between node a and node b is measured
automatically and appears in distance = field.
46. Click ha ndle s under node a and select the 8 handles shown by the downward pointing
arrows in the previous figure.
To select, click the handles on the screen until they are highlighted.
47. Click ha ndle s under node b and similarly as in the previous step, select the 8 handles
near the opposite face of the tube.
49. In the Model Browser, right-click on the component PSH E LL and click on Sho w.
Step 10: Define the Shape Design Variables and Review by Animation
1. From the Analysis page, select the o ptim iz a tio n panel.
6. Click s e le ct.
This creates four design variables with the same initial value, lower bound, and upper
bound. HyperMesh automatically links the design variables to each shape respectively and
assigns names to each design variable the same as its associated shapes.
13. Make sure that data type = is set to Pe rturba tio n v e cto r.
15. Click ne xt and then a nim a te to see the next shape variable, and so forth.
3. Click on the response type switch and select m a s s from the pop-up menu.
5. Click cre a te .
7. Click on the response type switch and select s ta tic s tre s s from the pop-up menu.
8. Click the pro ps button and select the PSH E LL.1 component which contains skin shells.
4. Click cre a te .
7. Click s e le ct.
8. Click cre a te .
The message Processing complete appears in the window at the completion of the
job. OptiStruct also reports error messages if any exist. The file carm_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.
This section describes how to view the results in HyperView which will be launched from
within the OptiStruct panel of HyperMesh.
The HyperView client is launched and the results are loaded into a new page. A message
window appears to inform about the successful loading of the model and result files into
HyperView. Notice that all three .h3d files get loaded, each in a different page of
HyperView.
Note the Result type: is Sha pe C ha nge [v ]; this should be the only results type in the
file_name_des.h3d file.
Note the contour is all blue this is because your results are on the first design step or
Iteration 0.
5. At the bottom of the GUI, click on the name D e s ign < > Ite ra tio n 0 to activate the Load
Case and Simulation Selection dialog.
Each element of the model is assigned a legend color, indicating the density of each
element for the selected iteration.
Step 17: View a Contour Plot of the Stress on Top of the Shape
Optimized Model
1. Click the Next arrow to move to page 2.
3. At the bottom of the GUI, click on the name Subca s e 1 (STE P) < > M o de l Ste p to
activate the Load Case and Simulation Selection dialog.
5. Click Apply .
The stress contour shows on top of the shape changes applied to the model. Verify that
this value is around the constraint value specified.
von Mises stress for the last iteration (Max < 200 MPa)
This tutorial demonstrates how to set up the structural optimization problem of MBD systems
with HyperMesh, and how to run the shape optimization job in OptiStruct. The mass of the
system is to be minimized by controlling 12 shape design variables while the stress should be
less than an allowable value. Left link is a driving link whose angular velocity is 50 rad/sec.
Units (kg, N, cm, s).
4 bar linkage.
Exercise
Step 1: Launch HyperMesh Desktop, Set the User Profile, and Retrieve
2. Choose O ptiStruct.
3. Click O K.
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.
5. Select the 4bar _des i gn. hm file, located in the HyperWorks installation directory under
<install_directory>/tutorials/hwsolvers/optistruct/.
2. Click B ULK_UNSUPPO R TE D _C AR D S.
5. Click re turn.
4. Check M B SIM if not checked, and click the = button to select M B SIM .
5. Click upda te .
6. Click e dit.
7. Scroll down to the bottom of the card image, and select SUB C ASE _UNSUPPO R TE D .
6. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, 4bar_design_analysis.fem, in the File name: field.
8. Click Sa v e .
Note the name and location of the file now displays in the input file: field.
9. Click R AD IO SS.
This launches an RADIOSS run in a separate shell (DOS or UNIX) which appears.
If the analysis was successful, no error messages are reported to the shell. The analysis
is complete when the line Process complete successfully appears in the shell.
This will automatically load the results for the current run into HyperView.
A message window appears to inform about the successful loading of the model and result
files.
5. Select the first drop-down menu below Result type: and select E le m e nt Stre s s e s (2D &
3D ) (t).
6. Click Apply .
8. Click on Page Layout button and change the page for 2 Vertical windows .
13. In the Measure Groups list, check the box beside Dynamic MInMax Result.
14. Click on M a x at the list below Resolved in and, below Create curve:, modify Place
curve on: to E xis ting Plo t.
15. Check the Live link box, select W indo w 2 and click Apply .
This will plot the Maximum von Mises stress (t). Now this file will be saved as a template
to be applied on the optimized result.
16. From the File menu, select the option Sa v e Se s s io n File As : and change the Save as
type: to R e po rt de finitio n (*.tpl).
18. Use the page navigation buttons to return to Page 1 and the HyperMesh client.
4. Click the switch next to the card image and choose no ca rd im a ge from the pop up
menu.
5. Click cre a te .
11. All of the DOFs (1 through 6) should be fixed to remove the 6 rigid body motion of each
flexible body. Make sure that dof1 through dof6 are all checked in the constraints panel.
12. From the graphics area, click the center of the lower spider of the component Left. You
should see two node numbers at one location; choose node number 288.
13. From the graphics area, click the center of the left spider of the component Middle and
choose node number 143.
14. From the graphics area, click the center of the lower spider of the component Right and
choose node number 441.
5. Check M B SIM if not checked, and click the = button to select M B SIM .
6. Click upda te .
2. Click s ha pe .
3. Select the de s v a r subpanel using the radio buttons on the left side of the panel.
5. Click s ha pe s in the cyan border in the right upper corner, select a ll from the pop-up
menu, and click s e le ct.
6. Click re turn.
7. Enter -1.0 for the lower bound and 1.2 for the upper bound.
8. Click cre a te .
3. Click the response type switch and select m a s s from the pop-up menu.
4. Click cre a te .
6. Click the response type switch and select s ta tic s tre s s from the pop-up menu.
7. Click pro ps in the cyan border and select M iddle , Le ft, and R ight.
8. Click s e le ct.
1. Select the o bje ctiv e panel (accessed from the optimization panel on the Analysis
page).
2. Click the switch in the upper left corner of the panel, and select m in from the pop-up
menu.
4. Click cre a te .
1. Select the dco ns tra ints panel (accessed from the optimization panel on the Analysis
6. Click lo a ds te ps .
8. Click cre a te .
A constraint is defined on the response "Stress." The constraint will force the maximum
stress on SUBCASE1 to be less than 30000.0 N/cm2.
2. Select the directory in which to save the file and, in File name:, type 4bar_design_opt.
hm.
3. Click Sa v e .
6. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, 4bar_design_opt.fem, in the File name: field.
7. Click Sa v e .
Note the name and location of the file now displays in the input file: field.
8. Click O ptiStruct.
This launches an OptiStruct run in a separate shell (DOS or UNIX) which appears.
If the job was successful, the new results file can be seen in the directory where the
input file was saved. In addition to ordinary output files, you can see a text file whose
name is 4bar_design_user.eslout. This file is a good source to see the process of the
ESL optimization.
2. Click H y pe rVie w from within the OptiStruct panel or open HyperView from the Start
menu.
A message will appear explaining that the Element Stresses (2D & 3D) results do not
exist -- this is because the stress results on MBD simulations are just called Stress.
9. Select the first drop-down menu below Result type: and select Stre s s (t).
2. Click on the Load Results toolbar button and open the last iteration (highest) number
result file of 4bar_design_opt_des_0#.h3d from where the optimization was run.
3. Click Apply .
5. Select the first drop-down menu below Result type: and select Sha pe C ha nge (v ).
6. Click Apply .
Open the file 4bar_design_opt.dsvar to see how OptiStruct changed the DVs during the
optimization process.
This will show that all DVs for the right and mid arms went to the limit of 1.2, showing that
minimizing the mass of these two arms are key to reducing the Stress.
In this exercise, shape optimization on a solid model will be performed using the free-shape
optimization method along with manufacturing constraints, such as symmetry and mesh barrier
constraints. The objective of this optimization is to reduce the stress by changing the
geometry of the model.
Exercise
Step 1: Launch HyperMesh Desktop, Set the User Profile, and Retrieve
the Model
1. Launch HyperMesh Desktop.
User Profiles can also be accessed from the Preferences menu on the toolbar.
5. Click O pe n.
2. Click fre e s ha pe .
5. Click on s e le ct.
6. Click cre a te .
Step 3: Convert Existing Shell Elements to Create the Barrier Mesh Face
(BMFACE)
1. Go to the 2D page.
The 1-plane symmetry constraints in free-shape will produce symmetric designs regardless
of the initial mesh, boundary conditions or loads. The plane of symmetry is defined by
specifying the anchor and the first nodes. The plane of symmetry will then be
perpendicular to the vector from the anchor node to the first node and pass through the
anchor node.
For this exercise, the mesh barrier was already created and the component name is ba rrie r.
4. Click upda te .
6. Click cre a te .
7. Click re turn.
4. Click cre a te .
3. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, freeshape3d_mfgopt.fem, in the File name: field.
4. Click Sa v e .
Note that the name and location of the freeshape3d_mfgopt.fem file now displayed in
the input file: field.
5. Set the export options toggle to a ll.
6. Set the run options toggle to o ptim iz a tio n.
7. Set the memory options toggle to m e m o ry de fa ult.
8. Click O ptiStruct.
If the optimization was successful, no error messages are reported to the shell. The
optimization is complete when the line Processing complete appears in the shell.
This section describes how to view the results in HyperView which will be launched from
within the O ptiStruct panel of HyperMesh.
This will bring up the Load Case and Simulation Selection dialog which is also accessible
from the lower right portion of the status bar.
5. Select Ite ra tio n14 from beneath Simulation (load final iteration results).
6. Click O K.
9. Click Apply .
Step 12: View a Contour Plot of the Stress on Top of the Shape
Optimized Model
1. Go to the Contour panel and select E le m e nt Stre s s e s (2D & 3D ) (t) as the Result
type:.
5. Click Apply .
In this exercise, free-shape fatigue optimization on a torque control arm will be performed.
The objective of this optimization is to increase the fatigue life of the control arm by changing
the geometry of the model.
The torque control arm is loaded by brake force and vertical force, as shown in Figure 1. Two
load time histories acquired for 279 seconds with 1HZ, as shown in Figures 2(a) and 2(b), are
applied. The material of the control arm is Steel, whose S - N curve is shown in Figure 3.
A User Profiles dialog will appear. User Profiles can also be accessed from the
Preferences menu on the toolbar.
3. Click O K.
This creates a new file to save the instance of the currently loaded fatigue process
template.
When finished, the fatigue process tree shows in the Process Manager tab, with the
Import File task selected.
4. Click Im po rt.
This loads the control arm model. It includes a whole definition of two static subcases,
elements sets, and material static properties, etc.
5. Click Apply .
3. Click C re a te .
4. From Select existing fatigue subcase:, select the newly created fatigue subcase,
fa ts ub.
fatsub is selected as the active fatigue subcase. Definitions in the following processes
(analysis parameters, fatigue elements and properties, loading sequences, etc.) will be for
this subcase.
5. Click Apply .
This saves the current definitions and guides you to the next task, Analysis Parameters,
of the fatigue process tree.
Gate: 0.0
Certainty of 0.5
survival:
4. Click Apply .
This saves the current definitions and guides you to the next task of the fatigue process
tree, Elements and Materials. For details, please consult the HyperWorks online help.
2. Click Add.
5. Make sure the Ultimate tensile strength (UTS) is selected to define the material data.
7. For Input method under Define SN Curve, select E s tim a te Fro m UTS.
9. Click C lo s e .
11. Click the Plo t SN C urv e button at the bottom of the window to show the SN curve.
16. Leave the field after Fatigue strength reduction factor blank.
17. Click Sa v e to save the definition of the SN data for the selected elements.
This saves the current definitions and guides you to the next task in the fatigue process
tree, Load-Time History.
7. Click O pe n.
8. Click Im po rt.
10. Click Sa v e to write the new load-time history into HyperMesh database.
12. Follow steps 2 - 11 to create another load-time history, hist_x, by importing the file
tarm_loadX.csv.
This saves the current definitions and guides you to the next task, Loading Sequences,
of the fatigue process tree.
1. Make sure that the task Loading Sequence is selected in the fatigue process tree.
2. Click Add.
8. Click Sa v e .
9. Click Add.
15. Click Sa v e .
This section describes how to set-up the free-shape design variables, objective, and fatigue
life constraint.
2. Click fre e s ha pe .
4. Click on no de s and select the by s e ts and check the box next to node set upper.
5. Click on s e le ct.
6. Click cre a te .
11. Repeat steps 4-10 and create a new design variable named lower with the node set
lower.
4. Click cre a te .
8. Click cre a te .
6. Click cre a te .
4. Click cre a te .
3. Set the directory in which to save the file, and in File name, enter tarm_fatigue_opti.
fem.
If the job was successful, new results files can be seen in the directory where the
OptiStruct model file was written.
When the fatigue optimization is finished successfully, it will automatically go into this
task.
This launches HyperView to load the tarm_fatigue_opti_s4.h3d results file for life
results on top of shape results.
3. Click on last iteration (Iteration 11) from the Simulation list of the Load Case and
Simulation Selection Manager.
7. Click on E dit Le ge nd and edit the legend (if you wish) to be the same as shown in the
following two images.
In this exercise, Global Search Optimization (GSO) will be performed with shape design
variables. A global search approach will be used to generate the multiple starting points. The
structure, consisting of one base panel and the cross shaped ribs (as shown in the following
image), is subjected to a frequency-varying unit load excitation using the modal method. The
goal is to achieve the best stiffened structure by changing the shapes of the ribs.
A regular shape optimization has been defined in the model. The formulation of this
optimization is listed below.
Objective: Minimize the maximum (minmax) displacement at the node where the
excitation load was applied.
Step1: Load the OptiStruct user profile and import the model
1. Launch HyperMesh Desktop.
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 OptiStruct.
7. Select the rib_opt.fem file, located in the HyperWorks installation directory under
<install_directory>/tutorials/hwsolvers/optistruct/.
8. Click O pe n.
9. Click Apply .
1. Please use the Model Browser, located on the left side of the HyperMesh window (as
shown below) to review the model, loadstep, and optimization setup.
2. To review the shape design variables, please click s ha pe on the optimization panel.
5. The other shapes can be reviewed by clicking the next or prev button.
The name and location of the rib_opt.fem file now displays in the input file: field. The
location where the model and result files will be written can be modified.
2. Click O ptiStruct.
3. After the running process completes, go to the working directory and open the rib_opt.
out file. Check the optimization history and the final optimal design.
4. Click re turn.
Both subcase and bulk data entries for global search are created with default parameters.
3. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, rib_opt_global.fem, in the File name: field.
The .fem filename extension is the suggested extension for OptiStruct input decks.
4. Click Sa v e .
Note the name and location of the rib_opt_global.fem file now displays in the input
file: field.
This launches the OptiStruct job. If the job was successful, new results files can be seen
in the directory where the OptiStruct model file was written. The rib_opt_global.out
file is a good place to look for error messages that will help to debug the input deck if any
errors are present. Make sure the process is complete before checking the results files.
A general summary of the GSO run is output at the end of the out file. This GSO run
completed with 20 starting points. Seventeen (17) unique designs were found, which
means three designs were repeated. The best design was found at starting point 3. The
table of unique designs and table of designs were also printed with the information of
starting point, objective function, constraint violation, times found, and directory suffix.
2. Compare the best design with the results from the regular optimization approach (step 3).
In the working directory, 17 directories with suffix _GSO_V1_V2 were created for the
unique designs. V1 is the number of the starting point, and V2 is the rank of this design
among all unique designs. The optimization results of each starting point can be found in
the directory respectively.
The tables for unique designs and all designs are printed in the Excel file. The best design
among the GSO runs was achieved with the 3rd starting point, and the results of this
design were saved in the directory, rib_opt_global_GSO_3_1, and this design was found
three times during the global search. In GSO search, if the difference between two
designs is under the unique design tolerance, they are considered identical; for example,
the designs with starting points 11 and 3. This information can be found in the table of all
designs. The statistical information and the optimal design variables for each run are also
available.
2. In the Load model and results: panel, load the rib_opt_global_des.h3d file in the
directory /rib_opt_global_GSO_3_1.
3. Click Apply .
5. Go to the Contour panel, select Sha pe C ha nge (v ) as the Results type, and click
Apply .
In this exercise, shape optimization on an example of aluminum fins (as shown in the following
image) is performed. The base of the fins experiences a constant heat flux of q=8000 W/m.
The temperature of the surrounding air is 10C with a corresponding heat transfer coefficient
of H = 40 W/m2 K. The heat conduction coefficient is K = 221 W/m K. The temperature
distribution within the fins is determined by solving the heat conduction and convection load
case.
Model review
Step 1: Load the OptiStruct user profile and import the model
1. Launch HyperMesh Desktop.
3. Click O K.
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
User Profiles can also be accessed from the Preferences menu on the toolbar.
7. Select the fins.fem file, located in the HyperWorks installation directory under
<install_directory>/tutorials/hwsolvers/optistruct/.
8. Click O pe n.
9. Click Apply .
2. Click H y pe rM o rph.
4. Select the m o v e no de s subpanel using the radio buttons on the left side of the panel.
6. Input the translation distance in the basic coordinate system, x=0.03, y=0.0, z=0.0.
We only want to extend the fins in x-direction.
7. Select m o v ing no de s .
9. Check the small box in front of node set sh1_move and click s e le ct.
11. Click the highlighted nodes and click by s e ts on the pop-up window.
12. Check the small box in front of node set sh1_fix and click s e le ct.
15. Check the small box in front of element set sh1_elem and click s e le ct.
18. Input name= sh1 and toggle the option to as node perturbations.
19. Click s a v e .
21. Repeat steps 5 through step 16 to create shapes sh2 and sh3 on the original model. The
corresponding node sets (sh2_move/fix and sh3_move/fix) and element sets (sh2_elem
and sh3_elem) are predefined.
5. Check the boxes next to sh1, sh2, and sh3 and click s e le ct.
6. Input initial value = 0.0, lower bound = -1.0, upper bound = 2.0.
7. Click cre a te .
Three shape design variables are created from the shapes created in the previous step.
4. Click cre a te .
5. Input re s po ns e = temperature.
7. Click no de s and click by id, type the node ID 2450 in the field and press E NTE R.
8. Click cre a te .
5. Click cre a te .
5. Click cre a te .
3. Set format to h3d and set both TYPE and OPTION to ALL.
3. Select the directory where you would like to write the OptiStruct model file and enter the
name for the model, fins_opt.fem, in the File name: field.
The .fem file name extension is the suggested extension for OptiStruct input decks.
4. Click Sa v e .
Note that the name and location of the fins_opt.fem file now displays in the input file:
field.
8. Click O ptiStruct.
This launches the OptiStruct job. If the job was successful, new results files can be seen
in the directory where the OptiStruct model file was written. The fins_opt.out file is a
good place to look for error messages that will help to debug the input deck if any errors
are present. Make sure the process is complete before checking the results files.
2. In the Load model and results: panel, load the fins_opt_s1.h3d file in both model and
results fields.
3. Click Apply .
The h3d file containing both the analysis and optimization results is loaded.
8. In the Contour panel, select Sha pe C ha nge (v ) as the Results type and click Apply .
The contour plot of grid temperature is applied on top of the optimized shape now.
The following plot shows the temperature distributions of the original design and the
optimized design.