6.2.31. Hooking DEFINE_SOLIDIFICATION_PARAMS UDFs

After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) your DEFINE_SOLIDIFICATION_PARAMS 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 Solidification and Melting dialog box (Figure 6.52: The Solidification and Melting Dialog Box).

 Setup → Models → Solidification & Melting  Edit...

Figure 6.52:  The Solidification and Melting Dialog Box

The Solidification and Melting Dialog Box

Enable Solidification/Melting under Model, and select Scheil Rule from the Options group box. Enable Back Diffusion and select user-defined from the Back Diffusion Parameter drop-down list to open the User-Defined Functions dialog box (Figure 6.53: The User-Defined Functions Dialog Box). You can also select user-defined from the Mush Zone Parameter drop-down list.

Figure 6.53:  The User-Defined Functions Dialog Box

The User-Defined Functions Dialog Box

Select the function name (for example, user_solid_params::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.

See DEFINE_SOLIDIFICATION_PARAMS for details about DEFINE_SOLIDIFICATION_PARAMS functions.


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