CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Bonduary condition- define_profile for temperature (https://www.cfd-online.com/Forums/fluent/39201-bonduary-condition-define_profile-temperature.html)

Tomik January 11, 2006 16:43

Bonduary condition- define_profile for temperature
 
Hi, I would like imposed on the boduary variation profil temperature. E.g. temperatue variation is to be specified as: T(y)=20*[1-(y/20)^2]. This is my Udf: #include "udf.h" DEFINE_PROFILE(temperature,t,i) { real x[ND_ND]; real y; face_t f; begin_f_loop(f,t) { F_CENTROID(x,f,t); y = x[1]; F_PROFILE(f,t,i) = 20.*(1.-(y*y/20.*20)); } end_f_loop(f,t) }

Where is mistake!? This bonduary condition I imposed to type: wall in overlap thermal, thermal condition: temperature.

Please help me!!!

Thanks lot.

Tomik

RoM January 12, 2006 01:43

Re: Bonduary condition- define_profile for tempera
 
F_PROFILE(f,t,i) = 20.*(1.-(y*y/20./20.))

Also note that your udf will not return temperature values above 20 K, really cold in my opinion.

RoM


All times are GMT -4. The time now is 10:09.