6.7. Common Errors While Hooking a UDF to ANSYS Fluent

In some cases, if you select user-defined as an option in a graphics dialog box but have not previously interpreted or compiled/loaded a UDF, you will get an error message.

In other graphics dialog boxes, the user-defined option will become visible as an option for a parameter only after you have interpreted or compiled the UDF. After you have interpreted or compiled the UDF, you can then select user-defined option and the list of interpreted and compiled/loaded UDFs will be displayed.

If you inadvertently hook a UDF to the wrong parameter in an ANSYS Fluent graphics dialog box (for example, profile UDF for a material property), you will either get a real-time error message, or when you go to initialize or iterate the solution, ANSYS Fluent will report an error in the dialog box (Figure 6.115: The Error Dialog).

Figure 6.115:  The Error Dialog

The Error Dialog

A message will also be reported to the console (and log file):

 Error: get_udf_function: function dpm_timestep::libudf has wrong type: 28 != 26 
 Error Object: #f 

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