6.2.29. Hooking DEFINE_SCAT_PHASE_FUNC UDFs

After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) your DEFINE_SCAT_PHASE_FUNC 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 in ANSYS Fluent.

To hook the UDF to ANSYS Fluent, first make sure that the Discrete Ordinates (DO) model is selected in the Radiation Model dialog box. Then open the Materials task page.

 Setup →   Materials

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

Figure 6.48:  The Create/Edit Materials Dialog Box

The Create/Edit Materials Dialog Box

Open the User-Defined Functions dialog box (Figure 6.49: The User-Defined Functions Dialog Box) from the Create/Edit Material dialog box by selecting user-defined in the drop-down list for the Scattering Phase Function property. Then, select the function name (for example, ScatPhiB2) 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 Scattering Phase Function property in the Create/Edit Materials dialog box.

Figure 6.49:  The User-Defined Functions Dialog Box

The User-Defined Functions Dialog Box

See DEFINE_SCAT_PHASE_FUNC for details about DEFINE_SCAT_PHASE_FUNC functions.


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