After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) your DEFINE_DPM_TIMESTEP 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, first open the Discrete Phase Model dialog box.
Setup → Models → Discrete Phase
Edit...
Click the Injections... button to open the Injections dialog box. Create an injection and then click Close in the Injections dialog box.
Next, click the UDF tab in the Discrete Phase Model dialog box. Select the function name (for example, limit_to_e_minus_four::libudf) from the DPM Time Step drop-down list under User-Defined Functions (Figure 6.98: The Discrete Phase Model Dialog Box), and click .
See
DEFINE_DPM_TIMESTEP
for details
about DEFINE_DPM_TIMESTEP functions.