焊接模拟 双椭球例子
大家好,下面是我做的双椭球热源的焊接模拟,可是温度最高才1000多,不知道错在什恶魔地方了,请大家指点一下,最下面的两个式子是双椭球的函数表达式。。finish
/clear,start !清除数据库以开始新的分
/filname,reverse-shuang tuo qiu,0
/title,hanhanahanhan
/units,si
/prep7
ET,1,SOLID70
keyopt,1,2,1
ET,2,SOLID90
MPTEMP,1,20,100,200,300,400,500,
MPTEMP,7,600,700,800,900,1000,1500
MPDATA,KXX,1,1,152,159,164,165,168,196,
MPDATA,KXX,1,7,209,162,162,162,162,162
MPDATA,DENS,1,1,2680,2662,2646,2620,2600,2580,
MPDATA,DENS,1,7,2436,2384,2384,2384,2384,2384
MPDATA,C,1,1,956,963,1047,1130,1224,1308,
MPDATA,C,1,7,1412,1084,1084,1084,1084,1084
MPDATA,HF,1,1,8.22,11.0,13.7,23.2,33.4,46.8,
MPDATA,HF,1,7,58.0,68.5,68.5,68.5,68.5,68.5
lx=0.08
ly=0.2
lz=0.005
r=0.002
D=0.005!焊缝宽度
ah=D/2!双椭球热源参数定义
chf=2*ah
chb=8*ah
bh=0.005
rf=2*chf/(chf+chb)
rb=2*chb/(chf+chb)
K=0.7 功率有效系数
I=120
U=24
q0=I*U
q=q0*K!有效功率
pi=3.141592654
step=0.002
v=0.006
!count=ly/step
count=10
!***********************************
!定义单元类型
!***********************************
!建立几何模型
!***********************************
wpstyle,,,,,,,,0
block,0,0.006,0,ly,0,-lz
block,0,0.012,0,ly,0,-lz
block,0,0.024,0,ly,0,-lz
block,0,lx,0,ly,0,-lz
vovlap,all
/view,1,1,1,1
!定义焊缝区单元尺寸0.002
lesize,7,0.001
lesize,2,0.001
lesize,12,0.001
lesize,11,0.001
lesize,6,0.001
lesize,3,0.001
lesize,8,0.001
lesize,1,0.001
lesize,4,0.001
lesize,9,0.001
lesize,5,0.001
lesize,10,0.001
!定义过渡区的单元尺寸
lesize,15,r
lesize,18,r
!定义远离焊缝区的单元尺寸
lesize,34,1.25*0.001
lesize,35,1.25*0.001
lesize,47,1.25*0.001
lesize,46,1.25*0.001
lesize,39,4*r
lesize,42,4*r
lesize,57,4*r
lesize,60,4*r
lesize,27,4*r
lesize,30,4*r
lesize,58,4*r
lesize,59,4*r
!***********************************
!划分网格,生生有限元模型
!***********************************
type,1
mshkey,1
mshape,0
vmesh,1
vmesh,7
type,2
mshkey,0
mshape,1
vmesh,5
vmesh,6
numcmp,area
save
!***********************************
!循环加载、求解
!***********************************
!施加载荷
/solu
*do,i,0,count
disy=i*step
t=(disy+step)/v
antype,4
trnopt,full
tunif,293
outres,basic,last
time,t
nropt,full,,on
autots,1
nsubst,1,,,1
kbc,1
lnsrch,1
tsres,erase
!TINTP,,,,1,,,,,
timint,1,therm
!***********************************
!焊接过程开始
!***********************************
nsel,s,ext,
nsel,u,loc,x,0 !------改
sf,all,conv,200,293 !------改
allsel,all
!***********************************
!***********************************
!双椭球热源的加载
!***********************************
!前半球节点的选取
!***********************************
LOCAL,11,2,0,disy,0.000,,,,chf/ah,bh/ah,
NSEL,S,LOC,X,0,ah
NSEL,R,LOC,Y,0,90
NSEL,R,LOC,Z,-90,0
CM,FRONT,NODE
LOCAL,13,0,0,disy,0.000,,,,1,1,
!!!前半球函数、表格定义
*DEL,_FNCNAME
*DEL,_FNCMTID
*DEL,_FNC_C1
*DEL,_FNC_C2
*DEL,_FNC_C3
*DEL,_FNC_C4
*DEL,_FNC_C5
*DEL,_FNCCSYS
*DEL,'TFRONT'
*SET,_FNCNAME,'TFRONT'
*DIM,_FNC_C1,,1
*DIM,_FNC_C2,,1
*DIM,_FNC_C3,,1
*DIM,_FNC_C4,,1
*DIM,_FNC_C5,,1
*SET,_FNC_C1(1),q
*SET,_FNC_C2(1),rf
*SET,_FNC_C3(1),ah
*SET,_FNC_C4(1),chf
*SET,_FNC_C5(1),bh
*SET,_FNCCSYS,13
*DIM,%_FNCNAME%,TABLE,7,38,1,,,,%_FNCCSYS%
%_FNCNAME%(0,0,1)= 0.0, -999
%_FNCNAME%(2,0,1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2, 0, 0, 4
%_FNCNAME%(0,23,1)= 0.0, -4, 0, 1, 4, 17, -1
%_FNCNAME%(0,24,1)= 0.0, -1, 0, 2, 0, 0, 21
%_FNCNAME%(0,25,1)= 0.0, -6, 0, 1, 21, 17, -1
%_FNCNAME%(0,26,1)= 0.0, -1, 0, 1, -4, 4, -6
%_FNCNAME%(0,27,1)= 0.0, -4, 0, 1, -5, 1, -1
%_FNCNAME%(0,28,1)= 0.0, -1, 0, 1, -3, 3, -4
%_FNCNAME%(0,29,1)= 0.0, -1, 7, 1, -1, 0, 0
%_FNCNAME%(0,30,1)= 0.0, -3, 0, 1, -2, 3, -1
%_FNCNAME%(0,31,1)= 0.0, -1, 16, 3.14159265358979310, 0, 0, 0
%_FNCNAME%(0,32,1)= 0.0, -2, 0, 3.14159265358979310, 0, 0, -1
%_FNCNAME%(0,33,1)= 0.0, -4, 0, 1, -2, 3, -1
%_FNCNAME%(0,34,1)= 0.0, -1, 0, 1, -4, 3, 20
%_FNCNAME%(0,35,1)= 0.0, -2, 0, 1, -1, 3, 19
%_FNCNAME%(0,36,1)= 0.0, -1, 0, 1, -2, 3, 21
%_FNCNAME%(0,37,1)= 0.0, -2, 0, 1, -3, 4, -1
%_FNCNAME%(0,38,1)= 0.0, 99, 0, 1, -2, 0, 0
BF,FRONT,HGEN,%TFRONT%
CMDELE,FRONT
ALLSEL,ALL
!!!后半球节点的选取
LOCAL,12,2,0,disy,0,,,,chb/ah,bh/ah,
NSEL,S,LOC,X,0,ah
NSEL,R,LOC,Y,-90,0
nsel,r,loc,y,-90,0
CM,BEHIND,NODE
!!!后半球加载
LOCAL,14,0,0,disy,0,,,,1,1,
!!!后半球函数、表格定义
!!!后半球函数、表格定义
*DEL,_FNCNAME
*DEL,_FNCMTID
*DEL,_FNC_C1
*DEL,_FNC_C2
*DEL,_FNC_C3
*DEL,_FNC_C4
*DEL,_FNC_C5
*DEL,_FNCCSYS
*DEL,'TBEHIND'
*SET,_FNCNAME,'TBEHIND'
*DI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,1)= 0.0, -4, 0, 2, 0, 0, 3
%_FNCNAME%(0,17,1)= 0.0, -5, 0, 1, 3, 17, -4
%_FNCNAME%(0,18,1)= 0.0, -4, 0, 2, 0, 0, 20
%_FNCNAME%(0,19,1)= 0.0, -6, 0, 1, 20, 17, -4
%_FNCNAME%(0,20,1)= 0.0, -4, 0, 1, -5, 4, -6
%_FNCNAME%(0,21,1)= 0.0, -5, 0, 1, -1, 1, -4
%_FNCNAME%(0,22,1)= 0.0, -1, 0, 2, 0, 0, 4
%_FNCNAME%(0,23,1)= 0.0, -4, 0, 1, 4, 17, -1
%_FNCNAME%(0,24,1)= 0.0, -1, 0, 2, 0, 0, 21
%_FNCNAME%(0,25,1)= 0.0, -6, 0, 1, 21, 17, -1
%_FNCNAME%(0,26,1)= 0.0, -1, 0, 1, -4, 4, -6
%_FNCNAME%(0,27,1)= 0.0, -4, 0, 1, -5, 1, -1
%_FNCNAME%(0,28,1)= 0.0, -1, 0, 1, -3, 3, -4
%_FNCNAME%(0,29,1)= 0.0, -1, 7, 1, -1, 0, 0
%_FNCNAME%(0,30,1)= 0.0, -3, 0, 1, -2, 3, -1
%_FNCNAME%(0,31,1)= 0.0, -1, 16, 3.14159265358979310, 0, 0, 0
%_FNCNAME%(0,32,1)= 0.0, -2, 0, 3.14159265358979310, 0, 0, -1
%_FNCNAME%(0,33,1)= 0.0, -4, 0, 1, -2, 3, -1
%_FNCNAME%(0,34,1)= 0.0, -1, 0, 1, -4, 3, 20
%_FNCNAME%(0,35,1)= 0.0, -2, 0, 1, -1, 3, 19
%_FNCNAME%(0,36,1)= 0.0, -1, 0, 1, -2, 3, 21
%_FNCNAME%(0,37,1)= 0.0, -2, 0, 1, -3, 4, -1
%_FNCNAME%(0,38,1)= 0.0, 99, 0, 1, -2, 0, 0
BF,BEHIND,HGEN,%TBEHIND%
CMDELE,BEHIND
ALLSEL,ALL
SOLVE
BFDELE,all,HGEN
*ENDDO
SAVE
!***********************************
!冷却阶段
!***********************************
time,40
nsubst,25
solve
time,640,
nsubst,20
solve
time,2500
nsubst,50
solve
outres,all,all
finish
下面是双椭球的函数式:
6*sqrt(3)*q*rf*exp(-3*({X}^2/ah^2+{Y}^2/chf^2+{Z}^2/bh^2))/({PI}*sqrt({PI})*chf*ah*bh)
6*sqrt(3)*q*rb*exp(-3*({X}^2/ah^2+{Y}^2/chb^2+{Z}^2/bh^2))/({PI}*sqrt({PI})*chb*ah*bh) 走过的都吭个声。。怎么也得说点看法吧。
:@@
\
我也在用 一直在尝试用表面效应单元施加对流边界!!可否一起交流 请问表面效应单元施加对流边界,如何施加,总是加了热源,就不能施加对流
页:
[1]