February 25, 2005, 01:48
|
Problem in UDF about particle size distribution
|
#1
|
Guest
|
The following is an UDF about particle size in Mixture model.
/*Particle size in Eulerian Multiphase model*/ #include "udf.h" DEFINE_PROFILE(particle_distribution, thread, position) { 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,position)=1-exp(pow(y/1.6,1.2)); } end_c_loop(c,thread) } when I compiled this program in Fluent 6.1, the following error is produced.
(system "move user_nt.udf libudf\ntx86\3d")0 (system "copy c:\fluent.inc\fluent6.1\src\makefile_nt.udf libudf\ntx86\3d\makefile") have copied one file. 0 (chdir "libudf")() (chdir "ntx86\3d")() size.c # Generating udf_names.c because of makefile size.obj udf_names.c udf_names.c(7) : error C2059: syntax error : '}' udf_names.c(8) : warning C4034: sizeof returns 0
I don¡¯t know how to modify this program. Any suggestion is important to me. Thanks.
|
|
|