6.5.3. Hooking DEFINE_GEOM UDFs

After you have compiled (Compiling UDFs) your DEFINE_GEOM UDF, the name of the function you supplied as a DEFINE macro argument will become visible and selectable in the Dynamic Mesh Zones dialog box.

To hook the UDF to ANSYS Fluent, you will first need to enable the Dynamic Mesh option in the Dynamic Mesh task page.

 Setup →   Dynamic Mesh →   Dynamic Mesh

Next, open the Dynamic Mesh Zones dialog box (Figure 6.107: The Dynamic Mesh Zones Dialog Box).

 Setup →   Dynamic Mesh → Create/Edit...

Figure 6.107:  The Dynamic Mesh Zones Dialog Box

The Dynamic Mesh Zones Dialog Box

Select Deforming under Type in the Dynamic Mesh Zones dialog box (Figure 6.107: The Dynamic Mesh Zones Dialog Box) and click the Geometry Definition tab. Select user-defined in the Definition drop-down list, and select the function name (for example, parabola::libudf) from the Geometry UDF drop-down list. Click Create and then Close.

See DEFINE_GEOM for details about DEFINE_GEOM functions.


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