CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   How to comply UDFs in win 8.1 64 bit (Fluent 6.3)? (https://www.cfd-online.com/Forums/fluent-udf/153761-how-comply-udfs-win-8-1-64-bit-fluent-6-3-a.html)

Afaneh June 3, 2015 06:33

How to comply UDFs in win 8.1 64 bit (Fluent 6.3)?
 
Hi,

I’m installing in my PC: visual studio 2008 professional, Microsoft NET Framework 4.51

I tried a lot to comply UDF but this error always appear:

Error: open_udf_library: The system cannot find the file specified.

Error Object: ()

Could you please advise me to solve this problem?
Thanks

pakk June 5, 2015 06:22

You say you have problems with compiling, so it would be helpful to show the error message that you get when you try to compile.

The error message you show above is an error message for opening a library, but before you can open the library you should make it/build it/compile it.

Arvind_CFD June 6, 2015 04:53

Make sure you are having the UDF source code and your case file in the same fluent working directory. If this does not solve your issue try checking your compiler's compatibility with the fluent version in use.

Afaneh June 6, 2015 07:27

Quote:

Originally Posted by pakk (Post 549016)
You say you have problems with compiling, so it would be helpful to show the error message that you get when you try to compile.

The error message you show above is an error message for opening a library, but before you can open the library you should make it/build it/compile it.

Dear pakk
Thanks for replay
This error appear after building the library when I load it

Afaneh June 6, 2015 07:32

Quote:

Originally Posted by Arvind_CFD (Post 549112)
Make sure you are having the UDF source code and your case file in the same fluent working directory. If this does not solve your issue try checking your compiler's compatibility with the fluent version in use.

Dear Arvind_CFD

Yes UDF source code and case file are in the same fluent working directory
Actually I don't know which complier I should use
I tried also " Microsoft Visual C++ 2008 Express Edition with SP1 " and it didn't work
I used CMD to open fluent at the directory and the same error appeared

Arvind_CFD June 6, 2015 07:58

Quote:

Originally Posted by Afaneh (Post 549130)
Dear Arvind_CFD

Yes UDF source code and case file are in the same fluent working directory
Actually I don't know which complier I should use
I tried also " Microsoft Visual C++ 2008 Express Edition with SP1 " and it didn't work
I used CMD to open fluent at the directory and the same error appeared

Try using interpreted udf option if it is just a simple udf to avoid compiler hassles or else Install visual studio express 2012 which is available for free at microsoft.com ..this compiler should be compatible with latest fluent versions.

Afaneh June 6, 2015 08:08

Quote:

Originally Posted by Arvind_CFD (Post 549133)
Try using interpreted udf option if it is just a simple udf to avoid compiler hassles or else Install visual studio express 2012 which is available for free at microsoft.com ..this compiler should be compatible with latest fluent versions.

I tried before "Microsoft Visual Studio 2013 Express" and it's didn't comply the UDF
I think "Microsoft Visual 2008" should be sufficient for Fluent 6.3
What do you think?

Arvind_CFD June 6, 2015 17:44

Quote:

Originally Posted by Afaneh (Post 549136)
I tried before "Microsoft Visual Studio 2013 Express" and it's didn't comply the UDF
I think "Microsoft Visual 2008" should be sufficient for Fluent 6.3
What do you think?

VS2013 is not supported until Fluent 15.0. Since yours is a much older version VS2008 should work. Make sure you have a full installation with VC++ package and visual studio cross tools command prompt included. Recheck if the check box in the environment tab of fluent launcher is ticked and the path of udf.bat file mentioned in the same tab is correct. Hope this helps

Afaneh June 7, 2015 05:35

Quote:

Originally Posted by Arvind_CFD (Post 549169)
VS2013 is not supported until Fluent 15.0. Since yours is a much older version VS2008 should work. Make sure you have a full installation with VC++ package and visual studio cross tools command prompt included. Recheck if the check box in the environment tab of fluent launcher is ticked and the path of udf.bat file mentioned in the same tab is correct. Hope this helps

Thanks for this information
everything is OK, but i didn't find path for "udf.bat", and I searched for "udf.bat" in fluent Installation Directory and didn't find this file.


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