CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   3d velocity profile (

zwdi February 9, 2004 13:32

3d velocity profile
Hello Everyone,

Did anybody know adding 3d UDF velocity profile of Ux= 0.06*pow(10*y,0.13), Uy=Uz=0 to Fluent6.1? It is the boundary layer profile (power law). For 2d I am OK. But for 3D, things seem very complicated for me. I could not figure it out. Could somebody help me out? Thanks in advanced.


zwdi February 10, 2004 11:58

help on 3d velocity profile
Could anybody help me on this topic? Thanks a lot


ap February 10, 2004 15:26

Re: 3d velocity profile
It's just the same as in 2D. You just need to know that in the cell centroid vector, x is in position 0, y is in position 1 and z is in position 2.

The function should be the following. Hook it in FLUENT BC panel to your inlet, in the x-velocity box.

cell_t c;
real x[ND_ND];
real y;

begin_c_loop (c,t)
y =x[1];
F_PROFILE(c,t,i) = 0.06*pow(10*y,0.13);
end_c_loop (c,t)

Hi :)


All times are GMT -4. The time now is 21:05.