The first step in compiling a UDF source file using the text user
interface (TUI) involves setting up the folder structure where the shared (compiled) library
will reside, for each of the versions of ANSYS Fluent you want to run (that is,
2d_node and 2d_host). You will then modify
the file named Makefile to set up source file parameters. Subsequently,
you will execute the Makefile, which compiles the source file and
builds the shared library from the resulting object files. Finally, you will load the UDF
library into ANSYS Fluent. Using the TUI option allows you the added advantage of building a
shared library for precompiled object file(s) that are derived from non-ANSYS Fluent sources (for
example, .o objects from .f sources). See
Link Precompiled Object Files From Non-ANSYS Fluent Sources for details.
Important: Note that if you are running serial or parallel ANSYS Fluent on
a Windows system and intend to compile a UDF, then you must have Microsoft
Visual Studio installed on your machine, preferably on the C: drive.
For more information, see the following sections: