ansys优化$ ^% L6 _* L4 A) ]* W
5 m8 g6 m" g' t" N& g% R
到constraint,都是用penalty function. 也就是将有constraint的函数设法简化成没有constraint的函数,而不是将每一条的constraint都分开讨论.
0 A1 w; a) n- G, ?6 v" S s* V4 ]4 x5 X9 W$ |
所以本来的函数如果是
7 R% t5 N o# Q, y4 O! i) j8 M5 C3 Ato minimize f(x)
1 b4 Q" V0 G+ c0 t7 lsubjected to g(x) <0( C# F" ~ h% K# L5 \) d: X
ANSYS会将之化成
! z; l2 H1 }+ N. p6 O5 D7 ]/ u+ W' Z: V8 {- { H0 [% a$ _
To minimize f(x)+w*G(x)
8 N0 h. `6 F0 [+ P% |) u q- n# a. T
$ Q" k+ v$ G" m- Z, E+ g0 Q所以,当 (1)函数非线性度高 (2)constraint多 (3)设计变量多 时,收敛就会有问题(optimization解的多半是非线性,而且是不等式,不是等式), V& j; |/ s$ x M* s3 X6 Q' z
; P; l! k9 h5 l4 G3 F; t; q3 O2 p
另一个问题就是你提的网格变化的问题了.我可以很肯定地告诉你, 如果循环之间的网格无法保持一致,收敛会容易出现问题. Paramesh有维持网格一致的东功能,但是也不知道跟ansys的整合性如何.为了解决这个问题,有所谓的”natural shape function”方法的出现.在我的网站里. K5 f, |+ i7 r( R
, [+ {% w( W7 b, P" W9 s) w0 e- Bwww.FEA-Optimization.com > Forum, News, Resource > Resource > Technical Paper
" V) o9 Y# ]" n1 s: A8 v
$ s- i+ S% e) L- y+ e' o4 V+ Z! N有一篇· S-Y. Chen, Nov 2002, "Integrating ANSYS with Modern Numerical Optimization Techniques - Part II : A Reverse Parametric Modeling Approach for Structural Shaping Optimization, 2002 Taiwan Area ANSYS Users Conference. ) k. v5 U& f1 b8 `. z4 T" w
可参考一下1 T# d% H* b8 Q7 D0 I8 C
/ T9 z$ k- h" z1 D" Q1 [' }( ~) I还有ansys多半是取最大应力来作constraint.这也会出问题的. 即使网格可以保持一致的情况下, 只取最大应力都会有问题,何况是网格不能一致?) A9 i$ `6 ^* z6 u1 c! b! H
: K$ E& c: r$ o$ A9 F# b7 y以下贴两个ANSYS optimization的log file,是很简单的truss结构,但是ANSYS无法收敛.供大家参考…………
' r' e* l& v% j) N! O
/ S y* b! \, vS-Y. Chen( m4 s6 i8 G/ ~3 N3 h% w( w
www.FEA-Optimization.com8 l! B+ U( F: p
# y! H* O6 ~* @2 x" z
! ========================================================
: I! v( ^1 S. _* |/ P( ^% o; ?/ V# i7 c! Create by S-Y. Chen, 20001209 www.FEA-Optimization.com
. w$ K8 p$ b& L4 U! Data obtained from Dr. Patnaik at NASA @20041208
% V6 u6 @8 y9 G+ Z' M: z( n2 P3 T! ========================================================; Z+ v4 t; Y3 m( F( ]
! References
1 p6 Y2 H, T+ L; m& J! ----------
$ e, M7 B& U6 m2 B! S.N.Patnaik, "Comparative Evaluation of Different Optimization Algorithms
& i2 B: V0 P* z( C! \! for Structural Design Applications", International Journal for Numerical8 o5 Y" R/ V; I( Z( r
! Methods in Engineering, V39 pp1761-1774, 19968 ]* K" Z' e' M
!
/ ~; ?: q- @4 p6 F3 o c. d o0 K! This is test problem P2 for NASA COMETBOARD% H: y( I* _# ?/ o$ E
! ========================================================+ ^( e# E7 I7 W3 T; [. A0 E: O
! This model has shown that ANSYS has difficulty of convergence for certain problems
# o5 D. C% I+ M, W! ========================================================
# f. b! _7 s: \/ c. B' s; \0 D8 O( q!
$ s P: e/ O4 z- x: f+ Y8 a: [*CREATE,P2_ANS
) |& g8 o3 ?1 q( n8 S!! |3 V" d! ~4 S( U
/FILNAME,P2_ANS( u* e# `% T3 [1 ` A* s$ E
!+ t7 M3 b8 D$ R; J3 N* U% o1 ?
! ===========================================================( h/ F+ h' l' d9 p2 c9 t
! INITIALIZE DV7 L# w/ {3 @, F5 E+ k5 J8 G5 v
DV001=1.0. [" d1 Y. _# R1 {: [
DV002=1.0$ Y. Q6 ?7 r" J) y4 x* y& O, F
DV003=1.0
& N* A) ^3 M- v; m1 vDV004=1.0
. P7 ~7 S+ _1 E/ _0 G ?2 V8 s( vDV005=1.0) s! j, J( O2 k G. ]
DV006=1.0
o. J) i; v0 B& A: |# BDV007=1.07 m3 ]$ Q$ z6 t, t
DV008=1.00 @1 `0 v1 U/ I9 L
DV009=1.0! ^" I I3 B3 c9 F e
DV010=1.0
% L* l; X: M* u2 l' S6 z( @!$ T7 c# V5 ]! {; L
/PREP7
. |! ]* n* E; G: L& ~( W% `N, 1, 0.00000, 0.00000, 0.00000
4 n5 {7 Y1 ^* {5 y4 F& eN, 2, 162.50000, 0.00000, 0.000001 m9 U9 W+ |9 l$ J6 V2 T
N, 3, 325.00000, 0.00000, 0.00000% k5 \3 b6 L, x) U
N, 4, 325.00000, 50.00000, 0.00000
v# ^6 E8 ~. ]2 H) q% i* _N, 5, 162.50000, 62.50000, 0.00000' {9 u- @0 r5 J3 F! u# i) m
N, 6, 0.00000, 75.00000, 0.00000
9 F; }" _) M+ C!+ \0 S5 A4 S- A j2 z
ET,1,16 d: n: \6 C5 n. O% l
ET,2,217 S; [/ w: l6 }" l) a
MP, EX,1,10000000
1 G' v8 w x b% {/ e, wMP,NUXY,1,0.3
& N- n9 b' c9 y4 aMP,DENS,1,2.58799e-4
. b6 h* j' T3 e: n7 ]) g6 z$ F; vMP,ALPX,1,1.0E-7
( {; [: X0 x) D n* U* p& |!1 S2 l& ~+ T( d2 }7 ^& w+ j3 }. f
!
- t. H# U6 U; E. j! b A' e! xR, 1,DV0015 ?: q7 m; I( r$ A% m+ }
R, 2,DV002; g/ S& N: i6 N/ [5 B! S
R, 3,DV003; @, ~9 e/ E0 b7 ^+ X
R, 4,DV004& A& w$ i+ W' c0 ^7 K6 p. f
R, 5,DV005
* W {% l: O4 e! [; RR, 6,DV006
5 ^" D8 ] N% {/ g" c# G0 w% qR, 7,DV007
9 \) [: K6 y+ H1 u: K" R' `R, 8,DV008
^" X Z8 k N3 [R, 9,DV009: D0 s5 L4 H+ b: @6 a
R,10,DV010+ g1 Y: l$ Z8 ]- J" P" F) {
!
' R p5 d0 M) B" E8 |* U5 g- p! ==================================
& c. i8 b7 O: f' B$ g4 L5 u! TRUSS
9 v" l6 k3 l; S8 g; iTYPE,1( H* E$ l5 v& I9 K
MAT,1
5 e. j- S3 O* Y+ zREAL,1' f8 C! @2 F( }. n, c, j
EN, 1, 1, 2,
1 h) c) y4 T) W+ |2 fREAL,2
. p# t: J `- ^EN, 2, 2, 3,
. Q. F. s4 b0 T: L# VREAL,32 J2 q6 K3 o. A. {+ O. R
EN, 3, 3, 4,$ y* r# y' H7 v) b3 O4 ] p1 K
REAL,4
- j7 }' U2 B# I- [1 l2 e8 ]: b+ pEN, 4, 4, 5,
% q9 q, C" `5 X; A8 e) EREAL,5
& t. c& r5 d+ LEN, 5, 5, 6,! F: P3 |* E" f% b
REAL,61 B: E" h; `6 P
EN, 6, 2, 5,( X3 @" `+ X1 Q! {
REAL,7: t- {4 L$ W& i4 l; I8 c
EN, 7, 2, 6,- P0 V; m' W1 u2 t& \2 D" f
REAL,8
3 @- A( }7 @( U) |: g: XEN, 8, 1, 5,1 Q: ]# }/ w9 X$ }4 G8 H
REAL,9( Q, h1 B; P. r, G2 j
EN, 9, 3, 5,
* x' y. _! \3 uREAL,10
5 s3 m% [* _% X1 L' e3 g; \EN, 10, 2, 4,2 z u6 s9 f0 R/ t3 c
!7 i, {7 h' W% g* R8 [, I9 i9 ~
! ===================================
& }/ E0 v2 C* r R3 H, k! MASS1 b. J1 U# ^7 S- ]) i- L4 t6 a
ET,2,21% E' C6 q. w* | Z2 F% w6 @( L7 Q
KEYOPT,2,3,4' H3 B, t# L( P% w
R,102,5.0285E-4& _4 W' l8 T& A. L% J' d8 E2 M
R,103,9.0512E-4
+ m9 t9 h" x5 WR,104,5.0285E-4
6 B f% @' _+ ~0 a, c+ F2 VR,105,9.0512E-4# v3 G3 q& ~, }
TYPE,2" C) o+ e7 ?& p; @- f( }
REAL,102
; ~" ?' ?* ?8 J, A) ]6 DEN,102,2' U" E4 D% {9 X7 X$ I% c' N T
REAL,103% u5 g( J8 P+ y; }; C$ h
EN,103,3
7 l& d4 J1 ^ y- J0 {9 W2 PREAL,104
* p4 |0 S: t' i( q" N, W+ s5 o% SEN,104,4
; |7 m% I$ ]: Y$ `; zREAL,1057 s6 O$ U P- Y$ W
EN,105,5
2 f$ ^5 W5 z z5 E: @; J5 T!
* d% E* E( F2 n" r9 X+ v$ l! ====================================6 |7 Q6 B) b0 g+ f, ~
! TOTAL VOLUME
6 B) j5 s4 U/ J$ n' yTTLVOLU=0.0; w$ l* u1 r, b/ J
*GET,ZTMP0001,ELEM,1,VOLU
) K6 e K% g; C4 g2 V$ L$ K- `TTLVOLU=TTLVOLU+ZTMP00014 c1 X7 I2 F$ Q/ h& e
*GET,ZTMP0001,ELEM,2,VOLU
6 M. o# O/ V0 s7 f8 y' vTTLVOLU=TTLVOLU+ZTMP0001
# H# k' Z4 u' L+ m*GET,ZTMP0001,ELEM,3,VOLU& s m' R/ V) R6 D2 P. e
TTLVOLU=TTLVOLU+ZTMP0001) Y" | d+ s- g
*GET,ZTMP0001,ELEM,4,VOLU
u _% O, g! g) a: M5 V# [TTLVOLU=TTLVOLU+ZTMP0001$ V/ a) o9 g$ ]* V
*GET,ZTMP0001,ELEM,5,VOLU
. O: I5 h) D) ]3 }# w, C' G) zTTLVOLU=TTLVOLU+ZTMP0001
8 ?+ F) k, P v8 w*GET,ZTMP0001,ELEM,6,VOLU, z4 C E5 ~2 j0 K
TTLVOLU=TTLVOLU+ZTMP00012 q6 U1 U' ]2 j( e* P7 V1 F
*GET,ZTMP0001,ELEM,7,VOLU
3 h) d9 r, K; K" N! U/ ?1 s4 mTTLVOLU=TTLVOLU+ZTMP00012 L9 n) D& Z4 O( b* s
*GET,ZTMP0001,ELEM,8,VOLU
$ f$ G$ K9 e* jTTLVOLU=TTLVOLU+ZTMP0001
( D: z E4 `0 }) Z! @+ w*GET,ZTMP0001,ELEM,9,VOLU
2 W1 |) E6 Q! ~, K3 z$ e0 \TTLVOLU=TTLVOLU+ZTMP00015 F8 u4 t2 F/ I' s9 a) k
*GET,ZTMP0001,ELEM,10,VOLU
9 p, F+ k& d# G7 ]+ Y, w8 sTTLVOLU=TTLVOLU+ZTMP0001) x& Y# O& o @1 }2 f3 G5 H1 Y
!% l: c% D! \' r- ^, D
!
8 V9 t( m5 M9 w/ S) T! ========================
: b- \6 F1 T$ K6 j7 G! MODAL ANALYSIS; u% e7 v, g$ J" C9 v
/PREP7" R! l" z( T8 e5 E, e
ANTYPE,MODAL
0 I) n3 g- y E$ L2 W* f, K- M+ G/SOLU" X7 H/ u" b$ k. E0 y, d9 E
EQSLV,FRONT
. F. [. X- h U. dLSCLEAR,ALL
) J1 W# A; n, k3 J0 \! y* a# W6 [, [" [D,1,UX,0# ?8 w6 x5 R) f; P4 h6 n9 V6 L
D,1,UY,0% }% l+ h4 z% c2 y
D,6,UX,0
3 N8 q* k1 s" Y" Q9 sD,6,UY,03 t/ T U$ I0 s1 r; F( m
MODOPT,SUBSP,5
& t, t0 K' C/ J2 U9 ySOLVE
( c3 \6 V/ Z( D4 a/POST1
& A2 [; f- g; q/ k$ H# iSET,1,1
& n v4 a1 @/ q/ m2 ^) h6 ^( J: m*GET,LS03FQ01,MODE,1,FREQ
9 g! S4 ^0 o* Z' d. s0 @*GET,LS03FQ02,MODE,2,FREQ
, h9 H) U( C0 X+ c; F*GET,LS03FQ03,MODE,3,FREQ- \& H; P+ b( D
!*GO,INE01
' M1 q G2 M3 F$ Q, b3 F!
1 w) _( X$ N- H1 J1 q& G# M!
/ v* P8 ~0 D5 f: Q+ b* d3 X/PREP7
: n. G+ n. D& EANTYPE,STATIC" k% ~& H( k" d8 }
/SOLU
! }2 F/ @: u7 g3 }# R4 D AEQSLV,FRONT
- A1 B/ C' P+ [$ |!
" Q8 H; p# }3 v: z8 E5 x! ========================
9 E8 F; |& C. V+ R4 J! Load step 1
3 l/ W- w0 B9 `3 xLSCLEAR,ALL8 h& G6 R8 n. {; K" ~: n8 r
/INPUT,P2_T00,s01,../
0 e {! H' O& W! B! S$ O8 b5 o3 H; Jsolve
7 ?) I% H) O; U o. @1 O! N!: x# F: N% u1 g- S( v3 e7 x" t; j/ {
! ========================
% \: ]' f7 A7 ~7 {5 }: e/ H! Load step 2
" h6 P4 [- p7 c KLSCLEAR,ALL
4 Q' q# w( ?0 l0 p6 y$ `0 l/INPUT,P2_T00,s02,../6 s6 r" g$ B. {8 A* ~8 `% O
SOLVE$ C3 x4 o6 k+ G
!' f) Q, G( x7 ]8 N2 b/ ^4 U
!/ M1 {( }, K' S, s" N: Q# i! V$ C
/POST1
& W% E$ X$ m% _5 G( ?+ LSET,1
( @1 U1 ` I$ W- v) M f8 x7 V! d bETAB,LS1SAXL1,LS,19 ~; q: M/ C' D7 I" j7 ]
*GET,LS01ES01,ELEM, 1,ETAB,LS1SAXL1. o3 S. d9 U5 k3 _
*GET,LS01ES02,ELEM, 2,ETAB,LS1SAXL1! {% b$ S# `2 q- g
*GET,LS01ES03,ELEM, 3,ETAB,LS1SAXL1 a' T9 i7 `4 r% i% X5 T
*GET,LS01ES04,ELEM, 4,ETAB,LS1SAXL1 B1 S' `4 n1 Y3 J/ f4 P
*GET,LS01ES05,ELEM, 5,ETAB,LS1SAXL1
9 E' W) V; e1 F# ^*GET,LS01ES06,ELEM, 6,ETAB,LS1SAXL13 F8 I9 ?9 T6 Q2 {( @! R
*GET,LS01ES07,ELEM, 7,ETAB,LS1SAXL1
4 U3 p: w8 f) E*GET,LS01ES08,ELEM, 8,ETAB,LS1SAXL1/ ]% d6 ~3 Q9 \$ g
*GET,LS01ES09,ELEM, 9,ETAB,LS1SAXL1) e; @ d& n2 S* l o. J. |* F
*GET,LS01ES10,ELEM,10,ETAB,LS1SAXL1
N+ a' i% I2 k) g' S2 G8 }+ C!( ]+ q/ i5 g j9 Z- I
*GET,LS01NU01,NODE,3,U,Y2 X4 g. C& L2 g l3 }
*GET,LS01NU02,NODE,4,U,Y4 l1 q( y- {, X$ n- U) s) {
!, Y! m& E3 T k# G G n% ~" S
!) x- k9 G% W: d, ?+ P5 X$ ^# a* B
SET,2
, V+ b8 }! o8 V$ Y+ q. e/ ]) FETAB,LS2SAXL1,LS,1
: \; f3 M( M& A% }5 \*GET,LS02ES01,ELEM, 1,ETAB,LS2SAXL1
+ g/ F+ N/ y# U' e9 T*GET,LS02ES02,ELEM, 2,ETAB,LS2SAXL19 m# ]1 N2 ]$ O4 D) g) W9 k# Z; t
*GET,LS02ES03,ELEM, 3,ETAB,LS2SAXL1! z0 u' D j/ v1 S) }
*GET,LS02ES04,ELEM, 4,ETAB,LS2SAXL1 u" S+ ]) ]- q4 q6 K
*GET,LS02ES05,ELEM, 5,ETAB,LS2SAXL1
4 P8 k. [; L& u8 y/ e' B1 f*GET,LS02ES06,ELEM, 6,ETAB,LS2SAXL1. }5 I# t E, h1 e$ d ]/ G* Y
*GET,LS02ES07,ELEM, 7,ETAB,LS2SAXL1
0 ~4 }/ R6 j; q' u' D! Y*GET,LS02ES08,ELEM, 8,ETAB,LS2SAXL1
5 c2 |' ?8 a# z2 d*GET,LS02ES09,ELEM, 9,ETAB,LS2SAXL1
7 A' ]5 R; S4 ?) ~*GET,LS02ES10,ELEM,10,ETAB,LS2SAXL1
+ P L( p4 f7 R8 m* ]!. \$ e, {8 o7 h' c
*GET,LS02NU01,NODE,3,U,Y: M. f A9 i' l+ d- h7 |
*GET,LS02NU02,NODE,4,U,Y
; H' }0 s, h1 F9 r+ [!
1 k# `. Y+ i( ~4 ]SAVE
5 b6 ` k" \% R; Y*END5 z8 f f% b6 s1 l6 Z. P& i
!
+ h' u2 y4 w8 G! \! ======================================================
) j& m' s0 k! ^! Y+ t*USE,P2_ANS" \* s- L) s9 C: r7 o0 f( X/ a
!; p# `' F7 y3 w: Z( D) B
! ======================================================& M6 q) \* g2 [& l6 _6 C' B
! ======================================================& A+ I/ z8 g% u
! OPTIMIZATION SESSION
8 R) O: ^1 z/ F/OPT
# J6 ]" a; T1 j!
9 x% R. n0 F4 k# Z: h2 r$ eOPVAR,TTLVOLU,OBJ4 J, C4 D) y9 @& m! L" y( b5 V
OPVAR,DV001,DV,0.01,10000,
7 i% T. P* d4 v- c# y0 OOPVAR,DV002,DV,0.01,10000,
4 w" }& ]; Y( Y# d Q, @1 @9 GOPVAR,DV003,DV,0.01,10000,
4 U( ^5 o- _# d! F" z; M: A" P7 X' `. iOPVAR,DV004,DV,0.01,10000,
& x% T' s& d" W! r SOPVAR,DV005,DV,0.01,10000,3 b3 N# f9 n% i' |5 {
OPVAR,DV006,DV,0.01,10000,
7 w% f5 S/ T, o3 y6 r( V. Z0 |OPVAR,DV007,DV,0.01,10000,6 ?6 x" V3 o& Y" m4 ]0 H4 w: j
OPVAR,DV008,DV,0.01,10000,
5 B" D- Y$ X/ S: R% d2 ]. x3 ?OPVAR,DV009,DV,0.01,10000,
. b, T. H3 A3 N; eOPVAR,DV010,DV,0.01,10000,9 z" E* T4 M; D* ~6 K" C
!2 `% [6 b+ V! S) g; ~
OPVAR,LS01ES01,SV,-1.0E4,+1.0E4
$ c6 u' F0 N* b7 C6 bOPVAR,LS01ES02,SV,-1.0E4,+1.0E4
$ }! m) P) i0 g! uOPVAR,LS01ES03,SV,-1.0E4,+1.0E44 S0 O4 X$ m$ v$ R
OPVAR,LS01ES04,SV,-1.0E4,+1.0E4: d9 z% y! C* }" L, X7 p+ }
OPVAR,LS01ES05,SV,-1.0E4,+1.0E45 p; Y3 `7 j6 P8 S
OPVAR,LS01ES06,SV,-1.0E4,+1.0E4
/ c8 {5 S H: c# GOPVAR,LS01ES07,SV,-1.0E4,+1.0E45 e$ g1 Q- N! e2 W7 Y- B% T! r
OPVAR,LS01ES08,SV,-1.0E4,+1.0E4
' c3 V) [; Z. \# V' fOPVAR,LS01ES09,SV,-1.0E4,+1.0E4
+ e& Z4 }$ J# J* q, ] V3 Q- UOPVAR,LS01ES10,SV,-1.0E4,+1.0E4
/ c/ p, D2 k' Z @!: j/ n7 N2 q7 J$ ]3 i: @
OPVAR,LS02ES01,SV,-1.0E4,+1.0E4
7 u F0 E+ T+ a1 k. z, GOPVAR,LS02ES02,SV,-1.0E4,+1.0E4
3 m: m6 }1 K/ c6 x: K% ] lOPVAR,LS02ES03,SV,-1.0E4,+1.0E4% l1 {* Z p0 n# {, `
OPVAR,LS02ES04,SV,-1.0E4,+1.0E4
* Y! w" T' K3 k0 J# tOPVAR,LS02ES05,SV,-1.0E4,+1.0E47 y+ P& ^+ S1 O& I
OPVAR,LS02ES06,SV,-1.0E4,+1.0E4! I2 Z) R/ J3 L; _& u1 J6 @: ]7 u
OPVAR,LS02ES07,SV,-1.0E4,+1.0E4
! i$ y5 w! ^% \$ \! k- W2 g: cOPVAR,LS02ES08,SV,-1.0E4,+1.0E4' g W. n( L k
OPVAR,LS02ES09,SV,-1.0E4,+1.0E43 ~9 g9 H, w$ N; D
OPVAR,LS02ES10,SV,-1.0E4,+1.0E4
/ y( w. G' p' H& z5 @3 i- F U5 S!
8 B# [' J6 |3 s3 x1 y( r1 zOPVAR,LS01NU01,SV,,2.2: C8 T( [- ~7 n, E5 |, d+ u
OPVAR,LS01NU02,SV,,2.23 B8 u" u5 x$ ~/ F
OPVAR,LS02NU01,SV,,2.2
8 o) i2 c) s3 K8 zOPVAR,LS02NU02,SV,,2.25 S0 D; D$ }# z6 ?( M
!
7 z- M! A2 z/ y* uOPVAR,LS03FQ01,SV,26,
$ H( C8 V9 _6 @0 t- x2 }!
, j' B, T+ w8 d- `, t! ======================================================9 g2 q$ J- \4 J3 C$ b% t2 R
! OPTIMIZATION LOOP
' o" c& L4 [4 N/ q) a. l; w' XOPANL,P2_ANS
6 n4 W, Y: i4 v; oOPTYPE,SUBP
0 l# Y/ x( |; \OPSUBP,100
" \. {. a# q/ b c& N2 Q, X8 f& FOPPRNT,ON. d' S; T* ~* b) {: {
OPEXE
: l; I o( P- j0 c* M" N* Q!
. D0 W1 ~$ g$ ?- q: }2 K
3 c1 }$ H0 {* K v# v! M! ========================================================
/ H' v. j: a8 @& h5 o) f! l! Create by S-Y. Chen, 20001209 www.FEA-Optimization.com2 h# b! S& t0 A. \9 b, a7 E9 V1 a
! Data obtained from Dr. Patnaik at NASA @20041208
# q Q% v [ z! ========================================================
* D& [& Q. O- e( D* L! References1 v+ J0 J5 p7 |- c- n7 m) | w
! ----------& E, Z, L- O$ `/ `7 h0 w! I
! S.N.Patnaik, "Comparative Evaluation of Different Optimization Algorithms- ^/ l9 ?/ _2 M6 |
! for Structural Design Applications", International Journal for Numerical# W+ s8 G9 D+ I. C# N
! Methods in Engineering, V39 pp1761-1774, 1996
, w' f: C! |0 Y' F!9 I6 A& Y9 S3 N' |: _7 f# ]4 m X
! This is test problem P9 for NASA COMETBOARD
9 O! L- r: D: t7 O! ========================================================) N0 x6 Q/ p( \& B$ A( X9 L
! This model has shown that ANSYS has difficulty of convergence for certain problems
& s* M0 Q R5 t) T& e! ========================================================
2 E8 |& I6 Y/ d/ _! R8 m4 Z/ z3 {*CREATE,P9_ANS
0 y& Y( \5 V4 t!+ N$ R9 S2 ~, K% e0 G P
!
. [' Q7 {, g6 c& f/FILNAME,P9_ANS/ S- i4 u" A. ?) H, ~. p
!
( A' |$ h( y6 F2 k( N' a6 MDV001=1.0
9 I2 d0 M8 @; ?- \DV002=1.0, F5 P9 T1 u& ]* c9 p' R$ b
DV003=1.0
/ j. C" |2 L# iDV004=1.03 |. |( k X2 Z5 _ ?3 H
DV005=1.0
2 I0 G0 T5 M4 e0 \+ t' iDV006=1.02 a, X) Z7 Y9 P/ S
DV007=1.0
2 D8 {( v! I, v) ?7 b' H& b$ ^DV008=1.04 H1 j3 c9 ^1 ?* ]. t1 u; s
DV009=1.0
3 ^/ z3 r6 I4 m& T2 rDV010=1.0
. X& F) X- G' H, r!! ^5 ?7 g/ x' }3 j9 z
/PREP7
$ Y0 r+ G' i+ O9 W% U5 F5 vN, 1, 0.00000, 0.00000, 0.00000
5 u3 Z3 Y' {2 L( D6 T( EN, 2, 360.00000, 0.00000, 0.00000! n. p* M A& M
N, 3, 720.00000, 0.00000, 0.000007 \+ S1 l6 e0 o7 f' ]6 n
N, 4, 720.00000, 360.00000, 0.00000: q0 I9 [# u, q$ I
N, 5, 360.50000, 360.50000, 0.00000
* h! i/ i; l7 q! ?/ S: J* `N, 6, 0.00000, 360.00000, 0.00000. n; |7 J- q/ S$ x/ u, q5 v
!7 H( D9 C, ~! A5 N5 p5 g, b
ET,1,1
) c( f5 b1 `& p5 ?. v6 m/ V0 mET,2,21
9 z! |+ t3 w9 _5 G9 R3 I2 pMP, EX,1,100000005 b$ y- L/ ^+ I$ k) g0 ?
MP,NUXY,1,0.3
, b: a; o0 x5 Z7 D8 r FMP,DENS,1,2.58799e-47 u( [0 |) e- _# B
MP,ALPX,1,1.0E-7
+ X1 q* f$ }4 i7 u!( ]/ Z: {, Y. j( X
!
! A6 d- V0 l& F3 fR, 1,DV0012 f5 O$ [8 p) g' U% }8 `
R, 2,DV002
! }' Z* V5 a0 C* W; }- f7 ^R, 3,DV003
{- n" K2 {/ k% kR, 4,DV004
% g& n4 M8 \& n8 T) g$ yR, 5,DV005
4 Q/ V0 F4 z+ S, B" p: F" v8 @' m& @R, 6,DV006# L: P4 {4 T1 v" a' N
R, 7,DV007
. [( k$ r5 Y$ u0 sR, 8,DV008
+ O6 i# {5 f6 E. ^ g1 R* r2 ~R, 9,DV009
. a. ^- b' {7 D" ^' X9 s# P C9 F6 HR,10,DV010* @7 {3 y- A9 J8 H6 u5 n8 H) F
!
* J9 f* t" D: w7 Z& C6 h, ]2 ~! ==================================9 k% h5 x* S, A1 z$ y0 h1 U B
! TRUSS% G( E" R* L' R
TYPE,1
' ^/ J1 B4 Y) t' nMAT,1
1 t J3 h( j3 U3 m3 H7 hREAL,1
0 m2 x0 V+ k8 L* H/ A" x+ B# kEN, 1, 1, 2,- {, Q1 s) ^6 w. t) q; c/ K
REAL,22 h# S: p; ~/ n0 l7 {
EN, 2, 2, 3,) B7 Y- j# W7 Y# N! f
REAL,3" Z7 [7 _) ?; @; S# b. l+ Q
EN, 3, 3, 4,2 Z4 E" R2 Z- e8 |* r9 F$ }
REAL,4
- n6 R g+ H6 hEN, 4, 4, 5,0 {+ H/ e! h ?- F( T; h
REAL,5
$ q, z: k# J5 ~9 d5 YEN, 5, 5, 6,3 K7 E: L) Q M& X2 `0 A
REAL,6! _$ K- G0 n9 ]' r) I
EN, 6, 2, 5,
6 O$ F, S, C- i% T, _* lREAL,7
) K5 j# E& s" g% YEN, 7, 1, 5,
# g5 i8 s; g$ q4 aREAL,8
' M/ k( o6 f$ [3 j: PEN, 8, 2, 6,
# M: [% ]& w( aREAL,9: `* m7 p Z3 t4 q2 Y. H5 m
EN, 9, 2, 4,* t! N D8 G' n
REAL,10
) |2 d0 C4 e4 Q yEN, 10, 3, 5,
' m; y' V& D- C. e& }0 Z- e!
0 R, L4 p1 t- S! ===================================
8 j4 Y% V, d; c* g& Q! MASS
( a; p3 i1 E+ o1 ~* [0 ~ET,2,211 R2 T: u& l& |+ X* G4 U
KEYOPT,2,3,4
+ m5 U: u* G# a% E' r1 A% R2 YR,102,5.0285E-49 d# |2 [0 \: G9 p$ N5 K
R,103,9.0512E-4
7 f ?) E3 E9 K4 k0 n( A- e1 L: ?# ]R,104,5.0285E-4+ P/ h) D% R- Q0 |6 a: @
R,105,9.0512E-4* p4 @6 r0 U9 z' F1 i- N; ]8 `
TYPE,2" i! x9 w* C) j& o& L- N
REAL,102
) |7 C" C5 g4 p3 N* U% D2 c5 MEN,102,25 v6 y' I7 k2 a+ _# l- M
REAL,103
- N u- s" c; [% E$ H; wEN,103,31 u5 H: @+ i$ C7 _6 |3 p
REAL,104/ F+ O$ b/ p5 S o
EN,104,4! L) m3 O6 d* f' g `# g9 K
REAL,105 }- I5 x+ J, J& S3 d3 x+ U& g) M
EN,105,59 C6 W) G& B- `3 A1 `
!
' k1 |# e( e5 |$ X! ====================================, N' k% k" I' ]" i J
! TOTAL VOLUME6 m: S, c, |5 t' [# h) p
TTLVOLU=0.06 n1 D- G# ~. B# s5 }
*GET,ZTMP0001,ELEM,1,VOLU
- }. W$ U1 N, } X' n$ Q$ LTTLVOLU=TTLVOLU+ZTMP0001( ]- l# p7 ^: L( m
*GET,ZTMP0001,ELEM,2,VOLU2 j# p" e: D4 j: k9 P! ^. T
TTLVOLU=TTLVOLU+ZTMP0001
& F; y" @/ K3 i# ~/ I*GET,ZTMP0001,ELEM,3,VOLU
' o4 [1 O4 I3 _1 e1 _TTLVOLU=TTLVOLU+ZTMP0001
5 } `* R+ }4 k' ^7 Z; d$ D*GET,ZTMP0001,ELEM,4,VOLU
/ X) N. h; s2 M2 r3 x0 }; }0 RTTLVOLU=TTLVOLU+ZTMP0001
h' q# }# g `% Q. j*GET,ZTMP0001,ELEM,5,VOLU
# T' c8 m6 R7 h. R1 XTTLVOLU=TTLVOLU+ZTMP0001
7 k% d! @- U: `4 v8 u: n2 v*GET,ZTMP0001,ELEM,6,VOLU- K- H) c$ i- e1 `4 x. i4 b/ i
TTLVOLU=TTLVOLU+ZTMP0001
0 w' [9 y" n4 ^) V/ g2 H4 b*GET,ZTMP0001,ELEM,7,VOLU
9 z& |6 R& _& b6 ?* }0 GTTLVOLU=TTLVOLU+ZTMP0001
8 ?5 T% Z& E. L" r; ]*GET,ZTMP0001,ELEM,8,VOLU1 S8 q8 s8 f- {2 @, B2 Z a1 ~# n
TTLVOLU=TTLVOLU+ZTMP0001
! ^8 U) V( o4 S H*GET,ZTMP0001,ELEM,9,VOLU
9 l% p5 O! m" T# V; o2 ^5 _( ZTTLVOLU=TTLVOLU+ZTMP0001* M# u9 N5 l7 E' j3 f( B! r6 @
*GET,ZTMP0001,ELEM,10,VOLU
, Z5 O* i4 A2 y M* o/ q4 ?TTLVOLU=TTLVOLU+ZTMP0001
+ T2 _4 l0 y8 l& |* P0 p!* m s. C: {, |* g8 z1 h& ^* v
!
* }, k3 g7 M; C& R! ========================
" O3 {1 p( X4 x! X* d! MODAL ANALYSIS
: N8 ]# G' _+ r5 u* R' k/PREP7! G2 b; E: ]9 |& D$ n
ANTYPE,MODAL
. T" T6 J5 q1 S4 P3 B/SOLU+ ]: F( F B' K: ^
EQSLV,FRONT
6 A4 [ p- v% K! PLSCLEAR,ALL/ p& U S% O+ K7 z1 I+ z+ {9 A/ f
D,1,UX,0
" G' V( Q9 g- o9 C% hD,1,UY,0" X9 W/ Z8 z1 T; t* h& M" g
D,6,UX,0
" h; H9 p5 K5 W5 H, BD,6,UY,0, O: t3 G" I, J5 a
MODOPT,SUBSP,5
0 v" W# F4 d. W& `SOLVE
) A1 g4 f0 i0 P3 M- }/POST1
$ ~) y% L8 v0 u6 h* |6 [SET,1,1
0 @. n8 O/ x+ [' c*GET,LS03FQ01,MODE,1,FREQ
9 l9 p4 G7 Q3 W8 H1 |1 m6 M*GET,LS03FQ02,MODE,2,FREQ
; I5 S9 W+ A/ @, o6 D( _, {*GET,LS03FQ03,MODE,3,FREQ: {9 e, u) i, F3 y
!*GO,INE01, i# z" F+ }* `3 v. K
!
9 U1 B9 q+ |# p!$ h0 n2 {+ ^7 l5 p; z
/PREP7# G9 p7 }2 s* j& H
ANTYPE,STATIC& B/ u" b3 w; J) L& ]6 m3 e
/SOLU
0 a, D1 ?3 H. Y7 K J8 E& GEQSLV,FRONT, ~" |# n+ G& t
!, n+ W- w8 u* P) m
! ========================
) ^; s8 V) X! @" e1 p3 Y) }! Load step 10 ~3 @5 W& M q
LSCLEAR,ALL7 r9 p8 _3 W8 Y% x
/INPUT,P9_T00,s01,../,
: T, D! _# R: A. ksolve. `& n" s+ h( `
!5 D" [2 V c$ A& T7 }6 A% e! ]+ l/ x. f
! ========================+ F8 p+ ]% G4 M- }4 e; z6 [
! Load step 2. m+ @% C& p7 F/ Q
LSCLEAR,ALL
" ~& ]& `3 _% e' `. s( ?/INPUT,P9_T00,s02,../,9 }: b O8 V) j s9 [% L
SOLVE( K1 x( T( g& p/ d8 V! P
!
0 o# j' J$ O) }/ w* r7 S!
% }! L6 c) h0 z- L2 W/POST1) D9 l/ v" u9 B. T6 O6 w
SET,1
) m3 \+ y( H- r% ~8 T sETAB,LS1SAXL1,LS,1
9 c. ], T8 K8 G/ m*GET,LS01ES01,ELEM, 1,ETAB,LS1SAXL1
7 p1 F7 p6 Y+ G, l1 E*GET,LS01ES02,ELEM, 2,ETAB,LS1SAXL1
+ D2 N" `. [! u: q2 R( c( H& y3 a/ s7 T*GET,LS01ES03,ELEM, 3,ETAB,LS1SAXL1- }! f- Y- v& |- _; x( j1 u
*GET,LS01ES04,ELEM, 4,ETAB,LS1SAXL1
" d. @" n" _7 @3 ^$ R*GET,LS01ES05,ELEM, 5,ETAB,LS1SAXL1# o0 p2 l- Z9 p8 U3 C K5 S
*GET,LS01ES06,ELEM, 6,ETAB,LS1SAXL1$ Z7 B% X+ O& e/ M1 a
*GET,LS01ES07,ELEM, 7,ETAB,LS1SAXL1
5 U7 z: V p1 m1 P! ?4 P*GET,LS01ES08,ELEM, 8,ETAB,LS1SAXL17 W$ b1 }& x* V' w; l
*GET,LS01ES09,ELEM, 9,ETAB,LS1SAXL1
8 l3 `+ m: K2 ?- C*GET,LS01ES10,ELEM,10,ETAB,LS1SAXL1, T7 {# g" U, }* P7 U
!
, f+ q2 O& ]1 n, M* S& Z*GET,LS01NU01,NODE,3,U,Y$ e7 T x# v- t+ A! R0 I
*GET,LS01NU02,NODE,4,U,Y5 E6 j. R3 b! V: A
!. L' g) F3 U9 a( \5 k0 x
!
0 l; Q; Y* H2 cSET,24 e( L8 I2 Q3 B& P& W
ETAB,LS2SAXL1,LS,1 u# U6 t, u Y5 ?$ q
*GET,LS02ES01,ELEM, 1,ETAB,LS2SAXL1$ j7 k3 Z ^' @. W1 y' e( p. i/ f
*GET,LS02ES02,ELEM, 2,ETAB,LS2SAXL1$ X1 r. y& [0 `( Z3 L9 ?& o. W
*GET,LS02ES03,ELEM, 3,ETAB,LS2SAXL18 _, H3 g- M3 w. j! d* _; `
*GET,LS02ES04,ELEM, 4,ETAB,LS2SAXL1& N- `# Z" l; k% Z8 z: z8 Y R
*GET,LS02ES05,ELEM, 5,ETAB,LS2SAXL1
8 E) {" Y% C5 a; F0 H*GET,LS02ES06,ELEM, 6,ETAB,LS2SAXL1
! U0 i2 W4 d+ Q6 [3 V*GET,LS02ES07,ELEM, 7,ETAB,LS2SAXL16 ~; s8 S p6 d( O7 R! q
*GET,LS02ES08,ELEM, 8,ETAB,LS2SAXL1
7 O' y9 d& p, P*GET,LS02ES09,ELEM, 9,ETAB,LS2SAXL1. J) y3 k7 d* u7 q
*GET,LS02ES10,ELEM,10,ETAB,LS2SAXL1
0 @+ _+ a9 r; M0 H/ C* M!1 B C0 W5 _ V+ f6 g. K0 A3 ]7 @
*GET,LS02NU01,NODE,3,U,Y. Z/ u! o A3 ~) k
*GET,LS02NU02,NODE,4,U,Y7 @3 C% e" r# i5 O9 G+ @
!
3 Z" {& y8 F* x$ j: d1 pSAVE2 t5 D! r/ t" m* r4 y5 m
*END
% z$ E# q; s2 n!# m9 U3 |2 \! z0 I5 U2 S
! ======================================================
& u6 n* E2 t3 R& z8 E*USE,P9_ANS: C4 m# T$ A4 F9 Y
!3 [; f; O+ E8 V6 x' [, t/ W
! ======================================================+ A( d* m Z2 H4 [: y' e7 k
! ======================================================
" u9 n* z+ J) B1 a# f7 D! OPTIMIZATION SESSION
; C& @7 K' S; p9 q" P" W/OPT
1 l. g3 N) [! S. E!
8 o& f9 S- [* M) D0 X( h. ZOPVAR,TTLVOLU,OBJ1 @5 ^. r& p9 o/ k& R5 }
OPVAR,DV001,DV,0.01,10000,0 ?3 Y( o$ m. v
OPVAR,DV002,DV,0.01,10000,- R/ \7 ] M* f8 b8 `" m
OPVAR,DV003,DV,0.01,10000,6 F& C' S5 x! x5 M
OPVAR,DV004,DV,0.01,10000,
1 W8 ]6 G- ?0 U' L0 {OPVAR,DV005,DV,0.01,10000,9 a& u+ M( V: r) q. U1 Y
OPVAR,DV006,DV,0.01,10000,' N5 o1 K1 D6 }% g2 p _7 i0 l7 R9 I
OPVAR,DV007,DV,0.01,10000,
2 N+ ?4 x; o$ ?# jOPVAR,DV008,DV,0.01,10000,! ?/ X$ `4 o" s8 `
OPVAR,DV009,DV,0.01,10000,
' v3 g8 D9 E7 a6 Y( y: C; {# qOPVAR,DV010,DV,0.01,10000,
' A$ P7 _# _1 h!5 [' G z D5 y4 e) `/ \
OPVAR,LS01ES01,SV,-1.0E4,+1.0E4+ Q) {" y- i7 t- s2 Y
OPVAR,LS01ES02,SV,-1.0E4,+1.0E49 a* ]4 I2 c) u
OPVAR,LS01ES03,SV,-1.0E4,+1.0E4
4 r0 w" b' { i( l, EOPVAR,LS01ES04,SV,-1.0E4,+1.0E4
3 S& N5 q; ]7 Z+ uOPVAR,LS01ES05,SV,-1.0E4,+1.0E47 j, z2 B! e. L4 e
OPVAR,LS01ES06,SV,-1.0E4,+1.0E4
: c( ]- q! L1 M( Y( XOPVAR,LS01ES07,SV,-1.0E4,+1.0E4
- k% a, W5 {+ \OPVAR,LS01ES08,SV,-1.0E4,+1.0E4
% `4 ~1 E7 A% _1 t8 ~OPVAR,LS01ES09,SV,-1.0E4,+1.0E4 X! n2 a, ~9 Z9 c6 J
OPVAR,LS01ES10,SV,-1.0E4,+1.0E4
z: k. ]* u3 ?# u' C# h!* p9 B1 d. \1 x/ m, h. h; u/ W
OPVAR,LS02ES01,SV,-1.0E4,+1.0E4
2 M+ Q! Y, X0 r9 YOPVAR,LS02ES02,SV,-1.0E4,+1.0E47 _9 v) U% a3 w, X. t
OPVAR,LS02ES03,SV,-1.0E4,+1.0E49 b4 v: r: u, l
OPVAR,LS02ES04,SV,-1.0E4,+1.0E4
3 b- x$ N5 Q z/ ], _OPVAR,LS02ES05,SV,-1.0E4,+1.0E4
. g! O, B4 O( v, ~: ~& ~" P4 mOPVAR,LS02ES06,SV,-1.0E4,+1.0E43 b3 T0 u. }+ ?" ~) w
OPVAR,LS02ES07,SV,-1.0E4,+1.0E4
3 |) i# i& i+ ^7 {: V* X/ lOPVAR,LS02ES08,SV,-1.0E4,+1.0E41 [1 t7 e# b6 K4 ~5 `5 k
OPVAR,LS02ES09,SV,-1.0E4,+1.0E49 j5 s, f3 |7 z; j# l
OPVAR,LS02ES10,SV,-1.0E4,+1.0E4
3 N' q8 b8 S% S7 k' E' C!
( V. z' ]( ]% ^; c1 f1 j$ lOPVAR,LS01NU01,SV,,2.2
) T, p0 g/ E7 ~' g# c) B" l4 x# gOPVAR,LS01NU02,SV,,2.2
& S/ w* e0 m+ w5 U EOPVAR,LS02NU01,SV,,2.25 l [9 A5 x3 \# K4 A
OPVAR,LS02NU02,SV,,2.2: d8 R1 N# a5 o; A+ ~
!( {; L1 w6 d8 [* W" T5 _
OPVAR,LS03FQ01,SV,26,$ C4 z! R4 P i" D" O
!
4 H7 T, H; a4 j0 Q# c! ======================================================0 F; a* Q7 \/ \- f& V0 O1 M& |* T
! OPTIMIZATION LOOP: ?/ K2 [% U- O* {. p
OPANL,P9_ANS: ^/ [4 ]$ _1 h* [! Q+ Z/ e; m. e
OPTYPE,SUBP j% w1 C6 D+ L" i/ v! q( j; J ]
OPSUBP,1002 _6 M& W% s1 W! J) [/ p
OPPRNT,ON
$ S( ] a3 }5 ? m/ }8 p3 sOPEXE
- P1 p2 U- |' Q! |