CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   problem with udf loading(nmake.exe) (http://www.cfd-online.com/Forums/fluent-udf/62848-problem-udf-loading-nmake-exe.html)

gholamghar March 22, 2009 07:10

problem with udf loading(nmake.exe)
 
hello
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?
thanks

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

or

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 18:03.