|
[Sponsors] |
What compilers can we use in Ansys Fluent to compile our UDF? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 1, 2018, 15:31 |
What compilers can we use in Ansys Fluent to compile our UDF?
|
#1 |
Senior Member
Join Date: Sep 2017
Posts: 130
Rep Power: 9 |
Guys,
I think title of the thread is clear that what's my question. What compilers can we use in Ansys Fluent to compile our UDF? I read something about compiling UDF e.g.: https://www.sharcnet.ca/Software/Ans...compilers.html But for Windows OS they just talk about Microsoft visual studio. I'm using Ansys 19 and my OS is windows. Can I use other compilers? for example GCC? |
|
September 2, 2018, 00:37 |
|
#2 |
Senior Member
|
The answer is YES. However you might need to manually write your own Makefile or build the dynamic library by hand. Believe it or not, it is not worth it. It is much easier to work under *nix, rather than mock the process in win*.
|
|
September 3, 2018, 05:38 |
|
#3 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
To be clear: this is the answer to the question "Can I use other compilers?" And I agree with blackmask. It is possible to use other compilers in Windows, but if you have to ask this question, you will need a lot of help to set everything up so that it really works, and it is much easier to just use the (freely available) Microsoft compiler. |
|
September 10, 2018, 02:24 |
|
#4 | |
Senior Member
Join Date: Feb 2010
Posts: 164
Rep Power: 17 |
Quote:
|
||
September 11, 2018, 14:28 |
|
#5 | |
Senior Member
Join Date: Sep 2017
Posts: 130
Rep Power: 9 |
Quote:
I wanted to use another compiler because VS is huge and take much space of the memory. May I know what compiler do you use? how do you set it up? |
||
September 11, 2018, 16:42 |
|
#6 | ||
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Quote:
Quote:
|
|||
September 11, 2018, 21:59 |
|
#7 | |
Senior Member
Join Date: Feb 2010
Posts: 164
Rep Power: 17 |
Quote:
temppgn.png |
||
September 12, 2018, 01:53 |
|
#8 | |
Senior Member
Join Date: Sep 2017
Posts: 130
Rep Power: 9 |
Quote:
Thank you, You have a PM from me. I use Ansys 19, Did you chack your tool to know if it has any problem with higher version of Ansys? |
||
September 12, 2018, 02:00 |
|
#9 | |
Senior Member
Join Date: Sep 2017
Posts: 130
Rep Power: 9 |
Quote:
http://tdm-gcc.tdragon.net/download |
||
September 13, 2018, 04:59 |
|
#10 | |
Senior Member
Join Date: Feb 2010
Posts: 164
Rep Power: 17 |
Quote:
|
||
September 13, 2018, 05:21 |
|
#11 | |
Senior Member
Join Date: Sep 2017
Posts: 130
Rep Power: 9 |
Quote:
waiting to recieve it. |
||
October 7, 2018, 01:50 |
|
#12 |
Senior Member
Join Date: Feb 2010
Posts: 164
Rep Power: 17 |
We have upgraded UdfMinGW to version 19.2, which support fluent 6.3-19.2. Please read the manual in the zip package first.
https://vcudfstudio.bitbucket.io/dow...fMinGW19.2.zip |
|
October 7, 2018, 03:56 |
|
#13 | |
Senior Member
Join Date: Sep 2017
Posts: 130
Rep Power: 9 |
Quote:
Thank you. I uploaded the file in somewhere eles for other fellas because I had problem to download it(not good server). http://www.mediafire.com/file/72tljt...W19.2.zip/file I tried everything that you said and it worked very well. A screenshot Thank you so much. I have a question: If we have a workbench project and there is a fluent project in our workbench, how we have to use this program? |
||
October 8, 2018, 04:04 |
|
#14 | |
Senior Member
Join Date: Feb 2010
Posts: 164
Rep Power: 17 |
Quote:
|
||
October 15, 2018, 02:54 |
|
#15 | |
Senior Member
Join Date: Sep 2017
Posts: 130
Rep Power: 9 |
Quote:
And a suggestion, I don't know if you want to release your program as an open source project but you can use github.com |
||
January 5, 2019, 05:40 |
|
#16 | |
Senior Member
Join Date: Sep 2017
Posts: 130
Rep Power: 9 |
gearboy,
I'm trying to compile a UDF but get this error: The error: Quote:
What's the matter with it? |
||
January 5, 2019, 14:32 |
|
#17 | ||
Senior Member
Join Date: Sep 2017
Posts: 130
Rep Power: 9 |
Solved the problem and got a new error and have fallen in a new problem. Here is the new error:
Quote:
I managed to compile and load the UDF. Here is the report that I got after compilation: Quote:
The UDF is compiled and loaded successfully but when I want to initialize the project I got that error. |
|||
November 11, 2021, 17:03 |
|
#18 | |
New Member
Juan Antonio Blanco
Join Date: Nov 2021
Location: San Carlos de Bariloche, Argentina
Posts: 2
Rep Power: 0 |
Quote:
Thanks in advance, Eng. Juan Antonio Blanco |
||
November 11, 2021, 21:01 |
|
#19 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Out of curiosity: why Fluent 6? That is like ten years old... You are missing out on a lot of updates! Compiler support has improved a lot since that version!
__________________
"The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform" is NOT the error after compiling. It is the error after loading. To see compiler errors, look at your screen after you click "build". |
|
November 11, 2021, 22:09 |
|
#20 | |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
Quote:
__________________
best regards ****************************** press LIKE if this message was helpful |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF velocity inlet. Different values (compile - Fluent) | asking | FLUENT | 0 | July 13, 2018 18:02 |
UDF Defining in ANSYS FLUENT 16.2 in Win 10 | Sadegh.A | Fluent UDF and Scheme Programming | 11 | February 15, 2017 15:45 |
Problem in compiling UDF with ANSYS Fluent 17.1 and Visual Studio 14.0 | Spiker54321 | Fluent UDF and Scheme Programming | 2 | October 27, 2016 10:09 |
Fluent 6.3.26 on Linux does not compile an UDF | Entwistle | Fluent UDF and Scheme Programming | 1 | March 4, 2014 15:49 |
The fluent stopped and errors with "Emergency: received SIGHUP signal" | yuyuxuan | FLUENT | 0 | December 3, 2013 23:56 |