24小时热门版块排行榜    

查看: 2143  |  回复: 1

kehuanshukan

金虫 (小有名气)

[求助] 请教fluent中help里DEFINE_VR_RATE中 *rate等含义

/*********************************************************************
   UDF for specifying a volume reaction rate
   The basics of ANSYS FLUENT’s calculation of reaction rates: only an
   Arrhenius ("finite rate" reaction rate is calculated
   from the inputs given by the user in the graphical user interface
 **********************************************************************/
 
 #include "udf.h"
 
 DEFINE_VR_RATE(vol_reac_rate,c,t,r,wk,yk,rate,rr_t)
 {
    real ci, prod;
    int i;
 
   /* Calculate Arrhenius reaction rate */
    prod = 1.;
    for(i = 0; i < r->n_reactants; i++)
      {
        ci  = C_R(c,t) * yk[r->reactant] / wk[r->reactant];
        prod *= pow(ci, r->exp_reactant);
      }
      *rate = r->A * exp( - r->E / (UNIVERSAL_GAS_CONSTANT * C_T(c,t))) *
               pow(C_T(c,t), r->b) * prod;
      *rr_t = *rate;
      /* No "return..;" value. */
 } 

语句中不明白*rate和*rr_t中*表示什么含义
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

chenkunzzr

新虫 (初入文坛)

我也不懂,同问
2楼2018-05-23 21:25:14
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 kehuanshukan 的主题更新
信息提示
请填处理意见