CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Set user define memory (https://www.cfd-online.com/Forums/fluent/82923-set-user-define-memory.html)

D.Martelli December 9, 2010 05:30

Set user define memory
 
Hi everybody
I implemented an UDF for solving the laplace equation and i stored the electrical potenzial and the corresponding joul heating in two user define memory. The UDF is interpreted (not compiled). My problem is change the name of the user define memor: i would like to change theyr name from user memory 0, 1 .... with the name of what they really are. Anyone can help me? tank u very much
Daniele
:mad:

Bernhard December 9, 2010 10:42

You can do something like this.

Code:

DEFINE_EXECUTE_ON_LOADING(renamestuff,udflib)
{
      Set_User_Memory_Name(0,"Name you like");
}

This is an execute on loading, and I used it with compiled udfs, but you should be able to use something similar for interpreted UDFs...

D.Martelli December 9, 2010 14:27

thank you very much for your answer Bernhard, i tried as u wrote. It seems dosn't working on interpreted UDF maybe it works only for compiled udf?
ciao Daniele


All times are GMT -4. The time now is 13:44.