[ANSYS, Inc. Logo] return to home search
next up previous contents index

5.1.1 Location of the udf.h File

UDFs are defined using DEFINE macros (see Chapter  2) and the definitions for DEFINE macros are included in udf.h. Consequently, before you compile your source file, the udf.h header file will need to be accessible in your path, or saved locally within your working folder .

The location of the udf.h file is:

path $\backslash$ ANSYS Inc $\backslash$ v120 $\backslash$ fluent $\backslash$ fluent12.0. $\stackrel{\Downarrow}{x} \backslash$ src $\backslash$ udf.h

where path is the folder in which you have installed ANSYS FLUENT (by default, the path is C: $\backslash$ Program Files), and $x$ is replaced by the appropriate number for the release (e.g., 9 for fluent12.0.9).

figure   

In general, you should not copy udf.h from the installation area. The compiler is designed to look for this file locally (in your current folder) first. If it is not found in your current folder, the compiler will look in the $\backslash$ src folder automatically. In the event that you upgrade your release area, but do not remove an old copy of udf.h from your working folder, you will not be accessing the most recent version of this file.

figure   

You should not, under any circumstances, alter the udf.h file.

There may be instances when will want to include additional header files in the compilation process. Make sure that all header files needed for UDFs are located in the $\backslash$ src folder.


next up previous contents index Previous: 5.1 Introduction
Up: 5.1 Introduction
Next: 5.1.2 Compilers
Release 12.0 © ANSYS, Inc. 2009-01-14