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

5.1.2 Compilers

The graphical and text interface processes for a compiled UDF require the use of a C compiler that is native to the operating system and machine you are running on. Most UNIX operating systems provide a C compiler as a standard feature. If you are operating on a Windows system, you will need to ensure that a Microsoft Visual Studio is installed on your machine before you proceed. If you are unsure about compiler requirements for your system, please contact ANSYS FLUENT installation support. For Linux machines, ANSYS FLUENT supports any ANSI-compliant compiler.

figure   

Obsolete versions of any native compiler may not work properly with compiled UDFs.

When launching ANSYS FLUENT on Windows using FLUENT Launcher, the UDF Compiler tab (Figure  5.1.1) allows you to specify compiler settings for compiling UDFs.

Figure 5.1.1: The UDF Compiler Tab of the FLUENT Launcher Dialog Box
figure

The Setup Compilation Environment for UDF option is enabled by default, and allows you to specify a batch file that contains UDF compilation environment settings. Enter a batch file name and path in the Win 32 text box, or click figure to browse for a batch file. By default, the FLUENT Launcher dialog box is set to use udf.bat file that is that is saved in your computer as part of the ANSYS FLUENT installation. It is recommended that you keep the default batch file, which is tested with the latest MS Visual Studio C++ compilers at the time of the ANSYS FLUENT release date.


next up previous contents index Previous: 5.1.1 Location of the
Up: 5.1 Introduction
Next: 5.2 Compiling a UDF
Release 12.0 © ANSYS, Inc. 2009-01-14