Ebook HyperStudy
Ebook HyperStudy
© Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
CONTENTS
1 About This Study Guide ..................................................................................................... 6
2 Acknowledgement............................................................................................................. 10
3 Disclaimer .......................................................................................................................... 11
4 Simulation Driven Product Design – Fundamentals ...................................................... 12
4.1 Product Design ...................................................................................................................................... 12
4.3.1 Fit..................................................................................................................................................... 14
5.4.1 Effects.............................................................................................................................................. 21
5.5.5 DOE for Space Filling - DOE for Response Surface Evaluation ..................................................... 34
5.5.10 Modified Extensible Lattice Sequence (MELS) – Space Filling DOE ............................................. 39
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 2
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
7.1.6 Create Responses and Compare the Response Values .............................................................. 106
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 3
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
7.2 Study Setup of a Parameterized File Model for Size Variables ...................................................... 110
7.2.3 Setup the Design Variable for PSHELL Thickness ....................................................................... 114
7.2.6 Create the Response and Compare the Response Value ............................................................ 120
7.3 Study Setup of a Parameterized File Model with Shape Variables ................................................ 120
7.3.6 Set up the GRID Points to Create a Shape Template .................................................................. 127
7.3.9 Create the Response and Compare the Response Value ............................................................ 132
7.5.2 Resolution III, IV and V Fractional Factorial DOE with 2 Levels ................................................... 152
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 4
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 5
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
At that time, we created a list of simulation runs considering various combinations of the above parameters. We called it “list of to-
do runs”. Today we rather would call it simulation run matrix.
Among many other lessons we learned we realized that the manual approach is very prone to errors as every single model variant
has to be created, edited and saved manually. Moreover, keeping track of model names, model files, modified parameters/factors,
documentation of its effects on fault behavior etc. turned out to be a nightmare – also because every single run lasted several
hours.
Fortunately, some of the technology available today – and in HyperStudy – such as the Hammersley Method helps to overcome
(and avoid) the pain points described above.
The objective of this eBook (in fact, interactive PDF) is to demonstrate how to use Altair HyperStudy to perform Design of
Experiments (DOE) to solve challenges as described above in a much more efficient way, i.e. to identify critical design variables
and their contribution to the design performance more efficiently.
In this eBook, we will describe in some detail, how to perform a DOE study including
• parameterization of models
The content of this book follows quite closely an internal training about Design of Experiments (DOE) given by our colleagues
Fatma Koçer and Joseph Pajot (Altair USA). The goal of the training was to bring beginners up to speed with the concepts of DOE
and, of course, with our software Altair HyperStudy.
Please note that a commercially released software is a living thing and so at every release (major or point release) new methods,
functionalities are added along with improvement to existing methods and functionalities. This document is written using
HyperStudy 14.130 except the videos; videos come from a variety of versions some of which are older. As such, there may be
some differences between what you see in your screen and what is described here but we certainly think and hope that these
differences will not be enough to distract you from using this guide as an effective learning material. If that is not the case, please
drop us a note with specifics of distracting discrepancies (or any feedback towards improving the quality of this book). Thank you in
advance for your efforts in making this e-book more effective.
We do hope that the selected video recordings from this training as well as some illustrative examples (tutorials) included in the
book will help you explore and appreciate the benefits of DOE in the simulation driven product design process.
Now, before you get started, please recall that regardless of the project complexity you are working on, the reliability of your results
is only as good as the person who uses the software: The solver is only capable of working with the problem that you define; it
cannot design the part for us and does not have engineering judgment, so the ultimate design decisions lie with YOU!
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 6
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
A very popular statement which summarizes the above (and which is mentioned in many documents) simply says:
To help you building up simulation experiences (and to overcome some typical roadblocks) we offer additional training & learning
resources such as:
• An extended set of E-Learning material (webinars and videos), tutorials about HyperMesh, HyperView, RADIOSS,
• Additional free study guides about “Practical Aspects of Finite Element Simulation”, “Practical Aspects of Structural
Optimization”, “Practical Aspects of Multibody Simulation”, and “Crash Analysis with RADIOSS”
And now - enjoy this study guide and let us know whether DOE (and this book) helped you to successfully solve your design
challenges.
Best regards
Ode to DOE
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 7
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
R. C. Neuman
Teaching
Leading universities across the globe are using HyperWorks and SolidThinking computer aided engineering (CAE) simulation
software for teaching and research in the fields of:
• Structural Analysis
• Optimization
Altair has commercial expertise to share with the academic community. By including real life scenarios in your teaching material,
Altair can help you add value to your engineering design courses.
Our unique licensing system allows universities to use the entire (full version) HyperWorks & SolidThinking suite in a very flexible
and cost-efficient way as sketched out below:
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 8
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Since teaching differs from campus to campus, and from region to region we are very interested to discuss your needs with you
personally.
We are more than happy helping and assisting you with your teaching activities.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 9
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
2 Acknowledgement
“If everyone is moving forward together, then success takes care of itself”
Fatma Koçer, Joseph Pajot, Franck Delcroix for conducting a very inspirational webinar series and many-many fruitful discussions.
Working together with you have been a great learning experience. Thank you for everything.
Rahul Rajan for his work on the recordings and review of the manuscript.
Rahul Ponginan, Prakash Pagadala, George Johnson, Sean Putman, Lena Hanna David, Ralph Krawczyk Jr. and Dev Anand for
their very valuable support and stimulating discussions.
Lutz Bergmann, Marian Bulla, Christian Buettner, and Vladimir Trickov for all your help and advice.
Diana Mavrudieva for her help reviewing the book and the example of HyperStudy & Flux.
The entire HyperWorks Documentation Team for putting together 1000’s of pages of documentation.
Lastly, the entire HyperStudy development team led by Stephan Koerner deserves huge credit for their passion & dedication!
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 10
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
3 Disclaimer
Every effort has been made to keep the book free from technical as well as other mistakes. However, publishers and authors will
not be responsible for loss, damage in any form and consequences arising directly or indirectly from the use of this book. © 2021
Altair Engineering, Inc. All rights reserved. No part of this publication may be reproduced, transmitted, transcribed, 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:
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 11
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Product design and manufacturing process has been developed over centuries. Many complex systems such as bridges, buildings,
aircrafts, cars, etc. are excellent outcomes of this process. This process involves trial-and-error design method in which an initial
design is created, tested and modified until a safe design is found.
In most cases, many designs can be safe designs but only one of them is the optimum design which is not only safe but also is the
best with respect to a given criterion. Being centuries-old, trial-and-error design method has been developed in the abundance of
natural resources and therefore does not directly aim to find the optimum design while it is searching for a safe design. As a result,
within the current design process determining the optimum design is an expensive task if not an impossible one as the process
does not have a systematic approach to analyzing and comparing different designs.
Let’s take a bridge design as an example. Function of a bridge is to facilitate the traffic between two areas that are separated by an
obstacle. There are requirements on its safety, cost, durability, maintenance, manufacturability etc. that need to be satisfied. Using
the trial-and-error method, engineers cannot evaluate all different possibilities with respect to these requirements and find the
optimum bridge design.
As a result, engineers usually adopt a previous design and modify this design until it meets the design requirements. Improvements
to increase its value are only made when a new similar design task is started. As a result, evolution of design systems in the past
required a lot of time and resources.
With diminishing natural resources, increasing market competition and increasing computational power, trial-and-error method is
being replaced by simulation driven design. In our (Altair’s) simulation driven design approach, CAD (Computer Aided Design) and
CAE (computer aided engineering) are deployed in parallel. Simulation driven design searches not only for a safe design, but it also
searches for an optimum design allowing us to reach the best performing design, faster. In other words, the Simulation Driven
Design Process eliminates the randomness of the (classical) trial-and-error process.
[Link]
Please note that UI may have slight variations from what you are seeing due to different versions of HyperStudy.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 12
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Design performance can be defined as how well a product satisfies the design requirements. Design performance is a function of
design parameters. In the simulation driven design process, required design performance is divided into design objectives and
design constraints.
This is a critical step for the engineers as the outcome will heavily depend on the selection of the objective and constraints.
This beam is clamped on one end and has a concentrated static load, P, applied on the free end as shown above. We can change
the cross-sectional dimensions (H and W), length of the beam (L) and material (r). We can then formulate this problem in several
ways.
If we have a defined target on the maximum displacement, then we can identify the objective and constraints as:
If we need to improve its performance but stay also within a target weight, then we can to re-formulate the design problem as:
In the simulation driven design process, ideally as many independent design parameters as possible need to be included since
large number of design parameters will create more flexibility in design search. However, in practice, we do not want to spend our
computation time on parameters that do not have a large impact on the design. As a result, a Design of Experiment (DOE) for
parameter screening is suggested as the first step. Once the problem size is reduced through parameter screening, depending on
the problem we can continue with metamodeling. In metamodeling, and fit is created to replace the expensive simulations or to
reduce the noise in the data. Then we can perform optimization either on the fit or on the exact model.
For the optimization stage, we can choose to do deterministic studies or probabilistic studies. If we choose the latter, we need to
proceed with reliability and robustness-based design optimization (RRBDO).
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 13
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
• Fit (Metamodeling)
Before we dive more deeply into Design of Experiments, we will have a brief look at the other phases, namely Fit, Optimization, and
Stochastics.
4.3.1 Fit
Fit approach is used to create metamodels that represent the actual responses (“a metamodel or surrogate model is a model of a
model, and metamodeling is the process of generating such metamodels” Wikipedia)
• smoothen noisy functions so that the optimization algorithms work more effectively.
While working with fits instead of exact simulations, a tradeoff between accuracy and efficiency is ever present. Therefore, it is
critical to choose the right DOE method to create the design points as well as the fit method to be used.
Note: Metamodel, Response Surface Model, Surrogate Model, Approximation or Transfer Function are often used as synonyms for
Fit.
4.3.2 Optimization
Design optimization is the use of a collection of mathematical procedures that helps the engineers to achieve a design as fully
perfect, functional, or effective as possible.
There are three steps in converting a design problem to an optimization problem. These are:
• System parameters that can be changed to improve the system performance such as geometrical dimensions, hard-
• System responses that are required to be minimized (maximized) such as mass, displacement, cost etc. These
• System requirements that need to be satisfied for the design to be feasible such as requirements on stresses,
displacements etc. These functions should also be functions of the design variables
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 14
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Depending on the nature of the design variables, objective functions and constraints; optimization problems can be classified into
different categories such as: constrained problems, discrete problems, multi-objective problems, reliability and robustness based
design problems, etc.
In general, there are two types of optimization techniques, iterative and exploratory. Iterative techniques can be either local
approximation techniques, or global approximation techniques. Local approximation methods require design sensitivity analysis
and are most suitable for linear static, dynamic and multi-body simulations. Global approximation methods are most suitable for
nonlinear problems as they are very efficient. Finally, exploratory methods are most suitable for discrete problems and nonlinear
simulations, but they are expensive as they require large number of analysis runs.
In real world, a design problem description is not deterministic; meaning that there is no one value for the loads imposed, for the
material properties used, for the dimensions manufactured but rather there is a range of values with associated variations that are
idealized using statistical distributions. Given the probabilistic nature of designs and the fact that optimization drives designs to their
limits; it is critical to include reliability and robustness during the design process for problems that are highly sensitive to these
variations.
Reliability is the ability of a system to perform and maintain its functions in routine circumstances, as well as unexpected
circumstances. Reliability-Based Design Optimization searches for a design that meets the required probability of feasibility given
the variations in manufacturing, operations, environment, modeling, etc.
Shifting the “mean of performance” to reduce the failure probability to the required level, i.e. reliability improvement
Robustness is the insensitivity of a design to the same variations as in reliability. In cases where variations in design and operating
environment result in the design performance deviation greater than the allowable deviation, it is critical for engineers to search for
a robust design. A robust design is one in which the variation in performance due to variation in design is within allowable limits.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 15
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Shrinking the “variation of performance” to improve consistency of the product, i.e. robustness improvement
Reliability and robustness-based design optimization covers the requirements of the above two problem formulations as increasing
the probability of a feasible design while reducing the sensitivity of the design performances to variations.
Shifting the mean of performance and shrinking the variation of performance, i.e. reliability and robustness improvement
In cases where the design requirements are barely met, reliability may be compromised and could require one to optimize again
considering the reliability requirements. Similarly, if variations in design parameters cause high variations in the design
performance, search for a robust design becomes necessary. Note, however, that this is often a computationally expensive search.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 16
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Design of Experiments (DOE) can be defined as a series of tests in which purposeful changes are made to the input variables to
investigate their effect upon the output responses and to get an understanding of the global behavior of a design problem.
Specifically, it is performed:
• To screen variables by looking for correlation between factors and responses, usually by running a factorial / reduced
experiment for a large number of factors with a few levels (as low as 2) for each.
• To construct a fit for an optimization or a stochastic study (to be computationally more effective a fit is used instead of
In general, 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.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 17
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Use the map above to guide during the study setup process. Please be aware that this map does not outline every HyperStudy use
case.
[Link]
[Link]
Is a structured, organized design/run matrix creation method that once run will be used to determine the relationships between the
different factors/variables (Xs) affecting a process and the output of that process (Y).
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 18
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Factors
Are system parameters (or design variables) that change the system performance. Factors can be controlled or uncontrolled.
A factor can be either Discrete i.e., slow (-) or fast (+) or Continuous i.e. temperature.
Variables
Are system parameters that can be changed to improve the system performance. Since this chapter is part of a design study
process, we will be using factors and variables interchangeably.
Levels
Are discrete (or continuous) values of the factor/variable. The values taken by in the range [-1; +1]. Number of levels per variable to
be considered depends on the level of non-linearity in the problem; for a linear model two levels are sufficient; for a quadratic model
three levels are needed.
Controlled factors
Are design variables that can be realistically controlled in the production (real world) environment. In HyperStudy, these are
assigned to a distribution role of Design or Design with Random; depending on whether they are deterministic or probabilistic
variables. Examples include gauge thickness of sheet steel, shape of a support bracket, and mold temperature.
Are variables that cannot be realistically controlled in the production (real world) environment, but can be controlled in the lab. In
HyperStudy, these are assigned to a distribution role of Random parameter. Examples include ambient temperature and occupant
seating positioning.
Confounding
Is the inability to distinguish between main effects and interaction effects. Confounding occurs when a fractional design is chosen
instead of a full-factorial design. The consequence of confounding is that the values calculated for main effects will have error
coming from inclusion of higher order interactions in the calculation and interaction effects will be unknown. The amount of
confounding in a DOE is quantified by its resolution.
5.3 History
An interesting “story” about a systematic clinical trial to compare remedies for scurvy which constitutes a type of DOE is depicted
on Wikipedia ([Link]
In 1747, while serving as surgeon on HMS Salisbury, James Lind carried out a systematic clinical trial to compare remedies for
scurvy. This systematic clinical trial
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 19
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Lind selected 12 men from the ship, all suffering from scurvy. Lind limited his subjects to men who “were as similar as I could have
them,” that is, he provided strict entry requirements to reduce extraneous variation. He divided them into six pairs, giving each pair
different supplements to their basic diet for two weeks. The treatments were all remedies that had been proposed:
• Twenty-five guts (drops) of vitriol (sulphuric acid) three times a day upon an empty stomach.
The citrus treatment stopped after six days when they ran out of fruit, but by that time one sailor was fit for duty while the other had
almost recovered. Apart from that, only group one (cider) showed some effect of its treatment. The remainder of the crew
presumably served as a control, but Lind did not report results from any control (untreated) group.
As we are looking at the history, one of course, needs to mention the work by Ronald Fisher (1927):
A methodology for designing experiments was proposed by Ronald Fisher, in his innovative books: The Arrangement of Field
Experiments (1926) and The Design of Experiments (1935). Much of his pioneering work dealt with agricultural applications of
statistical methods. As a mundane example, he described how to test the lady tasting tea hypothesis, that a certain lady could
distinguish by flavor alone whether the milk or the tea was first placed in the cup.
Thus, DOE started in testing and therefore classical DOE methods deal with testing behaviors and issues. Since then many
industries, like pharmaceutical, chemical, and manufacturing, have successfully applied DOE studies to their product development
process.
Lately, as DOE started to be adapted by CAE as an effective way of design exploration, more CAE-oriented methods such as Latin
Hypercube and Hammersley (see discussion below for details) have been developed. In a CAE model, for instance a sheet metal
forming model, factors such as thickness, shape design variables, and material properties can be changed to study their effects on
the model responses, and their respective interactions (if present at all).
For a casual reading on design of experiments versus design optimization, you can read Joe Pajot’s blog on
[Link]
The following example about a Bond Strength Study provides some good insight into DOE and its “power”. In this chapter we also
explain some basic principles of DOE.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 20
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
• Bond strength is assumed to be a linear function of both temperature and strength within these ranges of temperature
and pressure
• As a result, a two-level DOE is enough to study the effects of temperature and pressure on strength
We know that temperature, pressure, and adhesive viscosity affects the bond strength and we need to figure out which temperature
and pressure settings produce the highest and most robust bond strength.
In our lab we are able to control pressure and temperature but not viscosity. Viscosity is the property of the adhesive material which
is already purchased and so we do not have control over its settings. Since we can’t control viscosity setting (which has an effect
on the strength or performance), this variable is called an uncontrolled factor. Pressure and temperature are consequently called
controlled factors. Hence, we are going to focus in this study on the factors we can control, temperature and pressure. Of course,
this makes our lives easier …
The temperature is assumed to vary between 70 and 210 degrees, the pressure is assumed to vary between 30 and 45 psi.
Further, we assume that the bond strength is a linear function of both, temperature and pressure.
This may also be expressed as a study consisting of two variables, or factors (i.e. Temperature & Pressure). Their values may be
set to a lower and upper bound (lower and upper level), respectively. Hence, we are looking at a 2 factor 2 level experiment/ study.
This is also called a two-level Design of Experiment.
5.4.1 Effects
To understand the effects of the factors and the respective level we assume the following set of experiments (or runs):
Table of experiments
1 70 (level – 1) 30 (level – 1)
2 70 (level – 1) 45 (level – 1)
In the first experiment temperature and pressure are at their lower bounds: 70 degrees and 30 psi. The lower bounds are named
Level -1. Note, Level 1 and Level -1 may also be named level 0 and 1.
In the second experiment the pressure is set to its upper bound, 45 psi which corresponds to level 1. The temperature is kept at its
lower value 70 degrees (level -1). This experiment will give us an understanding on how the pressure change (increase) affects the
bond strength while keeping the temperature at its lower value.
In the third experiment the temperature is raised to its upper bound 210 degrees (level 1) and the pressure is set to level -1 (lower
value of 30 psi)
And finally in experiment 4, both factors are set to their higher bounds, level 1, respectively.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 21
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Thus, experiment 1 and 3 will give an understanding on how the temperature change (while keeping the pressure at its lower level)
is impacting the bond strength.
With experiments 2 and 4 we look at the effects of temperature increase (set to level 1) while the pressure is at its upper bound
(level 1).
The results of these experiments will tell us how the temperature (factor), how the pressure (factor) as well as a combination of
temperature and pressure change affect the strength of the bond. In other words, we study the effects of the factors as well as their
interaction, meaning how they influence each other.
In the image below the strength values as determined through the experiments are listed.
In Experiment 1 where both variables (factors) where at their lower bounds (level -1) the strength is 8 lbs. In Experiment 4, with
both factors at their upper bound (level 1) the strength is 42 lbs. and so on.
The same results may be shown in a Scatter Plot (taken from HyperStudy)
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 22
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
In the lower left corner of the plot, the temperature and pressure is at its lower bound (level -1), in the upper right corner
temperature and pressure are at their upper bounds (level 1), etc.
In the next step the effects of each variable/factor and their interaction (with each other) on the strength is plotted.
The above chart is called “Effects Plot”. But how do we get these charts?
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 23
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
The effect of temperature on strength (framed in dark color in the image above) is determined by averaging the strength values
when temperature is high and subtracting the averaged (mean) strength when the temperature is low.
The same math is done to understand the effect of pressure on strength (marked in light green):
That is mean value of strength when pressure is high – minus mean value of strength when pressure is low:
Look at the temperature plotted in the upper chart. Start point is level -1 (lower temperature bound) with a mean value of 17.0 lbs.
At level 1 (upper temperature bound) the mean value is 41.5 lbs. The difference (gradient) between upper and lower level is 24.5
lbs.
We redo the same considerations regarding the pressure effect. Lower bound is 24.5 lbs., upper bound 34 lbs. The difference
between upper and lower level is 9.5 lbs.
As reflected by the gradient of the graphs, the temperature (higher gradient) has a greater impact on strength than pressure.
5.4.2 Interactions
In the chart below the x-axis refers to pressure, ranging from 30 to 45 psi. The y-axis is strength ranging from 8 to 42 lbs.
At 70 degrees:
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 24
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
At 210 degrees:
Interaction plot
So, we plot the effect of pressure on the strength at a constant temperature of 70 degrees and 210 degrees, respectively.
As the plotted lines in the chart are not parallel, it tells us that there is an interaction between the factors pressure and temperature.
In other words, if both curves were parallel then the effect of temperature on strength would always be the same, regardless of the
pressure.
To see (from a more numerical point of view) whether the curves are parallel or not, just determine the difference of the gradients of
both curves (gradient of red curve – gradient blue curve):
Quite obvious the effect of pressure on strength at a constant temperature of 70 degrees is bigger (or more important) than at
higher temperatures.
Moreover, we can also derive from the chart that at low pressure and low temperature the interaction between both variables/
factors is most pronounced, i.e. for lower pressure and lower temperature we get the most negative interaction between both
variables/factors.
In contrast, looking at the upper red curve, the gradient is quite small indicating a rather robust situation/relationship between
temperature and pressure, and hence resulting in a better bond!
Question: But what does this finding tell me at all? What do we need to do to get the most robust bond strength?
Answer: If we have the budget to control one factor, then we should concentrate on Pressure!?
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 25
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Thus, if the goal is to have a robust and high strength bond, then we should aim for a temperature of 210 degrees in combination
with high pressure (upper right corner of the chart).
Quite obviously, this was a rather small size experiment with two variables (factors) with two levels (lower and higher settings). As
seen in the table above, 4 experiments where needed to investigate all different combinations:
Level factor = 22 = 4
In most design projects, however, we are confronted with many more variables. The number of designs (experiments) that cover all
possible combinations of design variables and levels
# of designs = (2# of DVs with 2 levels) (3 # of DVs with 3 levels) (4 # of DVs with 4 levels)
Scary enough, the number of designs grows very fast with the number of design variables.
For instance,
This result immediately provokes the question: Do we have the time, capacity, budget etc. to run all these 1296 experiments?
What if we pick a smart affordable subset of the full set (=1296), can we still capture enough information?
This challenge has led to the development of a broad range of Design of Experiment methods as we always aim to maximize the
information about the system while investing minimum effort! (sounds familiar as this “wishful thinking” applies not only to product
design).
When applying DOE in our CAE projects the latter situation, i.e. many design variables, in combination with limited budget is quite
common
• To construct an approximate model that can be used as a surrogate model for the actual computationally intensive
solver.
5.4.3 Confounding
Confounding occurs when two factors are associated with each other or “travel together” and the effect of one is confused with the
effect of the other. For example, in order to improve team performance, a soccer coach asks his team to run two miles a day while
the players decide to take vitamins. In this case the effects of running two miles a day and taking vitamins will be confounded since
it will not be possible to identify the effect of them on team performance independently.
In other words, confounding is the inability to distinguish between main effects and interaction effects.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 26
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
The consequence of confounding is that the values calculated for main effects will have error coming from inclusion of higher order
interactions in the calculation and interaction effects will be unknown.
To better illustrate this situation, we are looking at the example from the introduction again:
Assuming that we can’t afford to run 4 experiments (as we did before) but only 2. We then may would (rather arbitrarily) delete/
remove/neglect experiment 2 and 3.
Then the effect of pressure and/temperature on the bond strength would be:
By neglecting the other 2 experiments we confounded the effects of temperature and pressure because we can’t distinguish their
relative importance anymore, i.e. we can’t tell/see the effects of pressure and temperature on the strength independently.
Let’s look at the consequences if we would select two other experiments: Experiment 1 and 2 are neglected. Obviously, this
selection of experiments allows us to investigate the effects of pressure on the bond strength only; because the experiments are
conducted at a constant temperature of 100 degrees.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 27
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
0 lbs.
The effect of temperature on strength is zero because we didn’t investigate the effect of temperature.
We started with a very detailed design (4 runs, full factorial), then to 2 runs (pressure and temperature) which gave some indication
on their effects on the results (strength) to the last study in which temperature was constant. The latter study, however, yields the
least accurate results, i.e. a misleading result.
Hence, picking the correct set of experiments out of a larger number is very important. The good thing about it: You are not left
alone with this – HyperStudy helps you defining/selecting the right experiments!
[Link]
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 28
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
• DOE for Space Filling (more used for CAE specific applications)
• User Defined
A DOE study for screening (a two-level design with no interactions, for example) will provide a global understanding of the complete
system (giving the magnitude and direction of effects). This initial screening exercise will allow parameters not influencing the
system to be discarded, thereby reducing the number of factors and runs. The drawback of a screening DOE is that it is of lower
precision.
Plackett-Burman
A full factorial DOE evaluates responses for all combinations of design variable levels. This will tell us all the effects and
interactions but for cases with large number of design variables and levels, the total number of runs becomes large.
In other words, this method may be practical for cases where there is a small number of factors (e.g. 3 factors) and each factor has
two levels such as yes or no; -1 or 1 (X1 varies between -1/1; X2: -1/1; X3: -1/1)
Full factorial is not practical for most CAE applications where there are many factors possibly at several levels and the simulations
are costly.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 29
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Full Factorial Study (i.e. create all the combinations) with 3 variables with 3 levels ends up in 33 = 27 design runs (depicted by the
bold nodes in the image)
Usability Characteristics
• For a case with k design variables, each at L levels, a full factorial design has Lk runs. For studies with a large
number of design variables and levels, the total number of runs is larger. For example, for a study with eight factors
and each with three levels, 6561 runs are needed (38 = 6561).
• If the number of levels is not equal across variables, then the total number of runs is calculated by the product of the
Lk terms.
For example, consider eight variables: five variables with two levels, two variables with three levels and one variable with four
levels. The number of full factorial runs is 1152 = 25 * 32 * 41.
The following picture illustrates the full factorial run matrix for a three-variable problem (variables A and B have two levels and
variable C has three levels).
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 30
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
[Link]
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 31
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Fractional factorial DOE is a factorial experiment in which only a chosen fraction of the combinations required for the full factorial
DOE is run. Fractional factorial designs are used to reduce the number of runs required to extract pertinent information about the
main effects and two-factor interactions. The green dots in the image below illustrate the combinations a Fractional factorial design
considers.
This reduction in computational effort comes at the cost of an inability to completely resolve all of the main effects and interactions.
Higher order interactions are often confounded with each other and, in some cases, can be confounded with the two-factor
interactions. For example, for factors A, B, and C, each at two levels, only four runs would be required to resolve the main effects.
However, all of the two-factor interactions would be confounded with the main effects (A:BC, B:AC, C:AB). Explanation: A:BC may
be read as: Main Effect of factor A is confounded/blended with the interaction of B and C.
When applicable, the orthogonal arrays from other schemes, such as Plackett-Burman or Taguchi, are used internally to reduce run
count.
The amount of confounding in a Fractional Factorial design is classified by its resolution. Resolution describes the degree of main
effect confounding with interactions such as resolution III confounds main effects with 2-level interactions (hence there is no
resolution I or II). For our purposes, resolution IV is a good balance between accuracy and effort.
III: The effects are resolved with respect to each other, but all of the effects are confounded with the two-factor interactions.
IV: The effects are resolved with respect to each other and the two-factor interactions, but the two-factor interactions are
confounded with respect to each other
V: The effects are resolved with respect to each other and the two-factor interactions, and the two-factor interactions are resolved
with respect to each other
Usability Characteristics
• The desired resolution will determine the number of runs in the DOE
• Resolution type III should only be used on applications in which the interactions are known to be small with respect to
• When all variables have only two levels and the resolution is type III, avoiding the confounding between the effects
and specified two-factor interactions can be achieved by using the Interactions tab
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 32
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
• The techniques used to generate the run matrix work most effectively when variables have the same number of levels
• In HyperStudy, any data in the inclusion matrix is combined with the run data for post-processing. Any run matrix point
Settings
In the Specifications step, you can change the following settings of Fractional Factorial from the Settings tab.
Concatenation with
duplication between the
Use inclusion matrix False True or False
inclusion and the generated
run matrix
When a large number of factors needs to be screened to identify the ones that may be important (i.e., those that are related to the
system performance), we need to employ a design that allows us to test the largest number of factor main effects with the least
number of observations.
Plackett and Burman developed highly fractionalized designs to screen the maximum number of (main) effects in the least number
of experimental runs in case of two-level factors. Plackett-Burman designs are very economical designs (with the run number a
multiple of four rather than a power of two) and are efficient in screening when only main effects are of interest. This is because the
main effects in a Plackett-Burman design are, in general, heavily confounded with two-factor interactions. The Plackett-Burman
design in 12 runs, for example, may be used for an experiment containing up to 11 factors. PB can only be run for two-level designs
and in HyperStudy it cannot be used with more than 13 design variables.
• Are used for studies involving up to (N-1) design variables. The maximum number of variables you can use is 35
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 33
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
• Best suited for problems where the interactions are expected to be minimal and the main effects dominate
5.5.5 DOE for Space Filling - DOE for Response Surface Evaluation
[Link]
The objective of DOE studies for response surface evaluation is to uniformly distribute the design points in the design space in
order to feed into a fit method for accurate prediction of the the model behavior. The studies are performed with only a few factors
to obtain higher order response surfaces. This fit can then be used in optimization, stochastic studies and to do quick what-if
analysis.
In CAE, the models are already (and becoming even more) demanding, especially if one looks at computer run times. Crash
models and especially CFD model runs may last several hours, maybe even days.
Types: Box-Behnken
Central composites
Latin Hypercube
Hammersley
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 34
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Box-Behnken designs are used to generate higher order response surfaces using fewer required runs than a normal factorial. Box-
Behnken designs place points on the midpoints of the edges of the cubical design region, as well as points at the center.
Some characteristics:
• Box-Behnken designs place points on the midpoints of the edges of the cubical design region, as well as points at the
center
• The Box-Behnken design is nearly the opposite of a central composite plan in that it uses the twelve middle edge
• Box Behnken allows a second order surface to be generated through the points but requires less points than Central
• Should not be used when accurate predictions at the extremes are important
• It doesn’t explore the corners of the design space which may be considered an disadvantage of Box Behnken
The Box-Behnken design and the Central Composite Design can be visualized as near compliments of each other. They both
essentially suppress selected runs from a full factorial matrix in an attempt to maintain the higher order surface definition. For
example, for 3 three-level variables, the full factorial run size is 27 (=33). The central composite plan drops all of the middle edge
nodes, resulting in only fifteen runs. The Box-Behnken design is nearly the opposite in that it uses the twelve middle edge nodes
and the center node to fit a 2nd order equation. Central Composite plus Box-Behnken becomes a full factorial with extra samples
taken at the center.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 35
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Some characteristics:
• For building a second order (quadratic) model without needing to use a complete three level factorial experiment.
• Parameters:
From a user experience (personal view of course) it is not used often, also because it is rather tricky to find out (or define) the axial
points outside the design space
A square grid containing sample positions is a Latin square if, and only if, there is only one sample in each row and each column.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 36
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Some characteristics:
• Use case: If you can afford for instance to run 10 designs, then each design variable is split into 10 levels. Then the
method picks a combination of design variables in such a way that no one value is used twice. This situation (or call it
selection is depicted in the image). Of course, the more points we have, the better populated the design space will be.
• Default=Minimum runs for an approximation = 1.1x ((N+1)*(N+2))/2, where N = number of factors (don’t go below this
• Each design variable is divided into same number of levels (which is also equal to the number of runs)
• Latin Hypercube may not sample the limits of the design space
Latin Hypercube design is especially useful in exploring the entire design space and creating fitting functions to the exact re-
sponses. To get a good quality fitting function using an LH DOE, a minimum number of runs should be evaluated. (N+1)*(N+2) runs
are needed to fit a second order polynomial. Most responses are close to a second order polynomial within the commonly used
design variable ranges of -+10%. As a result, we recommend this equation to calculate the number of runs needed or a minimum of
1.1 ((N+1)*(N+2))/2 runs where the coefficient 1.1 is to increase the minimum number by 10% for cross-validation.
Hammersley works in similar way to Latin HyperCube. Hammersley uses a quasi-random number generator, based on the Ham-
mersley points, to uniformly sample a unit hypercube.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 37
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Some characteristics
• This technique generates a design similar to the Latin Hypercube but also attempts to distribute the points evenly
• This provides the best general-purpose DOE type for the generation of an approximation
Hammersley has a better coverage of the design space than Latin HyperCube. Look at the image above, in the Latin HyperCube
you see more a kind of clustering of design points than in Hammersley; also, there are quite some “white”, i.e. uncovered areas.
From a use case perspective, Hammersley is typically used for space filling DOE’s as it has a better design matrix. If the number of
allowed runs is increased both Hammersley and Latin HyperCube “converge”
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 38
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
[Link]
A lattice sequence is a quasi-random sequence, or low discrepancy sequence, designed to equally spread out points in a space by
minimizing clumps and empty spaces. This DOE type also has the property of extensibility, which means the method can take an
existing set of data in a space and add more data points to provide equal coverage. This property makes lattice sequences an
excellent space filling DOE scheme. The number of runs is specified by the user.
Usability Characteristics
• Use for exploring the entire design space and creating fitting functions to the exact responses. It is the recommended
• To get a good quality fitting function, a minimum number of runs should be evaluated. (N+1)(N+2)/2 runs are needed
to fit a second order polynomial, assuming that most responses are close to a second order polynomial within
the commonly used design variable ranges of -+10%. An additional number of runs equal to 10% is recommended to
provide redundancy, which results in more reliable post-processing. As a result, this equation is recommend to
calculate the number of runs needed or a minimum of 1.1*(N+1)(N+2)/2 runs (in other words, minimum number of
suggested runs in space filling DOEs is 1.1 times Hammersley or Latin HyperCube)
• Add existing data to the inclusion matrix to use the extensibility feature. While any data can be used as an inclusion,
the best performance can be expected when the inclusion is an existing data set from a MELS DOE
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 39
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Settings
In the Specifications step, you can change the following settings from the Settings tab (see summary next page).
[Link]
The user-defined design allows you to load your own design to perform parametric studies. The user-defined design is read in by
HyperStudy and is used like any other design. The advantage of using a user-defined design is that you can create your own
design based on individual requirements. You must specify the number of runs (rows) and the number of columns (=variables) in
the specified matrix in the first row. Variable values are defined as the level. Spaces, tabs, or commas can delimit the individual
elements of the matrix.
The user defined matrix uses integers to represent the corresponding level of the variable. This is in contrast to the run matrix DOE
(see further below), which contains exact values of the variables.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 40
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
First row – number of runs / designs; number of variables; 1=level 1, 2= level 2, 3= level 3
When you are using Run Matrix, you can use your own design matrix to perform parametric studies. The run matrix is read in by
HyperStudy and used as is. The advantage of using a run matrix directly is that you can create your own design based on indi-
vidual requirements. The matrix does not have to fit any DOE type requirements. It can be used to automate a parameter study.
The run matrix uses exact values of the variable. This is in contrast to the user defined DOE, which contains integers to repre-sent
the corresponding level of the variable. It is not necessary to utilize all designs in a study. Designs that are not desired can be
turned off from the Write/Execute runs panel. Spaces, tabs, or commas can delimit the individual elements of the matrix. The rows
define the different designs; the columns define the design variables.
The Run Matrix uses exact values of the variable. Rows=runs; columns=design variables
5.5.13 None
Again, allows to define your own matrix, this time however, you are using Test Data consisting of variables (DV) and responses R1
(=results, measured values)
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 41
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
A summary of the above summarized methods is shown in the graphs below (taken from the Online Help).
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 42
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
continuation
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 43
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
6 Introduction to HyperStudy
HyperStudy enables you to explore, understand and improve your system’s designs using methods such as design-of-experiments
and optimization. HyperStudy generates intelligent variations of the parameters of any system model and reveals relationships
between these parameters and the system responses. By using HyperStudy, you can make better decisions and optimize the
In other words, with direct connections to Altair’s Solvers, interfaces to several other solvers, and the ability to interface with any
solver, HyperStudy is the tool when it comes to DOE, Optimization, and Robust Design.
[Link]
The design of HyperStudy 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 also be used for multi-disciplinary
optimization of a design combining different analysis types.
[Link]
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 44
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
If you have set up a model in HyperMesh, for example, you can invoke HyperStudy which then has direct access to model
variables. If you’re using a solver that has a text input file that cannot be read to HyperMesh, you can parametrize it using the
HyperStudy editor.
HyperStudy uses its interfacing abilities both to generate additional input files for the solver (with varied design) for each
experimental measurement, and to read in evaluated responses.
Finally, if you’re working with a solver that has no existing interface to HyperMesh or HyperGraph, you could use the Templex
programming language to build a custom interface.
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 through HyperMorph; morphing technology in HyperMesh.
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:
• Assess the robustness of a design for controlled or uncontrolled variations in the design parameters
Our colleague Ken Mix summarized some key aspects of and about HyperStudy in the following video recording.
[Link]
1. Provides engineers with an easy way to study effects of design changes for complex analysis events.
2. Allows engineers to assess the robustness of designs and provides the guidance necessary to achieve robust designs.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 45
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
3. Allows engineers to perform multi-disciplinary optimization studies for different attributes of a design.
5. Complements existing CAE software with added functionality and direct interfaces to major solvers.
The HyperStudy benefits are summarized by Fatma Koçer (Altair) in the next video
[Link]
Remember that one of the main reasons we are using HyperStudy is that CAE is quite computationally intensive. It is prudent,
therefore, to spend some time planning your attack strategy. Without adequate planning, it is easy to find you have invested more
time and effort than you had intended to.
As with all experiments: Too much data is a reduced return on investment (more effort but no new information). In contrast, the
negative side from having too little data is poor results (which makes the efforts wasted). The effort involved in collating and
interpreting results is all too often underestimated. To make things easier for you, HyperStudy follows a “wizard” approach. That is,
the interface provides the various functions as a step-by-step sequence, ensuring that you complete the steps in the correct order.
Even before you start building your model, you should be clear on the answers to the following:
• What are the mathematical properties of the design variables? Are they continuous, discrete, discretized, integers,
etc.? These will take a role in determining which methods are applicable or more effective. Are the objectives and
constraints suitable? Are they physically meaningful? What are their mathematical properties?
• Can the responses be measured quantitatively? What accuracy is required for a meaningful experiment?
• Are there any effects that should be deliberately blocked or omitted? Should a screening-run be performed to verify
assumptions on importance? What levels should be used for the screening run?
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 46
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
• Which effects will be aliased or confounded by the screening run? Are they important?
• What should the sequence of experiments be? Can the results of the first experiment be used to create the second,
and so on?
• Last but not least did you line up your resources for these experiments such as hardware, software and time?
Also spend some time planning how you will collate and present results. FE models are often interpreted by displaying results on
the 3D model of the component, but this may not be appropriate. Remember that you will have to review a much larger magnitude
of results: you may have results of several dozen FE analyses!
How you use HyperStudy depends on your model type, your simulation software and your design objectives among other factors.
You can use HyperStudy as a standalone software or you can start it from another HyperWorks product, like HyperMesh Desktop.
I have a RADIOSS model that I want to do a size/ Once you are finished creating your shape variables
shape optimization study with. I will run the in HyperMorph, start HyperStudy from HyperMesh’
simulations in my PC Applications menu. Your model type is “HyperMesh”.
I have a MotionSolve model. I will run the simulations Start HyperStudy from MotionView‘s Applications
in my PC. menu. Your model type is “MotionView”.
I am using a commercial solver that is not in Start HyperStudy in standalone mode. Your model
HyperWorks, but it integrates with HyperWorks type is “Parameterized File”. You can create the
(Abaqus, LS-DYNA, Design Life, etc.). I would like to parameterized file by using the Editor option under
set up a size optimization study and will run the the Tools menu. Register the solver by using the
simulations in a cluster. Register Solver Script option in the Edit menu.
I did my analysis in a spreadsheet. Some of the cells Start HyperStudy in standalone mode. Your model
are design variables and some are responses. type is “Spreadsheet”.
Once you have finished setting up your study, you will need to select one or more study approaches to find the answers to your
study questions. The best combination of approaches and the best method to use for each approach depends on your application
and objectives.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 47
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
In HyperStudy, a study is a self-contained project (saved into a study file, with a .xml extension) in which models, variables,
responses, and approaches are defined. It’s a good idea to create a separate folder for each study.
The HyperStudy GUI was designed to guide you through a series of steps to set up a study and/or to add an approach. Each step
must be completed before progressing on to the next step.
When you create a study or open an existing study, the study opens in the “Explorer”, and any files associated with the study will be
displayed in the “Directory”. Specify the directory location when you create a study. When opening an existing file, the directory
location defaults to the location of the file selected.
As you navigate through the Explorer (by clicking on the steps), related information becomes available in the work area for
development or analysis (as with “Define models” in the image below). Often, several tabs will be displayed in the work area.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 48
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
• Parameterized File: Select a Parameterized File model if you want to use a template file. A HyperStudy template file
is an ASCII text file that contains the parameterized version of the solver input file (e.g. OptiStruct, RADIOSS,
AcuSolve, etc.). The template file extension is .tpl. The most basic HyperStudy template file is a data file in which
certain data fields are replaced with parameters using a Templex statements (very important; see example further
below)
• Internal Math: Select an Internal Math model if you want to use the HyperStudy response Expression Builder to
calculate responses as functions of design variables or responses. As shown n the example further below, Internal
Match is also used to process test data (e.g. Excel sheet with variables/factors and results/responses)
• Spreadsheet: Select a Spreadsheet model if your calculations are done in an Excel spreadsheet (in other words,
some math is done inside the Excel sheet). With this model type, you must load the spreadsheet you want to work on
in the Resource column. Once you load a .xls file, HyperStudy automatically defines the Solver input file and Solver
• HyperMesh: HyperStudy is started from within HyperMesh; HyperStudy then has direct access to the HyperMesh
• MotionView: HyperStudy is started from within MotionView; HyperStudy then has direct access to the MotionView
• Workbench: Select a Workbench project file to import design variables and responses from ANSYS Workbench.
HyperStudy recognizes ANSYS Workbench Input parameters as design variables and Direct Output parameters as
responses
• SimLab: Select a SimLab project (.sls) file to import design variables from SimLab
• FEKO: Once a FEKO (.cfx) file has been added to HyperStudy, models parameters are automatically identified
• Flux: Once the Flux link file (that has been generated previously from Flux) has been added to HyperStudy, models
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 49
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
System parameters that you can change to improve the system performance. Examples of design variables are beam dimensions,
material properties, diameter, and number of bolts. Design Variables can be continuous or discrete. A design variable can be a
numerical value, as is common with numerical analyses. Since HyperStudy is a general-purpose tool, the design variable can be
quite general - it can even be a text-string. Remember that the levels of a design variable are meaningful only if it is discrete. If you
want to carry out a screening run with continuous design variables, you can define them as discrete for the purpose of the
screening. If the variable is continuous, you specify the bounds for each, instead of the levels. The subsequent DOE will decide
which levels to use within these bounds, depending on the type of design specified for the experiment.
In the Define design variables step, there are four tabs: Define Design Variables, Details, Distributions and Link Variables. In all
four tabs, you can add and/or remove design variables to your model. In the first three tabs you can review and edit the following
design variable properties:
• Active/Inactive status (Once a variable is unselected; that is. made inactive; it is no longer a variable but is fixed to its
initial value)
In the “Link Variables” tab, you can link design variables to each other to reduce the number of independent variables and/or of
different models in multi-model studies to have synchronized design updates between models. You can also link the design
variable of a model to the responses of other models. If the input of a model is a function of outputs of other models, you can add a
design variable for the input of the dependent model and responses for the outputs of the independent models and link the design
variable to the responses by entering the dependency in the expression field.
3. Specifications
Nominal Run
Runs one simulation where the design variable’s values are set to the initial values.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 50
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Checks the study setup and the design space using three runs. The first run sets all of the design variables to their nominal values,
the second run sets all of the values to their lower bounds, and the third run sets all of the values to their upper bounds.
Sweep
Evaluates design alternatives for a study where the design variable values increase in equal increments. For example, the first run
sets the design variables’ values to their lower bounds, the last run sets the design variables’ values to their upper bounds, and the
runs in between will be set at equispaced incremental values that are determined by the number of runs you specified. By default,
five simulations are running.
In sweep study, the values for a discrete variable are iterated by index. If the number of runs exceeds the maximum index of the
discrete list, the indexing scheme returns to the first index in a periodic sense.
Definition of responses. These are chosen from the results of the evaluation carried out by the high-fidelity model. For instance,
weight, volume, displacement, strain, reaction forces, frequency or stress (i.e. solver dependent you either reference a text-output
file or a binary results file).
Finally, the
In rather general words: A study approach is a specific set of steps taken to study the mathematical model of a design. In
HyperStudy, there are four different approaches:
• DOE
• Fit (In cases where simulation resources are scarce, the objective is to have a quick trade-off tool and/or noisy
responses need to be smoothened to increase the effectiveness of further studies; you need to consider using fitting
• Optimization
• Stochastic
Each approach serves a different purpose in the design study. The required steps for each approach is similar but there are small
differences when needed. For example, you can use the DOE approach (focus of this eBook) if you need to learn the main factors
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 51
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
affecting your design, but you need to use the optimization approach if you want to find the design that achieves the design
objectives while satisfying design requirements.
Once the study has been defined (Study setup completed), you specify what type of experiment you want to use.
Remember that:
• Full Factorial is not recommended if # factors > 5, since the combination of the number of factors and their levels can
• Fractional Factorial is often used with just 2 levels for each factor
• Modified Extensible Lattice Sequence (MELS) is our recommended (default) space filling scheme
For the study, you will need to distinguish between controlled and uncontrolled variables. The former consist of design variables
that you want to manipulate as a part of your design, while the latter are due to uncontrollable noise. You can use different DOE’s
for the controlled and uncontrolled variables, depending on the amount of effort you can afford to spend.
Once you have done this, you fine-tune your experiment. Recall the table drawn up earlier when the Fractional Factorial design was
discussed. Most DOE’s are specified as a matrix, showing the levels that will be used for each factor, and which effects will be
confounded. Fine-tuning means you can edit the matrix to change the allocations for each factor / level and the interactions
between them.
Once the DOE has been specified, HyperStudy runs the analyses and extracts responses for each of the designs.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 52
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
[Link]
You can invoke HyperStudy as a standalone product, run it in batch mode, or from within HyperMesh and MotionView using the
“Applications” menu. The interactive standalone mode can also be accessed through HyperGraph and HyperView using the
Applications menu.
There a number of useful options that you can use to start HyperStudy in UI or in batch. Please have a look at the Online Help
documentation for more details.
Also, to be mentioned is the information available in the Online Help Study Contents → Setup-Define Models → Specify Solver
Input Arguments
A Solver input argument is any argument to be passed to the solver. The default argument is $file, which means that the qualified
solver input file name is passed to the solver script.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 53
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Once HyperStudy is started you will see the following Graphical User Interface
The “HyperStudy Welcome” page as shown above gives you easy and direct access to “Start a Study”, or to access a “Recent
Study” (here only one recent study is listed).
Note: To open a recent study (up to 6 studies are listed) just click on the study of interest will open it.
Also note the “Quick Start” in the lower left area of the browser which allows to start the example by clicking on it (Beam Template
=OptiStruct Example; Beverage Can = Internal Math Example; and an example regarding a Generic Solver). The studies are set-up
already, hence allowing to learn more about the set-up or even to demo it.
The Graphical User Interface (GUI) was strategically designed to guide you fluently through the study setup and investigation
process. Use the GUI to take full advantage of the HyperStudy capabilities needed to quickly learn about the system you are
studying (the GUI is depicted on the following page).
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 54
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Once you started your study-set up and you make changes e.g. inside the Specifications as shown in the image below, the Apply
button (highlighted in yellow) needs to be activated to confirm the changes/settings. If your settings are consistent, the system
“allows” you proceed to the next step.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 55
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
[Link]
[Link]
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 56
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
The user sets up the study by identifying the variables, solvers for simulations and the responses to be monitored. Then the user
can choose to perform either DOE / Optimization / Stochastic studies or perform any combination of them. The results can be
processed using HyperStudy’s variety of post processing utilities. The HyperStudy GUI equivalent of the flowchart is shown below.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 57
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Joe Pajot / Altair provides a very comprehensive overview won the workflow (process). In his video he even goes beyond the scope
of this book: Fitting and Optimization.
[Link]
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 58
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Parametrization is a function of the model. Depending on the model you pick, whether it is HyperMesh, MotionView, Template,
HyperStudy Internal Math, the parameters are imported through different mechanisms
• Workbench or Excel: Design Variables and Responses can be directly imported (see respective icon in the image
below)
• HyperMesh/MotionView: provides a list of possible DVs, (HyperMesh model is the preferred model when there are
shape variables).
• Resource file: File with parameter definitions, e.g. Template file, HyperMesh file, Workbench project, …
• Solver input file: HyperStudy writes this file taking the information from the Resource file. Note: For some solvers such
as RADIOSS the name specified as Solver input file must be the same as specified as Resource file. Moreover, for
some solvers (like RADIOSS) two (or more files) need to be specified. These files need to be separated by “;”. The file
• HyperStudy comes with the solver execution scripts for HyperWorks solvers, i.e. HyperStudy knows how to execute
RADIOSS, OptiStruct, AcuSolve etc. For non-Altair solvers you may need to point to an existing script or you may
need to create one first (see the Appendix “The Role of the Solver Script” for more details).
The information about the Design Variables is typically derived from the Resource file. Variable Data Type may be Real, Integer or
even of type String and may be discrete / continuous.
A more advanced topic mentioned for completeness is Design Variable Linking (please check the Online Help for more information)
as used for:
• Multi-disciplinary studies (you link the common variables so that they change consistently)
• Chained solvers → output of one solvers becomes input of next solver; → link the input of the second solver to the
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 59
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
6.6.3 Specifications
After the design variables have been defined, we move forward to what is called “Specifications”
• System Bounds Check- creates a table of 3 runs, one at the initial values, one at all lower bounds, one at all upper
bounds
System Bounds Check. The combination of runs is automatically configured. To view this table, click on “Apply” and then on “Next”.
• Sweep
Creates a set of runs where the values of all the design variables vary from their lower to upper bound.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 60
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Of course, you can change the settings for lower and upper bounds according to your “needs” – just open the “Edit” panel and edit
the Run Matrix.
Note: It is recommended to run, for instance the System Bound Checks to make sure that the model set-up is healthy/correct and
behaves as expected. If three runs are too prohibitive, select two runs instead.
The evaluation of a model consists of three phases: Writing, executing (Job Management), and Extracting.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 61
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
The role of the solver script maybe best described by “mapping mechanism”:
Simple question: Given an input file (e.g. HyperMesh, internal Math file) how do I generate output files?
This may seem simple, but answering this question is the blueprint. Imagine having an input file (like OptiStruct *.fem file):
The solver script must do all which you would do manually to create the outputs given the input, but non-interactively, and should
wait until completion before finishing.
Best Practice
• Assuming you have input file, understand all the steps to get output files
• Usually do this last, as it is the least crucial step but makes testing limited to HyperStudy only
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 62
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
[Link]
Something to note:
• Responses can be of varying complexity - sometimes it is just a number read from an output file, sometimes it is the
• We use the “Expression Builder” to construct these responses using simple pieces as building blocks.
• Expression builder has all the pieces to facilitate the construction of any expression, from simple to sophisticated.
The Expression Builder shown below can be accessed in the “Define response” step by clicking on the three dots … in the
Expression column.
Expression builder
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 63
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Moreover, a Response is usually a function of a solver output but sometimes it can be of only design variable values:
Response=area_2curves(v1x, v1x, v2x, v2y) where v1 and v2 are test and simulation data.
Response = 10
(If you have an application where you are looking for a feasible design but don’t have any responses to minimize or maximize, you
can create such a response and make it the objective function)
Note: Data from a file (e.g. *.out file from OptiStruct) is read as a vector but Responses have to be scalars Hence, you have to
perform an operation to create a scalar expression from a vector
Example:
Why v_1[0]?
In this case, it is an OptiStruct *.out file and we have a reader for it.
As we can only work with scalars in HyperStudy, and this particular response is a scalar, we put the index, v_1[0].
So, a response is an expression that is made of Functions, Design Variable, Responses, File Sources (for files that HyperWorks
has readers for e.g. h3d, outfile), ASCII Extracts (for ASCII files HyperWorks has no reader for, e.g. an in-house-code).
Scalars, operators, design variables, responses, file outputs are the building blocks of a response (don’t, miss to hit the INSERT
Varname icon)
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 64
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Functions
[Link]
There are 250+ functions in the library, such as: Min, max, resvector, akima, butterworth, etc.
You can double click on the number next to the function varname to insert the function. This is particularly useful in resvector,
readsim (details further below and Online Help).
In addition, you can add external functions which you may implement in Templex or HyperMath which can then be added as an
external function. For more information about this option please see tutorials HS-1505: Register a Templex Function in HyperStudy
and HS-1506: Register a HyperMath Function in HyperStudy.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 65
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Readsim (available along with HyperStudy 14.0). Use case is to read the entire time history of the stress, which may then be used
to identify its maximum value.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 66
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Double click on the number next to “Function→Readsim” opens up the above pop-up window.
[Link]
File Sources allows for selection of result values from result files of solver runs for which HyperWorks has reader for.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 67
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
In the pop-up window choose Type, Request and Component. Again note, that the results are stored as vectors. As the study
requires a response to be a scalar value, use functions such as min(), max(), integral(),
define column with [..] e.g. v_1[0], v_1[numpts(v_1)-1] and recall that the index starts from 0.
File Assistant
Along with HyperStudy 14.0 a new tool was introduced: File Assistant.
The Expression Builder is quite demanding. In many cases the Expression Builder can be replaced by the File Assistant. In the File
Assistant UI, you select a single file and the type of data/result of interest (see image below).
The File Assistant can be accessed in the Define Response step →File Assistant.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 68
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Within the File Assistant (which guides you through the various steps) you may also do some math on the results
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 69
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
ASCII Extract
For ASCII files that we do not have readers for (ex: in-house code result files) make use of ASCII Extract
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 70
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
ASCII Extract provides the option to use a key word (here Subcase Mode Frequency Eigenvalue) to identify (or mark) the data of
interest.
Response Examples
[Link]
We may face the situation that the output HyperStudy reads in is not in the same exact format we need. For instance, in crash
analysis, you often want to look at the Force versus Displacement curve. However, most of the time you have Force vs. Time and
Displacement versus Time.
If you run into a situation like this there are functions available that can help you, or contact the moderated Support Forum.
[Link]
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 71
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Now after the DOE runs are completed probably the most demanding part of a DOE starts: Postprocessing.
What do I look at? How do I interpret the results? And what do I do with that newly gained piece of information?
In HyperStudy there are 6 fundamental ways of looking/postprocessing data – regardless whether it is from DOE or Optimization.
These options are depicted on the left side of the image above:
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 72
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
The DOE specific postprocessing options (highlighted by the green box) Pareto Plot, Linear Effects, and Interactions are discussed
further below.
The Integrity Tab contains a series of statistical measures on variables and responses:
• Health High level summary of statistics used to easily spot inconsistent, non-changing, or missing data
• Summary Basic descriptive statistics that presents information on the data in groups such as quartiles or ranges
• Distribution Detailed descriptive statistics used to quantitatively describe the distribution of data points
The Health Check provides a high-level summary of statistics used to easily spot inconsistent, non-changing, or missing data.
In the image above we see a 100 run DOE which delivered in general 100 unique (result/response; in here some results must have
been the same, i.e. indicated by 99/98) points. There are no entries without any values (No Values), and there are also no “Bad
Values” (e.g. divided by zero)
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 73
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
In this example there are 3 responses which hadn’t any values, and there is a number of ranges that are “zero” indicating that
nothing has been changed. Hence, a warning (colored in red) is prompted requesting us to go back to the date to better understand
what happened. For instance, the data shown in the table may come from a test and there haven’t been 3 test data (No Values)
available. As a consequence, the input data must be cleaned up first; or it may have been simulation data and the simulation run
didn’t converge.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 74
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
In this table we see that 50 runs have been conducted. However, we only see 25 (26) unique results. So why do we run that many
simulations if we get only 25 results at the end. Again, this indicates that something may be wrong.
This check provides basic descriptive statistics that presents information on the data in groups such as quartiles or ranges
1st quartile = 25th percentile (splits off the lowest 25% of data from the highest 75%)
3rd quartile = 75th percentile (splits off the highest 25% of data from the lowest 75%)
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 75
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
All the information from above such as mean, median etc. goes into BoxPlots (under Distribution) as shown further below.
Some general explanations regarding the different columns is shown under “Distributions”. More information about the statistical
indicators for responses are listed in the Integrity table columns.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 76
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 77
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
In the Distribution tab, view all variable and response data in a histogram or box plot. Switch between histogram and box plot view
by clicking the (histogram) or (box plot) buttons located above the Channel selector.
Histograms
In Histogram view, the following data is displayed for all variables and responses
Histograms display the frequency of runs in 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. Histograms are displayed by red bins
PDF (Probability Density Function) curves illustrate the probability of the response being equal to a particular value. PDF is
displayed as a green curve.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 78
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
• CDF (Cumulative Density Function) curves illustrate the probability of the response being less than or equal to a
particular value.
Or in other words - It tells you how many peaks there are, what kind of distribution it follows etc.:
• out of 150 runs, 8 had a styling value in the 0.22 bin, 14 had a styling value in the 0.36 bin, etc. (see image below)
• gives information about the shape/properties (peaks, skewness, modality (bimodal, etc.), kurtosis) of the distribution.
PDF refers to “Probability of Distribution Function” which runs – more or less - parallel to the Histogram
CDF is the sum of the PDF’s – it goes from zero to one, because you sum these values up. Its slope tells you where changes occur
faster or slower.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 79
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Box Plots
In Box Plot view, data is sorted, and a box is drawn from the lower quartile (1st quartile, Q1, 25%) to the upper quartile (3rd quartile,
Q3, 75%). Quartiles of a sorted data set consist of the three points (Q1, Q2 which is also the median, and Q3) that divide the data
set into four groups, each group comprising a quarter of the data. The median and mean of the data are also marked in the box. In
HyperStudy, this box is painted dark green (see images below).
Box plots may also have lines extending vertically from the box to indicate the data outside the lower and upper quartiles.
Furthermore, to identify outliers, these lines may extend only to the “whiskers” as opposed to the minimum and maximum of the
data.
(Outliers refer to designs which behave much differently than other designs. Outliers may behave much better or worse than other
designs. Hence, there is a need to investigate the causes of the outliers so that you either better understand which combination of
design variables caused the much better performance, and vice versa, what should be avoided to end up with a poorly performing
design).
Whisker location is calculated as a function of lower and upper quartile and the difference between them (this difference is known
as interquartile range, IQR) as:
Any data that is not within the whiskers are identified as “outliers”. In HyperStudy, whiskers are displayed as a light green box
instead of as a vertical line, and data points are indicated by blue dots. Horizontal scale is their run number and vertical
scale is their value.
Box plots display the distribution of data. Use box plots to find the range, mean, median, quartiles, whiskers and outliers. This
information tells you the spread and skewness of the data and helps you identify outliers. It is important that you understand the
spread and skewness in order to understand and improve the variations in the data. Identifying the outliers gives you an opportunity
to investigate these data points and resolve possible issues that you may have missed.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 80
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
The image below illustrates a comparison of a box plot of data sampled from a normal distribution to the theoretical probability
distribution function of the normal distribution. The dark green color indicates the interquartile range, the Light green color indicates
the range of the whiskers, and the red color indicates outliers.
So, why should we care about outliers? Take a look at image below. The top plot shows a data value that looks like an Outlier
(Outlier 1). Using a linear least square estimate one can see effect of including and omitting Outlier 1. Observe that the two lines
are quite close to each other, indicating that the outlier has very less influence on the predictive nature of fit. In the lower plot
however, this is not the case. Outlier 2 when included exerts more influence and pulls the best fitted line towards it. The difference
between two cases is that outlier 2 has more leverage. Meaning that it’s X axis value is quite extreme from the other data points.
This is marked as High leverage and high influence. So, knowing where the Outliers exist in given data and then how to deal with
them can save you from potential pitfall of fitting erroneous mathematical model and providing wrong report to customer.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 81
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
HyperStudy helps you in identifying Outliers using Box plot (Postprocessing-Distribution- icon on the right).
For more information on calculation please refer to Box Plot help page in HyperStudy. (Hint: Use capping methods. Any value
which is out of range of 5th and 95th percentile can be considered as outlier)
Once you have identified Outliers in your data, next question is how to deal with them. Following points could assist.
1. Does the data make sense: E.g. out of 50 samples which were used to record fatigue life 98 percent show a mean life
cycle of 1.5 million and 2 percent show a life cycle of 10,000 cycles. This could be experimental or measurement error. In
this case if the customer is positive that the life cycle of a given component cannot be so low then those sample should be
2. In most cases, however, removing data is not so straight forward. Couple of things you can do:
Create a model with and without the outlier(s). If the model remains unaffected (very marginally affected) by the absence of outliers,
then you can drop them. Again, this should be documented.
If the model (R^2, Adj. R^2 change drastically) then we could do following:
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 82
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
• One option is to try a transformation. Square root and log transformations both pull in high numbers. This can make
assumptions work better if the outlier is a dependent variable and can reduce the impact of a single point if the outlier
is an independent variable.
• Another option is changing the model itself. E.g. In the given image, exponential model would do a better job with the
outlier intact.
3. Treat separately: If there are significant number of outliers, we should treat them separately in the statistical model. One of
the approaches is to treat both groups as two different groups and build individual model for both groups and then
In other words:
If you look at Postprocessing→Integrity→Health some design may be marked as “Outliers” (see next image).
To better understand which run (and hence which combination of design variables) is the cause of the outlier, go to
Postprocessing→Distribution→Box Plot (see below).
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 83
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
By hovering across the outlier, the run number and the response (here Volume) is shown along with other information such a total
number of runs (here 61), minimum and maximum values of the volume.
In a linear static run like the one conducted, the outlier refers to a “real” (or reasonable) result, i.e. model run successfully
completed. However, in an explicit run (like crash simulation), the outlier may indicate that the run was – let’s phrase it very general
– subjected to some issues such as run terminated “accidently”: Maybe convergence was not reached at the time the analysis
terminated. In such cases HyperStudy extracts the last available response value which may be far off from all other designs …
Hence, one step you would pursue is to check the model (and results) of the run indicated in the BoxPlot (here run 53). All relevant
files are contained in the respective working directory. You can access to it easily by Browsing the folder or Going to the Folder
from
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 84
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
• A vertical, equally spaced parallel line is drawn for each variable and response
By default, the min and max range for each selected variable/response is displayed at the top and bottom of an axis. Each run in
the data is represented as a colored line passing through the axes.
For instance, the “Diameter” (shown in the left) ranges from 25.05 to 94.95, Height (second vertical line) ranges from 47.47 to
184.62 etc. By picking a curve (design of interest) you get another graphical feedback regarding the importance/impact of a
particular design variable on this design.
Alternatively, you may look at a particular response, let’s say Volume. If your project aim is to find a design within a given Volume
range, span (open) an appropriated window (left mouse) ver the acceptable Volume range. As a result, all model configurations
(here 5) which result in the desired volume range (shown in the lower right corner) are depicted. In addition, the graph helps to
understand the effects of individual design variables (e.g. height) on the Volume (for instance, height significantly the volume).
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 85
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Snake plot
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 86
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Overall, the above described visualization methods are applied to better understand the data, e.g. to see trends etc. By using a
combination of these methods, you should see effects (or be able to extract information) in the data you wouldn’t see by
restraining/focusing on a single plot/graph.
Scatter plots (or anthill plots) are 2D representations of all responses and variables. Each dot stands for one computation (= one
line of the table). The X and Y axis can be any column of the data set. The purpose of the scatter plots is to graphically highlight the
relationships between a variable and a response or a response and a response.
Some characteristics:
Correlation coefficients
• -1 indicates a strong but negative correlation and 1 indicates a strong and positive correlation.
In the left upper insert / chart a 2D scatter plot depicting the effects of Volume and Diameter are shown. Quite obviously, there is a
correlation between both design variables. The picture looks very different if we plot Manufacturing costs vs. Height. Here the data
are scattered; there is no clear pattern.
Alternatively, you may create a correlation plot as shown on the right side. In here “1” refers to a positive correlation, -1 indicates a
negative correlation.
One of the most powerful aspects of a scatter plot, however, is its ability to show nonlinear relationships between variables.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 87
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Furthermore, if the data is represented by a mixture model of simple relationships, these relationships will be visually evident as
superimposed patterns.
[Link]
The DOE specific options are shown on the right side of the image:
• Pareto Plot
This is a DOE post-processing technique that presents the effects of the variables on a response in a bar chart which ranks the
effects from largest to smallest. These simple to understand charts are an effective tool to present the results of a DOE.
Hashed lines with a positive slope indicate a positive effect (have a close look at the colored “columns” in the image below). If a
variable increase, the response will also increase. Hashed lines with a negative slope indicate a negative effect. Increasing the
variables lowers the response.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 88
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
For instance, in the example shown below increasing “length_5” has a negative effect on the Max_Disp and hence would result in
smaller displacements. Increasing “length_1” has a positve effect and would result in a larger maximum displacement.
Pareto plot
In order to control the number of displayed variables or to activate the “Effect curve” click on the following icon
Pareto settings
• “Effects based on all variables”. When enabled, the effect is calculated using all variables simultaneously.
• “Linear effects”. When enabled, the effect is calculated using each variable independently (same as linear effects)
• “Displayed variable selector”. Controls the number of variables (bars) displayed in the plot. This setting does not
Looking at the plots below, one can quickly see that the red bars are very important to both of the first two responses. Looking at
the labels, this means that “thickness” is important for “Mass” and “Disp”. The variable – color combinations are consistent for all
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 89
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Pareto Plots shown at a given time. This is useful for visualizing the effects of multiple variables on multiple responses at the same
time.
Each bar represents the effect a variable has on the selected response. You can choose to calculate the effect independently
(linear effects) or collectively (multivariate). The line, called the Effect Curve, indicates the cumulative effect. Effect curve is what
you want to look at if you want to check whether the Pareto Principle holds true for your case. In the example Pareto plot below, 80-
20 rule is valid as only a small subset of the design variables has a significant effect on the response, Styling.
What else do you observe in this example plot (hint: check the hashed line slopes)?
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 90
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Linear effects are plotted by drawing a line between the average value of the response when the design variable is at its lower
bound and the average value of the response when the design variable is at its upper bound.
As a reminder: A horizontal line implies that this design variable has no impact on the design performance (red curve), whereas the
blue curve depicts a negative relationship of the design variable (here Thickness) on the design (for a small value of the design
variable Level -1 the response (here “Displacement”) is at about 0.0025, whereas at its higher bound Level +1 the Displacement is
less than 0.001.
For completeness the definition of Interactions and Effects are repeated here:
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 91
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
6.8.3 Interactions
An interaction is the failure of one variable to produce the same effect on the response at different levels of another variable.
In other words, the strength, or the sign (direction) of an effect is different depending on the value (level) of some other variable(s).
In the Interactions tab you can view the effect of a design variable on a response at varying levels of other design variables in an
interaction plot or interaction table.
To change the format interactions are displayed, click (Interactions Plot) or (Interactions Table) above the Channel selector.
Run X Y F(x,y)
1 0 0 1
2 0 2 401
3 2 0 1601
4 2 2 401
Design matrix
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 92
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Interactions plot
In the I-Beam example recorded by Joseph Pajot the before mentioned steps are discussed again.
[Link]
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 93
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
7 Introductory Examples
In the following hands-on exercise, we’ll start with a HyperMesh model. In other words, we are going to start up HyperStudy from
within HyperMesh.
Note: Basic HyperMesh skills are required, as we are not going to give an introduction in HyperMesh here – even though we show
some very basic steps in this first tutorial. In case you need to learn HyperMesh, please attend the free eLearning course: “Learn
Pre-Processing with HyperMesh” available in the Learning and Certification Program ([Link] or
/and the free eBook: Practical Aspects of Finite Element Simulation ([Link]
practical-aspects-of-finite-element-simulation-a-study-guide/)
7.1 Study Setup for a HyperMesh Model with TH, Size and Shape Variables
This exercise outlines the procedure for selecting design variables in HyperMesh and adding them to a study. A HyperMesh
database that includes a beam with thickness and shape variables is loaded into HyperMesh. HyperStudy is then launched from
HyperMesh and the design variables are selected for HyperStudy.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 94
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
The file for this exercise is named: beam_shape.hm (see the zipped model files which come along with this eBook). Please copy
this file to your working directory first.
While the HyperMesh desktop application starts, select the User Profile “OptiStruct”
User Profile
The loaded HM model already contains all relevant information such as loads, load steps, material, property and most importantly
“shape definitions” (Note: the shapes have been created by using the Morphing technology available in HyperMesh).
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 95
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
For visualization purposes all previously defined shapes are applied to the model. In the image below, the brown colored elements
represent the base model (without applied shapes), whereas the green colored elements represent the model with applied shapes
(i.e. multiplier = 1).
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 96
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Variables:
R1, R2, H1, H2, l1, l2, 4 Beads along Y and Z, Shell Thickness Define responses:
This launches a Message Log and the HyperStudy application and enables the link between HyperMesh Desktop and HyperStudy
for reading model variables and enabling model file output for the study.
Note: Since the design variables are interactively updated within HyperMesh Desktop, the application must remain open throughout
the study, and the new input file for the next run is written out from HyperMesh Desktop.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 97
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
In HyperStudy, click on “New Study” to create a new study based on the model.
In the HyperStudy–Add window (see image), click OK to use the default labels for the study label and variable.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 98
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
After hitting the “OK” button the following window will be prompted:
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 99
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
This dialog box allows you to assign a name label to this model and change the variable type as well as specifying the application
origin of the model.
Since the source file is a HyperMesh model, we need to select the HyperMesh icon/symbol. We also accept the default values and
add this new model to the study.
Ensure that the “Solver execution script” drop-down selector is set to OptiStruct ( os ).
Ensure that the “Solver input arguments” is set to $file. In the “Solver input file” field, enter “[Link]” (Note: this file doesn’t exist
yet. The file name will be assigned to all the different model variants created by HyperStudy).
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 100
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Also notice that the “Define models” step is not completed yet – otherwise you would see a green check mark.
Next, we define, actually import variables (located at the bottom of the Work Area) to bring up the Model Parameters dialog box
and to add OptiStruct Model Parameters in HyperStudy.
A Waiting… dialog box will appear to connect HyperStudy with HyperMesh Desktop application (and waits for your input)
Proceed with design variables selection from the “Model Parameters” dialog box.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 101
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
The exciting “thing” is that HyperStudy automatically knows about available model parameters, i.e. Thickness, Shape(s), Materials,
and loads (FORCE). This makes the next steps rather easy …
Expand the HyperMesh Model Parameters for “Thickness” and “Shape”; Add all of the variables (Thickness and Shape) shown in
the picture below to the HyperStudy Parameters list as well. Click OK to exit the Model Parameters dialog box.
If you select Thickness: PSHELL.T.1, the respective values (initial, lower and upper bound) are displayed. Of course, lower and
upper bounds can be customized (even later if needed).
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 102
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Lower and upper bounds of shell thickness are automatically considered to be +/- 10 % of the initial value. Please note, that this will
be discussed in some detail in the Design Variable step of the main user interface.
Don’t forget to confirm your selection/setting with “Add”. Only then the HyperMesh Model Parameters will be added/listed under
HyperStudy Parameters.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 103
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Note: The Model Parameters window default width may not be wide enough to show the “Add” and “Remove” buttons that are on
the top right side of the window. If so, please enlarge the window.
Click “Next” (lower right corner of the screen) to advance to the “Define design variables” step and review the variable properties
such as lower and upper bounds, initial values, etc.
Click “Next” to advance to the “Specifications” step to run the Nominal Run.
As mentioned under Details, the Nominal Run, runs the model using initial values (e.g. no shapes applied).
Click on Apply to accept the Nominal Run option and then click Next.
Make sure Write, Execute and Extract have their flag “on”, to write and execute the nominal run for this study.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 104
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
HyperStudy writes all of the necessary input files to the study directory and executes the run using OptiStruct (mind that the files
are named beam.* as defined earlier).
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 105
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
The “Messages” window at the bottom of the user interface will indicate when the model has completed execution (or if an error
occurred because of a faulty model).
Once the run has completed, click “Next” to proceed to the “Define responses” step.
In this step you will create three output responses: Max_Disp, Max_Stress, and Volume. For this purpose you will use the File
Assistant. File Assistant guides you through the response setup and it uses the Response Expression Builder in the background.
To see how the same responses are defined using the Response Expression Builder, please see Appendix.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 106
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
• From the Directory, drag-and-drop the crank.h3d file, located in approaches/nom_1/run_00001/m_1, into the work
area.
• In the File Assistant dialog, set the Reading technology to Altair® HyperWorks® (Hyper3D Reader) and click Next.
• Select Multiple items at multiple time steps (readsim), then click Next.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 107
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
• Click Finish. The Max_Disp output response is added to the work area.
• From the Directory, drag-and-drop the crank.h3d file, located in approaches/nom_1/run_00001/m_1, into the work
area.
• In the File Assistant dialog, set the Reading technology to Altair® HyperWorks® (Hyper3D Reader) and click Next.
• Select Multiple items at one time step (readsim), then click Next.
• Click Finish. The Max_Stress output response is added to the work area.
• From the Directory, drag-and-drop the [Link] file, located in approaches/nom_1/run_00001/m_1, into the work
area.
• In the File Assistant dialog, set the Reading technology to Altair® HyperWorks® ([Link]) and click Next.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 108
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
• Click Finish. The Volume output response is added to the work area.
Click Evaluate Expressions to extract the output response values of each expression. The values of the output responses are
presented in the table below:
If this study has not yet been saved, a “Save As …” dialog box will pop up requesting a name for the Study archive. The study is
then saved as a *.hstx file
This completes the general model / study set up (so far nothing about a DOE was specified). To proceed click on “Next” in the
lower right corner of the GUI. You then will be asked to
“Add Approach”
This opens up another window which allows you to proceed with a DOE, FIT, Optimization or Stochastic study.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 109
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
In the previous example the design variables (i.e. Shapes, Material etc.) were directly imported to HyperStudy (to recall:
HyperStudy was started from within HyperMesh).
In the following example the procedure for parameterizing the shell element thickness (design variable) using the HyperStudy
Editor is shown.
HyperStudy Editor inserts TEMPLEX statements to parameterize the solver input deck with respect to user commands. In
HyperStudy Editor, user points to input file, highlights the values that needs to parametrize to be design variables. The editor than
inserts templex statements to create the “parametrized input deck” to be used as a resource file for HyperStudy.
This kind of process gives you a great deal of flexibility, also because it is applicable to any ASCII input file, including Altair and
non-Altair solvers such as in-house codes.
In this exercise, an OptiStruct beam model is loaded into HyperStudy Editor. The study set-up is shown and a nominal run is
performed.
This exercise uses the model file, beam_size.fem (which should be copied to your working directory)
Model Information:
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 110
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
In the “HyperStudy – Add” window, click OK to use the default labels for the study label and variable.
The study directory is used to contain all of your HyperStudy run files. By default, the Study Directory is your default HyperWorks
user profile directory. Most users create subdirectories for their study directories according to the study or date to better organize
their information.
This dialog box allows you to select a model type and assign a label to this model.
Select “Parameterized File” and click OK to accept the other default values to add this new model to the study.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 111
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Note: If you load a file that does not contain parameters (as with our input file), a dialog will appear asking if you would like to
parameterize the file.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 112
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Of course, we select “Yes” to parameterize the file. The file will open in the HyperStudy Tools Editor as a *.tpl file.
The Editor allows you to browse through the model file etc. After closing the Editor HyperStudy automatically loads the *.tpl file in
the Resource column (see image below) and inserts the file name in the “Solver input file” column.
Ensure that OptiStruct ( os ) is input as the Solver execution script, and that the Solver input arguments is set to $file.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 113
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
To start up the Parameter Editor dialog box click on “ABC …” in the “Resource” tab. This opens up the beam_size.tpl file. In the
Search field, type PSHELL in the String to find field. Make sure to flag “Match case” checkbox and click on the arrow until you find
the PSHELL Thickness card (in OptiStruct the thickness of the shell elements is specified in the PSHELL command).
Parameterization
Within the line for the PSHELL card, select the value for the PSHELL thickness as shown below.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 114
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
In an OptiStruct deck, each field within a card is 8 characters long. In order to select the value for the PSHELL thickness properly,
select the value (0.002) as well as the three spaces following the value.
With the eight-characters selected, right-click on the selection and navigate the context menu to select “Create Parameter” to bring
up the Design Variable Parameter dialog box.
In the Parameter dialog box, enter Thickness in the “Label” field. The “Format” as “%-8.5f”. Then close the dialog box.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 115
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
The Thickness variable now shows as Design Variable within the Parameter Editor. The entry can be edited to check/edit the
values within the variable which are used within HyperStudy for design exploration.
Note on “Edit”
Right click on the variable to review/edit values and select Edit from the menu list
OR
Click on the green quad and select Edit from the menu list
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 116
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Click on “Save” to save this Template file as a model (beam_size.tpl). Then the window is closed by clicking on OK.
After the parametrization of the solver deck is completed (i.e. the variable is defined) the design variable needs to be imported into
HyperStudy:
In the Message Log window, the information is prompted that 1 design variable was successfully imported.
HyperStudy reads the Templex statement in the beam_size.tpl file automatically and imports the design variables.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 117
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
On the HyperStudy main screen under the “Define design variables” step, HyperStudy shows the design variable that has been
imported and lists it as a Template variable under Model Type.
To edit the “Lower Bound” either type in the new value directly or click on “…” to open up the dialog window. As lower bound, we
enter 0.0018.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 118
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Select the “Nominal Run” option, click on “Apply” (to accept the selection), then click on “Next”.
Make sure Write, Execute and Extract have their flag “on”, to write and execute the nominal run for this study. Eventually, to start
the Nominal Run click on Evaluate Tasks.
HyperStudy writes all of the necessary input files to the study directory and executes the run using OptiStruct. The “Message Log”
window at the bottom of the user interface will indicate when the model has completed execution. Once the run has completed,
click Next to proceed to the Define responses step section.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 119
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
In the File menu, select Save As… and assign a name to this study archive which will be saved as *hstx.
HyperMesh will be used to create and export Shape Variables only. The model will then be parameterized in HyperStudy – similar
to the previous exercise. In other words, the model will be exported from HyperMesh (HyperMesh can be closed then) and
HyperStudy is started as a “standalone” product.
To better understand the differences (advantages/disadvantages) of both processes we highly recommend to study the first
example as well.
Linking HyperMesh and HyperStudy, i.e. by starting up HyperStudy from within HyperMesh, as shown earlier, is extremely
comfortable (and easy to use) as HyperStudy recognizes the design variables automatically. Hence no parametrizing is needed.
So, what do we gain by giving this up and parameterizing the model in HyperStudy?
This is especially helpful if you are dealing with rather big models (many design variables & runs) which makes it admirable to run
HyperStudy in Batch-Mode on a cluster (HPC).
Hence, the focus of the example below is on how to create and export Shape design variables in HyperMesh and to parametrize
the model in HyperStudy afterwards.
This exercise uses the model files, beam_shape_with_shapes_noDV.hm and [Link]. Copy these files to your current working
directory next.
Model Information:
Variables:
Define responses:
Mass
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 120
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Please note, we are not going to create the shapes in the context of this tutorial. The shapes are already contained in the given
model (if you like to learn more about the Morphing technology used to create the Shapes we refer you to the Online Help or/and
recommend to attend a respective seminar).
The model (file) provided is an OptiStruct model. Hence, after starting HyperMesh select the User Profile OptiStruct.
hm
Provided you went through the first example (Study Setup for a HyperMesh Model with TH, Size and Shape Variables) you will
recognize this model.
At that time the shapes contained in the model were not shape variables yet (they are part of the database but not actively used
yet).
Optimization→Create→Shape Desvars.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 121
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
In the center of the shape panel, change the drop-down selector box from “single desvar” to “multiple desvars”.
Click on the yellow “shapes” button above the “multiple desvars” drop-down selector to bring up the shape selector panel Select the
shapes R1, R2, H1, and H2 as indicated in the image
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 122
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Click the “create” button on the far-right side of the panel to create one design variable for each of the shapes selected. HyperMesh
Desktop will bring up a dialog box asking if you wish to change to non-linear shape design variable options because of rotations in
the shapes. Click “No” to create these shape parameters as linear variables.
The newly created design variables R1, R2, H1, and H2 are listed in the Model Browser.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 123
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
On the left-hand side of the shape panel, switch the selector from desvar to export. This allows us to export the grid perturbations
for the shape displacements in a number of formats.
This completes the working steps in HyperMesh (HM can be closed). The actual study set-up is in HyperStudy.
This time HyperStudy is started from within the Start Directory (Windows).
In the HyperStudy - Add window, click OK to use the default labels for the study label and variable.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 124
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
As before - This dialog box allows you to assign a name label to this model and change the variable type as well as specifying the
application origin of the model.
As we are parameterizing the model in HyperStudy, “Select Type” is set to “Parameterized File”, accept the other default values.
Of course, we need to import the regular FE model into HyperStudy. In this regular file (ASCII) the shape variables exported from
HyperMesh will be embedded.
In the “Resource” tab open the Open File dialog box (ABC …) and navigate to file [Link]
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 125
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
If the referenced /loaded file does not contain parameters, a dialog will appear asking if you would like to parameterize the file.
Select “Yes” to parameterize the file, the file will open in the HyperStudy Tools > Editor… as a .tpl file (here [Link]).
Ensure that OptiStruct (os) is input as the Solver execution script, and that the Solver input arguments is set to $file.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 126
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Now it’s time to add the shape variables to the model FEA deck ([Link])
In the Resource tab click on “ABC” again, which then opens up the Parameter Editor.
In the Parameter Editor dialog box (right mouse click), “Select Nodes” → GRID. This automatically selects all lines starting with the
keyword GRID in the [Link] file (here: line 45 to line 4150).
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 127
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
With the GRID cards selected, right-click on the selected area and navigate the context menu to select “Include Shape”
In the “Shape Template” dialog box, navigate to the location where the “[Link]” file was saved. Open the “[Link].
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 128
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
This replaces the nodes in the model with the parameterized shapes, and the shapes are imported into the list of design variables.
In other words, all the GRID data are replaced by the include file which we referenced in the previous step.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 129
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Click on Save to save this Template model ([Link]), then select OK to exit and return to HyperStudy. Next step is kind of exciting
again. Will the Design Variables be “recognized” and imported in HyperStudy? To import the variables to HyperStudy, click on
“Import Variables” (at the bottom of the Work Area).
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 130
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
HyperStudy reads the Templex statement in the [Link] file automatically and imports the design variables.
Under “Define Design Variables”, HyperStudy shows the design variables that have been imported.
More information about the design variables are listed under “Details”.
Click Next to advance to the “Specifications” step to run the Nominal Run.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 131
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Make sure Write, Execute and Extract have their flag “on”, to write and execute the nominal run for this study. Click on Evaluate
Tasks and then Next.
HyperStudy writes all of the necessary input files to the study directory and executes the run using OptiStruct. The Messages
window at the bottom of the user interface will indicate when the model has completed execution.
Once the run has completed, click “Next” to proceed to the “Define responses” section.
To complement the study setup, we need to define responses (same process as in the other examples; included in here for your
convenience).
We are going to look at the response of type Mass. Information about the Mass is contained in the [Link] file.
Define Responses:
In the File menu, select Save to save the current Study. If this study has not yet been saved, a Save As… dialog box will pop up
requesting a name for the Study archive.
Save the study archive in the working directory using the file format *.hstx
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 132
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
• crank_morph.hm
The arm shown below is clamped at one end and under an axial loading on the other end. This model has been meshed and
modeled in HyperMesh. Linear static analysis is performed using HyperWorks finite element solver, OptiStruct.
The current (nominal) design gives a volume of 1.7667E06 mm3 , a maximum displacement of 1.41 mm and a maximum stress of
195.29 MPa. The designer can change the following properties of the arm: 6 shape variables for the overall length and height of the
part, 3 shape variables for the three radii (see image below).
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 133
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 134
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
The design can change shape in nine different regions, as shown on the image above, and five responses are of interest as
detailed below.
Length1 Lower Bound = -0.5, Initial Bound = 0.0, Upper Bound = 2.0
Length2 Lower Bound = 0.0, Initial Bound = 0.0, Upper Bound = 2.0
Length3 Lower Bound = -1.0, Initial Bound = 0.0, Upper Bound = 1.0
Length4 Lower Bound = -1.0, Initial Bound = 0.0, Upper Bound = 1.0
Length5 Lower Bound = -1.0, Initial Bound = 0.0, Upper Bound = 1.0
Radius1 Lower Bound = -2.0, Initial Bound = 0.0, Upper Bound = 2.0
Radius2 Lower Bound = -0.5, Initial Bound = 0.0, Upper Bound = 1.0
Radius3 Lower Bound = -0.5, Initial Bound = 0.0, Upper Bound = 1.0
Three responses:
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 135
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
• Volume (mm3)
The nine different shapes (not shape design variables) are created with HyperMorph, a tool for doing parametric mesh-based
shape changes (morphing), contained in HyperMesh (In the morphing process, domains are created around the FE model features.
Handles are defined on the edges of these domains. By moving a handle, nodes in the associated domain will also move. Each of
these movements can then be saved as shape variables and can directly be exported to HyperStudy)
In this exercise we don’t show how morphing works but rather refer to the many Online Help tutorials about Morphing. We start, like
in the other example above, by creating (exporting) shape design variables from within HyperMesh.
Review the crank_morph.hm model file in HyperMesh (make sure the OptiStruct User Profile is turned on).
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 136
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
The lower bound and upper bound are set to -1 and 1 and initial value to 0. (i.e. all the shape desvars will have the same bounds).
Select all shapes (clicking on the yellow “shapes” panel)
and conclude this step with “create”. This creates a shape design variable for each shape selected. If you want to animate the
shapes, you can click the animate button.
The shape design variables will now be used in HyperStudy. However, we first need to export the variables.
Activate the radio button “export”, set the “analysis code” to HyperStudy (as we are going to use the variables in HyperStudy), and
“sub-code” to OptiStruct (the solver we are using in this study).
The file extension must be *.shp (here the file name is bracket_shapes.shp).
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 137
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
(Depending on your preferences, HyperStudy can be started from within HyperMesh. In that case all design variables would be
readily available in HyperStudy. Alternatively, HyperStudy can be started separately and the design variables are then “built” in the
study).
In the context of this example HyperStudy will be started as a standalone. The working directory is named Bracket_DOE.
The Study setup follows the same standard procedure as described in some detail in the other examples:
Define Models
All Grids (nodes) will be replaced by the shape design variables exported from HyperMesh before. Utilizing “Select Nodes
→GRIDS” will select all GRIDS in the ASCII file.
Right mouse click opens the dialog window shown in the image below: Select “Include Shape” to replace all GRIDS by an Include
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 138
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Save the changes as a *.tpl file. The “Define Model” step is concluded by importing the design variables. In the Message Log, the
information should be prompted: 9 design variables imported.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 139
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
The lower and upper bounds on the design variables can now be modified.
Before the Nominal Run (Evaluate Task) is started, make sure that Write, Execute and Extract are active (see below).
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 140
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
In this study, we want to analyze the volume, the displacement at the force application (node 35527) and the maximum stresses.
In the previous examples responses were added (created) through “Adding Response”. This time however, we are going to employ
the “File Assistant” – an easy to use tool/assistant.
In the “File Assistant” you need to specify where the information of interest (=result) is coming from (displacements, stresses etc.
In the File Assistant dialog, set the Reading technology to Altair® HyperWorks® (Hyper3D Reader), then click Next.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 141
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Type is set to “Displacements”, Request is using “First request” to “Last request” (which corresponds to all grids/nodes),
Components is MAG(nitude)
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 142
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
In the above steps the information of interest was specified. Next, we build a response out of the above information. In detail, we
are looking at the maximum displacement (magnitude) of all Grids/nodes.
The same steps are repeated regarding the Response “Stress” (von Mises) as depicted in the images below. Again, we are looking
at the maximum stress values of all elements.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 143
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 144
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
The Response and their respective values (derived from the nominal run):
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 145
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
This completes the study setup. You can now proceed to the desired study type (DOE, Optimization, or Stochastic study). Here, we
are going to look at the different DOE methods.
In this section, we will study the results from different parameter screening DOE’s.
Once the study setup is completed, an Approach (DOE, Optimization, etc.) must be selected.
Right click in the Explorer opens the pop-up window; select “Add Approach” which then depicts the different Approaches. Of
course, we select DOE. It is a good practice to use labels which briefly describe the essence of the approach e.g. FR_RES_V
(Fractional_Resolution_V)
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 146
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
First one is a Full Factorial DOE. In this study, we will set the shape variables to two levels. Since full factorial runs all combinations
of design variable values, we have minimal loss of accuracy, however we have an expensive DOE. We will use this study as our
reference to compare the loss of accuracy from other DOE’s that are less expensive.
Using 9 shape variables with 2 levels gives a full factorial plan made of 512 runs (LV = 29).
As this is the first DOE we are looking at (from within HyperStudy) we are including some additional information.
In the “select design variables” step all defined variables are listed. As indicated in the column, all design variables are active
currently (but could be made inactive). Also, their bounds are listed again (for review and/or editing purposes).
In a similar way all active/inactive responses are listed (but can’t be edited in here anymore).
Eventually, in the “Specifications” step the DOE Method to be used is determined (these methods were described earlier).
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 147
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
To check (and edit) the number of Levels (should be two, of course) activate the “Levels” tab. The number of runs associated with
the Full Factorial study (512 runs; LV) is depicted on the right.
Each design variable is assigned two levels, lower bound and upper bound.
Without getting too trivial: the nominal run lasted about 30 sec on a small laptop. Running a full factorial study would be pretty time
consuming already.
For the sake of focus, each screening we will discuss only the results obtained on the Max_stress output response using Pareto
plot, Linear Effects and Interactions displays. In an actual study, all responses should be considered in making decisions about
parameter screening.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 148
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
To ease comparison of the graphs with the model (actually with the definitions of length, radius, height) we are showing the initial
model again.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 149
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
A Pareto Plot shows the ranked influence (highest to lowest) of the design variables on the response.
We can see that the 5 lengths have the largest influence and the 3 radius have the least influence on Max_stress. The hashed lines
slope (positive or negative) indicates a positive or a negative effect of a variable on the response. In this case length_4, length_2,
length_5 and length_3 have negative slopes which means that if these variables increase Max_stress will decrease. On the other
hand, length_1 has a positive slope which means that increasing length_1 increases Max_stress.
• the three radii (plotted on the right) have almost no effect on the responses
• length 2, 3, 4 and 5 have the same type of effect (direction and magnitude)
• length 1 and height have the same direction of effect but are less important than the four other length variables
In addition to the linear effects, we can look into interactions between design variables. Looking at the Max_stress response, you
can see that a number of interactions are very small. You can still find cases with a true interaction, such as the interaction of length
4 and length 5 illustrated in the image below. The effect of variable length 4 on response Max_Stress is in the same direction
whatever the value of length 5 is, but the effect (magnitude) is much more important when length 5 is large.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 150
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
The scatter plot indicates a strong negative correlation between the volume of the part and its structural responses.
In the video below Fatma Koçer provides some more information about “Scatter Plots”.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 151
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
[Link]
Next, we set up a Fractional Factorial DOE with the same levels as the previous full factorial DOE. Using the 9 design variables
with 2 levels, without toggling ON any interaction, leads to a 12 runs for a Resolution III Fractional factorial plan. Repeat the steps
for Resolution IV and V to observe the differences between accuracy and effort between these three resolutions.
From the graphs below, it is understood that the four length variables (2, 3 4 and 5) have a major effect on the model responses.
The three radii variables have a negligible effect on the volume and a small to medium effect on the displacement and stress.
It is also understood that length_1 have an opposite influence on the responses compared to the other length shapes. It is seen
that length and height have significant influences and we can focus on those variables for the rest of the studies. As for the three
radii, we will set them to their nominal values to get the starting point.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 152
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Next, set up a Fractional Factorial DOE with three levels. Using the 9 design variables with 3 levels (resolution V), without toggling
ON any interaction, leads to a 27 runs fractional factorial plan.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 153
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
As shown below, the levels are upper, lower and mean value. The initial value of the design variable is not considered (except of
course when mean = initial).
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 154
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
The main effects plots displayed in the figures below give the following indications:
Stress
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 155
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Kind of reminder: In the Linear Effects Plot the averaged results (for two level studies) at lower and upper bounds of the design
variable are “connected” through a straight line. Looking at the image above non-linear effects cannot be observed.
BTW, by hovering the mouse cursor over the data point you can extract information about the run number, the radius_1 value and
the associated response “stress” (depicted in the small pop-up window). The pop-up window to the right provides detailed
information about the “radius_1 – Stress” experiment, i.e. 27 runs, mean value 268,53 etc.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 156
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Next, set up a Plackett-Burman DOE which uses 2 levels for all the design variables. For this study, using 9 variables, we get a 12-
run matrix.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 157
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Stress
Note: The “Scatter” can be turned off if wanted (see inset in image)
7.5.5 Comparison
In the table below, conclusions on the output response Max Stress is compared between the results obtained from the four DOE
methods. As can be seen, the conclusion for Full Factorial and Fractional Factorial V are the same however fractional factorial
resolution V required only 1/4th of the runs that full factorial did. You can also observe that as the resolution decreases, accuracy of
the information gathered also decreases. For example, the conclusion from Fractional factorial resolution III is the least accurate.
Relation and
Influence of Fractional
Fractional Fractional Fractional Plackett
DOE Full Factorial Factorial III
Factorial V Factorial IV Factorial III Burman
Methods on 3 Level
DV’s
Remove
Remove 3 Remove 3 Remove radius Remove radius Remove radius
Conclusions radius 3 and
radius radius 1, 2 and height 2 and height 1 and 3
height
Comparison of Results (Relation and Influence of DV’s on Sum of Stresses) of Different DOE methods.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 158
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Note: In the video below (related to the Control Arm Model) Joseph Pajot takes you several steps further. He describes how DOE is
used in the context of a reliability study (which in fact, represents a topic of its own and will be discussed in an upcoming version of
this eBook)
[Link]
Earlier in this book we introduced the concept of DOE by referring to the Bond Strength Example/Project.
In the context of this example we demonstrate how to read the test data into HyperStudy.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 159
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 160
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
You may have compiled your test data in an Excel Sheet and hence would tend to select “Spreadsheet” as the Model Type.
Please note, that “Spreadsheet” is used if some math happens inside the Excel sheet (e.g. multiplying fields). As we are dealing
with a “static” data sheet (test data) we need to use “Internal Math. With this model type, you do not need to load a resource file or
define the solver input file, solver execution script, or solver input arguments because you will create the design variables and
responses in the “Define design variables” and “Define responses” steps.
Next, we define the (two) Design Variables either by adding them one by one, or by “Press and hold” on the Add Design Variable
tab.
The two design variables are automatically named DV1 and DV2. Copy the header of the two design variables from the Excel
Sheet (Temperature/Pressure),
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 161
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Which replaces the default names with the names used in the Excel Sheet.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 162
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Next step is “Specification”. We select “Nominal Run” and confirm this strep with “Apply”.
Don’t miss the next step: Evaluate Task (as the “Next” button is highlighted it may happen that you click on “Next” without pursuing
the “Evaluate Step”).
In the “Explorer” Define responses, Postprocessing and Report can be accessed (if you miss the Evaluate Step from before you will
not be able to advance to Postprocessing / Report)
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 163
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
You may copy the response labels from the Excel spreadsheet, and paste them into the Label column in the work area. When you
paste the design, variable labels into the work area, select “Paste transpose” from the context menu.
We now need to proceed to “Postprocessing”. The response data will be added in the DOE step which is next.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 164
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
In the DOE step the first two tasks “Select design variables”, and “Select responses” are taken over from the Setup steps before.
We need to focus on “Specifications” next. Here we select “Mode” None. Don’t forget to click on “Apply”.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 165
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
In the Run Matrix dialog, click Add Run to add 4 runs to the matrix, as there are 4 runs in the Excel spreadsheet. Copy all of the
design variable and response data for each run in the spreadsheet.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 166
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
After the data were pasted into the Run Matrix, proceed straight to Postprocessing without clicking on Apply or Evaluate Task as all
the data are already available in the Run Matrix.
In the Postprocessing step we look at the graphs shown earlier in this book, for instance, Main Effects plots of Temperature (blue)
and Pressure (red) on Bond Strength.
The example below is available in the Online Help but we thought we should include at least parts of it in here in order to
demonstrate the technical advantage of the following combination of tools:
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 167
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
The subject of the study is to analyze sensitivity of flow (i.e. the pressure drop between inlet and outlet) to changes in the shape
(bending) of a pipe with our CFD solver AcuSolve.
Note: The process would be quite the same if you would use a non-altair CFD solver.
Step 1:
The finite element model will be “wrapped” into a so-called morph-volume (which can be edited/splitted in smaller volumes easily).
The red dots/spheres refer to “Morph handles” which will be moved / translated in the next step.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 168
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
The shape change of the model (elements) is saved as a Shape Design Variable.
Step 2:
Step 3:
The GUI of the HyperStudy Job Launcher allows to define, for instance, number of processors and the Responses.
After these decisions have been made a nominal run is submitted. Once the run is finished, HyperStudy opens and with the study
Setup completed.
Do you recall the next steps after the study setup is complete?
We need to define the “Approach” next – which is a DOE (to study the sensitivity of flow (i.e. the pressure drop between inlet and
outlet) to changes in the shape (bending) of the pipe).
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 169
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
[Link]
The HyperStudy version 14.130 provides a new Flux model type. This model allows coupling HyperStudy and Flux Finite Element
software and applying the HyperStudy approaches for Electromagnetic (EM) models design exploration and optimization.
In this example one will show how to use HyperStudy to perform a DOE on a Flux model in order to screen the most influential
parameters.
The studied device is a brushless AC embedded permanent magnet motor composed by:
• An air gaps.
• A movable part (rotor) with embedded magnets (in red on the picture)
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 170
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
This motor is designed for hybrid electric vehicle traction/generation with the following ratings:
The device has been previously modeled in Flux software. The geometry has been parameterized using 7 geometric parameters as
shown on the picture below. Then it has been meshed and the physical properties have been defined. After that the model is
solved to get the results that will be used as responses in HyperStudy.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 171
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
The first one does not really need a screening as it is defined by an analytical function depending of two parameters LM and
MAGWID. For the second one we do not know which parameter has the biggest influence that is why one would like to perform a
DOE to better understand the device operation.
Once the Flux model is ready one need to make two things in order to establish the connection with HyperStudy:
The first action is done in Flux using the command “Generate component for GOT-It coupling”* available in the menu Solving.
*Note: In Flux 2017 the command will be called “Generate component for HyperStudy coupling”.
This command allows selecting the input parameters (design variables) and the output functions (responses) from the Flux model.
In order to send them to HyperStudy. As a result, it generates a link file (.F2G). Once the link file has been generated one could
move on to HyperStudy in order to start the study.
Like in the other examples before, we start a new study (it is recommended to save the study in the same folder as the F2G link
file).
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 172
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
In order to create a Flux model, one need to click on Add Model and select Flux in the displayed window.
Model selection
Once the model has been added, click on Resource browser and select the F2G link file (you can also Drag & Drop it).
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 173
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Once the link file has been opened, one should click on Import Variables in order to import the design variables.
Now, the model is completely integrated in the study and one can continue defining the Setup by following the next steps:
Setup workflow
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 174
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
First, one should edit the lower and upper bounds of the design variables as shown on the picture below.
After that step is taken, it is time to specify that we are interested in a Nominal Run. For that, move to the “Specifications” section
and select Nominal run, then click on Apply.
Specifications definition
You can click on Next (in the right down corner) in order to switch between different sections.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 175
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
In Evaluate section, click on “Evaluate Tasks” in order to perform the nominal run. You will see such kind of window telling you that
HyperStudy is launching Flux in batch mode to make the simulation and extracts responses.
Once the run is finished you can see in “Define responses” section that TORQUE_MEAN response (performance coming from
Flux) has been automatically created. One will create a second response for the magnet surface by using the Expression builder.
To start, click on Add response button.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 176
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Once the new response has been added click on the “…” in the Expression tab in order to open the Expression builder. In the
Design Variables tab, select LM and click on Insert Varname, then insert MAGWID as well in order to define the function
(LM*MAGWID)/360.
Note: Compare “Label” and “Varname” (listed in the image above) with the expression (dv_1*dv_5)/360 which corresponds to
“MagnetSurface = (LM*MAGWID)/360”
As stated in the other examples, do not forget to click on “Insert Varname” after each DV selection.
The setup definition is now done and one could add a new approach. In the next stage, we will define a DOE approach in order to
perform a screening on the responses.
We start by adding a new approach DOE and then continue following the screening workflow.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 177
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Screening workflow
The design variables definition is kept same as for the Nominal Run (see reminder below).
We perform the following DOE in order to compare the results and the number of runs:
• Full Factorial
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 178
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
After the DOE definition has been done, click on “Apply” and then “Evaluate tasks”. Note that each method needs to be started
separately. It means that you have to add new approach DOE for each DOE used. You can name the different approaches in order
to recognize them in the Study Explorer.
Compare this process with the one described in the “DOE Method Comparison: Arm Model”.
In order to post process, the results we will consider the following displays:
• Linear effects.
• Pareto plots.
• Interactions.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 179
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Postprocessing tabs
First, we compare the Linear effects (effects of design variables on TORQUE_MEAN and Magnet Surface) provided from Full
Factorial and Fractional Factorial (III, IV or V). On the picture below one can see that LM and MAGWID have the biggest influence
on both TORQUE_MEAN and Magnet Surface functions. Other influential parameters on TORQUE_MEAN are BRIDGE and WEB.
The most accurate information is provided from Full Factorial as it runs a complete number of sets (128 in this case). But one would
like to know if we can get the same information with less runs using Fractional Factorial and what is the most appropriate
Resolution type for Fractional Factorial.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 180
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
We can notice that the results obtained with Fractional Factorial IV and V are similar to those obtained with Full Factorial, with
much less runs (16 runs for Fractional Factorial IV and 64 runs for Fractional Factorial V). On the other hand when using Fractional
Factorial III the parameter effects on TORQUE_MEAN are increased. Also, there is significant effect of WEB parameter on Magnet
Surface. This effect should not be as Magnet Surface depends only on LM and MAGWID. In that case this effect is due to a
confounding.
So, looking at the “Linear effects” Fractional Factorial IV seems to be the most efficient choice.
Let’s make now the same comparison using the Pareto plots.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 181
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 182
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Same as for the “Linear effects”, Fractional Factorial IV and V provides similar results as Full Factorial, but not Fractional Factorial
III.
What about the “Interactions” comparison? Let’s compare the same interaction with Full Factorial and Fractional Factorial III.
Interaction between BETAM and IPMHQ on TORQUE_MEAN obtained with Full Factorial
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 183
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Interaction between BETAM and IPMHQ on TORQUE_MEAN obtained with resolution III Fractional Factorial
As one can see, an amplitude interaction has been detected with Fractional Factorial III but not with Full Factorial. The right
information is that provided by Full Factorial. Once again, there is confounding effects when using Fractional Factorial III.
In this example we have seen that DOE can be easily run on Flux models. The use of different DOE methods has been compared
using Linear effects, Pareto plots and Interactions charts. To help the user to choose the right DOE method, let’s consider the
graph below that illustrates the accuracy vs effort plot for all the DOE used. The most accurate but also the most expensive is Full
Factorial (128 runs). Fractional Factorial III (8 runs) is the cheapest one but it leads to some inaccuracy and confounding. Fractional
Factorial IV (16 runs) and V (64 runs) have provided the same results as Full Factorial.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 184
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
8 Appendix
8.1 Glossary
Astudy approach is a certain set of steps taken to study the mathematical model of a design. In HyperStudy, there are four
approaches: DOE, Fit, Optimization and Stochastic. Each approach serves a different design study purpose and the required steps
for each approach may be unique. For example, you can use the DOE approach if you need to learn the main factors affecting your
design, but you need to use the optimization approach if you want to find the design that achieves the design objectives while
Approximation
Expression that relates the response of interest back to the design variables that were varied. HyperStudy provides polynomial
least square regressions, Moving Least Squares Method, and HyperKriging to define approximations. An approximation is only as
good as the levels (number of designs) used when performing the study. For example, a two-level parameter only has a linear
relationship in the regression. Higher order polynomials can be introduced by using more levels.
• Only 3 levels
• No interactions
Is a structured, organized design/run matrix creation method that once run will be used to determine the relationships between the
different factors/variables (Xs) affecting a process and the output of that process (Y).
Often used to represent a parameter study using a Design of Experiments. The DOE is actually the way the design variable
combinations for the study are chosen. It is a method to perform a parameter study with a minimum number of designs
(experiments) to obtain as complete an information as possible about the design space. The opposite would be a full-factorial
analysis (complete design matrix), with all possible design variable combinations selected. A parameter study is used to study the
behavior of design in the given design space.
HyperStudy provides the following Designs of Experiments (individual methods are explained in some detail in this eBook):
• Full factorial
• Fractional factorial
• Plackett-Burman
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 185
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
• Box-Behnken
• Hammersley
• Latin Hypercube
• Only 5 levels
• All interactions
Confounding
Confounding occurs when two factors are associated with each other or “travel together” and the effect of one is confused with the
effect of the other. For example, in order to improve team performance, a soccer coach asks his team to run two miles a day while
the players decide to take vitamins. In this case the effects of running two miles a day and taking vitamins will be confounded since
it will not be possible to identify the effect of them on team performance independently.
In other words, Confounding is the inability to distinguish between main effects and interaction effects.
Controlled Factors
Are 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.
System parameter that influences the system performance in the chosen response.
A design variable is a property of the study. It is an object that is varied by the study based on certain rules. You can associate a
design variable to a particular model parameter. Two design variables cannot be associated with the same model parameter. A
design variable does not always need to be associated to a model parameter. Design variables can be linked within or across
models.
Or in other words:
Design Variables are system parameters that change the system performance.
Design input (variable) whose value is changed to cause a change in the output (response).
Factors can be controlled or uncontrolled. They can be controlled or uncontrolled. A factor can be either Discrete i.e., slow (-) or
fast (+) or Continuous i.e. temperature.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 186
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Effects
Are the changes in the responses produced by changes in the levels of the design variables. If the effects line is horizontal, it
implies that the design variable has no effect on the response of interest. As the line becomes more vertical, the effect on the
response of interest is greater. A positive slope indicates that changing the parameter value will result in a direct change to the
response, whereas a negative slope indicates an inverse association.
Fitting functions (Approximations) are meta models that represent the actual responses. Some simulations are computationally
expensive which makes it impractical to rely on them exclusively for design studies. In these cases, use of approximations leads to
substantial savings of computational resources.
• All Interactions
• No confounding
• Can be 2 or 3 levels
Interactions
Are the varying effects that a design variable can have on a response at varying levels of other design variables. An interaction is
the failure of one factor to produce the same effect on the response at different levels of another factor. In other words, the strength
or the sign (direction) of an effect is different depending on the value (level) of some other variable(s). An interaction can be either
positive or negative. Graphically, two factor interactions are indicated by a significant non-parallelism of the two lines in an
interaction plot.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 187
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Levels
Levels are discrete (or continuous) values of the factor/variable. The values taken by x in the range [-1; +1] are called levels. So if
you look at the example discussed earlier, the minimum and maximum temperature would correspond to -1 and +1. The number of
levels per variable to be considered depends on the level of non linearity in the problem; for a linear model two levels are sufficient;
for a quadratic model three levels are needed.
With respect to the example from above, if we would have considered not only 100 degrees and 200 degrees but also 150 degrees
the study would have been a 3 level DOE.
Linear Effects
Shows the effect of a change in the level of a design variable on the response. Linear effects are shown in table and plot format. In
a plot, if the line is horizontal, it implies that the design variable has no effect on the response of interest. As the line becomes more
vertical, the effect is larger. A positive slope indicates that changing the parameter value will result in a direct change to the
response. A negative slope indicates an inverse association.
Main Effect
Is the influence of individual factors on responses. Main effect of a factor is the change in response produced by a change in the
level of the factor alone, averaged across the levels of other factors. Variables with small effects can be screened out without much
loss of accuracy in further design studies such as optimization. This reduces the problem dimension which in turn will reduce the
computational expenses as well as the amount of data to be investigated.
Optimization
Design optimization is the use of a collection of mathematical procedures to achieve a design as fully perfect, functional, or
effective as possible. Quite often the optimized design represents a compromise between partially conflicting objectives.
• Only 2 levels
• No interactions
• For 3DV’s 12 designs (FuF has 8); for 4DV’s 12 designs, can also be 12, 20, 24, 28, 36 designs
Reduced Variables
In DOE terminology, it is standard practice to work with reduced variables that has a range of -1 to 1 for each real variable.
Reduced variables are associated to real variables with the following formula:
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 188
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Regression
Is a polynomial (expression) that relates the response of interest back to the parameters that were varied. It is only as good as the
levels used when performing the study. For example, a two-level parameter only has a linear relationship in the regression. Higher
order polynomials can be introduced by using more levels. Note that using more levels will result in more runs.
Response
Measurement of system performance. Examples are: weight, volume, displacement, stress, strain, reaction forces, and frequency
Response Surface
In the absence of a continuous function relating the objective to design variables, numerical experiments can be used to generate a
table of objective-function values vs. design-variable values. A surface fitted through this table of points is called the Response
Surface.
Robust Design
Understand whether the model (and method) is robust to small variations in the factor levels. If the model turns out to be non-robust
then understand the bounds may be modified to achieve robustness.
A robust design is insensitive to small design changes. It minimizes the variations in performance and puts design on a predefined
target.
Note: HyperStudy has the capability for performing robust design by combining an optimization study with a stochastic study.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 189
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Screening
Used at the beginning of the experimental phase. The objectives are twofold: 1. Explore/test as many factors as possible in order to
understand whether they have an influence on the design. 2. Understand their appropriate ranges.
Sensitivity
Rate of change. Normally gradient of the response with respect to the design variable(s).
Study
In HyperStudy, a study is a self-contained project (saved into a study file, with a .xml extension) in which models, variables,
responses, and approaches are defined. The HyperStudy GUI was designed to guide you through a series of steps to set up a
study and/or to add an approach. Each step must be completed before progressing on to the next step.
Are variables that cannot be realistically controlled in the production (real world) environment but can be controlled in the lab.
Examples include ambient temperature, humidity and/or occupant seating positioning. Of course, if the uncontrolled factors have an
impact on the results they need to be considered in the study as well.
Variable
Also called factor. Anything that we can control or measure in an experiment. In engineering design we usually use the term design
variable.
8.2.1 Tutorials
HyperStudy (and in general HyperWorks related) tutorials can be accessed through the HyperWorks Help Home
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 190
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
More than 35 tutorials are available which are grouped in Introduction, Advanced Solvers, Approach Overview, Design of
Experiments (DOE), Fit, Optimization, and Stochastic.
[Link]
[Link]
[Link]
[Link]
HS-1545: DOE and Optimization Study with HyperMesh, HyperStudy, and ANSYS CFX
[Link]
[Link]
[Link]
[Link]
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 191
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
[Link]
[Link]
[Link]
8.2.2 Archive
When you export a study, HyperStudy creates a file with a *.hstx extension. The following files are packaged into the .hstx file:
• Resource files
• Reference files
If the resource file and reference files are not in the study directory when Export Archive is selected, then they will be copied over
and included in the .hstx file. The archived .xml study file will be updated to point to the new location of the resource file and
reference files
Note: Export Archive does not package run folders in approach directories (such as approaches/doe_1/run_xxxx), in order to
minimize the archive file size. Files included in resource files that do not reside in the study directory will not be packaged.
Use case: The Archive file it could be used by a fellow student who then would continue with your study; or the Support Team may
ask you to send an Archive file so that they can understand what you have done). However, if HyperStudy was customized in some
way (e.g. using a special Preference file, referencing an external solver, etc.) or run files, this information is not included in the
Archive.
This feature un-packages the archived .hstx file at a given location. The. hstdf and .data files are placed in their respective locations
and all of the other files are organized in the study directory. Import Archive also modifies the study directory in the .xml file to the
new location.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 192
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
8.2.4 Multi-Plot
Activate the Multiplot icon in the upper right corner of the GUI and select the data of interest, e.g. Thickness 2 and Mass. Then
HyperStudy automatically displays the 2 graphs (working area is splitted)
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 193
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 194
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Right mouse button clicks on “Evaluation Plot2 opens the dialog windows “Show in” → Capture (creates png file) or “Report to” →
Capture (places the image in the clipboard)
8.2.5 Explorer
In the Explorer you can see all the studies, collapse them all (right mouse click), sort them by type, date of creation, etc.
8.2.6 Directory
The Study directory (STUDY_DIR_PATH) is the main directory that has your xml, tpl, .fem, and other. files. It is recommended to
save the preference file here as well, so when you Archive the Study, the preference file also gets archived. You can expand all the
run directories (STUDY_RUN_PATH). You can “Diff” files, directories. You can open the directory in the browser. You can open
h3d files in HyperView.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 195
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
All the runs of your study will be placed under (within) the “approaches” directory. So there will also be a nominal run (nom_1) after
the study setup.
In the example above a DOE with four runs was conducted. Hence, in the directory “doe_1” there are 4 run-folders (run_0000x)
belonging to the different DOE runs respectively. For instance, in the folder run_00001 the files regarding the first DOE run are
saved in the folder l “m_1”. All other folders follow the same structure.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 196
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Right mouse clicks on the *.h3d file automatically loads the model and results file into HyperView.
If available on your PC, you can also select run files (e.g. *.fem) from different runs/folders to compare (and maybe debug) your
model. Pretty handy functionality.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 197
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Diff allows to visualize difference of the input files (model files). You may also compare (diff) entire directories. You may need to set
the ENV Variable to a Diff tool (Diff-HW_HST_CMD_DIFF)
Also, very convenient is the option to “Browse files” which list your files in your Windows file browser
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 198
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
In a similar fashion, if you want to see all files belonging to a particular design, you may go to the “Explorer” →Evaluate, then select
the design of interest and click on the “Browser files” option in the header. This will then open up the file explorer listing all relevant
files.
Available in the Specifications pages, top right corner (highlighted in yellow in the image below). You can add, edit, and delete runs.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 199
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
After clicking on Run Matrix, the following EDITABLE summary will be shown.
You can modify/edit any of the fields for instance if you wish to look at your specific design “proposals”. The Run Matrix offers even
more: If you have test data (no simulation yet) you may include the test data in the RunMatrix (you can append more rows/columns
within this table), then run a DOE, create a Response Surface on it and run an optimization study on it.
While setting up your study, you can drag and drop .tpl, .hm, .xlsx, .prfj, .hstx files directly into the working area
Rahul Rajan provides a brief introduction into the “File Assistant” in the video recording below.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 200
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
If you have a DOE set-up with various definitions, or you are dealing with an optimization setup with many constraints and you want
to re-run it after a small modification, you can copy the approach.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 201
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Label can be any string, e.g. thickness for part one etc., Any characters of the supported languages should work in here. Varname
is a unique identifier which is automatically assigned by HyperStudy. Of course, you can change it as well if you feel it would make
your work easier. Note, you can’t use the same name for two different entities.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 202
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
The most effective way of debugging the process is to open the Console from “Message View” and to increase the verbose.
If you activate “Show Console” run information will be shown in the pop-up window:
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 203
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
As one goes through the design exploration process it is helpful to know how long particular steps in the process are taking or
when it occurred. HyperStudy logging provides two ways to monitor this. If one chooses to have a log file written during your
session, a timestamp is included with each message posted to the log. For example:
Alternately if one is monitoring the message log window one can enable the timestamps via the message log window context menu
and then the message log window displays a corresponding timestamp for each message.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 204
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Another feature which can remind you of the evaluation completion time is to enable the ‘Notify’ dialog in the Evaluation form.
Once the evaluation is completed a dialog box will be displayed indicating the completion of the evaluations.
Yet another time reference feature is to sort the Approaches by their “Time Created” via the Study Tree context menu sort option.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 205
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
8.2.14 Documentation
• Invoking HyperStudy page, this section explains HyperStudy start options such as –v –s for debugging a process.
2. Tutorials
• There are 53 tutorials in HyperStudy Online Help!!! (click for the tutorial map)
• Some show the steps to perform a task such as HS-1020: Working with a Parameterized File Model for Size
• Some show realistic engineering applications such as HS-4200: Material Calibration Using System Identification or
• You can find a method comparison table for each approach in this chapter (click for DOE method comparison table).
• You can also find the definitions, usability characteristics and settings of each method (click for GRSM)
4. More on Files
• Because most HyperStudy functionality is customized through files such as a preference file; file structures are
• This is where you can also find all the process environment variables along with solver script file examples.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 206
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
The typical study can produce lots of data. Of course, HyperStudy provides nice set of post-processing features to understand this
data but there are times when you need to send this data to someone who doesn’t have access to HyperStudy. For that
HyperStudy provides some reporting capabilities.
‘HyperStudy HTML’, Spreadsheet and ‘HyperWorks Session’ can be leveraged for this particular scenario. Once you are done with
report generation for all your approaches you can conveniently package reports using menu ‘File -> Package Reports’. I have
attached report package exported from study used for demo videos.
One more convenience feature is ‘Browse files’ button on Report panel as shown in image below.
This button opens folder where all your reports are stored under study directory. It comes handy when you want to access report
files to do some refinements.
Let’s take a uncomplicated problem like the axial stress in a circular rod as a function of radius (stress=force/radius^2). After
collecting a lot of data from a Latin Hypercube DOE into HyperStudy you see the Distribution tab (seen in the screenshot below).
There are 3 related pieces of data shown the plots.
Histogram. This is the red bars that simply counts the frequency of occurrence and uses the left vertical axis. The data is grouped
into equal sized bins, and a simple additive count occurs for each bin. In the plot below, you can see the radius is equally
distributed between each bin (For what it’s worth this is expected as the DOE is trying to equally fill the space). But the stress is not
so equally distributed and shows a distinct left bias. This result itself is interesting to remember just because the variables have a
particular distribution, in general, the responses do not have the same distribution.
Probability distribution function. This is the green line uses the right axis and most commonly simply called the PDF. You can
imagine making this line by drawing a curve through the tops of the histogram, and then normalizing this curve so that the area
under the curve is 1.0. This curve represents the likely hood of occurrence; a higher value means that value is more likely to occur.
Cumulative distribution function. This is the blue curve also uses the right axis and is mostly commonly called the CDF. This curve
is interpreted as the percentage of data values that falls below a given threshold. For example, 90% of the data is below a stress of
47. The normalization of the PDF is vital for this interpretation: 100% of the data must lie below the maximum value!
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 207
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
After running a study and then reopening that study a day or two later, have you tried remembering how the results of a particular
run looked. Instead of fishing around on the file system to find the result files, try the following steps inside the HyperStudy
application.
• In the Evaluation ‘Tasks’ table or the ‘Evaluation Data’ table, First highlight the row corresponding to the run of
interest.
• Now Click on the “Go to Directory” button at the top of the form.(This will open the Directory view and the run folder
• Right click on the appropriate file in the ‘Directory’ view and this will open the context menu with a number of
options.(The standard operations can be supplemented by registering your own user utilities if you have special tools
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 208
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
8.2.18 Verbose
Once in a while you must have encountered some kind of error or warning and looked at the lower half of HyperStudy workspace
where a terse description of that warning/error was provided. That area is the “Message log” and by default it is “ON”. In case you
don’t see it, then it can be turned ON using the “Message log” option in the toolbar as shown below.
If you right click in that area, you see some options. One of them is Verbose as shown in the attached image below. By default, you
would notice that the option is set to Level 0. Most of the time that is good enough for simple trouble shooting/debugging or taking a
corrective action in your process. However, in case you ever wished that HyperStudy could be more explicit or reveal more
information about what it was doing in the background when you hit Apply, evaluate etc. then there is a simple way of doing that.
Just play around with setting the levels to 1, 2 and 3. Observe that as levels increase so does the chatter from HyperStudy. At 3,
HyperStudy is most talkative.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 209
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
One very useful piece of information that level 3 verbose provides is writing a set of Environment Variables in a .htm file. As show in
image below, you can simply click on the link and check the Env. variables and their set value for the given study. This is useful in
case you want to write a tcl script or a batch file which use the Env. Variables that HyperStudy understands.
8.2.19 Purge
It is not uncommon for multi-run design exploration software, to utilize a lot of disc space and subsequently run into disc space
constraints. If a single evaluation cycle uses 100 MB, 100 evaluations will have a footprint of 10 GB!
Purge is a predefined task in every evaluation cycle, that deletes hand-picked output files.
• Activate Purge in the Evaluate Tasks list and inspect the files
• Select some or all files and confirm (We recommend hanging on to important files)
• In every evaluation cycle Purge will remove those files after the Response extraction is complete
• All subsequent Approaches and evaluations will inherent those Setup Purge settings
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 210
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Have you ever had to quickly change what was showing on your desktop?
The other day I was thoroughly enjoying myself rolling the mouse scroll wheel back and forth on the sliders in the HyperStudy
Trade-off form. A very insightful activity as you can dynamically see how changes in inputs to the system influence the outputs of
the system. Then I heard my boss coming who I didn’t want to let know how much fun I was having, so I had to quickly change
what was on my screen.
Ctrl-c cut
Ctrl-v paste
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 211
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
<F11> to toggle into full screen mode and out of full screen mode (On Mac use the Mac Key instead of Ctrl)
8.2.21 Font
HyperStudy allows you to change the size and type of the font. Pretty nice feature.
8.2.22 Languages
Change the language by clicking View > Language from the menu bar.
English (en)
Deutsch (de)
Français (fr)
日本語 (ja)
한국인 (ko)
简体中文 (zh_CN)
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 212
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
The Preference File can be registered in HyperStudy to customize studies and extend the usage of HyperStudy; such as registering
external solvers, responses, optimizers, changing study precision, etc.
A preferences file is an ASCII file that configures the application or its clients, and specifies default user settings such as the
readers, functions, and solver script locations. A standard preferences file is created in the program installation directory and is
executed every time a license is activated. An additional preferences file can be created in your working directory, and can contain
personal settings that will either overwrite the standard preferences file or be added to the existing settings in the standard
preferences file.
When HyperStudy is first started, File > Use Preferences File will be inactive. In this case, only the standard preferences file
($HST_ALTAIR_HOME/hw/preferences_hst.mvw) will be used.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 213
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
To use a personal preferences file, you need to select File > Use Preferences File from the menu bar. In the HyperStudy - Set
Preferences File dialog specify the location of the file. Once the Preference file is selected, File Set Preferences File will include the
path to the file.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 214
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
In this section the responses for the Introductory Example (Arm Model) will be set up using the Response Expression Builder.
Remember that in the Introductory Example, they were created using the File Assistant. File Assistant is a UI that automates the
response definition. In the background it uses the powerful Response Expression Builder. The purpose of this section is to
introduce you to the Response Expression Builder so that you can use it when you need the full power of the Response Expression
Builder.
Input “Mass” as the “Label” for this response and click OK to close the dialog box.
Click on “Expression ….” to open the response “Expression Builder” (for the response Mass)
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 215
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Open the “File Sources” tab (highlighted in the image above), then click on “Add File Source” to create a new vector. In fact, by
specifying a “File Source” we tell the system from which file (e.g. result file, log file etc.) the respective information will be extracted
from.
Keep “Select Type” as “Solver output file”. Click OK. “Vector 1” is created and selected in the Expression Builder.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 216
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
In the “File Sources” tab, click on the file icon “File …” to load a file to parse.
In the nom_run folder, open the m_1 folder and select the [Link],
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 217
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
under Type select “Mass” file and click OK to load the file and close the dialog box.
HyperStudy will read the solver output file (*.out) and assign labels to the values in the file.
Since the mass is a scalar quantity, the only component of the vector is index zero, and so a scalar mass value is properly written
in the Expression Builder as v_1[0]. The mass value can be accessed directly out of the [Link] file and does not require any
mathematical operations before being used as a response for our study.
Note: Multi-dimension vectors may be accessed through each individual dimension by using the corresponding index in the vector
array
The Expression Builder is capable of performing a full complement of mathematical functions on an arbitrary number of vector
solutions in order to build a response. For more information on the functions in the Expression Builder, access the HyperWorks help
documentation for HyperStudy under Functions and Operators.
to display the value of the mass value extracted from the nominal run. This should evaluate to 2.16091.
Click OK to close the Expression Builder (definition of mass as a response is completed) window and return to the Define
responses step.
Repeat the previous steps to add two more responses (Displacements, Frequency) to the study according to the values below:
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 218
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Vector
Response Evaluated
Vector Resource Subcase type Request Component
Name expression
File
Vector
Frequency [Link] (N/A) Frequency Mode 1 Value 368.83
3
Are you able to complete the next two steps by yourself already?
In order to define the respective vector, click on “Expression …” which opens the “Expression Builder”. Activate “Add File Source”
to specify the file from which the results (displacement of node 19021) are to be extracted.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 219
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
In case you are not familiar with OptiStruct, the information about displacements are contained in the beam.h3d file.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 220
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
After confirming this operation by clicking OK, don’t forget to activate “Insert Varname”. Only then the newly created vector will be
shown/listed in the panel below “Evaluate Expression”.
To see whether Vector 2 was correctly defined, click on “Evaluate Expression” (if you wonder whether the displacement value
displayed is correct at all – you can postprocess the results of the nominal run like any other simulation run in HyperView first).
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 221
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
And finally, we define the response (vector) regarding the frequency – first eigenmode.
All you need to know (OptiStruct specific) is that the respective information about the eigenmode is contained in the [Link] file.
Hence, knowing this, the process to create the response of type eigenfrequency is just like before:
• Activate “Expression …”
• In the Vector Source panel, specify “File …” to be [Link], Type: Frequency, Request Mode 1
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 222
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
Then activate: “Insert Varname” to show the vector in the Expression Builder Evaluate Expression (should then prompt the value
368.8311)
A HyperStudy model is a construct that maps a set of independent variables to a set of dependent responses. The model consists
of three separate steps: writing, executing, and extracting. The writing of the model files is the process of getting the independent
variable out of HyperStudy and into another format. Most of the time this corresponds to the writing of a file in some format. The
opposite is true in the extraction step: data exists in some output files and must be absorbed into HyperStudy. The solver script is
responsible for bridging the gap in moving the process along from the input file to the output files. So the question to ask is: “Given
an input file, how do I generate the output files?”.
Knowing how to generate the output files will provide the directions on how to construct the solver script. Imagine being given the
input file and asked to get the results file. If the process is as simple as submitting the file as direct input to some program’s
executable, then the solver script could be as simple as a single line. The solver script should not finish and return control back to
HyperStudy until both the process is completed and the output files are generated. If there are many steps involved, such as
uploading the file to a server, submitting the file to a queue, waiting for it to finish, and then downloading the file, then the solver
script must perform all these actions, too.
A solver script must be able to do everything you would do manually to create the outputs given the input file, but non-interactively.
Our colleague Joseph Pajot summarized some of these aspects in the following video:
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 223
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
[Link]
In HyperStudy, each model is associated with a solver execution script. The role of the solver script is to provide the name and
location of the file that HyperStudy uses to execute the model. There is no unique method to the construction of these files. The
scripts can be constructed in any language, and its contents can be as simple as a single line or a detailed set of commands. This
generality is intentional so that HyperStudy remains flexible enough to be wrapped around any non-interactive process.
For more information on how to register solver script files in HyperStudy, refer to Register Solver Scripts (see Online Help
Documentation HyperStudy → More on Files)
For each run, HyperStudy creates a separate run folder. In the case of multiple models, a separate model folder is also created.
For each run, HyperStudy writes the solver input file to the Study Run folder.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 224
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
If any other files need to reside in the Study Run folder, they will need to be copied. For example, RADIOSS needs a starter file and
an engine file to reside in the Study Run folder. A file can be copied from the study directory by adding its name to the solver input
file. Separate names in the solver input file with a semi-colon
In order for HyperStudy to execute properly, verify that the solver returns control back to HyperStudy only after the execution is
finished. Otherwise, HyperStudy will attempt to extract results before all files are finished writing and the study will fail. In order to
avoid, this, if possible, the solver should be run in interactive mode. Otherwise, you will need to include a wait command in your
batch file.
In a study that uses more than one model, the models are executed in a sequence determined by HyperStudy. To control the
sequence of runs, specify the priority option for the model. The results are extracted after the solvers have finished, or earlier
depending on any model dependencies.
A failure during the script execution can be noted by creating a file titled task__exe_err.txt. If this file is present in the run directory,
HyperStudy will detect the execution as a failure. A similar error file can be created for other task failures: write (task__wri_err.txt),
extraction (task__ext_err.txt) and purge (task__pur_err.txt).
We found the below listed references quite interesting and helpful. Please note that there is no business relationship (association)
between the authors and Altair – the list below is included for your convenience only and is by far not complete.
If you find other material more helpful, please let us know - we would be happy to include your favorite references in here as well.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 225
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
[Link]
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 226
eBook / Introduction into Design of Experiments DOE with HyperStudyTM
[Link]
As you may can imagine, the list of videos about DOE found in the internet, especially on YouTube is endless.
Just search for: Design of Experiments, Intro to DOE, Intractions & Main Effects, Interpreting Main Effects, DOE Examples and so
on.
Please let us know your favorite DOE related videos - we are happy to include them in here.
Altair Engineering, Inc. All Rights Reserved. / [Link] / Nasdaq: ALTR / Contact Us 227