cscuxj 发表于 2007-9-19 23:10

我的一个瞬态动力分析的命令流?高手帮忙

我的一个瞬态动力分析的命令流?高手帮忙

简单的分析,不知道对不对,但是最后的的云图好像不对
瞬态分析最后提取结果时要提取某一个时间的数据(如位移)并写入到一个数组里面去该怎么做啊?(最好是命令流的)


/PREP7
!*
ET,1,PLANE182   
!*
!*
MPTEMP,,,,,,,,
MPTEMP,1,0
MPDATA,EX,1,,1000E6
MPDATA,PRXY,1,,0.25
MPTEMP,,,,,,,,
MPTEMP,1,0
MPDATA,DENS,1,,2500
RECTNG,0,3,0,1,
MSHAPE,1,2D
MSHKEY,0
!*
CM,_Y,AREA
ASEL, , , ,       1
CM,_Y1,AREA
CHKMSH,'AREA'   
CMSEL,S,_Y
!*
AMESH,_Y1   
!*
CMDELE,_Y   
CMDELE,_Y1
CMDELE,_Y2
!*
FINISH
/SOL
FLST,2,1,1,ORDE,1   
FITEM,2,1   
!*
/GO
D,P51X, , , , , ,ALL, , , , ,   
FLST,2,1,1,ORDE,1   
FITEM,2,2   
!*
/GO
D,P51X, , , , , ,UY, , , , ,
FLST,2,1,4,ORDE,1   
FITEM,2,3   
/GO
!*
FINISH
/PREP7
*DIM,force,TABLE,3,1,3, , ,
!*
*SET,FORCE(0,1,1) , 1   
*SET,FORCE(1,0,1) , 0   
*SET,FORCE(2,0,1) , 0.15
*SET,FORCE(2,1,1) , 100
*SET,FORCE(3,0,1) , 0.3
*SET,FORCE(0,1,2) , 1   
*SET,FORCE(2,0,2) , 0.15
*SET,FORCE(3,0,2) , 0.3
*SET,FORCE(0,1,3) , 1   
*SET,FORCE(2,0,3) , 0.15
*SET,FORCE(3,0,3) , 0.3
FINISH
/SOL
!*
ANTYPE,4
!*
TRNOPT,FULL
LUMPM,0
!*
DELTIM,0.01,0.01
OUTRES,ERASE
OUTRES,ALL,1
ALPHAD,5
KBC,0   
TIME,0.3
FLST,2,1,4,ORDE,1   
FITEM,2,3   
/GO
!*
!*
SFL,P51X,PRES, %FORCE%
/STATUS,SOLU
SOLVE   
FINISH
/POST1
/EFACE,1
AVPRIN,0, ,
!*
PLNSOL,U,Y,0,1

dqpisheji 发表于 2007-10-10 20:53

瞬态分析最后提取结果时要提取某一个时间的数据(如位移)并写入到一个数组里面去
给你个例子:具体看APDL书,注意要和程序一块运行,单独运行是会出错的。
*DIM,DATA_F,,1000,5            !STORE FIANL DATA.
VGET,DATA_F(1,1),1            !STORE TIME.
VGET,DATA_F(1,2),3            !STORE DIMPLACEMENT.
VGET,DATA_F(1,3),4            !STORE VELOCITY.
VGET,DATA_F(1,4),5            !STORE STRAIN ENERGY.
VGET,DATA_F(1,5),6            !STORE KINETIC ENERGY.

*CFOPEN,DATA_F,DAT
*VWRITE,DATA_F(1,1),DATA_F(1,2),DATA_F(1,3),DATA_F(1,4),DATA_F(1,5)
(2X,5F15.8)
*CFCLOSE
!FINISH
页: [1]
查看完整版本: 我的一个瞬态动力分析的命令流?高手帮忙