CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   Help! Compiled UDF problem 4 Wave tank tutorial (

Shane April 17, 2006 22:50

Help! Compiled UDF problem 4 Wave tank tutorial

FOr my university final year project I'm trying to solve the tutorial which i will later modify to analyse the breaking behaviour of a tsunami on a beach.

I have a problem which involves compiling a simple UDF function in FLUENT which is as follows and is the udf given in the example.

#include "udf.h"

DEFINE_CG_MOTION(wave, dt, vel, omega, time, dtime) { vel[0]=(0.037098)*((1 - exp(-2.303*time))*7.7528*cos(7.7528*time) + ((2.303*exp(-2.303*time))*sin(7.7528*time))); }

For the DEFINE_CG_MOTION macro, a compiled function can only be used over an interpreted function. When i build the libudf folder in FLUENT, it seems to build in that I get the following with no errors.

Make sure that UDF source files are in the directory

that contains your case and data files. If you have an

existing libudf directory, please remove this directory

to ensure that the latest files are used.(system "move user_nt.udf libudf\ntx86\2d")-1 (system "copy C:\Fluent.Inc\fluent6.1.22\src\makefile_nt.udf libudf\ntx86\2d\makefile")-1 (chdir "libudf")2 (chdir "ntx86\2d")2


However, when i try to load the libudf folder after I have made it, I get the following.

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

Error Object: ()

Also after the build, the folder it said it would build is not present in the directory I specified neither anywhere on the system even though it seems to have built without error.

I've attempted to read many forums on similar topics at without success of fixing the problem.

I have both Microsoft Visual C++ 6.0 and 2003 installed on the univercity computers. I'm not sure if they are installed on each computer individually or networked, though I do not know much about networking.

It seems that there are two ways to compile the UDF function; in FLUENT using the method specified or by creating your own directories and running NMAKE.

When i make my own directories outside FLUENT i get NMAKE : fatal error U1045: spawn failed : Invalid argument

I'm so confused. Many thanks in advance


freeday September 3, 2010 02:32

I have same problem with U.

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