|
[Sponsors] |
February 4, 2009, 03:09 |
UDF Boundary Condition
|
#1 |
Guest
Posts: n/a
|
Dear all, I have a parabolic inlet velocity profile in a 3d laminar flow. The boundary face is on x_y plane ad the duct extend to z. The velocity profile function is z = - 0.0000001446271106·(x^2 + y^2 ) + 0.0000005640230104·(x + y) - 0.0000005498116698 I need an UDF specifing this velocity profile. Many Thank's
|
|
February 4, 2009, 04:42 |
Re: UDF Boundary Condition
|
#2 |
Guest
Posts: n/a
|
I try to use this udf and works fine. #include "udf.h" DEFINE_PROFILE(vel_profile, thread, position) { real x[ND_ND]; /* this will hold the position vector */ real y; real k;
face_t f; begin_f_loop(f, thread) { F_CENTROID(x,f,thread); y = x[1]; k= x[0]; F_PROFILE(f, thread, position) =- 0.0000001446271106*(pow(k*1000.,2.) +pow(y*1000.,2.) ) + 0.0000005640230104*(k + y)*1000. - 0.0000005498116698; } end_f_loop(f, thread) } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Boundary condition for UDS | Tomik | FLUENT | 0 | December 5, 2006 17:37 |
Boundary condition of the third kind or Danckwertz boundary condition | plage | OpenFOAM Running, Solving & CFD | 4 | October 3, 2006 12:21 |
Slip Boundary Condition for Moving Boundary | Shukla | Main CFD Forum | 3 | November 11, 2005 15:02 |
UDF boundary condition | Jeff | FLUENT | 2 | November 20, 2003 17:15 |
Boundary Condition in LES | Zhang Tsiang | Main CFD Forum | 3 | February 5, 2002 20:15 |