声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 2255|回复: 3

[CFD及热分析] 一个温度场分析例子

[复制链接]
发表于 2005-12-23 09:20 | 显示全部楼层 |阅读模式

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

您需要 登录 才可以下载或查看,没有账号?我要加入

x
/PREP7 <BR>!********************* <BR>ET,1,SOLID70 !thermal solid <BR><BR>MP,KXX,1,.5e-3 !weld on right <BR>MP,C,1,.2 <BR>MP,DENS,1,.2833 <BR>MPTEMP,1,0,2643,2750,2875,3000 !enthalpy as function of time <BR>MPDATA,ENTH,1,1,0,128.1,163.8,174.2,184.6 <BR><BR>MP,KXX,2,.5e-3 !solid material <BR>MP,C,2,.2 <BR>MP,DENS,2,.2833 <BR><BR>MP,KXX,3,0.5e-3 !weld on left <BR>MP,C,3,.2 !for t=[0,1000]: only right weld, left weld has no therm conduct <BR>MP,DENS,3,.2833 !for t&gt;1000: left weld is activated <BR><BR>W=1.20 <BR>TL=.34 <BR>TWELD=.2 ! weld thickness <BR>TPIVOT=TL ! thickness of support bar <BR>TPHALF=TPIVOT/2 <BR>WIDTH=W ! width of support bar <BR>WHALF=WIDTH/2 <BR>LCYL=2.5 ! length of cylinder <BR>LHALF=LCYL/2 <BR>RID=.50 ! inside radius of cylinder <BR>ROD=.75 ! outside radius of cylinder <BR>*AFUN,DEG <BR>ANG1=50-ASIN(TPHALF/ROD)-2*ASIN(TWELD/(2*ROD)) <BR>ANG2=50-ASIN(TPHALF/ROD) <BR>ANG3=50+ASIN(TPHALF/ROD) <BR>ANG4=50+ASIN(TPHALF/ROD)+2*ASIN(TWELD/(2*ROD)) <BR>WPST,-1 ,1 ,-10 ,10 ,.003 ,3 <BR><BR>/PNUM,VOLU,1 <BR>/VIEW,1,-.2,.2,1 <BR>CYLIND,RID,ROD,-LHALF,-WHALF,-90,ANG1 <BR>CYLIND,RID,ROD,-WHALF,+WHALF,-90,ANG1 <BR>CYLIND,RID,ROD,+WHALF,+LHALF,-90,ANG1 <BR>CYLIND,RID,ROD,-LHALF,-WHALF,ANG1,ANG2 <BR>CYLIND,RID,ROD,-WHALF,+WHALF,ANG1,ANG2 <BR>CYLIND,RID,ROD,+WHALF,+LHALF,ANG1,ANG2 <BR>CYLIND,RID,ROD,-LHALF,-WHALF,ANG2,ANG3 <BR>CYLIND,RID,ROD,-WHALF,+WHALF,ANG2,ANG3 <BR>CYLIND,RID,ROD,+WHALF,+LHALF,ANG2,ANG3 <BR>CYLIND,RID,ROD,-LHALF,-WHALF,ANG3,ANG4 <BR>CYLIND,RID,ROD,-WHALF,+WHALF,ANG3,ANG4 <BR>CYLIND,RID,ROD,+WHALF,+LHALF,ANG3,ANG4 <BR>CYLIND,RID,ROD,-LHALF,-WHALF,ANG4,90 <BR>CYLIND,RID,ROD,-WHALF,+WHALF,ANG4,90 <BR>CYLIND,RID,ROD,+WHALF,+LHALF,ANG4,90 <BR><BR>/TYPE,1,4 <BR>WPROT,50 ! vol 16 (used to trim welds) <BR>BLOCK,.6,rod*cos(asin(tphalf/rod))+tweld,-tphalf,tphalf,-whalf,whalf <BR>CSWPLA,11,0 <BR>KSEL,S,LOC,X,.75*COS(ASIN(TPHALF/ROD)) <BR>KSEL,R,LOC,Y,-TPHALF <BR>KSEL,R,LOC,Z,LHALF <BR>*GET,KNUM1,KP,,NUM,MAX <BR>KSEL,S,LOC,X,.75*COS(ASIN(TPHALF/ROD)) <BR>KSEL,R,LOC,Y,TPHALF <BR>KSEL,R,LOC,Z,LHALF <BR>*GET,KNUM2,KP,,NUM,MAX <BR>KSEL,ALL <BR>WPRO,-50 <BR>CSYS,0 <BR>LOCAL,12,0,KX(KNUM1),KY(KNUM1) <BR>CSYS,0 <BR>LOCAL,13,0,KX(KNUM2),KY(KNUM2) <BR>WPCSYS,-1,12 <BR>VSEL,U,,,1,16 <BR>CYLIND,,TWELD,-WHALF,WHALF,(ANG1+ANG2)/2-90,70 <BR>/DIST,1,.6 <BR>/FOCUS,1,.47,.59 <BR>WPCSYS,-1,13 <BR>CYLIND,,TWELD,-WHALF,WHALF,35,90+(ANG3+ANG4)/2 <BR>VSEL,ALL <BR>BOPT,keep,yes, <BR>bopt,version,rv52 <BR>VSEL,S,,,5,17,12 <BR>VSBV,17,5 <BR>VSEL,A,,,16,19,3 <BR>VSBV,19,16 <BR>VSEL,A,,,11,18,7 <BR>VSBV,18,11 <BR>VSEL,A,,,16,21,5 <BR>VSBV,21,16 <BR>VSEL,ALL <BR>WPSTYLE,default <BR>/FOCUS,,.5,.5 <BR>/DIST,1,.6 <BR>CYLIN,.6,SQRT((ROD+.01)**2+TPHALF**2),-2,+2,10,90 <BR>BOPT,keep,no <BR>VSEL,S,,,20,22,2 <BR>VSEL,A,,,23 <BR>VSEL,ALL <BR>VOVLAP,20,22,23 <BR>VDELE,16,21,1,1 <BR>VDELE,28,,,1 <BR>/TYPE,1,4 <BR ><BR >
回复
分享到:

