|
|
发表于 2009-12-25 14:13:42
|
显示全部楼层
#include "udf.h"
DEFINE_PROFILE(inlet_x_velocity, thread, index)
{
float x[3];
float y,z;
face_t f;
begin_f_loop(f, thread)
{
F_CENTROID(x,f,thread);
y=x[1];
z=x[2];
F_PROFILE(f, thread, index) =2.602*(1-SQR(y)/0.00000784-SQR(z)/0.00000784);
}
end_f_loop(f, thread)
}
拿去 这个入口平均速度是1.3 的 |
|