After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) 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.50: The Radiation Model Dialog Box).
Setup → 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.51: The User-Defined Functions Dialog Box).
Select the function name (for example, sol_direct_intensity::libudf) from the list of UDFs displayed in the User-Defined Functions dialog box and click . The name of the function will subsequently be displayed under the selected property (for example, Direct Solar Irradiation) in the Radiation Model dialog box (Figure 6.50: The Radiation Model Dialog Box).
See
DEFINE_SOLAR_INTENSITY
for
details about DEFINE_SOLAR_INTENSITY functions.