中国汽车工程师之家--聚集了汽车行业80%专业人士 

论坛口号:知无不言,言无不尽!QQ:542334618 

本站手机访问:直接在浏览器中输入本站域名即可 

  • 1573查看
  • 0回复

[Fluent] 请教高手个用fluent求解时出现的问题

[复制链接]

  • TA的每日心情
    无聊
    1-7-2015 18:46
  • 签到天数: 1 天

    [LV.1]初来乍到

    发表于 28-8-2011 08:46:13 | 显示全部楼层 |阅读模式

    汽车零部件采购、销售通信录       填写你的培训需求,我们帮你找      招募汽车专业培训老师


    #include "udf.h"

    #define CON    8.411e6

    DEFINE_SOURCE(cell_x_source, cell, thread, dS, eqn)
    {
      real source;


          /* source term */
          source = -CON*C_U(cell,thread);

          /* derivative of source term w.r.t. x-velocity. */
          dS[eqn] = -CON;

      return source;
    }
    DEFINE_SOURCE(cell_y_source, cell, thread, dS, eqn)
    {
      real source;


          /* source term */
          source = -CON*C_V(cell,thread);

          /* derivative of source term w.r.t. x-velocity. */
          dS[eqn] = -CON;

      return source;
    }
    DEFINE_SOURCE(cell_z_source, cell, thread, dS, eqn)
    {
      real source;


          /* source term */
          source = -CON*C_W(cell,thread);

          /* derivative of source term w.r.t. x-velocity. */
          dS[eqn] = -CON;

      return source;
    }
    DEFINE_SOURCE(cell_mass_source, cell, thread, dS, i)
    {
      real source;


          /* source term */
    source=-20*C_YI(cell,thread,i)/(1+C_YI(cell,thread,i));

          /* derivative of source term w.r.t. x-velocity. */
    dS=-20/((1+C_YI(cell,thread,i))*(1+C_YI(cell,thread,i)));

      return source;
    }
    初始化时出现以下语句:
      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.
    请教是哪一块可能出现了问题,万分感谢!!!

    快速发帖

    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    QQ|手机版|小黑屋|Archiver|汽车工程师之家 ( 渝ICP备18012993号-1 )

    GMT+8, 23-11-2024 02:17 , Processed in 0.229215 second(s), 27 queries .

    Powered by Discuz! X3.5

    © 2001-2013 Comsenz Inc.