6.5.1. Hooking DEFINE_CG_MOTION UDFs

After you have compiled (Compiling UDFs) your DEFINE_CG_MOTION 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 (Figure 6.104: 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.

 Setup →   Dynamic Mesh → Create/Edit...

Figure 6.104:  The Dynamic Mesh Zones Dialog Box

The Dynamic Mesh Zones Dialog Box

Select Rigid Body under Type in the Dynamic Mesh Zones dialog box (Figure 6.104: The Dynamic Mesh Zones Dialog Box) and click the Motion Attributes tab. Finally, select the function name (for example, piston::libudf) from the Motion UDF/Profile drop-down list, and click Create then Close.

See DEFINE_CG_MOTION for details about DEFINE_CG_MOTION functions.


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