After you have compiled your DEFINE_SPECIFIC_HEAT UDF (as described in Compiling UDFs),
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.
Setup →
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.61: The Create/Edit Materials Dialog Box).
Next, select user-defined from the drop-down list for Cp to open the User-Defined Functions dialog box (Figure 6.62: The User-Defined Functions Dialog Box). Select the name you defined in the UDF (for example, my_user_cp::libudf) and click . The name of the function will subsequently be displayed under the Cp property in the Create/Edit Materials dialog box.
See
DEFINE_SPECIFIC_HEAT
for details
about defining DEFINE_SPECIFIC_HEAT UDFs.