Ansys crashes when using C_UDSI and C_UDMI
As the title suggests, I have been experiencing ansys setup shutting off and exiting whenever I run the following code. The aim is to calculate the laplacian of a scalar that is calculated using UDS equation. (I have assigned UDM locations and selected the desired number of scalar equations (just 3 in my case).)
#include "udf.h" DEFINE_EXECUTE_AT_END(calculate_laplacian) { cell_t c; Thread *t; Domain *d; d = Get_Domain(4); /* Loop through all cells in the current thread */ thread_loop_c(t,d) { begin_c_loop(c,t) { C_UDSI(c,t,2) = C_UDSI_G(c,t,0)[0]; C_UDSI(c,t,3) = C_UDSI_G(c,t,0)[1]; C_UDMI(c,t,2) = C_UDSI_G(c,t,2)[0] + C_UDSI_G(c,t,3)[1]; } end_c_loop(c, t) } } |
did you allocate memory for 4 scalars and 3 udms in fluent GUI?
|
Quote:
|
All times are GMT -4. The time now is 06:36. |