OptiStruct Manual 11
OptiStruct Manual 11
TM
OptiStruct Optimization
Analysis, Concept and Optimization
HyperWorks is a division of
www.altair.com
FTP site
Location
Telephone
North America
248.614.2425
China
86.400.619.6186.
France
33.1.4133.0992
Germany
49.7031.6208.22
India
91.80.6629.4500
1800.425.0234 (toll
free)
Italy
39.800.905.595
Japan
81.3.5396.2881
Korea
82.70.4050.9200
Scandinavia
46.46.286.2052
United Kingdom
01926 .468.600
Brazil
55.11.3384.0414
Australia
61.3.9016.9042
New Zealand
64.9.413.7981
Listed below are Altair HyperWorks applications. Copyright Altair Engineering Inc., All Rights Reserved for:
1999-2011; HyperView Player 2001-2011; HyperStudy 1999-2011; HyperGraph 1995-2011; MotionView 1993
2011; MotionSolve 2002-2011; HyperForm 1998-2011; HyperXtrude 1999-2011; Process Manager 2003-2011;
Templex 1990-2011; Data Manager 2005-2011; MediaView 1999-2011; BatchMesher 2003-2011;
TextView 1996-2011; HyperMath 2007-2011; ScriptView 2007-2011; Manufacturing Solutions 2005-2011;
HyperWeld 2009-2011; HyperMold 2009-2011; solidThinking 1993-2011; solidThinking Inspired 2009-2011;
Durability Director 2009-2011; Suspension Director 2009-2011; AcuSolve 1997-2011; and AcuConsole
2006-2011.
Table of Contents
OptiStruct Optimization
Analysis, Concept and Optimization
Table of Contents.................................................................................................................... II
Chapter 1: Introduction ............................................................................................ 1
1 HyperWorks Overview ............................................................................................... 1
1.1 HyperWorks Tool Descriptions ............................................................................... 2
1.2 OptiStruct Integration with HyperWorks .................................................................. 4
2 OptiStruct Overview .................................................................................................. 5
2.1 Finite Element Analysis .......................................................................................... 5
2.2 Multi-body Dynamic Analysis .................................................................................. 6
2.3 Structural Design and Optimization ........................................................................ 6
2.4 Case Studies .......................................................................................................... 9
2.4.1 Lightweight SUV Frame Development ................................................................. 9
2.4.2 Optimization Process of a Torsion Link.............................................................. 10
II
Proprietary Information of Altair Engineering, Inc.
III
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
IV
Proprietary Information of Altair Engineering, Inc.
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
Chapter 1: Introduction
Chapter 1
Introduction
1- HyperWorks Overview
HyperWorks, A Platform for Innovation, is an enterprise simulation solution for rapid
design exploration and decision-making. As one of the most comprehensive CAE solutions
in the industry, HyperWorks provides a tightly integrated suite of best-in-class tools for:
o
Modeling
Analysis
Optimization
Visualization
Reporting
HyperWorks 11.0
OptiStruct Optimization 1
Proprietary Information of Altair Engineering, Inc.
Chapter 1: Introduction
HyperMesh
HyperCrash
BatchMesher
Solvers
RADIOSS
MotionSolve
OptiStruct
HyperGraph
HyperGraph 3D
HyperView Player
OptiStruct Optimization 2
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
Chapter 1: Introduction
Process Manager
Assembler
Manufacturing Environments
Manufacturing Solutions
HyperForm
HyperXtrude
Molding
Forging
HyperWorks 11.0
OptiStruct Optimization 3
Proprietary Information of Altair Engineering, Inc.
Chapter 1: Introduction
Solver Overview
The pre-processing for OptiStruct is made using HyperMesh and the post-processing using
HyperView and HyperGraph. HyperStudy is another HyperWorks tool that can be used
with OptiStruct for Robust design, DOE and Optimization.
During the next sections the HyperWorks integration with OptiStruct will be showed in detail,
and for more about it the user should go to our online documentation.
OptiStruct Optimization 4
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
Chapter 1: Introduction
2 OptiStruct Overview
OptiStruct is a finite element and multi-body dynamics software which can be used
to design and optimize structures and mechanical systems. OptiStruct uses the
analysis capabilities of RADIOSS and MotionSolve to compute responses for
optimization.
The graphical interface for OptiStruct within HyperWorks allows you to perform complete
modeling, optimization problem setup, job submission, and post-processing quickly and
easily.
Direct
Modal
Direct
Modal
Direct
Modal
HyperWorks 11.0
OptiStruct Optimization 5
Proprietary Information of Altair Engineering, Inc.
Chapter 1: Introduction
Inertia relief analysis is available with static, frequency response, transient response, and
non-linear gap analyses. All standard finite element types are available. All elements fulfill
the usual patch tests as well as the full suite of MacNeal-Harder tests. OptiStruct can be
used as a standalone finite element solver and it provides multi-threaded solutions on multiprocessor computers.
Kinematics
Dynamics
Static
Quasi-static
Systems with rigid and flexible bodies can be analyzed. Flexible bodies can be derived from
any finite element model defined in OptiStruct. The multi-body solution sequence is the
implemented as an integration of Altair MotionSolve.
Multi-body dynamics is an advanced analysis feature.
OptiStruct Optimization 6
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
Chapter 1: Introduction
Shape: is an automated way to modify the structure shape based on predefined shape
variables to find the optimal shape.
HyperWorks 11.0
OptiStruct Optimization 7
Proprietary Information of Altair Engineering, Inc.
Chapter 1: Introduction
Gauge: is a particular case of size, where the DV are 2D props (Pshell or Pcomp)
Free Shape: is an automated way to modify the structure shape based on set of nodes that
can move totally free on the boundary to find the optimal shape.
OptiStruct Optimization 8
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
Chapter 1: Introduction
Topology, topography, free-size, size, shape and free-shape optimization can be combined
in a general problem formulation.
All these optimizations methods will be discussed in detail on the next chapters.
OptiStruct Application
HyperWorks 11.0
OptiStruct Optimization 9
Proprietary Information of Altair Engineering, Inc.
Chapter 1: Introduction
OptiStruct Application
OptiStruct Optimization 10
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
Chapter 2
Theoretical Background
1 Optimization
Optimization can be defined as the automatic process to make a system or
component as good as possible based on an objective function and subject to certain design
constraints. There are many different methods or algorithms that can be used to optimize a
structure, on OptiStruct is implemented some algorithms based on Gradient Method, this
method will be discussed in detail later on this book.
Models used in optimization are classified in various ways, such as linear versus
nonlinear, static versus dynamic, deterministic versus stochastic, or permanent versus
transient. Then it is very important that the user include a-priori all of the important aspects
of the problem, so that they will be taken into account during the solution.
Mathematically an optimization problem can be stated as:
Objective Function:
0(p) min(max)
i(p) 0
Design Space:
(target)
where:
0(p) and i(p) represent the system responses or a target value for system
identification study, and pj represents the vector of design variables
(p1,p2,,pn).
HyperWorks 11.0
OptiStruct Optimization 11
Proprietary Information of Altair Engineering, Inc.
TOPOLOGY:
TOPOGRAPHY:
FREE-SIZE:
SHAPE:
SIZE:
GAUGE:
FREE-SHAPE:
OptiStruct Optimization 12
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
1.2 Response
Response for OptiStruct is any value or function that is dependent of the Design
Variable and is evaluated during the solution.
OptiStruct allows the use of numerous structural responses, calculated in a finite
element analysis, or combinations of these responses to be used as objective and constraint
functions in a structural optimization.
Responses are defined using DRESP1 bulk data entries. Combinations of
responses are defined using either DRESP2 entries, which reference an equation defined
by a DEQATN bulk data entry, or DRESP3 entries, which make use of user-defined external
routines identified by the LOADLIB I/O option. Responses are either global or subcase
(loadstep, load case) related. The character of a response determines whether or not a
constraint or objective referencing that particular response needs to be referenced within a
subcase.
Vi D
Vf = D
V0
where:
Vf : Volume fraction
Mi
M0
Mf =
where:
Mf : Mass fraction
Mi : Total mass at current iteration;
M0 : Total Initial mass;
HyperWorks 11.0
OptiStruct Optimization 13
Proprietary Information of Altair Engineering, Inc.
Moments of inertia
[ inertia ]
This is a global response that may be defined for the whole structure, for
individual properties (components) and materials, or for groups of
properties (components) and materials.
o
Weighted compliance
[ weighted comp ]
CW = wiCi =
1
wi uTi fi
2
[ weighted freq ]
fw =
wi
with [K i M ]ui = 0
OptiStruct Optimization 14
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
This is done so that increasing the frequencies of the lower modes will have
a larger effect on the objective function than increasing the frequencies of
the higher modes. If the frequencies of all modes were simply added
together, OptiStruct would put more effort into increasing the higher modes
than the lower modes. This is a global response that is defined for the
whole structure.
o
[ compliance index ]
wj
S = wiCi + NORM
NF = Cmax min
where Cmax is the highest compliance value in all subcases (loadsteps, load
cases) and min is the lowest eigenvalue included in the index.
In a new design problem, the user may not have a close estimate for
NORM. If this happens, OptiStruct automatically computes the NORM
value based on compliances and eigenvalues computed in the first iteration
step.
o
HyperWorks 11.0
OptiStruct Optimization 15
Proprietary Information of Altair Engineering, Inc.
Static Subcase
o
Static compliance
[ compliance ]
C=
1 T
u f
2
with Ku = f
or
C=
1 T
1
u Ku = Tdv
2
2V
The compliance is the strain energy of the structure and can be considered
a reciprocal measure for the stiffness of the structure. It can be defined for
the whole structure, for individual properties (components) and materials, or
for groups of properties (components) and materials. The compliance must
be assigned to a static subcase (loadstep, load case).
OptiStruct Optimization 16
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
Static displacement
[ static displacement ]
[ static stress ]
Different stress types can be defined as responses. They are defined for
components, properties, or elements. Element stresses are used, and
constraint screening is applied. It is also not possible to define static stress
constraints in a topology design space (see above). This is a static
subcase (loadstep, load case) related response.
o
[ static strain ]
Different strain types can be defined as responses. They are defined for
components, properties, or elements. Element strains are used, and
constraint screening is applied. It is also not possible to define strain
constraints in a topology design space. This is a subcase (loadstep, load
case) related response.
o
[ composite stress ]
[ composite strain ]
[composite failure ]
Static force
[ static force ]
HyperWorks 11.0
OptiStruct Optimization 17
Proprietary Information of Altair Engineering, Inc.
Different force types can be defined as responses. They are defined for
components, properties, or elements. Constraint screening is applied. It is
also not possible to define force constraints in a topology design space.
This is a static subcase (loadstep, load case) related response.
Frequency
[ frequency ]
Natural frequencies are the result of a normal modes analysis, and must be
assigned to the normal modes subcase (loadstep, load case).
Buckling Subcase
o
[ frf displacement ]
[ frf velocity ]
[ frf acceleration ]
[ frf stress ]
Different stress types can be defined as responses. They are defined for
components, properties, or elements. Element stresses are not used in
real/imaginary or magnitude/phase form, and constraint screening is
applied. It is not possible to define stress constraints in a topology design
space. This is a frequency response subcase (loadstep, load case) related
response.
OptiStruct Optimization 18
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
[ frf strain ]
Different strain types can be defined as responses. They are defined for
components, properties, or elements. Element strains are used in
real/imaginary or magnitude/phase form, and constraint screening is
applied. It is not possible to define strain constraints in a topology design
space. This is a frequency response subcase (loadstep, load case) related
response.
o
Freq =
yi }
y( f )
sum
= yi
i =1
= yi / m
avg
ssq
i =1
= yi2
i =1
rss
max
min
y
i =1
max ( yi )
Minimum value of arguments. Scalar = min( y i )
maxabs
m
= yi / m
i =1
Maximum of absolute value of arguments. Scalar = max ( y i )
minabs
sumabs
avgabs
2
i
min( yi
= yi
i =1
Fatigue
[ fatigue ]
Function
[ function ]
HyperWorks 11.0
OptiStruct Optimization 19
Proprietary Information of Altair Engineering, Inc.
Example: Objective is to minimize the maximum of all DOBJREF's with DOID 1 and
DOID 2.
MINMAX = 1
MINMAX = 2
Example: Design objective for MINMAX (MAXMIN) problems - DOID 1 - references design
response 10 in subcase 2 - negative reference value = -1.0, positive reference value = 1.0.
$--(1)--$--(2)--$--(3)--$--(4)--$--(5)--$--(6)--$--(7)--
OptiStruct Optimization 20
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
DOBJREF
10
1.0
1.0
Objective:
min Weight(b,h)
Design Variables:
20 < b < 40
30 < h < 90
Design Constraints:
with
max = 70 MPa
with
max = 15 MPa
h 2*b
HyperWorks 11.0
OptiStruct Optimization 21
Proprietary Information of Altair Engineering, Inc.
h (mm)
BEAM
100.0
90.0
80.0
70.0
60.0
50.0
40.0
30.0
20.0
10.0
0.0
0.00
=70
=15
< 15
FEASIBLE
DOMAIN
>70
<70
OPTIMUM
W = 11
> 15
W=9
W=7
UNFEASIBLE
DOMAIN
10.00
20.00
30.00
W=5
40.00
50.00
b (mm)
Cantilever beam problem (Optimum (b=24.9, h=64.3) W = 8).
OptiStruct Optimization 22
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
2 Gradient-based Optimization
OptiStruct uses an iterative procedure known as the local approximation method to
solve the optimization problem. This approach is based on the assumption that only small
changes occur in the design with each optimization step. The result is a local minimum.
The biggest changes occur in the first few optimization steps and, as a result, not many
system analyses are necessary in practical applications.
The design sensitivity analysis of the structural responses (with respect to the design
variables) is one of the most important ingredients to take the step from a simple design
variation to a computational optimization.
The design update is computed using the solution of an approximate optimization
problem, which is established using the sensitivity information. OptiStruct has three different
methods implemented: the optimality criteria method, a dual method, and a primal feasible
directions method. The latter are both based on a convex linearization of the design space.
Advanced approximation methods are used.
The optimality criteria method is used for classical topology optimization formulations
using minimum compliance (reciprocal frequency, weighted compliance, weighted reciprocal
frequency, compliance index) with a mass (volume) or mass (volume) fraction constraint.
The dual or primal methods are used depending upon the number of constraints and
design variables. The dual method is of advantage if the number of design variables
exceeds the number of constraints (common in topology and topography optimization). The
primal method is used in the opposite case, which is more common in size and shape
optimizations. However, the choice is made automatically by OptiStruct.
HyperWorks 11.0
OptiStruct Optimization 23
Proprietary Information of Altair Engineering, Inc.
X0
X1
X2
X3
This is a very simplified overview of this method, if the user needs more information it can be
found on any Optimization text book
The method is applied to linear static and dynamic problems integrated mostly with
FEA Solvers (i. e. OptiStruct).
OptiStruct Optimization 24
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
For example, using first order finite difference method, you can calculate the gradient
of i(p) as:
In finite element based structural optimization, you can state the linear static
equation as KU = F, where K is the stiffness matrix and U is the displacement vector to be
determined, and F is the applied force vector. Differentiating this with respect to the design
variable X yields the following:
You can obtain gradients of stresses and strains, etc, by chain rule differentiation.
The sensitivity of this response with respect to the design variable x, or the gradient
of the response, is:
Two approaches to sensitivity analysis, the Direct and Adjoint variable method are
possible. Given the equation of motion:
Using this equation, the largest cost in the calculation of the response gradient is the
forward-backward substitution required for the calculation of the derivative of the
HyperWorks 11.0
OptiStruct Optimization 25
Proprietary Information of Altair Engineering, Inc.
displacement vector with respect to the design variable. This is called the direct method.
One forward-backward substitution is required for each design variable.
If constraints are active in more than one load case, and the load is a function of the
design variable (say body force or pressure loads for shape optimization), then the set of
forward-backward substitutions must be performed for each active load case. If the loads
are not a function of the design variables, but there are active load cases with multiple
boundary conditions, then the set of forward-backward substitutions must be performed for
each active boundary condition.
For the Adjoint variable method of sensitivity analysis, the vector (adjoint variable) a
is introduced, which is calculated as:
When the adjoint variable method for sensitivity analysis is used, a single forwardbackward substitution is needed for each retained constraint. This forward-backward
substitution is needed to calculate the vector a.
There are typically a small number of design variables in shape and size optimization
(say 5 to 50) and a large number of constraints. The large number of constraints comes
from stress constraints. If there are 20,000 elements, each with a single stress constraint,
and 10 load cases, there are a total of 200,000 possible stress constraints.
There are typically a large number of design variables in topology optimization
(between 1 and 3 per element) and a small number of constraints. Because stress
constraints are not usually considered in topology optimization, it makes sense that the
Adjoint variable method of sensitivity analysis be used for topology optimization (in order to
reduce computational costs).
For shape and sizing optimization, it is often beneficial to use the Direct method for
sensitivity analysis. However, in some cases, when there are a large number of design
variables and a small number of constraints, the adjoint variable method should be used.
For example, in a topography optimization, the number of constraints that gradients need to
be calculated for can be reduced using constraint screening. With constraint screening,
constraints that are not close to being violated are ignored. Only constraints that are
violated, or nearly violated, are retained. Also, if there are many stress constraints that are
retained in a small region of the structure, say at a stress concentration, only a few of the
most critical need to be retained.
The sensitivities of responses with respect to design variables can be exported to an
Excel spreadsheet (see OUTPUT, MSSENS) or plotted in HyperGraph (See OUTPUT,
HGSENS). For contouring in HyperView, the sensitivities of topology and gauge design
variables can be exported to H3D format. (See OUTPUT, H3DTOPOL and OUTPUT,
H3DGAUGE, respectively).
OptiStruct Optimization 26
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
The Excel spreadsheet allows the modification of design variables and then
computes approximated responses. This can be used to make design studies without
running OptiStruct again. See the image below.
Example spreadsheet output showing that modification of field C10 yields approximate results in
the lower right of the spreadsheet, identified by a border surround here.
File Creation
This file is only created when size or shape optimization is performed. Output of this
file is controlled by the SENSITIVITY and SENSOUT I/O options.
File Format
The only values that can be changed in this file are those listed in the "New" column.
All other values are either fixed or their calculation is fixed. When the .slk file is created, the
values in the "New" column match those in the "Reference" column. These values may be
adjusted, but should always remain within the design variable's bounds.
Each size and shape design variable in the model is listed in the left-hand column of
the sensitivity table. Information concerning a particular design variable is given in the row
where its label is listed. The current value and the upper and lower bounds of the design
variables are given in the columns, "Reference," "Lower," and "Upper" respectively.
Each referenced response in the model has its own column. These response
columns are on the right-hand side of the sensitivity table. The calculated sensitivity of a
response to changes in a design variable at the current iteration is given in the row
corresponding to that design variable and the column corresponding to that response.
Beneath the list of design variables, in the left-hand column, are the headings
"Response lower bound," "Response reference," and "Response upper bound". If a
response is constrained, the constraint value will be given in either the "Response lower
bound" or the "Response upper bound" row of the column corresponding to that response.
The value given in the "Response reference" row is the calculated value of the response
using the design variable reference values.
HyperWorks 11.0
OptiStruct Optimization 27
Proprietary Information of Altair Engineering, Inc.
At the bottom of the left-hand column are the headings: "Response linear," "Response
reciprocal," and "Response conservative". The response values in these rows are the
predicted values of the responses for three different approximations. Initially, these values
will match one another and the "Response reference" value for each response. This is
because these are the predicted values of the response at the given variable settings, which
initially are the same settings used to calculate the "Response reference" value. Once the
design variable values in the "New" column are altered, these values will change.
The "Response linear" row predicts the response value using linear approximation. This is
calculated as:
where:
R1
R0
v1, v 2,..., vn
v10 , v 2 0 ,..., vn0
dR dR
dR
,
,...,
dv1 dv 2
dvn
The "Response reciprocal" row predicts the response value using reciprocal
approximation. This is calculated as:
where:
R1
R0
v1, v 2,..., vn
v10 , v 2 0 ,..., vn0
dR dR
dR
,
,...,
dv1 dv 2
dvn
The "Response conservative" row predicts the response value using a combination
of the above approximations where linear approximation is used, when the sensitivity is
positive, and reciprocal approximation is used when the sensitivity is negative. Therefore, if
all sensitivities are positive, the conservative prediction will match the linear prediction. If all
sensitivities are negative, it will match the reciprocal prediction, but if there is a mixture of
positive and negative sensitivities for a given response then the conservative prediction will
match neither the linear nor the reciprocal prediction.
OptiStruct Optimization 28
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
The normalized values simply show the predicted response as a fraction of the response
reference value.
This can result in a big optimization problem with a large number of responses
and design variables. Most optimization algorithms are designed to handle either
a large number of responses or a large number of design variables, but not both.
HyperWorks 11.0
OptiStruct Optimization 29
Proprietary Information of Altair Engineering, Inc.
2.
OptiStruct Optimization 30
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
demonstrate similar sensitivities, the easiest way to ensure that is through the use of similar
variable combinations).
In order to reduce the burden on the user, it is possible to allow the screening criteria
to be automatically and adaptively adjusted in an effort to retain the least number of
responses necessary for stable convergence. Setting RTYPE=AUTO on the DSCREEN
bulk data entry will enable this feature. Region definition is also automated with this setting.
This setting is useful for less experienced users and can be particularly useful when there
are many local constraints. However, there are some drawbacks; experienced users may
be able to achieve better performance through manual definition of screening criteria, more
memory may be required to run with RTYPE=AUTO, and manual under-retention of
constraints will require less memory and may, therefore, be desirable for very large
problems (even with compromised convergence stability and optimality).
(2)
(3)
(4)
(5)
DRESP1
label
STRESS
PSHELL
(6)
(7)
(8)
SMP1
(9)
(10)
DRESP1 with ID 1 defines stress responses for all the elements that
reference the PSHELL definitions with PID 1, 2, or 3. As no region identifier is
defined, the stress responses for each PSHELL form their own regions. So, all of
the stress responses for elements referencing PSHELL with PID1 are in a different
region than all of the stress responses for elements referencing PSHELL with PID2,
which in turn are in a different region than all of the stress responses for elements
referencing PSHELL with PID3. If this response definition is constrained in an
optimization problem, and the default settings for constraint screening are assumed,
then 20 elemental stresses are considered for each of the three PSHELL definitions,
i.e. 20 for each region, giving a total of 60 retained responses.
Example 2
(1)
(2)
(3)
(4)
(5)
(6)
(7)
DRESP1
label
STRESS
PSHELL
SMP1
(8)
(9)
(10)
HyperWorks 11.0
OptiStruct Optimization 31
Proprietary Information of Altair Engineering, Inc.
(2)
(3)
(4)
(5)
(6)
(7)
DRESP1
label
STRESS
PSHELL
SMP1
(8)
(9)
(10)
All of the stress responses defined in the DRESP1 entries above form a
single region - notice the non-zero entries in field 6 (0 is equivalent to leaving it
blank). Now, if these response definitions (which are of the same type (STRESS),
with the same non-zero entry in field 6) are constrained in an optimization problem
(assuming the default settings for constraint screening), then 20 elemental stresses
are considered in total for the three PSHELL definitions because they form a single
region.
OptiStruct Optimization 32
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
Chapter 3
HyperWorks 11.0
OptiStruct Optimization 33
Proprietary Information of Altair Engineering, Inc.
ANALYSIS
o
ASCII output
o
<model_file_name>.out
<model_file_name>.stat
HTML Reports
This file is always created. This
file contains a problem summary
and results summary of the run.
<model_file_name>.html
<model_file_name>_menu.html
Model results
OptiStruct Optimization 34
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
<model_file_name>.res
<model_file_name>.h3d
HV session file
o <model_file_name>.mvw
2-
SIZE OPTIMIZATION
All the files generated on the ANALYSIS, with some small differences on:
o
<model_file_name>_des.h3d:
<model_file_name>_s#.h3d:
HV session file:
o
<model_file_name>_hist.mvw:
ASCII files:
o
<model_file_name>.hist:
<model_file_name>.sh:
HyperWorks 11.0
OptiStruct Optimization 35
Proprietary Information of Altair Engineering, Inc.
3-
<model_file_name>.desvar:
<model_file_name>.prop:
<model_file_name>.hgdata:
SHAPE OPTIMIZATION
All the files generated on SIZE optimization and more 2 ASCII files.
o
4-
ASCII files:
o
<model_file_name>.grid:
<model_file_name>.oss:
TOPOLOGY OPTIMIZATION
All the files generated on SIZE optimization, except the files .prop and .desvar
and more 3 ASCII files:
o
5-
ASCII file:
It has the information to run
OSSMOTH to generate the
optimum topology for the model.
<model_file_name>.oss:
<model_file_name>.HM.ent.cmf
TOPOGRAPHY
All files generated on the SHAPE optimization.
6-
GAUGE
All files generated on the SIZE optimization.
7-
FREE-SHAPE
All files generated on the SHAPE optimization.
8-
FREE-SIZE
OptiStruct Optimization 36
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
All the files generated on TOPOLOGY optimization, except the file .hm.COMP.CMF.
9-
COMPOSITE SHUFFLE
All the files generated on SIZE optimization, more 2 ASCII files:
o
ASCII file:
o
<model_file_name>.prop:
HTML Reports
o
<model_file_name>.shuf.html
HyperWorks 11.0
OptiStruct Optimization 37
Proprietary Information of Altair Engineering, Inc.
2 Optimization Setup
The optimization cards can be divided in 2 groups according with the section on the
input deck that this cards are localized.
o
DESOBJ
MODEWEIGHT
REPSUB
DESSUB
MODTRAK
WEIGHT
DESVAR
NORM
BMFACE
DEQATN
DOPTPRM
DRESP3
DTABLE
DVMREL2
DCOMP
DESVAR
DREPADD
DSCREEN
DTPG
DVPREL1
DCONADD
DLINK
DREPORT
DSHAPE
DTPL
DVPREL2
DCONSTR
DLINK2
DRESP1
DSHUFFLE
DVGRID
The complete descriptions of these cards are available at the online documentation.
Optimization Menu
OptiStruct Optimization 38
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
Model Browser
Optimization panel
Optimization Menu
Model Browser
The procedure to create a design variable will be described later on each chapter as
it define type of optimization that will be performed and have a different setup for each type.
HyperWorks 11.0
OptiStruct Optimization 39
Proprietary Information of Altair Engineering, Inc.
Optimization panel
Optimization Menu
Model Browser
OptiStruct Optimization 40
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
2.4 Dconstraints
[DCONSTR]
To create and edit a design constraint the user can chose one of the 3 options
shown below:
Optimization panel
Optimization Menu
Model Browser
HyperWorks 11.0
OptiStruct Optimization 41
Proprietary Information of Altair Engineering, Inc.
[DOBJREF]
To create and edit an objective reference vector the user can chose one of the 3
options shown below:
Optimization panel
Optimization Menu
Model Browser
OptiStruct Optimization 42
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
Optimization panel
Optimization Menu
Model Browser
HyperWorks 11.0
OptiStruct Optimization 43
Proprietary Information of Altair Engineering, Inc.
[DTABLE]
To create and edit a list of constants the user can chose one of the 3 options shown
below:
Optimization panel
Optimization Menu
Model Browser
OptiStruct Optimization 44
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
2.8 Dequations
[DEQATN]
To create and edit a function or design equation the user can chose one of the 3
options shown below:
Optimization panel
Optimization Menu
Model Browser
HyperWorks 11.0
OptiStruct Optimization 45
Proprietary Information of Altair Engineering, Inc.
[DDVAL]
To create and edit a Discrete Design Variable list the user can chose one of the 3
options shown below:
Optimization panel
Optimization Menu
Model Browser
OptiStruct Optimization 46
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
[DOPTPRM]
To add or edit the optimization parameters the user can chose one of the 2 options
shown below:
Optimization panel
Optimization Menu
Model Browser
Model Browser
HyperWorks 11.0
OptiStruct Optimization 47
Proprietary Information of Altair Engineering, Inc.
Min ( f1 )
Mass 5.0 E 04 ton
5 b 15
5 h 15
Geometry:
o
First mode
Material STEEL:
o
o
o
= 7.8e-9
E = 210000
= 0.3
t/mm3
MPa
-
[RHO] Density
[E]
Youngs modulus
[nu]
Poissons ratio
OptiStruct Optimization 48
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
0.0
0.0
20.0
BAR
7.80E-09
1
5.0
5.0
15.0
15.0
Create a Design variable as showed above for b and c. Associate them with the
Dimension 1 and Dimension 2 of the beam property as showed below:
HyperWorks 11.0
OptiStruct Optimization 49
Proprietary Information of Altair Engineering, Inc.
1DIM1
0.0
1DIM2
0.0
1
2
f1
Mass
FREQ
MASS
5.00E-04
OptiStruct Optimization 50
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
FINAL SETUP
DESGLB
2
SUBCASE 1
SPC = 1
METHOD(STRUCTURE) = 2
DESOBJ(MAX)=1
BEGIN BULK
DESVAR
1
b10.0
5.0
15.0
DESVAR
2
c10.0
5.0
15.0
DVPREL1 1
PBARL
1DIM1
+
1
1.0
DVPREL1 2
PBARL
1DIM2
+
2
1.0
DRESP1 1
f1
FREQ
DRESP1 2
Mass
MASS
DCONSTR
1
2
5.00E-04
DCONADD
2
1
GRID
1
0.0
0.0
0.0
GRID
2
1000.0 0.0
0.0
CBAR
1
1
1
20.0
PBARL
1
1
BAR
+
0.0
0.0
1
1.0
HyperWorks 11.0
0.0
OptiStruct Optimization 51
Proprietary Information of Altair Engineering, Inc.
10.0
1210000.0
2
1
1
1
2
0.3
7.80E-09
1
1234560.0
3
0.0
OptiStruct Optimization 52
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
Chapter 4
Concept Design
1 Topology Optimization
Topology Optimization is a mathematical technique that produces an
optimized shape and material distribution for a structure within a given package
space. By discretizing the domain into a finite element mesh, OptiStruct calculates
material properties for each element. The OptiStruct algorithm alters the material
distribution to optimize the user-defined objective under given constraints.
HyperWorks 11.0
OptiStruct Optimization 53
Proprietary Information of Altair Engineering, Inc.
OptiStruct Optimization 54
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
K ( ) = p K
where K and K represent the penalized and the real stiffness matrix of an element,
respectively, is the density and p the penalization factor which is always greater than 1.
HyperWorks 11.0
OptiStruct Optimization 55
Proprietary Information of Altair Engineering, Inc.
OptiStruct Optimization 56
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
FEA model
The structural model is loaded into HyperMesh Desktop. 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.
The optimization problem is stated as:
Objective
function:
Minimize volume.
Constraints:
Design Variables:
HyperWorks 11.0
OptiStruct Optimization 57
Proprietary Information of Altair Engineering, Inc.
3. Click on
OptiStruct Optimization 58
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
4. Click props and select the check boxes by the Design and Base properties.
5. Click select.
6. Enter the name shells in the desvar= field.
7. Set the component type: switch to PSHELL.
8. Click create.
9. Select the parameters subpanel.
10. Toggle minmemb off to mindim=.
11. For mindim=, enter 0.3.
12. Under stress constraint:, toggle from none to stress= .
13. For stress=, enter 1.6e4.
14. Click update.
HyperWorks 11.0
OptiStruct Optimization 59
Proprietary Information of Altair Engineering, Inc.
6. Click create.
A response, volume, is defined for the total volume of the model.
7. Click return to go back to the optimization panel.
OptiStruct Optimization 60
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
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.
.fem is the suggested extension for OptiStruct input decks.
4. Click Save.
Note the name and location of the hook_opt.fem file displays in the input file: field.
5. Make sure the memory options: toggle is set to memory default.
6. Click the run options: switch and select optimization.
7. Make sure the export options: toggle is set to all.
8. Click OptiStruct.
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.
5. In the Model view of the browser, set the Design Iteration to the last one.
6. Enter a value of 0.3 in the Current value: field (in the Iso panel).
HyperWorks 11.0
OptiStruct Optimization 61
Proprietary Information of Altair Engineering, Inc.
The isosurface post-processing feature is an excellent tool to use for viewing the density results
from OptiStruct.
7. Click and move the Current Value slider bar to view results based on different density
values.
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 third page, which has results loaded from the hook_opt_s19.h3d is displayed;
this contains the linear static results for the 1st subcase.
2. Click the Contour toolbar button
3. Select the first pull-down menu below the Result type: and select Element stresses.
4. Select the second pull down menu and select vonMises.
5. In the Model View of the Browser set the displayed Iteration to the last one.
OptiStruct Optimization 62
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
7. Click Apply.
8. Similarly, review the results from the other load cases too.
Stress results for all static sub case (Von Mises < 1.6e4)
Notice that there are some local regions where the stresses are still high; this is because
topology stress constraints should be interpreted as global stress control or global stress
target.
The functionality has some ways to filter out the artificial or local stresses caused by
point loading or boundary conditions, but those artificial stresses will not be completely
removed unless the geometry is changed by shape optimization.
Notes: The advantages of using stress based optimization over the classical minimize
(compliance) subject to volume fraction constraint is that it eliminates the need to
guess of the right volume fraction. Additionally, it eliminates the need for
compliance weighting bias for multiple subcases.
There might still be high local stress regions which can be improved more
effectively with local shape and size optimization.
HyperWorks 11.0
OptiStruct Optimization 63
Proprietary Information of Altair Engineering, Inc.
OptiStruct Optimization 64
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
NODE(7) Z.
(Damp link)
This control arm needs to support 3 different load cases, and the design criterion for
each load case is defined as strength constraints as:
1. Car turning on a intersection: corner = (0,1000,0) N
2. Car braking:
brake = (1000,0,0) N
pothole (0,0,1000) N
Problem Setup
You should copy these Files: CONTROL_ARM.hm;
HyperWorks 11.0
OptiStruct Optimization 65
Proprietary Information of Altair Engineering, Inc.
Step 4: Define 3 different loadsteps: Corner (1), Brake (2) and Pothole (2).
As was described on the beginning of this exercise, this part needs to perform well
on 3 different load cases and as we can see below they have different direction. It makes
necessary to define independent load cases for each one.
1. All load cases have the same constraints:
NODE(3) X,Y and Z . (Bolted)
NODE(4) Y and Z . (Cylindrical joint)
NODE(7) Z.
(Damp link)
OptiStruct Optimization 66
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
Step 6: Define the topology design variable for the design region.
1. Define the symmetric manufacturing constraint 1-pln sym using as anchor node (1) and
as first node (2).
HyperWorks 11.0
OptiStruct Optimization 67
Proprietary Information of Altair Engineering, Inc.
2. Define the draw manufacturing constraint as single using as anchor node (6) and first
node (5) and the nondesign property as obstacle.
Brake
Pothole
OptiStruct Optimization 68
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
HyperWorks 11.0
OptiStruct Optimization 69
Proprietary Information of Altair Engineering, Inc.
OptiStruct Optimization 70
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
Problem Setup
You should copy these Files: no_repeat.fem;
HyperWorks 11.0
OptiStruct Optimization 71
Proprietary Information of Altair Engineering, Inc.
Step1: Launch HyperMesh Desktop, Set the User Profile, and Import the File
1. Launch HyperMesh Desktop.
2. Choose OptiStruct as the user profile and click OK.
User Profiles can also be accessed from the Preferences pull-down menu on the
toolbar.
3. From the File pull-down menu on the toolbar, select Import Solver Deck
OptiStruct Optimization 72
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
HyperWorks 11.0
OptiStruct Optimization 73
Proprietary Information of Altair Engineering, Inc.
OptiStruct Optimization 74
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
toolbar button.
4. Under Result type:, select Element Densities(s) from the drop-down list.
5. Click Select Load Case from the Graphics pull-down menu to open the Load Case
and Simulation Selection dialog.
6. Choose the last iteration from the Simulation list and click OK.
7. Click Apply.
8. Set Current value: to 0.4.
9. Set Show values: to Above.
10. Check the boxes beside Features and Transient 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.
11. From the File pull-down menu, choose Exit to quit HyperView.
HyperWorks 11.0
OptiStruct Optimization 75
Proprietary Information of Altair Engineering, Inc.
487
928
892
948
4. Press Enter.
5. Click the green button on.
6. Click return to exit the Numbers panel.
7. From the View pull down menu, select the Mask By Config Browser tab menu.
8. From the Mask By Config tab menu, select 1 under the Isolate column to display only
component collectors.
OptiStruct Optimization 76
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
HyperWorks 11.0
OptiStruct Optimization 77
Proprietary Information of Altair Engineering, Inc.
This will export the input deck and start the execution of OptiStruct in a DOS or UNIX
window.
10. Click File on the menu bar and choose Exit to quit HyperView.
OptiStruct Optimization 78
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
2 Topography Optimization
Topography optimization is an advanced form of shape optimization in which a
design region for a given part is defined and a pattern of shape variable-based
reinforcements within that region is generated using OptiStruct.
The approach in topography optimization is similar to the approach used in topology
optimization, except that shape variables are used rather than density variables. The design
region is subdivided into a large number of separate variables whose influence on the
structure is calculated and optimized over a series of iterations. The large number of shape
variables allows the user to create any reinforcement pattern within the design domain
instead of being restricted to a few.
HyperWorks 11.0
OptiStruct Optimization 79
Proprietary Information of Altair Engineering, Inc.
Element normal
This method is the easiest one to use. When norm is entered for the draw
direction, the normal vectors of the elements are used to define the draw
vector for the shape variables. This method is especially effective for curved
surfaces and enclosed volumes where the beads are intended to be drawn
normal to the surface.
Draw vector
This method allows you to define the draw vector that is used for generating
the shape variables. The X, Y, and Z components of the draw vector in the
nodal coordinate system are entered. This method is useful when all beads
must be drawn in the same direction. Note that the draw angle may not be
maintained while using this method.
OptiStruct Optimization 80
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
User-defined
This method allows you to set up the vectors and heights for the topography
optimization. A DESVAR card is referenced in place of a PSHELL or PCOMP card. All of
the grids with DVGRID cards associated with that DESVAR card are considered part of the
design domain. The DESVAR and DVGRID entries are redefined to reflect the minimum
bead width and draw angle parameters that have been set by the user. The vectors and
magnitudes of the displacement vectors on each DVGRID card for each grid are retained,
so these entries must be left blank on the DTPG card. This allows you to create a design
domain in which each node can have its own draw vector and draw height. For more
information about it see the example Using Topography Optimization to Forge a Design
Concept Out of a Solid Block.
HyperWorks 11.0
OptiStruct Optimization 81
Proprietary Information of Altair Engineering, Inc.
to have the shape variables overlap, which will result in the grid deflection being cumulative
between multiple influencing bead cards.
OptiStruct Optimization 82
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
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 12Hz.
Objective function:
Constraints:
Design variables:
Nodes topography.
th
Problem Setup
You should copy these Files: Slider.fem;
HyperWorks 11.0
OptiStruct Optimization 83
Proprietary Information of Altair Engineering, Inc.
Step 2: Run the analyses and get the compliance for the 2nd loadstep and the
mode values on the 1st load step.
f2 = _____(Hz)
f5 = _____ (Hz)
f6 = _____(Hz)
f3 = _____(Hz)
f4 = _____(Hz)
If you are using a second monitor, take advantage of your output file and copy the
values using Ctrl C.
It is important to run an initial analysis to understand the model solution. If the responses
are far from the desired values, the model need to be modified or the optimization
problem redefined. It is very important at this point the user validate the problem and
understands if the optimization setup that is going to be performed makes sense.
Step 3: Define the topography design variable for the design region.
1. Create the DV named topo with this parameters:
a. props = 1pin.
b. minimum width = 0.4 mm
c. draw angle = 60 degree
d. draw height = 0.15 mm
e. draw direction = normal to elements.
f.
Boundary skip: load & spc * OS will not move this nodes.
OptiStruct Optimization 84
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
Step 4: Define the response to measure the 7th mode, call it freq7.
Step 5: Define the combined response comb to sum the compliance from the
static analysis and the normalized modes from the modal analysis.
1. This response type is compliance index.
2. The loadstep is the Static analysis.
3. For the model list set as on the table:
Mode Weight
4.
1.0
2.0
1.0
1.0
1.0
1.0
HyperWorks 11.0
OptiStruct Optimization 85
Proprietary Information of Altair Engineering, Inc.
2. For file:, select the Optistruct base input file (the *.fem file) from which to extract the
geometry.
3. For output:, select the IGES output format for 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 load geom 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:.
6. Check the remesh option, which utilizes the auto-meshing capability of Hypermesh
to remesh the draw portion of the interpreted design.
OptiStruct Optimization 86
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
9. Click OSSmooth.
10. Click Yes to overwrite. The new geometry will be automatically loaded into existing
Hypermesh file, turn off the display of all the elements to view the new concept
geometry.
If the student had finish the exercise and wants to try a more advanced setup, these are a
small list of things that could improve this result:
1. Add a topology optimization on the same design space.
2. Add a symmetry plane to the topography and topology DVs.
HyperWorks 11.0
OptiStruct Optimization 87
Proprietary Information of Altair Engineering, Inc.
OptiStruct Optimization 88
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
3 Free-size Optimization
The purpose of composite free-sizing optimization is to create design concepts that
utilize all the potentials of a composite structure where both structure and material can be
designed simultaneously. By varying the thickness of each ply with a particular fiber
orientation for every element, the total laminate thickness can change continuously
throughout the structure, and at the same time, the optimal composition of the composite
laminate at every point (element) is achieved simultaneously. At this stage, a super-ply
concept should be adopted, in which each available fiber orientation is assigned a super-ply
whose thickness is free-sized.
For a shell cross-section (shown below), free-size optimization allows thickness to
vary freely between T and T0 for each element; this is in contrast to topology optimization
which targets a discrete thickness of either T or T0.
In addition, in order to neutralize the effect of stacking sequence, the SMEAR option
is usually a good choice for this design phase unless the user intended to follow through
with the stacking preference of the super-ply laminate model.
To determine the optimum laminate OptiStruct uses the SMEAR technology that
captures the stacking sequence effects:
o
B = 0 (Symmetric)
HyperWorks 11.0
OptiStruct Optimization 89
Proprietary Information of Altair Engineering, Inc.
OptiStruct Optimization 90
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
Cantilever Plate
The next figure shows the final results of topology and free-size optimization as
performed on this plate, side by side. As expected, the topology result created a design with
70% cavity, while the free-size optimization arrived at a result with a zone of variable
thickness panel.
HyperWorks 11.0
OptiStruct Optimization 91
Proprietary Information of Altair Engineering, Inc.
Topology result
Free-size result
It is not surprising to see that the free-size design outperforms the topology design in
terms of compliance since continuous variation of thickness offers more design freedom.
It should be emphasized that free-size offers a concept design tool alternative to
topology optimization for structures modeled with 2-D elements. It does not replace a
detailed size optimization that would fine tune the size parameters of an FEA model of the
final product.
To illustrate the close relationship between free-size and topology formulation,
consider a 3-D model of the same cantilever plate shown previously. The thickness of the
plate is modeled in 10 layers of 3-D elements.
The topology design of the 3-D model shown above looks similar to the free-size
results shown previously. This should not be surprising because when the plate is modeled
in 3-D, a variable thickness distribution becomes possible under the topology formulation
that seeks a discrete density value of either 0 or 1 for each element. If infinitely fine 3-D
elements are used, a continuous variable thickness of the plate can be achieved via
topology optimization. The motivation for the introduction of free-size is based on the
conviction that limitations due to 2-D modeling should not become a barrier for optimization
formulation. In regards to the 3-D modeling of shell, topology optimization is equivalent to
the application of extrusion constraint(s) in the thickness direction of a 3-D modeled shell.
It is important to point out that while free-size often creates variable thickness shells
without extensive cavity, it does not prevent cavity if the optimizer demands it. For the
example already shown, we can see cavity in the free-size result in the 45 degree region,
adjacent to the support, and in the upper and lower corners of the free end.
Free-size optimization is defined through the DSIZE bulk data entry that is supported
in the HyperMesh optimization panel. Features available for free-size include: minimum
member size control, symmetry, pattern grouping and pattern repetition, and stress
constraints applied to von Mises stresses of the entire structure.
Involving both topology and free-size in the same optimization problem is not
recommended since penalization on topology components creates a bias that could lead to
sub-optimal solutions.
OptiStruct Optimization 92
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
F = 60000N
Uz =0
Corner
Problem description
Model Information
On the left hand extreme is applied a uniform force of 60000 N the other extreme is
fixed as showed on the image bellow.
Geometry:
o
(L = 457.2 mm, b = 152.4 mm, Thk = 12.7 mm/ply, diam. = 12.7 mm)
Force = 60000 N
Material:
E1 = 1.3e5MPa
E2 = E3 = 9850MPa
G23 = 3100MPa
12 = 13 = 0.3
23 = 0.36
Problem Setup
You should copy these Files: Finite_Plate_with_hole.hm;
HyperWorks 11.0
OptiStruct Optimization 93
Proprietary Information of Altair Engineering, Inc.
S ref =
F
60000
=
= 7.75 MPa
Area 4 * 12.7 * 152.4
It appear to be a simple model, and for an isotropic material this is true, but when this
plate is a composite laminate with different angles this problem became much more
complex. As we can see on the approximated diagram showed below for a single ply with
the fiber align o different angles, the max stress values as showed bellow will be very
dependent of the angle, and the concentration factor can be more than 6 times for example
to a ply with 0o:
MAX Principal Stress
8.00
|Smax|/Sref(0o)
|Smax|/Sref(90o)
|Smax|/Sref(45o)
|Smax|/Sref(-45o)
6.00
Sref
Smax/Sref
4.00
2.00
0.00
0.0
30.0
60.0
90.0
120.0
150.0
180.0
-2.00
-4.00
Theta
Stress variation around a hole for an infinite plate under constant stress.
The values on this plot may be used as reference to test if your mesh is refined
enough to capture the concentration effect, to reproduce it your laminate may be formed
with a unique ply angle. On our simple case the plies with different angles are mounted
together to form a laminate and on it the concentration factor is even higher.
OptiStruct Optimization 94
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
Sref
Step 3: Compare the stress values you have got with the values showed
below:
Try to reproduce this curve on HyperGraph using the HV contour and Query to
export the values. Your model has already sets to make it easy.
Hints:
o Export the maximum principal S1 and the minimum principal S3 from HV.
o Export the nodes coordinates from HV. (Stress_nodes)
o Determine the coordinate of a element mid node (lininterp)
[ElemX]
X = NODE_NUM[0:178:1]
Y=lininterp(NODE_NUM,X_node,x)
[ElemY]
X =
NODE_NUM[0:178:1] Y=lininterp(NODE_NUM,Y_node,x)
HyperWorks 11.0
OptiStruct Optimization 95
Proprietary Information of Altair Engineering, Inc.
o
o
Step 4: Define the FREE SIZE design variable for the design region.
It is a good procedure to save the HM database now with the optimization suffix.
With it the user can always recover the analysis model for further studies.
OptiStruct Optimization 96
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
HyperWorks 11.0
OptiStruct Optimization 97
Proprietary Information of Altair Engineering, Inc.
Step 12: ADD the FREESIZE to SIZE output finite element model.
This card will make OptiStruct on the end of the Free-size optimization export the input
file with a predefined a size optimization. This file correspond to the second phase of
composite optimization, to learn more about this the student should attend the
HyperWorks composite training.
OptiStruct Optimization 98
HyperWorks 11.0
Proprietary Information of Altair Engineering, Inc.
Ply thickness
4. On HyperMesh Import the model for size optimization and plot the plies.
0o plies shape
HyperWorks 11.0
OptiStruct Optimization 99
Proprietary Information of Altair Engineering, Inc.
Important remarks:
1. At the run directory exist a file called Finite_Plate_with_hole_optimization_sizing.#.fem
that is the model prepared to size optimization with the plies already defined using
PCOMPP-PLY-STACK approach.
2. It is important to remove the small segments or ill defined shapes to make it meaningful.
3. The best way to plot the layers is importing the size model on HyperMesh and using
the mask function isolate the specific ply.
4. On HyperWorks was developed a complete process to optimize composite structures,
and this process is described trough the exercise A.1 on the end of this manual.
HyperWorks 11.0
OSSmooth requires a parameter file (generally has the file extension .oss) to run.
This parameter file may be generated by the OSSmooth panel in HyperMesh or it may be
HyperWorks 11.0
In addition to the parameter file, OSSmooth also requires the input file
(<prefix>.fem), the shape file (<prefix>.sh), and/or the grid file (<prefix>.grid)
from an OptiStruct run. The grid file <prefix>.grid contains the grid point locations after
a topography or shape optimization and is output at the end of a topography or shape
optimization run. The shape file, <prefix>.sh, contains the element density information of
a topology optimization and is output at the end of an optimization run.
Note: OSSmooth currently does not recognize OptiStruct long-format input data. A possible
work-around for this problem is to import the long-format input file into HyperMesh
and export it using the regular OptiStruct template before running OSSmooth.
The interpreted design from OSSmooth can be exported as a finite element mesh in the bulk
data format, as IGES surfaces, as a stereolithography file, or as a Hyper3D file.
HyperWorks 11.0
example
output_file
example.nas
output_code
units
autobead
(one argument)
arg1 The file name (without extension).
(one argument)
arg1 Full name of the file output by OSSmooth.
(two arguments)
arg1 Output format for iso-surface [default=3] :
(1) Nastran (2) IGES (3) STL (4) H3D
arg2 Output control for tet-meshing [Default: no tet.]
(1) Tetra4 + Tria3 (2) Tetra10 + Tria6 (3) Tetra4
(4) Tetra10
(one argument) [default =1]
(1) inch (2) mm (4) foot
(6) m
(10) cm
(three arguments)
arg1 Operation flag:
(0 ) autobead off
( 1 ) autobead on
arg2 Threshold value for creating autobead.
Real between 0.0 and 1,0, default = 0.3.
arg3 Bead layer[integer] [default =1]
( 1 ) Create 1 layer bead ( 2 ) create 2 layers bead
isosurface
0.3
(three arguments)
opti_smoothing
(two arguments)
HyperWorks 11.0
laplacian_smoothing 10 20.0 0
(three arguments)
remesh
(one argument)
surface_reduction
(two arguments)
1 5.0
pure_surf_smoothing 1 5 20.0
# Surface smoothing only.
(three arguments)
arg1 Pure surface smoothing flag [integer]:
( 0 ) no surface smoothing [default]
( 1 ) Optimization-based smoothing
( 2 ) Laplacian smoothing
arg2 Number of iteration [Only used if G1=2]
[integer >= 0, default = 10]
arg3 Feature angle threshold in degrees [Only used if
G1=2]
[real, default = 30.0]
pure_surf_reduction
(two arguments)
HyperWorks 11.0
Description
input_file example
output_file example.stl
output_code 3
autobead 1 0.3 1
isosurface 1 3 0.3
Topology results will be interpreted by creating an isodensity boundary surface with at a density value of
30% and smooth using laplacian smoothing.
laplacian_smoothing 10 30 1
remesh 1
HyperWorks 11.0
This will write a new <prefix.oss> file with the screen settings, run OSSmooth, and load
the geometry recovered by OSSmooth if the data format is IGES, STL, or Nastran.
#general parameters
input_file
output_file
output_code
decklid
decklid.fem
1
#specific parameters
autobead
remesh
1
1
0.300
HyperWorks 11.0
Some topography performances are relying on the half translation part. OSSmooth can
interpolate topography optimization results to 2-layer autobead (autobead third argument 2).
Here is one example of creating 2-layer autobead with the following parameter setting in the
OSSmooth parameter file:
#general parameters
input_file
output_file
output_code
decklid
decklid.nas
1
#specific parameters
autobead
0.300
surf
surf.stl
3
#specific parameters
pure_surf_smoothing
pure_surf_reduction
2
1
HyperWorks 11.0
10 30.000
10.000
HyperWorks 11.0
Problem Setup
You should copy these Files: CONTROL_ARM_opt.fem, CONTROL_ARM_opt.oss,
CONTROL_ARM_opt.sh;
HyperWorks 11.0
#IGES
#ISO value
#Reduction ON
#mm
HyperWorks 11.0
Chapter 5
Volume
Center of Gravity
Moment of Inertia
Static Compliance
Static Displacement
Natural Frequency
Buckling Factor
Weighted Compliance
Weighted Frequency
Function
HyperWorks 11.0
p = C0 + DVi Ci
where p is the property to be optimized, and Ci are linear factors associated to the design
variable DVi.
Using the equation utility DEQATN, more complicated functional dependencies using even
trigonometric functions can be established. Such design-variable-to-property relations are
then defined using the DVPREL2 statement.
For a simple gage optimization of a shell structure, the design-variable-to-property
relationship turns into
t = DVi
where the gage thickness t is identical to the design variable.
If a discrete design variable is desired, a DDVAL bulk data entry needs to be referenced on
the DESVAR bulk data entry for the design variable values.
HyperWorks 11.0
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.
The optimization problem for this tutorial is stated as:
Objective:
Minimize volume.
Constraints: A given maximum nodal displacement at the loading grid point for two loading
conditions.
Design variables:
Problem Setup
You should copy this file: joint_size.hm.
Step 1: Launch HyperMesh, set the User Profile and Retrieve the File
1. Launch HyperMesh.
2. Choose the OptiStruct user profile dialog and click OK.
This loads the user profile. It includes the appropriate template, macro menu, and
import reader, paring down the functionality of HyperMesh to what is relevant for
generating models in Bulk Data Format for RADIOSS and OptiStruct. The User
HyperWorks 11.0
Profiles GUI can also be accessed from the Preferences pull-down menu on the
toolbar. Select the optimization panel on the Analysis page.
3. From the toolbar, select Open Model
HyperWorks 11.0
Note the linear factor (value is box beside tube) automatically gets set to 1.000.
18. Click return.
19. Click create.
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.
21. Click return to go to the optimization panel.
HyperWorks 11.0
HyperWorks 11.0
4. Click create.
The objective function is now defined.
5. Click return to go to the optimization panel.
HyperWorks 11.0
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. Files
joint_sizeOPT_des.h3d, joint_sizeOPT_s1.h3d, and
joint_sizeOPT_s2.h3d get loaded in page 1, page 2, and page 3 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.
2. Click Close to close the message window.
3. Click the Contour
toolbar button.
4. Make sure the first pull-down list below Result type: is Element Thicknesses (s).
5. Make sure the second pull-down list is on Thickness.
6. Make sure the field below Averaging method is None.
7. The left side of the HyperView GUI is the results browser, and at the top of the browser
are the Load Case and Simulation selection drop-down boxes.
8. In the iteration list, scroll down to the last iteration and choose the last for e.g.: Iteration
[3] and click OK.
9. Click Apply.
A contoured image representing shell thickness should be visible. Each element in the
model is assigned a legend color, indicating the thickness value for that element for the
current iteration.
HyperWorks 11.0
The second 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.
2. Set the animation mode to Linear Static.
3. Click the Contour
toolbar button.
4. Select the first pull-down menu below Result type: and select Displacement [v].
5. Select the second pull-down menu and select X.
6. Click on Apply.
The resulting contours represent the x component displacement field resulting from the
applied loads and boundary conditions.
7. Click the Measure
toolbar button.
HyperWorks 11.0
Displacement on X-direction for the X-Force load case at the last iteration
The third 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.
15. Click the Contour
toolbar button.
16. Select the first pull-down menu below Result type: and select Displacement [v].
17. Select the second pull-down menu and select Z.
18. Click on Apply.
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.
HyperWorks 11.0
HyperWorks 11.0
HyperWorks 11.0
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.
The optimization problem is stated as:
Objective:
Minimize volume.
Constraints: Maximum von Mises stress of the brackets < 120 MPa.
Design variables:
Problem Setup
You should copy this file: bracket_size.hm.
HyperWorks 11.0
Step 1: Launch HyperMesh, set the User Profile, and Retrieve the Database
File
1. Launch HyperMesh.
2. Choose OptiStruct in the User Profile dialog and click OK.
User Profiles can also be accessed from the Preferences pull-down menu on the
toolbar.
3. From the toolbar, select Open Model.
4. Browse for and select bracket_size.hm file.
5. Click Open.
The bracket_size.hm database is loaded into the current HyperMesh session,
replacing any existing data.
HyperWorks 11.0
HyperWorks 11.0
3. Click the response type: switch and select volume from the pop-up menu.
4. Click create.
A response, volume, is defined for the total volume of the model.
5. Click response = and enter stress1.
6. Click the response type: switch and select static stress from the pop-up menu.
7. Click props.
8. Click one of the green shell elements in the graphics window to select the component
part1.
9. Click select.
A stress type selector switch appears.
10. Click the stress type selector switch and select von mises from the pop-up menu.
11. Click the selector switch below the stress selector and choose the both surfaces option.
12. Click create.
A response, stress1, is defined for the von Mises stress of the elements in the
component part1.
13. Click response = and enter stress2.
14. Click props.
15. Click one of the pink shell elements in the graphics window to select the component
part2.
16. Click select.
17. Click create.
A response, stress2, is defined for the von Mises stress of the elements in the
component part2.
18. Click return to go to the Optimization Setup panel.
HyperWorks 11.0
HyperWorks 11.0
The second 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.
4. Click the Contour toolbar button
5. Select the first pull-down menu below Result type: and select Element Stresses [2D &
3D] (t).
HyperWorks 11.0
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 Status Bar.
The Load Case and Simulation Selection area is located to the top of the results browser
on the left hand side of the GUI.
9. Click the last Iteration # 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.
10. Click OK.
This will now contour your final iteration of that loadcase. Review the stress to see that it
is under the proper constraints.
HyperWorks 11.0
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.
Has the volume been minimized for the given constraints?
Have the stress constraints been met?
What are the resulting gauges for the two parts?
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.
Append discrete_bracket_size.mvw to review objective, constraints, and other
information.
HyperWorks 11.0
2 Shape Optimization
OptiStruct has the capability of performing shape optimization. In shape optimization, the
outer boundary of the structure is modified to solve the optimization problem. Using finite
element models, the shape is defined by the grid point locations. Hence, shape
modifications change those locations.
Shape variables are defined in OptiStruct in a way very similar to that of other shape
optimization codes. Each shape variable is defined by using a DESVAR bulk data entry. If
a discrete design variable is desired, a DDVAL bulk data entry needs to be referenced for
the design variable values. DVGRID bulk data entries define how much a particular grid
point location is changed by the design variable. Any number of DVGRID bulk data entries
can be added to the model. Each DVGRID bulk data entry must reference an existing
DESVAR bulk data entry if it is to be a part of the optimization. The DVGRID data in
OptiStruct contains grid location perturbations, not basis shapes.
DESVAR Card Image
DESVAR
ID
LABEL
XINIT
XLB
XUB
DELXV
DV001
0.0
-1.0
1.0
DVID GID
CID
COEFF
1.0
1.0
0.0
0.0
DVGRID
1032
The generation of the design variables and of the DVGRID bulk data entries is facilitated by
the HyperMorph utility, which is part of the Altair HyperMesh software.
The following responses are currently available as the objective or as constraint functions:
Mass
Volume
Center of Gravity
Moment of Inertia
Static Compliance
Static Displacement
Natural Frequency
Buckling Factor
Frequency Response
Stress, Strain, Forces
Weighted Compliance
Weighted Frequency
Combined Compliance
Index
Function
HyperWorks 11.0
x = DVi BVi
where x is the vector of nodal coordinates, BVi is the basis vector associated to the design
variable DVi.
Using the perturbation vector approach, the structural shape change is defined as a linear
combination of perturbation vectors. The perturbation vectors define changes of nodal
locations with respect to the original finite element mesh.
where X is the vector of nodal coordinates, X(0) is the vector of nodal coordinates of the
initial design, Xj is the perturbation vector associated to the design variable .
The initial nodal coordinates are those defined with the GRID entity. The perturbation
vectors are defined on the DVGRID statement, which is referenced by the design variable
entity DESVAR.
If a discrete design variable is desired, a DDVAL bulk data entry needs to be referenced on
the DESVAR bulk data entry for the design variable values.
HyperWorks 11.0
Note:
In OptiStruct, only the perturbation vector approach is available. The DVGRID cards must
contain perturbation vectors.
2.2 HyperMorph
HyperMorph is a tool in HyperMesh to morph the shape of a finite element model in ways
that are useful, logical and intuitive. It enables rapid shape changes on the FE mesh without
severely sacrificing the mesh quality. This is a very powerful tool to automatic generate the
shape design variable described above.
HyperWorks 11.0
create the morph volumes, including single and matrix creation as well as the interactive onscreen method. Morph volumes support tangency between adjoining edges and allow for
multiple control points along their edges. Handles placed at the corners and along the
edges of the morph volumes allow for the morphing of the morph volumes which in turn
morphs the mesh inside the morph volumes. The morph volume approach is quick and
intuitive and is most useful for making large scale changes to complex meshes.
HyperWorks 11.0
Minimize mass.
Problem Setup
You should copy this file: Lbeamshape.hm.
HyperWorks 11.0
HyperWorks 11.0
20. Say Yes to the message regarding the perturbations as shown above.
We have now saved this shape as shape1, later we can associate it to a design variable.
21. Click undo all.
The model returns to its original shape.
22. Repeat steps 9 through 21 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.
23. Click return twice to go to the optimization panel.
HyperWorks 11.0
5. Check the boxes next to shape1, shape2, shape3, and shape4 and click select.
6. Click create.
Four shape design variables are created using the shapes that were saved earlier.
7. Click return to go to the optimization panel.
A potential variation in shape of the vertical flange of the L-beam that could be achieved using the
set up described.
HyperWorks 11.0
7. Select the response node by clicking on the node shown in the above figure.
8. Select dof 2.
Dofs 1, 2, and 3 refer to translation in the X, Y, and Z directions.
Dofs 4, 5, and 6 refer to rotation about the X, Y, and Z axes.
9. Click create.
A response, disp, is defined for the y-displacement of the node selected.
10. Click return to go to the optimization panel.
HyperWorks 11.0
HyperWorks 11.0
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.
The .fem extension is suggested for OptiStruct input decks.
4. Click Save.
Note the name and location of the lbeamshape_opt.fem file displays in the input file:
field.
5. Set the memory options: toggle, located in the center of the panel, to memory default.
6. Click the run options: switch, located at the left of the panel, and select optimization.
7. Set the export options: toggle to all.
8. Click OptiStruct.
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.
HyperWorks 11.0
3. The Speed frame rate slider is used to adjust the animation speed. Drag the slider to
the left to slow the animation.
4. After reviewing the animation, click the stop button to stop the animation and move
Current time: back to 0.
HyperWorks 11.0
Rail joint
Problem Setup
You should copy this File: rail_joint_original.hm.
HyperWorks 11.0
Step 1: Launch HyperMesh, Set the User Profile and Retrieve the File
1. Launch HyperMesh.
2. Choose OptiStruct in the User Profile dialog and click OK.
This loads the user profile. It includes the appropriate template, macro menu, and
import reader, paring down the functionality of HyperMesh to what is relevant for
generating models in Bulk Data Format for RADIOSS and OptiStruct.
The User Profiles GUI can also be accessed from the Preferences pull-down menu
on the toolbar.
3. From the toolbar, select Open Model.
4. Select the rail_joint_original.hm file.
HyperWorks 11.0
4. Select the first pull-down menu below Result type: and select Element Stresses [2D &
3D] (t).
5. Select the second pull-down and select von Mises.
6. Click Apply.
7. Take note of the Maximum von Mises Stress of the joint and close the HyperView panel
by clicking the Previous Page button
HyperWorks 11.0
Rail domains
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.
HyperWorks 11.0
HyperWorks 11.0
HyperWorks 11.0
HyperWorks 11.0
7. Under edges only, click domains 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.
HyperWorks 11.0
HyperWorks 11.0
HyperWorks 11.0
The new shape sh3 includes influences from both sh1 and sh2 shapes as shown in the
next figure.
36. Click save.
37. Click the Model browse tab, right click on Shape and select Hide..
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.
38. In the Model Browser window, right click on the component PSHELL and click on Hide.
These components are turned off for ease of visualization.
39. Toggle the radio button to alter dimensions.
40. Under edges only, click reset
HyperWorks 11.0
Once nodes a and b are selected, the distance between node a and node b is measured
automatically and appears in distance = field.
The distance between node a and node b is about 43.
45. Click handles 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.
46. Click handles under node b and similarly as in the previous step, select the 8 handles
near the opposite face of the tube.
47. Toggle the bottom selector and select hold middle.
48. In the Model Browser window, right click on the component PSHELL and click on Show.
These components are turned on for ease of visualization.
49. Click distance = and enter 20.
50. Click morph.
A rectangular shape appears to the joint as shown in the next figure.
51. Toggle the button to save shape.
52. Click shape = and enter sh4.
53. Make sure that the toggle is set to node perturbations.
HyperWorks 11.0
Step 10: Define the Shape Design Variables and Review by Animation
1. From the Analysis page, select the optimization panel.
2. Click on the shape panel.
3. Make sure the radio button is set to desvar and create.
4. Toggle the switch to select multiple desvars.
5. Click shape = and select sh1, sh2, sh3 and sh4.
6. Click select.
7. Click initial value = and enter 0.0.
8. Click lower bound = and enter -1.0.
9. Click upper bound = and enter 1.0.
10. Click create.
HyperWorks 11.0
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.
11. Click animate.
12. Click on simulation = SHAPE sh1 (1).
13. Make sure that data type = is set to Perturbation vector.
14. Click modal to animate the first shape variable.
15. Click next and then animate to see the next shape variable, and so forth.
16. Click return three times to go back to the optimization panel.
HyperWorks 11.0
4. Click create.
5. Click return to exit the optimization panel.
HyperWorks 11.0
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.
7. Close the DOS window or shell.
HyperWorks 11.0
Step 17: View a Contour Plot of the Stress on Top of the Shape Optimized
Model
1. Click the Next Page arrow in the toolbar to move to the next page.
2. Click the Contour toolbar button.
Note the Result type: is Element Stresses [2D & 3D] [t].
The second pull-down menu shows von Mises.
3. At the bottom of the GUI, click on the name Subcase 1 (STEP) <> Model Step to
activate the Load Case and Simulation Selection dialog.
4. Select the last iteration by double clicking on the last Iteration listed.
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)
HyperWorks 11.0
HyperWorks 11.0
3 Free-shape Optimization
Free-shape optimization uses a proprietary optimization technique developed by Altair
Engineering Inc., wherein the outer boundary of a structure is altered to meet with predefined objectives and constraints. 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.
Free-shape design regions are defined through the DSHAPE bulk data entry. Design
regions are identified by the grids on the outer boundary of the structure (the edge of a shell
structure or the surface of a solid structure). These grids are listed on the DSHAPE entry.
Free-shape optimization allows these design grids to move in one of two ways:
1. For shell structures; grids move normal to the surface edge in the tangential plane.
2. For solid structures; grids move normal to the surface.
During free-shape optimization, the normal directions change with the change in shape of
the structure, thus, for each iteration, the design grids move along the updated normals.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
GRID
GID1
GID2
GID3
GID4
GID5
GID6
GID7
GID8
GID9
HyperWorks 11.0
(10)
2D - A free-shape design region is defined on the curved edge of the plate by selecting the edge
grids; the grids are free to move in the normal direction on the tangential plane.
3D - A free-shape design region is defined on a surface of the solid structure by selecting the face
surface grids; the grids are free to move normal to the surface.
HyperWorks 11.0
(2)
(3)
PERT
DTYPE
(4)
(5)
MVFACTOR NSMOOTH
(6)
(7)
(8)
MXSHRK
MXGROWTH
(9)
(10)
2.
3.
GROW
SHRINK
BOTH
Undeformed
Deformed
HyperWorks 11.0
(2)
(3)
PERT
DTYPE
(4)
(5)
(6)
(7)
(8)
(9)
(10)
MXGROWTH
The default value of MVFACTOR is 0.5. A smaller MVFACTOR will make free-shape
optimization run slower but with more stability. Conversely, a larger MVFACTOR will make
free-shape optimization run faster but with less stability.
HyperWorks 11.0
(2)
(3)
PERT
DTYPE
(4)
(5)
(6)
(7)
(8)
(9)
(10)
MXGROWTH
The default value of NSMOOTH is 10. A larger NSMOOTH will give a larger smoothing
buffer, and consequently will work better in avoiding mesh distortion; however, it will result in
a slower optimization.
NSMOOTH=1, only 1 layer of grids move along with the design boundary.
(2)
(3)
(4)
(5)
(6)
(7)
PERT
DTYPE
MVFACTOR
NSMOOTH
MXSHRK
MXGROWTH
HyperWorks 11.0
(8)
(9)
(10)
The design region is offset to form two barriers; MXSHRK is the offset in the
shrinkage direction and MXGROWTH is the offset in the growth direction. The
design region is then constrained to deform between these two barriers.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
GRIDCON
GCMETH
GCSETID1 /
GDID1
CTYPE1
CID1
X1
Y1
Z1
GCMETH
GCSETID2 /
GDID2
CTYPE2
CID2
X2
Y2
Z2
(10)
HyperWorks 11.0
The curved edge is the free-shape design region. Without any constraints on the free-shape
design region, the grids at the ends of the curved edge do not move exactly along the line of
the straight edge, but move slightly outward, as shown here:
In order to prevent this phenomenon, the grids at the ends of the curved edge (shown in
yellow below) are both constrained to move along the vector indicated by the red arrows.
HyperWorks 11.0
Using these constraints - corner grids moving along the constrained direction - the grids at
the ends of the curved edge now move as desired, along the line of the straight edge, as
shown here:
HyperWorks 11.0
Problem Statement
Objective:
Minimize mass
Constraint:
Design variables:
HyperWorks 11.0
Step 1: Launch HyperMesh, Set the User Profile, and Retrieve the Model
1. Launch HyperMesh.
2. Choose OptiStruct in the User Profile dialog and click OK.
This loads the user profile. It includes the appropriate template, macro menu, and
import reader, paring down the functionality of HyperMesh to what is relevant for
generating models in Bulk Data Format for RADIOSS and OptiStruct.
User Profiles can also be accessed from the Preferences pull-down menu on the
toolbar.
3. Select the Open Model panel toolbar button.
4. Select the freeshape3d_mfg.hm file.
5. Click Open.
The freeshape3D_mfg.hm database is loaded into the current HyperMesh session,
replacing any existing data. Note the location of freeshape3D_mfg.hm now displays
in the file: field.
5. Click create.
HyperWorks 11.0
6. Click on the parameters subpanel and select the direction as grow, mvfactor at 0.5 and
nsmooth as 10 and click update
Step 3: Convert the existing shell elements to create the Barrier Mesh Face
(BMFACE)
1. Go to the 2D page
2. Enter the elem types panel
3. Click on elems to get the extended entity list
4. Select by collector
5. Check the box next to barrier
6. On 2D& 3D subpanel click on CTRIA3 in the field next to tria3
7. Select BMFACE from the list of options
8. Click on CQUAD4 in the field next to quad4
9. Select BMFACE from the list of options
10. Click update
HyperWorks 11.0
perpendicular to the vector from the anchor node to the first node and pass through the
anchor node.
5. Click anchor node and input the node id= 2 and press ENTER.
This selects the node with the ID of 2.
6. Click first node and input the node id= 1.
This selects the node with the ID of 1.
7. Click the update button to update the design variables.
This completes the definition of the symmetry constraint.
HyperWorks 11.0
The barrier should be constructed by shell elements with the smallest number of elements
possible.
For this exercise, the mesh barrier was already created and the component name is barrier.
1. Click on sidecon in the free shape panel.
2. Click on desvar = and select shape.
3. Click on Barrier mesh: component= and select barrier from the list.
4. Click update.
5. Click return to go back to the main menu.
HyperWorks 11.0
HyperWorks 11.0
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 Save.
Note that the name and location of the freeshape3d_mfgopt.fem file is displayed in
the input file: field.
5. Set the export options toggle to all.
6. Click the run options switch and select optimization.
7. Set the memory options toggle to memory default.
8. Click OptiStruct.
This launches an OptiStruct run in a separate (DOS or UNIX) shell.
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.
to move to page 2.
HyperWorks 11.0
Step 12: View a Contour Plot of the Stress on Top of the Shape Optimized
Model
1. Go to the Contour panel
type:.
and select Element Stresses (2D & 3D) (t) as the Result
1. Is your design objective of minimizing the mass obtained? If not, can you explain
why?
2. Are your design constraints satisfied?
HyperWorks 11.0
Exercise 5.6 - Shape Optimization of a 3-D Bracket using the Freeshape Method
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
Design variables:
Problem Setup
You should copy this file: free_shape3D.hm.
HyperWorks 11.0
HyperWorks 11.0
5. Click create.
6. Click return to go to the main menu.
HyperWorks 11.0
HyperWorks 11.0
to move to page 2.
Step 9: View a Contour Plot of the Stress on Top of the Shape Optimized
Model
1. Go to the Contour panel
type:.
HyperWorks 11.0
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.
HyperWorks 11.0
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. Back on HyperMesh click return and go to 1D page.
2. Click systems.
3. Choose the create by axis direction subpanel.
4. Click nodes and select node ID 20999 (See the following figure).
5. Click origin and select the same node (ID 20999) as nodes.
6. Click x-axis and select node ID 15989.
7. Click xy-plane and select node ID 19462.
HyperWorks 11.0
8. Click create.
9. Click return.
10. From the Analysis page click on optimization.
11. Select the free shape panel.
12. Select the gridcon subpanel.
The constraints on the flat part will be created first without any coordinate system.
13. Click desvar= and select shape.
14. Select constraint type as planar.
15. Select nodes shown in the following figure.
HyperWorks 11.0
HyperWorks 11.0
23. Select the local coordinate system created in the previous step.
24. Click the vector definition switch and select vector.
25. Click the direction definition switch below vector, and select z-axis from the pop-up
menu.
26. Click add.
27. Click return twice to get back to the main menu.
HyperWorks 11.0
APPENDIX A
Composite Exercise
Exercise A-1: Optimization Driven Design of a Composite plate
For this example we need to design a cantilever beam made with composites plies that
can have angles 0, 45, -45 & 90 degrees. It needs to support an in-plane force at middle of
the unconstrained end (see figure below).
The objective is to determine the minimum mass with Max Disp. < 3.00e-04.
To achieve this optimum design we will introduce you the process called Optimization
Driven Design for Composite. It is divided in 3 phases:
Model Information:
HyperWorks 11.0
HyperWorks 11.0
Note that there are only 4 plies that are 1 inch thick each for a total thickness of 4
inches.
For this model the plies are all the same thickness and composite material.
HyperWorks 11.0
HyperWorks 11.0
Recall that the initial design has four 1.0 thick plies with a total thickness of 4, it will
force the laminate thickness to be lower then 3.2.
3. Leave the laminate minimum thickness off.
4. Select the green edit button to edit the design variable DSIZE.
5. Check the PLYPCT and BALANCE boxes.
6. Enter a PPMIN (minimum ply percentage) value of 0.1 (10%).
This make the existence of each family as minimum as 10%.
7. Leave PPMAX (maximum ply percentage) off
8. Enter a PTMAN (manufacturable ply thickness) value of 0.05.
This define that all plies will be a multiple of this value.
9. Enter 45.0 in the BANGLE1 filed and hit the tab key to jump to the BANGLE2 field and
enter -45.0.
It makes that each plies of 45 or -45 will be in a pair with one off the other one.
10. This constraint requires that the 45.0 degree plies be in balance with the -45.0 degree
plies.
11. Return to the free size composite page.
12. Click update to apply changes.
13. Click return to exit the panel.
Step 3: Create the 2 responses (mass and disp1211) for the optimization.
1. Enter the response panel.
2. Enter disp1211 in the response= field.
3. Select static displacement for the response type.
4. Select the node where the load is applied or by ID node # 1211.
5. Select total disp
6. Click create
7. Create a second response called volume.
8. Select volume for the response type.
9. Click create
10. Return to the optimization page.
HyperWorks 11.0
HyperWorks 11.0
Note that second request will create a FILENAME_sizing.fem file that will have
incorporated ply and element set information that includes ply patch configurations for
each ply type.
The default is to repeat the super ply 4 times for each ply defined on the
PCOMP(G) property that will give a total of 16 plies.
This is the default value and can be changed to adding the number of desired ply
sequence repetitions at the end of the line in *.fem file. For example:
OUTPUT,FSTOSZ,YES,5 This request would result in the PCOMP ply sequence
being repeated 5 times for a total of 20 plies.
Optimization History
It shows that the model had converged for a feasible solution with an optimum
volume.
Now we need to verify the plies shapes to understand if this can be manufactured.
HyperWorks 11.0
3. One important result is the total element thickness using HyperView select the last
iteration on the file, it should be understood as the topography of the laminate.
4. Now it is important to see the individual angle plies thickness, it will be used per
OptiStruct to define the shape of the individual ply, this plot can be saw again as a
topographic plot of the stack for each angle ply:
HyperWorks 11.0
ELEM SET cards will list what elements will be used for each ply,
Element sets for 45 degree angle plies (9, 10, 11 and 12)
Element sets for 90 degree angle plies (13, 14, 15 and 16)
Note that the PLY cards have the individual ply description
HyperWorks 11.0
DESVAR cards will provide the initial, minimum and maximum thickness for each
ply.
HyperWorks 11.0
The second request in output will make OptiStruct export the input file
PCOMP_PLATE_shuffling.fem prepared to perform the PHASE 3 Shuffle.
4. Click return.
5. Click next until you see STACK and click it.
6. Change SMEAR to blank
HyperWorks 11.0
ID
NAME
X0
Xmin
Xmax
DESVAR
1010100
autoply
0.12
0.00
0.30
DESVAR
1010200
autoply.1
0.34
0.00
0.80
DESVAR
1010300
autoply.2
0.48
0.00
1.00
DESVAR
1010400
autoply.3
0.06
0.00
0.20
DESVAR
1020100
autoply.4
0.17
0.00
0.40
DESVAR
1020200
autoply.5
0.12
0.00
0.30
DESVAR
1020300
autoply.6
0.13
0.00
0.30
DESVAR
1020400
autoply.7
0.58
0.00
0.80
DESVAR
1030100
autoply.8
0.17
0.00
0.40
DESVAR
1030200
autoply.9
0.12
0.00
0.30
DESVAR
1030300
autoply.10
0.13
0.00
0.30
DESVAR
1030400
autoply.11
0.58
0.00
0.80
DESVAR
1040100
autoply.12
0.08
0.00
0.20
DESVAR
1040200
autoply.13
0.05
0.00
0.20
DESVAR
1040300
autoply.14
0.07
0.00
0.20
DESVAR
1040400
autoply.15
0.80
0.00
1.00
ANGLE(o)
-45
45
90
13. Include the stress constrain and edit the DCONADD as on the image bellow:
HyperWorks 11.0
16. First it is interesting to look at the optimization history to understand the design
evolution, it can be done opening the file .hgdata to plot the displacement:
Optimization History
It shows that the model had converged for a feasible solution with an optimum
volume.
The Composite stress response is not available on the history on 9.0, but can be
reviewed for example on the .out file:
ID
NAME
X0
Xmin
Xmax
OPTIM
DESVAR
1010100
autoply
0.12
0.00
0.30
0.10
DESVAR
1010200
autoply.1
0.34
0.00
0.80
0.40
DESVAR
1010300
autoply.2
0.48
0.00
1.00
1.00
DESVAR
1010400
autoply.3
0.06
0.00
0.20
0.05
HyperWorks 11.0
ANGLE(o)
DESVAR
1020100
autoply.4
0.17
0.00
0.40
0.15
DESVAR
1020200
autoply.5
0.12
0.00
0.30
0.10
DESVAR
1020300
autoply.6
0.13
0.00
0.30
0.10
DESVAR
1020400
autoply.7
0.58
0.00
0.80
0.15
DESVAR
1030100
autoply.8
0.17
0.00
0.40
0.15
DESVAR
1030200
autoply.9
0.12
0.00
0.30
0.10
DESVAR
1030300
autoply.10
0.13
0.00
0.30
0.10
DESVAR
1030400
autoply.11
0.58
0.00
0.80
0.15
DESVAR
1040100
autoply.12
0.08
0.00
0.20
0.20
DESVAR
1040200
autoply.13
0.05
0.00
0.20
0.20
DESVAR
1040300
autoply.14
0.07
0.00
0.20
0.05
DESVAR
1040400
autoply.15
0.80
0.00
1.00
0.05
-45
45
90
This will generate a file in a HTML format with a table with the shuffle iterations:
Wing_example_suffle_shuf.hist.html
DEBUG,SHUFTEXT,1
This will generate a text file with the stack sequences during the shuffle iterations:
Wing_example_suffle.shuf
HyperWorks 11.0
MAXSUCC: limits the number of plies of the same type (orientation) that are
adjacent to each other.
The second shuffling constraint, PAIR, constrains each 45.0 degree ply to be
adjacent to a -45.0 degree ply.
0o Plies
-45o Plies
1010101
1010102
1020101
1020102
1020103
1030101
1030102
1030103
1040101
1040102
1040103
1040104
1010201
1010202
1010203
1010204
1010205
1010206
1010207
1010208
1020201
1020202
1030201
1030202
1040201
1040202
1040203
1040204
1010301
1010302
1010303
1010304
1010305
1010306
1010307
1010308
1010309
1010310
1010311
1010312
1010313
1010314
1010315
1010316
1010317
1010318
1010319
1010320
1020301
1020302
1030301
1030302
1040301
1010401
1020401
1020402
1020403
1030401
HyperWorks 11.0
1030101
1020101
1010101
1010102
1010201
1040101
1010202
1030102
1020102
1010203
1010204
1040102
1010205
1030103
1020103
1010206
1010207
1040103
1010208
1030201
1020201
1010301
1010302
1040104
1010303
1030202
1020202
1010304
1010305
1040201
1010306
1030301
1020301
1010307
1010308
1040202
1010309
1030302
1020302
1010310
1010311
1040203
1010312
1030401
1020401
1010313
1010314
1040204
1010315
1030402
1020402
1010316
1010317
1040301
1010318
1030403
1020403
1010319
1040401
1040201
1040102
1040101
1030201
1020201
1010101
1010102
1010201
1010202
1030102
1020102
1010306
1010203
1010204
1010205
1030103
1020103
1010307
1010206
1010207
1010208
1030302
1020302
1040203
1040103
1030403
1020403
1010308
1010301
1010302
1010303
1040104
1030401
1020401
1010310
1010309
1010304
1010305
1030101
1020101
1030202
1020202
1010311
1010312
1010313
1010314
1040204
1010401
1010315
1010316
1010317
1040202
1040301
1030301
1020301
1010318
1010319
45o Plies
1040401
1040201
1040102
1040101
1030201
1020201
1010101
1010102
1010201
1010202
1030102
1020102
1010306
1010203
1010204
1010205
1030103
1020103
1010307
1010206
1010207
1010208
1030302
1020302
1040203
1040103
1030403
1020403
1010308
1010301
1010302
1010303
1040104
1030202
1020202
1030401
1020401
1010310
1010309
1010304
1010305
1030101
1020101
1010311
1010312
1010313
1010314
1040204
1030402
1020402
1010401
1010315
1010316
1010317
1040202
1040301
1030301
1020301
1040401
1040201
1040102
1040101
1030201
1020201
1010101
1010102
1010201
1010202
1030102
1020102
1010306
1010203
1010204
1010205
1030103
1020103
1010307
1010206
1010207
1010208
1030302
1020302
1040203
1040103
1030403
1020403
1010308
1010301
1010302
1010303
1030401
1020401
1040104
1030202
1020202
1010310
1010309
1010304
1010305
1030101
1020101
1010311
1010312
1010313
1010314
1040204
1030402
1020402
1010401
1010315
1010316
1010317
1040202
1040301
1030301
1020301
90o Plie
1040401
1040201
1040102
1040101
1030201
1020201
1010101
1010102
1010201
1010202
1030102
1020102
1010306
1010203
1010204
1010205
1030103
1020103
1010307
1010206
1010207
1010208
1030302
1020302
1040203
1040103
1030403
1020403
1010308
1010301
1010302
1010303
1030401
1020401
1040104
1030202
1020202
1010310
1010309
1010304
1010305
1030101
1020101
1010311
1010312
1010313
1010314
1040204
1030402
1020402
1010401
1010315
1010316
1010317
1040202
1040301
1030301
1020301
1030402
1030403
1040401
1010320
1040401
1010401
1010320
1030402
1020402
1010318
1010319
1010320
1010318
1010319
1010320
1010318
1010319
1010320
The table shows the shuffling iterations from beginning to the last.
DSHUFFLE constrains to limit the number of like adjacent plies to a maximum of
four;
It guarantee that on the last iteration we have for every 45.0 degree (103xxxx,
green highlight) ply a -45.0 degree ply (102xxxx, yellow highlight).
SUMMARY
Composite optimization is a three phase task:
13. Begins with Free Size optimization that determines composite patch size, shape, and
location. On this phase OS output the input deck that is then used in the second phase,
14. Size optimization (ply bundle optimization), to determine optimum ply bundle thickness
and required number of plies per patch.
Shuffling optimization is the last phase used to optimize stacking sequence and meet
ply book rules, improve performance, and improve manufacturability.
HyperWorks 11.0