6.6.3. Hooking DEFINE_UDS_UNSTEADY UDFs

After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) your DEFINE_UDS_UNSTEADY 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 in ANSYS Fluent.


Important:  Make sure that you have selected Transient from the Time list in the Solver group box of the General task page.


To hook the UDF to ANSYS Fluent, first open the User-Defined Scalars dialog box.

 Parameters & Customization → User Defined Scalars  Edit...

Figure 6.114:  The User-Defined Scalars Dialog Box

The User-Defined Scalars Dialog Box

In the User-Defined Scalars dialog box (Figure 6.114: The User-Defined Scalars Dialog Box), specify the Number of User-Defined Scalars (for example, 2) in the User-Defined Scalars dialog box (Figure 6.114: The User-Defined Scalars Dialog Box). 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 Zone Type and the Flux Function. Then select the name of your UDF (for example, my_uds_unsteady::libudf) from the Unsteady Function drop-down list, and click OK.


Release 18.2 - © ANSYS, Inc. All rights reserved.