After you have compiled (Compiling UDFs) your DEFINE_CONTACT UDF, the name of
the argument you supplied as the first DEFINE macro argument will become visible and selectable in the Contact UDF drop-down box of the Contact Detection tag in the Options dialog box of ANSYS Fluent.
To hook the UDF to ANSYS Fluent, you will must first right-click the General branch of the tree and select Transient from the Analysis Type sub-menu.
Setup → General
Analysis Type → Transient
Next, enable the Dynamic Mesh option in the Dynamic Mesh task page.
Setup →
Dynamic Mesh →
Dynamic Mesh
Then, select the Contact Detection check box in the Options group box, and click the Settings... button to open the Options dialog box (Figure 6.110: The Options Dialog Box Showing the Contact Detection Tab).
Select the function name (for example, contact_props::libudf) from the UDF drop-down list.
See
DEFINE_CONTACT
for details
about DEFINE_CONTACT functions.