|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
下面代码基本上是按照帮助文档中的例子编写的,在运行的时候总是在计算时出错!
出错的提示信息见附件。
麻烦诸位帮忙找找代码中何处有错,感激不尽!
/title,coupled field analysis
/prep7
!structural-mechanical coupled field analysis for micro cantilever beam
et ,1, 121
! plane121 element for air region
et ,2, 121
!temporary element for beam region
emunit, epzro, 8.854e-6
! free-space permittivity for air
bl=240
! beam length
bh=2
! beam height
gh=1
! ground conductor thickness
gap=2
! air gap
vltg=6
! applied voltage
nu=0.25
rectng, 0 , bl , gap , bh+gap
rectng, 0,bl,-gh,0
rectng, -8,bl+8,-6, 9
aovlap, all
asel, s, area, ,1
! area for beam
aatt, 1,,1
asel, s,area,, 4
! area for air elements
cm,air,area
! group air area into component
aatt, 2,, 2
allsel, all
smrtsiz, 2
amesh,1
! mesh beam
mshape,1
amesh,4
! mesh air with triganles
asel,s,area,,1
lsla,s
dl,all,,volt, vltg
! apply voltage to beam
asel,s,area,, 2
lsla, s
dl, all,,volt,0
! ground conductor(not meshed)
allsel, all
et, 1, 0
! set structure to null element type
physics, write, ELECTROS
! write electrostatic physics file
physics, clear
! clear physics
et, 1,82,,,2
! define beam element y type
et,2,0
! set air to null element type
mp,ex,1,169e3
mp,nuxy, 1,nu
dl, 4,,ux, 0
! apply beam constraints
dl, 4,, uy, 0
dl,2,, symm
allsel,all
finish
physics, write, STRUCTURE
!write structural physics file
ESSOLV, ‘ELECTROS’, ‘STRUCTURE’, 2, 0, ‘air’,,,,100
! solve coupled-field problem !该行代码运行出错
Finish
Physics,read, STRUCTURE
! read electrostatic physics file
/post1
Set, last
! retrive results |
-
|