马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
以下是我写的一简支梁优化分析的命令流,对10号单元的X1,X2两个参数优化,但是最后运行不出来,请大师指点啊!!有什么错误尽情大家指点。
*create,stucture,mac
X1=30000000000
X2=2500
f1=12.564
f2=15.664
f3=51.083
f4=64.801
/PREP7
ET,1,BEAM189
MP,EX,1,3E10
MP,EX,2,X1
MP,DENS,1,2500
MP,DENS,2,X2
MP,PRXY,1,0.2
MP,PRXY,2,X3
K,1,0,0,0
K,2,5,0,0
K,3,2.5,0.2,0
LSTR,1,2
SECTYPE,1,BEAM189,RECT,
SECDATA,0.25,0.2,0,0
SLIST,1,1,,
LSEL,S,,,1,1,1
LATT,1,,1,0,3,,1
ESIZE,0.5,0
LMESH,1
EMODIF,10,MAT,2
EMODIF,10,REAL,2
D,1,UX,,,,,UY,UZ,ROTX
D,2,UY,,,,,UZ
ESHAPE,1
SAVE
FINISH
/SOLU
ANTYPE,2
MODOPT,REDUC,4
MXPAND,4
TOTAL,10,0
SOLVE
FINISH
/POST1
*GET,FREQ1,MODE,1,FREQ
*GET,FREQ2,MODE,2,FREQ
*GET,FREQ3,MODE,3,FREQ
*GET,FREQ4,MODE,4,FREQ
*status
m1=(FREQ1-f1)*(FREQ1-f1)/f1
m2=(FREQ2-f2)*(FREQ2-f2)/f2
m3=(FREQ3-f3)*(FREQ3-f3)/f3
m4=(FREQ4-f4)*(FREQ4-f4)/f4
G=m1+m2+m3+m4
FINISH
*END
FINISH
/PSEARCH,D:\onduty\ANSYS12\
*USE,stucture.mac
/OPT
OPANL,stucture
OPVAR,X1,DV,21000000000,39000000000
OPVAR,X2,DV,1750,3250
OPVAR,m1,SV,0,2000
OPVAR,m2,SV,0,2000
OPVAR,m3,SV,0,2000
OPVAR,m4,SV,0,2000
OPVAR,G,OBJ,,,0.00001
OPTYPE,SUBP
OPSUBP,10
OPPRNT,ON
OPEXE
OPLIST,ALL,,1
PLVAROPT,G
FINISH
|