Design Sensitivity and Optimization in MSC - Nastran
Design Sensitivity and Optimization in MSC - Nastran
Software Corporation
2 MacArthur Place
Santa Ana, CA 92707, USA
Tel: (714) 540-8900
Fax: (714) 784-4056
Web: http://www.mscsoftware.com
May 2005
NA*V2005R2*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© 2005 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. Minimization of surface material required for shipping box. 2-1
3. Frame structure design with different scaling 3-1
4. Calculation of design sensitivity coefficients. 4-1
5. Mode tracking exercise. 5-1
6. Shape optimization of a planar culvert. 6-1
7. Multi-disciplinary optimization problem subject to static, normal 7-1
modes, and frequency response.
8. Design structure with strength and buckling limits satisfying both 8-1
the Euler’s and Johnson’s criteria.
9. Random response optimization 9-1
10. Discrete variable optimization 10-1
11. Enhancement of dynamic response creation 11-1
12. External response (DRESP3) 12-1
13. Avoiding A Frequency Range 13-1
14. Stiffened Plate Optimization With Objective Formed using Crossing-Subcase Responses 14-1
WORKSHOP 1
3- BAR TRUSS OPTIMIZATION SUBJECT TO
STATIC LOADING
Subcase 1 Subcase 2
X: -16,000 lbs X: 16,000 lbs
Y: -12,000 lbs Y: -12,000 lbs
X Constraints:
Stress Allowable: 20 ksi tension
15 ksi compression
Displacement at grid 4: X direction ≤ ±0.2 in
Y direction ≤ ±0.2 in
1 2 3
Y
Z X 4
Figure 1.2 – Constraints and Applied Forces (Case 1) Figure 1.3 – Constraints and Applied Forces (Case 2)
NAS 107, Workshop 1, May 2005
Copyright© 2005 MSC.Software Corporation WS1-6
Table 1.1 – Material Properties
Open database.
d
a. File / New.
b. Enter wkshp1 for File
Name.
c. Click OK.
d. Under New Model
e
Preferences, select Based
on Model Tolerance.
f
e. Select MSC.NASTRAN for
Analysis Code. b c g
f. Select Structural for
Analysis Type.
g. OK.
a b
b. Front view
Create bars
a. Elements
b. Create/Element/Edit
c. Select Bar for Shape b
d. Select Node 1 from the viewport
for Node 1 =
e. Enter Node 4 from the viewport
for Node 2 =
f. Apply
c
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 = d
Node 4 for Node 2 = z
e
and click Apply.
f
h
i
i
Create a nodal displacement called
b
disp_1. e
a. Loads/BCs f
b. Create / Displacement / Nodal.
c. Enter disp_1 for New Set Name j
d. Input Data… k
e. Enter <0,0,0> for Translations
<T1 T2 T3>
f. Enter <0,0,0> for Rotations <R1
R2 R3>
g. OK
h. Select Application Regions… l
c g
i. Select FEM under Geometry
Filter
j. Drag the mouse to select Node 1,
Node 2, and Node 3 from the
viewport for Select Nodes d
k. Add
l. OK h
m. Apply m
b i
Create another nodal displacement
called disp_2. e
a. Loads/BCs
f
b. Create / Displacement / Nodal.
c. Enter disp_2 for New Set Name j
d. Input Data…
e. Enter < , ,0> for Translations <T1 k
T2 T3>
f. Enter <0,0,0> for Rotations <R1
R2 R3>
g. OK
h. Select Application Regions…
c
i. Select FEM under Geometry l
Filter
j. Select Node 4 from the viewport g
for Select Nodes
k. Add d
l. OK h
m. Apply
m
a
h
b
Create a new nodal force called
e
force_1. i
a. Loads/BCs j
b. Create/Force/Nodal
c. Enter force_1 for New Set Name
d. Input Data…
e. Enter < -16000, -12000, > for
Force <F1 F2 F3> k
f. OK
g. Select Application Region…
h. Select FEM under Geometry
Filter
c f
i. Select Node 4 from the viewport
for Select Nodes
j. Add
k. OK
l. Apply d
g
l
a
h
b e
Create another nodal force called i
force_2.
j
a. Loads/BCs
b. Create/Force/Nodal
c. Enter force_2 for New Set Name
d. Input Data…
e. Enter < 16000, -12000, > for k
Force <F1 F2 F3>
f. OK
g. Select Application Region…
f
h. Select FEM under Geometry
Filter
i. Select Node 4 from the viewport c
for Select Nodes
j. Add
k. OK
l. Apply d
g
l
e
b
Create a new Load Case called
case_1.
a. Load Cases.
b. Create
c. Enter case_1 as Load Case
Name
d. Input Data…
e. Under Select Individual
Loads/BCs databox, select
Displ_disp_1
Displ_disp_2
Force_force_1
c
f. OK
g. Apply f
g
NAS 107, Workshop 1, May 2005
Copyright© 2005 MSC.Software Corporation WS1-19
Step 13. Create Load Cases (Cont.)
b
Create another Load Case called e
case_2.
a. Load Cases.
b. Create
c. Enter case_2 as Load Case
Name
d. Input Data…
e. Under Select Individual
Loads/BCs databox, select
Displ_disp_1
Displ_disp_2
Force_force_2 c
f. OK
g. Apply
d
f
g
NAS 107, Workshop 1, May 2005
Copyright© 2005 MSC.Software Corporation WS1-21
Step 14a. Create Design Variable from Tools (Cont.)
b
a
g h
NAS 107, Workshop 1, May 2005
Copyright© 2005 MSC.Software Corporation WS1-22
Step 15. Create Design Objective from Tools
b
Create Objective for the Design a
Study.
a. Tools/Design Study/Pre- c
Process d
b. Create / Objective
c. Select Global as the Solution.
d. Select Weight as the Response.
e. Enter Total_Weight as the
Objective Name
e
f. Select minimize under Min/Max
selection box.
g. Apply
b
Create Design Constraints for the a
Design Study
a. Tools/Design Study/Pre-
Process
b. Create /Constraint
c. DISP_1 for Constraint Name
d. Select Node 4 for Select Node
e. Select TX option under
Displacement Component c i
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 d j
k. Select TY option under
Displacement Component e
l. Enter –0.2 for Lower Bound k
m. Enter 0.2 for Upper Bound
n. Apply
f g l m
h n
NAS 107, Workshop 1, May 2005
Copyright© 2005 MSC.Software Corporation WS1-24
Step 16a. Create Design Constraints from Tools (Cont.)
e
NAS 107, Workshop 1, May 2005
Copyright© 2005 MSC.Software Corporation WS1-27
Step 19a. Create an Input File for Analysis – Translation Parameters
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 c
2005
g. OK
f
c
a d
e
NAS 107, Workshop 1, May 2005
Copyright© 2005 MSC.Software Corporation WS1-29
Step 20a. Create an Input File for Analysis – Design Study Select
a
c
Select constraints
a. Subcases… b
b. Select case_1 from the h
Available Subcases
c. Select
d
Constraints/Objective…
d. Select Constraints
e
e. Select all of the existing
constraints.
f. OK
g. Apply
c
h. Select case_2 from the i
Available Subcases
i. Repeat steps c.-g. for case_2.
j. Cancel
f
g j
a
d
e
NAS 107, Workshop 1, May 2005
Copyright© 2005 MSC.Software Corporation WS1-33
Step 22. Generated Input File
Look for the generated input file named wkshp1.bdf. It should be similar to the
output below.
SOL 200
TIME 600
$ Direct Text Input for Executive Control
CEND
TITLE = MSC.Nastran job created on 25-Apr-05 at 13:06:35
ECHO = NONE
MAXLINES = 999999999
DESOBJ(MIN) = 1
ANALYSIS = STATICS
$ Direct Text Input for Global Case Control Data
SUBCASE 1
$ Subcase name : case_1
SUBTITLE=case_1
SPC = 2
LOAD = 2
DISPLACEMENT(SORT1,REAL)=ALL
SPCFORCES(SORT1,REAL)=ALL
STRESS(SORT1,REAL,VONMISES,BILIN)=ALL
DESSUB = 21
$ Direct Text Input for this Subcase
SUBCASE 2
$ Subcase name : case_2
SUBTITLE=case_2
SPC = 2
LOAD = 4
DISPLACEMENT(SORT1,REAL)=ALL
SPCFORCES(SORT1,REAL)=ALL
STRESS(SORT1,REAL,VONMISES,BILIN)=ALL
DESSUB = 22
$ Direct Text Input for this Subcase
BEGIN BULK
PARAM POST -1
PARAM PRTMAXIM YES
PARAM NASPRT 1
$ Direct Text Input for Bulk Data
$ Elements and Element Properties for region : prop_1
PROD 1 1 1.
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. b
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.
c
***************************************************************
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
***************************************************************
0 SUBCASE 1
DESIGN VARIABLE HISTORY
----------------------------------------------------------------------------------------------------------------------------------
INTERNAL | EXTERNAL | |
DV. ID. | DV. ID. | LABEL | INITIAL : 1 : 2 : 3 : 4 : 5 :
----------------------------------------------------------------------------------------------------------------------------------
1 | 1 | PROP_1:1 | 1.0000E+00 : 7.6733E-01 : 7.8602E-01 : 8.0348E-01 : 8.2228E-01 : 8.3472E-01 :
2 | 2 | PROP_2:2 | 2.0000E+00 : 7.1794E-01 : 5.3120E-01 : 4.4529E-01 : 3.7943E-01 : 3.3640E-01 :
----------------------------------------------------------------------------------------------------------------------------------
INTERNAL | EXTERNAL | |
DV. ID. | DV. ID. | LABEL | 6 : 7 : 8 : 9 : 10 : 11 :
----------------------------------------------------------------------------------------------------------------------------------
1 | 1 | PROP_1:1 | 8.4580E-01 :
2 | 2 | PROP_2:2 | 3.0301E-01 :
b
Continue to view results in PATRAN.
a. Analysis.
b. Access Results/Read
Output2/Result Entities.
c. Select Results File…
d
d. Select wkshp1.op2.
e. OK.
f. Apply.
e
f
NAS 107, Workshop 1, May 2005
Copyright© 2005 MSC.Software Corporation WS1-39
Step 28. Post Design Variable History XYWINDOW
b
Post DesignVariableHistory Plot
a. XY Plot
c
b. Post / XYWindow
c. For Select Current XY Window,
select DesignVariableHistory
d. For Post/Unpost XY Windows,
select DesignVariableHistory
e. Apply
e
NAS 107, Workshop 1, May 2005
Copyright© 2005 MSC.Software Corporation WS1-40
Step 29. Post Objective Function XYWINDOW
b
Post ObjectiveFunction Plot
a. XY Plot
b. Post / XYWindow
c
c. For Select Current XY Window,
select ObjectiveFunction
d. For Post/Unpost XY Windows,
select ObjectiveFunction
e. Apply
e
NAS 107, Workshop 1, May 2005
Copyright© 2005 MSC.Software Corporation WS1-41
Step 30. Post Maximum Constraint Curve
b
Post Maximum Constraint History Plot
a. XY Plot
b. Post / XYWindow c
c. For Select Current XY Window,
select MaximumConstraintHistory
d. For Post/Unpost XY Windows,
select MaximumConstraintHistory
e. Apply
Quit MSC.PATRAN.
a. File / Quit.
S = 2 * ( W * H + L * H + 2.0 * W * L )
X Constraints:
Volume: V = H * W * L ≥ 2.0
10,000 lbs 5 1
A2, I2
A1, I1 A3, I3
10,000 lbs 5 1
A2, I2
A1, I1 A3, I3
X Part B
i =1 ui
X Redo the problem by normalizing the design variables and the displacements
using the following formulation for the objective function:
6 ui
F (α 1,α 2,α 3, β 1, β 2, β 3) = ∑ (1 − t arg et
)2
i =1 ui
Ai Ii
where α i = and βi =
Aiinit Iiinit
$ soln3a.dat
ID MSC, D200X10
TIME 5 CBAR 1 1 1 2 0.000 1.00000 0.000
SOL 200 CBAR 2 1 2 3 0.000 1.00000 0.000
CEND CBAR 3 1 3 4 0.000 1.00000 0.000
TITLE = DISPLACEMENT MATCHING EXERCISE CBAR 4 1 4 5 0.000 1.00000 0.000
CBAR 5 2 5 6 1.00000 0.000 0.000
SUBTITLE = PORTAL FRAME SUBJECT TO HORIZONTAL LOAD NO SCALING
CBAR 6 2 6 7 1.00000 0.000 0.000
ECHO = SORT
CBAR 7 2 7 8 1.00000 0.000 0.000
SPC = 10
CBAR 8 2 8 9 1.00000 0.000 0.000
SET 10 = 1,5 CBAR 9 3 1 10 1.00000 0.000 0.000
DISP = 10 CBAR 10 3 10 11 1.00000 0.000 0.000
ANALYSIS = STATICS CBAR 11 3 11 12 1.00000 0.000 0.000
DESOBJ = 700 CBAR 12 3 12 13 1.00000 0.000 0.000
SUBCASE 1 PBAR 1 1 100. 1.+7 1.+7 1.+7
LABEL = LOAD CONDITION 1 PBAR 2 1 50. 1.+6 1.+6 1.+7
LOAD = 1 PBAR 3 1 150. 0.3+7 3.+6 1.+7
BEGIN BULK $ Design Model Description
$ --- Design Variables ---
PARAM,POST,-1
DESVAR,10,AREAHB,100.0,0.05,5000.0
PARAM AUTOSPC YES
DESVAR,20,AREAC1,50.0,0.05,5000.0
PARAM GRDPNT 0 DESVAR,30,AREAC2,150.0,0.05,5000.0
$ Analysis Model Description DESVAR,40,IHB,10.E6,0.1,1.0E9
MAT1 1 69000.0 0.30000 2.798-6 DESVAR,50,IC1,1.E6,0.1,1.0E9
SPC1 10 123456 9 13 DESVAR,60,IC2,3.E6,0.1,1.0E9
FORCE 1 5 10000.0 1.00000 0.00000 0.00000 $ --- Design Variable to Properties Relation ---
$ DVPREL1,100,PBAR,1,4,5.0,,0.0,,+DVPA
GRID 1 500.0 1000.0 0.00000 345 +DVPA,10,1.0
GRID 2 250.0 1000.0 0.00000 345 DVPREL1,200,PBAR,2,4,5.0,,0.0,,+DVPB
+DVPB,20,1.0
GRID 3 0.000 1000.0 0.00000 345
DVPREL1,300,PBAR,3,4,5.0,,0.0,,+DVPC
GRID 4 -250.0 1000.0 0.00000 345
+DVPC,30,1.0
GRID 5 -500.0 1000.0 0.00000 345
DVPREL1,400,PBAR,1,5,1.0,,0.0,,+DVPD
GRID 6 -500.0 750.00 0.00000 345 +DVPD,40,1.0
GRID 7 -500.0 500.00 0.00000 345 DVPREL1,500,PBAR,2,5,1.0,,0.0,,+DVPE
GRID 8 -500.0 250.00 0.00000 345 +DVPE,50,1.0
GRID 9 -500.0 0.0000 0.00000 DVPREL1,600,PBAR,3,5,1.0,,0.0,,+DVPF
GRID 10 500.0 750.00 0.00000 345 +DVPF,60,1.0
GRID 11 500.0 500.00 0.00000 345 $
GRID 12 500.0 250.00 0.00000 345
GRID 13 500.00 0.00000 0.00000
NAS 107, Workshop 3, May 2005 (Cont’d)
Copyright© 2005 MSC.Software Corporation WS3-8
2. Compare the MSC.NASTRAN Input File (Cont.)
The completed MSC.NASTRAN input file for PART A is shown below (Cont.):
$
$ --- Design Responses ---
DRESP1,100,HD1,DISP,,10,1,,1
DRESP1,200,VD1,DISP,,11,2,,1
DRESP1,300,RD1,DISP,,12,6,,1
DRESP1,400,HD5,DISP,,20,1,,5
DRESP1,500,VD5,DISP,,21,2,,5
DRESP1,600,RD5,DISP,,22,6,,5
$
$ --- Equation to describe Objective function
$
$ These equations scale the objective to get it away from zero.
$
DRESP2,700,ERROR,10,,,,,,+DRESP2A
+DRESP2A,DTABLE,T1,T2,T3,T4,T5,T6,,+DRESP2B
+DRESP2B,DRESP1,100,200,300,400,500,600
$
DEQATN 10 OBJ(T1,T2,T3,T4,T5,T6,U1,U2,U3,U4,U5,U6) +
+ = ( (U1-T1)**2 + (U2-T2)**2 + (U3-T3)**2 + +
+ (U4-T4)**2 + (U5-T5)**2 + (U6-T6)**2 )/1.e-3
$
$ 2 3 4 5 6 7 8 9 10
DTABLE* T1 9.1449 E-01 T2 -9.56418E-02 +
* T3 -9.7538 E-04 T4 1.068138 +
* T5 9.56418E-02 T6 -1.0012 E-03 +
*
$
$ --- 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
---------------------------------------------------------------------------------------------------------------
OBJECTIVE FROM OBJECTIVE FROM FRACTIONAL ERROR MAXIMUM VALUE
CYCLE APPROXIMATE EXACT OF OF
NUMBER OPTIMIZATION ANALYSIS APPROXIMATION CONSTRAINT
---------------------------------------------------------------------------------------------------------------
Moment of Inertia
Figure 3.1 Objective Function Figure 3.2 Design Variables (Moment of Inertia)
NAS 107, Workshop 3, May 2005
Copyright© 2005 MSC.Software Corporation WS3-13
5. XY Plots of Design Results (Cont.)
(Cont.)
NAS 107, Workshop 3, May 2005
Copyright© 2005 MSC.Software Corporation WS3-16
6. Generate an Input File for MSC.NASTRAN Users (Cont.)
The completed MSC.NASTRAN input file for PART B is shown below (Cont.):
$
$ --- Design Responses ---
DRESP1,100,HD1,DISP,,10,1,,1
DRESP1,200,VD1,DISP,,11,2,,1
DRESP1,300,RD1,DISP,,12,6,,1
DRESP1,400,HD5,DISP,,20,1,,5
DRESP1,500,VD5,DISP,,21,2,,5
DRESP1,600,RD5,DISP,,22,6,,5
$
$ --- Equation to describe Objective function
$
DRESP2,700,ERROR,10,,,,,,+DRESP2A
+DRESP2A,DTABLE,T1,T2,T3,T4,T5,T6,,+DRESP2B
+DRESP2B,DRESP1,100,200,300,400,500,600
$
$
$ These equations scale the objective to get it away from zero.
$234567812345678
DEQATN 10 OBJ(T1,T2,T3,T4,T5,T6,U1,U2,U3,U4,U5,U6) +
+ =( (1.-U1/T1)**2 + (1.-U2/T2)**2 + (1.-U3/T3)**2 + +
+ (1.-U4/T4)**2 + (1.-U5/T5)**2 + (1.-U6/T6)**2 )/1.e-3
$ 2 3 4 5 6 7 8 9 10
DTABLE* T1 9.1449 E-01 T2 -9.56418E-02 +
* T3 -9.7538 E-04 T4 1.068138 +
* T5 9.56418E-02 T6 -1.0012 E-03 +
*
$
$ --- 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
Area
Moment of Inertia
$ soln3c.dat
ID MSC, D200X10
TIME 5
SOL 200
CEND
TITLE = DISPLACEMENT MATCHING EXERCISE
SUBTITLE = PORTAL FRAME SUBJECT TO HORIZONTAL LOAD FULL SCALING
ECHO = SORT
SPC = 10
SET 10 = 1,5
DISP = 10
ANALYSIS = STATICS
DESOBJ = 700
SUBCASE 1
LABEL = LOAD CONDITION 1
LOAD = 1
BEGIN BULK
PARAM,POST,-1
PARAM AUTOSPC YES
PARAM GRDPNT 0
$ Analysis Model Description
MAT1 1 69000.0 0.30000 2.798-6
SPC1 10 123456 9 13
FORCE 1 5 10000.0 1.00000 0.00000 0.00000
GRID 1 500.0 1000.0 0.00000 345
GRID 2 250.0 1000.0 0.00000 345
GRID 3 0.000 1000.0 0.00000 345
GRID 4 -250.0 1000.0 0.00000 345
GRID 5 -500.0 1000.0 0.00000 345
GRID 6 -500.0 750.00 0.00000 345
GRID 7 -500.0 500.00 0.00000 345
GRID 8 -500.0 250.00 0.00000 345
GRID 9 -500.0 0.0000 0.00000
GRID 10 500.0 750.00 0.00000 345
GRID 11 500.0 500.00 0.00000 345
GRID 12 500.0 250.00 0.00000 345
GRID 13 500.00 0.00000 0.00000
(Cont.)
NAS 107, Workshop 3, May 2005
Copyright© 2005 MSC.Software Corporation WS3-23
10. Generate an Input File for Part C (Cont.)
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 ---
$ Note these are unit design variables
$ You will have to scale final dvs by coeff.
$
DESVAR,10,AREAHB,1.0,0.05,5000.0
DESVAR,20,AREAC1,1.0,0.05,5000.0
DESVAR,30,AREAC2,1.0,0.05,5000.0
DESVAR,40,IHB,1.0,0.1,1.0E9
DESVAR,50,IC1,1.0,0.1,1.0E9
DESVAR,60,IC2,1.0,0.1,1.0E9
$
$ --- Design Variable to Properties Relation ---
DVPREL1,100,PBAR,1,4,5.0,,0.0,,+DVPA
+DVPA,10,100.0
DVPREL1,200,PBAR,2,4,5.0,,0.0,,+DVPB
+DVPB,20,50.0
DVPREL1,300,PBAR,3,4,5.0,,0.0,,+DVPC
+DVPC,30,150.0
DVPREL1,400,PBAR,1,5,1.0,,0.0,,+DVPD
+DVPD,40,10.0E6
DVPREL1,500,PBAR,2,5,1.0,,0.0,,+DVPE
+DVPE,50,1.0E6
DVPREL1,600,PBAR,3,5,1.0,,0.0,,+DVPF
+DVPF,60,3.0E6
$
***************************************************************
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)
Area
Moment Of Inertia
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.
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”.
ΔR RPERT − RBASE
=
ΔX 1.1E 3 − 1.0 E 3
e. Compare with the computed sensitivity.
****************************************************************************
* *
* D E S I G N S E N S I T I V I T Y M A T R I X O U T P U T *
* *
* *
* R E S P O N S E S E N S I T I V I T Y C O E F F I C I E N T S *
* *
****************************************************************************
--------------------------------------------------------------------------------------------------------------------------------
DRESP1 ID= 10 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.8718E-01 4.0000E+00 1 K1 -2.0951E-04 2 K2 -7.1772E-06 3 K3 -1.2402E-04
4 GE1 -4.8650E-02 5 GE2 9.2470E-05 6 GE3 -7.5393E-02
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
--------------------------------------------------------------------------------------------------------------------------------
DRESP1 ID= 10 RESPONSE TYPE= FRDISP GRID ID= 2 COMP NO= 1 SEID= 0
SUBCASE RESP VALUE FREQ/TIME DESIGN VARIABLE COEFFICIENT DESIGN VARIABLE COEFFICIENT DESIGN VARIABLE COEFFICIENT
--------------------------------------------------------------------------------------------------------------------------------
2 1.6842E-01 4.0000E+00 1 K1 -1.3863E-04 2 K2 3.5824E-06 3 K3 -1.5645E-04
4 GE1 -3.7918E-02 5 GE2 -1.2604E-04 6 GE3 -7.9682E-02
2 1.6226E-01 6.0000E+00 1 K1 1.2268E-04 2 K2 -6.5162E-06 3 K3 1.0405E-04
4 GE1 -2.9513E-02 5 GE2 -5.7992E-03 6 GE3 -6.2802E-02
X Design Variables = B, H
X Constraints:
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
A = b* h I=
12
Use DVPREL2 to relate A, I, b and h by writing the equations given.
X Part B
Redo the previous exercise defining the BAR property using the PBARL entry. Specify
the constraints using the frequencies shown below.
*******************************************
* *
* 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 3 |
-----------------------------------------
*** MODES FOR THIS SUBCASE IN THE CURRENT DESIGN CYCLE HAVE SUCCESSFULLY BEEN TRACKED ***
--------------------------------------------------------------------------------------------------------------------------
| INITIAL ORDER | 1 | 2 |
--------------------------------------------------------------------------------------------------------------------------
| TRACKED AS | 2 | 1 |
--------------------------------------------------------------------------------------------------------------------------
Objective Function
Dimensions
$ soln3b.dat
ID MSC, D200X10
TIME 5
SOL 200
CEND
TITLE = DISPLACEMENT MATCHING EXERCISE
SUBTITLE = PORTAL FRAME SUBJECT TO HORIZONTAL LOAD PARTIAL SCALING
ECHO = SORT
SPC = 10
SET 10 = 1,5
DISP = 10
ANALYSIS = STATICS
DESOBJ = 700
SUBCASE 1
LABEL = LOAD CONDITION 1
LOAD = 1
BEGIN BULK
PARAM,POST,-1
PARAM AUTOSPC YES
PARAM GRDPNT 0
$ Analysis Model Description
MAT1 1 69000.0 0.30000 2.798-6
SPC1 10 123456 9 13
FORCE 1 5 10000.0 1.00000 0.00000 0.00000
$
GRID 1 500.0 1000.0 0.00000 345
GRID 2 250.0 1000.0 0.00000 345
GRID 3 0.000 1000.0 0.00000 345
GRID 4 -250.0 1000.0 0.00000 345
GRID 5 -500.0 1000.0 0.00000 345
GRID 6 -500.0 750.00 0.00000 345
GRID 7 -500.0 500.00 0.00000 345
GRID 8 -500.0 250.00 0.00000 345
GRID 9 -500.0 0.0000 0.00000
GRID 10 500.0 750.00 0.00000 345
GRID 11 500.0 500.00 0.00000 345
GRID 12 500.0 250.00 0.00000 345
GRID 13 500.00 0.00000 0.00000
(Cont.)
NAS 107, Workshop 5, May 2005
Copyright© 2005 MSC.Software Corporation WS5-14
6. Generate an Input File for MSC.NASTRAN Users (Cont.)
(Cont.)
NAS 107, Workshop 5, May 2005
Copyright© 2005 MSC.Software Corporation WS5-15
6. Generate an Input File for MSC.NASTRAN Users (Cont.)
$
$ --- Design Responses ---
DRESP1,100,HD1,DISP,,10,1,,1
DRESP1,200,VD1,DISP,,11,2,,1
DRESP1,300,RD1,DISP,,12,6,,1
DRESP1,400,HD5,DISP,,20,1,,5
DRESP1,500,VD5,DISP,,21,2,,5
DRESP1,600,RD5,DISP,,22,6,,5
$
$ --- Equation to describe Objective function
$
DRESP2,700,ERROR,10,,,,,,+DRESP2A
+DRESP2A,DTABLE,T1,T2,T3,T4,T5,T6,,+DRESP2B
+DRESP2B,DRESP1,100,200,300,400,500,600
$
$
$ These equations scale the objective to get it away from zero.
$234567812345678
DEQATN 10 OBJ(T1,T2,T3,T4,T5,T6,U1,U2,U3,U4,U5,U6) +
+ =( (1.-U1/T1)**2 + (1.-U2/T2)**2 + (1.-U3/T3)**2 + +
+ (1.-U4/T4)**2 + (1.-U5/T5)**2 + (1.-U6/T6)**2 )/1.e-3
$ 2 3 4 5 6 7 8 9 10
DTABLE* T1 9.1449 E-01 T2 -9.56418E-02 +
* T3 -9.7538 E-04 T4 1.068138 +
* T5 9.56418E-02 T6 -1.0012 E-03 +
*
$
$ --- 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
Objective Function
Dimensions
Constraints
X Design Variables: use the Analytical Boundary Shape method to define shape basis
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.
CQUAD4, 1,101, 1, 2, 6, 5
bndgrid 123456 34 thru 40
CQUAD4, 2,101, 2, 3, 7, 6
bndgrid 123456 4 8 12 19 26 33
CQUAD4, 3,101, 3, 4, 8, 7
bndgrid 345 1 thru 40
CQUAD4, 4,101, 5, 6, 10, 9
bndgrid 2 2 3
CQUAD4, 5,101, 6, 7, 11, 10
bndgrid 1 20 27
CQUAD4, 6,101, 7, 8, 12, 11
bndgrid 12 1 5 9
CQUAD4, 7,101, 9, 10, 17, 16
bndgrid 12 13 thru 16
CQUAD4, 8,101, 10, 11, 18, 17
$
CQUAD4, 9,101, 11, 12, 19, 18
desvar 1 b1 3. -1.e6 1.e6
CQUAD4, 10,101, 13, 14, 21, 20
desvar 2 b2 3. -1.e6 1.e6
CQUAD4, 11,101, 14, 15, 22, 21
desvar 3 b3 3. -1.e6 1.e6
CQUAD4, 12,101, 15, 16, 23, 22
desvar 4 b4 3. -1.e6 1.e6
CQUAD4, 13,101, 20, 21, 28, 27
desvar 5 b5 3. -1.e6 1.e6
CQUAD4, 14,101, 21, 22, 29, 28
desvar 6 b6 3. -1.e6 1.e6
CQUAD4, 15,101, 22, 23, 30, 29
desvar 7 b7 3. -1.e6 1.e6
CQUAD4, 16,101, 27, 28, 35, 34
$
CQUAD4, 17,101, 28, 29, 36, 35
dvbshap 1 1 1 .01
CQUAD4, 18,101, 29, 30, 37, 36
dvbshap 2 1 2 .01
CQUAD4, 19,101, 16, 17, 24, 23
dvbshap 3 1 3 .01
CQUAD4, 20,101, 17, 18, 25, 24
dvbshap 4 1 4 .01
CQUAD4, 21,101, 18, 19, 26, 25
dvbshap 5 1 5 .01
CQUAD4, 22,101, 23, 24, 31, 30
dvbshap 6 1 6 .01
CQUAD4, 23,101, 24, 25, 32, 31
dvbshap 7 1 7 .01
CQUAD4, 24,101, 25, 26, 33, 32
$
CQUAD4, 25,101, 30, 31, 38, 37
dresp1 5 volume volume
CQUAD4, 26,101, 31, 32, 39, 38
dresp1 2 von-mis stress pshell 9
CQUAD4, 27,101, 32, 33, 40, 39
101
FORCE 1 34 0 1250. -1.
DCONSTR 10 2 -3.100e43.100e4
FORCE 1 35 0 2500. -1.
doptprm DESMAX 25 APRCOD 1
FORCE 1 36 0 2500. -1.
param,nasprt,1
FORCE 1 37 0 2500. -1.
$
FORCE 1 38 0 2500. -1.
BEGIN BULK AUXMODEL = 1
FORCE 1 39 0 2500.00 -1.
$
FORCE 1 40 0 1250. -1.
CBAR 1 1 1 2 1. 1.
PSHELL,101,102,.44
CBAR 2 1 2 3 1. 1.
MAT1,102,2.+7,,.3,0.731-3
CBAR 3 1 3 4 1. 1.
SPC1,25,345,1,THRU,40
$
SPC1,25,126,1,THRU,4
CBAR 11 1 4 8 1. 1.
spc1,25,6,6,7,10,11
CBAR 12 1 8 12 1. 1.
spc1,25,6,17,18
CBAR 13 1 12 19 1. 1.
spc1,25,6,21,thru,25
CBAR 14 1 19 26 1. 1.
spc1,25,6,28,thru,32
CBAR 15 1 26 33 1. 1.
SPC1,25,1,13,20,27,34
CBAR 16 1 33 40 1. 1.
$
$ design model
$
$ $
CBAR 21 1 34 35 1. 1. spcd,100,13,2,1.
CBAR 22 1 35 36 1. 1. spcd,101,14,1,.259,14,2,.9659
CBAR 23 1 36 37 1. 1. spcd,102,15,1,.5,15,2,.866
CBAR 24 1 37 38 1. 1. spcd,103,16,1,.707,16,2,.707
CBAR 25 1 38 39 1. 1. spcd,104,9,1,.866,9,2,.5
CBAR 26 1 39 40 1. 1. spcd,105,5,1,.9659,5,2,.259
$ spcd,106,1,1,1.
CBAR 31 1 1 5 1. 1. $
CBAR 32 1 5 9 1. 1. ENDDATA
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
$
spcadd,100,200,250
spcadd,101,201,250
spcadd,102,202,250
spcadd,103,203,250
spcadd,104,204,250
spcadd,105,205,250
spcadd,106,206,250
$
SPC1,250,345,1,THRU,40
SPC1,250,123456,34,THRU,40
SPC1,250,123456,4,8,12,19,26,33
SPC1,250,1,13,20,27
SPC1,250,2,1,THRU,4
$
spc,200,13,2
spc,201,14,12
spc,202,15,12
spc,203,16,12
spc,204,9,12
spc,205,5,12
spc,206,1,1
***************************************************************
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
***************************************************************
Objective Function
Design Variables
X Constraints:
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
Design Variables
Objective Function
− π 2E
σ ≥σ Eul
=
( L' / ρ )2
cr
⎡ σ co ( L' / ρ )2 ⎤
σ ≥ σ crJohn = −σ co ⎢1.0 − ⎥
⎣ 4 π 2
E ⎦
ρ=
r ( ρ = radius of gyration)
2
X Buckling analysis
X Constraints:
σ ≥ σ crEUL ,
σ
* σ ≥ σ crJohn when −σ* > co
2
Buckling Subcase: λ ≥ 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, May 2005
Copyright© 2005 MSC.Software Corporation WS8-5
1. Generate an Input File for MSC.NASTRAN Users
Generate an input file using the data from pages 8-3 and 8-5. Use the following input file as a starting
point.
ID MSC, wkshp8a $ ELEMENT AND MATERIAL DATA
TIME 130 $ cbar 1 10 1 2
SOL 200 $ OPTIMIZATION 10
CEND cbar 2 10 2 3
TITLE = buckling test case 10
SUBTITLE = johnson/euler buckling case cbar 3 10 3 4
ECHO = SORT 10
spc = 100
cbar 4 10 4 5
DESOBJ = 20
10
SUBCASE 1
cbar 5 10 5 6
DESSUB = 1
LABEL = LOAD CONDITION 1
10
LOAD = 300
MAT1 1 3.0e7
ANALYSIS = STATICS 0.33 0.1
DISP = ALL $ PROPERTY DATA
STRESS = ALL PbarL 10 1 mscbml0 rod
SUBCASE 2 1.0
DESSUB = 2 $ BOUNDARY CONDITION DATA
ANALYSIS = BUCK spc1 100 1 1
METHOD = 1
spc1 100 2 1 6
DISP = ALL
LABEL = BUCKLING FACTORS $ EXTERNAL LOADS DATA
$ FORCE 300 6
BEGIN BULK -2.0e5 1.0
param,post,-1 $ BUCKLING ANALYSIS DATA
$---------------------------------------------------------------------- EIGRL 1 .05
$ ANALYSIS MODEL 4
$----------------------------------------------------------------------
$
$
$ GRID DATA $-----------------------------------------------------------
$ 2 3 4 5 6 7 8 9 10 ---------
GRDSET 345 $ DESIGN MODEL
grid 1 0.0 0.0 0.0 $-----------------------------------------------------------
grid 2 8.0 0.0 ---------$
0.0 $ Beginning of Design Modeling Exercise for the Bulk Data
grid 3 16.0 0.0
0.0
Section
grid 4 24.0 0.0 $
0.0 .
grid 5 32.0 0.0 .
0.0 .
grid 6 40.0 0.0 $
0.0
ENDDATA
grid 10 0.0 0.0
100.0 123456
$
---------------------------------------------------------------------------------------------------------
INTERNAL INTERNAL
INTERNAL DCONSTR RESPONSE RESPONSE L/U REGION SUBCASE
ID ID ID TYPE FLAG ID ID VALUE
---------------------------------------------------------------------------------------------------------
1 1 2 STRESS LOWER 1 1 -2.0423E-01
2 1 3 STRESS LOWER 1 1 -2.0423E-01
3 1 4 STRESS LOWER 1 1 -2.0423E-01
4 1 5 STRESS LOWER 1 1 -2.0423E-01
5 1 6 STRESS LOWER 1 1 -2.0423E-01
6 1 1 EQUA UPPER 31 1 3.7607E-01
7 1 2 EQUA UPPER 31 1 3.7607E-01
8 1 3 EQUA UPPER 31 1 3.7607E-01
9 1 4 EQUA UPPER 31 1 3.7607E-01
10 1 5 EQUA UPPER 31 1 3.7607E-01
11 1 6 EQUA UPPER 32 1 4.0176E-01**
12 1 7 EQUA UPPER 32 1 4.0176E-01**
13 1 8 EQUA UPPER 32 1 4.0176E-01**
14 1 9 EQUA UPPER 32 1 4.0176E-01**
15 1 10 EQUA UPPER 32 1 4.0176E-01**
16 2 12 LAMA LOWER 0 2 2.7638E-01
----------------------------------------------------------------------------------------------------------
INTERNAL DRESP2 RESPONSE EQUATION LOWER UPPER
ID ID LABEL ID BOUND VALUE BOUND
----------------------------------------------------------------------------------------------------------
1 31 EUL 31 N/A 1.3761E+00 1.0000E+00
2 31 EUL 31 N/A 1.3761E+00 1.0000E+00
3 31 EUL 31 N/A 1.3761E+00 1.0000E+00
4 31 EUL 31 N/A 1.3761E+00 1.0000E+00
5 31 EUL 31 N/A 1.3761E+00 1.0000E+00
6 32 JOHNSON 32 N/A 1.4018E+00 1.0000E+00
7 32 JOHNSON 32 N/A 1.4018E+00 1.0000E+00
8 32 JOHNSON 32 N/A 1.4018E+00 1.0000E+00
9 32 JOHNSON 32 N/A 1.4018E+00 1.0000E+00
10 32 JOHNSON 32 N/A 1.4018E+00 1.0000E+00
It is seen that the maximum constraints are associated with the Johnson condition.
$
$ d200rd15.dat - random input at wheels - CBAR 5 11 1 5 0. 1. 0.
enforced motion CBAR 6 11 5 2 0. 1. 0.
$ direct method PBAR 11 12 1.e2 1.e3 1.e3
$ stress constraints at discrete 100. 0. -100. 0.
freq MAT1 12 3.E+7 7.8e-4
$ minimize acce at grid pt 5 $
$ cross spectrum $ CONSTRAIN TO A PLANAR PROBLEM
$ using new enforced motion $
$ SPC1 100 1345 1 2 5
ID MSC, d200rd15.dat $ V2001 JML 8-Sep-2000 SPC1 100 13456 3 4
SOL 200 $ jml spc1,100,2,3,4
CEND $
TITLE = SIMPLE CAR WITH RANDOM INPUT CONM2 10 1 2.5
SPC = 100 CONM2 15 2 2.5
FREQUENCY = 130 CONM2 20 5 5.0
stress(phase) = all CONM2 25 3 2.5
disp(phase) = all CONM2 26 4 2.5
desobj= 101 $
analysis = dfreq CBUSH 100 1000 1 3 0
dessub = 800 CBUSH 200 1000 2 4 0
$ PBUSH 1000 K 200.
$ this random case control callout is needed only B 2.
$ for the xyplot request when using optimization $
$ RLOAD2 111 222 444 disp
random = 1000
SUBCASE 1 spcd,222,3,2,1.
DLOAD = 111 TABLED1 444
SUBCASE 2 0. 1. 100. 1. ENDT
DLOAD = 112 $
$ RLOAD2 112 223 444 disp
output (xyplot) spcd,223,4,2,1.
xtitle = frequency (hz) $
ytitle = disp psd at grid pt 5 FREQ2 130 0.1 2. 20
xypunch disp psdf /5(t2) $
$ $ DEFINE THE INPUT PSD
BEGIN BULK $
$ RANDPS 1000 1 1 1. 0. 145
$ car body RANDPS 1000 2 2 1. 0. 145
$ RANDPS 1000 1 2 1. 0. 146
GRID 1 0. 0. 0. RANDPS 1000 1 2 0. 1. 147
GRID 2 120. 0. 0. TABRND1 145
GRID 5 60. 0. 0. .1 .1 5. 1. 10. .05 ENDT
$
$ wheels
$
GRID 3 0. -10. 0.
GRID 4 120. -10. 0.
$
$
TABRND1 146
0.1000 0.0990 0.1096 0.1005 0.1202 0.1022 0.1318 0.1040 $
0.1445 0.1059 0.1585 0.1079 0.1738 0.1101 0.1905 0.1124 $ design model
0.2089 0.1147 0.2291 0.1172 0.2512 0.1197 0.2754 0.1221 $
0.3020 0.1246 0.3311 0.1269 0.3631 0.1289 0.3981 0.1305 desvar,1,k2,1.,0.5,5.
0.4365 0.1314 0.4786 0.1315 0.5248 0.1304 0.5754 0.1277 desvar,2,b2,1.,0.5,5.
0.6310 0.1228 0.6918 0.1151 0.7586 0.1038 0.8318 0.0879 $
0.9120 0.0665 1.0000 0.0382 1.0965 0.0020 1.2023 -0.0434 dvprel1,101,pbush,1000,k2,100.
1.3183 -0.0986 1.4454 -0.1636 1.5849 -0.2372 1.7378 -0.3159 ,1,200.
1.9055 -0.3934 2.0893 -0.4593 2.2909 -0.4984 2.5119 -0.4910 dvprel1,201,pbush,1000,b2,1.
2.7542 -0.4149 3.0200 -0.2508 3.3113 0.0072 3.6308 0.3364 ,2,2.0
3.9811 0.6685 4.3652 0.8819 4.7863 0.8223 5.2481 0.3435 $
5.7544 0.2965 6.3096 0.6842 6.9183 0.5743 7.5858 0.0891 dresp1,101,ming5t2,rmsdisp,,,2,1000,5
8.3176 0.2820 9.1201 0.1964 10.0000 0.0063 ENDT $
$ dconstr,800,801,-1.e20,4500.
TABRND1 147 dconstr,800,802,-1.e20,4500.
0.1000 0.0142 0.1096 0.0159 0.1202 0.0177 0.1318 0.0198 dresp1,801,e5ptc,frstre,pbar,,12,,11
0.1445 0.0221 0.1585 0.0248 0.1738 0.0279 0.1905 0.0313 dresp1,802,e5pte,frstre,pbar,,14,,11
0.2089 0.0352 0.2291 0.0397 0.2512 0.0448 0.2754 0.0506 $
0.3020 0.0572 0.3311 0.0648 0.3631 0.0734 0.3981 0.0832 doptprm,desmax,20,p1,1,p2,15,iprint,7
0.4365 0.0944 0.4786 0.1070 0.5248 0.1212 0.5754 0.1371 ,method,3,delp,1.0
0.6310 0.1547 0.6918 0.1741 0.7586 0.1951 0.8318 0.2173 $
0.9120 0.2401 1.0000 0.2625 1.0965 0.2830 1.2023 0.2993 ENDDATA
1.3183 0.3084 1.4454 0.3061 1.5849 0.2875 1.7378 0.2467
1.9055 0.1775 2.0893 0.0749 2.2909 -0.0631 2.5119 -0.2318
2.7542 -0.4160 3.0200 -0.5848 3.3113 -0.6898 3.6308 -0.6687
3.9811 -0.4624 4.3652 -0.0505 4.7863 0.4968 5.2481 0.8888
5.7544 0.8037 6.3096 0.3101 6.9183 -0.2722 7.5858 -0.5008
8.3176 -0.2390 9.1201 0.0928 10.0000 0.0496 ENDT
$
***************************************************************
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
***************************************************************
Fig. 9.1 – Objective Function History Fig. 9.2 – Design Variable History
Subcase 1 Subcase 2
X: -16,000 lbs X: 16,000 lbs
Y: -12,000 lbs Y: -12,000 lbs
X Design Variables: Cross sectional areas A1, A2 and A3. A1 and A3 are
linked as A1=A3.
X Constraints:
Stress allowable: 20ksi tension and 15 ksi compression
Displacement at grid point 4:
|X direction| <= 0.2 in
|Y direction| <= 0.2 in
X Part B:
Perform discrete variable process with the round-up option after each
design cycle
***************************************************************
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
---------------------------------------------------------------------------------------------------------------
X Design Variables:
Define the SSQ response using the new DEQATN intrinsic function
X Part B:
X Part C:
TIME 5
SOL 200 $
CEND
TITLE=TWO MASS DIRECT FREQUENCY SENSITIVITY D108G7v $
DISPL(PHASE) = ALL DVPREL1 1 PELAS 20 3 1.0E3
SUBCASE 2 1 1.0
DESOBJ = 100 DVPREL1 2 PELAS 21 3 1.5E3
ANALYSIS = DFREQ 2 1.0
FREQ = 100 DVPREL1 3 PELAS 22 3 2.0E3
DLOAD = 200 3 1.0
dsaprt(end=sens) = all DVPREL1 4 PELAS 20 4 .05
BEGIN BULK 4 1.0
$ DVPREL1 5 PELAS 21 4 .05
CELAS1 20 20 1 1 5 1.0
CELAS1 21 21 1 1 2 1 DVPREL1 6 PELAS 22 4 .05
CELAS1 22 22 2 1 6 1.0
CONM2 10 1 1. FREQ 100 4.0 4.5 5.0 5.5 6.0
CONM2 11 2 2. GRID 1 1. 0. 0.
DAREA 201 1 1 100. 2 1 100. 23456
DESVAR 1 K1 1.0E3 1.0E2 1.0E4 GRID 2 2. 0. 0.
DESVAR 2 K2 1.5E3 1.5E2 1.5E4 23456
DESVAR 3 K3 2.0E3 2.0E2 2.0E4 MAT1 200 1.0E7 0.3 0.1
DESVAR 4 GE1 .1 .05 .15 PELAS 20 1.0E3
DESVAR 5 GE2 .1 .05 .15 PELAS 21 1.5E3
DESVAR 6 GE3 .1 .05 .15 PELAS 22 2.0E3
$ 23 4 5 6 7 RLOAD1 200 201 210
8 9 0 TABLED1 210
1. 1. 10. 1. ENDT
DRESP1 11 U1 FRDISP 1 4.0 1
ENDDATA
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)
$
--------------------------------------------------------------------------------------------------------------------------------
DRESP1 ID= 11 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.8718E-01 4.0000E+00 1 K1 -2.0951E-04 2 K2 -7.1772E-06 3 K3 -1.2402E-04
4 GE1 -4.8650E-02 5 GE2 9.2470E-05 6 GE3 -7.5393E-02
--------------------------------------------------------------------------------------------------------------------------------
DRESP1 ID= 12 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 3.1026E-01 4.5000E+00 1 K1 -5.1749E-04 2 K2 -7.8940E-06 3 K3 -3.6389E-04
4 GE1 -2.1688E-01 5 GE2 2.2538E-03 6 GE3 -3.9102E-01
--------------------------------------------------------------------------------------------------------------------------------
DRESP1 ID= 13 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 6.6514E-01 5.0000E+00 1 K1 -6.9685E-04 2 K2 -3.1737E-06 3 K3 -3.3339E-04
4 GE1 -2.2073E+00 5 GE2 1.3004E-02 6 GE3 -4.3026E+00
--------------------------------------------------------------------------------------------------------------------------------
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
1 TWO MASS DIRECT FREQUENCY SENSITIVITY D108G7V NOVEMBER 8, 2002 MSC.NASTRAN 11/ 1/02 PAGE 19
--------------------------------------------------------------------------------------------------------------------------------
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
$
$ Compute FDSSQ = (R1**2+R2**2+R3**2+R4**2+R5**2)
$ Method a: use new DEQATN intrinsic function: SSQ(X1,...,Xn)
$
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
$
DRESP2 100 FDSSQ 200
DRESP1 11 12 13 14
15
DEQATN 200 FDSSQ(R1,R2,R3,R4,R5)=SSQ(R1,R2,R3,R4,R5)
$
$
$ 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 ...
$
$ 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 1
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.
S = 2 * ( W * H + L * H + 2.0 * W * L )
X Constraints:
Volume: V = H * W * L ≥ 2.0
SUBROUTINE R3SGRT(GRPID,TYPNAM,ERROR)
C 09/18/00;14:24:09 cdp 2001t1 na001130
C Update dr3srv per SHZ
C ----------------------------------------------------------------------
C PURPOSE: VERIFY THE EXTERNAL RESPONSE TYPE
C Arguments
C GRPID input integer - Group ID
C TYPNAM input character*8 - Name of external response type
C ERROR input/output integer -error code for the call.
C
C Method
C Match the user input: typnam with the list of available
C external response types. If no match is found, set error code.
C Called by
C R3CGRT
C NOTE:
C The writer of this routine is responsible to specify
C NTYPES and R3TYPE.
C ----------------------------------------------------------------------
C VARIABLES PASSED IN
INTEGER GRPID, ERROR
CHARACTER*8 TYPNAM
C LOCAL VARIABLES
INTEGER BADTYP
C
C declaration for character array R3TYPE and initialize character
C array R3TYPE with corresponding R3TYPE from DRESP3s
…
DATA BADTYP/7554/
ERROR = 0
DO 100 ITYPE = 1, NTYPES
IF (TYPNAM .EQ. R3TYPE(ITYPE)) THEN
GOTO 200
END IF
100 CONTINUE
ERROR = BADTYP
200 CONTINUE
RETURN
END
ERROR = 0
DO 100 ITYPE = 1, NTYPES
IF (TYPNAM .EQ. R3TYPE(ITYPE)) THEN
GOTO 200
END IF
100 CONTINUE
ERROR = BADTYP
200 CONTINUE
C
RETURN
END
RETURN
END
C
C VARIABLES PASSED IN
C
CHARACTER*8 TYPNAM, ARGCHR(NWRDA8)
INTEGER GRPID, NITEMS, NSIZE, ARGLIS(NITEMS), ERROR
DOUBLE PRECISION ARGVAL(NSIZE), DR3VAL
C
C LOCAL VARIABLES
C
INTEGER BADTYP
DOUBLE PRECISION W,L,H
C
DATA BADTYP /7554/
C
C THE USER-SUPPLIED EQUATION TO DEFINE THE EXTERNAL RESPONSE
C DEQATN 1 F(W,L,H)=W*L*H
C DEQATN 2 F(W,L,H)=2.0*(W*H+L*H+2.0*W*L)
C
ERROR = 0
C
C set up parameters for various argument items
C
W = argval(1)
L = argval(2)
H = argval(3)
IF (TYPNAM .EQ. 'VOLUME') THEN
VOL = W*L*H
dr3val = VOL
ELSE IF (TYPNAM .EQ. 'SURFACE') THEN
SURF = 2.D0*(W*H+L*H+2.D0*W*L)
DR3VAL = SURF
ELSE
ERROR = BADTYP
END IF
RETURN
END
Q 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
Q Submit the Nastran job by adding a new keyword, gmconn where gmconn refers to the
evaluator file name.
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
***************************************************************
t1 t2 t3
• In a separate run, replace F2<100 with F2<190. Run the new job and
compare the results.
where
f = calculated frequency
flb = lower bound frequency
fub = upper bound frequency
Q In SOL200, the above constraints can be defined with the following steps:
Q First, use DRESP1 to identify three natural frequencies (f)
Q Next, use DABLE to specify lower and upper frequency bounds (flb, fub)
Q Then, use DRESP2 and DEQATN to define three R2.
Q Finally, use DCONSTR to specify lower limit, R2L to each R2.
$
$ Fill in: Define first three natural frequency responses
$
DRESP1...
...
$
$ Fill in: Specify table constants for three sets of lower and upper frequency limits.
$
DTABLE...
$
$ Fill in: Define synthetic response to avoid the frequency range.
$
DRESP2...
...
$
$ Fill in: Apply the lower bound for three synthetic responses
$
$ Lower bound = ((fub-flb)/2)**2
$ For F1: ((34-30)/2)) **2 = 4
$ For F2: ((200-100)/2)**2 = 2500
$ For F3: ((325-275)/2)**2 = 625
$
DCONSTR...
...
$
$ set DOPTPRM parameters: desmax=20, p1=1,p2=15
$
doptprm p1 1 p2 15 DESMAX 20
ENDDATA
ENDDATA
0 SUBCASE 10301 $ NO
DESIGN VARIABLE HISTORY
----------------------------------------------------------------------------------------------------------------------------------
INTERNAL | EXTERNAL | |
DV. ID. | DV. ID. | LABEL | INITIAL : 1 : 2 : 3 : 4 : 5 :
----------------------------------------------------------------------------------------------------------------------------------
1 | 1 | T1 | 1.0000E-01 : 9.9828E-02 : 1.0161E-01 : 1.0020E-01 : 9.9108E-02 : 9.8211E-02 :
2 | 2 | T2 | 1.0000E-01 : 1.0345E-01 : 1.0949E-01 : 1.0723E-01 : 1.0973E-01 : 1.0945E-01 :
3 | 3 | T3 | 1.0000E-01 : 8.0000E-02 : 6.3924E-02 : 7.0305E-02 : 6.8505E-02 : 6.9702E-02 :
*** USER INFORMATION MESSAGE 6464 (DOM12E)
RUN TERMINATED DUE TO HARD CONVERGENCE TO AN OPTIMUM AT CYCLE NUMBER = 5.
Initial Frequencies
F1=31.8, F2=197.1, F3=313.3
Final Frequencies
F1=35.8, F2=199.9, F3=353.0
Fig. 13.1 – Objective Function History Fig. 13.2 – Design Variable History
where W is the weight and SAJI and SBJI are maximum stresses at ends A and B
of Bar elements. J is the subcase index and I is the element index.
• Design Variables (X1,X2) relates analysis model properties by
t plate = 1.0 X1
that = 0.1X 2
w3 = 1.5 + 0.5 X1
X10=0.15, X20=1.0
• Constraints:
Strength: von Mises stress <=25,000 at the centroid of plate elements
Displacement: |Vertical displacement at grid point 10302 for Subcase 1|<=0.1 in
|Vertical displacement at grid point 10203 for Subcase 2|<=0.03 in
NAS 107, Workshop 14, May 2005
Copyright© 2005 MSC.Software Corporation WS14-5
1. Generating an Input File for MSC.Nastran Users
Q Generate an input file using the data from pages 14-4 through 14-5. Use the following input file as a
starting point:
BEGIN BULK
ID MSC DSOUG4 $ v2004 ehj 25-Jun-2003 param post -1
TIME 10 PARAM NASPRT 1
SOL 200 $ OPTIMIZATION $
CEND $------------------------------------------------------------------------
$ $ ANALYSIS MODEL:
TITLE = STATIC ANALYSIS OF A STIFFENED PLATE $------------------------------------------------------------------------
DSOUG4 $
ECHO = BOTH GRID 10000 0.0 0.0 0.0
DISP = ALL …
STRESS = ALL GRID 10404 10.0 10.0 0.0
SPC = 1 $
ANALYSIS = STATICS CQUAD4 1 1 10000 10001 10101 10100
DSAPRT(START=1,END=LAST)=ALL …
$ CQUAD4 16 1 10303 10304 10404 10403
$ use DESOBJ command to reference the synthetic response $
$ CBAR 31 3 10200 10201 0.0 1.0 0.0
DESOBJ(MIN) = 1.575 1.575
$ CBAR 32 3 10201 10202 0.0 1.0 0.0
SUBCASE 1 1.575 1.575
$ CBAR 33 3 10202 10203 0.0 1.0 0.0
$ Identify stress DRESP1 responses for 1st subcase using 1.575 1.575
SET and DRSPAN CBAR 34 3 10203 10204 0.0 1.0 0.0
set 21 = 21, 22, 23, 24, 31, 32, 33, 34 1.575 1.575
DRSPAN = 21 $
LABEL = LOAD CONDITION 1 PSHELL 1 1 0.15 1
LOAD = 1 PSHELL 2 1 0.2 1
$ PBARL 3 1 hat
$ Set up a design case for 1st subcase 3.0 0.1 2.0 0.9
$ $
DESSUB = 100 $ CONSTRAINT DEFININITION MAT1 1 1.0E+7 0.33 0.283
SUBCASE 2 $
$ FORCE 1 10004 2000.0 1.0 0.0 0.0
$ Identify stress DRESP1 responses for 2nd subcase using …
SET and DRSPAN FORCE 2 10203 10000.0 0.0 0.0 1.0
set 22 = 25, 26, 27, 28, 35, 36, 37, 38 PLOAD2 1 50. 1 THRU 16
DRSPAN = 22 $
LABEL = LOAD CONDITION 2 SPC1 1 1236 10000
LOAD = 2 …
$ SPC1 1 6 10301 10302 10303 10304
$ Set up a design case for 2nd subcase $
$ PARAM GRDPNT 1
DESSUB = 200 $ CONSTRAINT DEFININITION PARAM WTMASS 0.00259
PARAM AUTOSPC YES
$
$ Identify von Mises stress/displacement responses
$
DRESP1 3
DRESP1 6
DRESP1 13
DRESP1 14
$
$...Place bounds on the responses:
$
$DCONSTR DCID RID LALLOW UALLOW
DCONSTR
...
$
$ Use DCONADD for design cases 1 & 2
$DCONADD DCID DC1 DC2 ...
$ summed constraint set for subcase 1
DCONADD
$ summed constraint set for subcase 2
DCONADD
$
$...Optional override of optimization parameters:
$
DOPTPRM IPRINT 7 DESMAX 20 DELP 0.5 P1 1 +
+ P2 15
$ (DELP=0.5 allows larger moves thus overcoming constraint
$ violations quicker)
$
ENDDATA
BEGIN BULK
ID MSC DSOUG4 $ v2004 ehj 25-Jun-2003 param post -1
TIME 10 PARAM NASPRT 1
SOL 200 $ OPTIMIZATION $
CEND $------------------------------------------------------------------------
$ $ ANALYSIS MODEL:
TITLE = STATIC ANALYSIS OF A STIFFENED PLATE $------------------------------------------------------------------------
DSOUG4 $
ECHO = BOTH GRID 10000 0.0 0.0 0.0
DISP = ALL …
STRESS = ALL GRID 10404 10.0 10.0 0.0
SPC = 1 $
ANALYSIS = STATICS CQUAD4 1 1 10000 10001 10101 10100
DSAPRT(START=1,END=LAST)=ALL …
$ CQUAD4 16 1 10303 10304 10404 10403
$ use DESOBJ command to reference the synthetic response $
$ CBAR 31 3 10200 10201 0.0 1.0 0.0
DESOBJ(MIN) = 101 1.575 1.575
$ CBAR 32 3 10201 10202 0.0 1.0 0.0
SUBCASE 1 1.575 1.575
$ CBAR 33 3 10202 10203 0.0 1.0 0.0
$ Identify stress DRESP1 responses for 1st subcase using 1.575 1.575
SET and DRSPAN CBAR 34 3 10203 10204 0.0 1.0 0.0
$ 1.575 1.575
set 21 = 21, 22, 23, 24, 31, 32, 33, 34 $
DRSPAN = 21 PSHELL 1 1 0.15 1
LABEL = LOAD CONDITION 1 PSHELL 2 1 0.2 1
LOAD = 1 PBARL 3 1 hat
$ 3.0 0.1 2.0 0.9
$ Set up a design case for 1st subcase $
$ MAT1 1 1.0E+7 0.33 0.283
DESSUB = 100 $ CONSTRAINT DEFININITION $
SUBCASE 2 FORCE 1 10004 2000.0 1.0 0.0 0.0
$ …
$ Identify stress DRESP1 responses for 2nd subcase using FORCE 2 10203 10000.0 0.0 0.0 1.0
SET and DRSPAN PLOAD2 1 50. 1 THRU 16
$ $
set 22 = 25, 26, 27, 28, 35, 36, 37, 38 SPC1 1 1236 10000
DRSPAN = 22 …
LABEL = LOAD CONDITION 2 SPC1 1 6 10301 10302 10303 10304
LOAD = 2 $
$ PARAM GRDPNT 1
$ Set up a design case for 2nd subcase PARAM WTMASS 0.00259
$ PARAM AUTOSPC YES
DESSUB = 200 $ CONSTRAINT DEFININITION
$
$ Identify von Mises stress/displacement responses
$
DRESP1 3 S13 STRESS PSHELL 9 1
DRESP1 6 S16 STRESS PSHELL 17 1
DRESP1 13 D1 DISP 3 10302
DRESP1 14 D2 DISP 3 10203
$
$...Place bounds on the responses:
$
$DCONSTR DCID RID LALLOW UALLOW
DCONSTR 10 3 25000.
DCONSTR 10 6 25000.
DCONSTR 20 13 -0.1 0.1
DCONSTR 30 14 -0.03 0.03
$
$DCONADD DCID DC1 DC2 ...
$ summed constraint set for subcase 1
DCONADD 100 10 20
$ summed constraint set for subcase 2
DCONADD 200 10 30
$
$...Optional override of optimization parameters:
$
DOPTPRM IPRINT 7 DESMAX 20 DELP 0.5 P1 1 +
+ P2 15
$ (DELP=0.5 allows larger moves thus overcoming constraint
$ violations quicker)
$
ENDDATA
Fig. 14.1 – Objective Function History Fig. 14.2 – Design Variable History