|
[Sponsors] |
December 6, 2023, 15:55 |
Ansys crashes when using C_UDSI and C_UDMI
|
#1 |
New Member
Vova McDova
Join Date: Dec 2023
Posts: 2
Rep Power: 0 |
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) } } Last edited by nofugz; December 6, 2023 at 17:47. |
|
December 7, 2023, 02:05 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
did you allocate memory for 4 scalars and 3 udms in fluent GUI?
__________________
best regards ****************************** press LIKE if this message was helpful |
|
December 7, 2023, 05:43 |
|
#3 |
New Member
Vova McDova
Join Date: Dec 2023
Posts: 2
Rep Power: 0 |
||
|
|