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

Problem in UDF about particle size distribution

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 25, 2005, 02:48
Default Problem in UDF about particle size distribution
  #1
fpingqian
Guest
 
Posts: n/a
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.
  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
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
DPM UDF particle position using the macro P_POS(p)[i] dm2747 FLUENT 0 April 17, 2009 02:29
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 15:37
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
the problem of UDF zzb FLUENT 2 April 5, 2006 06:36


All times are GMT -4. The time now is 19:29.