#include "udf.h"
DEFINE_PROFILE(inlet_x_velocity,thread,nv)
{
float x[3];
float y;
face_t f;
begin_f_loop(f, thread)
{
F_CENTROID(x,f,thread);
y= x[1];
F_PROFILE(f, thread, nv)
=1.5*pow(y,0.28);
}
end_f_loop(f, thread)
}



DEFINE_PROFILE(inlet_x_K,thread,nv)
{
float x[3];
float y;
face_t f;
begin_f_loop(f, thread)
{
F_CENTROID(x,f,thread);
y= x[1];
F_PROFILE(f, thread, nv)=0.33; 
}
end_f_loop(f, thread)
}

DEFINE_PROFILE(inlet_x_KK,thread,nv)
{
float x[3];
float y;
face_t f;
begin_f_loop(f, thread)
{
F_CENTROID(x,f,thread);
y= x[1];
F_PROFILE(f, thread, nv)=0.086/y;
}
end_f_loop(f, thread)
}


