-------------------------------------------------- !定义单元类型 /prep7 ET,1,BEAM3 R,1,0.09,0.000675,0.3, !0.3*0.3m截面 MP,EX,1,2.06e11 MP,NUXY,1,0.3 MP,DAMP,1,0.02 !阻尼比0.02 MP,dens,1,7.85e3 !--------------------------------------------------
!定义单元类型
/prep7
ET,1,BEAM3
R,1,0.09,0.000675,0.3, !0.3*0.3m截面
MP,EX,1,2.06e11
MP,NUXY,1,0.3
MP,DAMP,1,0.02 !阻尼比0.02
MP,dens,1,7.85e3
!--------------------------------------------------
!定义节点单元和位移约束
*do,i,1,11
n,i,(i-1)*0.5,0,0 !5m长,分10段
*enddo
*do,i,1,10
e,i,i+1
*enddo
d,1,ALL,0
!--------------------------------------------------
!定义和读入时程曲线
NT=1000 !时程曲线有NT个点
DT=0.01 !时间间隔
*dim,ac,,NT
!读入数据,这个数据文件可以用excel等软件来写
/input,tianjin,txt !天津波东西向共10秒
!--------------------------------------------------
/SOLU
NSUBST,1, , ,1 !1个子步
OUTRES,ALL,1 !输出每个子步的结果
ANTYPE,TRANS !时程分析
*do,i,1,NT
ACEL,0,ac(i),0
TIME,i*DT
solve
*enddo
!--------------------------------------------------
/POST26
NSOL,2,11,U,Y,
PLVAR,2,3, , , , , , , , ,
觉得不错 拿来共享下