使用道具 举报

 楼主| 发表于 2005-12-23 09:21 | 显示全部楼层

回复:(panwang)一个温度场分析例子

CSYS,0 <BR>WPCSYS,-1 <BR>WPROT,50 <BR><BR>NUMSTR,VOLU,29 <BR>block,ROD+.01,ROD*COS(ASIN(TPHALF/ROD))+TWELD,-TPHALF,TPHALF,-WHALF,WHALF <BR>NUMSTR,VOLU,30 <BR>BLOCK,ROD*COS(ASIN(TPHALF/ROD))+TWELD,3,-TPHALF,TPHALF,-WHALF,WHALF <BR>NUMMRG,KP <BR>VSEL,S,,,24,26,2 ! right hand weld (make mat 1) <BR>ESIZE,.1 <BR>VMESH,ALL <BR>MAT,3 <BR>vsel,s,,,25,27,2 ! left hand weld (make mat 3 - dead) <BR>vmesh,all <BR>ALLSEL,ALL <BR>VSEL,S,,,24,27,1 <BR>VSEL,A,,,30 <BR>VSEL,INVE <BR>ESIZE,.1 <BR>MAT,2 <BR>VMESH,ALL <BR>ESIZE,.2 <BR>LSEL,S,,,198,199 <BR>LESIZE,ALL,,,8,5,1 <BR>LSEL,S,,,196,201,5 <BR>LESIZE,ALL,,,8,.2,1 <BR>ALLSEL,ALL <BR>VMESH,30 <BR>NUMCMP,all <BR>WPSTYLE,,,,,,,,0 <BR>esel,s,mat,,3 <BR>ekill,all <BR>allsel,all <BR>SAVE,mesh,DB <BR>FINI <BR>! <BR>! <BR>!********************* <BR>/SOLU <BR>!********************* <BR>ANTYPE,TRANS <BR><BR>!Initialization of temperatures <BR>!---------------------------- <BR>TIMINT,OFF <BR>ESEL,S,MAT,,1 !weld on right <BR>NSLE <BR>D,ALL,TEMP,3000 !To(weld)=3000 <BR>NSEL,INVE <BR>D,ALL,TEMP,70 !To(steel)=70 <BR>TIME,1 <BR>KBC,0 <BR>NSUBST,2,2,2 <BR>OUTRES,BASIC,2 <BR>ALLSEL,all <BR>SOLVE <BR>SAVE,therm,db <BR><BR>!Phase change for weld on right (time varies from 1 to 100 and from 100 to 1000) <BR>!---------------------------------------------------------------------------------- <BR>OUTRES,NSOL,1 <BR>DDELE,ALL,TEMP <BR>TIMINT,ON <BR>TINTP,,,,1 <BR>TIME,100 !phase change <BR>DELTIME,1,.5,10 <BR>AUTOTS,ON <BR>ASEL,S,EXT <BR>ASEL,U,LOC,X,0 <BR>SFA,ALL,,CONV,5E-5,70 <BR>ALLSEL,ALL <BR>SOLVE <BR><BR>TIME,1000 !solidification <BR>DELTIME,50,10,500 <BR>AUTOTS,ON <BR>SOLVE <BR>FINI <BR><BR>!Phase change for weld on right (time varies from 1e3 to 1100 and from 1100 to 2000) <BR>!--------------------------------------------------------------------------------------- <BR>/PREP7 <BR>EALIVE,ALL <BR>ALLSEL,all <BR>FINI <BR><BR>/SOLU <BR>ANTYPE,TRANS,REST <BR>vsel,s,,,17 <BR>vsel,a,,,19 <BR>nslv,,1 <BR>d,all,temp,3000 <BR>time,1001 <BR>nsubst,2,2,2 <BR>allsel,all <BR>solve <BR><BR>ANTYPE,TRANS,REST <BR>DDELE,ALL,TEMP <BR>TIME,1100 <BR>DELTIME,1,.5,10 <BR>SOLVE <BR>TIME,2000 <BR>DELTIME,100,10,200 <BR>SOLVE
发表于 2006-6-27 09:21 | 显示全部楼层
<P>好,程序有点长,能后注释说明看起来就方便了。</P>
发表于 2006-6-27 12:38 | 显示全部楼层
<P>是呀,能不能把注释补上啊,非常好的例子</P>
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-11-14 22:01 , Processed in 0.062827 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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