[ANSYS, Inc. Logo] return to home search
next up previous contents index

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 only become visible as an option for a parameter 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 (e.g., 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.7.1).

Figure 6.7.1: The Error Dialog
figure

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


next up previous contents index Previous: 6.6.3 Hooking DEFINE_UDS_UNSTEADY UDFs
Up: 6. Hooking UDFs to
Next: 7. Parallel Considerations
Release 12.0 © ANSYS, Inc. 2009-01-14