![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
After you have interpreted (Chapter 4) or compiled (Chapter 5) your DEFINE_ON_DEMAND UDF, the name of the function you supplied as a DEFINE macro argument will become visible and selectable in the Execute On Demand dialog box (Figure 6.1.10) in ANSYS FLUENT.
To hook the UDF to ANSYS FLUENT, open the Execute On Demand dialog box.
Define
User-Defined
Execute On Demand...
Select the function name (e.g., on_demand_calc::libudf) in the Execute On Demand drop-down list and click Execute. ANSYS FLUENT will execute the UDF immediately. Click Close to close the dialog box.
See Section 2.2.9 for details about defining DEFINE_ON_DEMAND functions.