Nastran Design Optimization Guide
Nastran Design Optimization Guide
1
Agenda Optimization Design Model
2
What is Optimization?
• Something we all do each day …
3
We even do it on vacation …
• Plan hikes to the best
scenery and wildlife
4
We even do it on vacation …
• Hike to the best scenery
and wildlife
5
We even do it on vacation …
• Hike to the best scenery
and wildlife
6
And sometimes even at work …
• Reduce weight of beam b
• Volume = L * b * h
h
• Vary b and h L
7
And sometimes even at work …
• Reduce weight of beam Design Model
• Volume = L * b * h
Objective
• Vary b and h
• Probably will set limits on b and h
Design variables
blow b bhigh
hlow h hhigh
8
But we all have our limits …
• Analysis model
• 100,000+ elements “Pseudo-realistic model”
• Design model
• 1000s of design variables
• 100s of design constraints
• Multiple analysis disciplines
• Static
• Buckling
• Vibration
• Etc.
9
MSC Nastran Gradient Based Optimization
• SOL 200 - supports Multi Disciplinary design sensitivity and
optimization Simultaneously
• Analysis Types
• Statics
• Normal modes
• Buckling
• Direct complex eigenvalue*
• Modal complex eigenvalue* Structural
• Direct frequency* Optimization
• Modal frequency*
• Modal transient*
• Static aero elasticity
• Aeroelastic flutter
(*Includes acoustic responses)
10
What is Design Optimization?
• Automated model updates
• Objective
• Minimize weight
• Maximize payload
• Minimize Error Function (test/analysis)
• Design Variables
• Element properties (I, J, area, thickness, etc.)
• Grid locations (shape optimization)
• Topology (remove structure)
• Design Constraints
• Direct response
• Stress limits, frequency, displacement, etc.
• Derived response
• Equation (example: crippling stress calc)
• Design variable range ( .04 < t < .25)
11
Gradient Based Numerical Optimization
Optimization
Optimization
Design
Objective
Variables
Repeat
Numerical
And
Optimizer
Refine
MSCADS,DOT
Structural Improved
Optimization
Design
Constraints
12
Gradient Based Numerical Optimization
13
So what is “gradient based” optimization?
• In a nutshell – “go downhill … go
b
downhill fast …”
h
L
• Nastran calculates the sensitivity of A/ b = h / b = -6M/b2h2
each response to changes in the design A/ h = b / h = -12M/bh3
variables
• The Optimizer uses these gradients
(think slopes) to determine which
design variables to change
• Method of Steepest Descent along with
other more efficient methods are used
• Don’t forget about constraints!
• Search direction must be feasible, i.e., can’t
violate constraints
14
How do I know it is the “optimal” solution?
• Depends on what “optimal” means
• Out of all possible designs, this one is “the best” - Maybe
• Global max/min? - Maybe
• Local max/min? - Yes
• Improved design? - Yes
15
Global Optimization
• Are there any options?
• Manually “Drop the Ball” in
many locations
• Shape
• Change in GRID
locations Shapeinit Shapeopt
• Topology
Topoopt
• Remove “unneeded”
structure
Topoinit
17
Types of Optimization in MSC Nastran
• Topography
• Special form of shape
optimization
• Topometry
• Special form of sizing
optimization
• Each element is separately
designed
• Compliance is minimized
• Design variables include All elements with Varied thickness after
• Thickness same initial thickness optimization
• Area
• Young’s modulus
• Etc.
18
Optimization Applications
• Structural design improvements
• Minimize thickness, hence weight
• Generation of feasible designs from infeasible
designs
• Original model violates stress levels or other
constraints
• Preliminary Design
• Candidate designs from topology optimization
• Model matching to produce similar response
• Frequency response, modal test
• Sensitivity evaluation
• Identify which regions of the model are most
“sensitive” to design changes or imperfections
19
Types of Optimization in MSC Nastran
• Sizing tinit
• Change “property” topt
• t, I, J,
• offset
• E,
• Shape
• Change in GRID
locations Shapeinit Shapeopt
• Topology
Topoopt
• Remove “unneeded”
structure
Topoinit
20
Getting Started
BEGIN BULK
DRESP1, 1, WT, WEIGHT
Response
MAT1 mid DESVAR, 101, b, init, lb, ub
CBAR id pid DESVAR, 102, h, init, lb, ub
PBARL pid mid BAR DVPREL1, 201, PBARL, pid, DIM1
+ b h + , 101, 1. Variables
GRID DVPREL1, 202, PBARL, pid, DIM2
FORCE + , 102, 1.
SPC
DCONSTR, 301, 2, lb, ub Constraints
DRESP1, 2, Sa, STRESS, ELEM
Weight
Frequency
Nastran
22
Linking FE to the Design Model
DESOBJ(MIN) = 1 Objective
BEGIN BULK
DRESP1, 1, WT, WEIGHT
Response
MAT1 mid DESVAR, 101, b, init, lb, ub
CBAR id pid DESVAR, 102, h, init, lb, ub
PBARL pid mid BAR DVPREL1, 201, PBARL, pid, DIM1
+ b h + , 101, 1. Variables
GRID DVPREL1, 202, PBARL, pid, DIM2
FORCE + , 102, 1.
SPC
DCONSTR, 301, 2, lb, ub Constraints
DRESP1, 2, Sa, STRESS, ELEM
Weight
Frequency Responses can be:
Nastran
BEGIN BULK
DRESP1, 1, WT, WEIGHT
Response
MAT1 mid DESVAR, 101, b, init, lb, ub
CBAR id pid DESVAR, 102, h, init, lb, ub
PBARL pid mid BAR DVPREL1, 201, PBARL, pid, DIM1
+ b h + , 101, 1. Variables
GRID DVPREL1, 202, PBARL, pid, DIM2
FORCE + , 102, 1.
SPC
DCONSTR, 301, 2, lb, ub Constraints
DRESP1, 2, Sa, STRESS, ELEM
Weight
Frequency 1) Design variables define the things that will
Nastran
BEGIN BULK
DRESP1, 1, WT, WEIGHT
Response
MAT1 mid DESVAR, 101, b, init, lb, ub
CBAR id pid DESVAR, 102, h, init, lb, ub
PBARL pid mid BAR DVPREL1, 201, PBARL, pid, DIM1
+ b h + , 101, 1. Variables
GRID DVPREL1, 202, PBARL, pid, DIM2
FORCE + , 102, 1.
SPC
DCONSTR, 301, 2, lb, ub Constraints
DRESP1, 2, Sa, STRESS, ELEM
Weight
Frequency
Nastran
25
Linking FE to the Design Model
DESOBJ(MIN) = 1 Objective
BEGIN BULK
DRESP1, 1, WT, WEIGHT
Response
MAT1 mid DESVAR, 101, b, init, lb, ub
CBAR id pid DESVAR, 102, h, init, lb, ub
PBARL pid mid BAR DVPREL1, 201, PBARL, pid, DIM1
+ b h + , 101, 1. Variables
GRID DVPREL1, 202, PBARL, pid, DIM2
FORCE + , 102, 1.
SPC
DCONSTR, 301, 2, lb, ub Constraints
DRESP1, 2, Sa, STRESS, ELEM
Weight
Frequency
Nastran
26
Linking FE to the Design Model
DESOBJ(MIN) = 1 Objective
BEGIN BULK
DRESP1, 1, WT, WEIGHT
Response
MAT1 mid DESVAR, 101, b, init, lb, ub
CBAR id pid DESVAR, 102, h, init, lb, ub
PBARL pid mid BAR DVPREL1, 201, PBARL, pid, DIM1
+ b h + , 101, 1. Variables
GRID DVPREL1, 202, PBARL, pid, DIM2
FORCE + , 102, 1.
SPC
DCONSTR, 301, 2, lb, ub Constraints
DRESP1, 2, Sa, STRESS, ELEM
Weight
Frequency 1) DVPREL1 entries relate design variables to
Nastran
27
Linking FE to the Design Model
DESOBJ(MIN) = 1 Objective
BEGIN BULK
DRESP1, 1, WT, WEIGHT
Response
MAT1 mid DESVAR, 101, H, init, lb, ub
CBAR id pid DESVAR, 102, B, init, lb, ub
PBARL pid mid BAR DVPREL1, 201, PBARL, pid, DIM1
+ b h + , 101, 1. Variables
GRID DVPREL1, 202, PBARL, pid, DIM2
FORCE + , 102, 1.
SPC
DCONSTR, 301, 2, lb, ub Constraints
DRESP1, 2, Sa, STRESS, ELEM
Weight
Frequency
Nastran
SOL 200
DESOBJ(MIN) = 1
BEGIN BULK
MAT1 mid
CBAR id pid
PBARL pid mid BAR
+ b h
GRIDs
FORCEs
SPCs
29
Interpreting the results
• Feasible Design
• Satisfies ALL Constraints
• Stress < 20ksi
• Tip deflection < 12inches
• Infeasible Design
• Violates at least one Constraint
• Freq = 33.5Hz: Requirement > 35 Hz
30
Interpreting the results
• Maximum Constraint History (MCH) graphs demonstrate feasibility
• All constraint violations are normalized
• Constraint violation that is the maximum may vary from design cycle to design
cycle
31
Interpreting the results
32
Interpreting the results
35
25
20
10
35 0
0 5 10 15
-5
• Feasible Design 30
0
• Feasible Design 30
-15
10
0
0 5 10 15
-5
- 250 -20
-25 -30
• Infeasible Design 10 0
-5
5
-35
10 15
-30
5
-35
0
0 5 10 15
35
30
25
20
15
10
0 5 10 15
33
How do I know when I have “converged?”
• Hard Convergence
• Hard convergence compares the results of the most recent finite element
analysis with those from the previous design cycle
• This is the default test for determining whether or not to terminate the design-
cycle process
• Soft Convergence
• Soft convergence compares the
design variables and properties
output from the approximate
optimization with those of the input
to the approximate optimization
• The assumption is that if the changes
in the design variables and properties
are not appreciable, then the
objective and constraints are
unchanged and there is nothing to be
gained from continuing
34
Post-Processing – Review the .f06 file
35
Post-Processing – Review the .f06 file
36
Post-Processing
• The Design Objective History
• Tracks changes in objective at each design cycle
Increased weight
required to resolve
constraint violations
37
Post-Processing
• The Design Variable History
• Tracks changes in DESVAR at each design cycle
38
Post-Processing
• Read Results as normal
• Recommend .OP2 file because it has
additional info for XY graphs (auto
generated)
• Design Objective
• Design Variables
• Maximum Constraint Histories
39
Examples
40
Examples
• 3 bar truss
• Stiffened panel
• Discrete design variable optimization
• Multi-Disciplinary Optimization
41
3 Bar Truss
y
x
10” 10”
2 10”
1 3
42
y
x
10” 10”
Patran Interface 1
2
3
10”
43
d200x1.dat
2 10”
1 3
44
3 Bar Truss
• Define objective
• Define design variables
• 1 for each PROD
• 3 total design variables
45
3 Bar Truss
• Create constraints
• Stress constraint for all 3 rods
• 2 displacement constraints at
node 4
• x
• y
46
3 Bar Truss
• Link the design variables for rods 1
and 3 via DLINK
47
3 Bar Truss
• Create design study
• Groups the objective, design
variables, constraints and
linked variables
48
3 Bar Truss
49
y
3 Bar Truss
10”
x
10” Design Variables
Objective Function
Max Constraint
Violation
50
3 Bar Truss
• How do I get started on my first Optimization run?
• This 3-bar truss example is one out of 15 examples found in the
Design Sensitivity and Optimization User’s Guide
• Nastran input files are provided with the examples
51
stiff_plate.dat
Stiffened Panel
Analysis Model
Material: E = 10E6psi
= 0.33 = 0.1lb/in3
Applied Load: Subcase 1: Uniform Pressure
Subcase 2: Quadratic Pressure
Dimensions: 36in x 36in
Panel Thickness: 0.1in
Hat Section: H: 0.25in
W: 0.25in
W1: 0.1in
t: 0.05in
Design Model
W Objective: Minimize weight
Variables: Panel thickness
W1 Section dimensions
H
(H, W, W1, t)
Constraints: Panel stress: 0 <= <= 24ksi
t Bar max combined stress: 0 <= <= 36ksi
52
Stiffened Panel
• Create analysis model
• Create model variables
• Define bounds for model variables
• Create design study
• Define objective
• Define design constraints
53
Stiffened Panel
Objective Function Constraint Initial Final
Plate stress 36ksi 23ksi
Bar stress 122ksi 36ksi • Optimize
• Post-process
Max Constraint
Violation
HAT W
HAT H
W Variable Initial Final Panel thick
Panel thick 0.1 0.132 HAT W1
W1 H 0.25 0.207 HAT t
H W 0.25 0.401
W1 0.1 0.05
t t 0.05 0.025
54
Discrete Variable Optimization
• PROBLEM:
• Gradient Based = continuous design space (1.232891)
55
Discrete Variable Optimization
• Adding the following DDVAL entries to the composite
tube analysis will ensure “standard” ply thickness and
orientations
$ESVAR, ID, LABEL, XINIT, XLB, XUB, DELXV DDVAL
DESVAR 1 TPLY 0.01 0.001 20.0 101
DESVAR 2 THETA 85.0 -90.0 90.0 201
DESVAR 3 THETA 60.0 -90.0 90.0 201
56
d200c01b_wddval.dat
0.015
Ply Thickness
Comparison between Continuous
Ply Orientation and Discrete Variable Optimization
57
d200c01b_wddval.dat
58
d200c01b_wddval.dat
59
Multi-Disciplinary Optimization
• MSC Nastran supports multi-disciplinary optimization
• linear statics + normal modes + buckling + flutter…
• Patran expands Multi-Disciplinary options to include
• Linear statics + normal modes + buckling + freq response + trans
response
• MSC Patran fully supports post-processing any multi-
disciplinary optimization performed with MSC Nastran
60
Multi-Disciplinary Optimization
Analysis Model
Cantilever Beam Material: E = 30E6psi
= 0.33 = 0.2836
Applied Load: End Load of 500lb
Dimensions: 10in
T Section: H: 1.0in
W: 1.0in
Fixed end t1: 0.3in
t2: 0.3in
Design Model
W Objective: Minimize weight
Variables: Section dimensions (H, W, t1, t2)
Constraints: Bar min/max combined stress:
-50ksi <= <= 50ksi
H End displacement magnitude <= 0.1in
t1
Mode 1 frequency: 100Hz <= f <= 200Hz
t2
61
Multi-Disciplinary Optimization
0.3255
0.15
Initial section Final section
62
Optimization: Summary and
Benefits
63
Design Optimization Value
64
Optimization = minimum material
65
Thank You …
66