|
[Sponsors] |
March 13, 2013, 05:24 |
Visual Studio Settings for compiling
|
#1 |
Senior Member
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23 |
Hello All
I have windows 7 (64 bit) operating system and fluent 14. Since past 3 days I have been trying to install Visual Studio and SDK for compiling UDF. Just this morning I managed to fix everything and now I can compile UDF without any problem. Though I am not familiar with Visual Studio and SDK stuff. Before the success I tried several solutions given in forums and other websites. I even tried re-installing Ansys-VS2008-SDK in all possible sequences. I am sure I have installed some useless stuff also. Since my operating system is 64 bit may be I have installed some stuff that were 32 bit. Since everything seems to work fine now I dont want to bother my PC anymore. I am asking these questions because I need to fix the same problem with my laptop and I dont wish to waste same amount of time that I did with the PC. I do understand that visual studio does not care if your system is 64 or 32 bit (Please correct me if I am wrong). How about .NET and SDK? I installed VS2008, then .NET 4 and then SDK (64 bit). Does it matter in which sequence we install these program? |
|
March 14, 2013, 01:39 |
|
#2 |
Senior Member
SSL
Join Date: Oct 2012
Posts: 226
Rep Power: 15 |
Is it needed to install those whole? I thought just VS2008 should be installed.
|
|
March 14, 2013, 02:52 |
|
#3 |
Senior Member
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23 |
Hello Saeed
These instructions are given on the Ansys customer portal. So, I just followed whatever was mentioned. I have seen many people struggle with this, so thought it might be good to share and discuss. |
|
March 14, 2013, 02:54 |
|
#4 |
Senior Member
SSL
Join Date: Oct 2012
Posts: 226
Rep Power: 15 |
I don't have access to it. Would you please kindly email it to me?
|
|
March 14, 2013, 03:00 |
|
#5 |
Senior Member
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23 |
Here it is.
It is mentioned that we must use Visual Studio 2010 but I managed to follow same instructions with Visual Studio 2008. Also I downloaded SDK 64 bit version from this link : http://download.microsoft.com/downlo...DKX_EN_DVD.iso . |
|
March 14, 2013, 03:01 |
|
#6 |
Senior Member
SSL
Join Date: Oct 2012
Posts: 226
Rep Power: 15 |
Thanks a lot.
|
|
March 14, 2013, 03:32 |
|
#7 |
Senior Member
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23 |
For benefit of others here are exact steps that I followed:
1. Install Visual Studio 2008 (available free on various websites). 2. Install .NET framework 4 from Microsoft website. (Without this I could not install SDK. It seems .NET 4 is necessary for the SDK) 3. Install Microsoft Windows SDK version 7.1 (Software Development Kit). [Imp.: Make sure you have the right SDK i.e. 32-Bit or 64-Bit] 4. Set environmental variables by running 'setenv' program inside fluent installation directory. 5. Start the SDK Command Window i.e. 'CMD shell'. 6. Change directory to working directory. 7. Launch fluent by e.g "C:\Program Files\ANSYS Inc\v140\fluent\ntbin\win64\fluent.exe" (The fluent path could vary depending on individual's installation directory.) |
|
Tags |
fluent - udf, udf compilation, vs2008 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 19:56 |
Microsoft Visual Studio | ehooi | Fluent UDF and Scheme Programming | 0 | January 14, 2011 12:47 |
How to install CGNS under windows xp? | lzgwhy | Main CFD Forum | 1 | January 11, 2011 19:44 |
CGNS lib and Fortran compiler | manaliac | Main CFD Forum | 2 | November 29, 2010 07:25 |
error while compiling a udf | rahul | FLUENT | 10 | August 30, 2006 09:33 |