CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Allocating user defined memory (https://www.cfd-online.com/Forums/fluent/137986-allocating-user-defined-memory.html)

djn June 26, 2014 07:41

Allocating user defined memory
 
Hi,
I am using C_UDMI(c,t,i) in one of the UDF's I am writing... I have stored output of that macro to a 'real' variable . I have also used gradient term C_T_G two times in code. Now how many user defined memry location and user defined node locations should I specify?
Please help...:mad:

Upyoung April 14, 2015 10:52

Have you solved your puzzle?
 
Quote:

Originally Posted by djn (Post 498783)
Hi,
I am using C_UDMI(c,t,i) in one of the UDF's I am writing... I have stored output of that macro to a 'real' variable . I have also used gradient term C_T_G two times in code. Now how many user defined memry location and user defined node locations should I specify?
Please help...:mad:

Dear Dhananjaya,

Have you solved your puzzle? I have the same problem to set the user defined memry location and user defined node locations. For my case, I have 8 C_UDMI(c,t,i) and no other macros. Thank you for your guidance.

pakk April 14, 2015 10:59

If you have 1 UDM, you can only use C_UDMI(c,t,0).
If you have 2 UDMs, you can only use C_UDMI(c,t,0) and C_UDMI(c,t,1).
If you have 3 UDMs, you can only use C_UDMI(c,t,0), C_UDMI(c,t,1) and C_UDMI(c,t,2).

So just look at your code. If you use C_UDMI(c,t,5), you need at least six UDMs.


All times are GMT -4. The time now is 10:31.