#include "udf.h "
# contains "math.h"
Definition _ Profile (Entry _ x _ Speed, Thread, Index)
{
real x[ND _ ND];
Real y, z;
face _ t f;
Start loop (f, thread)
{
F_CENTROID(x, f, thread);
//x = x[0];
y = x[ 1];
//z = x[2];
if(y & lt; 0.0 18 1)
F_PROFILE(f, thread, index) = 2.0994 * log (y)+9.4438;
other
F_PROFILE(f, thread, index) =15;
}
End_f_loop(f, thread)
}