Compiled UDFs are built in the same way that the ANSYS Fluent executable itself is built: a
Makefile script is used to invoke the system C or C++ compiler to
build an object code library. You initiate this action in the Compiled UDFs
dialog box by clicking . The object code library contains the native
machine language translation of your higher-level C or C++ source code. The shared library must
then be loaded into ANSYS Fluent at run time by a process called "dynamic loading". You
initiate this action in the Compiled UDFs dialog box by clicking
. The object libraries are specific to the computer architecture
being used, as well as to the particular version of the ANSYS Fluent executable being run. The
libraries must, therefore, be rebuilt any time ANSYS Fluent is upgraded, when the computer’s
operating system level changes, or when the job is run on a different type of computer.
In summary, compiled UDFs are compiled from source files using the graphical user interface, in a two-step process. The process involves the Compiled UDFs dialog box, where you first build a shared library object file from a source file, and then load the shared library that was just built into ANSYS Fluent.