![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
After you have interpreted (Chapter 4) or compiled (Chapter 5) your DEFINE_DPM_SWITCH 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.4.14) in ANSYS FLUENT.
To hook the UDF to ANSYS FLUENT, first create a particle injection in the Injections dialog box .
Define
Injections...
Click Create in the Injections dialog box to open the Set Injection Properties dialog box, so that you can set up the injection properties. 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.4.14).
In the Custom Laws dialog box, select the function name (e.g., dpm_switch::libudf) from the Switching drop-down list and click OK.
See Section 2.5.13 for details about DEFINE_DPM_SWITCH functions.