![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
The udf.h header file contains definitions for DEFINE macros as well as #include compiler directives for C library function header files. It also includes header files (e.g., mem.h) for other ANSYS FLUENT-supplied macros and functions. You must, therefore, include the udf.h file at the beginning of every UDF source code file using the #include compiler directive:
#include "udf.h" |
For example, when udf.h is included in the source file containing the DEFINE statement from the previous section,
#include "udf.h" DEFINE_PROFILE(inlet_x_velocity, thread, index) |
upon compilation, the macro will expand to
void inlet_x_velocity(Thread *thread, int index) |
|
You do not need to put a copy of
udf.h in your local folder when you compile your UDF. The
ANSYS FLUENT solver automatically reads the
udf.h file from the following folder after your UDF is compiled:
path
![]() ![]() ![]() ![]() ![]() ![]() where
path is the folder in which you have installed
ANSYS FLUENT (by default, the
path is
C:
|