|
楼主 |
发表于 2013-1-19 09:22:58
|
显示全部楼层
找不到乐意出面的高手,我自己写了一段,但是不知道是否正确,各位也帮我参谋参谋。如下:
#include "udf.h"
DEFINE_PROFILE(temp_inlet,thread,position)
{
face_t f;
begin_f_loop(f,thread)
{
real tt=RP_Get_Real("flow-time");
real t=1+tt/60;
F_PROFILE(f,thread,position)=293+1080*(1-0.325*exp(-0.167*t)-0.675*exp(-2.5*t));
}
end_f_loop(f,thread)
} |
|