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

Cannot set correct inlet velocity by UDF?!?

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 21, 2003, 10:44
Default Cannot set correct inlet velocity by UDF?!?
  #1
Bob
Guest
 
Posts: n/a
Hi,

While performing simulations of tracer transport in a reactor, I encountered the following problem. By a UDF DEFINE_PROFILE, I set a fixed normal velocity at the inlet (see UDF below). The velocities returned by Fluent are smaller than the imposed ones however. When imposing a velocity of e.g. 0.213 m/s, Fluent returns 0.194 m/s. Setting boundary mass fractions for scalars with DEFINE_PROFILE returns correct values. Is this a bug in Fluent 6.1? And how should I deal with the problem?

Thanks a lot in advance.

best regards, Bob De Clercq

DEFINE_PROFILE(inlet_vel_tracertest, t, i) {

real time;

face_t f;

int k, j = 0;

real surface = 0.745;

float dat_time[902] = {...data...};

float dat_flow[902] = {...data...};

time = RP_Get_Real("flow-time");

for (j=0; j<= 901; ++j)

{

if (time > dat_time[j])

k=j;

}

begin_f_loop(f, t)

{

if (time >= dat_time[901])

F_PROFILE(f,t,i) = dat_flow[901]/surface;

else

F_PROFILE(f, t, i) = dat_flow[k]/surface;

}

end_f_loop(f, t) }

  Reply With Quote

 


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF error - parabolic velocity profile - 3D turbine Zaqie Fluent UDF and Scheme Programming 9 June 25, 2016 19:08
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
How to define a parabolic velocity inlet of particles with UDF zumaqiong FLUENT 2 February 22, 2010 09:46
UDF velocity and temperature Raj FLUENT 3 February 1, 2009 18:29
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11


All times are GMT -4. The time now is 07:40.