CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Fluent UDF and Scheme Programming (
-   -   Parabolic Velocity UDF (

Marbig September 23, 2009 21:51

Parabolic Velocity UDF
Hey guys,
trying to make a UDF for a parabolic velocity profile (that varies in x-direction). But im not sure if this is correct:

#include "udf.h"

DEFINE_PROFILE(inlet_y_velocity, thread, position)
real y[ND_ND]; /* this will hold the position vector */
real x;
face_t f;

begin_f_loop(f, thread)
x = y[1];
F_PROFILE(f, thread, position) = "parabolic profile eqn in terms of x";
end_f_loop(f, thread)

midoo October 23, 2009 11:15

hi, i thik that this udf is correct so you must try it.:)

All times are GMT -4. The time now is 17:19.