|
楼主 |
发表于 2011-1-13 11:10
|
显示全部楼层
回复 2 # yejet 的帖子
你好!我加的是离心力,不知道按照你上面的方法怎么来加?下面是我一开始编写的程序,运行之后就出现上面图形的问题,希望能够给予指点~~谢谢
finish
/clear
/prep7
/file,rotordynamic
ro_shaft =0.0095/2
MP,EX,1,2.1E+11
MP,DENS,1,7830
MP,PRXY,1,0.26
!定义单元类型
! ** elements types
et,1,188
sect,1,beam,csolid
secdata, ro_shaft,20
et,2,21 !集中质量单元
r,2,1.4,1.4,1.4,5E-4,5E-4,1E-3
et,5,21 !集中质量单元
r,5,1.15
et,3,14,,1
r,3,90000,48
et,4,14,,2
r,4,90000,48
! ** shaft
type,1
secn,1
mat,1
k,1
k,2,,,0.4
l,1,2
lesize,1,,,10
lmesh,all
! ** disk
type,2
real,2
e,8
type,5
real,5
e,2
! ** bearing
n,60,-0.01,,0.4
type,3
real,3
e,2,60
type,4
real,4
e,2,60
! ** constraints
dk,1,ux,,,,uy
d,all,uz
d,all,rotz
d,60,all
finish
! ** transient tabular force (unbalance)
pi = acos(-1)
spin = 6000*pi/30
tinc = 0.001
tend = 4
spindot = spin/tend
nbp = nint(tend/tinc) + 1
unb =1.4
ro_disk= 5e-5
f0 = unb*ro_disk
*dim,spinTab,table,nbp,,,TIME
*dim,rotTab, table,nbp,,,TIME
*dim,fxTab, table,nbp,,,TIME
*dim,fyTab, table,nbp,,,TIME
*vfill,spinTab(1,0),ramp,0,tinc
*vfill,rotTab(1,0), ramp,0,tinc
*vfill,fxTab(1,0), ramp,0,tinc
*vfill,fyTab(1,0), ramp,0,tinc
tt = 0
*do,iloop,1,nbp
spinVal = spindot*tt
spinTab(iloop,1) = spinVal
spin2 = spinVal**2
rotVal = spindot*tt**2/2
rotTab(iloop,1) = rotVal
sinr = sin(rotVal)
cosr = cos(rotVal)
fxTab(iloop,1)= f0*(-spin2*sinr + spindot*cosr)
fyTab(iloop,1)= f0*( spin2*cosr + spindot*sinr)
tt=tt+tinc
*enddo
fini
! ** transient analysis
/solu
antype,transient
nlgeom,on !! so that the gyroscopic matrix is updated
time,tend
deltim,tinc,tinc/200,tinc*200
kbc,0
coriolis,on,,,on
omega,,,spin
f,8,fx,%fxTab%
f,8,fy,%fyTab%
outres,all,all
solve
fini
|
|