找回密码
 注册
Simdroid-非首页
查看: 207|回复: 4

[压电] 请教双压电驱动悬臂梁振动的仿真!

[复制链接]
发表于 2008-1-4 21:58:44 | 显示全部楼层 |阅读模式 来自 黑龙江哈尔滨
小弟是新手,现在做双压电驱动悬臂梁振动的仿真,即一金属悬臂梁,上下两压电片,分别给正弦和余弦信号驱动,由于刚开始学,攒了一段程序,请高手详细指教,不胜感激!
/prep7
thb=1e-3                                          !thickness of beam
thp=0.3e-3                                      !thickness of piezo
wb=20e-3                                         !width of beam
lb=40e-3                                         !length of beam
wp=20e-3                                        !width of piezo
lp=10e-3                                         !length of piezo
/units,si                                             !modelling of structure
block,0,lp,0,wp,0,thp
block,0,lp,0,wb,thp,thb+thp
block,lp,lb,0,wb,thp,thb+thp
block,0,lp,0,wp,thb+thp,thb+thp+thp
vglue,all                              
et,1,solid5,3                                        !define element 1 with material 3 of solid5
mp,dens,3,7600
mp,perx,3,7.124e-9                             !input of permittivity matrix
mp,pery,3,7.124e-9
mp,perz,3,5.841e-9
tb,piez,3                                            !input of piezoelectric matrix [e] or [d]
tbdata,16,10.5
tbdata,14,10.5
tbdata,3,-4.1
tbdata,6,-4.1
tbdata,9,14.1
tb,anel,3                                           !input of elastic coefficient matrix [c]
tbdata,1,13.2e10,7.1e10,7.3e10
tbdata,7,13.2e10,7.3e10
tbdata,12,11.5e10
tbdata,16,3.0e10
tbdata,19,2.6e10
tbdata,21,2.6e10
et,2,solid45                                     !define element 2 with material 2 of solid45
mp,ex,2,1.06e11
mp,nuxy,2,0.35
mp,dens,2,8920
esize,1e-3                           
type,1
mat,3
vmesh,5
vmesh,6
type,2
mat,2
vmesh,1
vmesh,7
nsel,s,loc,z,thp+thb+thp
nsel,r,loc,x,0,lp
cp,1,volt,all                       !add volt 1
nsel,all
nsel,s,loc,z,thp+thb
nsel,r,loc,x,0,lp
cp,2,volt,all
d,all,volt,0                         !to the gnd
nsel,all
nsel,s,loc,z,thp
nsel,r,loc,x,0,lp
cp,2,volt,all
d,all,volt,0                         !to the gnd
nsel,all
nsel,s,loc,z,0
nsel,r,loc,x,0,lp
cp,3,volt,all                        !add volt 3         
nsel,s,loc,x,0
nsel,r,loc,z,thp,thp+thb
d,all,ux,0,,,,uy,uz               !constraint all DOFs at the left
nsel,all
*SET,t,1e-3
*SET,con,1e-7   
*SET,n,60   
*SET,pi,2*asin(1)   
*SET,Fv,74300   
NEQIT,1
finish
/solu   
antyp,trans   
trnopt,full
tintp,,0.25,0.5,0.5   
alphad,0.25           
betad,0.5            
kbc,1                 
*CREATE,LOAD
time,t  
volt1=100*sin(2*pi*Fv*t)
volt2=100*cos(2*pi*Fv*t)
d,1,volt,volt1   
d,3,volt,volt2
alls
t=t+1e-3
OUTPR,BASIC,1
OUTRES,ALL,1
SOLVE   
*END
*DO,I,1,41  
*USE,LOAD   
*enddo
fini
发表于 2009-4-19 14:29:34 | 显示全部楼层 来自 南开大学
Simdroid开发平台
不错。顶
回复 不支持

使用道具 举报

发表于 2009-4-20 08:59:57 | 显示全部楼层 来自 安徽合肥
这个程序,材料类型和单元类型有问题吧
回复 不支持

使用道具 举报

发表于 2010-4-13 21:29:21 | 显示全部楼层 来自 四川成都
运行出错哈
回复 不支持

使用道具 举报

发表于 2010-4-16 11:28:14 | 显示全部楼层 来自 天津
运行出错哈
回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Simapps系列直播

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-9-30 11:41 , Processed in 0.033165 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表