这个是ansys命令的问题,你的shell单元没定义常数,命令改了一下你看看应该就可以了,
finish
/cle
/filename,suidao
/title,anlysis of suidao in 3d
/PREP7
et,1,MESH200,6
et,2,28
et,3,solid45
mp,ex,2,2.1E11
mp,prxy,2,0.3
mp,dens,2,2800
r,2,0.001
k,1,0.3,0.3,0.3
k,2,2.3,0.3,0.3
k,3,2.3,2.3,0.3
k,4,0.3,2.3,0.3
k,5,0.3,2.6,0.3
k,6,2.3,2.6,0.3
k,7,2.3,4.6,0.3
k,8,0.3,4.6,0.3
k,9,0.3,0.3,3.3
k,10,2.3,0.3,3.3
k,11,2.3,2.3,3.3
k,12,0.3,2.3,3.3
k,13,0.3,2.6,3.3
k,14,2.3,2.6,3.3
k,15,2.3,4.6,3.3
k,16,0.3,4.6,3.3
l,1,2
l,2,3
l,3,4
l,4,1
l,5,6
l,6,7
l,7,8
l,8,5
l,1,9
l,2,10
l,4,12
l,3,11
l,5,13
l,6,14
l,8,16
l,7,15
l,9,10
l,10,11
l,11,12
l,12,9
l,13,14
l,14,15
l,15,16
l,16,13
a,1,2,3,4
a,5,6,7,8
a,1,2,10,9
a,4,1,9,12
a,5,13,16,8
a,8,7,15,16
a,7,6,14,15
a,3,2,10,11
a,12,9,10,11
a,16,13,14,15
lsel,s,line,,1,8,1
lesize,all,,,5
lsel,s,line,,17,24,1
lesize,all,,,5
lsel,s,line,,9,16,1
lesize,all,,,6
allsel
type,2
mat,2
real,2
amesh,all
allsel
cdwrite,all,wq,cdb |