![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
After you have interpreted (Chapter 4) or compiled (Chapter 5) 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.
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.2.22).
Open the User-Defined Functions dialog box (Figure 6.2.23) 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 (e.g., 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.
See Section 2.3.17 for details about DEFINE_SCAT_PHASE_FUNC functions.