You are on page 1of 5

Compiling and Loading FLUENT 64-bit UDFs using the "FREE" Microsoft Visual Studio 2010 32-bit Express

Edition and the 7.1 SDK


IMPORTANT SUPPORT NOTE: The 2010 Express Edition and the SDK will allow you to compile 64-bit UDFs for FLUENT. However, the installation and use of the Express and the SDK is not officially supported so we ask that you get your IT folks involved in the actual installation. Also, you CANNOT compile UDFs for FLUENT without first opening the SDK Command prompt window and starting FLUENT from this window.

Instructions
1. Download the Microsoft Visual Studio Express Edition (2010) performing a default installation
http://www.microsoft.com/express/Downloads/#2010-Visual-CPP.

NOTE: If the links do not work please Google this download. 2. Install the SDK

Microsoft Windows SDK for Windows 7.1 and .NET Framework 4 (ISO) http://www.microsoft.com/download/en/details.aspx?id=8442
NOTE: If the links do not work please Google this download. 3. Install the SP1 Patch

Microsoft Visual C++ 2010 Service Pack 1 Compiler Update for the Windows SDK 7.1
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=4422

NOTE: If the links do not work please Google this download.

FLUENT Requirements
1. Share the directory that the case, data, and compiled UDF reside. DO NOT COMPILE OR LOAD UDFS FROM FOLDERS WITH SPACES IN THE NAME AND DO NOT INCLUDE SPACES IN THE NAME OF YOUR CASE AND DATA FILES. a. Right-click on the directory and choose Sharing and Security from the menu. Click "Share this folder" Choose Permissions Make sure that you have Full Control Click OK. 2. Map a drive letter to the Working directory, for example, Z:\ (When compiling UDFs and running in parallel you must you a mapped drive letter to the Working Directory) a. Grant Full Permissions to the Working directory.

Note: When the directory is shared you will notice a "hand" under the directory. If you don't see the "Sharing and Security" option contact your System Administrator. The share name, by default, will be the name of the folder/directory. The share name can be changed.

Starting FLUENT using the SDK 7.0 Command Prompt Window


You have to start FLUENT from the SDK Command Window if you are using the free compiler!

1. Open up the SDK Command Window. This is required as this will set the compiler environment variables.

2. CD to your working directory (your working directory is the directory where your case, data file and udf

is located). Make sure the directory contains no spaces in the name.


3. Launch FLUENT 14.x from this window.

4. Select Parallel under Processing Options and then enter the number or Processes you will be using.

5. Select Show Additional Options from the Fluent launch GUI.

6. In the General Tab type in your mapped drive letter to your working directory, for example, Z:\ . 7. In the FLUENT_Root Path type in the name of the computer where Fluent is installed and where the directory is shared using UNC format.

8. Once Fluent Launches select Define, User Defined, Functions, Compiled. 9. Select the Add button to add your source file. 10. Select Build.

11. After the UDF has been successfully built it is necessary to type in the network path to the compiled UDF in the Library Name panel BEFORE loading the UDF. 12. In front of the directory, libudf, type in the name of the computer where the UDF resides using the \\ format and the name of the shared directory. In the example below, the shared directory name is "working". 13. Click Load.

14. Read you case and data file.

You might also like