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/)
-   -   how to write a UDF to input temperature at nodes as I.C? (https://www.cfd-online.com/Forums/fluent-udf/81900-how-write-udf-input-temperature-nodes-i-c.html)

tensun November 10, 2010 03: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!

rgds

Allan Walsh November 10, 2010 11: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,

Rob


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