![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
After you have compiled your DEFINE_SPECIFIC_HEAT UDF (as described in Chapter 5), the name of the function you supplied as a DEFINE macro argument will become visible and selectable in ANSYS FLUENT.
To hook the UDF to ANSYS FLUENT, you will first need to 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.29).
Next, select user-defined from the drop-down list for Cp to open the User-Defined Functions dialog box (Figure 6.2.30). Select the name you defined in the UDF (e.g., my_user_cp::libudf) and click OK. The name of the function will subsequently be displayed under the Cp property in the Create/Edit Materials dialog box.
See Section 2.3.21 for details about defining DEFINE_SPECIFIC_HEAT UDFs.