CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Fluent UDF and Scheme Programming (
-   -   Problem with compiling the WAVE.C (UDF) (

raghu mohan November 23, 2011 03:17

Problem with compiling the WAVE.C (UDF)
I loaded the wave.c file (tutorial10--wave generation in tank) and pressed BUILD, the "libudf" created without any .dll and other files. The log file created shows this line
"NMAKE : U1073: don't know how to make '..\..\src\wave.c'

The command window in FLUENT show these:

Deleted old libudf\ntx86\2ddp\libudf.dll
The system cannot find the file specified.
(system "copy C:\Fluent.Inc\fluent6.3.26\src\makefile_nt.udf libudf\ntx86\2ddp\makefile")
1 file(s) copied.
(chdir "libudf")()
(chdir "ntx86\2ddp")()


And when I loaded 'libudf' these commands appeared:

"c:/users/raghu mohan reddy/desktop/cfd/wave tank/wave"

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

Error Object: ()

Please help me in solving this problem

laurentb November 23, 2011 04:10

you must have a compiler correctly installed on your machine.
Have a look to the UDF Manual
// UDF Manual // 5. Compiling UDFs // 5.1. Introduction :: 0 // 5.1.2. Compilers :
you will need to ensure that Microsoft Visual Studio is installed on your machine before you proceed

raghu mohan November 24, 2011 22:07

I have been following the same steps as in UDF manual.

But I have a question:
Manual says this
"Note that if you are running serial or parallel FLUENT on a Windows system, then you must have Microsoft Visual Studio installed on your machine and have launched FLUENT from the Visual Studio console window
to compile a UDF"

Can you plz let me know how to launch fluent from Visual Studio. Actually I am a newbie to Visual Studio. Right now I am launching fluent from the Visual studio command prompt.


laurentb November 25, 2011 03:54

1 Attachment(s)
This is an example with Visual C++ 2008 Express and Fluent 6.3.26.
It works only for 32-bit.

raghu mohan November 25, 2011 14:09

So, basically this example does not work on the 64-bit system?.

Actually I am working on a project which has moving domain. I am planning to get motion of the domain by using UDF. So, I am looking for an example(tutorial) which has such similar approach. Can you plz let me know if there are any such examples on web so that I can download and work with them to get an idea of how these UDF's work.

Thank you very much

All times are GMT -4. The time now is 21:29.