Professional Documents
Culture Documents
Software Corporation
2 MacArthur Place
Santa Ana, CA 92707, USA
Tel: (714) 540-8900
Fax: (714) 784-4056
Web: http://www.mscsoftware.com
Tokyo, Japan
Tel: 81-3-3505-0266
Fax: 81-3-3505-0914
United States
MSC.Patran Support
Tel: 1-800-732-7284
Fax: (714) 979-2990
Munich, Germany
Tel: (+49)-89-43 19 87 0
Fax: (+49)-89-43 61 716
April 2003
NA*V2001*Z*Z*Z*SM-NAS107-WBK
DISCLAIMER
MSC.Software Corporation reserves the right to make changes in specifications and other information contained in this
document without prior notice.
The concepts, methods, and examples presented in this text are for illustrative and educational purposes only, and are not
intended to be exhaustive or to apply to any particular engineering problem or design. MSC.Software Corporation assumes
no liability or responsibility to any person or company for direct or indirect damages resulting from the use of any
information contained herein.
User Documentation: Copyright 2003 MSC.Software Corporation. Printed in U.S.A. All Rights Reserved.
This notice shall be marked on any reproduction of this documentation, in whole or in part. Any reproduction or distribution
of this document, in whole or in part, without the prior written consent of MSC.Software Corporation is prohibited.
MSC and MSC. are registered trademarks and service marks of MSC.Software Corporation. NASTRAN is a registered
trademark of the National Aeronautics and Space Administration. MSC.Nastran is an enhanced proprietary version
developed and maintained by MSC.Software Corporation. MSC.Patran is a trademark of MSC.Software Corporation.
All other trademarks are the property of their respective owners.
TABLE OF CONTENTS
PAGE
1. Optimization of a 3-bar truss problem subject to static loadings.
1-1
2-1
3-1
4-1
5-1
6-1
7-1
8-1
9-1
10-1
11-1
12-1
MSC.Software Corporation
2 MacArthur Place
Santa Ana, CA 92707, USA
Tel: (714) 540-8900
Fax: (714) 784-4056
Web: http://www.mscsoftware.com
Tokyo, Japan
Tel: 81-3-3505-0266
Fax: 81-3-3505-0914
United States
MSC.Patran Support
Tel: 1-800-732-7284
Fax: (714) 979-2990
Munich, Germany
Tel: (+49)-89-43 19 87 0
Fax: (+49)-89-43 61 716
April 2003
NA*V2001*Z*Z*Z*SM-NAS107-WBK
DISCLAIMER
MSC.Software Corporation reserves the right to make changes in specifications and other information contained in this
document without prior notice.
The concepts, methods, and examples presented in this text are for illustrative and educational purposes only, and are not
intended to be exhaustive or to apply to any particular engineering problem or design. MSC.Software Corporation assumes
no liability or responsibility to any person or company for direct or indirect damages resulting from the use of any
information contained herein.
User Documentation: Copyright 2003 MSC.Software Corporation. Printed in U.S.A. All Rights Reserved.
This notice shall be marked on any reproduction of this documentation, in whole or in part. Any reproduction or distribution
of this document, in whole or in part, without the prior written consent of MSC.Software Corporation is prohibited.
MSC and MSC. are registered trademarks and service marks of MSC.Software Corporation. NASTRAN is a registered
trademark of the National Aeronautics and Space Administration. MSC.Nastran is an enhanced proprietary version
developed and maintained by MSC.Software Corporation. MSC.Patran is a trademark of MSC.Software Corporation.
All other trademarks are the property of their respective owners.
TABLE OF CONTENTS
PAGE
1. Optimization of a 3-bar truss problem subject to static loadings.
1-1
2-1
3-1
4-1
5-1
6-1
7-1
8-1
9-1
10-1
11-1
12-1
WORKSHOP 1
3- BAR TRUSS OPTIMIZATION SUBJECT TO
STATIC LOADING
Subcase 1
X: -16,000 lbs
Y: -12,000 lbs
Subcase 2
X: 16,000 lbs
Y: -12,000 lbs
WS1-1
WS1-2
Constraints:
Stress Allowable:
20 ksi tension
15 ksi compression
Displacement at grid 4:
X direction 0.2 in
Y direction 0.2 in
WS1-3
7.
8.
9.
10.
11.
12.
13.
14.
15.
WS1-4
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
Create a design study called opt_1 and sets its design variables and objectives.
Create the design constraint named DISP_1 and set the appropriate lower and upper
bounds.
Create the linear static stress constraint named STRESS_1 with properties of 1-D rod.
Analyze the entire model and output as OP2 and Print using MSC.NASTRAN 2001.
Set the optimization parameters for the analysis.
Select 101 Linear Static as the solution type with both case_1 and case_2 selected to
generate wkshp1.bdf
Compare wkshp1.bdf with the sample output.
Compare wkshp1.bdf with the sample output (cont'd).
Compare wkshp1.bdf with the sample output (cont'd).
Submit the wkshp1.bdf to MSC.NASTRAN 2001 for analysis and check for errors.
Compare the results with the sample output.
In PATRAN, read the result file using NASTRAN's generated file, wkshp1.op2.
Plot the Design Variable History on the XY plot.
Post the Objective Function curve and apply.
Modify the XY plot's axis properties.
Post the curves PROP_1 and PROP_2 in the Design Variable History window
Set the properties of the curves and its axis properties.
Modify the PROP_1:1 curve and change the line style to long dash.
Post the Maximum Constraint Curve and plot it in the Design Variable History window.
Modify the axis' properties.
Quit MSC.PATRAN
WS1-5
Y
Z
Elastic Modulus
Poisson's Ratio
Density
10e6 psi
0.3
0.101
WS1-7
Open database.
a. File / New.
b. Enter wkshp1 for File
Name.
c. Click OK.
d. Under New Model
Preferences, select Based
on Model Tolerance.
e. Select MSC.NASTRAN for
Analysis Code.
e
f
c
WS1-8
b.
Front view
WS1-9
c
d
WS1-10
a
Create bars
a. Elements
b. Create/Element/Edit
c. Select Bar for Shape
d. Select Node 1 from the viewport
for Node 1 =
e. Enter Node 4 from the viewport
for Node 2 =
f. Apply
Repeat steps a c with:
Node 2 for Node 1 =
Node 4 for Node 2 =
and click Apply.
Repeat steps a c with:
Node 3 for Node 1 =
Node 4 for Node 2 =
and click Apply.
d
z
e
f
WS1-11
b
e
f
g
d
h
i
WS1-12
g
d
h
i.
j.
WS1-13
e
c
g
d
h
i
i.
j.
WS1-14
b
e
f
j
k
d
h
m
WS1-15
b
e
f
j
k
c
l
g
d
h
m
WS1-16
a
h
b
Create a new nodal force called
force_1.
a. Loads/BCs
b. Create/Force/Nodal
c. Enter force_1 for New Set Name
d. Input Data
e. Enter < -16000, -12000, > for
Force <F1 F2 F3>
f. OK
g. Select Application Region
h. Select FEM under Geometry
Filter
i. Select Node 4 from the viewport
for Select Nodes
j. Add
k. OK
l. Apply
e
j
d
g
l
WS1-17
h
b
e
i
j
f
c
d
g
l
WS1-18
a
e
b
Create a new Load Case called
case_1.
a. Load Cases.
b. Create
c. Enter case_1 as Load Case
Name
d. Assign/Prioritize Loads/BCs
e. Under Select Individual
Loads/BCs databox, select
Displ_disp_1
Displ_disp_2
Force_force_1
f. OK
g. Apply
f
d
WS1-19
a
b
Create another Load Case called
case_2.
a. Load Cases.
b. Create
c. Enter case_2 as Load Case
Name
d. Assign/Prioritize Loads/BCs
e. Under Select Individual
Loads/BCs databox, select
Displ_disp_1
Displ_disp_2
Force_force_2
f. OK
g. Apply
f
Note: The viewport stays the same.
WS1-20
a
b
c
d
e
WS1-21
a
b
c
d
e
g
NAS 107, Workshop 1, April 2003
WS1-22
e
f
c
i
d
j
h
k
NAS 107, Workshop 1, April 2003
WS1-23
b
Create Design Constraints for the
Design Study
a. Design Constraints
b. Create /Linear Static/
Displacement
c. DISP_1 for Constraint Name
d. Select Node 4 for Select Node
e. Select TX option under
Displacement Component
f. Enter 0.2 for Lower Bound
g. Enter 0.2 for Upper Bound
h. Apply
i. DISP_2 for Constraint Name
j. Select Node 4 for Select Node
k. Select TY option under
Displacement Component
l. Enter 0.2 for Lower Bound
m. Enter 0.2 for Upper Bound
n. Apply
a
f
h
NAS 107, Workshop 1, April 2003
WS1-24
b
c
d
e
f
WS1-25
a
e
b
Generate an input file and sets its
parameters for analysis.
a. Analysis
b. Optimize/Entire Model/Analysis
Deck
c. Enter wkshp1 for Job Name
d. Translation Parameters
e. For Data Output, select OP2 and
Print
f. For MSC.Nastran Version, enter
2001
g. OK
c
f
g
NAS 107, Workshop 1, April 2003
WS1-26
c
d
a
e
WS1-27
b
c
a
e
NAS 107, Workshop 1, April 2003
WS1-28
WS1-29
WS1-30
WS1-31
P1
CONVDV
DPMIN
1
.001
.01
P2
CONVPR
DXMIN
1
.01
.05
a
If you have MSC.NASTRAN on your
Network, you can submit the
wkshp1.bdf for analysis.
Open MSC.NASTRAN.
a. Find and Open wkshp1.bdf .
b. Open.
c. Run.
d. Check for fatal errors by
opening up wkshp1.f06 file as
a text document and
searching for the word
FATAL. If no fatal errors
exist, then the analysis
completed successfully.
If no matches exist, search
for the word WARNING.
Determine whether existing
WARNING messages
indicate modeling errors.
WS1-32
10
9
WS1-33
a
b
c
f
WS1-34
WS1-35
d
NAS 107, Workshop 1, April 2003
WS1-36
a
e
Change the Active Axis and its title
and font size.
a. XY Plot
b. Modify/Axis
c. Select Y for Active Axis
d. Title
e. Put a check mark in the Display
Axis Title checkbox
f. Enter Total Model Weight for
Axis Title
g. Change the Font Size to 12
h. Apply
i. Cancel
g
h
WS1-37
WS1-38
a
e
Modify the Active Axis and its Title
and Font Size
a. XY Plot
b. Modify/Axis
c. Select Y for Active Axis
d. Title
e. Put a check mark in the Display
Axis Title checkbox
f. Enter Area for Axis Title
g. Change the Font Size to 12
h. Apply
i. Cancel
g
h
WS1-39
c
e
f
WS1-40
WS1-41
a
e
Modify the Active Axis and its Title
and Font Size
a. XY Plot
b. Modify/Axis
c. Select Y for Active Axis
d. Title
e. Put a check mark in the Display
Axis Title checkbox
f. Enter Constraint for Axis Title
g. Change the Font Size to 12
h. Apply
i. Cancel
g
h
WS1-42
a
Quit MSC.PATRAN.
a. File / Quit.
WS1-43
WS1-44
WORKSHOP 2
MINIMIZATION OF SURFACE MATERIAL FOR
SHIPPING BOX
L
W
WS2-1
WS2-2
WS2-3
Model Description
Constraints:
Volume: V = H * W * L 2.0
Initial Design
H = 1.5
W = 1.5
L = 1.5
S = 18.0
V = 3.375
Optimum Design
H = 2.0
W = 1.0
L = 1.0
S = 12.0
V = 2.0
WS2-4
$
$
wkshp2.dat
$
ID MSC, D200X8 $
TIME 5
SOL 200
a.CEND
Generate an input file using
TITLE
= BOX MATERIAL MINIMIZATION WITH A VOLUME
the data from page 2-3. Use
CONSTRAINT D200X8
the following
input file as a
DESOBJ
=
starting
DESSUB
= 1point.
SUBTITLE = INITIAL DESIGN: W=1.5, L=1.5, AND H=1.5
$DISPLACEMENT = ALL
STRESS
= NONE
SPC
= 1
ANALYSIS = STATICS
LOAD
= 1
BEGIN BULK
param,post,-1
$
$ ---------------------------------------------------------$
$ DUMMY STRUCTURAL MODEL (NOT USED)
FORCE
1
2
1.0E7
1.0
0.0
0.0
GRID
1
0.0
0.0
0.0
GRID
2
1.0
0.0
0.0
CROD
1
1
1
2
MAT1
1
1.0E7
0.3
0.1
PROD
1
1
1.0
SPC1
1
23456
2
SPC1
1
123456 1
$
WS2-5
$
$ wkshp2.dat
$
ID MSC, D200X8 $
TIME 5
SOL 200
CEND
TITLE = BOX MATERIAL MINIMIZATION WITH A VOLUME CONSTRAINT D200X8
DESOBJ = 2
DESSUB = 1
SUBTITLE = INITIAL DESIGN: W=1.5, L=1.5, AND H=1.5
$DISPLACEMENT = ALL
STRESS
= NONE
SPC
=1
ANALYSIS = STATICS
LOAD
=1
BEGIN BULK
$
param,post,-1
$
$--------------------------------------------------------------------$
$ DUMMY STRUCTURAL MODEL (NOT USED)
FORCE 1
2
1.0E7 1.0 0.0 0.0
GRID 1
0.0 0.0 0.0
GRID 2
1.0 0.0 0.0
CROD 1
1
1
2
MAT1 1
1.0E7
0.3 0.1
PROD 1
1
1.0
SPC1 1
23456 2
SPC1 1
123456 1
$
$ DUMMY STRUCTURAL OPTIMIZATION STATEMENTS
$
DESVAR 4
DUM 1.0 0.1 10.0
DVPREL1 10
PROD 1
4
4
1.0
DRESP1 10
DISPL DISP
1
2
DCONSTR 1
10
1.0 1.0
$
$-------------------------------------------------------------------$
$ BOX DESIGN PROBLEM DEFINITION
$
$ Define three design variables
$
DESVAR 1
W
1.5 0.1 10.0
DESVAR 2
L
1.5 0.1 10.0
DESVAR 3
H
1.5 0.1 10.0
$
$ Define the Objective function
$
DRESP2 2
SURFACE 2
DESVAR 1
2
3
DEQATN 2
F(W,L,H)=2.0*(W*H+L*H+2.0*W*L)
$
$ Define a Volume constraint function
$
DCONSTR 1
1
2.0 1.0E35
DEQATN 1
F(W,L,H)=W*L*H
DRESP2 1
VOLUME 1
DESVAR 1
2
3
$ define the screen entry for equation
DSCREEN EQUA -100.0 1
doptprm p1
1
p2
15
ENDDATA
WS2-6
find an available UNIX shell window and at the command prompt enter nastran
wkshp2 scr=yes. Monitor the run using the UNIX ps command:
WS2-7
4. View Results
When the run is completed, edit the wkshp2.f06 file and search for word FATAL. If no matches exist,
search for word WARNING. Determine whether existing WARNING messages indicate modeling errors.
While still editing wkshp2.f06, search for word H I S T O R Y. Compare the results obtained in the .f06
file with the following:
***************************************************************
S U M M A R Y
O F
D E S I G N
C Y C L E
H I S T O R Y
***************************************************************
(HARD CONVERGENCE ACHIEVED)
NUMBER OF FINITE ELEMENT ANALYSES COMPLETED
NUMBER OF OPTIMIZATIONS W.R.T. APPROXIMATE MODELS
3
2
OBJECTIVE FROM
APPROXIMATE
OPTIMIZATION
OBJECTIVE FROM
EXACT
ANALYSIS
FRACTIONAL ERROR
OF
APPROXIMATION
MAXIMUM VALUE
OF
CONSTRAINT
-------------------------------------------------------------------------------------------------------------INITIAL
1.800000E+01
0.000000E+00
1
1.199250E+01
1.199250E+01
0.000000E+00
9.863377E-04
2
1.198195E+01
1.198195E+01
0.000000E+00
2.771199E-03
--------------------------------------------------------------------------------------------------------------DESIGN VARIABLE HISTORY
-------------------------------------------------------------------------------------------------------INTERNAL | EXTERNAL |
|
DV. ID. |
DV. ID.
LABEL | INITIAL
:
1
:
2
:
3
:
4
:
5
:
--------------------------------------------------------------------------------------------------------1
2
3
4
|
|
|
|
1
2
3
4
|
|
|
|
W
L
H
DUM
|
|
|
|
1.5000E+00 :
1.5000E+00 :
1.5000E+00 :
1.0000E+00 :
1.0054E+00 :
1.0054E+00 :
1.9767E+00 :
1.0000E+00 :
WS2-8
9.8063E-01 :
9.8063E-01 :
2.0740E+00 :
1.0000E+00 :
WS2-9
WS2-10
WORKSHOP 3
FRAME STRUCTURE DESIGN WITH
DIFFERENT SCALINGS
10,000 lbs
1
A2, I2
A1, I1
WS3-1
A3, I3
WS3-2
Objectives
10,000 lbs
1
A2, I2
A1, I1
WS3-3
A3, I3
WS3-4
Model Description
Part A
Grid Point
1
5
Tx (in)
0.91449
1.068138
Ty (in)
-0.0956148
0.09561418
Rz (in)
-0.00097538
-0.0010012
Part B
WS3-5
ui
2
)
t arg et
ui
Part C
Redo the problem by normalizing the design variables and the displacements
using the following formulation for the objective function:
6
F ( 1, 2, 3, 1, 2, 3) = (1
i =1
where i =
Ai
Aiinit
and
WS3-6
i =
Ii
Iiinit
ui
2
)
t arg et
ui
CBAR
1
1
1
2
0.000
1.00000 0.000
CBAR
2
1
2
3
0.000
1.00000 0.000
CBAR
3
1
3
4
0.000
1.00000 0.000
CBAR
4
1
4
5
0.000
1.00000 0.000
CBAR
5
2
5
6
1.00000 0.000
0.000
CBAR
6
2
6
7
1.00000 0.000
0.000
CBAR
7
2
7
8
1.00000 0.000
0.000
CBAR
8
2
8
9
1.00000 0.000
0.000
CBAR
9
3
1
10
1.00000 0.000
0.000
CBAR
10
3
10
11
1.00000 0.000
0.000
CBAR
11
3
11
12
1.00000 0.000
0.000
CBAR
12
3
12
13
1.00000 0.000
0.000
PBAR
1
1
100.
1.+7
1.+7
1.+7
PBAR
2
1
50.
1.+6
1.+6
1.+7
PBAR
3
1
150.
0.3+7
3.+6
1.+7
$ ----------------------------------------------------------$ Design Model Description
$
--- Design Variables (A, I) --DESVAR...
$
--- Design Variable to Properties Relation --DVPREL1...
$
--- Design Responses --DRESP1...
$
--- Equation to describe Objective function --$
The goal is to match the prescribed displacements.
$
Define a table containing the prescribed displacements.
DRESP2...
$
DEQATN...
$
DTABLE...
$
$
--- Screening and Optimization Control Data --DSCREEN,DISP,-0.5,1
$
2
3
4
5
6
7
8
9
10
DOPTPRM
DESMAX
20
DELP
.8
DPMIN
.1
ENDDATA
WS3-7
CBAR
1
1
1
2
0.000
CBAR
2
1
2
3
0.000
CBAR
3
1
3
4
0.000
CBAR
4
1
4
5
0.000
CBAR
5
2
5
6
1.00000
CBAR
6
2
6
7
1.00000
CBAR
7
2
7
8
1.00000
CBAR
8
2
8
9
1.00000
CBAR
9
3
1
10
1.00000
CBAR
10
3
10
11
1.00000
CBAR
11
3
11
12
1.00000
CBAR
12
3
12
13
1.00000
PBAR
1
1
100.
1.+7
1.+7
PBAR
2
1
50.
1.+6
1.+6
PBAR
3
1
150.
0.3+7
3.+6
$ Design Model Description
$
--- Design Variables --DESVAR,10,AREAHB,100.0,0.05,5000.0
DESVAR,20,AREAC1,50.0,0.05,5000.0
DESVAR,30,AREAC2,150.0,0.05,5000.0
DESVAR,40,IHB,10.E6,0.1,1.0E9
DESVAR,50,IC1,1.E6,0.1,1.0E9
DESVAR,60,IC2,3.E6,0.1,1.0E9
$
--- Design Variable to Properties Relation
DVPREL1,100,PBAR,1,4,5.0,,0.0,,+DVPA
+DVPA,10,1.0
DVPREL1,200,PBAR,2,4,5.0,,0.0,,+DVPB
+DVPB,20,1.0
DVPREL1,300,PBAR,3,4,5.0,,0.0,,+DVPC
+DVPC,30,1.0
DVPREL1,400,PBAR,1,5,1.0,,0.0,,+DVPD
+DVPD,40,1.0
DVPREL1,500,PBAR,2,5,1.0,,0.0,,+DVPE
+DVPE,50,1.0
DVPREL1,600,PBAR,3,5,1.0,,0.0,,+DVPF
+DVPF,60,1.0
$
(Contd)
WS3-8
1.00000
1.00000
1.00000
1.00000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
1.+7
1.+7
1.+7
---
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
WS3-9
+
+
10
+
+
+
10
find an available UNIX shell window and at the command prompt enter nastran
wkshp3a scr=yes. Monitor the run using the UNIX ps command:
WS3-10
4. View Results
When the run is completed, edit the wkshp3a.f06 file and search for the word FATAL. If no
matches exist, search for the word WARNING. Determine whether existing WARNING
messages indicate modeling errors.
While still editing wkshp3a.f06, search for the word H I S T O R Y. Compare the results obtained
in the .f06 file with the following:
***************************************************************
S U M M A R Y
O F
D E S I G N
C Y C L E
H I S T O R Y
***************************************************************
(HARD CONVERGENCE ACHIEVED)
(SOFT CONVERGENCE ACHIEVED)
NUMBER OF FINITE ELEMENT ANALYSES COMPLETED
NUMBER OF OPTIMIZATIONS W.R.T. APPROXIMATE MODELS
10
9
OBJECTIVE FROM
APPROXIMATE
OPTIMIZATION
OBJECTIVE FROM
EXACT
ANALYSIS
FRACTIONAL ERROR
OF
APPROXIMATION
MAXIMUM VALUE
OF
CONSTRAINT
-------------------------------------------------------------------------------------------------------------INITIAL
2.595013E+04
N/A
1
1.938923E+04
1.916654E+04
1.161876E-02
N/A
1.593391E+04
1.586977E+04
4.041748E-03
N/A
1.423345E+04
1.421479E+04
1.312590E-03
N/A
6.164483E+03
5.614997E+03
9.786058E-02
N/A
7.664992E+02
7.488561E+02
2.356002E-02
N/A
1.450883E+02
1.304158E+02
1.125052E-01
N/A
1.244497E+02
1.244324E+02
1.391819E-04
N/A
1.222592E+02
1.222557E+02
2.895602E-05
N/A
1.222557E+02
1.222557E+02
0.000000E+00
N/A
WS3-11
WS3-12
Moment of Inertia
WS3-14
(Cont.)
WS3-15
(Cont.)
WS3-16
1.00000
1.00000
1.00000
1.00000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
1.+7
1.+7
1.+7
---
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
WS3-17
8
9
-9.56418E-02
1.068138
+
E-03
+
10
+
find an available UNIX shell window and at the command prompt enter nastran
wkshp3b scr=yes. Monitor the run using the UNIX ps command:
WS3-18
8. View Results
When the run is completed, edit the wkshp3b.f06 file and search for the word FATAL. If no
matches exist, search for the word WARNING. Determine whether existing WARNING
messages indicate modeling errors.
While still editing wkshp3b.f06, search for the word H I S T O R Y. Compare the results obtained
in the .f06 file with the following:
***************************************************************
S U M M A R Y
O F
D E S I G N
C Y C L E
H I S T O R Y
***************************************************************
(HARD CONVERGENCE ACHIEVED)
(SOFT CONVERGENCE ACHIEVED)
NUMBER OF FINITE ELEMENT ANALYSES COMPLETED
NUMBER OF OPTIMIZATIONS W.R.T. APPROXIMATE MODELS
7
6
OBJECTIVE FROM
APPROXIMATE
OPTIMIZATION
OBJECTIVE FROM
EXACT
ANALYSIS
FRACTIONAL ERROR
OF
APPROXIMATION
MAXIMUM VALUE
OF
CONSTRAINT
-------------------------------------------------------------------------------------------------------------INITIAL
1.865449E+05
N/A
1
6.939589E+04
6.605289E+04
5.061096E-02
N/A
2.876406E+04
2.817723E+04
2.082625E-02
N/A
1.769462E+04
1.761205E+04
4.688396E-03
N/A
1.516328E+04
1.515656E+04
4.434832E-04
N/A
1.484496E+04
1.484487E+04
6.052176E-06
N/A
1.484487E+04
1.484487E+04
0.000000E+00
N/A
WS3-19
40
0
DESIGN VARIABLE HISTORY
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------INTERNAL | EXTERNAL |
|
DV. ID.
| DV. ID.
| LABEL | INITIAL
:
1
:
2
:
3
:
4
:
5
:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------1
|
10
| AREAHB | 1.0000E+02 : 1.8000E+02 : 3.2379E+02 : 5.8282E+02 : 1.0491E+03 : 1.1104E+03 :
2
|
20
| AREAC1 | 5.0000E+01 : 8.9982E+01 : 1.6189E+02 : 2.9140E+02 : 5.2451E+02 : 8.5592E+02 :
3
|
30
| AREAC2 | 1.5000E+02 : 2.7000E+02 : 4.8600E+02 : 8.7480E+02 : 8.9565E+02 : 8.8249E+02 :
4
|
40
| IHB
| 1.0000E+07 : 1.0000E+07 : 1.0000E+07 : 1.0000E+07 : 1.0000E+07 : 1.0000E+07 :
5
|
50
| IC1
| 1.0000E+06 : 1.0000E+06 : 1.0000E+06 : 1.0000E+06 : 1.0000E+06 : 1.0001E+06 :
6
|
60
| IC2
| 3.0000E+06 : 3.0000E+06 : 3.0000E+06 : 3.0000E+06 : 3.0000E+06 : 3.0000E+06 :
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------INTERNAL | EXTERNAL |
|
DV. ID.
| DV. ID.
| LABEL |
6
:
7
:
8
:
9
:
10
:
11
:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------1
|
10
| AREAHB | 1.1104E+03 :
2
|
20
| AREAC1 | 8.5592E+02 :
3
|
30
| AREAC2 | 8.8249E+02 :
4
|
40
| IHB
| 1.0000E+07 :
5
|
50
| IC1
| 1.0001E+06 :
6
|
60
| IC2
| 3.0000E+06 :
WS3-20
Area
Objective Function
WS3-21
Moment of Inertia
WS3-22
(Cont.)
WS3-23
SCALING
0.00000
345
345
345
345
345
345
345
345
345
345
345
(Cont.)
WS3-24
1.00000
1.00000
1.00000
1.00000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
1.+7
1.+7
1.+7
---
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
WS3-25
find an available UNIX shell window and at the command prompt enter nastran
wkshp3c scr=yes. Monitor the run using the UNIX ps command:
WS3-26
9
8
OBJECTIVE FROM
APPROXIMATE
OPTIMIZATION
OBJECTIVE FROM
EXACT
ANALYSIS
FRACTIONAL ERROR
OF
APPROXIMATION
MAXIMUM VALUE
OF
CONSTRAINT
-------------------------------------------------------------------------------------------------------------INITIAL
1.865449E+05
N/A
1
4.232678E+04
4.241914E+04
-2.177304E-03
N/A
7.577117E+03
7.575919E+03
1.581646E-04
N/A
5.201516E+02
5.231237E+02
-5.681461E-03
N/A
9.432918E-01
9.702917E+00
-9.027827E-01
N/A
1.355735E-01
1.405151E-01
-3.516783E-02
N/A
9.525458E-03
9.895544E-03
-3.739927E-02
N/A
1.627936E-03
1.637489E-03
-5.833745E-03
N/A
1.637489E-03
1.637489E-03
0.000000E+00
N/A
WS3-27
WS3-28
Area
Objective Function
Moment Of Inertia
WS3-30
WORKSHOP 4
CALCULATION OF DESIGN SENSITIVITY
COEFFICIENTS
Objective: Calculate the design sensitivity coefficients for the following spring/mass
system
WS4-1
WS4-2
Model Description
Constraints:
Displacements at Grid 1 (X direction) 0.2 m
Note:
For frequency responses, the default output is in terms of real and imaginary format. If the
magnitude/phase format is needed, use DISP( PHASE ) = n.
WS4-3
WS4-4
WS4-5
$
$ soln4.dat
$
TIME 5
SOL 200 $
CEND
TITLE=TWO
MASS
DIRECT
FREQUENCY
D108G7v
DISPL(PHASE) = ALL
SUBCASE 2
DESSUB = 2
ANALYSIS = DFREQ
FREQ = 100
DLOAD = 200
dsaprt(end=sens) = all
BEGIN BULK
$
CELAS1 20
20
1
1
CELAS1 21
21
1
1
2
1
CELAS1 22
22
2
1
CONM2 10
1
1.
CONM2 11
2
2.
DAREA 201 1
1
100. 2
1
100.
DCONSTR 2
10
-2.0E-1 -2.0E-1
DESVAR 1
K1
1.0E3 1.0E2 1.0E4
DESVAR 2
K2
1.5E3 1.5E2 1.5E4
DESVAR
DESVAR
DESVAR
DESVAR
SENSITIVITY
3
4
5
6
DRESP1 10
2
DVPREL1 1
1
1.0
DVPREL1 2
2
1.0
DVPREL1 3
3
1.0
DVPREL1 4
4
1.0
DVPREL1 5
5
1.0
DVPREL1 6
6
1.0
FREQ 100
GRID 1
GRID 2
MAT1 200
PELAS 20
PELAS 21
PELAS 22
RLOAD1 200
TABLED1 210
1.
1.
ENDDATA
(Contd)
NAS 107, Workshop 4, April 2003
WS4-6
K3
2.0E3 2.0E2 2.0E4
GE1 .1
.05 .15
GE2 .1
.05 .15
GE3 .1
.05 .15
U1
FRDISP
PELAS 20
1.0E3
PELAS 21
1.5E3
PELAS 22
2.0E3
PELAS 20
.05
PELAS 21
.05
PELAS 22
.05
4.0
1.
2.
1.0E7
1.0E3
1.5E3
2.0E3
201
10.
6.0
0.
0.
0.
0.
0.3
23456
23456
0.1
210
1.
ENDT
Find an available UNIX shell window and at the command prompt enter nastran
wkshp4 scr=yes. Monitor the run using the UNIX ps command.
WS4-7
4. View Results
When the run is completed, edit the wkshp4.f06 file and search for the word FATAL. If no matches
exist, search for the word WARNING. Determine whether existing WARNING messages
indicate modeling errors.
While still editing wkshp4.f06, search for the word M A T R I X.
WS4-8
R RPERT RBASE
=
X 1.1E 3 1.0 E 3
e. Compare with the computed sensitivity.
WS4-9
WS4-10
7. View Results
Compare the results obtained in the .f06 file with the following:
****************************************************************************
*
*
*
DESIGN
SENSITIVITY
MATRIX
*
*
*
OUTPUT
*
*
RESPONSE
SENSITIVITY
COEFFICIENTS *
*
****************************************************************************
-------------------------------------------------------------------------------------------------------------------------------DRESP1 ID=
10
GRID ID=
COMP NO=
SEID=
SUBCASE RESP VALUE FREQ/TIME DESIGN VARIABLE COEFFICIENT DESIGN VARIABLE COEFFICIENT DESIGN VARIABLE COEFFICIENT
-------------------------------------------------------------------------------------------------------------------------------2 1.8718E-01 4.0000E+00
4 GE1
2 1.3771E-01 6.0000E+00
4 GE1
1 K1
-2.0951E-04
-4.8650E-02
1 K1
5 GE2
5.1171E-05
-3.3135E-02
5 GE2
2 K2
-7.1772E-06
9.2470E-05
2 K2
3 K3
6 GE3
1.2517E-05
1.2923E-02
-1.2402E-04
-7.5393E-02
3 K3
6 GE3
1.5027E-04
-2.5227E-02
-------------------------------------------------------------------------------------------------------------------------------DRESP1 ID=
10
GRID ID=
COMP NO=
SEID=
SUBCASE RESP VALUE FREQ/TIME DESIGN VARIABLE COEFFICIENT DESIGN VARIABLE COEFFICIENT DESIGN VARIABLE COEFFICIENT
-------------------------------------------------------------------------------------------------------------------------------2 1.6842E-01 4.0000E+00
4 GE1
2 1.6226E-01 6.0000E+00
4 GE1
1 K1
-1.3863E-04
-3.7918E-02
1 K1
1.2268E-04
-2.9513E-02
5 GE2
5 GE2
2 K2
3.5824E-06
-1.2604E-04
2 K2
3 K3
6 GE3
-6.5162E-06
-5.7992E-03
-1.5645E-04
-7.9682E-02
3 K3
6 GE3
1.0405E-04
-6.2802E-02
WS4-11
WS4-12
WORKSHOP 5
MODE TRACKING EXERCISE
Objective: Keep track of the mode shapes for the first ten modes of the following fixedfixed beam.
WS5-1
WS5-2
Model Description
Design Variables = B, H
Constraints:
Eigenvalue Allowable:
WS5-3
Exercise Procedure
Part A
For this exercise, define the BAR property using the PBAR entry and
specify the constraints using eigenvalues. Keep track of the mode shapes
for the first ten modes. The design variables are width (b) and height (h).
The properties on the PBAR entries are defined using the area (A) and
moment of inertia (I). They are related by the following equations:
b * h3
I=
12
A = b* h
Part B
Redo the previous exercise defining the BAR property using the PBARL entry. Specify
the constraints using the frequencies shown below.
Eigenvalue Allowable:
WS5-4
CBAR,
CBAR,
CBAR,
CBAR,
CBAR,
CBAR,
CBAR,
CBAR,
CBAR,
CBAR,
$
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
30,
30,
30,
30,
30,
30,
30,
30,
30,
30,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
PBAR,
30,
40,
0.5,
1.042E-2,4.167E-2
$
MAT1,
40,
1.0E+7, ,
0.33,
0.1
$
$IGRL
SID
V1
V2
ND
EIGRL, 50,
,
,
10
$
$-----------------------------------------------------$ DESIGN MODEL:
$-----------------------------------------------------$
$
INPUT DESIGN MODEL
$
.
.
.
$
ENDDATA
21
21
21
21
21
21
21
21
21
21
WS5-5
(Contd)
WS5-6
WS5-7
+
+
+
find an available UNIX shell window and at the command prompt enter nastran
wkshp5a scr=yes. Monitor the run using the UNIX ps command.
WS5-8
4. View Results
When the run is completed, edit the wkshp5a.f06 file and search for the word FATAL. If no
matches exist, search for the word WARNING. Determine whether existing WARNING
messages indicate modeling errors.
While still editing wkshp5a.f06, search for the word T R A C K I N G. Compare the results
obtained in the .f06 file with the following:
*******************************************
*
*
*
D E S I G N O P T I M I Z A T I O N *
*
*
*
M O D E T R A C K I N G
*
*
*
*******************************************
***
----------------------------------------DESIGN CYCLE
2
|
-----------------------------------------
MODES FOR THIS SUBCASE IN THE CURRENT DESIGN CYCLE HAVE SUCCESSFULLY BEEN TRACKED
***
WS5-9
6
5
OBJECTIVE FROM
APPROXIMATE
OPTIMIZATION
OBJECTIVE FROM
EXACT
ANALYSIS
FRACTIONAL ERROR
OF
APPROXIMATION
MAXIMUM VALUE
OF
CONSTRAINT
-------------------------------------------------------------------------------------------------------------INITIAL
5.000000E+00
2.492728E+00
4.607644E+00
4.607709E+00
-1.417769E-05
5.051959E-01
4.311850E+00
4.311832E+00
4.091758E-06
1.564965E-01
4.903461E+00
4.903383E+00
1.575394E-05
-2.610680E-03
4.753918E+00
4.753890E+00
5.817668E-06
-2.618990E-03
5
4.753890E+00
4.753890E+00
0.000000E+00
-2.618990E-03
--------------------------------------------------------------------------------------------------------------1
FEBRUARY
2, 2003 MSC.NASTRAN 4/ 9/01
PAGE
126
0
DESIGN VARIABLE HISTORY
-------------------------------------------------------------------------------------------------------------------------INTERNAL | EXTERNAL |
|
DV. ID. | DV. ID. | LABEL | INITIAL
:
1
:
2
:
3
:
4
:
5
:
-------------------------------------------------------------------------------------------------------------------------1
|
101
|
B
| 5.0000E-01 :
7.0189E-01 :
9.6514E-01 :
9.7415E-01 :
9.7415E-01 :
9.7415E-01 :
2
|
102
|
H
| 1.0000E+00 :
6.5647E-01 :
4.4676E-01 :
5.0335E-01 :
4.8800E-01 :
4.8800E-01 :
WS5-10
Dimensions
Objective Function
WS5-12
CBAR,
1,
30,
10,
11,
21
CBAR,
2,
30,
11,
12,
21
CBAR,
3,
30,
12,
13,
21
CBAR,
4,
30,
13,
14,
21
CBAR,
5,
30,
14,
15,
21
CBAR,
6,
30,
15,
16,
21
CBAR,
7,
30,
16,
17,
21
CBAR,
8,
30,
17,
18,
21
CBAR,
9,
30,
18,
19,
21
CBAR,
10,
30,
19,
20,
21
PBAR,
30,
40,
0.5,
1.042E-2,4.167E-2
MAT1,
40,
1.0E+7, ,
0.33,
0.1
$
$IGRL
SID
V1
V2
ND
EIGRL, 50,
,
,
10
$--------------------------------------------------------------------$ DESIGN MODEL:
$--------------------------------------------------------------------$
INPUT DESIGN MODEL
.
.
.
$
ENDDATA
WS5-13
(Cont.)
WS5-14
(Cont.)
WS5-15
1.00000
1.00000
1.00000
1.00000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
1.+7
1.+7
1.+7
---
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
0.000
WS5-16
8
9
-9.56418E-02
1.068138
+
E-03
+
10
+
find an available UNIX shell window and at the command prompt enter nastran
wkshp5b scr=yes. Monitor the run using the UNIX ps command.
WS5-17
8. View Results
While still editing wkshp5b.f06, search for the word H I S T O R Y. Compare the results obtained
in the .f06 file with the following:
***************************************************************
S U M M A R Y
O F
D E S I G N
C Y C L E
H I S T O R Y
***************************************************************
(HARD CONVERGENCE ACHIEVED)
(SOFT CONVERGENCE ACHIEVED)
NUMBER OF FINITE ELEMENT ANALYSES COMPLETED
NUMBER OF OPTIMIZATIONS W.R.T. APPROXIMATE MODELS
7
6
1
0
OBJECTIVE FROM
APPROXIMATE
OPTIMIZATION
OBJECTIVE FROM
EXACT
ANALYSIS
FRACTIONAL ERROR
OF
APPROXIMATION
MAXIMUM VALUE
OF
CONSTRAINT
-------------------------------------------------------------------------------------------------------------INITIAL
5.000000E+00
8.676274E-01
1
5.303037E+00
5.302987E+00
9.441453E-06
4.903070E-01
2
5.240914E+00
5.240935E+00
-4.094245E-06
1.783971E-01
3
5.092486E+00
5.092438E+00
9.457269E-06
7.903576E-04
4
4.782730E+00
4.782596E+00
2.801642E-05
7.719398E-04
5
4.733743E+00
4.733750E+00
-1.510971E-06
7.743239E-04
6
4.733750E+00
4.733750E+00
0.000000E+00
7.743239E-04
--------------------------------------------------------------------------------------------------------------FEBRUARY
8, 2003 MSC.NASTRAN 4/ 9/01
PAGE
153
WS5-18
Objective Function
Dimensions
WS5-19
Constraints
WS5-20
WORKSHOP 6
SHAPE OPTIMIZATION OF A PLANAR
CULVERT
WS6-1
WS6-2
Model Description
Design Variables:
vectors.
Hints
1.
Create an auxiliary model by putting CBAR elements around the outside edge of the culvert
model.
2.
For the auxiliary model, fix the right and top edges similar to the direct input of the shape
method.
3.
Apply the appropriate boundary conditions at the left (symmetric b.c.) and bottom edges
(fixed b.c.)
4.
Apply enforced displacements around the hold by creating seven subcases one at each
grid point around the hole.
5.
Include the proper BNDGRIDs and DVBSHAPs one DVBSHAP for each design variable.
6.
If a smoother shape is desired, reduce the size of the fractional change in the design
variable at the expense of more iterations.
WS6-3
$ wkshp6.dat
nastran q4skew=10.,q4taper=100.
$ culvert problem using the analytical boundary shape
SOL 200 $
TIME 100
CEND
TITLE=CULVERT EXAMPLE USING EXTERNAL AUXILIARY STRUCTURE
SUBTITLE=THE PRIMARY STRUCTURE
ANALYSIS = STATICS
SPC=25
LOAD=1
DISP=ALL
STRESS=all
$ call out objective function
desobj=...
$ call out design constraint
dessub=...
$ ---------------------------------------------------$ START OF AUXILIARY MODEL SUBCASE
AUXCASE
AUXMODEL = 1
TITLE = AUXILIARY MODEL
DISP=ALL
$ add auxiliary model subcases--one for each loading condition
SUBCASE..
LOAD=..
SPC =..
$
.
.
$
BEGIN BULK
$ ----------------------------------------------------$
ANALYTICAL MODEL
PARAM,POST,-1
PARAM,CDIF,NO
PARAM,NEWSEQ,-1
GRID, 1,, 3.00000, 0.00000,.00
GRID, 2,, 4.00000, 0.00000,.00
GRID, 3,, 5.00000, 0.00000,.00
WS6-4
(cont.)
dresp1 2
von-mis stress pshell
9
DCONSTR 10
2
-3.100e43.100e4
doptprm DESMAX 25
APRCOD 1
param,nasprt,1
$
BEGIN BULK AUXMODEL = 1
$ ------------------------------------------------------$ AUXILIARY MODEL
CBAR 1
1
1
2
1.
1.
CBAR 2
1
2
3
1.
1.
CBAR 3
1
3
4
1.
1.
$
CBAR 11
1
4
8
1.
1.
CBAR 12
1
8
12
1.
1.
CBAR 13
1
12
19
1.
1.
CBAR 14
1
19
26
1.
1.
CBAR 15
1
26
33
1.
1.
CBAR 16
1
33
40
1.
1.
$
CBAR 21
1
34
35
1.
1.
CBAR 22
1
35
36
1.
1.
CBAR 23
1
36
37
1.
1.
CBAR 24
1
37
38
1.
1.
CBAR 25
1
38
39
1.
1.
CBAR 26
1
39
40
1.
1.
$
CBAR 31
1
1
5
1.
1.
CBAR 32
1
5
9
1.
1.
CBAR 33
1
9
16
1.
1.
CBAR 34
1
16
15
1.
1.
CBAR 35
1
15
14
1.
1.
CBAR 36
1
14
13
1.
1.
CBAR 41
1
13
20
1.
1.
CBAR 42
1
20
27
1.
1.
CBAR 43
1
27
34
1.
1.
PBAR 1
102 20.0 1.0 1.0
MAT1,102,2.+7,,.3,0.731-3
$ ADD AUXILIARY MODEL LOADING
$ USE ENFORCED DISPLACEMENT
.
.
.
ENDDATA
WS6-5
101
$
soln6.dat
$
nastran q4skew=10.,q4taper=100.
$
$
culvert problem using the analytical boundary shape
$
SOL
200 $
TIME
100
CEND
TITLE=CULVERT
EXAMPLE
USING
EXTERNAL
AUXILIARY
STRUCTURE
D200CS
SUBTITLE=THE PRIMARY STRUCTURE
ANALYSIS = STATICS
SPC=25
LOAD=1
DISP=ALL
STRESS=all
DESSUB = 10
desobj = 5
$
AUXCASE
AUXMODEL = 1
TITLE = AUXILIARY MODEL
$ SPC = 250
DISP=ALL
$
SUBCASE 1
LOAD=100
spc = 100
SUBCASE 2
LOAD=101
spc = 101
SUBCASE 3
LOAD=102
spc = 102
SUBCASE 4
LOAD=103
spc = 103
SUBCASE 5
LOAD=104
spc = 104
SUBCASE 6
LOAD=105
spc = 105
SUBCASE 7
LOAD=106
spc = 106
$
WS6-6
(cont.)
2,
3,
4,
6,
7,
8,
10,
11,
12,
14,
15,
16,
21,
22,
23,
28,
29,
30,
17,
18,
19,
24,
25,
26,
31,
32,
33,
6,
5
7,
6
8,
7
10,
9
11,
10
12,
11
17,
16
18,
17
19,
18
21,
20
22,
21
23,
22
28,
27
29,
28
30,
29
35,
34
36,
35
37,
36
24,
23
25,
24
26,
25
31,
30
32,
31
33,
32
38,
37
39,
38
40,
39
1250.
2500.
2500.
2500.
2500.
2500.00
1250.
-1.
-1.
-1.
-1.
-1.
-1.
-1.
bndgrid 123456 34
thru
40
bndgrid 123456 4
8
12
bndgrid 345
1
thru
40
bndgrid 2
2
3
bndgrid 1
20
27
bndgrid 12
1
5
9
bndgrid 12
13
thru
16
$
desvar 1
b1
3.
-1.e6
desvar 2
b2
3.
-1.e6
desvar 3
b3
3.
-1.e6
desvar 4
b4
3.
-1.e6
desvar 5
b5
3.
-1.e6
desvar 6
b6
3.
-1.e6
desvar 7
b7
3.
-1.e6
$
dvbshap 1
1
1
.01
dvbshap 2
1
2
.01
dvbshap 3
1
3
.01
dvbshap 4
1
4
.01
dvbshap 5
1
5
.01
dvbshap 6
1
6
.01
dvbshap 7
1
7
.01
$
dresp1 5
volume volume
dresp1
2
von-mis stress
101
DCONSTR 10
2
-3.100e43.100e4
doptprm DESMAX 25
APRCOD 1
param,nasprt,1
$
BEGIN BULK AUXMODEL = 1
$
CBAR
1
1
1
2
CBAR
2
1
2
3
CBAR
3
1
3
4
$
CBAR
11
1
4
8
CBAR
12
1
8
12
CBAR
13
1
12
19
CBAR
14
1
19
26
CBAR
15
1
26
33
CBAR
16
1
33
40
WS6-7
19
26
33
1.e6
1.e6
1.e6
1.e6
1.e6
1.e6
1.e6
pshell
1.
1.
1.
1.
1.
1.
1.
1.
1.
1.
1.
1.
1.
1.
1.
1.
1.
1.
$
spcd,100,13,2,1.
spcd,101,14,1,.259,14,2,.9659
spcd,102,15,1,.5,15,2,.866
spcd,103,16,1,.707,16,2,.707
spcd,104,9,1,.866,9,2,.5
spcd,105,5,1,.9659,5,2,.259
spcd,106,1,1,1.
$
ENDDATA
WS6-8
find an available UNIX shell window and at the command prompt enter nastran
wkshp6 scr=yes. Monitor the run using the UNIX ps command.
WS6-9
4. View Results
When the run is completed, edit the wkshp6.f06 file and search for the word FATAL. If no matches
exist, search for the word WARNING. Determine whether existing WARNING messages
indicate modeling errors.
While still editing wkshp6.f06, search for the word H I S T O R Y. Compare the results obtained in
the .f06 file with the following:
***************************************************************
S U M M A R Y
O F
D E S I G N
C Y C L E
H I S T O R Y
***************************************************************
(HARD CONVERGENCE ACHIEVED)
(SOFT CONVERGENCE ACHIEVED)
NUMBER OF FINITE ELEMENT ANALYSES COMPLETED
NUMBER OF OPTIMIZATIONS W.R.T. APPROXIMATE MODELS
9
8
OBJECTIVE FROM
APPROXIMATE
OPTIMIZATION
OBJECTIVE FROM
EXACT
ANALYSIS
FRACTIONAL ERROR
OF
APPROXIMATION
MAXIMUM VALUE
OF
CONSTRAINT
-------------------------------------------------------------------------------------------------------------INITIAL
7.214704E+00
-1.021607E-01
7.070461E+00
7.068990E+00
2.080305E-04
-4.517893E-02
6.880713E+00
6.878247E+00
3.584122E-04
2.397870E-03
6.654394E+00
6.651621E+00
4.168620E-04
-3.346774E-04
6.264678E+00
6.259501E+00
8.271423E-04
2.395590E-02
6.022779E+00
6.021793E+00
1.637551E-04
2.075542E-03
5.869073E+00
5.871755E+00
-4.567173E-04
2.392597E-02
5.872398E+00
5.873198E+00
-1.360722E-04
2.888420E-03
5.871682E+00
5.871697E+00
-2.598701E-06
2.833543E-03
WS6-10
--------------------------------------------------------------------------------------------------------------1
AUXILIARY MODEL
FEBRUARY 11, 2003 MSC.NASTRAN 4/ 9/01
PAGE
363
0
DESIGN VARIABLE HISTORY
-------------------------------------------------------------------------------------------------------------------------INTERNAL | EXTERNAL |
|
DV. ID. | DV. ID.
| LABEL |
INITIAL :
1
:
2
:
3
:
4
:
5
:
------------------------------------------------------------------------------------------------------------------------1
|
1
| B1
| 3.0000E+00 :
6.0000E+00 :
1.2000E+01 :
2.4000E+01 :
4.8000E+01 :
7.2000E+01 :
2
|
2
| B2
| 3.0000E+00 :
6.0000E+00 :
1.2000E+01 :
2.4000E+01 :
4.8000E+01 :
4.2055E+01 :
3
|
3
| B3
| 3.0000E+00 :
6.0000E+00 :
1.2000E+01 :
2.4000E+01 :
3.1402E+01 :
3.7368E+01 :
4
|
4
| B4
| 3.0000E+00 :
6.0000E+00 :
1.2000E+01 :
0.0000E+00 : -5.0000E-02 : -2.5000E-02 :
5
|
5
| B5
| 3.0000E+00 :
6.0000E+00 :
3.5102E-01 :
0.0000E+00 : -5.0000E-02 : -2.5000E-02 :
6
|
6
| B6
| 3.0000E+00 :
6.0000E+00 :
1.2000E+01 :
1.9782E+01 :
1.6891E+01 :
2.5336E+01 :
7
|
7
| B7
| 3.0000E+00 :
6.0000E+00 :
1.2000E+01 :
2.4000E+01 :
4.8000E+01 :
7.2000E+01 :
-------------------------------------------------------------------------------------------------------------------------INTERNAL | EXTERNAL |
|
DV. ID. |
DV. ID. | LABEL |
6
:
7
:
8
:
9
:
10
:
11
:
-------------------------------------------------------------------------------------------------------------------------1
|
1
| B1
| 9.2443E+01 :
7.5367E+01 :
7.2225E+01 :
2
|
2
| B2
| 6.3082E+01 :
7.4801E+01 :
8.0190E+01 :
3
|
3
| B3
| 2.1734E+01 :
1.6301E+01 :
1.2226E+01 :
4
|
4
| B4
| -4.2011E-03 :
3.2454E-04 :
1.2825E-02 :
5
|
5
| B5
| 0.0000E+00 : -1.3118E-04 :
1.2369E-02 :
6
|
6
| B6
| 2.5983E+01 :
2.5385E+01 :
2.5940E+01 :
7
|
7
| B7
| 9.0827E+01 :
9.1328E+01 :
9.0945E+01 :
WS6-11
Objective Function
Design Variables
WS6-13
WS6-14
WORKSHOP 7
MULTI-DISCIPLINARY OPTIMIZATION
(STATIC, NORMAL MODES, AND FREQUENCY
RESPONSE)
WS7-1
WS7-2
Model Description
Multi-disciplinary analyses:
Constraints:
Static subcase: -20,000 < Elem stresses < +20,000
Modal subcase: 17 hz < Freq1 < 20 hz
WS7-3
FREQ1 100 4.
.25 30
GRID 10
0.
0.
0.
123456
GRID 1
1.
0.
0.
23456
GRID 2
2.
0.
0.
23456
GRID 20
3.
0.
0.
123456
PROD 20
200 1.E-3
PROD 21
200 1.5E-3
PROD 22
200 2.E-3
MAT1,200,1.0E7,,0.3,1.0 $ DUMMY DENSITY
RLOAD1 200 201
210
TABLED1 210
1.
1.
10. 1.
ENDT
param,g,.10
$
$ design model
$
DOPTPRM P1
1
P2
15
DESMAX 10
.
.
.
ENDDATA
WS7-4
(cont.)
GRID 10
0.
0.
0.
123456
GRID 1
1.
0.
0.
23456
GRID 2
2.
0.
0.
23456
GRID 20
3.
0.
0.
123456
PROD 20
200 1.E-3
PROD 21
200 1.5E-3
PROD 22
200 1.5E-3
MAT1,200,1.0E7,,0.3,1.0 $ DUMMY DENSITY
RLOAD1 200 201
210
TABLED1 210
1.
1.
10. 1.
ENDT
param,g,.10
$
$ design model
$
DOPTPRM P1
1
P2
15
DESMAX 10
DESVAR 1
A1
1.-3 1.-4 1.-2
DESVAR 2
A2
1.5-3 1.5-4 1.5-2
DESVAR 3
A3
2.-3 2.0-4 2.0-2
DVPREL1 1
PROD 20
4
1.0-3
1
1.0
DVPREL1 2
PROD 21
4
1.5-3
2
1.0
DVPREL1 3
PROD 22
4
2.0-3
3
1.0
DCONSTR 100 101 -20000. 20000.
DCONSTR 100 102 -20000. 20000.
DCONSTR 100 103 -20000. 20000.
DCONSTR 200 200 17. 20.
$
DRESP1 101 STRELM1 STRESS PROD
DRESP1 102 STRELM2 STRESS PROD
DRESP1 103 STRELM3 STRESS PROD
DRESP1 200 MODE1 FREQ
1
$
dresp2,1000,srssg2c1,2000
,dresp1,1001,1002,1003,1004,1005,1006,1007
,,*7,*7,*7,*7,*7,*7,*7
=13
$
WS7-5
(cont.)
2
2
2
20
21
22
DRESP1,1001,GRID2C1,FRDISP,,,1,4.0,2
=,*1,=,=,=,=,=,*(.25),=
=103
$
deqatn 2000 srssg2c1(f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13,f14,
f15,f16,f17,f18,f19,f20,f21,f22,f23,f24,
f25,f26,f27,f28,f29,f30,f31,f32,f33,f34,
f35,f36,f37,f38,f39,f40,f41,f42,f43,f44,
f45,f46,f47,f48,f49,f50,f51,f52,f53,f54,
f55,f56,f57,f58,f59,f60,f61,f62,f63,f64,
f65,f66,f67,f68,f69,f70,f71,f72,f73,f74,
f75,f76,f77,f78,f79,f80,f81,f82,f83,f84,
f85,f86,f87,f88,f89,f90,f91,f92,f93,f94,
f95,f96,f97,f98,f99,f100,
f101,f102,f103,f104,f105) =
sqrt(f1**2+f2**2+f3**2+f4**2+f5**2+f6**2+f7**2+
f8**2+f9**2+f10**2+f11**2+f12**2+f13**2+f14**2+
f15**2+f16**2+f17**2+f18**2+f19**2+f20**2+
f21**2+f22**2+f23**2+f24**2+f25**2+f26**2+
f27**2+f28**2+f29**2+f30**2+f31**2+f32**2+
f33**2+f34**2+f35**2+f36**2+f37**2+f38**2+
f39**2+f40**2+f41**2+f42**2+f43**2+f44**2+
f45**2+f46**2+f47**2+f48**2+f49**2+f50**2+
f51**2+f52**2+f53**2+f54**2+f55**2+f56**2+
f57**2+f58**2+f59**2+f60**2+f61**2+f62**2+
f63**2+f64**2+f65**2+f66**2+f67**2+f68**2+
f69**2+f70**2+f71**2+f72**2+f73**2+f74**2+
f75**2+f76**2+f77**2+f78**2+f79**2+f80**2+
f81**2+f82**2+f83**2+f84**2+f85**2+f86**2+
f87**2+f88**2+f89**2+f90**2+f91**2+f92**2+
f93**2+f94**2+f95**2+f96**2+f97**2+f98**2+
f99**2+f100**2+
f101**2+f102**2+f103**2+f104**2+f105**2)
ENDDATA
WS7-6
find an available UNIX shell window and at the command prompt enter nastran
wkshp7 scr=yes. Monitor the run using the UNIX ps command.
WS7-7
4. View Results
When the run is completed, edit the wkshp7.f06 file and search for the word FATAL. If no matches
exist, search for the word WARNING. Determine whether existing WARNING messages
indicate modeling errors.
While still editing wkshp7.f06, search for the word H I S T O R Y. Compare the results obtained in
the .f06 file with the following:
***************************************************************
S U M M A R Y
O F
D E S I G N
C Y C L E
H I S T O R Y
***************************************************************
(HARD CONVERGENCE ACHIEVED)
(SOFT CONVERGENCE ACHIEVED)
NUMBER OF FINITE ELEMENT ANALYSES COMPLETED
NUMBER OF OPTIMIZATIONS W.R.T. APPROXIMATE MODELS
7
6
OBJECTIVE FROM
APPROXIMATE
OPTIMIZATION
OBJECTIVE FROM
EXACT
ANALYSIS
FRACTIONAL ERROR
OF
APPROXIMATION
MAXIMUM VALUE
OF
CONSTRAINT
-------------------------------------------------------------------------------------------------------------INITIAL
2.092793E-02
2.692307E-01
2.195602E-02
1.865128E-02
1.771855E-01
-1.487871E-02
1.805691E-02
1.734638E-02
4.096108E-02
-2.422998E-02
1.639450E-02
1.517079E-02
8.066232E-02
-3.967285E-02
1.468842E-02
1.415790E-02
3.747216E-02
-4.269791E-03
1.306749E-02
1.269395E-02
2.942665E-02
-5.038834E-03
1.269395E-02
1.269395E-02
0.000000E+00
-5.038834E-03
WS7-8
--------------------------------------------------------------------------------------------------------------1
TWO MASS OPTIMIZATION PROBLEM
FEBRUARY 11, 2003 MSC.NASTRAN 4/ 9/01
PAGE
328
0
SUBCASE 2
DESIGN VARIABLE HISTORY
-------------------------------------------------------------------------------------------------------------------------INTERNAL | EXTERNAL
|
|
DV. ID. |
DV. ID.
| LABEL | INITIAL
:
1
:
2
:
3
:
4
:
5
:
-------------------------------------------------------------------------------------------------------------------------1
|
1
| A1
| 1.0000E-03 : 1.4837E-03 :
1.3139E-03 :
1.0145E-03 :
1.0000E-03 :
1.0000E-03 :
2
|
2
| A2
| 1.5000E-03 : 2.0935E-03 :
2.2455E-03 :
3.3573E-03 :
3.2665E-03 :
1.5000E-03 :
3
|
3
| A3
| 2.0000E-03 : 2.1083E-03 :
2.5240E-03 :
3.4306E-03 :
3.8260E-03 :
4.0378E-03 :
-------------------------------------------------------------------------------------------------------------------------INTERNAL |
EXTERNAL |
|
DV. ID. |
DV. ID. | LABEL |
6
:
7
:
8
:
9
:
10
:
11
:
-------------------------------------------------------------------------------------------------------------------------1
|
1
|
A1
| 1.0000E-03 :
2
|
2
|
A2
|
1.5000E-03 :
3
|
3
|
A3
|
4.0378E-03 :
WS7-9
Objective Function
Design Variables
WS7-11
WS7-12
WORKSHOP 8
DESIGN STRUCTURE WITH STRENGTH AND
BUCKLING LIMITS SATISFYING BOTH THE
EULERS AND JOHNSON CRITIRIA
WS8-1
WS8-2
Objectives
2.
3.
Eul
cr
2E
=
( L' / )2
John
cr
co ( L' / )2
= co 1.0
4
E
WS8-3
Objectives (Cont.)
L' = L
=
r
2
( = radius of gyration)
WS8-4
Model Description:
Subject to:
Buckling analysis
Constraints:
Static Case:
Buckling Subcase:
when
* >
co
1 .0
* The Johnson Condition is the critical design condition only if the magnitude at the compressive stress is
greater than co / 2 . This can be implemented in MSC.Nastran by multiplying the response by a factor
that is a the maximum of 0.0 and ( co / 2 ). When the maximum is 0.0, the Johnson condition is
ignored.
NAS 107, Workshop 8, April 2003
WS8-5
0.0
0.0
8.0
0.0
16.0
0.0
24.0
0.0
32.0
0.0
40.0
0.0
0.0
0.0
WS8-6
(cont.)
2
3
4
5
6
0.33
6
-
WS8-7
(cont.)
WS8-8
DVPREL1
10
12
1
pbarl
1.0
$
$ DESIGN FOR BUCKLING EIGENVALUE
DRESP1
1
BUCK1
1
dconstr
2
1
1.0
param
dsnokd
1.0
$
ENDDATA
10
LAMA
find an available UNIX shell window and at the command prompt enter nastran
wkshp8 scr=yes. Monitor the run using the UNIX ps command.
WS8-9
4. View Results
When the run is completed, edit the wkshp8.f06 file and search for the word FATAL. If no matches
exist, search for the word WARNING. Determine whether existing WARNING messages
indicate modeling errors.
While still editing wkshp8.f06, search for the word H I S T O R Y. Compare the results obtained in
the .f06 file with the following:
***************************************************************
S U M M A R Y
O F
D E S I G N
C Y C L E
H I S T O R Y
***************************************************************
(HARD CONVERGENCE ACHIEVED)
(SOFT CONVERGENCE ACHIEVED)
NUMBER OF FINITE ELEMENT ANALYSES COMPLETED
NUMBER OF OPTIMIZATIONS W.R.T. APPROXIMATE MODELS
3
2
OBJECTIVE FROM
APPROXIMATE
OPTIMIZATION
OBJECTIVE FROM
EXACT
ANALYSIS
FRACTIONAL ERROR
OF
APPROXIMATION
MAXIMUM VALUE
OF
CONSTRAINT
-------------------------------------------------------------------------------------------------------------INITIAL
1
1.256637E+01
1.539844E+01
1.539775E+01
4.017613E-01
4.471775E-05
3.485799E-03
2
1.540468E+01
1.540468E+01
1.238162E-07
2.788901E-03
--------------------------------------------------------------------------------------------------------------1
BUCKLING TEST CASE
FEBRUARY 17, 2003 MSC.NASTRAN 4/ 9/01
PAGE
72
JOHNSON/EULER BUCKLING CASE
0
SUBCASE 2
DESIGN VARIABLE HISTORY
------------------------------------------------------------------------------------------------------------------------INTERNAL | EXTERNAL |
|
DV. ID. | DV. ID.
|
LABEL
| INITIAL
:
1
:
2
:
3
:
4
:
5
:
------------------------------------------------------------------------------------------------------------------------1
|
1
|
RG
| 1.0000E+00 : 1.1069E+00 :
1.1072E+00 :
WS8-10
-----
-----
WS8-11
-----
It is seen that the maximum constraints are associated with the Johnson condition.
WS8-12
WS8-13
WS8-14
WORKSHOP 9
RANDOM RESPONSE OPTIMIZATION
L
W
WS9-1
WS9-2
Objective:
Be familiar with the process to set up an random response
optimization task using a simulated car model.
WS9-3
The suspension components that connect car body and two wheels are
modeled by CBUSH elements
Each wheel is loaded with a unit enforced displacement. Total two load
cases are applied.
First two RANDPS entries represent the auto spectrum applied at the front
and back wheels. The third and fourth RANDPS entries represent the real
and imaginary parts of the cross spectrum between the front and back
wheels.
WS9-4
Objective function:
Minimize the RMS displacement at CG of the vehicle in the frequency range
of 0.1Hz to 2.0Hz. The CG is located at component 2 of grid point 5. The
RANDPS entry is directly referenced on the ATTB field of the DRESP1 entry.
Design Variables:
The shock spring and absorber of the suspension system
100 < K < 1000
1.0 < B < 10.
Constraints:
The stresses at the supporting frame that connects grid points 1 and 5, and
5 and 2 must be less than 4500 across the whole frequency range.
WS9-5
GRID
1
GRID
2
GRID
5
$
wheels
$
GRID
3
GRID
4
$
CBAR
5
CBAR
6
$
PBAR
11
$
$
wkshp9.dat
- random input at wheels - enforced motion
$
direct method
$
stress constraints at discrete freq
$
minimize acce at grid pt 5
$
cross spectrum
$
using new enforced motion
$
ID MSC, d200rd15.dat $ V2001 JML 8-Sep-2000
SOLa.200Generate
$ jml
an input file using
CEND
dataCAR
from
page
2-3.
Use
TITLE =the
SIMPLE
WITH
RANDOM
INPUT
SPC = 100
the
following
input
file
as
a
FREQUENCY = 130
stress(phase)
all
starting= point.
disp(phase) = all
$
$ we perform direct frequency analysis
analysis = ...
$
$ calls out a RMS displacement response for minimization
desobj= ...
$
$ define a design case
dessub = ...
$
$ this random case control callout is needed only
$ for the xyplot request when using optimization
$
random = 1000
SUBCASE 1
DLOAD = 111
SUBCASE 2
DLOAD = 112
$
output (xyplot)
xtitle = frequency (hz)
ytitle = disp psd at grid pt 5
xypunch disp psdf /5(t2)
$
BEGIN BULK
$
$
car body
$
11
11
0.
120.
60.
0.
0.
0.
0.
0.
0.
0.
120.
-10.
-10.
0.
0.
1
5
5
2
0.
0.
12
1.e2
1.e3
100.
0.
-100.
0.
MAT1
12
3.E+7
$ CONSTRAIN TO A PLANAR PROBLEM
$
SPC1
100
1345
1
2
SPC1
100
13456
3
4
spc1,100,2,3,4
$
CONM2
10
1
2.5
CONM2
15
2
2.5
CONM2
20
5
5.0
CONM2
25
3
2.5
CONM2
26
4
2.5
CBUSH
100
1000
1
3
0
CBUSH
200
1000
2
4
0
PBUSH
1000
K
200.
B
2.
RLOAD2 111
222
disp
spcd,222,3,2,1.
TABLED1 444
0.
1.
100.
1.
$
RLOAD2 112
223
disp
spcd,223,4,2,1.
$
FREQ2
130
0.1
2.
20
WS9-6
1.e3
7.8e-4
5
444
ENDT
444
1.
1.
0.
0.
FREQ2
130
0.1
2.
20
$
$ DEFINE THE INPUT PSD
$
RANDPS 1000
1
1
1.
0.
145
RANDPS 1000
2
2
1.
0.
145
RANDPS 1000
1
2
1.
0.
146
RANDPS 1000
1
2
0.
1.
147
TABRND1 145
.1
.1
5.
1.
10.
.05
ENDT
$
TABRND1 146
0.1000 0.0990 0.1096 0.1005 0.1202 0.1022 0.1318
0.1445 0.1059 0.1585 0.1079 0.1738 0.1101 0.1905
0.2089 0.1147 0.2291 0.1172 0.2512 0.1197 0.2754
0.3020 0.1246 0.3311 0.1269 0.3631 0.1289 0.3981
0.4365 0.1314 0.4786 0.1315 0.5248 0.1304 0.5754
0.6310 0.1228 0.6918 0.1151 0.7586 0.1038 0.8318
0.9120 0.0665 1.0000 0.0382 1.0965 0.0020 1.2023
1.3183 -0.0986 1.4454 -0.1636 1.5849 -0.2372 1.7378
1.9055 -0.3934 2.0893 -0.4593 2.2909 -0.4984 2.5119
2.7542 -0.4149 3.0200 -0.2508 3.3113 0.0072 3.6308
3.9811 0.6685 4.3652 0.8819 4.7863 0.8223 5.2481
5.7544 0.2965 6.3096 0.6842 6.9183 0.5743 7.5858
8.3176 0.2820 9.1201 0.1964 10.0000 0.0063 ENDT
$
TABRND1 147
0.1000 0.0142 0.1096 0.0159 0.1202 0.0177 0.1318
0.1445 0.0221 0.1585 0.0248 0.1738 0.0279 0.1905
0.2089 0.0352 0.2291 0.0397 0.2512 0.0448 0.2754
0.3020 0.0572 0.3311 0.0648 0.3631 0.0734 0.3981
0.4365 0.0944 0.4786 0.1070 0.5248 0.1212 0.5754
0.6310 0.1547 0.6918 0.1741 0.7586 0.1951 0.8318
0.9120 0.2401 1.0000 0.2625 1.0965 0.2830 1.2023
1.3183 0.3084 1.4454 0.3061 1.5849 0.2875 1.7378
1.9055 0.1775 2.0893 0.0749 2.2909 -0.0631 2.5119
2.7542 -0.4160 3.0200 -0.5848 3.3113 -0.6898 3.6308
3.9811 -0.4624 4.3652 -0.0505 4.7863 0.4968 5.2481
5.7544 0.8037 6.3096 0.3101 6.9183 -0.2722 7.5858
8.3176 -0.2390 9.1201 0.0928 10.0000 0.0496 ENDT
$
$ -----------------------------------------------------------
$--------------------------------------------------------$
design model
$ ------------------------------------------------------$
$
define sprint and absober as design variables
$
desvar,1...
desvar,2...
$
dvprel1,...
dvprel1,...
0.1040
0.1124
0.1221
0.1305
0.1277
0.0879
-0.0434
-0.3159
-0.4910
0.3364
0.3435
0.0891
0.0198
0.0313
0.0506
0.0832
0.1371
0.2173
0.2993
0.2467
-0.2318
-0.6687
0.8888
-0.5008
WS9-7
$
$
define RMS displacement response at the CG of the
$
vehicle as an objective
$
dresp1,...
$
$
define dynamic stress responses at end B-points
$
C and E for pbar 11.
$
dresp1,...
dresp1,...
$
$
stress upper limit = 45000 across the freq. range
$
dconstr,...
dconstr,...
$
$
optimization parameter control. Notice SQP (method=3)
$
is selected for this job and delp=1.0 is used.
$
doptprm,desmax,20,p1,1,p2,15,iprint,7
,method,3,delp,1.0
$
ENDDATA
CBAR
CBAR
PBAR
5
6
11
11
11
12
100.
3.E+7
MAT1
12
$
$ CONSTRAIN TO A PLANAR
$
SPC1
100
1345
SPC1
100
13456
spc1,100,2,3,4
$
CONM2
10
1
CONM2
15
2
CONM2
20
5
CONM2
25
3
CONM2
26
4
$
CBUSH
100
1000
CBUSH
200
1000
PBUSH
1000
K
B
$
RLOAD2 111
222
spcd,222,3,2,1.
TABLED1 444
0.
1.
$
RLOAD2 112
223
spcd,223,4,2,1.
$
FREQ2
130
0.1
$
$ DEFINE THE INPUT PSD
$
RANDPS 1000
1
RANDPS 1000
2
RANDPS 1000
1
RANDPS 1000
1
TABRND1 145
.1
.1
WS9-8
1
5
1.e2
5
2
1.e3
0.
0.
0.
1.e3
1.
1.
0.
0.
-100.
7.8e-4
PROBLEM
1
3
2
4
2.5
2.5
5.0
2.5
2.5
1
2
3
4
200.
2.
0
0
444
100.
1.
disp
ENDT
444
disp
2.
20
1
2
2
2
1.
1.
1.
0.
0.
0.
0.
1.
145
145
146
147
5.
1.
10.
.05
ENDT
0.
$
TABRND1 146
0.1000
0.1445
0.2089
0.3020
0.4365
0.6310
0.9120
1.3183
1.9055
2.7542
3.9811
5.7544
8.3176
$
TABRND1 147
0.1000
0.1445
0.2089
0.3020
0.4365
0.6310
0.9120
1.3183
1.9055
2.7542
3.9811
5.7544
8.3176
$
0.0990
0.1059
0.1147
0.1246
0.1314
0.1228
0.0665
-0.0986
-0.3934
-0.4149
0.6685
0.2965
0.2820
0.1318 0.1040
0.1905 0.1124
0.2754 0.1221
0.3981 0.1305
0.5754 0.1277
0.8318 0.0879
1.2023 -0.0434
1.7378 -0.3159
2.5119 -0.4910
3.6308 0.3364
5.2481 0.3435
7.5858 0.0891
ENDT
0.0142
0.0221
0.0352
0.0572
0.0944
0.1547
0.2401
0.3084
0.1775
-0.4160
-0.4624
0.8037
-0.2390
0.1318 0.0198
0.1905 0.0313
0.2754 0.0506
0.3981 0.0832
0.5754 0.1371
0.8318 0.2173
1.2023 0.2993
1.7378 0.2467
2.5119 -0.2318
3.6308 -0.6687
5.2481 0.8888
7.5858 -0.5008
ENDT
WS9-9
$
$
design model
$
desvar,1,k2,1.,0.5,5.
desvar,2,b2,1.,0.5,5.
$
dvprel1,101,pbush,1000,k2,100.
,1,200.
dvprel1,201,pbush,1000,b2,1.
,2,2.0
$
dresp1,101,ming5t2,rmsdisp,,,2,1000,5
$
dconstr,800,801,-1.e20,4500.
dconstr,800,802,-1.e20,4500.
dresp1,801,e5ptc,frstre,pbar,,12,,11
dresp1,802,e5pte,frstre,pbar,,14,,11
$
doptprm,desmax,20,p1,1,p2,15,iprint,7
,method,3,delp,1.0
$
ENDDATA
find an available UNIX shell window and at the command prompt enter nastran
wkshp9 scr=yes. Monitor the run using the UNIX ps command:
WS9-10
4. View Results
When the run is completed, edit the wkshp9.f06 file and search for the word FATAL. If no matches exist,
search for the word WARNING. Determine whether existing WARNING messages indicate modeling
errors.
While still editing wkshp9.f06, search for the word H I S T O R Y. Compare the results obtained in the
.f06 file with the following:
***************************************************************
S U M M A R Y
O F
D E S I G N
C Y C L E
H I S T O R Y
***************************************************************
(HARD CONVERGENCE ACHIEVED)
(SOFT CONVERGENCE ACHIEVED)
NUMBER OF FINITE ELEMENT ANALYSES COMPLETED
NUMBER OF OPTIMIZATIONS W.R.T. APPROXIMATE MODELS
11
10
WS9-11
0
DESIGN VARIABLE HISTORY
--------------------------------------------------------------------------------------------------------------------------------INTERNAL |
EXTERNAL
|
|
DV. ID. |
DV. ID.
|
LABEL
|
INITIAL
:
1
:
2
:
3
:
4
:
5
:
--------------------------------------------------------------------------------------------------------------------------------1 |
1
| K2
|
1.0000E+00 :
1.2000E+00 :
9.6004E-01 :
8.9538E-01 :
7.1630E-01 :
5.7304E-01
:
2 |
2
| B2
|
1.0000E+00 :
1.2000E+00 :
1.4369E+00 :
1.7243E+00 :
2.0692E+00 :
2.4830E+00
:
--------------------------------------------------------------------------------------------------------------------------------INTERNAL |
EXTERNAL
|
|
DV. ID. |
DV. ID.
|
LABEL
|
6
:
7
:
8
:
9
:
10
:
11
:
--------------------------------------------------------------------------------------------------------------------------------1 |
1
| K2
|
5.0000E-01 :
5.0000E-01 :
5.0000E-01 :
5.0000E-01 :
5.0000E-01 :
2 |
2
| B2
|
2.9796E+00 :
3.5755E+00 :
4.2906E+00 :
5.0000E+00 :
5.0000E+00 :
*** USER INFORMATION MESSAGE 6464 (DOM12E)
RUN TERMINATED DUE TO HARD CONVERGENCE TO AN OPTIMUM AT CYCLE NUMBER =
10.
WS9-12
WS9-13
WS9-14
WORKSHOP 10
DISCRETE VARIABLE OPTIMIZATION
Subcase 1
X: -16,000 lbs
Y: -12,000 lbs
NAS 107, Workshop 10, April 2003
Subcase 2
X: 16,000 lbs
Y: -12,000 lbs
WS10-1
WS10-2
Objective:
Be familiar with the process to set up a discrete optimization
task using the three bar truss problem.
WS10-3
Design Variables: Cross sectional areas A1, A2 and A3. A1 and A3 are
linked as A1=A3.
Continuum bound:
Constraints:
Stress allowable: 20ksi tension and 15 ksi compression
Displacement at grid point 4:
|X direction| <= 0.2 in
|Y direction| <= 0.2 in
WS10-4
Model Description
Part A:
Perform discrete variable processing after last design cycle
Part B:
Perform discrete variable process with the round-up option after each
design cycle
WS10-5
WS10-6
$
$
specify the ID of the discrete value list
$
DESVAR
DESVAR
DESVAR
$
$DDVAL,ID,
DVAL1, THRU,
DVAL2, BY
INC
$
$
define the discrete value set
$
Set 1: 0.1 to 100.0 incremented by 0.05
$
DDVAL...
$
$
constraint definitions are omitted.
$
$
$...OPTIMIZATION CONTROL:
$
$
Use Round-up for discrete processing after last design
cycle.
$
DOPTPRM,IPRINT, 5,
DESMAX, 20,
DELP,
0.5,
P1,
1,
+
+,
P2,
15
$
ENDDATA
WS10-7
WS10-8
WS10-9
find an available UNIX shell window and at the command prompt enter nastran
wkshp10a scr=yes. Monitor the run using the UNIX ps command:
WS10-10
4. View Results
When the run is completed, edit the wkshp10a.f06 file and search for the word FATAL. If no matches
exist, search for the word WARNING. Determine whether existing WARNING messages indicate modeling
errors.
While still editing wkshp10a.f06, search for the word H I S T O R Y. Compare the results obtained in the
.f06 file with the following:
***************************************************************
S U M M A R Y
O F
D E S I G N
C Y C L E
H I S T O R Y
***************************************************************
(HARD CONVERGENCE ACHIEVED)
(SOFT FEASIBLE DISCRETE DESIGN OBTAINED)
(HARD FEASIBLE DISCRETE DESIGN OBTAINED)
NUMBER OF FINITE ELEMENT ANALYSES COMPLETED
9
NUMBER OF OPTIMIZATIONS W.R.T. APPROXIMATE MODELS
7
NUMBER OF DISCRETE PROCESSING ANALYSES COMPLETED
1
OBJECTIVE AND MAXIMUM CONSTRAINT HISTORY
--------------------------------------------------------------------------------------------------------------OBJECTIVE FROM
OBJECTIVE FROM
FRACTIONAL ERROR
MAXIMUM VALUE
CYCLE
APPROXIMATE
EXACT
OF
OF
NUMBER
OPTIMIZATION
ANALYSIS
APPROXIMATION
CONSTRAINT
--------------------------------------------------------------------------------------------------------------INITIAL
4.828427E+00
-3.234952E-01
3.007052E+00
3.007354E+00
-1.004459E-04
-3.352051E-03
2.821493E+00
2.821564E+00
-2.534962E-05
-1.881016E-02
2.731738E+00
2.731768E+00
-1.108409E-05
-2.713281E-03
2.708183E+00
2.708187E+00
-1.320544E-06
8.052734E-04
2.699788E+00
2.699798E+00
-3.444082E-06
1.659180E-03
2.695010E+00
2.695005E+00
2.034737E-06
2.547559E-03
2.694282E+00
2.694286E+00
-1.327357E-06
2.586133E-03
7D
2.754172E+00
2.754163E+00
3.289531E-06
-1.904385E-02
---------------------------------------------------------------------------------------------------------------
WS10-11
A2
3.4443E-01 :
3.3612E-01 :
3.5000E-01
3 |
3
| A3
|
8.3105E-01 :
8.3374E-01 :
8.5000E-01 :
*** USER INFORMATION MESSAGE 6464 (DOM12E)
RUN TERMINATED DUE TO HARD CONVERGENCE TO AN OPTIMUM AT CYCLE NUMBER =
7.
AND HARD FEASIBLE DISCRETE DESIGN OBTAINED
WS10-12
DOPTPRM,IPRINT, 5,
,
P2,
15,
DESMAX, 20,
DISCOD, 3 ,
WS10-13
find an available UNIX shell window and at the command prompt enter nastran
wkshp10b scr=yes. Monitor the run using the UNIX ps command:
WS10-14
7. View Results
When the run is completed, edit the wkshp10b.f06 file and search for the word FATAL. If no matches exist, search for the
word WARNING. Determine whether existing WARNING messages indicate modeling errors.
While still editing wkshp10b.f06, search for the word H I S T O R Y. Compare the results obtained in the .f06 file with the
following:
***************************************************************
S U M M A R Y
O F
D E S I G N
C Y C L E
H I S T O R Y
***************************************************************
(HARD CONVERGENCE ACHIEVED)
(SOFT FEASIBLE DISCRETE DESIGN OBTAINED)
(HARD FEASIBLE DISCRETE DESIGN OBTAINED)
NUMBER OF FINITE ELEMENT ANALYSES COMPLETED
15
NUMBER OF OPTIMIZATIONS W.R.T. APPROXIMATE MODELS
7
NUMBER OF DISCRETE PROCESSING ANALYSES COMPLETED
7
OBJECTIVE AND MAXIMUM CONSTRAINT HISTORY
--------------------------------------------------------------------------------------------------------------OBJECTIVE FROM
OBJECTIVE FROM
FRACTIONAL ERROR
MAXIMUM VALUE
CYCLE
APPROXIMATE
EXACT
OF
OF
NUMBER
OPTIMIZATION
ANALYSIS
APPROXIMATION
CONSTRAINT
--------------------------------------------------------------------------------------------------------------INITIAL
4.828427E+00
-3.234952E-01
1
1D
3.007052E+00
3.121316E+00
3.007354E+00
3.121320E+00
-1.004459E-04
-1.298526E-06
-3.352051E-03
-4.971660E-02
2
2D
2.821493E+00
2.912762E+00
2.821564E+00
2.912742E+00
-2.534962E-05
6.957561E-06
-1.881016E-02
-4.611885E-02
3
3D
2.731738E+00
2.762747E+00
2.731768E+00
2.762742E+00
-1.108409E-05
1.812254E-06
-2.713281E-03
-1.138428E-02
4
4D
2.708183E+00
2.854164E+00
2.708187E+00
2.854163E+00
-1.320544E-06
4.176681E-07
8.052734E-04
-4.905635E-02
5
5D
2.699788E+00
2.804163E+00
2.699798E+00
2.804163E+00
-3.444082E-06
8.502307E-08
1.659180E-03
-3.479961E-02
6
6D
2.695010E+00
2.754154E+00
2.695005E+00
2.754163E+00
2.034737E-06
-3.462664E-06
2.547559E-03
-1.904385E-02
7
2.694282E+00
2.694286E+00
-1.327357E-06
2.586133E-03
7D
2.754172E+00
2.754163E+00
3.289531E-06
-1.904385E-02
---------------------------------------------------------------------------------------------------------------
WS10-15
WS10-16
WORKSHOP 11
ENHANCEMENT OF DYNAMIC RESPONSE
CREATION
WS11-1
WS11-2
Objective:
Learn different ways to define a synthetic dynamic response.
Use the same mass-sprint-damp system for workshop 4
WS11-3
2.
3.
4.
5.
6.
7.
8.
WS11-4
Objective Function:
Minimize an SSQ response of displacements at grid 1 (X-direction) at
frequencies = 4.,4.5,5.,5.5 and 6.0 Hz.
Design Variables:
Spring constants: K1, K2 and K3
Damping coefficients: GE1, GE2 and GE3
WS11-5
Model Description
Part A:
Define the SSQ response using the new DEQATN intrinsic function
Part B:
Define the SSQ response using direct DRESP2 function reference
Part C:
Define the SSQ response using direct DRESP1 function reference
WS11-6
TIME 5
SOL 200 $
CEND
TITLE=TWO MASS DIRECT FREQUENCY SENSITIVITY
DISPL(PHASE) = ALL
SUBCASE 2
DESOBJ = 100
ANALYSIS = DFREQ
FREQ = 100
DLOAD = 200
dsaprt(end=sens) = all
BEGIN BULK
$
CELAS1 20
20
1
1
CELAS1 21
21
1
1
2
1
CELAS1 22
22
2
1
CONM2
10
1
1.
CONM2
11
2
2.
DAREA
201
1
1
100.
2
1
DESVAR 1
K1
1.0E3
1.0E2
1.0E4
DESVAR 2
K2
1.5E3
1.5E2
1.5E4
DESVAR 3
K3
2.0E3
2.0E2
2.0E4
DESVAR 4
GE1
.1
.05
.15
DESVAR 5
GE2
.1
.05
.15
DESVAR 6
GE3
.1
.05
.15
$
23
4
5
8
9
0
D108G7v
100.
DRESP1 11
U1
FRDISP
1
4.0
1
DRESP1 12
U1
FRDISP
1
4.5
1
DRESP1 13
U1
FRDISP
1
5.0
1
DRESP1 14
U1
FRDISP
1
5.5
1
DRESP1 15
U1
FRDISP
1
6.0
1
$
$
$ Compute FDSSQ = (R1**2+R2**2+R3**2+R4**2+R5**2)
$ Explicitly write out a SSQ equation with DEQATN
$
DRESP2 100 FDSSQ
200
DRESP1
11
12
13
14
15
DEQATN 200
FDSSQ(R1,R2,R3,R4,R5)=(R1**2+R2**2+R3**2+R4**2+R5**2)
$
WS11-7
$
DVPREL1 1
1
DVPREL1 2
2
DVPREL1 3
3
DVPREL1 4
4
DVPREL1 5
5
DVPREL1 6
6
FREQ
100
GRID
1
23456
GRID
2
23456
MAT1
200
PELAS
20
PELAS
21
PELAS
22
RLOAD1 200
TABLED1 210
1.
ENDDATA
PELAS
1.0
PELAS
1.0
PELAS
1.0
PELAS
1.0
PELAS
1.0
PELAS
1.0
4.0
20
1.0E3
21
1.5E3
22
2.0E3
20
.05
21
.05
22
.05
4.5
1.
5.0
0.
5.5
0.
2.
0.
0.
0.3
0.1
1.0E7
1.0E3
1.5E3
2.0E3
201
1.
210
10.
1.
ENDT
6.0
-------------------------------------------------------------------------------------------------------------------------------DRESP1 ID=
14
RESPONSE TYPE= FRDISP
GRID ID=
1
COMP NO=
1
SEID=
0
SUBCASE RESP VALUE FREQ/TIME
DESIGN VARIABLE COEFFICIENT
DESIGN VARIABLE COEFFICIENT
DESIGN VARIABLE COEFFICIENT
-------------------------------------------------------------------------------------------------------------------------------2 2.9241E-01 5.5000E+00
1 K1
2.8222E-04
2 K2
8.7088E-06
3 K3
4.6273E-04
4 GE1
-2.1884E-01
5 GE2
1.2674E-02
6 GE3
-3.7439E-01
TWO MASS DIRECT FREQUENCY SENSITIVITY
D108G7V
NOVEMBER
8, 2002 MSC.NASTRAN 11/ 1/02
PAGE
19
0
-------------------------------------------------------------------------------------------------------------------------------DRESP1 ID=
15
RESPONSE TYPE= FRDISP
GRID ID=
1
COMP NO=
1
SEID=
0
SUBCASE RESP VALUE FREQ/TIME
DESIGN VARIABLE COEFFICIENT
DESIGN VARIABLE COEFFICIENT
DESIGN VARIABLE COEFFICIENT
-------------------------------------------------------------------------------------------------------------------------------2 1.3771E-01 6.0000E+00
1 K1
5.1171E-05
2 K2
1.2517E-05
3 K3
1.5027E-04
4 GE1
-3.3135E-02
5 GE2
1.2923E-02
6 GE3
-2.5227E-02
-------------------------------------------------------------------------------------------------------------------------------DRESP2 ID=
100
RESPONSE TYPE= SYNTHETIC
SEID=
0
SUBCASE RESP VALUE FREQ/TIME
DESIGN VARIABLE COEFFICIENT
DESIGN VARIABLE COEFFICIENT
DESIGN VARIABLE COEFFICIENT
-------------------------------------------------------------------------------------------------------------------------------2 6.7817E-01 4.0000E+00
1 K1
-1.1474E-03
2 K2
-3.2665E-06
3 K3
-4.0372E-04
4 GE1
-3.2262E+00
5 GE2
2.9704E-02
6 GE3
-6.2204E+00
WS11-8
WS11-9
WS11-10
1
1
1
1
1
14
WS11-11
WS11-12
4.0
4.5
5.0
5.5
6.0
13
1
1
1
1
1
14
$
$ Compute FDSSQ = (R1**2+R2**2+R3**2+R4**2+R5**2)
$
$ Identify dynamic dislacement response at grid1, component 1
$ and use direct DRESP1 function reference
$
DRESP1 ...
WS11-13
$
$ Compute FDSSQ = (R1**2+R2**2+R3**2+R4**2+R5**2)
$
$ Identify dynamic dislacement response at grid1, component 1
$ and use direct DRESP1 function reference
$
DRESP1 100
U1
FRDISP
1
SSQ
Compare the results with that provided in page 11-7. Notice that only the SSQ response
sensitivities are printed out since the five individual displacement responses are not
explicitly defined.
WS11-14
WORKSHOP 12
EXTERNAL RESPONSE (DRESP3)
WS12-1
WS12-2
Objective:
Learn how to set up an external response optimization task using
the same box design problem used in Workshop 2. You will write Fortran
routines to define the volume and surface area instead of using DEQATN
entries.
WS12-3
2.
3.
4.
5.
6.
7.
8.
9.
View Results
WS12-4
Model Description
Constraints:
Volume: V = H * W * L 2.0
Initial Design
H = 1.5
W = 1.5
L = 1.5
S = 18.0
V = 3.375
Optimum Design
H = 2.0
W = 1.0
L = 1.0
S = 12.0
V = 2.0
WS12-5
1
-100.0
10
gmax
2.0
1
1.0E35
delp
1.e-16
1.0
ctmin
ENDDATA
WS12-6
1.e-16
$
$ BOX DESIGN PROBLEM DEFINITION
$
DESVAR 1
W
1.5
0.1
DESVAR 2
L
1.5
0.1
DESVAR 3
H
1.5
0.1
DRESP3 1
VOLUME WKSHOP VOLUME
DESVAR 1
2
3
DRESP3 2
SURFACE WKSHOP SURFACE
DESVAR 1
2
3
DCONSTR 1
1
2.0
1.0E35
DSCREEN DRESP3 -100.0 1
DOPTPRM DESMAX 10
delp
gmax
1.e-16
ENDDATA
0.0
WS12-7
10.0
10.0
10.0
1.0
ctmin
1.e-16
100
200
DATA BADTYP/7554/
ERROR = 0
DO 100 ITYPE = 1, NTYPES
IF (TYPNAM .EQ. R3TYPE(ITYPE)) THEN
GOTO 200
END IF
CONTINUE
ERROR = BADTYP
CONTINUE
RETURN
END
WS12-8
SUBROUTINE R3SGRT(GRPID,TYPNAM,ERROR)
09/18/00;14:24:09
cdp
2001t1 na001130
Update dr3srv per SHZ
---------------------------------------------------------------------PURPOSE: VERIFY THE EXTERNAL RESPONSE TYPE
GRPID
TYPNAM
ERROR
input integer
- Group ID
input character*8
- Name of external response type
input/output integer -error code for the call.
Method
Match the user input: typnam with the list of available
external response types. If no match is found, set error code.
Called by
R3CGRT
NOTE:
The writer of this routine is responsible to specify
NTYPES and R3TYPE.
---------------------------------------------------------------------VARIABLES PASSED IN
INTEGER GRPID, ERROR
CHARACTER*8 TYPNAM
C
C
C
LOCAL VARIABLES
INTEGER NTYPES, BADTYP
PARAMETER(NTYPES=2)
CHARACTER*8 R3TYPE(NTYPES)
C
DATA BADTYP/7554/
DATA R3TYPE/'VOLUME','SURFACE'/
100
200
C
ERROR = 0
DO 100 ITYPE = 1, NTYPES
IF (TYPNAM .EQ. R3TYPE(ITYPE)) THEN
GOTO 200
END IF
CONTINUE
ERROR = BADTYP
CONTINUE
RETURN
END
WS12-9
Modify DRESP3 server routine, r3vald to define volume and surface area.
SUBROUTINE R3SVALD(GRPID,TYPNAM,
.
NITEMS,ARGLIS,
.
NSIZE, ARGVAL,
.
NWRDA8,ARGCHR,
.
DR3VAL,ERROR)
C ---------------------------------------------------------------------C
C
PURPOSE: COMPUTE THE EXTERNAL RESPONSE
C
C
GRPID
input integer
- Group id
C
TYPNAM input character*8
- Name of external response type
C
NITEMS input integer
- dimension of array ARGLIS
C
NSIZE
input integer
- dimension of array ARGVAL
C
NWRDA8 input integer
- dimension of character array ARGCHR
C
ARGLIS input integer
- array of no. of items for each argument
C
ARGVAL input double
- array of all argument values
C
ARGCHR input character*8
- array of characters
C
DR3VAL output double
- value of the external response
C
ERROR
input/output integer -error code for the call.
C
0 = print error messages
C
1 = do not print error messages.
C
C
Portion of routine is omitted
C
C
LOCAL VARIABLES
C
INTEGER BADTYP
C
declare user defined variables
C
DATA BADTYP /7554/
C
C
C
C
C
C
C
C
RETURN
END
WS12-10
WS12-11
C
C
C
VARIABLES PASSED IN
CHARACTER*8 TYPNAM, ARGCHR(NWRDA8)
INTEGER GRPID, NITEMS, NSIZE, ARGLIS(NITEMS), ERROR
DOUBLE PRECISION ARGVAL(NSIZE), DR3VAL
C
C
C
LOCAL VARIABLES
INTEGER BADTYP
DOUBLE PRECISION W,L,H
C
DATA BADTYP /7554/
C
C
C
C
C
C
C
C
WS12-12
Generate a connection evaluator file, called wkshp12_eval that associates the external
response group with the actual server program. The full content of file, wkshp12_eval is
shown here.
EXTRESP, - , /home/wkshop/server/dr3serv
Submit the Nastran job by adding a new keyword, gmconn where gmconn refers to the
evaluator file name.
WS12-13
find an available UNIX shell window and at the command prompt enter
Nastran fn scr=yes gmconn=wkshp12_eval
WS12-14
9. View Results
When the run is completed, edit the wkshp12.f06 file and search for the word FATAL. If no matches exist, search for the
word WARNING. Determine whether existing WARNING messages indicate modeling errors.
While still editing wkshp12.f06, search for the word H I S T O R Y. Compare the results obtained in the .f06 file with the
following:
***************************************************************
S U M M A R Y
O F
D E S I G N
C Y C L E
H I S T O R Y
***************************************************************
(HARD CONVERGENCE ACHIEVED)
(SOFT CONVERGENCE ACHIEVED)
3
2
1.800000E+01
1.200000E+01
1.200000E+01
-6.875000E-01
0.000000E+00
-5.960464E-07
2
1.200000E+01
1.200000E+01
0.000000E+00
-5.960464E-07
--------------------------------------------------------------------------------------------------------------BOX MATERIAL MINIMIZATION WITH A VOLUME CONSTRAINT D200X8
NOVEMBER
7, 2002 MSC.NASTRAN 11/ 7/02
PAGE
INITIAL DESIGN: W=1.5, L=1.5, AND H=1.5
20
0
DESIGN VARIABLE HISTORY
---------------------------------------------------------------------------------------------------------------------------------INTERNAL |
EXTERNAL
|
|
DV. ID. |
DV. ID.
|
LABEL
|
INITIAL
:
1
:
2
:
3
:
4
:
5
:
---------------------------------------------------------------------------------------------------------------------------------1 |
1
| W
|
1.5000E+00 :
1.0000E+00 :
1.0000E+00 :
2 |
2
| L
|
1.5000E+00 :
1.0000E+00 :
1.0000E+00 :
3 |
3
| H
|
1.5000E+00 :
2.0000E+00 :
2.0000E+00 :
*** USER INFORMATION MESSAGE 6464 (DOM12E)
RUN TERMINATED DUE TO HARD CONVERGENCE TO AN OPTIMUM AT CYCLE NUMBER =
2.
WS12-15
WS12-16