You are on page 1of 4

temp_source = 3000

time_increment = 5
lscount = 0
time_count = 1
*DO, i, x_min, x_max,20
lscount = lscount + 1
TIME, time_count
D, NODE(NX(i),NY(y_loc),NZ(z_loc)),TEMP,temp_source
LSWRITE, lscount
DDELE, ALL, ALL
time_count = time_count + time_increment
*ENDDO

*do,w,0,1,0.0125 !The movement is divided 81 steps and �w

is

the ratio of the line length.

lwplan,-1,231,w ! Define the working plane normal to a location

on line 231.

wpro,,90 ! Rotate the working plane about X axis.

cswpla,11,1,1,1

!Define

cylindrical

coordinate

system

at

the

origin of the working plane.

nsel,s,loc,z,0 !Select the nodes on the surface (z=0).

nsel,r,loc,x,,8 !Reselect the nodes on the surface (x=8).

*get,nodmax,node,,num,max
!Retrieve

the

maximum

number

of

nodes and assignment �

nodmax

*get,nodmin,node,,num,min

!Retrieve

the

minimum

number

of

nodes and assignment �

nodmin

*dim,aa,array,nodmax,1,1, !Define an array parameter

�aa�

and

its dimensions

is �

nodmax

*do,kk,nodmin,nodmax

!Loop from �

nodmin

� to �

nodmax

*if,nsel(kk),eq,1,then

!If node �kk� is selected

*SET,aa(kk),51.1*exp(-3*((nx(kk))/7.1)**2) !Assignment the heat

flux values to array

�aa�

*else

*SET,aa(kk),0 !

If node �kk� is not selected,

aa(kk)

0.

*endif

*enddo

sffun,hflux,aa(1) !

Array �aa� is applied to the heat flux of

function distribution.

sf,all,hflux,0 ! Load heat flux to n

ode �kk�, the

value is 0
+

aa(kk).

You might also like