CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   UDF parbolic inlet velocity profile for 3D channel flow. (https://www.cfd-online.com/Forums/fluent/175834-udf-parbolic-inlet-velocity-profile-3d-channel-flow.html)

srv537 August 6, 2016 02:21

UDF parbolic inlet velocity profile for 3D channel flow.
 
inlet is y=1cm and z=17cm, for 2D case i am using

#include "udf.h"
DEFINE_PROFILE(inlet_x_velocity, thread, position)
{
real x[ND_ND]; /* this will hold the position vector */
real y;
face_t f;
begin_f_loop(f, thread)
{
F_CENTROID(x,f,thread);
y = x[1];
F_PROFILE(f, thread, position) = 0.4382 - y*y/(0.005*0.005)*0.4382;
}
end_f_loop(f, thread)
}

what modification required to change this into 3D parabolic velocity profile.

thanks


All times are GMT -4. The time now is 03:09.