你试试看吧。注意格式改写,我在这个里面打的,格式可能有问题。
#include "udf.h"
DEFINE_PROFILE(inlet_velocity, thread, index)
{
real x[ND_ND],y;
face_t f;
begin_f_loop(f, thread)
{
F_CENTROID(x,f,thread);
y = x[1];
F_PROFILE(f, thread, index) =2.4*ln(350*y)+5.5;
}
end_f_loop(f, thread)
}