采用Table型数组,定义模型表面各个节点在不同时刻的载荷值,我是参考论坛上面以前的帖子做的.<BR>详细的命令流如下:<BR>/UNITS,SI<BR>/CONFIG,NRES,10000<BR>/PREP7<BR>ET,1,SOLID70<BR>MP,DENS,1,3200<BR>MP,C,1,840<BR>MP,KXX,1,16.8<BR>/VIEW,1,1,1,1<BR>BLOCK,0,0.04,0,0.04,0,0.004<BR>SAVE<BR>LESIZE,1,,,40<BR>LESIZE,4,,,40<BR>LESIZE,9,,,4<BR>MSHKEY,1<BR>VATT,1,1,1<BR>VMESH,1<BR>/PNUM,DEFA<BR>EPLOT<BR>FINISH<BR>/SOLU<BR>LSIZE=0.001<BR>V=0.05<BR>TINC=LSIZE/V<BR>rb=0.002<BR>pi=3.1415926<BR>Q=600<BR>Qmax=Q/(pi*rb*rb)<BR>R=0.002<BR>MAX_TIME=41<BR>MAX_X=41<BR>MAX_Y=41<BR>*DIM,laser,TABLE,MAX_X,MAX_Y,MAX_TIME,X,Y,TIME<BR>*DO,K,1,MAX_TIME,1<BR>*DO,I,1,MAX_X,1<BR>laser(I,0,K)=(I-1)*LSIZE<BR>*ENDDO<BR>*DO,J,1,MAX_Y,1<BR>laser(0,J,K)=(J-1)*LSIZE<BR>*ENDDO<BR>*DO,I,1,MAX_X,1<BR>*DO,J,1,MAX_Y,1<BR>XCENTER=V*(K-1)*TINC<BR>YCENTER=0.02<BR>DISTANCE=SQRT(((I-1)*LSIZE-XCENTER)**2+((J-1)*LSIZE-YCENTER)**2)<BR>*IF,DISTANCE,LE,R,THEN<BR>laser(I,J,K)=Qmax/EXP(2*DISTANCE**2/(0.002**2))<BR>*ELSE<BR>laser(I,J,K)=0<BR>*ENDIF<BR>*ENDDO<BR>*ENDDO<BR>laser(0,0,K)=(K-1)*TINC<BR>*ENDDO<BR>ANTYPE,TRANS<BR>TUNIF,27<BR>KBC,1<BR>*SET,DELT,1<BR>TIMINT,ON<BR>AUTOTS,OFF<BR>TT=0.8<BR>*DO,TM,1E-6,TT,T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