CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Microsoft compiler

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 11, 2009, 15:23
Default Microsoft compiler
  #1
Member
 
Casey
Join Date: Jun 2009
Posts: 98
Rep Power: 16
meangreen is on a distinguished road
Has anyone been able to get a compiler for microsoft xp (with fluent 6.3) other than visual studios pro version 6? i would like to get the new visual studios compiler (i think they are on version 8 or 9 now), but i cant get fluent to work with any of these new compilers because I cant set the environmental variables.

Casey
meangreen is offline   Reply With Quote

Old   July 23, 2009, 16:36
Default Getting Fluent 6 (or 12) to run with Windows SDK compilers
  #2
New Member
 
Josh D
Join Date: Jul 2009
Posts: 1
Rep Power: 0
jd83 is on a distinguished road
Casey-

I recently set up fluent to run with the latest microsoft compilers using the latest windows SDK. I'll outline the process below:

Download the latest Windows SDK from microsoft msdn developer center(http://www.microsoft.com/downloads/d...displaylang=en)

(it's OK that it is says it's the Windows server 2008 SDK it's compatible with XP, vista, and server 2008)

You don't need to install everything, just the main components: the compilers, the headers and libraries, and the development tools.

The default environment for the compilers is microsoft server 2008 in debug mode to change this once installed, navigate to the windows SDK folder via the start menu and right-click on the "cmd shell" shortcut and select properties. In the "target" box go to the very end of the string and add:

/Release /x64 /xp

(this is assuming you are using 64-bit windows xp as your target machine. change the /x64 to /x86 if you are using a 32bit machine as your target machine)

Thus your final string should look something like this:
C:\WINDOWS\system32\cmd.exe /E:ON /V:ON /T:0E /K "C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\SetEnv.Cmd" /Release /xp /x64

Once this is setup, when you want to compile a UDF in fluent you need to launch fluent from this command prompt. To make this easier, set an enviromental variable for the fluent executable locaton (you'll need to be an administrator on the computer):

Right click on my computer->properties. Select the advanced tab and at the bottom click "environmental variables" in the system variables box find and highlight the "path" variable. Click edit and go to the end of the string. Add a semicolon to the end of the string if it is not already present and then add the folder that the fluent launcher is in. You'll need to check on your computer, but it should be something like:

C:\Fluent.Inc\ntbin\win64

Once your environmental variable is set then go to the windows sdk folder via the start menu, click on the cmd shell. Then type: fluent to launch fluent as normal or add any extensions as listed in the users guide (i.e. fluent 3ddp -t2 to launch the 3d double precision parallel version with 2 process). Hope this helps-
jd83 is offline   Reply With Quote

Old   July 25, 2009, 14:00
Default
  #3
Member
 
Casey
Join Date: Jun 2009
Posts: 98
Rep Power: 16
meangreen is on a distinguished road
thanks! Ill give this a try and let you know if I have any problems.
meangreen is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Intel Fortran Compiler & Tutorial 17 Young CFX 1 March 30, 2011 01:39
Fortran compiler Erik Siemens 2 November 28, 2008 20:05
Intel compiler for linux x86 marcus Siemens 1 November 9, 2006 16:43
Fortran compiler Arnab Siemens 5 September 14, 2004 03:59
Help for udf compile error richard FLUENT 3 October 12, 2003 23:13


All times are GMT -4. The time now is 22:52.