6.2.30. Hooking DEFINE_SOLAR_INTENSITY UDFs

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...

Figure 6.50:  The Radiation Model Dialog Box

The Radiation Model Dialog Box

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).

Figure 6.51:  The User-Defined Functions Dialog Box

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 OK. 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.


Release 18.2 - © ANSYS, Inc. All rights reserved.