Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

What does it mean by C_R(c,t) in DEFINE_VR_RATE UDF?

    • MIHIR DUTTA
      Subscriber

      During my work with UDF , i didn't understand about using C_R(c,t). Can anyone please texplain about it?

      #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[i]] / wk[r->reactant[i]];
      prod *= pow(ci, r->exp_reactant[i]);
      }
      *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. */
      }

    • Rob
      Forum Moderator

      There's a very useful document with Fluent, but it's rarely looked at. Click on Help and then paste https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v231/en/flu_udf/flu_udf_info.html into the browser. 

Viewing 1 reply thread
  • The topic ‘What does it mean by C_R(c,t) in DEFINE_VR_RATE UDF?’ is closed to new replies.