CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Fluent UDF and Scheme Programming (
-   -   Udf with a sliding mesh (

mani1455 April 16, 2014 05:21

Udf with a sliding mesh
1 Attachment(s)
Hi all,

i am trying to simulate a velocity profile UDF with sliding mesh..!
I applied the UDF on the inlet of the sliding mesh.... but when simulated the mesh slides but the UDF doesnt..... how i can slide the UDF with the sliding mesh?

Attaching an image: The right side of the Mesh is sliding but UDF doesnt!

Help required ASAP!

regards and thanks in advance

my udf
#include "udf.h"
DEFINE_PROFILE(inlet_x_velocity, thread, nv)
float x[2];
float y;
face_t f;
begin_f_loop(f, thread)
y = x[1];
F_PROFILE(f, thread, nv) = 6.67-(7.018457*exp(-0.693*pow(y/0.001654,2.0)));
end_f_loop(f, thread)

All times are GMT -4. The time now is 20:15.