After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) your DEFINE_DPM_DRAG UDF, the name of the function you supplied as a DEFINE macro argument will become visible and selectable in the Set Injection Properties dialog box (Figure 6.86: The Set Injection Properties Dialog Box) in ANSYS Fluent.
To hook the UDF, open the Injections dialog box by clicking Discrete Phase and selecting Injections... in the Setting Up Physics ribbon tab (Model Specific group box) or by clicking Injections... in the Discrete Phase Model dialog box. In the Injections dialog box, Set... or Create the injection that the user-defined DPM drag function specifies. This will bring up the Set Injection Properties dialog box.
Click the Physical Models tab in the Set Injection Properties dialog box. Select the function name (for example, particle_drag_force::libudf) from the Drag Law drop-down list in the Drag Parameters group box (Figure 6.86: The Set Injection Properties Dialog Box), and click . (Note that function names listed in the drop-down list are preceded by the word udf, as in udf particle_drag_force::libudf.)
See
DEFINE_DPM_DRAG
for details
about DEFINE_DPM_DRAG functions.