|
楼主 |
发表于 2007-5-12 13:56
|
显示全部楼层
#include "udf.h"
DEFINE_HEAT_FLUX(heat_flux,f,t,c0,t0,cid,cir)
{
face_t m;
begin_f_loop(m,t)
{
real n=RP_Get_Real("flow-time");
int c=n/3600;
switch(c)
{case 0:F_Heat_Flux(m,f,tf)=520.36;break;
case 1:F_Heat_Flux(m,f,tf)=717.425;break;
case 2:F_Heat_Flux(m,f,tf)=861.39;break;
case 3:F_Heat_Flux(m,f,tf)=936.93;break;
case 4:F_Heat_Flux(m,f,tf)=936.93;break;
case 5:F_Heat_Flux(m,f,tf)=861.39;break;
case 6:F_Heat_Flux(m,f,tf)=717.425;break;
case 7:F_Heat_Flux(m,f,tf)=520.36;break;}
}
end_f_loop(m,t)
}
你们看看这个程序有多少错误啊? |
|