delay 发表于 2015-11-6 15:51

一个用Ansys APDL做的会走得时钟(转)


finish
/clear,start
n=100
deg=-10

/prep7

csys,1
*do,i,1,12
n,i,9,-360/12*i+90
*enddo

csys,0
k,21,
k,22,0,9,
k,23,
k,24,0,6

lstr,21,22
lstr,23,24

k,25,10,10
k,26,-10,10
k,27,-10,-10
k,28,10,-10
lstr,25,26
lstr,26,27
lstr,27,28
lstr,28,25

/GTYPE,1,KEYP,0
/GTYPE,1,LINE,1
/GTYPE,1,AREA,0
/GTYPE,1,VOLU,0
/GTYPE,1,NODE,1
/GTYPE,1,ELEM,0
/GCMD,1
/pnum,node,1
GPLOT

csys,1
*do,i,1,n
LGEN, ,1, , , ,deg, , , ,1
LGEN, ,2, , , ,deg/60, , , ,1
gplot
*vwrite,i
(f8.2)
/wait,0.001
*enddo
页: [1]
查看完整版本: 一个用Ansys APDL做的会走得时钟(转)