![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
After you have interpreted (Chapter 4) or compiled (Chapter 5) your material property UDF, the name of the function you supplied as a DEFINE macro argument will become visible and selectable in ANSYS FLUENT.
There are various dialog boxes in which you can activate a DEFINE_PROPERTY UDF (e.g., Phase Interaction dialog box, Secondary Phase dialog box), and so the method for hooking it will depend on the property being defined. The following is an example of hooking a UDF that defines viscosity.
First, open the Materials task page.
Materials
Select the appropriate material from the Material selection list and click the Create/Edit... button to open the Create/Edit Materials dialog box (Figure 6.2.20).
Next, open the User-Defined Functions dialog box (Figure 6.2.21) by choosing user-defined in the drop-down list for the appropriate property (e.g., Viscosity) in the Create/Edit Materials dialog box. Then select the function name (e.g., cell_viscosity::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 in the Create/Edit Materials dialog box.
See Section 2.3.16 for details about DEFINE_PROPERTY functions.