A.14.2. File Inclusion Directive Using #include

When you use the #include file inclusion directive, the C preprocessor replaces the line #include filename with the contents of the named file.

#include "filename"

The file you name must reside in your current folder. The only exception to this rule is the udf.h file, which is read automatically by the ANSYS Fluent solver.

For example, the file inclusion directive given by

#include "udf.h" 

will cause the udf.h file to be included with your source code.

The ANSYS Fluent solver automatically reads the udf.h file from the following folder:

path\ANSYS Inc\v182\fluent\fluent18.2.0\src\udf.h

where path is the folder in which you have installed ANSYS Fluent (by default, the path is C:\Program Files).


Release 18.2 - © ANSYS, Inc. All rights reserved.