![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
After you have interpreted (Chapter 4) or compiled (Chapter 5) 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.
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.10).
Next, select user-defined-gray-band from the Absorption Coefficient drop-down list in the Create/Edit Materials dialog box. This will open the User-Defined Functions dialog box, where you must select the name of the function (e.g., user_gray_band_abs::libudf) and click OK. Finally, click Change/Create in the Create/Edit Materials dialog box.
See Section 2.3.8 for details about DEFINE_GRAY_BAND_ABS_COEFF functions.