|
[Sponsors] |
March 21, 2003, 10:44 |
Cannot set correct inlet velocity by UDF?!?
|
#1 |
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) } |
|
|
|
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 |