|
楼主 |
发表于 2005-9-26 09:42
|
显示全部楼层
回复:(VibInfo)[转帖]ANSYS热分析例子(Solidificat...
/solu ! Enter Solution<BR>antype,trans ! specify transient analysis<BR>timint,off ! turn off time integration<BR>time,1e-3 ! use a small value of time for this load step<BR>deltim,1e-3 ! run one substep to initialize temperature<BR>esel,s,mat,,1 ! select sand elements and nodes<BR>nsle,s,1 <BR>d,all,temp,25 ! set initial temperature of sand<BR>esel,s,mat,,2 ! select all aluminum elements and nodes<BR>nsle,s,1<BR>d,all,temp,750 ! set initial temperature of aluminum<BR>lsel,s,loc,x,radm ! select lines on OD for convection loading<BR>sfl,all,conv,hside,,30 ! specify outside wall convection<BR>lsel,s,loc,y,hgtm ! select lines for top convection loading<BR>sfl,all,conv,htop,,30 ! specify top convection load<BR>
<br><BR>allsel ! select everything <BR>!<BR>solve ! solve<BR>ddele,all,temp ! delete initial temperature specs<BR>timint,on ! turn on time integration<BR>tintp,,,,1 ! specify use EULER bakward diff. integration <BR>lnsrch,on ! turn on linesearch<BR>autots,on ! auto time stepping on<BR>neqit,99 ! limit number of equilibrium iterations to 99<BR>time,2400 ! set final time to 40 minutes<BR>deltim,0.01,0.0001,100 ! use small initial time step<BR>outres,all,1 ! store all solutions on the results file<BR>solve ! solve the transient load step<BR>/psf,conv,,2 ! turn on plotting of convection<BR>eplot ! plot elements<BR>/psf,default ! reset plotting<BR>finish<BR>save ! save the database<BR>!<BR>/post26 ! enter the time-history postprocessor<BR>solu,2,dtime,,deltime ! DELTIM for each step<BR>!<BR>nsol,3,node((rad1+rad2)/2,0,0,),temp,,T1 ! define checking points T1-T4<BR>nsol,4,node(rad2,0,0),temp,,T2<BR>nsol,5,node(rad3,0,0),temp,,T3<BR>nsol,6,node((rad3+rad4)/2,0,0),temp,,T4<BR>nsol,7,node(0,hgtm,0),temp,,SandTOP ! define checking points for mold<BR>nsol,8,node(radm,hgtm,0),temp,,SandCRNR<BR>nsol,9,node(0,-hgtm,0),temp,,SandBOT<BR>!<BR>plvar,2 ! plot results variables defined above<BR>plvar,3,4,5,6<BR>plvar,7,8,9<BR>*GET,nsets,VARI,,NSET ! get the number of datasets on the results file<BR>!<BR>finish ! exit the time-history postprocessor<BR>!<BR>/post1 ! enter the postprocessor<BR>set,first ! read in first set of results<BR>!<BR>esel,s,mat,,2 ! select AL elements and nodes<BR>nsle,s<BR>!<BR>/cval,1,695,900 ! set two uneven contours, at 695 and 900<BR>!<BR>*do,i,2,nsets ! use a do loop to view results<BR>set,next<BR>plnsol,temp<BR>*enddo<BR>!<BR>finish ! exit the postprocessor<BR>! /exit,nosa<BR> |
|