You are on page 1of 105

October 25,

© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Chapter 2 - Setup a Definition & Basic - Part 1

2) Setup a Definition & Basic


• Setup a Definition - General Workflow
• Define Models (Types)
• Define Input Variables
• Test Models
• Define Output Responses
• HyperMorph Shape Parameterization
• Multi-Model Studies
• Exercises 2a, 2b, 2c, 2d

2
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Chapter 2 - Setup a Definition & Basic - Part 2

2) Setup a Definition & Basic


• HyperStudy Approaches - Overview
• HyperStudy Approaches - Add an Approach
• Basic Approach - General Workflow
• Definition
• Specifications
• Evaluate
• Post-Processing
• Report
• General Good Practices - Study Management
• Questions & Answers

3
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.

Setup Definition

4
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - General Workflow

Define Models Define Input Test Models Define Output


Variables Responses
A model is a connection to An input variable is a A single run aiming to
the model of the system An output response is a
system parameter that validate the connection to
subjected to a study. measurement of system
influences the system the model(s) defined. performances.
performance.

5
Note: Setup Definition can be set for each approach individually.
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Models

Define Models: Add one or several Add Model Resources


models Define Dependencies Import Variables
A model is a between models
connection to the
model of the system
subjected to a study.

Optional

6
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Models

Model Types:
• HyperWorks Models
• Uniquely Designed for HyperWorks Products

• Third Party Models


• Designed for non-Altair Products

• General Models
Parameterized
Spreadsheet Internal Math
File
• Any ASCII file or calculator type
HyperMesh SimLab

Workbench Lookup Operator HyperStudy Fit

FEKO

MotionView
B PreProcessor
7 Flux FluxMotor
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Models

Step 1: Add Model


a. Add a model:
• Browse Resource file
• Drag & Drop Resource file in the GUI
b. Specify a Solver Input File (set automatically for some models)
HyperStudy will create this file for each run
based on the resource file
c. Select a Solver Execution Script (set automatically for some models)
HyperStudy will run the model with this solver script

8
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Models

Step 1: Add Model (Register/Define a Solver Execution Script)


d. Select Register Solver Script from menu Edit or from the GUI
e. Select type and provide location of the file, which HyperStudy
uses to execute the model
f. Define HW solvers which are not set by default (ex. FEKO); third-
party solvers; scripts performing a series of custom actions (copying
files, running one or more solvers and extracting data).

9
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Models

Step 2: Define Model Resources (optional)


a. Add File and Folder input resources.
b. Add File and Folder output resources.
c. Add Linked resources.
d. Visualize models dependencies.

10
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Models

Step 3: Specify Solver Input Arguments (optional)


a. Main arguments such as -batch or $file are set automatically

b. Set an additional argument to be passed to the solver


• Ex. For Excel, this field may contain a macro name My_Vb_script1
• Ex. For LS-DYNA, this field may contain i=$file MEMORY=5000000
You can use the Help guide on any HW solver arguments
• Syntax and purpose
• Copy and Append options from the Help
• Fully customizable solver specific help
• Solver command available:

11
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Models

Parameterized File model - is a general ASCII text file, which has search and replace
substitution for input variables.
• Used with template files (.tpl)

1. Resource 3. Solver Execution Script


• Click on ABC(…) to pick the input deck to be parameterized • List of available solvers
• Drag & Drop .tpl file in the work area • Register new Solver…
2. Solver Input File 4. Solver Input Arguments
• .fem for OptiStruct • $file is set automatically
• _0000.rad; 0001.rad for Radioss • Help guide for additional environment
• .txt for None variables

12
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Models

Internal Math model - creates input variables that are contained entirely within
HyperStudy and do not map to any external applications.
• Use of the HyperStudy Expression Builder to calculate responses as functions of input variables
or output responses
• No definition of resource file, solver input file, solver execution script and solver input arguments
• Only creation of input variables and output responses

13
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Models

Spreadsheet model - performs calculations.


• Used with Excel spreadsheet

• You only need to define the resource file by either:


• Clicking on

• Drag & Drop .xls/.xlsx/.xlsm file in the work area

• Solver Input file and Solver Execution Script are filled in automatically

• Possibility to specify Solver Input Arguments (ex. a macro name)

14
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Models

HyperMesh model - directly accesses the HyperMesh database of the model, which
enables you to perform easy design parameterization of solver input files.
• used with HyperMesh (.hm) files
• You can start HyperStudy from the Application menu in HyperMesh

1. Resource 3. Solver execution script


• Click on • List of available solvers
• Drag & Drop .hm file in the work area • Register new Solver…
2. Solver input file
• .fem for OptiStruct
• _0000.rad; 0001.rad for Radioss
• .txt for None
15
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Models

MotionView model - directly access the HyperView database of the model, which
enables you to perform easy design parameterization of solver input files.
• used with MotionView (.mdl) files
• You can start HyperStudy from the Application menu in MotionView

1. Resource 3. Solver execution script


• Click on • List of available solvers
• Drag & Drop .mdl file in the work area • Register new Solver…
2. Solver input file
• .xml for MotionSolve
• .ADM/ACF for ADAMS
• .inp for ABAQUS
16
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Models

