CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Ansys crashes when using C_UDSI and C_UDMI

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 6, 2023, 15:55
Default Ansys crashes when using C_UDSI and C_UDMI
  #1
New Member
 
Vova McDova
Join Date: Dec 2023
Posts: 2
Rep Power: 0
nofugz is on a distinguished road
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.
nofugz is offline   Reply With Quote

Old   December 7, 2023, 02:05
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
did you allocate memory for 4 scalars and 3 udms in fluent GUI?
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   December 7, 2023, 05:43
Default
  #3
New Member
 
Vova McDova
Join Date: Dec 2023
Posts: 2
Rep Power: 0
nofugz is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
did you allocate memory for 4 scalars and 3 udms in fluent GUI?
I have set the number of UDS to 4 and number of UDM to 3 using Define -> User-Defined ->. Is that what you are talking about?
nofugz is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 12:55.