CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   user-defined function hooks pannel (https://www.cfd-online.com/Forums/fluent/34384-user-defined-function-hooks-pannel.html)

kevin August 11, 2004 15:33

user-defined function hooks pannel
 
Anybody can explain what's the "Read/write Case Function" used for in the hooks pannel? it's better to give a example here, thanks.

Alex Chirokov August 12, 2004 12:33

Re: user-defined function hooks pannel
 
Read/Write case UDF are for saving/loading you UDF specific data. For example your UDF uses some internal data in calculations, and these data can change during iterations. If you close your case these changes will be lost. I used it once for solving inductive coupled plasma in fluent (ICP plasma torch). Calculations of EM field depend on current in the coil which is changeable parameter. In order to save this parameter with the case I used Read/Write case UDF. So case will remember what current was used in calculations.

kevin August 12, 2004 15:46

Re: user-defined function hooks pannel
 
Thank you,Alex, then when will these UDF be invoked? at each iteration? And would you please clarify for me what's the difference betweeen read/write case and read/write data, it doesn't mention much in the manual. Thanks,

kevin

Alex Chirokov August 12, 2004 16:31

Re: user-defined function hooks pannel
 
They will be invoked at each Read/Write case/data event that you initiate from file menu in Fluent. you can put this line in your code to see what UDF is executed and to check whether it is executed at all.

Message("This is my Read/Write UDF Function number %d \n", 3);

Alex-

kevin August 12, 2004 18:10

Re: user-defined function hooks pannel
 
thank you so much, Alex


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