![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
After you have interpreted (Chapter 4) or compiled (Chapter 5) your DEFINE_SOLAR_INTENSITY UDF, the name of the function you supplied in the argument of the DEFINE macro will become visible and selectable in the User-Defined Functions dialog box in ANSYS FLUENT.
To hook the UDF, first open the Radiation Model dialog box (Figure 6.2.24).
Models
Radiation
Edit...
Select Discrete Ordinates (DO) from the Model list, and select Solar Ray Tracing in the Solar Load group box. In the Illumination Parameters group box that appears, select user-defined from the Direct Solar Irradiation or Diffuse Solar Irradiation drop-down list to open the User-Defined Functions dialog box (Figure 6.2.25).
Select the function name (e.g., sol_direct_intensity::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., Direct Solar Irradiation) in the Radiation Model dialog box (Figure 6.2.24).
See Section 2.3.18 for details about DEFINE_SOLAR_INTENSITY functions.