CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

UPF problem,help~

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2003, 04:57
Default UPF problem,help~
  #1
jieremy
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 ~
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



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