CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   the problem of udf (https://www.cfd-online.com/Forums/fluent/33889-problem-udf.html)

hust June 4, 2004 20:35

the problem of udf
 
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?

lingo June 5, 2004 05:10

Re: the problem of udf
 
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!


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