The UDF code in C has changed.
The new macro to use is DEFINE_PROFILE( (unction name, thread,nv)
Here is a example to introduce a parabolic profile at the inlet :
DEFINE_PROFILE(inlet_x_velocity, /* function name */
thread, /* thread */
nv) /* variable number */
/* loop over each of the faces of this zone */
F_PROFILE(f,thread,nv) = 20. - 20.*pow(x/.0745, 2.);
The macro tu use is DEFINE_INIT. Here is an example of initialization of a parabolic inlet in the domain :
DEFINE_INIT(Init_Vitesse, thread, nv)
C_U(c,thread)=10.0 * y / 0.01* (1 - y / 0.02) ;
The user defined function is well compiled but we don't know how to use it. There was a special command in Fluent 4.0 and we don't know how to use it in Fluent 5.0 , so we couldn't test it.