After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) 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.10: The Execute On Demand Dialog Box) in ANSYS Fluent.
To hook the UDF to ANSYS Fluent, open the Execute On Demand dialog box.
Parameters & Customization → User Defined Functions
Execute on Demand...
Select the function name (for example, 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
DEFINE_ON_DEMAND
for details
about defining DEFINE_ON_DEMAND functions.