Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

UDF mass diffusivity for multicomponent Dij

    • Chananun
      Subscriber

      Hi, everyone

      I need to write the UDF for my multicomponent diffusivity (Dij) because my mass diffusivity is not only depend on temperature, so I used DEFINE_DIFFUSIVITY(myudf,c,t,i) . My multicomponent includes 4 species My question is:

      1. How to define the mass diffusivity of Dij ? I used if (i==0) , if(i==1), if(i==2), else to define i index . How about j ? Or do I need to use array to define Dij? For example

      diff[0][1]=10e-6;

      diff[0][2]=10e-6;

    • Surya Deb
      Ansys Employee
      Hello,
      If I understand it correctly, then you can use the macro C_DIFF_L(c,t,i,j) to define the laminar species binary diffusivity.
      Regards SD
Viewing 1 reply thread
  • The topic ‘UDF mass diffusivity for multicomponent Dij’ is closed to new replies.