Workbench model - connects to an ANSYS workbench project.


• HyperStudy recognizes ANSYS Workbench input parameters as input variables and direct output
parameters as output responses

1. Resource
• Click on and browse .wbpj
• Drag & Drop .wbpj file in the work area

2. Solver input file, Solver execution script and Solver input arguments are defined automatically

Note: For the first use of HyperStudy with ANSYS, user needs to register a solver script that points to
runwb.exe
17
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Models

Feko model - connects to a Feko project, which enables you to automatically detect
input variables and run high frequency electromagnetic simulations.
• Used with Feko (.cfx) file

1. Resource
• Click on and browse .cfx
• Drag & Drop .cfx file in the work area
2. Solver input file and Solver execution script are defined automatically
3. Solver input arguments:
• $filebasename is set automatically
• User can add additional environment variables
Note: For the first use of HyperStudy with Feko, user needs to define the solver installation path.

18
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Models

Flux model - connects to any Flux 2D and 3D project, which enables automatic import
of variables/responses and run low frequency electromagnetic simulations.
• Used with Flux via .F2HST file (.F2G in version prior to 2019.1).

1. Resource
• Click on and browse .F2HST
• Drag & Drop .F2HST file in the work area
2. Solver input file and Solver execution script are defined automatically
3. Solver input arguments:
• -batch is set automatically
• Help guide for additional environment variables

19 Note: For the first use of HyperStudy with Flux, user needs to define the solver installation path.
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Models

FluxMotor model - connects to a FluxMotor model.


• Used with FluxMotor via .fm2hst file

1. Resource
• Click on and browse .fm2hst
• Drag & Drop .fm2hst file in the work area
2. Solver input file and Solver execution script and Solver input arguments are defined automatically

Note: For the first use of HyperStudy with FluxMotor, user needs to define the solver installation path.

20
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Models

Operator model - executes a process but not have an associated write operation.
• If the operation has no variables, there is no need to define a resource file and it can be left blank
• Ex: To perform an analysis, which is dependent on the output from another model in the HyperStudy
session. This linking can be accomplished by defining one or more model resources

21
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Models

SimLab model - parametrically drives SimLab macros (.js), which can be used to
automatically mesh and solve FEA problems
• To automatically detect and import parameters and responses

1. Resource
• Click on and browse .js
• Drag & Drop .js file in the work area
2. Solver input file, Solver execution script and Solver input arguments are defined automatically

Note: For the first use of HyperStudy with SimLab, user needs to define the solver installation path.

22
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Models

HyperStudy Fit model - imports the python-based report created by a Fit approach
from another HyperStudy session.

1. Resource
• Click on and browse .pyfit
• Drag & Drop .pyfit file in the work area
2. Solver input file and Solver execution script are defined automatically

23
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Models

Lookup model - extracts values from a file with known input/output pairs.

1. Resource
• Click on and browse .csv
• Drag & Drop .csv file in the work area

2. Solver input file and Solver execution script are defined automatically
3. Solver input arguments:
• $file is set automatically

24
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Models

B PreProcessor - creates a parametric connection to a B Preprocessor database


enabling to generate solver input files.

1. Resource
• Click on and browse .ansa
• Drag & Drop .ansa file in the work area

2. Solver input file


• .ansa

3. Solver execution script and Solver input arguments are defined automatically

Note: For the first use of HyperStudy with ANSA, user needs to define the path to an ansa startup

25
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Input Variables

Define Input
Review / Edit Add / Remove Define Links
Variables: Enable /Disable
Add Constraints
Bounds, Types, Between Variables
An input variable is a Modes and or between Variables
system parameter that and Responses
influences the system Distributions
performance.

Optional operations on Variables

26
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Input Variables

Bounds, Modes, Distributions tabs - you can review and edit the following design variable
properties:
• Active/Inactive (Once a variable is made inactive; it is no longer a variable but is fixed to its initial value.)
• Bounds and initial value.
• Data type between real, string and integer
• Mode between continuous, categorical or discrete.
• Distribution role between Design, Design with Random, or Random Parameter
• Distribution properties

27
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Input Variables

Mode/Data Type

• Continuous variables can take any values between a lower and upper bound
• Discrete variables can only take values defined by the user such as number of bolts, specific values of
thickness
• Categorical variable can take a set of values that are strings which cannot be ranked numerically. For
example, the color of a car may be blue, red, or yellow.

28
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Input Variables

Distributions
• If probabilistic studies are to be performed; it is necessary to identify the variables with variations as
Design, Design with Random or Random parameter.
• Design: A variable that is deterministic and has no uncertainty associated with its value.
• Design with Random: A variable whose value is subject to uncertainty due to manufacturing, operating condition,
etc. such as part dimensions such as length, width, or height.
• Random Parameter: A not designable parameter whose value is subject to uncertainty due to uncontrollable factors
such as operating conditions such as environmental conditions such as temperature or humidity.

29
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Input Variables

Step 1: Add/Remove Input variables - Import


