CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   temperature source term (https://www.cfd-online.com/Forums/fluent/35079-temperature-source-term.html)

bikash November 16, 2004 00:31

temperature source term
 
hi can anyone help me how to write a udf for a solid whose temperature is varying with time.i got a 3-D model.

i tried this one but it didnt work. may be i have to use cell thread, i tried that one too but i got errors when i compiled. ********************************************** #include "udf.h" DEFINE_PROFILE (out_temp,thread,i) { face_t f; begin_f_loop( f, thread ) { real t = RP_Get_Real ( "flow-time"); F_PROFILE( f,t,i) =273 + (1 - exp( - (t/22)))*27; } end_f_loop(f,thread) } **************************************************

thank you

bikash

bikash November 16, 2004 19:42

Re: temperature source term
 
hi

i fixed my problem.

thank you


All times are GMT -4. The time now is 03:32.