Temperature dependent diffusion coefficient

The flow solver supports temperature-dependent diffusion coefficient in active and passive scalar equations.

To use this functionality, do the following before you run your simulation:

  1. Add the following line in the user.prm file.

    VARIABLE_MOLECULAR_DIFFUSION_COEFFICIENT = TRUE

    For more information on the user.prm file, see Flow solver files.

  2. Specify the table for the molecular diffusion coefficient.

    You specify the table in the flow.vdc file, which you create using a text editor in your run directory. The following table lists the field values that you need to specify in the flow.vdc file and indicates the values used in the example below:

    Field Value Description Value from example
    S int The number of tables 1
    Name_S char The name of the affected scalar S Carbon_Dioxide_Gas
    N int Length of the table 8
    T_0 D_0 double Temperature, T_0, and molecular diffusion coefficient, D_0 0.00000 14.00000
    ... ... ... ...
    T_N D_N double Temperature, T_N, and molecular diffusion coefficient, D_N 50.00000 19.00000

    The temperature units must be consistent with the solution units.

Example

1
Carbon_Dioxide_Gas
8
  0.00000    14.00000
  7.14286    14.71429
 14.28571    15.42857
 21.42857    16.14286
 28.57143    16.85714
 35.71429    17.57143
 42.85714    18.28571
 50.00000    19.00000