• Method1 - Import Input Variables from HyperMesh or MotionView
1. Click Import Variables.
2. Select the parameter(s) to add as input variables from the panel and
click Add.
3. Click OK (HyperMesh) or Done (MotionView).
• Method2 - Import Input Variables and Output Responses from
Excel Spreadsheets
1. Click Import Variables and select input variables from Excel spreadsheet.
2. In the Excel dialog,
click Yes to begin
selecting variables.
3. Click OK to import the
selected variables.
4. Click Cancel in the
Selector dialog to stop
selecting input variables.
30
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Input Variables

Step 1: Add/Remove Input variables - Create/Remove

• Create Input Variables


1. Click Add Input Variable and define the
input variable by modifying its corresponding. cells in the work area.
2. Enter a label.
3. Specify a lower, nominal and upper bound.

• Remove Input Variables


1. In the Define Input Variables step, select the
input variables to remove.
2. Click Remove Input Variable.

31
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Input Variables

Step 2: Deactivate Input Variables


• Reducing the number of independent variables can reduce the number of runs required in an
Optimization or DOE approach.
1. In the Define Models step > Active column
2. Clear the input variable's corresponding checkbox.

32
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Input Variables

Step 3: Link Variables


• In order to synchronize the design updates between models, link the design variable of a model to the
variables or responses of other models.
1. Under Expression, click on .
2. In the Expression Builder, click the Input Variables tab to view a list of input variables in your study.
3. Select the input variable/output response to which the input variable will be linked.
4. Click Insert Varname and then OK. The logo appears indicating the linked variable.

33
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Input Variables

Step 4: Constraints
• Defines an inequality constraint condition that is a function of only the input variables, to avoid failed
solvers calls by truncation sampling (DOE, optimization).
1. Click Add Constraint.
2. In the Label field, enter a name for the constraint.
3. In the Left Expression and Right Expression fields, specify expressions, by entering manually an expression or
clicking on to open the expression Builder.
4. In the Comparison field, select a comparison type:
• >= Greater than or equal to
• <= Less than or equal to

34
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Test Models

Test Models:

A single run aiming to


Run Definition Write Task Execute Task Extract Task
validate the connection
to the model(s)
defined.

Or run each task individually

35
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Test Models

Test Models – Run one nominal run to test Write, Execute and Extract tasks for model(s)
defined in the study Setup.
Use Run Definition button to launch all tasks automatically or click on each task button individually (ex. in
order to test each model individually when setting up a multi-models workflow).

• After running the test you can use Purge to remove large run files.
• Large files upon successful runs are removed, while failed runs files are kept for debug.

36
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Output Responses

Define Output
Responses: Review or
Add/Remove or Define Data Define
Define Goals
Disable Output Sources Gradients
An output response is a
measurement of system
Responses
performances.

Optional

37
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Output Responses

Define Output Responses - An output response is a measurement of system performances,


such as weight, volume, displacement, stress, strain, reaction forces and frequency.
• They will be used for the current study in the DOE, Fit, Optimization or Stochastic approaches.
• Response can be:
• simple measures: mass, node displacement/velocity/acceleration, element stress,…
• complex measures which are mathematical functions based on results data: max displacement of all elements, fatigue
criteria, mean root square between two curves,...
• Response should be a scalar value:
• use Readsim tools for vector management
• Templex functions in Expression builder: ex. min(), max(), integral(), v_1[0], v_1[numpts(v_1)-1]

38
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Output Responses

Step 1: Add/Remove Output Response


• Method 1: File Assistant - Automatically extracts data from
the output files generated during the evaluation.
1. From Directory drag-and-drop an output file into the work area or
click File Assistant.
2. In the File Assistant wizard, use the guided set of dialogs to
produce a completely defined response.
Select and define:
a. data goal
b. data options
c. options for data source and response
3. Click Finish and Evaluate to extract the output response
value.

Note: For Flux, FluxMotor, HyperStudy Fit, Lookup, SimLab and Spreadsheet connections, responses are
automatically detected and extracted.
39
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Output Responses

Step 1: Add/Remove Output Response - Method 1


Data Goals:
• Single Item in a Time Series
• Scalar results extraction for a specific item.
• Response definition and related data source creation.

40
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Output Responses

Step 1: Add/Remove Output Response - Method 1


Data Goals:
• Multiple Items at Multiple Time Steps
• Vector results data extraction
• String filtering, Slice and dice
• Min, max values extraction of a curve or a set of curves
• Individual or combined data sources and responses creation

41
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Output Responses

Step 1: Add/Remove Output Response - Method 1


Data Goals:
• Mode Tracking
• Modal Assurance Criteria (MAC) calculation
• Compare modal result to a known reference to correlate results or avoid mode switching
• Response definition and related data source creation

42
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Output Responses

Step 1: Add/Remove Output Response - Method 1


Data Goals:
• Area between two curves
• Computes automatically the absolute area value between two curves
• For example match curves by minimizing max(Area), within an optimization approach

43
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Output Responses

Step 1: Add/Remove Output Response


• Method 2: Create Manually Responses Clear
1. Click Add Output Response (press and hold on to add multiple instances) equation
2. Click … to open the Expression Builder
3. Define Data Sources if needed
4. Define expression using Functions, Input Variables or Data Sources or Ctrl+I
of selected
5. Evaluate Expression
input

44
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Output Responses

Step 2: Define Data Sources (Vectors)


