August 22, 2024 at 8:41 pm
Kanak BUET19
Bbp_participant
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
}