6.4.9. Hooking DEFINE_DPM_PROPERTY UDFs

After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) your DEFINE_DPM_PROPERTY UDF, the name of the function you supplied as a DEFINE macro argument will become visible and selectable in the User-Defined Functions dialog box.

To hook the UDF to ANSYS Fluent, you will first need to open the Materials task page.

 Setup →   Materials

Select a material from Materials list and click the Create/Edit... button to open the Create/Edit Materials dialog box (Figure 6.92: The Create/Edit Materials Dialog Box).

Figure 6.92:  The Create/Edit Materials Dialog Box

The Create/Edit Materials Dialog Box

Select user-defined in the drop-down list for one of the properties (for example, Particle Emissivity) in the Create/Edit Materials dialog box, in order to open the User-Defined Functions dialog box (Figure 6.93: The User-Defined Functions Dialog Box).


Important:  In order for the Particle Emissivity property to be displayed in the sample dialog box shown above, you must enable a radiation model, turn on the Particle Radiation Interaction option in the Discrete Phase Model dialog box, and introduce a particle injection in the Injections dialog box.


Figure 6.93:  The User-Defined Functions Dialog Box

The User-Defined Functions Dialog Box

Select the function name (for example, coal_emissivity::libudf) from the list of UDFs displayed in the User-Defined Functions dialog box, and click OK. The name of the function will subsequently be displayed under the selected property (for example, Particle Emissivity) in the Create/Edit Materials dialog box.

See DEFINE_PROPERTY UDFs for details about DEFINE_DPM_PROPERTY functions.


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