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/)
-   -   Udf with a sliding mesh (https://www.cfd-online.com/Forums/fluent-udf/133520-udf-sliding-mesh.html)

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)
{
F_CENTROID(x,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:11.