What compilers can we use in Ansys Fluent to compile our UDF?
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? |
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*.
|
Quote:
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. |
Quote:
|
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? |
Quote:
Quote:
|
1 Attachment(s)
Quote:
Attachment 65557 |
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? |
Quote:
http://tdm-gcc.tdragon.net/download |
Quote:
|
Quote:
waiting to recieve it. |
Quote:
https://vcudfstudio.bitbucket.io/dow...fMinGW19.2.zip |
1 Attachment(s)
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 https://www.cfd-online.com/Forums/at...1&d=1538895150 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? |
Quote:
|
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 |
1 Attachment(s)
gearboy,
I'm trying to compile a UDF but get this error: https://www.cfd-online.com/Forums/at...1&d=1546681107 The error: Quote:
What's the matter with it? |
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. |
Quote:
Thanks in advance, Eng. Juan Antonio Blanco |
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!
|
Quote:
|
All times are GMT -4. The time now is 07:35. |