14 February 2023 2 6K Report

Hello good people

I am simulating multipass multilayer additive manufacturing with ANSYS transient-thermal module. The problem is that the Gaussian heat source (APDL code) works fine with the first layer, but when it comes to the second layer, it does not work. The heat flux does not even initiate for the second layer. I tried generating the code with a different coordinate system for the second layer, but that didn’t work either. I also tried incorporating the ‘z’ or the height of the second layer in the equation. Unfortunately, it didn’t work. But when I put the heat sources for both layers in the same time step, it works for both layers; they don’t work in different time steps.

How can I modify my code so that it works for the SECOND LAYER in the SECOND TIME STEP or any layer after the first layer?

The APDL code is mentioned below-

*DIM,HEAT_FLX1,TABLE,6,24,1,,,,0

!

! Begin of equation: 4e7*exp(-3*(({X}-0.05)^2+({Y}-0.01*{TIME})^2)/0.005^2)

*SET,HEAT_FLX1(0,0,1), 0.0, -999

*SET,HEAT_FLX1(2,0,1), 0.0

*SET,HEAT_FLX1(3,0,1), 0.0

*SET,HEAT_FLX1(4,0,1), 0.0

*SET,HEAT_FLX1(5,0,1), 0.0

*SET,HEAT_FLX1(6,0,1), 0.0

*SET,HEAT_FLX1(0,1,1), 1.0, -1, 0, 0, 0, 0, 0

*SET,HEAT_FLX1(0,2,1), 0.0, -2, 0, 1, 0, 0, -1

*SET,HEAT_FLX1(0,3,1),   0, -3, 0, 1, -1, 2, -2

*SET,HEAT_FLX1(0,4,1), 0.0, -1, 0, 3, 0, 0, -3

*SET,HEAT_FLX1(0,5,1), 0.0, -2, 0, 1, -3, 3, -1

*SET,HEAT_FLX1(0,6,1), 0.0, -1, 0, 0.05, 0, 0, 2

*SET,HEAT_FLX1(0,7,1), 0.0, -3, 0, 1, 2, 2, -1

*SET,HEAT_FLX1(0,8,1), 0.0, -1, 0, 2, 0, 0, -3

*SET,HEAT_FLX1(0,9,1), 0.0, -4, 0, 1, -3, 17, -1

*SET,HEAT_FLX1(0,10,1), 0.0, -1, 0, 0.01, 0, 0, 1

*SET,HEAT_FLX1(0,11,1), 0.0, -3, 0, 1, -1, 3, 1

*SET,HEAT_FLX1(0,12,1), 0.0, -1, 0, 1, 3, 2, -3

*SET,HEAT_FLX1(0,13,1), 0.0, -3, 0, 2, 0, 0, -1

*SET,HEAT_FLX1(0,14,1), 0.0, -5, 0, 1, -1, 17, -3

*SET,HEAT_FLX1(0,15,1), 0.0, -1, 0, 1, -4, 1, -5

*SET,HEAT_FLX1(0,16,1), 0.0, -3, 0, 1, -2, 3, -1

*SET,HEAT_FLX1(0,17,1), 0.0, -1, 0, 0.005, 0, 0, 0

*SET,HEAT_FLX1(0,18,1), 0.0, -2, 0, 2, 0, 0, -1

*SET,HEAT_FLX1(0,19,1), 0.0, -4, 0, 1, -1, 17, -2

*SET,HEAT_FLX1(0,20,1), 0.0, -1, 0, 1, -3, 4, -4

*SET,HEAT_FLX1(0,21,1), 0.0, -1, 7, 1, -1, 0, 0

*SET,HEAT_FLX1(0,22,1), 0.0, -2, 0, 4e7, 0, 0, -1

*SET,HEAT_FLX1(0,23,1), 0.0, -3, 0, 1, -2, 3, -1

*SET,HEAT_FLX1(0,24,1), 0.0, 99, 0, 1, -3, 0, 0

! End of equation: 4e7*exp(-3*(({X}-0.05)^2+({Y}-0.01*{TIME})^2)/0.005^2)

!-->

sf, s1, hflux, %HEAT_FLX1%

More Tan Sak's questions See All
Similar questions and discussions