|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
求教
是这样的,墙体外表面温度随时间变化,温度时间函数拟合为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)
}
} |
|