6.5.4. Hooking DEFINE_GRID_MOTION UDFs

After you have interpreted (Interpreting UDFs) or compiled (Compiling UDFs) your DEFINE_GRID_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.108: Dynamic Mesh Zones).

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.108:  Dynamic Mesh Zones

Dynamic Mesh Zones

Select User-Defined under Type in the Dynamic Mesh Zones dialog box (Figure 6.108: Dynamic Mesh Zones) and click the Motion Attributes tab. Select the function name (for example, beam::libudf) from the Mesh Motion UDF drop-down list. Click Create then Close.

See DEFINE_GRID_MOTION for details about DEFINE_GRID_MOTION functions.


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