6.4.13. Hooking DEFINE_DPM_SWITCH UDFs

After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) 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.97: 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.97: The Custom Laws Dialog Box).

Figure 6.97:  The Custom Laws Dialog Box

The Custom Laws Dialog Box

In the Custom Laws dialog box, select the function name (for example, dpm_switch::libudf) from the Switching drop-down list and click OK.

See DEFINE_DPM_SWITCH for details about DEFINE_DPM_SWITCH functions.


Release 18.2 - © ANSYS, Inc. All rights reserved.