马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
*SET,B,25
*SET,A1,0.645
*SET,A2,0.645
*SET,A3,0.645
/PREP7
/PREP7
ET,1,LINK1
R,1,A1
R,2,A2
R,3,A3
MP,EX,1,2E11
MP,PRXY,1,0.3
!MP,DENS,1,7.8
N,1,-B
N,2,0
N,3,B
N,4,0,-25
/TRIAD,OFF
REAL,1
E,1,4
REAL,2
E,2,4
REAL,3
E,3,4
FINISH
/SOL
D,1,ALL
D,2,ALL
D,3,ALL
F,4,FX,9E5
F,4,FY,-9E5
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
/STATUS,SOLU
SOLVE
FINISH
/POST1
ETABLE,EVOLUME,VOLU,
SSUM
*GET,VTOT,SSUM, ,ITEM,EVOLUME
*SET,DENS,7.8
*SET,WT,DENS*VTOT
ETABLE,SIG,LS,1
*GET,SIG1,ELEM,1,ETAB,SIG
*GET,SIG2,ELEM,2,ETAB,SIG
*GET,SIG3,ELEM,3,ETAB,SIG
*SET,SIG1,ABS(SIG1)
*SET,SIG2,ABS(SIG2)
*SET,SIG3,ABS(SIG3)
!LGWRITE,Trus_Opt,lgw,F:\ANSYS8LX\trussopt\,COMMENT
LGWRITE,Trus_Opt,lgw,,COMMENT
FINISH
/OPT
OPANL,'Trus_Opt','lgw',' '
OPVAR,A1,DV,0.6e-3,0.645, ,
OPVAR,A2,DV,0.6e-3,0.645, ,
OPVAR,A3,DV,0.6e-3,0.645, ,
OPVAR,B,DV,10,25, ,
OPVAR,SIG1,SV, ,2.76e6, ,
OPVAR,SIG2,SV, ,2.76e6, ,
OPVAR,SIG3,SV, ,2.76e6, ,
OPSAVE,'Trus_var','opt',' '
OPVAR,WT,OBJ, , ,0.5,
SAVE
OPTYPE,FIRS
OPFRST,15, , ,
OPEXE
OPLIST,ALL, ,0
!!!!!!!!!!!!!!!!!!!!!!!!!!!
/AXLAB,X,Iteration Number
/AXLAB,Y,Structural Weight
PLVAROPT,WT !!!!!!!!!!!!!!!
FINISHI
错误原因:*** WARNING *** CP= 58.125 TIME= 22:10:51
PLVAROPT is not a recognized BEGIN command, abbreviation, or macro.
This command will be ignored.
上面的例子是《ANSYS工程应用实例解析》的例子
当运行到PLVAROPT,WT时,应该是画WT的迭代曲线图的,但老是出现上面的错误原因。不知为什么! |