|
|
发表于 2007-2-24 13:49:35
|
显示全部楼层
请问关于壁面热流量的udf
#include "udf.h"
DEFINE_PROFILE(heat_flux,f,i)
{
face_t f;
float flow_time=RP_Get_Real("flow-time");
if(flow_time<20)
{
begin_f_loop(f,t)
{
F_PROFILE(f,t,i)=100000.0/20.0*flow_time;
}
end_f_loop(f,t)
}
else
{
begin_f_loop(f,t)
{
F_PROFILE(f,t,i)=100000.0;
}
end_f_loop(f,t)
}
} |
|