Fluids

Fluids

Topics relate to Fluent, CFX, Turbogrid and more

Difference between interpreted and compiled UDFs?

    • admin
      Ansys Employee

      What is the difference between interpreted and compiled UDFs?

    • admin
      Ansys Employee

      The major difference between interpreted and compiled UDFs is that interpreted UDFs cannot access FLUENT solver data using direct structure references; they can only indirectly access data through the use of Fluent-supplied macros. This can be significant if, for example, you want to introduce new data structures in your UDF. Thus, when deciding which type of UDF to use for your ANSYS Fluent model: •Use interpreted UDFs for small, straightforward functions •Use compiled UDFs for complex functions that: •Have a significant CPU requirement (for example, a property UDF that is called on a per-cell basis every iteration) •Require access to a shared library. For more information on these differences please open ANSYS Help Viewer click on the Go To Page icon and enter the command help/fluudf/fluudf_InterpretedVSCompiled.html in the pop-up window then click on Go.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.