1. Go in Data Sources tab
2. Click Add Data Source (press and hold on to add multiple instances)
3. Click … to open the Data Source Builder or Drag & Drop output file in the work area
4. Define Reader tool and Data Options.

Option Extract data from…


…a run file by selecting a subcase, request and component
File Source
over all time steps.
…a run file by selecting a combination of multiple requests,
Read Simulation
components and timesteps.
Modal Assurance …modal result to a known reference to correlate results or
Criteria avoid mode switching.
Area …area between two curves.
Spreadsheet …a range of cells in a spreadsheet.
ASCII Extract … ASCII result files.
Templex … templex statements or expressions.

45
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Output Responses


Initial

Step 2: Define Data Sources (Vectors)


Data Options - Details:
• Area:
• Computes automatically the absolute area value between two curves
• For example match curves by minimizing max(Area), within an
optimization approach

• Spreadsheet: Optimized

• Identify data by specifying the sheet name and cell ranges.

46
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Output Responses

Step 2: Define Data Sources (Vectors)


Data Options - Details:
• ASCII Extract
• a parser for ASCII result files
• use the file browser to open the ASCII file
• File Source
• use Reference file Data
source in response
definition
• the Reference file is not
changing for each run and is not
located inside run folder

47
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Output Responses

Step 2: Define Data Sources (Vectors)


Data Options - Details:
• Read Simulation:
• Identify data from a run file by selecting a combination of multiple requests,
components and timesteps.
• Templex:
• Identify data, following a tempex expression.
• Modal Assurance Criteria:
• Extract data as modal result to a known reference to correlate results or avoid
mode switching.

48
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Output Responses

Step 3: Define Goals (Optional)


Goals can be defined in the following ways:
• Goals for the active output response:
1. In Define Output Responses tab, click on Goals
column. .
2. In the Type column, select the type of goal to create.
In columns 1 and 2, define additional options and click OK
• Goals manually:
1. In Objectives/Constraints - Goals tab, click Add Goal.
2. Select the output response to which this goal will be applied.
3. In the Type column, select the type of goal to create.
4. In columns 1 and 2, define additional options as
needed.

49
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Output Responses

Step 4: Define Gradients (Optional)


• Calculating the change of the output responses with respect to the input variables, it can be used in
gradient enabled methods inside of the approaches.
1. In the Gradients tab, click Add Gradient.
2. In the Label column, enter a name for the gradient.
3. In the Derivative of column, enter the varname of the output response.
4. In the Respect to column, enter the varname of the input variable.
5. Define the output response expression.
• Manually enter the expression in the Expression column.
• Build an expression using the Expression Builder
6. Click Evaluate.

50
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Output Responses

User-Defined functions
• User-defined functions can be used in Responses definition
• User-defined functions (.py or .hml files) are added through preferences file (.mvw) and are available in
the Functions list

51
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Output Responses

Function Examples - Math operations applied to curves


• It determines difference between curves.
• e.g Force vs Displacement
In crash analysis, you often want to look at the Force vs. Displacement curve. However, most of the time you have Force
vs. Time or Displacement vs. Time
• You can use the function: LININTERP (old_X, old_Y, new_X)
• You need to create all the vectors needed for this function:
• The force vector (V_1)
• The displacement vector (V_2)
• If d_0 is a scalar, lininterp (V_2, V_1, d_0) will return
a scalar.
• It will return a vector, if you define a range.

52
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Output Responses

Function Examples - Math operations applied to curves


• Multiple operations are possible on curves
• Below is a stress vs strain curve
• Let’s assume strain is v_1 and stress is v_2

1 max = max(v_2) 1 max


01 max) = v_1[indexofmax(v_2)]
1 (0 =.02)

10 OLQLQWHUSYBYB
0(1=40)
01 OLQLQWHUSYBYB

53 0(1 max)
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Define Output Responses

Function Examples - Math operations applied to curves

• Area below the curve: max(integral(v_1,v_2))

• Area below the curve from 0 WR0


