6.4.6. Hooking DEFINE_DPM_INJECTION_INIT UDFs

After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) your DEFINE_DPM_INJECTION_INIT 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.89: The Injections Dialog Box) in ANSYS Fluent.

To hook the UDF, first create a particle injection in the Injections dialog box.

 Setup → Models → Discrete Phase → Injections New...

Figure 6.89:  The Injections Dialog Box

The Injections Dialog Box

Set up the particle injection in the Set Injection Properties dialog box. Then click the UDF tab and select the function name (for example, init_bubbles::libudf) from the Initialization drop-down list under User-Defined Functions. Click OK.

See DEFINE_DPM_INJECTION_INIT for details about DEFINE_DPM_INJECTION_INIT functions.


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