We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.

Ansys Learning Forum Forums Discuss Simulation Fluids Laser Melting heat source UDF issue [FLUENT Crashing] Reply To: Laser Melting heat source UDF issue [FLUENT Crashing]

Kanak BUET19
Subscriber

 

Hi Rob, 
 
Thanks for the earlier suggestions. I have finally been able to run the simulation and also been able to visualize the meltpool. (added below) 
 
I still haven’t added the Marangoni force equation yet. and for that I need to use temperature gradient value. But I am facing a problem. 
 
Here’s a brief summary of my problem : 
 
When inside the DEFINE_ADJUST function , I try to add this following line : 
 
C_TEMP_G_X(c,t) = C_T_G(c,t)[0] ; 
 
After running the simulation fluent crashes instantly. Basically I have renamed the UDMI earlier and now trying to apply the gradient on that UDMI . Any suggestions why is it happening?
 
NOTE : I have alloted sufficient UDMI mannually in the GUI 
 
I renamed it like that : 
 
#include “udf.h”
…..
…..
 
#define C_TEMP_G_X(c, t) C_UDMI(c, t, 8) // Renaming the UDMI 
 
DEFINE_ADJUST(adjust_gradient_heat, domain)
{
… ….
C_TEMP_G_X(c,t) = C_T_G(c,t)[0] ; // Applying X axis temp gradient into the renamed UDMI 
 
 
}