CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Running out of UDMI, what can in use to replace it ? (https://www.cfd-online.com/Forums/fluent-udf/136171-running-out-udmi-what-can-use-replace.html)

Sdvk May 23, 2014 13:16

Running out of UDMI, what can in use to replace it ?
 
Hi Guys,

I would like to know what I can use to replace UDMI(c,t,i) in one of my case.

To quickly set the context let’s say that i have written a UDF which contains several subfunctions (1 Define_SOURCE, 1 executed at end, etc..). I use UDMI to store source terms computed in every cell of one of my thread (THREAD A) at every iterations, then I’m able to use these values in another thread (THREAD B).. (via an execute at end function , i used the values store in UDMI to modify temperature of the cell in thread B before the next iteration.. UDMI are the perfect tool to do what I need.. very simple to use as it is alreay include in software.

Problem is that I recently widen my geometry, repeating the same threads in a much bigger number.. So the mechanism of the UDF is exactly the same but I m running out of UDMI…(500 is the limit as you may know)

What can I use to replace it ? I guess I need a global variable in order to be able to use a same variable in several subfonctions of the UDF.. and I need it to be able to store a value for every cell of a thread.

Is an array can be declared as global variable to do the exact same thing of the UDMI ? Or is there anything else that I wouldn’t know ? What would you use ?

Thanks for any advice

SD


All times are GMT -4. The time now is 18:00.