After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) your DEFINE_DPM_OUTPUT UDF, the name of the function you supplied as a DEFINE macro argument will become visible and selectable in the Sample Trajectories dialog box (Figure 6.91: The Sample Trajectories Dialog Box) in ANSYS Fluent.
In order to hook the UDF, you must first set up the discrete phase model (for example, create a particle injection). After you have run the calculation and generated data, open the Sample Trajectories dialog box (Figure 6.91: The Sample Trajectories Dialog Box).
Results → Reorts → Discrete Phase → Sample
New...
Select the appropriate injection in the Release From Injections list, indicate where the sample will be written (for example, make a selection in the Lines list), and select the function name (for example, discrete_phase_sample::libudf) from the Output drop-down list under User-Defined Functions. Then click Compute (for steady calculations) or Start (for transient calculations).
See
DEFINE_DPM_OUTPUT
for details
about DEFINE_DPM_OUTPUT functions.