problems with UDMI... !!!
Dear all... i've got a problem with UDMI... THe first define_profile is defining the average temperature on the outflow boundary, and i wanna sign this temperature to another inlet boundary... i'm recording this temperature to UDMI, and when i'm reading it from UDMI in another define_profile the program shows me zero... what am i doing wrong? F_PROFILE(f,th,i)=0 as the result but i want F_PROFILE(f,th,i)=tavg1. Please help me...
DEFINE_PROFILE(av_temp_out,th,i) { real tavg; face_t f; real x[ND_ND],y,tavg1,s,s1; cell_t c0 = F_C0(f, th); Thread *thread_c = THREAD_T0(th); s=0; tavg1=0; begin_f_loop(f,th) { F_CENTROID(x,f,th); y=x[1]; tavg=F_T(f,th); s1=y*y*3.14; s+=s1; tavg1 +=tavg*s1; } end_f_loop(f,th) tavg1/=s; C_UDMI(c0, thread_c, 0) = tavg1; } DEFINE_PROFILE(av_temp_in,th,i) {face_t f; cell_t c0 = F_C0(f, th); Thread *thread_c = THREAD_T0(th); F_PROFILE(f,th,i)=C_UDMI(c0, thread_c, 0); } |
All times are GMT -4. The time now is 05:07. |