After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) your DEFINE_GRAY_BAND_ABS_COEFF UDF, the name of the function you supplied as a DEFINE macro argument will become visible and selectable in the Create/Edit Materials 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, with a nonzero Number of Bands in the Non-Gray Model group 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.32: The Create/Edit Materials Dialog Box).
Next, select user-defined-gray-band from the Absorption Coefficient drop-down list in the Create/Edit Materials dialog box. This opens the User-Defined Functions dialog box, where you must select the name of the function (for example, user_gray_band_abs::libudf) and click . Finally, click Change/Create in the Create/Edit Materials dialog box.
See
DEFINE_GRAY_BAND_ABS_COEFF
for
details about DEFINE_GRAY_BAND_ABS_COEFF functions.