After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) your DEFINE_DPM_BC UDF, the name of the function you supplied as a DEFINE macro argument will become visible and selectable in the appropriate
boundary condition dialog box (Figure 6.84: The Wall Dialog Box) in ANSYS Fluent.
To hook the UDF, first create an injection using the Injections dialog box.
Setup → Models → Discrete Phase → Injections
New...
Next, open the Boundary Conditions task page.
Setup →
Boundary Conditions
Select the boundary in the Zone list and click Edit... to open the boundary condition dialog box (for example, the Wall dialog box, as shown in Figure 6.84: The Wall Dialog Box).
Click the DPM tab and select user_defined from the Boundary Cond. Type drop-down list in the Discrete Phase Model Conditions group box. This will expand the dialog box to allow you to select the function name (for example, bc_reflect::libudf) from the Boundary Cond. Function drop-down list (Figure 6.84: The Wall Dialog Box). Click .
See
DEFINE_DPM_BC
for details
about DEFINE_DPM_BC functions.