Ansys Learning Forum Forums Discuss Simulation Fluids Gradient of temperature in momentum source term while using solidification/melting with VOF Reply To: Gradient of temperature in momentum source term while using solidification/melting with VOF

Dubey92
Subscriber
Thanks for your reply. Now I understand that. Also, somewhere I found a piece of code to allocate memory for temperature gradient, C_T_G(c,t). The lines are:
Alloc_Storage_Vars(domain, SV_T_RG, SV_T_G, SV_NULL);
T_derivatives(domain);
.........
your code....
.........
Free_Storage_Vars(domain, SV_T_RG, SV_NULL);
Free_Storage_Vars(domain, SV_T_G, SV_NULL);

Can you please tell if this works?