Hyper Study Introduction
Hyper Study Introduction
Hyper Study Introduction
HyperStudy Introduction
DOE, Approximation, Optimization and Stochastic
HyperWorks is a division of
Altair Engineering Contact Information
Web site www.altair.com
©2009 Altair Engineering, Inc. All rights reserved. No part of this publication may be reproduced, transmitted,
transcribed, stored in a retrieval system, or translated to another language without the written permission of Altair
Engineering, Inc. To obtain this permission, write to the attention Altair Engineering legal department at: 1820 E.
Big Beaver, Troy, Michigan, USA, or call +1-248-614-2400.
Table of Contents.................................................................................................................... II
2 – Introduction to HyperStudy.......................................................................................... 6
4 – Approximations ........................................................................................................... 9
HyperWorks 10.0 II
Proprietary Information of Altair Engineering, Inc.
9.2 – Parametrization using Create Template GUI ......................................................... 23
Exercise 1.2: Create Design Variables using the Create Template GUI......................... 26
HyperWorks 10.0 IV
Proprietary Information of Altair Engineering, Inc.
Exercise 4.1: Shape and Size Optimization of a Rail Joint ........................................... 122
V HyperWorks 10.0
Proprietary Information of Altair Engineering, Inc.
5.1 - Robustness Definition ........................................................................................... 175
HyperWorks 10.0 VI
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
o Analysis
o Optimization
o Visualization
o Reporting
o Performance data management.
Based on a revolutionary “pay-for-use” token-based business model, HyperWorks
delivers increased value and flexibility over other software licensing models.
Altair vision
Below we list the applications that are part of HyperWorks, for extra information about
them go to www.altairhyperworks.com web page or go to HyperWorks online documentation.
Solvers
RADIOSS Finite element solver for linear and non-linear problems
MotionSolve Multi-body dynamics solver
OptiStruct Design and optimization software using finite elements and
multi-body dynamics
Manufacturing Environments
Manufacturing Solutions A unified environment for manufacturing process
simulation, analysis, and design optimization
HyperForm A unique finite element based sheet metal forming
simulation software solution
HyperXtrude An hp-adaptive finite element program that enables
engineers to analyze material flow and heat transfer
problems in extrusion and rolling applications
Molding Provides a highly efficient and customized environment for
setting up models for injection molding simulation with
Moldflow
Forging Provides a highly efficient and customized environment for
setting up models for complex three-dimensional forging
simulation with DEFOM3D
Friction Stir Welding Provides an efficient interface for setting up models and
analyzing friction stir welding with the HyperXtrude Solver
HyperWorks Results Mapper Process Manager-based tool that provides a framework to
initialize a structural model with results from a forming
simulation
HyperStudy Overview
The pre-processing for HyperStudy is made using HyperMesh or a templex editor and
the post-processing using HyperView and HyperGraph. HyperStudy is tightly integrated with
all HyperWorks solvers and can be integrated easily with any other solver.
During the next exercises the HyperWorks integration with HyperStudy will be showed
in detail, and for more about it the user should go to our online documentation.
2 – Introduction to HyperStudy
Altair HyperStudy is a generic parametric study and a multi-disciplinary optimization tool
for robust product design.
The design of the tool as a wizard makes it very easy to learn and use. It is applicable to
study the different aspects of a design under various conditions, including non-linear behaviors
and multi-physics environments. It can be applied in the multi-disciplinary optimization of a
design combining different analysis types.
The models can be parameterized very easily. Besides the typical definition of solver
input data as design variables, the shape of a finite element model can also be parameterized
with ease.
HyperStudy Post-Processing module contains display, analysis and data mining
capabilities that helps engineers to overcome the challenging task of extracting relevant
information from multi-run studies. With its unique and powerful suite of tools, simulation results
can be analyzed, sorted and studied effectively in HyperStudy.
Specifically developed for design of experiments (DOE), stochastic simulations, and
optimization techniques, HyperStudy users can:
o Gain insight into the physics of a design
o Assess the robustness of a design for controlled or uncontrolled variations in the
design parameters
o Optimize a design for multi-disciplinary attributes
HyperStudy Interface
3 – DOE Study
The objective of a DOE, or Design of Experiments, study is to understand how changes
to the parameters of a model influence its performance. In such a study, a model is repeatedly
run through a simulation for various combinations of parameter settings. Effects and
interactions of the design variables of the model can be studied. Aside from a number of
predefined DOE methods provided by HyperStudy, users have the ability to define custom DOE
studies as well.
DOE Process
4 – Approximations
From a DOE, mathematical models can be computed describing the responses of the
model as an algebraic or numeric function of its parameters. This function is an approximation
of the true response. The algebraic or numeric expression that describes the response of a
model as a function of the parameters is known as a response surface.
Once a set of response surfaces have been generated for a model, those response
surfaces can act as a proxy for the model. New combinations of design variable settings not
used in the original design can be plugged into the response surface equations to quickly
estimate the response of the model without actually running the model through an entire
analysis.
Approximation Description
5 – Optimization Study
Optimization studies are used to find the parameter setting of a model that minimizes or
maximizes a particular objective function subject to a number of constraints. A special form of
optimization problem, called System Identification, can also be solved in an optimization study.
In this case, the objective function is to minimize the quadratic deviation of a given function from
a target function.
A general optimization tool, based on an advanced response surface method, is utilized
in optimization studies. Optimization can be applied to any one or more analysis codes and
hence can be multi-disciplinary. Size and shape optimizations can be performed.
A second predefined optimization method is available beyond the response surface
method. Users can also link their own optimization routine.
The optimization can be performed using the analysis solver directly, or using a
response surface created in a DOE study.
Optimization Process
6 – Stochastic Study
Stochastic studies are used to study the influence of statistical distribution in the design
variables on the responses of a design. Monte Carlo and Quasi-Monte Carlo methods are used
to do this. Different types of sampling methods are available.
The stochastic analysis can be performed using the analysis solver directly, or using a
response surface created in a DOE study.
Stochastic Process
Adviser Evaluation
8 – Configuration Tools
Old Editor
New Editor
Solver Script
Solver Script
Solver Script
Model Information
o 1 DVs
design.T.1 { X0 = 0.3, XL = 0.27, XU = 0.33}
Problem Setup
Copy the file sshield.fem to your working directory.
Since the design variables are interactively updated within HyperMesh, the
application must remain open throughout the study, and the new input file for
the next run is written out from HyperMesh.
4. Under File selection, Click on open file icon on the right side of File: and browse to find
the sshield.fem file.
5. Click Open on the open file window.
6. Click Import.
7. Click the Shaded Elements and Mesh Lines icon, , on Visualization toolbar.
8. Click on Model tab to visualize the model tree.
9. Expand the property folder
PSHELL thickness
Add Study
3. Click the open folder icon under Study directory: and browse to training directory to
define where you want to run this study.
4. Click Next > to load the model.
5. Click Add Model… and make sure the Model type: is HyperMesh.
6. Click OK to accept the default Label: and Variable:.
10. Click the box before Thickness to expand the thickness options.
11. Select design.T.1.
The Variable Name:, Initial Value:, Lower Bound:, and Upper Bound: fields above will be
filled in automatically. Only the upper and lower bounds can be changed at this point.
12. Click Add to select the thickness of the design component as a design variable for the study
to be performed later.
13. Click OK.
Model parameters
The design variables for the study have been selected, now the model is parameterized and
one can perform any type of study (DOE, optimization, or stochastic).
If the design variables in optimization are shape vectors, further editing of the deck is necessary
such as external-file-include statements.
Create DV interface
Model Information
o 3 DVs
Th1 { X0 = 0.1, XL = 0.09, XU = 0.11}
Th2 { X0 = 0.1, XL = 0.09, XU = 0.11}
Th3 { X0 = 0.1, XL = 0.09, XU = 0.11}
Problem Setup
Copy the file plate.fem to your working directory.
5. From the pull down menu Design > Format > Design Variable Selection Format.
This will lunch the DV Format window:
Bounds = initial value ±: 20 It will make the default bounds to the DV to be setup to ±
20% of the initial value.
Selector’s decimal: 5 this setup the precision used to represent the DV, on this
case 5 decimals.
Variable name prefix: DV_ it will be used as a default prefix for all new DVs.
7. Click Ok.
8. Click Edit on the menu bar and select Find…
9. Type PSHELL and click Find Next.
10. Click Cancel.
11. Click on 0.1 for the first PSHELL card.
12. Click again while pressing the CTRL keyboard key.
This will highlight eight fields following 0.1.
13. Click Design on the menu bar and select Create design variable.
14. At the popup window for Name:, enter DV_Th1 and for Label:, enter thick1 and let the
Description with the default value.
15. Change the lower and upper bounds if necessary.
16. Make sure the Format: is %8.5f.
17. Click Ok.
Do the same for the second PSHELL but instead create the DV from the pull-down menu use
the right mouse button to access this popup window.
18. Click on 0.1 on the second PSHELL while pressing CTRL keyboard key then click again on
the field with the right mouse button and select Create Design Variable….
19. At the popup window for Name:, enter DV_Th2 and for Label:, enter thick2 and let the
Description with the default value.
25. From the pull down menu click on Design > Show templex.
29. Click File on the menu bar and choose Quit and OK on the popup window to exit the
Editor.
30. Open plate.tpl in any text editor to observe the parameterizations on the thickness.
10 – HyperStudy Integration
Supported Solvers
• ABAQUS
• ADAMS
• ANSYS
• DADS
• LS-DYNA
• MADYMO
• MARC
• NASTRAN
• PAM-CRASH
• RADIOSS
• SIMPACK
HyperWorks Solvers
• OptiStruct
• MotionSolve
• HyperForm
Additional interfaces
• Import Reader Language
11 – HyperStudy/HyperMorph Coupling
Morphing: automatic mesh parameterization
Morphing shapes used as design variables in HyperStudy and OptiStruct.
Mesh based, no CAD data needed
Then the user should replace the selected nodes with the include file where the shape
variables are defined using the templex language.
Chapter 2
Design of Experiments
1 – Introduction
Design of Experiment (DOE) studies are defined as a test or a series of tests in which
input variables (factors) of a process or a system are intentionally changed so that the reasons
for changes in the output response can be identified and observed.
In a CAE model, the factors such as thickness, shape design variables, and material
properties can be changed to study the output responses of the model. DOE studies can also
provide information about interactions between these input factors and their effect on the output.
After a DOE study is complete, a regression equation (which is a polynomial equation of an
output as a function of all the input variables) is obtained. Optimization can then be performed
on the regression equation obtained from the DOE study with a very low cost.
Initially, simple DOE techniques (Full Factorial and Fractional) were applied to designs.
The underlying statistics were calculated using a mathematical average for a basic orthogonal
design.
As designs became more complex, the underlying statistics became more difficult to
determine. Facilitated by increased computer power, one can now apply more advanced
statistical models like D-optimal, Central-Composite, Box-Behnken, and so on. DOE study runs
are independent of each other, so large-scale DOE studies can be run in parallel using parallel
processing techniques or using distributed processing techniques with load sharing clusters.
Many industries, like pharmaceutical, chemical, and manufacturing, have successfully
applied DOE studies to their product development process. DOE studies can also be effective in
studying the behavior of CAE models with non-linear physics such as crash studies, occupant
safety, and vehicle dynamics in the automotive industry.
Parametric or DOE study Used to explain how changing model parameters (or
factors) influence the performance of the model. In a
parametric study, a model is repeatedly run through
simulations using various combinations of parameter
settings (levels). A mathematical model is then
computed that describes the model responses as an
algebraic function (regression) of its parameters.
Response Surface The algebraic expression produced by a DOE study to
describe the model responses. Generally, the
response surfaces are polynomials with an unknown
structure, so the corresponding experiments are
designed for individual problems.
Study Design The specific combination of parameter settings used in
a parametric study. A good design characterizes the
behavior of a model in the fewest runs possible.
Factor An input parameter (or design variable) of the system.
Factors can be controlled or uncontrolled. A factor can
be either Discrete i.e., slow (-) or fast (+) (Ex. a variety
of seed, type of paint, etc.) or Continuous (Ex.
temperature, A sinusoidal input for frequency response
analysis, etc.).
Level A discrete (or continuous) value of the factor.
Controlled factors Design variables that can be realistically controlled in
the production (real world) environment. Examples
include gauge thickness of sheet steel, shape of a
support bracket, and mold temperature.
Uncontrolled factors Variables that cannot be realistically controlled in the
(Noise) production (real world) environment, but can be
controlled in the lab. Examples include ambient
temperature and occupant seating positioning.
Confounding The inability to distinguish between main effects and
interaction effects. In other words, only combined main
and interaction effects can be determined from the
DOE study.
Main Effect The influence of individual factors on responses.
Factorial Study An experimental strategy in which all design variables are varied
together, instead of only one.
Full Factorial Investigates all possible combinations of the factor levels (L),
and consequently enables the study of all possible interactions
between factors (N). A full factorial study requires LN number of
runs.
In the above design, there are two factors with 3 levels each.
For a full factorial runs, it requires 32 = 9 runs. Usually, testing of
all combinations becomes computationally expensive, making
the use of this design prohibitive for most studies.
Fractional Used to reduce the number of runs to extract pertinent
Factorial information about the system (main effects, two factor
interactions). This is useful in cases where using full factorial is
difficult. This is usually used for screening design variables that
have significant influence on the system responses under study.
For a 3N Factorial design, a (1/3)P fraction can be constructed,
resulting in 3N-P points.
Example - for p=1 in a 33 design, the result is a one-third
fraction, often called 33-1 design. This design requires only 9
runs.
Example - for p=11 in a 215 design, the results is a 215-11 design
requiring only 16 runs.
Consider the following full factorial run for 3 factors-2 level design:
A B AxB C AxC BXC AxBXC
0 0 1 0 1 1 0
0 0 1 1 0 0 1
0 1 0 0 1 0 1
0 1 0 1 0 1 0
1 0 0 0 0 1 1
1 0 0 1 1 0 0
1 1 1 0 0 0 0
1 1 1 1 1 1 1
A full factorial design results in a 23 design or 8 runs. A fractional factorial of (1/2)p with p =1 can
be obtained i.e. (1/2)1 * 8 = 4 runs. Consider the second, third, fifth, and eighth rows, where the
main effect of A is confounded with interaction effect of BxC, main effect of B is confounded with
interaction effect of AxC, and main effect of C is confounded with interaction effect of AxB. The
fractional factorial matrix is shown as follows:
A (BxC) B (AxC) C (AxB)
0 0 1
0 1 0
1 0 0
1 1 1
Orthogonal Effects of any factor balance out (sum to zero) across the effects of the
other factors. As an example, consider a L4 design.
Taguchi Taguchi designs do not typically take into account the interactions
between design factors (design variables). Dr. Taguchi has developed a
system of standard tabulated designs which reduce the number of
experiments as compared to a full factorial design.
An advantage of the Taguchi method is that it emphasizes a mean
performance characteristic value close to the target value rather than a
value within certain specification limits, thus improving the product quality.
Additionally, Taguchi's method for experimental design is straightforward
and easy to apply to many engineering situations, making it a powerful
yet simple tool.
Some Taguchi designs - L4, 8, 9, 16, 27, 32, 64, 128
Central Used to construct second order response surfaces more efficiently. They
Composite are first order (2N) designs augmented by additional center and star
designs (CCD) points to allow estimation and the tuning parameters of a second-order
model (Ref. Montgomery).
If the distance from the center of the design space to a factorial point is
±1 for each factor, the distance from the center of the design space to a
star point is ±α with lαl > 1. The value of α depends on certain properties
required for the design and on the number of factors involved.
A CCD will always have twice as many star points as there are factors.
The three types of CCD are circumscribed (CCC), inscribed (CCI) and
face centered (CCF). CCC designs provide high quality predictions but
require outside the range of the factors. This requires 5 levels for each
factor−α, -1, 0, 1, +α. CCI designs use only points within the factor ranges
but do not provide high quality prediction. This requires 5 levels for each
factor -1, −α, 0, +α, 1. CCF designs provide high quality predictions and
do not use points outside the factor range. However, they give poor
precision to estimate pure quadratic coefficients. CCF requires three
levels -1, 0, 1.
For problems with a large number of factors, CCD designs are time
consuming.
6 – DOE Process
1. Assign factors (dv’s) from .tpl, .hm,.mdl, .hf file.
2. Perform nominal run to create responses for DOE study.
3. Select the DOE type for controlled and/or uncontrolled factors.
4. Divide the factors into controlled and uncontrolled if needed.
5. Export the solver input files for the specified runs as required by the DOE
matrix.
6. Solve the above exported files.
7. Extract the responses for the above solved files.
8. Study the main effects, interaction effects, sensitivity index.
Model Information
o 3 DVs
PSHELL.T.1 { XL = 1, XM = 1.5 , XU = 2}
tube.T.1 { XL = 1, XM = 1.5, XU = 2}
Sh1.S { XL = -5, XM = 1, XU = 5}
o Two Responses
Volume
Von Mises Stress (Element 2886)
Problem Setup
Copy the file rail_joint.hm to your working directory.
Front domains
Back domains
8. Click morph.
9. Go to the save shape subpanel.
10. In the name= field, type sh1.
Make sure the as handle perturbations toggle is selected.
4. Click on the open folder icon to browse until the directory you want to run the DOE.
5. Click Next >.
3. Click OK.
4. Click Add Response again.
5. In the Label field, type von Mises.
6. Click OK.
7. Click volume under Responses:.
8. Click Expr Builder… under Response Expression:
9. Click Add to add a vector and select the file m_1/rail_joint.out as the Vector
resource file.
10. Make sure Type: is OptiStruct Analysis, Request: is Out File, and Component: is
Volume.
11. Click Apply.
12. Check Evaluate expression.
305143 is displayed.
9. Click Next > four more times to reach Write/Execute runs in the study tree.
Note that since there are no uncontrolled factors, those selections are automatically
skipped.
By default, the Post processing dialog shows the main effects of all the responses. To observe
the main effect of a volume response:
As can be seen from the above table, the volume changes significantly (from 2.23e+5 to
3.85e+5) when PSHELL.T.1 is changed from lower bound (1.0) to upper bound (2.0). The
change in the volume response is less for the tube.T.1 and sh1.S.
The slope of the PSHELL.T.1 is greater than that of tube.T.1 and sh1.S. This also indicates
that volume response is influenced more by the PSHELL.T.1 design variable than by
tube.T.1 and sh1.S. The relationship between the volume response and each design
variable is linear.
3. Uncheck volume and check von Mises to see the main effect for von Mises response.
The main effect plot shows the following behavior for von Mises response.
Design Variable Von Mises (Lower) Von Mises (Mid) Von Mises (upper)
PSHELL.T.1 347.2 353.0 362.3
tube.T.1 476.9 330.0 255.6
sh1.S 622.0 274.6 165.9
As can be seen from the above table, von Mises stress at element 2886 is influenced greatly
by sh1.S, which represents the radius of the tube. The slope of sh1.S is also the highest in
comparison with tube.T.1 and PSHELL.T.1 variables. It can also be seen that the
relationship between von Mises stress and the three design variables are non-linear, since
we used three levels for each design variable.
The Controlled Design Variable Interactions tab shows the interactions between
controlled parameters for a particular response.
4. Click the Controlled Design Variable Interactions tab and click on the circle before
volume.
5. Choose the DV's tab and check the circle under C1.
The Controlled tab shows the interaction plot of C0 and C1, which are the PSHELL.T.1 and
the tube.T.1 respectively, on the volume response. The x-axis of the plot is dv1 (which is
PSHELL.T.1), which varies between its lower and upper bound of 1.0 and 2.0, respectively.
The y-axis of the plot is the volume response.
The plot has three curves; the first curve is that of volume v/s PSHELL.T.1 when tube.T.1 is
held constant at 1.0. The second curve when tube.T.1 is held at 1.5 and the third curve
when tube.T.1 is held at 2.0.
As can be seen from the three curves, they are parallel to each other. This indicates there is
no interaction between the two design variables.
The following can also be deduced from the plot. At dv1=1.0, volume increases from 2e+5
to 2.2e+5 when tube.T.1 is increased from 1.0 to 1.5. At DV1= 2.0, volume increases from
3.6e+5 to 3.8e+5 when tube.T.1 is increased from 1.0 to 1.5. This suggests that increasing
tube.T.1 from 1.0 to 1.5 for a constant DV1 (at 1.0 or at 2.0) does not increase volume
significantly. Therefore, tube.T.1 is not sensitive to volume. However, increasing DV1 from
1.0 to 2.0 for the same tube.T.1 value, increases volume from 2e5 to 3.6e5 (for tube.T.1 =
1.0). Therefore, PSHELL.T.1 is sensitive to volume. This behavior is consistent with the
main effect behavior where volume was found to be most sensitive to PSHELL.T.1.
Repeat the above steps for interaction between C0-C2 and C1-C2. Observe the interactions
for von Mises stress response.
6. Select the Uncontrolled Design Variable Interactions tab. This is the interactions dialog
for the uncontrolled part of the study. Since there is no uncontrolled parameter, this study
contains no uncontrolled interactions.
7. Select the Cross Interactions tab. It shows the interactions between controlled and
uncontrolled parameters for a given response. Since there is no uncontrolled parameter, you
see nothing in this setting.
8. Select the Sensitivity Index tab. It shows the effect of uncontrolled (noise) parameters on
the response. This is similar to the main effects for controlled parameters. Again, since
uncontrolled interactions were not present in this study, there is no information in this
setting.
This completes the main effects and the interaction effect of the design variables. A DOE
study also provides a regression equation, which is a polynomial equation of a response as
a function of all the design variables.
9. Click File > Save Current Study As… and save the study file
rail_joint_DOE_study.xml, that will be used on Exercise 3.1.
Cantilever Beam
The sample base input template beam.tpl can be found in the training directory.
{parameter(L,"Length",50,50,100)}
{parameter(B,"Width",2.5,2.5,5)}
{parameter(H,"Height",5,5,10)}
{P = 100}
{E = 2e11}
{M = P*L}
{c = H/2}
{I = (B*H^3)/12}
{MAX_STRESS = (M*c)/I}
{MAX_DISP = (P*L^3)/(3*E*I)}
{VOLUME = B*H*L}
{MAX_STRESS}
{MAX_DISP}
{VOLUME}
Problem Statement
o 3 DVs ( 2 Levels)
Length { XL = 50, XU = 100}
Width { XL = 2.5, XU = 5}
Height { XL = 5, XU = 10}
o Three Responses
Max Stress
Max Displacement
Volume
Problem Setup
Copy the file beam.tpl to your working directory.
4. Click on open folder icon under study directory select the \BEAM_STUDY directory you
want to use.
This is the directory into which all the runs for this DOE are to be written.
4. Click on the open folder icon under Template file and select beam.tpl.
5. Click Next >.
The design variables are displayed (shown in image below). Click on each design variable
to see that the label, initial value, and lower and upper bounds are the same as those in the
beam.out file.
Design variables
9. Click Write/Execute.
10. Click Next >.
A directory called nom_run is created under the study directory selected in Step 4. Templex
executes beam.tpl and prints the values to a file called beam.out under the nom_run
directory.
7. Click on the open folder icon under Vector resource file, select beam.tpl, and
click open. “\nom_run\m_1\beam.out”
8. Make sure
Type: Unknown,
Request: Block 1,
Component: Column 1.
9. Click Apply.
v_1 is written under Response expression.
This message appears because beam.tpl contains the values of maximum stress,
maximum displacement, and volume in a column, and is therefore a vector. However, the
responses HAVE to be a scalar. Since the first value of 480 represents the maximum
stress, we need to select the first value of the vector.
25. Click Next > to access the link design variables. There are no design variables to be linked.
26. Click Next > to access sensitivity expression.
Continue from this point to the following DOE study.
6. Make sure all of the design variables are set to level 2 (No. of levels:).
10. Make sure all of the responses under DOE responses: are checked.
Extract Responses
Design Variable Max Stress - lower bound Max Stress - upper bound
Length 225 ∑ S i ( Ll )
N
450 ∑ S i ( Lu )
N
Width 450 ∑ S i ( Bl )
N
225 ∑ S i ( Bu )
N
Height 540 ∑ S i ( Bl )
N
135 ∑ S i ( Bu )
N
As illustrated in the table above, as the length is increased from 50 to 100 units, the max
stress increases from 225 to 450. Increasing the width from 2.5 to 5 units decreases the
max stress by the same amount. The contributions for max stress from both length and
width are identical. Increasing the height from 5 to 10 units decreases the max stress by a
larger extent (from 530 to 130). It is clear that for the max stress response, height has a
larger main effect than length or width.
Width 2.0e-6 ∑ U i ( Bl )
N
1.0e-6 ∑ U i ( Bu )
N
Height 2.7e-6 ∑ U i ( Bl )
N
3.37e-7 ∑ U i ( Bu )
N
As can be seen from the above table, changing length and height has the same influence
on the max disp response. Changing width does not influence max disp as much as it does
length and height.
2. Choose the DV's tab and make sure the circle under C1 is selected.
The Controlled tab shows the interaction plot of C0 (length) and C1 (width), on the max
stress response. The x-axis of the plot is dv1, (length), which varies between its lower and
upper bound of 50 and 100, respectively.
The y-axis of the plot is the max stress response. The plot has two curves; the first curve is
that of max stress X length when width is held constant at its minimum of 2.5, the second
curve is when width is held at its maximum of 5.0. As can be seen from the two curves in
the figure, they are not parallel to each other. This indicates there is some amount of
interaction between the two design variables. The following can also be verified from the
plot: at width = 2.5, max stress increases from 300 to 600 when length is increased from 50
to 100.0. At width = 5.0, max stress increases from 150 to 300. So, for the same change in
length, the relationship (indicated by the slope) between the max stress and the length is
also being influenced by width. This implies that there is some interaction between length
and width for max stress response.
3. Repeat the steps above for interaction between C0-C2 and C1-C2. Observe the
interactions for max disp and volume responses.
4. Select the Uncontrolled Design Variable Interactions tab.
This is the interactions dialog for the uncontrolled part of the study. Since there is no
uncontrolled parameter, this study contained no uncontrolled interactions.
It shows the effect of uncontrolled (noise) parameters on the response. This is similar to the
main effects for controlled parameters. Again, since uncontrolled interactions were not
present in this study, there is no information in this setting. This completes the main effects
and the interaction effect of the design variables.
7. Close HyperStudy and save the study as BEAM_DOE_2.2.xml, it will be used on the
Approximation exercise 3.2.
Problem Statement
o 2 DVs
4-z(A) { X0 = 1108, XL = 1095, XU = 1108}
2-z(B) { X0 = 1104, XL = 1100, XU = 1108}
o One Response
Objective Function: Min (DZ)
The design variables are the locations of points A and B. The objective is to study the
effect of changing the length of the links 1 and 2 on the displacement of point C.
Problem Setup
Copy the files Fourbarlink.mdl and trunklid.h3d to your working directory.
16. To add the second design variable, expand the tree at Point 2 and select z.
17. Click Add.
This loads the Z coordinate of point 2 as the design variable. (2-z)
19. While the marker is on dv_1, change the Lower bound to 1095 and the Upper bound to
1108.
20. Change the marker to select dv_2 and change the Lower bound of dv_2 to 1100 and
Upper bound to 1108.
21. Click Next >.
Write/Execute.
A nom_run/m_1/ directory is created inside the study directory. The file m1.mrf is the
result of the nominal run. It is created within the nom_run/m_1/ directory.
6. Click the browser button under the Vector resource file field and select the m1.mrf file.
7. Under Type select Marker Displacement.
9. Click Write/Execute.
10. Answer the question that pops up with Yes.
This executes all four runs.
13. After the results are extracted, click Next > to continue to the Post-processing window.
8. After you plot these graphics you can close all HyperStudy and MotionView windows. You
don’t need to save the study.
Chapter 3
Approximation
1– Introduction
Optimization can fall into local minimum or maximum when the responses are nonlinear.
Using approximate responses, the user can avoid this issue.
The challenge:
When using approximations, there is a trade off between accuracy and efficiency then
the question is how to generate an accurate representation of the response with a low cost or
better an affordable cost.
There are several methods that can be used to evaluate these polynomial
approximations, on HyperStudy it is implemented 3 different algorithms that can be applied to a
set of points simulated in a DOE or in a user simulation matrix, the implemented methods are:
• Least Square Regression
• Moving Least Squares
• HyperKriging
parameter values. The residual is defined as: ri = Fi − f (xi , m j ) , if the user decide to use
Least Square Regression, HyperStudy automatically determine the best parameters to
approximate the Nominal curve.
If the approximation type is Least Square Regression, on HyperStudy it is possible to
select which terms to include in the response approximation equations for the selected
approximation and to decide the order of these equations.
Closeness of fit Manual (default), Automatic Way of determining the closeness of fit. If a
validation DOE is available, this selection can be
made.
Fitting quality R-Square (default), Relative Average Way by which the approximation quality is
Absolute Error, Maximum Absolute measured. Applies only if Closeness of fit is set
Error to Automatic.
Fit parameter 0.0 … 10.0 The higher the value, the closer the fit. Applies
default = 5.0 only if Closeness of fit is set to Manual.
Minimum Default = 0.001 Sampling points that have a weight smaller than
weight the prescribed valued are considered excluded
from the sphere of influence.
The Diagnostics show the quality of the approximation. If a Validation DOE is applied, the
diagnostics for the validation matrix and for a merged (combined) matrix is given in addition to
the diagnostics of the run matrix.
1.4 – HyperKriging
Kriging is an optimal prediction method designed initially for geophysical variables with a
continuous distribution. Kriging belongs to the family of linear least squares estimation
algorithms.
The variable values are somewhat random but their variation is not described by any
geometric function. Kriging interpolates an elevation value for each output raster cell by
calculating a weighted average of the elevations at nearby vector or database points or TIN
nodes. Closer points/nodes are weighted more heavily than more distant ones in the calculation.
The Kriging method analyzes the statistical variation in values over different distances and in
different directions to determine the shape and size of the point selection area as well as the set
of weighting factors that will produce the minimum error in the elevation estimate.
If the approximation type is HyperKriging, the polynomial order of the approximation is
automatically chosen. The Diagnostics show the quality of the approximation. If a Validation
DOE is applied, the diagnostics for the validation matrix and for a merged (combined) matrix is
given in addition to the diagnostics of the run matrix
The method implemented on HyperStudy has some differences form the original Kriging
Method, to don’t create confusion this was denominated HyperKriging.
Problem Statement
o 3 DVs
PSHELL.T.1 { XL = 1, XU = 2}
tube.T.1 { XL = 1, XU = 2}
Sh1.S { XL = -5, XU = 5}
o Two Responses
Volume
Von Mises Stress (Element 2886)
Problem Setup
• Copy the study files from the exercise 2.1 to the directory where you will run this
exercise.
You should copy these:
o Directories: nom_run, DOE.
• Create a HyperMesh shortcut on the directory you will run this study.
• You have to modify the study directory on your study file (XML) with the new location.
5. Go to the Approximation module and click on Create approximations in the Study tree.
6. Click Add….
The HyperStudy – Add Approximation dialog box is displayed.
9. Click OK.
10. Click Next >.
11. Click Import matrix.
12. Click OK on the Import DOE dialog.
13. Click Next > to go to Build Approximation module.
For the first response volume, notice that the Order of the Regression Model is 2, since this
is a three level design.
Notice that the % error for the volume response (which is error between the observed value
from the finite element solver to the predicted value from the regression equation) is zero,
while for von Mises stress they are very close to zero. This suggests that a three level DOE
design is sufficient to get a good regression equation to fit volume and von Mises response.
18. Select Scatter plot or Bar chart to see the variations of residuals.
19. Click Next > to go to trade-off module.
You can use this panel to determine how each parameter interact with the response, then
you can determine which one is more important for the response and how this response is
affected by change the other parameters ate the same time.
These tools can be used to identify graphically the optimum solution based on the
approximation.
Step 11: Save the study file, DOE post-processing, and approximations.
1. Click File > Save Current Study As…. And save the RAIL_JOINT_APPROX_study.xml.
2. Click Save.
This saves the DOE information to an xml file. This xml file will be retrieved later for an
optimization study.
Cantilever Beam
Model Information
o 3 DVs (2 Levels)
Length { XL = 50, XU = 100}
Width { XL = 2.5, XU = 5}
Height { XL = 5, XU = 10}
o Three Responses
Max Stress
Max Displacement
Volume
Problem Setup
• Copy the study files from the exercise 2.2 to the directory where you will run this
exercise.
You should copy these:
o Directories: nom_run, DOE.
• You have to modify the study directory on your study file (XML) with the new location.
Define approximations
6. Click Import Matrix… The matrix and results can come from a DOE study or can be edited
by the user on the fly.
7. Select the DOE_1 study from the pop-up dialog and click OK.
8. The matrix from the DOE is imported into the approximation branch.
Input matrix
9. Click Next > to go to Build approximation. Set the order of the regression model to 1, if the
Autobuild option is activated, the regression terms and coefficients will appear as shown
below. If it is not activated, click the build button. Do it for the 3 responses.
Residuals tab
11. Select Scatter plot or Bar chart to see the variations of the residuals.
Scatter plot
Bar chart
12. Click Next > to display the trade-off tabs. This branch provides ways to visualize the
approximation and to perform trade-off studies using the approximations.
13. Click Next > to enter the Anova tab, which shows the contributing percent of each
parameter on the responses. The contributing percent should be consistent with the results
shown in the effects plot. The Anova tab (pictured below) shows the contributing percent of
each effect to the Max stress response. Note that the contributing percent due to the
interaction between length and height is higher than the percent due to the width.
Anova
From here, you can proceed to perform an optimization on the regression equations
obtained from the DOE study. For this exercise, you can stop here.
14. Close HyperStudy and save the study if you want to reopen it after to discuss the results.
Chapter 4
Structural Optimization
Design Space: pl ≤ p j ≤ p u
where l is the lower bound and u is the upper bound on the design variables
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).
Design Variables
System parameters that can be changed to improve the system performance.
Beam dimensions, material properties, diameter, number of bolts.
Objective Function
System responses that are required to be minimized (maximized). These responses are
functions of the design variables.
Mass, stress, displacement, frequency, pressure drop.
Constraint Functions
System requirements that need to be satisfied for the design to be acceptable. These
functions are also functions of the design variables.
Displacement, frequency, pressure drop, cost.
Feasible Design
A point or a design that satisfies all the constraints.
Infeasible Design
A design that violates one or more constraints.
Optimum Design
The point or design that minimized (maximized) the objective function and at the same
time satisfy all the constraints.
2 – Optimization Methods
HyperStudy offers six optimization engines:
o (ARSM) Adaptive Response Surface Method
o (SQP) Sequential Quadratic programming
o (MFD) Method of Feasible Directions
o (GA) Genetic Algorithm
o (SORA) Sequential Optimization and Reliability Analysis
o (SORA-ARSM) – ARSM based SORA
o User Defined – Xopt
The Four first methods “ARSM, SQP, MFD and GA” are used for deterministic
optimizations and the other two “SORA and SORA-ARSM” are used to robust design. With
user-defined method, user’s can add their optimization algorithm with HyperStudy to perform
optimization.
Where NCON is the number of constraints, NDV is the number of design variables and Ai0, Aij,
Aijk are the polynomial coefficients.
The polynomial coefficients are determined using a least squares fit of the functions on to the
previous design points (actual non-linear analysis results).
The optimization procedure is as follows (with reference to the figure above):
1. Analyze the initial design and NDV perturbed designs (1+NDV).
2. A least square’s technique is used to determine the polynomial coefficients for the objective
and each of the constraint functions.
− If the number of designs (ND) analyzed is 1+NDV, the linear coefficients Ai0, Aij are
determined resulting in a linear response surface RS1.
− As each of the next NDV designs are analyzed, the quadratic coefficients, Aijk, are
determined.
− If the number of designs analyzed are 1+NDV+((NDV+1)*(NDV/2)), the designs are
weighed to calculate Ai0, Aij, Aijk coefficients to give the quadratic response surfaces.
3. Solve for the approximate optimum design using mathematical programming.
4. Analyze the approximate optimum design.
5. If the designs have converged (i.e. RS3 in the figure), stop here.
If the designs have not converged, go back to step 2. During each iteration a quadratic
response surface is estimated to reduce the error between the approximate and the actual
functions.
In general, more designs than required are available for an exact least squares fit. This makes
the system over determined. In order to overcome this situation, HyperOpt uses a very efficient
algorithm to estimate the response surface to be closer to certain designs of interest. HyperOpt
also uses move limits to make the optimization algorithm robust.
The constraints are linearized during the search. The following problem is solved:
This quadratic problem can be solved by a variety of methods. The solution of the
problem yields the search direction along which the next design that improves the objective
function and does not violate the constraint can be found.
The algorithm works as follows:
1. Initialize C = I.
2. Compute all gradients.
3. Solve the quadratic programming sub-problem.
4. Compute the Lagrange multipliers.
5. Search using an exterior penalty.
6. Check convergence.
Once the direction s is determined, a line search is performed to determine how far to
proceed.
This method involves the decomposition of the problem into the two following sub-
problems:
1. Search direction determination.
2. Step size determination.
The main features of the genetic algorithm model that are implemented in HyperStudy
are:
o A small percentage of the population, the elite, is transferred unchanged to the next
generation.
o Population size will be calculated automatically according to the user defined
optimization problem. It can also be modified manually.
o Three crossover types exist: single point, two-point, and uniform. Single point
crossover creates an offspring by cutting both parent strings at the same randomly
selected position and swapping the sub-strings. For example, if Parent One is
presented as [Head One, Tail One] and Parent Two as [Head Two, Tail Two] then
Child One is [Head One, Tail Two] and Child Two is [Head Two, Tail One]. Similarly,
in the two-point crossover, two random positions of cuts are selected for both
parents, thus creating three-sub-strings which are swapped to create children.
Uniform crossover
[
f 0 (x ) + r ∑ max (g j (x ) − 1) ,0 ]
n
t
i =1
x, the random design variables (affect the design but are subject to uncertainties)
p, the pure random parameters (do not drive the design, i.e. cannot be changed during
the optimization)
Design space
Optimization results
Analysis description
Analysis description
Deflection and HIC criteria results for the first and last design.
The dummy is loaded by an acceleration pulse a x (t ) resulting from the crash test in
accordance with FMVSS208.
The objective is to minimize the femur load with a limit on the knee penetration into the
knee bolster. The design variables consist of geometric and stiffness parameters
Optimization Problem:
Objective: Minimize Femur Load: min(F femur (Δθ , Δk x , Δl x , Δl z , Δα ))
Left window shows Optimum vs. initial design and on the right window the optimization history result.
Δα °
-5.00 5.00 -4.65
Model description
6 Design variables
Results
γ = +12%
ΔP = −16 %
Initial Final
Optimization History
Damage
Damage deteriorated!
Optimization history
5 – General Discussion
o Optimization commences once a clean baseline analysis has been performed (eg.
negligible hourglassing and sliding energies)
o Care with shape variables: large perturbations can result in a reduced time step size
o Mass scaling used with shape optimization should be used with caution. Particularly
if the objective is to minimize mass
o For size optimization, numerical contact can be effected by changing the thickness.
Workaround by keeping the contact thickness constant
o Technology can be simultaneously applied to multiple loadcases (eg. central /
oblique impact attitudes)
o Changes in design variables can result in a completely different system response
(eg. components not in contact may now contact)
o Original analysis duration may extend to capture the systems response optimization
o Computational time can be a barrier with each iteration requiring a complete explicit
analysis
o Convergence is quickly achieved
o Optimized design can be conveniently restarted with new design variables or further
optimization starting at a new position in the response surface
Problem Statement
o 3 DVs
PSHELL.T.1 { X0 = 1.5, XL = 1, XU = 2}
tube.T.1 { X0 = 1.5, XL = 1, XU = 2}
Sh1.S { X0 = 1, XL = -5, XU = 5}
o Two Responses
Volume => Objective Function (Min)
Von Mises Stress (Element 2886) => Constraint Function < 220 MPa
Problem Setup
Copy the study files from the exercise 3.1 to the directory where you will run this exercise.
You should copy these:
• You have to modify the study directory on your study file (XML) with the new location.
21. Click on Yes to include the nominal run results as the starting point for optimization.
22. After the optimization is complete, click Next > to post-process the results.
23. Click File > Save Current Study As and save RAIL_JOINT_OPTIM_study.xml.
24. Click File > Exit, a pop-up window will ask if you want to save the study, say NO because
you have already saved on the step above.
25. On HyperMesh Click File > Exit to finish this exercise.
Problem Statement
o 3 DVs
Th1{ X0 = 0.1, XL = 0.05, XU = 0.15}
Th2{ X0 = 0.1, XL = 0.05, XU = 0.15}
Th3 { X0 = 0.1, XL = 0.05, XU = 0.15}
o Two Responses
Volume => Objective Function (Min)
Max Von Mises Stress => Constraint Function < 24 MPa
Problem Setup
You should copy this file from the model files directory: plate.fem
Bounds = initial value ±: 20 It will make the default bounds to the DV to be setup to ±
20% of the initial value.
Selector’s decimal: 5 this setup the precision used to represent the DV, on this
case 5 decimals.
Variable name prefix: DV_ it will be used as a default prefix for all new DVs.
7. Click OK.
8. From the pull down menu set Design > Format > Fixed.
9. Click Edit > Find….
10. Type PSHELL and click Find twice.
11. Click Cancel in the Find box.
12. Click on 0.1 for the first PSHELL card.
13. Click again while pressing the CTRL key.
The eight fields, along with 0.1, are highlighted.
4. Click on the open folder icon under study directory: and define the study directory.
5. Activate the Autosave study file in study directory check box to save a study file
automatically.
6. Click Next.
7. Click Add Model….
8. Make sure the Model Type: is Template.
24. Click on the open folder icon under Vector resource file.
25. Double-click on the m_1 folder and select the file plate.h3d.
26. Click Functions and scroll to select resvector.
27. Click OK.
28. Under Response Expression, set up the response as:
max(resvector("m_1/plate.h3d",2,0,612,0,0,0)).
The model directory name m_1 needs to be specified in the path to the file name plate.res.
This picks up the maximum von Mises stress in the model.
3. Under Optimization Iteration History Table tab, check to see the best run for this
optimization.
4. From the File menu, select Save Current Study As and save plate_opti.xml under
your exercise directory, then close HyperStudy.
P = 250 N
Problem Statement
o 2 DVs
Width { X0 = 0.05, XL = 0.04, XU = 0.06}
Height { X0 = 0.1, XL = 0.09, XU = 0.11}
o Two Responses
Max Displacement < 0.35 mm
Volume (min)
The objective is to find the cross-sectional dimensions, width, and height of a beam that
minimizes the beam volume while keeping the tip deflection below 0.35 mm.
The spreadsheet used here contains two design variables along with their initial values.
It also calculates the tip deflection and the volume.
Problem Setup
Copy the file hst_tut_1070_spreadsheet.xls to your working directory and
change the read only status of this file.
5. Close Excell.
5. Click on open folder icon under study directory select the \EXCEL_STUDY directory you
want to use.
This will be your working directory where HyperStudy will save all files used at this study.
10. Select hst_tut_1070_spreadsheet.xls, as the Template file using the file browser in
the upper right of the window.
This will open the spreadsheet hst_tut_1070_spreadsheet.xls.
11. Click Next > to continue to the Create design variables window.
12. Click Add Model Parameter….
13. Select the cells with design variable names and values like shown below.
17. Excel will show a popup window informing that the spreadsheet was saved with success.
Click OK.
You have now added the design variables and responses to the study.
Write/Execute.
A nom_run/m_1/ directory is created inside the study directory. In this directory, you will
see the file sse_output.csv which is the results file of the nominal run.
5. Click OK.
6. Click Expr. Builder.
The HyperStudy - Response Expression Builder window appears.
8. Use Browse.... to choose the Vector resource file that contains the result of interest, which
for Vector 1 is the file sse_output.csv file under ~/nom_run/m_1.
9. Define Vector 1 as the values in column C, row 15 of your spreadsheet by choosing the
following options:
Type: Unknown
Request: Block 1
19. Use Browse... to choose the Vector resource file that contains the result of interest, which
for Vector 2 is the sse_output.csv file under ~/nom_run/m_1.
20. Define Vector 2 as the values in column C, row 16 of your spreadsheet by choosing the
following options:
Type: Unknown
Request: Block 1
6. Change the Initial values, Lower bounds, and Upper bounds for DesignVariable_1, and
DesignVariable_2 to 0.05, 0.04, 0.06, and 0.1, 0.09, 0.11, respectively.
7. Click Next > to continue to the Constraints dialog.
8. Click Add constraint….
9. Click OK.
10. From the drop down field for Apply Constraint… On, select Tip Deflection.
11. Set a limit of 0.35 using the Bound Type <= (less than or equal to).
12. Click Next > to continue to the Objectives dialog.
13. Click Add objective….
14. Click OK.
15. From the Apply On drop down field, select Volume.
16. From the Objective: drop down field, select Minimize.
None of the optimization parameters need to be changed.
In each of the Optimization Iteration History Plot and Optimization Iteration History
Table tabs, boxes are displayed with the labels of the respective functions.
Objective Convergence
Constraint Convergence
4. Click on Optimization iteration History Table to see how the DVs and responses have
change during the optimization process.
Model Information
o 2 DVs
sh1.S { X0 = 0, XL = -1.5, XU = 1.5}
sh2.S { X0 = 0, XL = 1.5, XU = 1.5}
o One Response
Objective Function: Min (FLD)
Problem Setup
Copy the file hat.hf to your working directory.
3. Click File>Open….
4. Retrieve the hat.hf.
2D domains
First shape
4. Click on the open folder icon and select the study directory.
5. Click Next >.
6. Click Add model….
7. Select HyperMesh as the Model type:.
8. Click OK.
9. Click Next >.
15. Choose RADIOSS from the drop down menu as the Solver execution script.
The input to RADIOSS HAVE TO HAVE THE EXTENSION (.PARM) hat.parm, this is
used internally to define that the analysis is a one step forming. You do not need to edit the
Solver input arguments field.
Click Write/Execute.
The file hat.dat written under the nom_run directory inside the study directory contains
the FLD for the given data. A vector for the thickness change of each element can also be
extracted from this file.
7. Click the open folder icon , under the Vector resource file field and select the hat.dat
file present in the m_1 folder.
8. Define Vector 1 as the internal energy of the model by choosing the following options from
the pull-down menus in the lower right-hand section of the Vectors tab:
Type: HyperForm Results
Request: FLD
12. Click Apply to use this vector in the Response expression field.
The Expression field should now display the expression max(v_1), which is the only
response for this exercise.
This means that your optimization process is completed because the change on your
objective function on the last 2 iterations is lower than the absolute and relative targets you
have setup.
You can see that he sh2 and sh1 values during the iteration and the responses values too.
To see the converged model shape, use HF to import the model file at run16 folder.
Problem Statement
o 3 DVs
Shape1 { X0 = 3.5, XL = 0, XU = 7}
Shape2 { X0 = 6.5, XL = 0, XU = 13}
Shape3 { X0 = 6.5, XL = 0, XU = 13}
o Two Responses
Mass => Objective Function (Min)
Von Mises Stress (Elements 202,203,208,209) => Constraint Function < 200
MPa
The objective of this optimization study is to minimize the mass of a link, which is connected to a
shaft, given the stress design constraint of 200MPa at high stress areas. Due to symmetrical
geometry, only a quarter of the link is modeled, and the shaft is modeled using gap elements.
The boundary constraint is applied at the shaft, and an axial uniform load of 500N is applied at
the center span of the link, as shown in the following images.
Problem Setup
Copy the link.hm file from the training directory to your working directory.
The file link.hm holds the shape setup for the definition of the shape design variables in
HyperMesh using HyperMorph. The following images show the definition of three shape design
variables, which are the shape changes on the outer boundary of the link.
Shape 1
Shape 2
Shape 3
To save the solver to the HyperStudy preference file, click Save As… and provide a name,
for example, userprefs.mvw. Be sure not to overwrite the system preferences file, which
is by default located in the <altair_installation_dir>/<hst> directory. In UNIX, the
preference file can also be located in a user's home directory or the working directory from
which HyperStudy was launched.
From the File menu, choose Set Preference File... and select the preferences file that you
just saved. HyperStudy reads the default preferences file in the installation directory,
followed by the preference file that you specify. This ensures that all readers and import
templates are available.
Note that you can also write and register custom .bat and UNIX files.
4. Click the open folder icon and browse to your working directory to define it as the
study directory.
5. Click Next >.
6. Click Add Model….
7. Make sure the Model type: is Template file.
8. Click OK to accept the default Label: and Variable:
9. Click the open folder icon and load the link.tpl as the Template file.
10. Click Next >.
3. Verify or set the value in the Upper Bound: text box to 7.0.
7. Verify or set the value in the Upper Bound: text box to 13.0.
2. In the Solver Execution Script column, scroll down and select Abaqus or the name you
assigned in your preferences file.
3. In the Input file and the Solver input arguments column, use job=link interactive
for the ABAQUS solver.
This setup is based on the assumption that <abaqus installation dir>/abq.bat is
registered as the solver. Refer to the on-line help or contact Altair support for help in setting
up the solver.
Write/Execute.
The write action creates a nom_run directory under the study directory and a link.inp
under nom_run directory. The execute action executes the customized batch within the
nom_run directory and produces ABAQUS result files: link.dat, link.fil, and
link.odb.
ABAQUS does not overwrite the result files by default. Therefore, be sure
result files do not already exist prior to executing the base run. If the result
! files do exist, HyperStudy may freeze. If you don’t have a ABAQUS license
or installation available you can copy the nom_run directory from the
model files directory.
5. Click Next >.
5. Click mass.
6. Click Response Expr Builder.
7. Click Extracts tab
8. Click Add.
9. Click Open folder icon and browse for the file link.dat inside the nom_run\m_1
directory.
10. Click on keyword text field, enter MASS ASSOCIATED WITH DIRECTION:
11. Click Search.
12. Click Offset:, enter 97.
23. Select:
Subcase: STEP-1: STATIC LOAD
Request: E202
Component: Mises
26. Deactivate the Evaluate Response Expression check box and edit the Response
Expression field to display: v_1[1].
This value represents the von Mises stress in element 202.
Final shape
Chapter 5
Stochastic Studies
1 – Introduction
Stochastic Methods (also called statistical or probabilistic methods) are used to measure
uncertainty in any system. Any physical system has a certain degree of uncertainty associated
with it. For a structural system, uncertainty can be associated with the material properties,
geometry of the design, and the loading and boundary conditions. Stochastic analysis of
structural systems measures the effect of these uncertainties on system performance. The
performance of a system is defined in terms of probability of success or probability of failure,
rather than by a deterministic value.
2 – Random Variables
Design variables can be characterized statistically using various statistical distributions.
A design variable, when used in a statistical sense, is labeled a random variable. In ordinary
usage, the term "random variable" indicates that the value this variable will take is unknown, but
in a statistical sense, it is precisely known what values this variable will take and the probability
associated with that value.
Design variables exhibit different properties depending on the parameter they represent.
Some variables may be symmetric about the mean value, while others may be skewed toward
either the left or right. Some variables may be bounded on either side or unbounded.
The first way to categorize a random variable is to determine whether the variable is
continuous or discrete. A random variable is considered continuous if it can assume any value
in a given interval. A random variable is considered discrete if it can only assume a countable
set of values within a given interval.
3.2.1 – Histogram
The histogram provides the number of occurrences of a response/random variable value
within a certain interval.
4 – Sampling
The term sampling refers to the scheme used to select values for the random variables.
The following sampling techniques are offered in HyperStudy:
• Simple Random
• Latin HyperCube
• Hammersley
4.2 – Correlation
Correlation is a bivariate measure of association (strength) of the relationship between
two variables. It varies from 0 (random relationship) to 1 (perfect linear relationship) or -1
(perfect negative linear relationship).
HyperStudy uses the pairing procedure developed by Iman and Conover to induce
specified correlations between random variables. Such induced correlations are based on the
nonparametric technique known as rank correlation. It is possible to specify multivariate
correlations when correlation is defined in terms of pairs of random variables. For example, if
there are three random variables A, B, and C, and the correlation between them is defined as
follows:
Correlation (A, B) = 0.5
Correlation (A, C) = 0.5
Correlation (B, C) = 0.5
the multivariate correlation matrix based on the bivariate correlation values look like the
following:
There are mathematical limitations on the way the correlation matrix can be defined, as
illustrated in the following case.
Correlation (A, B) = -0.9
Correlation (A, C) = -0.9
Correlation (B, C) = -0.9
The correlation values specified here, indicate that large values of A tend to be paired
with smaller values of both B and C, while the correlation value between B and C indicates that
large values of B are paired with smaller values of C. The above correlation is mathematically
impossible, and cannot be achieved by any sampling scheme.
The histogram, PDF, and CDF indicate the probability function of the output response.
The histogram shows the frequency of runs yielding a sub-range of response values.
The size of the sub-range is defined as the total range of the response value, divided by the
number of bins. The probability density function (PDF) curve indicates the probability of the
response being equal to a particular value. The cumulative distribution function (CDF) curve
shows the probability of the response being less than or equal to a particular value. The
accuracy of the PDF and CDF curves depend on the number of bins chosen.
The horizontal line in the above plot represents the average of the
values in the vector. The vertical lines represent the differences
between the values of the vector and the average of the values. The
average deviation is the average difference between the vector
elements and the average of the vector elements. The sign of each
element difference is not taken into consideration when calculating the
deviation. The sign of each element is taken into consideration when
calculating the average of the elements.
Variance Evaluated using the following expression:
Standard This is the square root of the variance. It is a commonly used measure
deviation of dispersion.
The use of variation lies partly in the fact that the mean and standard
deviation tend to change together in many experiments. The higher the
CoV, the higher the variability. The lower the CoV, the lesser the
variability of the data. CoV is seldom of interest where the mean is likely
to be near zero.
Skewness Indicates whether the probability distribution is skewed to the right or to
the left of mean. If the skewness is zero, the probability distribution is
symmetric about the mean of the distribution. If the skewness is less
than zero, the probability distribution is skewed to the left of the mean of
the distribution. If the skewness if greater than zero, the probability
distribution is skewed to the right of the mean of the distribution.
Median The Median of a scalar is that value itself.
The Median of a vector with an odd number of elements is a scalar that
is the element at the center of the ordered vector (element (N+1)/2,
where N is the number of elements).
The Median of a vector with an even number of elements is a scalar that
is the average value of the two elements closest to the center of the
ordered vector (elements N/2 and (N/2+1), where N is the number of
elements).
RMS Calculates the square root of the mean of the sum of the squares of all
response values using the following equation:
∑ (x )
2
1 −x
N
Minimum Minimum value indicates the smallest of all output response values.
Maximum Maximum value indicates the largest of all output response values.
Probability
distribution
Bias
Quality distribution
Tolerance (System Quality
Range) distribution
distribution (System range)
(Design range)
Quality within
specifications
(Common range)
0 l
Target σ Mean μ σ Performance
Objective: min(σ ( f ( x ) ))
Constraints: μ (x, r ) − f target ≤ 0
μ j (x, r ) − g j target ≤ 0
Design variables: x L ≤ x ≤ xU
Random variables: r = [ri (μi ,σ i )]
Objective: Deviation
Constraint: Mean gj
For more information about this methods please go to the online documentation. This approach
is discussed with more detail at the advanced training.
Problem Statement
o 2 DVs
PSHELL.T.1 { Normal, Mean = 1.5, Variance = 0.00225}
tube.T.1 { Normal, Mean = 1.5, Variance = 0.003}
o One Response
VON Mises Stress (Element 2886)
Problem Setup
Copy the study files from the exercise 5.1 to the directory where you will run this exercise.
You should copy this:
• You should modify the study directory on your study file (XML) with the new location.
8. Click Create stochastic study in the Stochastic study section of the study tree.
A red x appears in the box that indicates you have to add a study to make this action valid.
13. Click Next > to reach the Define random variables dialog.
14. Deactivate the check box next to the third variable (labeled sh1.S).
15. Click in the space next to the box for the first variable (PSHELL.T.1).
16. Click next to Distribution: and select Normal distribution.
17. Change the Mean value to 1.500.
18. Select the Variance: radio button and enter 2.25e-03.
19. Repeat the last three steps for the second variable using a variance value of 3e-03.
20. Click Next > twice to reach the Select responses dialog.
Responses to be evaluated for the study are chosen here.
21. Click on solver in the Evaluator column, to volume and vonMises responses.
This brings up the switch for selection of the evaluator.
Click Here
22. Click on the pull down arrow and select LSR_1 as the evaluator for both responses.
By selecting the LSR_1, we have designated that the approximation model (that was built in
the previous section) is to be used to evaluate the volume and von Mises responses rather
than the OptiStruct solver.
24. Activate the check box for the desired Random Variable to display or hide the distribution
for the chosen variable(s).
Ant-Hill 3D plot
25. Select the Ant-Hill 3D tab to view the distribution as a 3-D plot (see figure above).
26. Select the Histogram/PDF/CDF tab to view the curves for the selected variable(s).
27. Click Extract to evaluate the regression at each of the sample points.
28. Click Next> to begin post-processing.
- Click on , to change the variable type in the box below Random Variable (X-
axis), to tube.T.1 and to plot the von Mises response against the second variable.
Ant-hill plots contain enormous amounts of information about the subject being studied, and
provide information about global dependencies that can only be arrived at by performing a
stochastic analysis.
Ant-hill plots are used to indicate the dependency between a random variable and a
response, or a response and a response. If a clear trend is observed from the plots, a
particular variable is affecting the system. The first figure above (Stress X tube.T.1) shows a
clear trend between the stress and thickness, indicating a relationship between that variable
and the stress. On the second we can see that for this interval PSHELL.T.1 has almost no
influence on Stress. When there is no observable trend according to the ant-hill plot, a
variable is not controlling a system response, and is only adding noise to the system.
Ant-hill plots are used for model validation, and a good simulation model will have similar
ant-hill plots with regard to the amount of scatter and the orientation of the cloud compared
over a series of tests.
You can also view the 3-D ant-hill plots under the Ant-Hill 3D (resp vs rand) tab. In the ant-
hill 3-D plot, you will see that the response is plotted against both the variables.
CDF curves can be used to estimate the probability of a response being above or below a
certain value, and are useful in assessing reliability.
The value of a response or variable is on the X axis of a CDF curve. The probability of
response values from the set of runs being less than the corresponding x-values is on the Y-
axis.
Standard deviation and variance indicate the extent of scatter. The lower the ratio of the
standard deviation and mean, the less scatter, and a more robust a design is indicated.
32. Determine the reliability of your component, by changing the Bound Value, HST give you
which is the probability of the response is lower (Reliability) or higher (Probability of Failure)
Model Information
o 3 DVs
thick1 { Normal, Mean = 0.1, Variance = 0.0001}
thick2 { Normal, Mean = 0.1, Variance = 0.0001}
thick3 { Normal, Mean = 0.1, Variance = 0.0001}
o Two Responses
Max VON Mises Stress
Volume
Problem Setup
Copy the study files from the exercise 4.2 to the directory where you will run this exercise.
You should copy this:
• You have to modify the study directory on your study file (XML) with the new location.
1. Click on the empty box next to the first variable label to select the first variable.
2. Click beside Distribution: and select Normal.
3. Select the Variance: radio button and enter 1.0e-04.
4. Repeat the last two steps for variables 2 and 3.
5. Click Next > twice to go to the Stochastic responses dialog.
The responses to be evaluated for the stochastic study are chosen here..
7. Activate/deactivate the check boxes under Random Variable to display/hide the distribution
for each variable.
8. Click the Ant-Hill 3D plot to view the input distribution in 3-D. Open the
Histogram/PDF/CDF tab to view the curves for the variable.
9. Click Write/Execute/Extract to run the jobs and extract responses for each run.
2. Click the Ant-Hill 3D (resp vs. resp) tab to view the ant-hill plots on 3D.
3. Click on the Ant-Hill (resp vs. rand var) tab. This plots the response vs the random
variable of choice.
6. Open the Histogram/PDF/CDF tab to view the histogram/PDF/CDF for each response. To
select a Response, select the corresponding radio button.
Histogram/PDF/CDF
The histogram and PDF provide the distribution of the response. CDF curves can be used to
estimate the probability of a response being below or above a certain value. The CDF
curves can be used to assess reliability.
7. Open the Statistical Summary tab to view the mean, standard deviation, variation, and
other statistical outputs.
Appendix A
Appendix B
Solver Scripts
This section contains some sample scripts or batch files that could be used to automate
processes in HyperStudy.
The sample script also shows how to include certain post-processing tasks such as translating
the results into a HyperMesh result file and deleting files not needed to save disc space.
#!/bin/sh
#
# Set base filename for the optimization study
#
base=<filename>
#
# Set name of the que
#
que =quename
#
# Set environment variables for the solver
#
LSTC_FILE=/soft/usr/dyna/pass/v940_902 export LSTC_FILE
#
# Submit solution to the que
#
(echo "cd $PWD"echo "/soft/usr/dyna/v940_902 i=$base.bdf x=99
memory=50000000") | qsub -q $que
#
# Wait for the solver run to be finished
#
MSG=""while [ "$MSG" = "" ] ; do MSG=`grep "N o r m a l t e
r m i n a t i o n" d3hsp 2>/dev/null` sleep 30done
#
# Post-process data, if necessary (Create HyperMesh result
file)
#
/soft/net/hmdyna d3plot $base.res
#
# Delete data not needed
#
/bin/rm –f d3p* d3d*
#
# End of script
#
Appendix C
Templex
Introduction
This appendix introduces the Text Client user interface in MotionView and the Templex
processor. Upon completion of this section, you will be familiar with the Text Client and be able
to write Templex programs.
Writing Programs
{string="Hello, World"}
4. Click Edit.
Templex executes the program and the output replaces the program in the same window.
Editing Tools
Copy/Paste
Highlight text by holding down the left mouse button and dragging the cursor across the desired
text. Release the mouse. Right click to bring up a popup menu list. Click the Copy button. Insert
the cursor at the desired location. Click Paste on the popup menu list.
The popup menu list is available inside any text field by right clicking the mouse.
Text Search
References
1. ‘Structural Optimization in Occupant Safety and Crash Analysis’, U Schramm, D
Schneider and H Thomas, OptiCON’98, California, Oct. 1998.
2. ‘Validation of the Hybrid III Head and Neck Models for the Pole Test of FMVSS 201
Using Optimization Techniques’, L Fredriksson and A Hirth, CAD-FEM User’s
Meeting, Oct. 1998
3. ‘Crashworthiness optimization Study of a Bumper System’, K Simpson and G Harte,
HyperWorks Conf. Proceedings, Jan 1999
4. ‘Structural optimization - An Efficient Tool in Automotive Design’, U Schramm, ATZ
WorldWide, pg 17-20, 100 (1998) 6.
5. ‘Shape Optimization using Star-CD and HyperStudy’, M Ratzel and C E Baumann,
STAR American Conference, Detroit, May 2006.