CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   UDF for Heat transfer coefficient (http://www.cfd-online.com/Forums/fluent/42099-udf-heat-transfer-coefficient.html)

Dong Wenchao August 23, 2006 02:17

UDF for Heat transfer coefficient
 
I want to write a UDF for heat transfer coefficient which changes as a function of the surface temperature as follows:

htc=24.1e-4*Epsilon*pow(T, 2.0).

So, anyone tell me how to write the UDF with which DEFINE macros?

Thanks in advance!


saghir August 23, 2006 04:05

Re: UDF for Heat transfer coefficient
 
#include "udf.h"

DEFINE_PROFILE(pressure_profile,t,i) {

face_t f; double htc; real Epsilon=10.;

begin_f_loop(f,t)

{

htc=24.1e-4*Epsilon*pow(F_T(f,t), 2.0);

F_PROFILE(f,t,i) = htc;

} end_f_loop(f,t) }


Dong Wenchao August 23, 2006 06:35

Re: UDF for Heat transfer coefficient
 
Thank you for your reply!


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