-
-
August 27, 2025 at 7:38 pm
Sara.Ranjbareslamloo
SubscriberHello, I am working on capturing residual stress in two dissimilar materials using ANSYS Workbench. Since there is no direct module for dissimilar materials, I am simulating the transient thermal behavior and coupling it with structural analysis.
I have written a command for laser movement using a 3D Gaussian heat source, but now I want to extend it to handle multiple laser tracks. I attempted to use element birth and death for each track and apply the heat source individually. However, the issue is that all the commands are being applied simultaneously, whereas I need them to be executed sequentially at different times.
Does anyone have suggestions on how I can achieve this?
I mean I want to do exactly like this tutorial Additive Manufacturing with Element Birth & Death ANSYS Workbench (3D Goldak heat source)
here is my command for one laser trackÂ
g=0.3 !absorbityp=230 !Laser Power in wattsw=0.001  !radius of moving sourceA=(2*g*p)/(22/7*w**2)B=-3C=0D=900 !scan speedE=0F=w**2Â*DIM,HEAT_FLX1,TABLE,8,14,1,,,,0!! Begin of equation: A*exp(B*(({X}-C)^2+({Y}-D*{TIME}-E)^2)/F)*SET,HEAT_FLX1(0,0,1), 0.0, -999*SET,HEAT_FLX1(2,0,1), 0.0*SET,HEAT_FLX1(3,0,1), A*SET,HEAT_FLX1(4,0,1), B*SET,HEAT_FLX1(5,0,1), C*SET,HEAT_FLX1(6,0,1), D*SET,HEAT_FLX1(7,0,1), E*SET,HEAT_FLX1(8,0,1), F*SET,HEAT_FLX1(0,1,1), 1.0, -1, 0, 1, 2, 2, 19*SET,HEAT_FLX1(0,2,1), 0.0, -2, 0, 2, 0, 0, -1*SET,HEAT_FLX1(0,3,1),  0, -3, 0, 1, -1, 17, -2*SET,HEAT_FLX1(0,4,1), 0.0, -1, 0, 1, 20, 3, 1*SET,HEAT_FLX1(0,5,1), 0.0, -2, 0, 1, 3, 2, -1*SET,HEAT_FLX1(0,6,1), 0.0, -1, 0, 1, -2, 2, 21*SET,HEAT_FLX1(0,7,1), 0.0, -2, 0, 2, 0, 0, -1*SET,HEAT_FLX1(0,8,1), 0.0, -4, 0, 1, -1, 17, -2*SET,HEAT_FLX1(0,9,1), 0.0, -1, 0, 1, -3, 1, -4*SET,HEAT_FLX1(0,10,1), 0.0, -2, 0, 1, 18, 3, -1*SET,HEAT_FLX1(0,11,1), 0.0, -1, 0, 1, -2, 4, 22*SET,HEAT_FLX1(0,12,1), 0.0, -1, 7, 1, -1, 0, 0*SET,HEAT_FLX1(0,13,1), 0.0, -2, 0, 1, 17, 3, -1*SET,HEAT_FLX1(0,14,1), 0.0, 99, 0, 1, -2, 0, 0! End of equation: A*exp(B*(({X}-C)^2+({Y}-D*{TIME}-E)^2)/F)!-->sf,s1,hflux,%HEAT_FLX1% -
August 28, 2025 at 3:09 pm
dlooman
Ansys EmployeeBirth and death is only needed uf you are adding or subtracting material. It seems like you would have 3 functions and 3 SF loads, one for each track. Then in a transient analysis they could be solved for sequentially like below:
/soluÂ
antyp,trans
sf,s1,hflux,%HEAT_FLX1%Â
time,100Â
solve
sfdele,all,all
sf,s2,hflux,%HEAT_FLX2%Â Â Â ! 2nd trackÂ
time,200Â
solve
sfdele,all,allÂ
sf,s3,hflux,%HEAT_FLX3%
time,300Â
solve
-
September 2, 2025 at 4:55 pm
Sara.Ranjbareslamloo
SubscriberHello,
Thank you for your reply, actually in addirive manufacturin (LPBF) which I am going to model it, the process is adding layers but I want to add in horizental (see the below link). In dding layers, it was ok I could define offset time in the equation in Y direction and using EBD model it, but for horizental I am not able to model it, I tried the code you wrote and add em for each track but just first laser track works and second/third track didnnt activated, also I tried to use another seperate command for that ; so I defined laser trackks in three different commans and anded the fourth command for applying the heat fluxes, but result was the same. just fist track moves and gives result.
Â
Additive Manufacturing with Element Birth & Death ANSYS Workbench (3D Goldak heat source)
-
September 3, 2025 at 2:13 pm
dlooman
Ansys EmployeeIf the issue is related to Additive it would be good to create a new post to possibly get a response from someone knowledgeable on Additive.
-
- You must be logged in to reply to this topic.
-
3822
-
1388
-
1188
-
1100
-
1015
© 2025 Copyright ANSYS, Inc. All rights reserved.