|
|
发表于 2013-5-26 20:39:16
|
显示全部楼层
回复 3# wwp081956 的帖子
是这样的,墙体外表面温度随时间变化,温度时间函数拟合为T=-0.11(t-12)*(t-12)+38。fluent计算需要用到UDF,下面是我自己编写的,但是结果不对,导入fluent里面说是时间步长不可用,用一阶什么的。请帮我看看那有问题啊。感激不尽。
#include "udf.h"
DEFINE_PROFILE(temperature_T_waibi, face,index)
{
/* this will hold the position vector */
real t;
face_t f;
for(t=0;t<=86400;t++)
{
begin_f_loop(f, face)
{
F_PROFILE(f,face,index) =-0.11*(t/3600-12)*(t/3600-12)+311.;
}
end_f_loop(f, face)
}
}
但是倒到fluent里面总是出现:Warning: explicit time-stepping not available. Using 1st-order dual-time.
也不知道是哪有问题,急着用啊,时间不多,请教各路神仙不吝指教啊。 |
|