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

UDF error in compiling

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2007, 23:28
Default UDF error in compiling
  #1
Shin
Guest
 
Posts: n/a
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 */

NV_S(vel,=,0.0);

NV_S(omega,=,0.0);

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

  Reply With Quote

Old   December 15, 2007, 20:25
Default Re: UDF error in compiling
  #2
Shin
Guest
 
Posts: n/a
i realy want your help.anyone please teach me.
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
compiling udf at window Nt(64BIT) noa FLUENT 3 July 29, 2014 23:01
Compiling UDF on a cluster Adya FLUENT 1 December 14, 2009 11:30
UDF compiling problem in Flient 6.3 jeevan kumar FLUENT 2 February 25, 2009 00:43
udf compiling problem akr FLUENT 3 August 22, 2007 07:14
On Compiling a UDF David Chabot FLUENT 5 May 20, 2005 09:13


All times are GMT -4. The time now is 03:01.