|
[Sponsors] |
May 23, 2003, 04:57 |
UPF problem,help~
|
#1 |
Guest
Posts: n/a
|
hello ,everybody in order to adjust the pressure-outlet boundary condition , I mad a UDF and it was compliled . but when it iterated , an error occured as belowing :
Pressure Outlet: Pressure profiles are not allowed with radial-outlets and my function is : #include "udf.h" int count = 0; real flux_save = 0.; DEFINE_ADJUST(demo_calc,domain) { count++; /*prinf("%f",count);*/ } DEFINE_PROFILE(pressure_outlet,t,i) { real p_out; real flux; real p_temp; face_t f; if ( count%500 == 0 ) { begin_f_loop(f,t) { if (count == 0) { F_PROFILE(f,t,i) = 10000; } else { flux = F_FLUX(f,t); p_out = F_P(f,t); if( fabs( (flux - flux_save)/flux ) < 0.001 ) { p_temp = p_out + 400 ; if (p_temp < 14000) { F_PROFILE(f,t,i) = p_temp ; flux_save = flux ; } } } } end_f_loop(f,t) } } I don't understand the error. and how to resolve it? hope your help ~ |
|
|
|