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 |
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. |