找回密码
 注册
查看: 2675|回复: 2

ANSYS 帮助文件中的感应加热有问题

[复制链接]
发表于 2009-4-24 16:16:29 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
/config,nres,10000
/batch,list
/filenam, induc
/prep7
shpp,off
/title, induction heating of a solid cylinder billet
/com,
et,1,13,,,1             ! PLANE13, axisymmetric, AZ dof
et,2,13,,,1
et,3,151,,,1,1,1        ! SURF151, thermal, radiation
r,3,0                   ! Real constant set for SURF151
row=.015                ! outer radius of workpiece
ric=.0175               ! inner radius of coil
roc=.0200               ! outer radius of coil
ro=.05                  ! outer radius of model
t=.001                  ! model thickness
freq=150000             ! frequency (Hz.)
pi=4*atan(1)            ! pi
cond=.392e7             ! maximum conductivity
muzero=4e-7*pi          ! free-space permeability
mur=200                 ! maximum relative permeability
skind=sqrt(1/(pi*freq*cond*muzero*mur)) ! skin depth
ftime=3                   ! final time
tinc=.05                ! time increment for harmonic analysis
time=0                  ! initialize time
delt=.01                ! maximum delta time step
emunit,mks                  ! set magnetic units
mp,murx,1,1             ! air relative permeability
mp,murx,3,1             ! coil relative permeability
mptemp,1,25.5,160,291.5,477.6,635,698   ! temps for relative permeability
mptemp,7,709,720.3,742,761,1000
mpdata,murx,2,1,200,190,182,161,135,104 ! steel relative permeability
mpdata,murx,2,7,84,35,17,1,1
mptemp
mptemp,1,0,125,250,375,500,625          ! temps for resistivity
mptemp,7,750,875,1000
mpdata,rsvx,2,1,.184e-6,.272e-6,.384e-6,.512e-6,.656e-6,.824e-6
mpdata,rsvx,2,7,1.032e-6,1.152e-6,1.2e-6 ! steel resistivity
rectng,0,row,0,t        ! billet
rectng,row,ric,0,t      ! air-gap
rectng,ric,roc,0,t      ! coil
rectng,roc,ro,0,t       ! outer air
aglue,all
numcmp,area
ksel,s,loc,x,row        ! select keypoints at outer radius of workpiece
kesize,all,skind/2      ! set meshing size to 1/2 skin depth
ksel,s,loc,x,0          ! select keypoints at center
kesize,all,40*skind     ! set meshing size
lsel,s,loc,y,t/2        ! select vertical lines
lesize,all,,,1          ! set 1 division through thickness
lsel,all
asel,s,area,,1
aatt,2,1,1              ! set attributes for billet region
asel,s,area,,3
aatt,3,1,2              ! set attributes for coil region
asel,s,area,,2,4,2
aatt,1,1,2              ! set attributes for air region
asel,all
mshape,0,2d
mshk,1
amesh,1                 ! mesh billet area
lsel,s,loc,y,0
lsel,a,loc,y,t
lsel,u,loc,x,row/2
lesize,all,.001
lsel,all
amesh,all               ! mesh remaining areas
n                       ! create space node for SURF151   
*get,nmax,node,,num,max
lsel,s,loc,x,row
type,3
real,3
mat,2
lmesh,all               ! mesh billet outer radius with SURF151      
*get,emax,elem,,num,max
emodif,emax,3,nmax      ! modify element to add space node for radiation
et,3,0                  ! reset type 3 to null element
nsel,s,loc,x
d,all,az,0              ! apply flux-normal b.c.
nsel,all
esel,s,mat,,3
bfe,all,js,,,,15e6      ! apply current density to coil
esel,all
finish
/solu
antyp,harm
harfrq,150000
physics,write,emag      ! write emag physics file
finish
/prep7
lsclear,all             ! clear all b.c.'s and options
et,1,55,,,1             ! PLANE55 thermal element, axisymmetric
et,2,0                  ! null element type for coil and air region
et,3,151,,,1,1,1        ! SURF151 element for radiation
keyopt,3,9,1
r,3,1,5.67e-8           ! form factor, Stefan-Boltzmann constant
mptemp
mptemp,1,0,730,930,1000         ! temps for conductivity
mpdata,kxx,2,1,60.64,29.5,28,28
mptemp                          ! temps for enthalpy
mptemp,1,0,27,127,327,527,727
mptemp,7,765,765.1,927
mpdata,enth,2,1,0,91609056,453285756,1.2748e9,2.2519e9,3.3396e9
mpdata,enth,2,7,3.548547e9,3.548556e9,4.3520e9
mp,emis,2,.68                   ! emissivity
finish
/solu
antype,trans
toffst,273
tunif,100                       ! initial uniform temperature
d,nmax,temp,25                  ! ambient temperature
cnvtol,heat,1                   ! convergence tolerance
kbc,1                           ! step loads
trnopt,full
autos,on                        ! auto time-stepping
deltim,1e-5,1e-6,delt,on        ! time step control
outres,basic,all                ! save all load step information
physics,write,thermal           ! write thermal physics file
finish
*do,i,1,ftime/tinc        ! solution *do loop
time=time+tinc                    ! increment time
physics,read,emag               ! read emag physics file
/solu
*if,i,eq,1,then
tunif,100                    ! initial temperature
*else
ldread,temp,last,,,,,rth     ! read thermal analysis temperatures
*endif
solve                         ! solve harmonic analysis
finish
physics,read,thermal          ! read thermal physics file
/assign,esav,therm,esav       ! redirect files for use in thermal restart
/assign,emat,therm,emat
/solu
*if,i,gt,1,then
antype,trans,rest            ! thermal restart
*endif
time,time                     ! time at end of thermal run
esel,s,mat,,2                 ! select billet region
ldread,hgen,,,,2,,rmg         ! apply coupled joule heating load from emag
esel,all
solve
finish
/assign,esav                  ! reassign files to default
/assign,emat
*enddo                        ! end of solution looping
finish
save                          ! save database
/post26                       ! time-history postprocessor
/show
nsol,2,1,temp,,tempcl         ! store temperature at billet centerline
nsol,3,2,temp,,tempsurf       ! store temperature at billet outer diameter
plvar,2,3                     ! plot temperature rise over time
prvar,2,3                     ! print temperature rise over time
finish
 楼主| 发表于 2009-4-24 16:18:51 | 显示全部楼层
计算之后结果有问题,本来时间设置为3秒,可计算的结果显示59秒左右,而且得到的温度曲线也不一致
请坐过的各位大侠指点迷津,是不是后面的循环出了问题啊?晕
 楼主| 发表于 2009-4-24 16:21:52 | 显示全部楼层
可惜网站上死活图都贴不上去,说格式不支持
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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