|
楼主 |
发表于 2022-8-28 11:06:25
|
显示全部楼层
本帖最后由 dy1999 于 2022-8-28 11:07 编辑
为啥不显示代码
#include"udf.h"
#include"math.h"
DEFINE_PROFILE(inlet_velocity, thread, i)
{
real x[3];
real z;
face_t f;
begin_f_loop(f, thread)
{
F_CENTROID(x, f, thread);
z = x[2];
F_PROFILE(f, thread, i) = 17.910*pow(z / 0.02, 0.1732);
}
end_f_loop(f,thread)
}
|
|