![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
After you have interpreted (Chapter 4) or compiled (Chapter 5) your DEFINE_UDS_FLUX UDF, the name of the argument that you supplied as the first DEFINE macro argument will become visible and selectable in the User-Defined Scalars dialog box (Figure 6.6.3) in ANSYS FLUENT.
Define
User-Defined
Scalars...
To hook the UDF to ANSYS FLUENT, first specify the Number of User-Defined Scalars (e.g., 2) in the User-Defined Scalars dialog box (Figure 6.6.3). As you enter the number of user-defined scalars, the dialog box will expand to show the User-Defined Scalars Options group box. Next, for each scalar you have defined, increment the UDS Index and select the Solution Zones (e.g., all fluid zones) and the name of the function (e.g., my_uds_flux::libudf) from the Flux Function drop-down list, and click OK.