[ANSYS, Inc. Logo] return to home search
next up previous contents index

6.4.9 Hooking DEFINE_DPM_PROPERTY UDFs

After you have interpreted (Chapter  4) or compiled (Chapter  5) 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.

figure Materials

Select a material from Materials list and click the Create/Edit... button to open the Create/Edit Materials dialog box (Figure  6.4.9).

Figure 6.4.9: The Create/Edit Materials Dialog Box
figure

Select user-defined in the drop-down list for one of the properties (e.g., Particle Emissivity) in the Create/Edit Materials dialog box , in order to open the User-Defined Functions dialog box (Figure  6.4.10).

figure   

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.4.10: The User-Defined Functions Dialog Box
figure

Select the function name (e.g., 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 (e.g., Particle Emissivity) in the Create/Edit Materials dialog box.

See Section  2.3.16 for details about DEFINE_DPM_PROPERTY functions.


next up previous contents index Previous: 6.4.8 Hooking DEFINE_DPM_OUTPUT UDFs
Up: 6.4 Hooking Discrete Phase
Next: 6.4.10 Hooking DEFINE_DPM_SCALAR_UPDATE UDFs
Release 12.0 © ANSYS, Inc. 2009-01-14