|
[Sponsors] |
Visual Studio 2017 for udf use - which modules do I need? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 11, 2018, 15:09 |
Visual Studio 2017 for udf use - which modules do I need?
|
#1 |
New Member
Join Date: Mar 2018
Posts: 24
Rep Power: 8 |
Hi guys,
I am sorry to ask this question, as i know that the topic udf is somewhat shopworn. I want to use udfs in ANSYS Fluent. I learned, that I need a C++ Compiler in order to get these to work in ANSYS. Visual Studio is often recommended, since there are versions which can be used for free. However, Visual Studio 2017 Community has 18 modules which can be choosen during installation process. All these together would take a memory of 50 GB, and this amount of memory is simply not available on my laptop. The modules are the following: 3 Windows modules: Development Universal Windows Platform NET Desktop-Development Desktop-Development with C++ 7 Web and Cloud modules: ASP.NET and Webdevelopment Azure-Development Python-Development Node.js-Development Data Storage Data Science and Analytic Applications Office-/SharePoint-Development 5 Mobile and Gaming modules: Mobile Development with .NET Game Development with Unity Mobile Development with Java Script Mobile Development with C++ Game Development with C++ And 3 other Toolsets: Visual Studio Extension Development Linux Development with C++ Multi Platform .Net-Core Development Do I really need to install all the listed modules? The first time I tried to only install the 3 Windows modules, but sadly it didnt work out. So I thought I would better ask some more experienced users, before I start to think about which files on my laptop have to be deleted or transferred to other external hard drives in order to create the necessary space for the 50 GB VS. I still cant imagine that i need the full package to get the desired Compiler. Somewhere around the internet I read an instruction where someone used a older version of VS, and the space mentioned required for the necessary files were below 1 GB... Thanks in advance, a little help would be highly appreciated. |
|
March 11, 2018, 15:38 |
|
#2 |
Senior Member
|
have you gone through this video https://www.youtube.com/watch?v=l4wcXAQ5IGY
|
|
March 11, 2018, 15:57 |
|
#3 |
New Member
Join Date: Mar 2018
Posts: 24
Rep Power: 8 |
Yes, but it doesnt help me at all regarding the question, which modules of VS 17 I need for using udfs in ANSYS.
I am using the student version of ANSYS 19 by the way. I will try to get my hands on an older version of VS in the meantime... |
|
March 15, 2018, 09:44 |
|
#4 |
Senior Member
Join Date: Sep 2017
Posts: 246
Rep Power: 12 |
I've had good experience with Microsoft Visual Studio Express 2012 and Fluent UDFs on Windows. Unlike some earlier versions of VS Express, it sets enough environment variables that you can ignore the instructions about "launch Fluent from a yellow command prompt" that used to be thrown around.
|
|
March 15, 2018, 10:04 |
|
#5 | |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Quote:
You need a C-compiler. C++ and C are two different programming languages. They are related, but different. Most compilers for c++ can also compile c, so for your current situation the distinction is not so relevant, but it is good to be aware of this... |
||
March 16, 2018, 09:19 |
|
#6 |
New Member
Join Date: Mar 2018
Posts: 24
Rep Power: 8 |
Okay, seems that I misunderstood that.
Anyway, I installed Visual Studio 2012 Express Version and it seems to work now. No need to start Fluent from the command tool or anything, it just works fine automatically. Very nice. Thanks for your help guys! |
|
June 26, 2018, 06:10 |
Similar issue
|
#7 |
New Member
VaishnaviD
Join Date: Jun 2018
Posts: 4
Rep Power: 8 |
Hello maccheese,
Did you figure out the modules required? Or you are convinced working with visual studio12? I am trying to download 2 modules only. Will see if it works |
|
June 26, 2018, 08:30 |
|
#8 |
New Member
Join Date: Mar 2018
Posts: 24
Rep Power: 8 |
Hi,
no, I still dont know till today. As I wrote, VS 2012 works for me nicely. It works directly after the installation, I tried it on 2 different Computers so far and it worked in both cases. There is still a VS 2012 exe out there in the internet. I suggest you to give it a try. |
|
June 27, 2018, 08:27 |
|
#9 | |
New Member
VaishnaviD
Join Date: Jun 2018
Posts: 4
Rep Power: 8 |
Hey! It worked for me after almost 10 days of working on solution./
I have VS 17, Ansys 19, and Windows 8. having the .c and .h file in same folder helped me. Thank you so much for your solutions! Quote:
|
||
July 24, 2018, 05:27 |
|
#10 | |
Member
Rishikesh
Join Date: Apr 2016
Posts: 63
Rep Power: 10 |
Hey Vaishnavi,
What modules did you install? My VS Community 17 installation does not have stdio.h file in VC/.../include folder. I tried to jerry rig it copying the header from MingW but it eventually ran into definition errors (understandable, since its gcc). Anyways, so right now I am trying to get stdio.h into the include folder of VS 17 without installing unnecessary modules. Quote:
Thanks! |
||
October 31, 2022, 05:19 |
|
#11 |
New Member
Prasidh shetty
Join Date: Oct 2022
Posts: 10
Rep Power: 4 |
I did not quiet understand what you meant. because I am also facing same problem
|
|
October 31, 2022, 05:21 |
|
#12 |
New Member
Prasidh shetty
Join Date: Oct 2022
Posts: 10
Rep Power: 4 |
I did not understand. can you explain in which folder we have to put it together?
|
|
November 2, 2022, 23:53 |
|
#13 | |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
Quote:
install VS and run fluent from VS terminal
__________________
best regards ****************************** press LIKE if this message was helpful |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The udf.h headers are unable to open- in VISUAL STUDIO 13 | sanjeetlimbu | Fluent UDF and Scheme Programming | 4 | May 2, 2016 06:38 |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 19:56 |
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 |