CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Help! Compiled UDF problem 4 Wave tank tutorial

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 17, 2006, 23:50
Default Help! Compiled UDF problem 4 Wave tank tutorial
  #1
Shane
Guest
 
Posts: n/a
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
  Reply With Quote

Old   September 3, 2010, 03:32
Default
  #2
New Member
 
freeday's Avatar
 
freeday
Join Date: Aug 2010
Location: Indonesia
Posts: 17
Rep Power: 16
freeday is on a distinguished road
I have same problem with U.
Tb4
freeday is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 22:38
Problem with scalarTransportFoam illistrated using pitzDaily tutorial mlawson OpenFOAM 2 January 18, 2011 14:39
dynamic mesh and udf problem boboroo FLUENT 1 January 20, 2008 22:26
problem about compiled udf lingo FLUENT 0 April 19, 2004 01:48
how to quit compiled or interprited UDF tian FLUENT 0 April 9, 2003 00:53


All times are GMT -4. The time now is 23:48.