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 |
help on 3d velocity profile
Could anybody help me on this topic? Thanks a lot
Zwdi |
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. DEFINE_PROFILE(my_Ux, t, i) { cell_t c; real x[ND_ND]; real y; begin_c_loop (c,t) { C_CENTROID(x,c,t); y =x[1]; F_PROFILE(c,t,i) = 0.06*pow(10*y,0.13); } end_c_loop (c,t) } Hi :) ap |
All times are GMT -4. The time now is 03:06. |