CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Fluent UDF and Scheme Programming (
-   -   problem with udf loading(nmake.exe) (

gholamghar March 22, 2009 07:10

problem with udf loading(nmake.exe)
I have visual studio 2008 and Fluent 6.328 installed on my computer,
every time i want to load LIBUDF library from
Define:>User-defined:>Functions:>Compiled it gives me this error:

> #f

Opening library "libudf"...
Error: open_udf_library: The system cannot find the path specified.

Error Object: ()

i searched in the forum and someones suggested that it is a problem with nmake.exe.
anybody knows how i can fix this problem with nmake.exe?

RenardP March 22, 2009 11:56

The problem is that your Fluent doesn't know where to find your Visual C++ compiler, I hope you have the Pro edition (I don't thinck it will work with Express).

Try to start Fluent using the Visual Studio Command Prompt window, write these in the command prompt:

fluent 2ddp


fluent 3ddp

paka March 23, 2009 05:28

keep in mind your already compiled (in Visual Studio Command Prompt window) routine the best should be in libudf/ folder within you case folder. It means if your case.cas file is in folder C:\test\ then libudf/ path should be like this: C:\test\libudf\ .

As soon as your function is compiled you do not need to call compiler from within Fluent. Your compiled function is a stand alone program, which to run just need Fluent call to it the way you do it.

gholamghar March 23, 2009 15:41

thank you PAKA and RenardP,with your advices i solved my problem.

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