OK so i wrote some code. The idea is to apply a load and them move it with time. The applying a load part works fine but the moving part doesn't
Project file is attached, you can see the code blocks (each is separate so i just suppress them) specifically the code that is failing to move over time is the below. Does anyone know why its not working.
! Commands inserted into this file will be executed just prior to the ANSYS SOLVE command.
! These commands may supersede command settings set by Workbench.
! Active UNIT system in Workbench when this object was created: Metric (mm, kg, N, s, mV, mA)
! NOTE: Any data that requires units (such as mass) is assumed to be in the consistent solver unit system.
! See Solving Units in the help system for more information.
! Create heat function on global CS (0)
*DIM,HEAT_FLX,TABLE,6,23,1,,,,12 ! The last number corresponds to the ID number for the coordinate system
!
! Begin of equation: B*exp(-2*(SQRT({X}^2+{Y}^2)/w)^n)
!
*SET,HEAT_FLX(0,0,1), 0.0, -999
*SET,HEAT_FLX(2,0,1), 0.0
*SET,HEAT_FLX(3,0,1), 0.0
*SET,HEAT_FLX(4,0,1), 0.0
*SET,HEAT_FLX(5,0,1), 0.0
*SET,HEAT_FLX(6,0,1), 0.0
*SET,HEAT_FLX(0,1,1), 1.0, -1, 0, 0, 0, 0, 0
*SET,HEAT_FLX(0,2,1), 0.0, -2, 0, 1, 0, 0, -1
*SET,HEAT_FLX(0,3,1), 0, -3, 0, 1, -1, 2, -2
*SET,HEAT_FLX(0,4,1), 0.0, -1, 0, 2, 0, 0, -3
*SET,HEAT_FLX(0,5,1), 0.0, -2, 0, 1, -3, 3, -1
*SET,HEAT_FLX(0,6,1), 0.0, -1, 0, 2, 0, 0, 2
*SET,HEAT_FLX(0,7,1), 0.0, -3, 0, 1, 2, 17, -1
*SET,HEAT_FLX(0,8,1), 0.0, -1, 0, 2, 0, 0, 3
*SET,HEAT_FLX(0,9,1), 0.0, -4, 0, 1, 3, 17, -1
*SET,HEAT_FLX(0,10,1), 0.0, -1, 0, 1, -3, 1, -4
*SET,HEAT_FLX(0,11,1), 0.0, -1, 16, 1, -1, 0, 0
*SET,HEAT_FLX(0,12,1), 0.0, -3, 0, 5, 0, 0, -1 !W=beamwidth
*SET,HEAT_FLX(0,13,1), 0.0, -4, 0, 1, -1, 4, -3
*SET,HEAT_FLX(0,14,1), 0.0, -1, 0, 10, 0, 0, -4 !n=order
*SET,HEAT_FLX(0,15,1), 0.0, -3, 0, 1, -4, 17, -1
*SET,HEAT_FLX(0,16,1), 0.0, -1, 0, 1, -2, 3, -3
*SET,HEAT_FLX(0,17,1), 0.0, -1, 7, 1, -1, 0, 0
*SET,HEAT_FLX(0,18,1), 0.0, -2, 0, 2000000, 0, 0, -1 !B=power
*SET,HEAT_FLX(0,19,1), 0.0, -3, 0, 1, -2, 3, -1
*SET,HEAT_FLX(0,20,1), 0.0, 99, 0, 1, -3, 0, 0
!
! End of equation: B*exp(-2*(SQRT({X}^2+{Y}^2)/w)^n)
!-->
xpos=-15
ypos=0
zpos=0
xrot=-90
yrot=0
zrot=0
time_step_size=5
time_now=0
*do,i,0,5
local,12,CART,xpos+5*i,ypos,zpos,zrot,xrot,yrot
sf,top,hflux,%HEAT_FLX%
kbc,1 ! ramped loading
time_now=time_now+time_step_size
time,time_now ! specify time at the end of load step
autots,on ! use automatic time-stepping
deltim, time_step_size/5, time_step_size/10, time_step_size/2, on
lswrite,i+1
!sfdele,all,all
*enddo