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

the problem of udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 4, 2004, 21:35
Default the problem of udf
  #1
hust
Guest
 
Posts: n/a
hi: i meet a problem when i compile my udf in fluent, my udf can be compiled in other peoples computer ,but there is following error in my computer: (system "move user_nt.udf libudf\ntx86\3d")0 (system "copy C:\fluent.inc\fluent6.1\src\makefile_nt.udf libudf\ntx86\3d\makefile")已复制 1 个文件。 0 (chdir "libudf")() (chdir "ntx86\3d")() particle.c # Generating udf_names.c because of makefile particle.obj udf_names.c udf_names.c(7) : error C2059: syntax error : '}' udf_names.c(8) : warning C4034: sizeof returns 0

Done. my udf is:

#include "udf.h"

DEFINE_PROFILE(particel_distribution,thread,index) {

real x[ND_ND];

real y;

cell_t c;

begin_c_loop(c,thread)

{

C_CENTROID(x,c,thread);

y=x[1];

F_PROFILE(c,thread,index)=1/(exp(pow(y/16,1.2)));

}

end_c_loop(c,thread) anyone can tell me the reason?
  Reply With Quote

Old   June 5, 2004, 06:10
Default Re: the problem of udf
  #2
lingo
Guest
 
Posts: n/a
Hi,hust:

Make sure that your source file and the head files such as udf.h are in the same directory that contains your case and date files accordin to my experience. Good luck!
  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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 07:05
Problem with my udf july Fluent UDF and Scheme Programming 3 June 20, 2010 07:56
UDF problem mansha goraya FLUENT 0 October 29, 2007 01:31
udf compiling problem akr FLUENT 3 August 22, 2007 08:14
UDF problem chiseung FLUENT 4 January 10, 2002 10:58


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