max(integral(v_1[subrange(v_1,0,.06)],v_2[subrange(v_1,0,.06)])

• v_1 and v_2 must have the same dimension

54
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Definition

Setup Definition - Status Tab


• According to the New Definition concept in each approach, Status tab
can be very helpful for the user to review the approaches definitions and
check the status of each step.

55
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Definition

Setup Definition - Compare Tab


• According to the New Definition concept in each approach, Compare
tabs can be very helpful for the user to compare the approaches
definitions.
• Example: Comparison between Two Optimization approaches with
different settings for the Input parameters:

56
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Setup Definition - Environment Variables Customization

Environment Variables Customization


• Altair HyperStudy will create a specific directory structure
• In order to be able to submit each runs in these dynamic directories, your path and
input files need to be replaced by variables in your script
• These variables will dynamically change the input directory path to the current
directory

• The two main variables are:


$1: path + input file
• %STUDY_RUN_NUMBER% number of current path
• %STUDY_RUN_PATH% path to current directory

57
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2a - HyperMesh Model Parameterization

File Name and Location


…\ STUDENT - EXERCISE\
Ch2\ Study_2a\ arm_shape.hm

Exercise Goals
1. Open HyperMesh Desktop
6. Test Models
2. Load the model
7. Define Output Responses - Max_Disp
3. Start HyperStudy and create a new study
8. Define Output Responses - Max_Stress
4. Add a HyperMesh model to the study
9. Define Output Responses - Max_Stress 1-5
5. Import Variables
10.Define Output Responses - Volume Response
11.Save and Export

58
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2a - HyperMesh Model Parameterization

Problem Definition
The example is an arm that is clamped at one end and under an axial loading on the other end. It has been
meshed and parameterized with Shape Variables in HyperMesh and analyzed using OptiStruct.

8 Shape variables:
• length_1; length_2; length_3; length_4; length_5;
radius_1; radius_2; radius_3; high

Output responses:
• Global Displacement: Max_Disp;
• Global Stress: Max_Stress;
• Local Stresses: Max_Stress_1; Max_Stress_2;
Max_Stress_3; Max_Stress_4; Max_Stress_5
• Volume

59
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2a - HyperMesh Model Parameterization

Step 1: Open HyperMesh Desktop


a. Open HyperMesh Desktop.
b. Set the User Profile: OptiStruct
2

Step 2: Load the model


a. Load HyperMesh Desktop database model (arm_shape.hm)

Step 3: Start HyperStudy and create a new study


a. Start HyperStudy from Applications pulldown menu and
create a new Study in ..\ STUDENT-EXERCISE-SOLVED\
Study_2a
b. Label the study Study_2a

60
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2a - HyperMesh Model Parameterization

Step 4: Add a HyperMesh model to the study


4a
a. Add a model (HyperMesh Model) to the study
b. Define Solver input file: arm.fem
c. Define Solver execution script: OptiStruct (os)

4c

Step 5: Import Variables 5b


a. Click on .
b. Add Model Parameters:
• Define Input Variables:
Import Model Parameter from HyperMesh,
pick the Design Variables to add.

61
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2a - HyperMesh Model Parameterization

Step 6: Test Model


a. Submit the nominal run, by clicking on .

6a

7a
Step 7: Define Output Responses - Max_Disp
a. From the Directory, drag-and-drop the arm.h3d file, located in
approaches/setup_1-def/run__00001/m_1, into the work area.
b. In the File Assistant dialog, set the Reading technology to
Altair® HyperWorks® (Hyper3D Reader) and click Next
c. Select Multiple items at multiple time steps, then click Next 7c

62
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2a - HyperMesh Model Parameterization

Step 7: Define Output Responses - Max_Disp


7d
d. Define the following options, then click Next:
1. Set Subcase to Subcase 1 (step_force)
2. Set Type to Displacement (Grids)
3. Set Request: First - Last
4. Set Component to MAG

e. Enable Create individual Responses option


f. Set Expression to Maximum and click Finish
g. Label the output response Max_Disp and click Evaluate.
7e
7g

63
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2a - HyperMesh Model Parameterization

Step 8: Define Output Responses - Max_Stress: 8b


a. Repeat steps a-c from the previous response definition
b. Define the following options, then click Next:
1. Set Subcase to Subcase 1 (step_force)
2. Set Type to Element Stresses (3D)
3. Set Request: First - Last
4. Set Component to vonMises (2D & 3D)
c. Enable Create individual Responses option
d. Set Expression to Maximum and click Finish
e. Label the output response Max_Stress and click Evaluate

8d 8e

64
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2a - HyperMesh Model Parameterization


9b
Step 9: Define Output Responses - Max_Stress 1-5:
a. Repeat step a, from the previous response definition
b. Define the following options, then click Next:
1. Set Subcase to Subcase 1 (step_force)
2. Set Type to Element Stresses (3D)
3. Set Request: E1-E83; E84-E257; E258-E271; E272-E282; E283-E290
4. Set Component to vonMises (2D & 3D)
c. Create individual responses
d. Set Expression to Maximum and click Finish
e. Label the responses Max_Stress_1; _2; _3; _4; _5 and click Evaluate

9e

65
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2a - HyperMesh Model Parameterization

Step 10: Define Output Responses - Volume Response:


10b
a. From the Directory, drag-and-drop the arm.out file, located in
approaches/setup_1-def/run__00001/m_1, into the work area
b. In the File Assistant dialog, accept the default Reading
technology and click Next 10c

c. In the Text extraction window, set Keyword Volume and press


Enter
d. Highlight the value with the mouse, then right click and select
Value. Click Next
e. Label the output response Volume and click Finish.
10e

66
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2a - HyperMesh Model Parameterization

Step 10: Define Output Responses - Volume Response:


f. Responses:
Vector
Evaluated
Response Name Resource Subcase Type Request Component
Expression
File
Subcase 1 Displacement
Max_Disp arm.h3d First-Last MAG 1.4108
(SUBCASE1) (Grids)
OptiStruct
Volume arm.out (N/A) Out File Volume 1766760
Analysis
Subcase 1 Element Stresses vonMises (2D &
Max_Stress arm.h3d First-Last 195.2945
(SUBCASE1) (3D) 3D)
Subcase 1 Element Stresses vonMises (2D &
Max_Stress_1 arm.h3d E1-E83 195.2945
(SUBCASE1) (3D) 3D)
Subcase 1 Element Stresses vonMises (2D &
Max_Stress_2 arm.h3d E84-E257 178.3574
(SUBCASE1) (3D) 3D)
Subcase 1 Element Stresses vonMises (2D &
Max_Stress_3 arm.h3d E258-E271 187.5729
(SUBCASE1) (3D) 3D)
Subcase 1 Element Stresses vonMises (2D &
Max_Stress_4 arm.h3d E272-E282 110.8754
(SUBCASE1) (3D) 3D)
Subcase 1 Element Stresses vonMises (2D &
Max_Stress_5 arm.h3d E283-E290 169.3119
(SUBCASE1) (3D) 3D)

67
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2a - HyperMesh Model Parameterization

Step 10: Define Output Responses - Volume Response:


f. Responses Summary:

10f

68
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2a - HyperMesh Model Parameterization

Step 11: Save and Export


a. Save the study, by clicking on
File menu > select Save or click
b. Export archive (Study_2a.hstx)

11a 11b

69
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise (Optional) - Parameterize a MotionView Model

File Name and Location


..\ STUDENT-EXERCISE\Ch2\ Optional\ HS_1030\ pendulum .mdl

Exercise Goals
1. Perform the Study Setup
2. Perform Nominal Run
3. Create and Evaluate Output Responses
4. Run System Identification Optimization

Hint: You can find the step-by-step tutorial in the Online Help
HS-1030: Parameterize a MotionView Model

70
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise (Optional) - Set Up a Feko Model

File Name and Location


..\ STUDENT-EXERCISE\Ch2\ Optional\ HS_1615\
waveguide_pin_feed_placement.cfx

Exercise Goals
1. Perform the Study Setup
2. Perform Nominal Run
3. Create and Evaluate Output Responses
4. Run DOE
5. Run Fit
Note: For the first use of HyperStudy with Feko, Hint: You can find the step-by-step tutorial in
user needs to define the solver installation path. the Online Help
HS-1615: Set Up a Feko Model
71
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise (Optional) - Set Up a Flux Model

File Name and Location


..\ STUDENT-EXERCISE\Ch2\ Optional\ HS_1620\ Example.F2G

Exercise Goals
1. Perform the Study Setup
2. Perform Nominal Run
3. Create and Evaluate Output Responses
4. Run a Hammersley Stochastic Study

Note: For the first use of HyperStudy with Flux,


user needs to define the solver installation path. Hint: You can find the step-by-step tutorial in
the Online Help
HS-1620: Set Up a Flux Model
72
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise (Optional) - Set Up a SimLab Model using JavaScript

File Name and Location


..\ STUDENT-EXERCISE\Ch2\ Optional\ HS_1610\ HST_CONROD/Conrod_js_script.js

Exercise Goals
1. Register SimLab as a Solver
2. Perform the Study Setup
3. Perform Nominal Run
4. Perform the Sweep
5. Create and Evaluate Output Responses
Hint: You can find the step-by-step tutorial in the Online
Help
Note: For the first use of HyperStudy with HS-1610: Set Up a SimLab Model using JavaScript
SimLab, user needs to define the solver
installation path.
73
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2b - Parameterization of an Input Deck


File Name and Location
…\ STUDENT-EXERCISE\Ch2\ Study_2b\ arm.fem

Exercise Goals
1. Create a new study
2. Add a model to the Study
3. Parameter Editor
4. Import Variables
5. Edit Parameter bounds
6. Test models
7. Define output response - Volume
8. Save and export

74
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2b - Parameterization of an Input Deck

Problem Definition
arm.fem is an OptiStruct model.
The goal is to exercise creating variables on any text input file.

Variables:
• Young modulus

Output responses:
• Volume

75
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2b - Parameterization of an Input Deck

Step 1: Create a new study


a. Create a new study within HyperStudy.

Step 2: Add a model to the Study 2a


a. In the HyperStudy - Add dialog box, ensure that Select Type is set to
Parameterized File and click OK to add this new model to the study.
b. In Resource column, click on to open the Open File dialog box, navigate to
arm.fem file, click Open to load the file.
c. If you load a file that does not contain parameters, a dialog will appear asking if
you would like to parameterize the file. Select Yes.
2c

76
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2b - Parameterization of an Input Deck

Step 2: Add a model to the Study


d. In Tools > Editor… as a .tpl file. Click OK close the Editor, HyperStudy automatically loads the .tpl in the
Resource column and inserts the file name in the Solver input file column.
2d

e. Ensure that OptiStruct ( os ) is input as the Solver execution script, and that the Solver input
arguments is set to $file.

2e

77
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2b - Parameterization of an Input Deck

Step 3: Parameter Editor


a. Click again on in the Resource column to open the Parameter Editor .
b. Set up the Design Variable for MAT1:in the Parameter Editor dialog box, go to the Search field; type
MAT1 in the String to find field. Make sure to flag “Match case” checkbox and click on arrow until
you find the MAT1 card.
c. Highlight the value (select eight-character field, OptiStruct card has 8 characters), right click to Create
Parameter.

3b 3c

78
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2b - Parameterization of an Input Deck

Step 3: Parameter Editor 3d

d. In the Parameter dialog box, enter


Young modulus in the Label field.
Click OK to close the Parameter
dialog box.

e. Right click on Edit to edit the


parameter or click on
3e
green quad and select
Edit (menu list).

79
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2b - Parameterization of an Input Deck

Step 3: Parameter Editor 3f

f. Click on Save to save this file as a Template model


(Template files .tpl). In the Parameter Editor dialog box,
select OK to exit and return to HyperStudy.

Step 4: Import Variables


a. Click Import Variables to import the variables from template model to HyperStudy.
b. Click Next to proceed to the Define input variables step.

4b

80
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2b - Parameterization of an Input Deck


5a
Step 5: Edit Parameter bounds
a. Click on Lower Bound… and enter 185000 in the Lower Bound field.
b. Click OK to save changes.

Step 6: Test models


a. Submit Nominal run, by clicking on .

6a

81
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2b - Parameterization of an Input Deck

Step 7: Define output response - Volume


a. From the Directory, drag-and-drop the arm.out file, located in approaches/setup_1-def/run__00001/m_1,
into the work area
b. In the File Assistant dialog, accept the default Text Extraction technology and click Next
c. In the Text extraction window, set Keyword Volume and press Enter
d. Highlight the value with the mouse, then right click and select Value. Click Next
e. Label the output response Volume and click Finish.
7e

Step 8: Save and Export


a. Save the study, by clicking on 8b

File menu > select Save or click


b. Export archive (Study_2b.hstx)

82
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

HyperMorph Shape Parameterization


• What is HyperMorph?
• HyperMorph is a tool used to morph the shape of a finite element model in
ways that are useful, logical and intuitive.
• Morphing Technology Applications
• Rapid shape changes (interactively or parametrically) on the FE mesh
without severely sacrificing the mesh quality
• Map an existing mesh onto a new design data
• Generate and edit shape variables for subsequent design optimization
studies.
• HyperMorph Approaches
• Morph Volume - Efficient setup of morphing for complex FEA models
• Global and Local Domains and Handles - Method ideal for parametric
changes via domains and handles.
• Freehand - Direct morphing of the mesh without any morphing entities

83
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

HyperMorph Shape Parameterization

Freehand morphing Morph volumes


Domains and Handles

Map to geometry Local and global morphing via domains and handles

84
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

HyperMorph Shape Parameterization

Morphing - automatic mesh parameterization

• Morphing shapes used as design variables in

HyperStudy and OptiStruct.

• Mesh-based, no CAD data needed

85
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

HyperMorph Shape Parameterization

HyperMorph Shapes Definition

• Single nodal movement due to single shape variable

D' x

x=x(0)+D' x

x(0)

86
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

HyperMorph Shape Parameterization - Shapes Export

Shapes Export

87
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

HyperMorph Shape Parameterization - Shapes Export

Shapes Export - Optimization using HyperMorph Shapes in OptiStruct


• Shapes can be used for shape optimization.

• You can create a number of shapes in the morphing panels and associate them with design variables in
the Shape panel in the Optimization module.

• How to create shape variables for an optimization run:


1. Morph your model into the shape of the first shape variable. Morphing > Create > Shapes > save as shapes subpanel.
Click undo all to return to your base model shape.

88
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

HyperMorph Shape Parameterization - Shapes Export

Shapes Export - Optimization using HyperMorph Shapes in OptiStruct


• How to create shape variables for an optimization run:
2. From Analysis page > optimization module > shape panel > set the toggle to multiple desvars
Select the shapes for which you want to create shape variables > click create.
A desvar for each shape is created with the initial value and bounds in the panel. Each desvar is given a unique name.

3. Animate the shape variables:


Click undo morphing if you did not click undo all after saving the last shape.
Click animate.
4. The Deformed panel displays, allowing you to view each shape variable by animating it.
Once you have created shape variables for your shapes, you can set up the rest of your optimization problem
within the optimization module.
89
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

HyperMorph Shape Parameterization - Shapes Export

Shapes Export - Optimization using HyperMorph Shapes in HyperStudy


• How to create shape variables for an optimization run in HyperStudy:
1. You can start HyperStudy from the Application pull down menu

Shapes

Note:
a. HyperMesh – HyperStudy connection is not limited to shape variables, other properties such as thicknesses, loads can also be imported
from a HyperMesh model to a HyperStudy session.
b. Please refer to HyperStudy Online Help to get more details.
c. You can export these HyperMorph Shapes to be used in HyperStudy as parameterized file model.
90
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

HyperMorph Shape Parameterization - Shapes Export

Shapes Export - Optimization using HyperMorph Shapes in


HyperStudy
• How to create shape variables for an optimization run in HyperStudy:
2. You can export these HyperMorph Shapes to be used in HyperStudy as parameterized file
model.

91
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

HyperMorph Shape Parameterization - Shapes Import

Shapes Import
1. Launch HyperStudy through the Start menu
2. Create a New Study within HyperStudy, Add a Parameterized File model to
the study.
3. Add a model to the study (Simplified Study Setup by Auto Fill)
a. Click on the Resource tab, icon to open the Open File dialog box, navigate to the
input file.
In the Add Model step, if you load a file that 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.

92
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

HyperMorph Shape Parameterization - Shapes Import

Shapes Import
3. Add a model to the study (Simplified Study Setup by Auto Fill)
b. Click OK close the Editor. Ensure that OptiStruct ( os ) is input as the Solver execution script , and that the Solver
input arguments is set to $file .

c. Click on the Resource tab, icon to open the Parameter Editor .

93
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

HyperMorph Shape Parameterization - Shapes Import

Shapes Import
4. In the Parameter Editor, set up the GRID points to create a Shape Template
a. Select GRID cards in the input file (“Select Nodes > GRID”) and Include Shape .tpl from solver
b. With the GRID cards selected, right-click on the selected area and navigate the context menu to select Include Shape

94
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

HyperMorph Shape Parameterization - Shapes Import

Shapes Import
4. In the Parameter Editor, set up the GRID points to create a Shape Template
c. In the Shape Template dialog box, navigate to the location where the shapes.shp file was saved. Open the
shapes.optistruct.node.tpl file in that directory. Click Open. This replaces the nodes in the model with the
parameterized shapes, and the shapes are imported into the list of design variables.
d. Click .
e. Check the variables imported:

95
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Shapes Import to HyperStudy

Shapes Import to HyperStudy


1. Open the Editor in HyperStudy.
From the menu bar, click Tools > Editor. The Editor opens:

2. Import Solver Input Deck


In the File field, open the name.fem file

96
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Shapes Import to HyperStudy

Shapes Import to HyperStudy


3. Select Grid Data - In the Editor, right-click and select Select Nodes > GRID from the context menu. All
of the GRID cards in the name.fem file highlight,
4. Right-click on the highlighted cards and select Include Shape from the context menu.
5. Open the Shape Template as name.tpl

97
97
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Shapes Import to HyperStudy

Shapes Import to HyperStudy


6. Select Shapes Template and Design Variables from Shape.
Save the Shape Template as name.tpl

98
98
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2c - Parameterized File Model with Shape Variables

File Name and Location


• …\ STUDENT-EXERCISE\Ch2\ Study_2c\ arm.fem
• …\ STUDENT-EXERCISE\Ch2\ Study_2c\ arm_with_shapes_noDV.hm

Exercise Goals
1. Open HyperMesh Desktop 6. Import Variables
2. Load the model 7. Test Model
3. Create Design Variables 8. Define Output Responses
4. Create a new study in HyperStudy 9. Save and export
5. Parameter Editor

Hint: You can find the step-by-step tutorial in the Online Help
99
HS-2000: DOE Method Comparison
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2c - Parameterized File Model with Shape Variables

Problem Definition

Variables:
• length_1; length_2; length_3; length_4; length_5,
radius_1; radius_2; radius_3; high

Responses:
• Max_Disp; Max_Stress; Max_Stress_1;
Max_Stress_2; Max_Stress_3, Max_Stress_4;
Max_Stress_5; Volume

100
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2c - Parameterized File Model with Shape Variables

Step 1: Open HyperMesh Desktop 1a

a. Open HyperMesh Desktop.


b. Set the User Profile: OptiStruct

Step 2: Load the model


a. Load HyperMesh Desktop database model: arm _with_shapes_noDV.hm
2a

101
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2c - Parameterized File Model with Shape Variables

Step 3: Create design variables 3a

a. Click on Optimization > Create > Shape Desvars > multiple


desvars.
b. Select design variables for shapes: length_1, length_2, length_3,
length_4, length_5, radius_1, radius_2, radius_3 and high. Then
click on Create.

3b

c. Export design variables as


3c
.shp shape; keep sure to set the
analysis code as HyperStudy.

102
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2c - Parameterized File Model with Shape Variables

Step 4: Create a new study in HyperStudy 4a

a. Add a model to the Study


b. In the HyperStudy - Add dialog box, ensure that Select
Type is set to Parameterized File and click OK to add
this new model to the study.

c. In the Resource column, click on to open the Open File dialog box,
4b
navigate to the arm.fem file, click Open to load the file.
d. In the Add Model step, if you load a file that does not contain
parameters, a dialog will appear asking if you would like to parameterize
the file. Select Yes to parameterize the file.

4d

103
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2c - Parameterized File Model with Shape Variables

Step 4: Create a new study in HyperStudy 4e


e. The file will open in the HyperStudy Tools >
Editor… as a .tpl file.
f. Clicking OK to close the Editor, HyperStudy
automatically loads the .tpl in the Resource column
and inserts the file name in the Solver input file
column.
g. Ensure that OptiStruct ( os ) is input as the Solver
execution script, and that the Solver input
arguments is set to $file.

4g

104
October 25,
© 2019 Altair Engineering, Inc. Proprietary and Confidential. All rights reserved.
Altair HyperStudy, v2019.1

Exercise 2c - Parameterized File Model with Shape Variables

Step 5: Parameter Editor


a. Click again on in the Resource column to open the Parameter Editor.
b. Set up the GRID points to create a Shape Template
c. In the Parameter Editor dialog box, select from line 78 to line 13992 to select all GRID card (Select
Nodes > GRID) in the arm.tpl file.

5a

105
Explore, Study, Discover!

Altair HyperStudy v2019.1


Ch2 - Setup a Definition & Basic

Trainer’s Name Month XX, 2019

You might also like