You are on page 1of 1

Compiling and Loading User Defined Functions using Microsoft Visual...

http://www.fluentusers.com/support/installation/winfaq/udfguidenets20...
Country [select] Contact Us Search

Home

Applications

Products

Services

Partners

News

Events

About Us

Compiling and Loading User Defined Functions using Microsoft Visual C++ 2008 Express Edition in Serial

Print-friendly

NOTE: Microsoft Visual C++ 2008 Express Edition will NOT work if you are running FLUENT 6.3.26 64-bit. This is a 32-bit compiler only. Microsoft announced that they were giving away a FREE compiler. The compiler is called Microsoft C++ 2008 Express Edition which can be located at this link: Microsoft Visual Studio 2008 Express Edition

Steps for Building Compiled Windows UDFs using Microsoft Visual C++ 2008 Express Edition
1. Install Microsoft Visual C++ 2008 Express Edition (Refer to the Microsoft Visual C++ 2008 Express Edition Installation Guide for installation instructions.) 2. You will be starting FLUENT from a Command Prompt so you will have to set the FLUENT.INC Environment Variables. 3. Select the Start Menu, Programs, Fluent Inc Products, Fluent 6.3.26), Set Environment. Choose YES to Modify. 4. The installation of Microsoft Visual C++ 2008 Express Edition does not set environment variables necessary to run from a command line, therefore, in order to compile UDF's within FLUENT you will need to set the Visual Studio environment variables. Select the Start Menu, Programs, Visual C++ 9.0 Express Edition, Visual Studio Tools, choose Visual Studio 2008 Command Prompt.

4. In this Command Prompt window change directory to the working directory where the source file (.c) and case and data file are located and launch FLUENT. 5. In FLUENT, Select Define, User Defined, Functions, Compiled. 6. Select the Add button to add your source file. 7. Select Build.

8. Once the UDF is Compiled select the Load button. Home

Copyright | Privacy Statement | Advanced Search | Site Map | Contact Us | fluent.com

18/08/2009 23:01

1 of 1

You might also like