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

Visual Studio 2017 for udf use - which modules do I need?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 11, 2018, 14:09
Default Visual Studio 2017 for udf use - which modules do I need?
  #1
New Member
 
Join Date: Mar 2018
Posts: 24
Rep Power: 5
maccheese is on a distinguished road
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.
maccheese is offline   Reply With Quote

Old   March 11, 2018, 14:38
Default
  #2
Far
Super Moderator
 
Sijal
Join Date: Mar 2009
Location: Islamabad
Posts: 4,542
Blog Entries: 6
Rep Power: 51
Far has a spectacular aura aboutFar has a spectacular aura about
Send a message via Skype™ to Far
have you gone through this video https://www.youtube.com/watch?v=l4wcXAQ5IGY
Far is offline   Reply With Quote

Old   March 11, 2018, 14:57
Default
  #3
New Member
 
Join Date: Mar 2018
Posts: 24
Rep Power: 5
maccheese is on a distinguished road
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...
maccheese is offline   Reply With Quote

Old   March 15, 2018, 08:44
Default
  #4
Senior Member
 
Join Date: Sep 2017
Posts: 224
Rep Power: 8
obscureed is on a distinguished road
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.
obscureed is offline   Reply With Quote

Old   March 15, 2018, 09:04
Default
  #5
Senior Member
 
Join Date: Nov 2013
Posts: 1,767
Rep Power: 22
pakk will become famous soon enough
Quote:
Originally Posted by maccheese View Post
I learned, that I need a C++ Compiler in order to get these to work in ANSYS.
This is not correct, unlearn this.
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...
pakk is offline   Reply With Quote

Old   March 16, 2018, 08:19
Default
  #6
New Member
 
Join Date: Mar 2018
Posts: 24
Rep Power: 5
maccheese is on a distinguished road
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!
maccheese is offline   Reply With Quote

Old   June 26, 2018, 05:10
Thumbs up Similar issue
  #7
New Member
 
VaishnaviD
Join Date: Jun 2018
Posts: 4
Rep Power: 4
VaishnaviD is on a distinguished road
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
VaishnaviD is offline   Reply With Quote

Old   June 26, 2018, 07:30
Default
  #8
New Member
 
Join Date: Mar 2018
Posts: 24
Rep Power: 5
maccheese is on a distinguished road
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.
maccheese is offline   Reply With Quote

Old   June 27, 2018, 07:27
Default
  #9
New Member
 
VaishnaviD
Join Date: Jun 2018
Posts: 4
Rep Power: 4
VaishnaviD is on a distinguished road
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:
Originally Posted by maccheese View Post
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.
VaishnaviD is offline   Reply With Quote

Old   July 24, 2018, 04:27
Question
  #10
Member
 
Rishikesh
Join Date: Apr 2016
Posts: 55
Rep Power: 6
mrishi is on a distinguished road
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:
Originally Posted by VaishnaviD View Post
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!

Thanks!
mrishi is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
The udf.h headers are unable to open- in VISUAL STUDIO 13 sanjeetlimbu Fluent UDF and Scheme Programming 4 May 2, 2016 05:38
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 18:44
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 06:25
error while compiling a udf rahul FLUENT 10 August 30, 2006 08:33


All times are GMT -4. The time now is 07:03.