CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Help! Compiled UDF problem 4 Wave tank tutorial (http://www.cfd-online.com/Forums/fluent/40614-help-compiled-udf-problem-4-wave-tank-tutorial.html)

Shane April 17, 2006 22:50

Help! Compiled UDF problem 4 Wave tank tutorial
 
Gday,

FOr my university final year project I'm trying to solve the tutorial http://www.fluent.com/software/stude...orial_wave.htm 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

Done.

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 www.cfd-online.com without success of fixing the problem.

I have both Microsoft Visual C++ 6.0 and studio.net 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

Shane

freeday September 3, 2010 02:32

I have same problem with U.
Tb4


All times are GMT -4. The time now is 04:42.