CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Parabolic Velocity UDF (https://www.cfd-online.com/Forums/fluent-udf/68563-parabolic-velocity-udf.html)

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)
{
F_CENTROID(y,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 23:04.