After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) your DEFINE_ANISOTROPIC_DIFFUSIVITY UDF, the name of the function you supplied as the first DEFINE macro argument will become visible and selectable
in ANSYS Fluent.
To hook the UDF to ANSYS Fluent, you will first need to open the User-Defined Scalars dialog box.
Parameters & Customization → User Defined Scalars
Edit...
In the User-Defined Scalars dialog box, specify the Number of User-Defined Scalars (for example, 2) and click . Next, open the Materials task page.
Setup →
Materials
Select one of the materials in the Materials list and click Create/Edit... to open the Create/Edit Materials dialog box (Figure 6.111: The Create/Edit Materials Dialog Box).
Scroll down the Properties group box in the Create/Edit Materials dialog box (Figure 6.111: The Create/Edit Materials Dialog Box), and select defined-per-uds from the UDS Diffusivity drop-down list. This will open the UDS Diffusion Coefficients dialog box (Figure 6.112: The UDS Diffusion Coefficients Dialog Box).
In the UDS Diffusion Coefficients dialog box, select a scalar equation (for example, uds-0) and select user-defined-anisotropic from the drop-down list under Coefficient. This will open the User-Defined Functions dialog box. Select the name of the UDF (for example, cyl_ortho_diff::libudf) you want to hook, and click . The name of the UDF will be displayed in the field below the Coefficient drop-down list in the UDS Diffusion Coefficients dialog box. Click , and then click Change/Create in the Create/Edit Materials dialog box.
Note that you can hook a unique diffusion coefficient UDF for each scalar transport equation you have defined in your model.
See
DEFINE_ANISOTROPIC_DIFFUSIVITY
for details about defining DEFINE_ANISOTROPIC_DIFFUSIVITY UDFs and the User's
Guide for general information about UDS anisotropic diffusivity.