CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   UDF error in compiling (

Shin December 13, 2007 00:28

UDF error in compiling
Hi friends, i use windows and microsoft visual studio .net 2005 on my system. I am trying to get my code compiled using FLUENT 6.3. It seems it does not want to work. whenever I try to build the library the message come up:

udf_names.c(7) : error C2059: syntax error : '}' udf_names.c(8) : warning C4034: sizeof 0

if I ignored this message and tried to build load the library the message come up:

Opening library "C:\Documents and Settings\DEMO\libudf"... Error: open_udf_library: The system cannot find the file specified.

Error Object: ()

According to previous documents in fluent user forum,i think the source file have any problem. it content is:

#include "udf.h"

/* this function defines velocity of center of gravity for pure plunging motion*/ /* Plunging motion equation is z(t)=h*sin(2*pi*f*t) */

DEFINE_CG_MOTION(rotation, dt, vel, omega, time, dtime) {

Thread *t;

face_t f;

/*reset velocities */



if (!Data_Valid_P())

return; /* Get the thread pointer for which this motion is defined */ /* t=DT_THREAD(dt); */ /* vel[1] is the vertical plunging velocity */ /* These velocity below is for h=0.4c and f=0.993Hz */

omega[2] = 0.05*sin(2*3.14159*time); }

i can not find what to fix.please help me. thank you all.


Shin December 15, 2007 21:25

Re: UDF error in compiling
i realy want your help.anyone please teach me.

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