当前位置: 首页 > 仿真模拟 >fluent中udf导入出现问题

fluent中udf导入出现问题

作者 山峰啊
来源: 小木虫 900 18 举报帖子
+关注

各位大神好,我模拟的是一个封闭腔体里面的自然对流,因为气体的特殊性质,壁面附近的气体速度不等于零,温度不等于壁面温度,而是与附近的速度梯度和温度梯度有关,具体如图,一下是我编写的上边界的速度的udf,但是导入进去,在下拉列表中选中并点击ok后,出现receive.a fatal signal,不知道怎么回事,求各位大神解答
#include "udf.h"
#define ma 1
#define  mp 0.001
#define mu 3.21252e-5
#define B 0.784
#define  rt 450
DEFINE_PROFILE(up_slip_wall,thread,index)
{
        cell_t c0,c1=-1;
        face_t f;
        /*Thread *t0;*/
        real co1,co2;
        real dudy,dtdx,uslip,us;
        co1=((2-ma)/ma)*mp;
        co2=0.75*mu/(B*rt);
        begin_f_loop(f,thread)
        {
                c0=F_C0(f,thread);
                t0=THREAD_T0(thread);
                dudy=C_DUDY(c0,t0);
                dtdx=C_T_G(c0,t0) 返回小木虫查看更多

今日热帖
  • 精华评论
猜你喜欢
下载小木虫APP
与700万科研达人随时交流
  • 二维码
  • IOS
  • 安卓