|
[Sponsors] |
June 15, 2011, 23:36 |
UDF Compilation Error for Fluent 12.1
|
#1 |
New Member
Join Date: May 2011
Posts: 4
Rep Power: 15 |
Hi
I am trying to compile a UDF for CG motion using fluent 12.1. When I build the library file and try to load it, it shows me the error open_udf_library:system cannot find the file specified. I searched a lot regarding this issue and found out that this error is Visual Studio related. I have Visual Studio 2010 Ultimate installed and tried starting fluent from the command prompt by visual studio, but it still gives me the same error. I have also tried all the solutions previously mentioned in this forum, but that was for Fluent 6.3 and none of those works for 12.1. Is this some problem with the environment variables? Can someone help me regarding this? thanks in advance CB |
|
September 24, 2011, 06:08 |
|
#3 |
New Member
Mohammad Iman Khozeymeh
Join Date: Sep 2011
Posts: 2
Rep Power: 0 |
hello
I have the same problem, but how can I link fluent with VC++? thanks |
|
September 24, 2011, 08:41 |
|
#4 | |
Senior Member
|
Quote:
__________________
Amir |
||
September 24, 2011, 09:46 |
|
#5 |
New Member
Mohammad Iman Khozeymeh
Join Date: Sep 2011
Posts: 2
Rep Power: 0 |
Hi Amir
I copied the variables to the FLUENT folder..(not sure if you meant this) I am using Visual studio 10 prof. and FLUENT 12.1.4 when i start Fluent , at UDF compiler setup I link it to Microsoft Visual Studio 10.0\VC\vcvarsall.bat I did everything where suggest in the forum, but steel this error comes out. Error: open_udf_library: The system cannot find the file specified. Error Object: #f Can you help me with this, thank you |
|
September 24, 2011, 12:39 |
|
#6 | ||
Senior Member
|
Hi,
Quote:
Quote:
If you cannot handle this instruction, there is another way but it's not permanent; First execute "setenv.exe" and then load FLUENT from VC++ command prompt. Bests,
__________________
Amir |
|||
October 3, 2011, 06:45 |
|
#7 | |
New Member
behnam
Join Date: Sep 2011
Location: Iran
Posts: 20
Rep Power: 15 |
Quote:
i do what you said, it is work. |
||
November 4, 2011, 16:23 |
|
#8 |
New Member
Lei Chen
Join Date: Mar 2010
Posts: 21
Rep Power: 16 |
Thanks Amir for your discussions.
I had the same problem, had just solved it using the method mentioned by Amir. I also would like to add some comments on the environment settings, because it also depends on the operating system you use (32/64 bit windows). So, if you are using win64, the path should be in the form of "Program Files (x86)...". For example, I use winXP64/Visual Studio 10/Fluent 12.1, and the variables in "start>My computer>Properties>Advanced>Environment Variables>System variables" are set to be: INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include; LIB =C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\lib\amd64;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\x64 Path=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE; Lei |
|
July 16, 2015, 02:48 |
libudf not getting created when loading.
|
#9 |
New Member
Join Date: Jul 2015
Posts: 1
Rep Power: 0 |
Hi
When I am trying to load my udf in Fluent it is says (chdir "libudf")() (chdir "win64\2DDP")() # Generating ud_io1.h And then it just doesn't do anything else. Can you please advise why it is not creating libudf.dll after this step? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF compilation problem on Linux System | Nitin Pathak | Fluent UDF and Scheme Programming | 6 | September 29, 2018 21:26 |
UDF compilation error | Szabolcs Varga | Fluent UDF and Scheme Programming | 4 | September 14, 2015 06:27 |
UDF compilation problem -- "undeclared variable" | Henrik Ström | FLUENT | 1 | September 21, 2005 06:25 |
udf compilation for dynamic mesh | Rahul | FLUENT | 10 | June 27, 2003 23:10 |
Compiled UDF / Compilation problem | mikhail | FLUENT | 1 | October 13, 2000 07:12 |