声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1829|回复: 0

[Fluent应用] 菜鸟请教:简单的UDF程序通过编译,但初始化出错,大家能帮我看看,查出错误吗

[复制链接]
发表于 2006-7-14 11:28 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
#include "udf.h"
#include "mem.h"
#define diam 2.0e-4

DEFINE_PROFILE(x_inertial,t,i)
{
  real Re,mu;      /* variable declarations */
  cell_t c;
//C_CENTROID(x,c,t);
  real vx=C_U(c,t);  /*x-velocity*/
  real r=C_R(c,t);   /*density*/
   mu=C_MU_L(c,t);    /*层流viscosity*/
// mu=7.95e-06;
  Re=vx*r*diam/mu;
  begin_f_loop(c,t)
  {
          if (Re<5)
                   F_PROFILE(c,t,i)=0;
          else
                  F_PROFILE(c,t,i)=5.84e4;
  }
  end_f_loop(c,t)
}

点击init报错
Error:
FLUENT received fatal signal (ACCESS_VIOLATION)
1. Note exact events leading to error.
2. Save case/data under new name.
3. Exit program and restart to continue.
4. Report error to your distributor.
Error Object: ()
回复
分享到:

使用道具 举报

您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-20 01:03 , Processed in 0.050648 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表