CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Fluent UDF and Scheme Programming (
-   -   how to write a UDF to input temperature at nodes as I.C? (

tensun November 10, 2010 04:55

how to write a UDF to input temperature at nodes as I.C?
Hi guys,

i am new to C programming and is required to write UDF to input temperature at various nodes as Initial boundary conditions.

Assuming that i have all the temperatures at the various nodes, how do i write a UDF so fluent can read it?

Help is much appreciated!


Allan Walsh November 10, 2010 12:35

Not sure if this is the best method, but I have created variables in scheme (rp-var-define.......) as a direct command in Fluent and then converted the scheme variable to a c++ variable in my UDF with a standard macro. Fairly straight forward if you have the UDF manual. Good luck.

robboflea July 21, 2013 10:44

Dear Allan,

I'd need to do the same thing as tensun. I am really new to UDFs and I didn't understand exactly what do you mean. Could you please be a bit clearer so that I will at least know where to look in the UDF manual?

Thanks a lot,


All times are GMT -4. The time now is 16:15.