24小时热门版块排行榜    

查看: 397  |  回复: 0

zzhh0089

铁虫 (初入文坛)

[求助] FLUENT 两相流udf求助

#include "udf.h"
#include <math.h>
#define u 1.716e-05
# define domain_ID 2
DEFINE_ADJUST(adjust_heatflux, domain)
{

   int ID = 6;
Thread  *t=Lookup_Thread(domain,ID);
  face_t f;
  real x[ND_ND],y, h1 ,h2, re, v , den, Ts, Tl,Tf,Qa1 , Qa2,a,b;
domain = Get_Domain(domain_ID);

  
  thread_loop_f (t,domain)
    {
      
       begin_f_loop (f,t)
         {
         
         F_CENTROID(x,f,t);
         y=x[1];
         v=F_U(f,t);
         den=F_R(f,t);
         re=den*v*y/u;
         Ts=F_T(f,t);
         Tl=273.15+(150*150-v*v)*0.5/1005;
         Tf=0.5*(Ts+Tl);
         a=den*v;
         b=den*v/y;
       
                 h1=0.8035*pow(a,0.8)*pow(Tf,0.292)*pow(y,-0.2);
                    Qa1=h1*(Ts-Tl);
                F_UDMI(f,t,0) = Qa1;       
         }

       
         }
       end_f_loop (f,t)

    }
初始化之后出现错误:
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: ()
求大神给判断一下是什么问题啊?
回复此楼

» 猜你喜欢

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

智能机器人

Robot (super robot)

我们都爱小木虫

相关版块跳转 我要订阅楼主 zzhh0089 的主题更新
信息提示
请填处理意见