![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
After you have interpreted (Chapter 4) or compiled (Chapter 5) your DEFINE_DIFFUSIVITY UDF, the name of the function you supplied as a DEFINE macro argument will become visible and selectable in ANSYS FLUENT.
To hook the UDF to ANSYS FLUENT, first open the Materials task page.
Materials
Make a selection in the Materials list and click the Create/Edit... button to open the appropriate Create/Edit Materials dialog box (Figure 6.2.3).
You then have the following options:
Select the name of your UDF (e.g., mean_age_diff::libudf) and click OK in the User-Defined Functions dialog box. The name will then be displayed in the field below the Mass Diffusivity drop-down list in the Create/Edit Materials dialog box. Click Change/Create to save your settings.
Define
User-Defined
Scalars...
Then, select user-defined from the UDS Diffusivity drop-down list in the Create/Edit Materials dialog box (Figure 6.2.5).
Next, select the name of your UDF (e.g., mean_age_diff::libudf) in the User-Defined Functions dialog box that opens (Figure 6.2.4) and click OK. The name will then be displayed in the field below the UDS Diffusivity drop-down list in the Create/Edit Materials dialog box. Click Change/Create to save your settings.
See Section 2.3.3 for details about defining DEFINE_DIFFUSIVITY UDFs and the User's Guide for general information about UDS diffusivity.