After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) your DEFINE_DPM_LAW UDF, the name of the function you supplied as a DEFINE macro argument will become visible and selectable in the Custom Laws dialog box (Figure 6.90: The Custom Laws Dialog Box) in ANSYS Fluent.
To hook the UDF to ANSYS Fluent, first create a particle injection in the Injections dialog box.
Setup → Models → Discrete Phase → Injections
New...
Enable the Custom option in the Laws group box in the Set Injection Properties dialog box, in order to open the Custom Laws dialog box (Figure 6.90: The Custom Laws Dialog Box).
In the Custom Laws dialog box, select the function name (for example, Evapor_Swelling_Law::libudf) from the appropriate drop-down list located to the left of each of the particle laws (for example, First Law), and click .
See
DEFINE_DPM_LAW
for details
about DEFINE_DPM_LAW functions.