24小时热门版块排行榜    

查看: 286  |  回复: 0

tmw1987

铁杆木虫 (正式写手)

[交流] 【求助】入口速度intlet设置?

诸位:
   我拟模拟管道内流体入口速度随时间变化时,内部管道的压力变化趋势。
    用udf编写入口速度如下:
#include "udf.h"

DEFINE_PROFILE(velocity, thread, position)
{
  face_t f;

  begin_f_loop(f, thread)
    {
      real t = RP_Get_Real("flow-time";
      if (t <= 3)
      F_PROFILE(f, thread, position) = 3;
      else if (t > 3 && t <=6)
      F_PROFILE(f, thread, position) = t;
      else if (t > 6 && t <=9)
      F_PROFILE(f, thread, position) = 6;
      else if (t > 9 && t <=15)
      F_PROFILE(f, thread, position) = -t/2+10.5;
      else
      F_PROFILE(f, thread, position) = 3;
    }
  end_f_loop(f, thread)
}
意思是0~3s时,入口速度为3m/s
3~6s时,速度是线性上升的,v0=t;
……
但是用fluent模拟时,观察到入口速度总是为0,而且3s后会线性上升,但是数值时错误的。请问是哪里没设置好。
谢谢大侠!
回复此楼

» 猜你喜欢

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 tmw1987 的主题更新
普通表情 高级回复 (可上传附件)
信息提示
请填处理意见