CFD Online Logo CFD Online URL
Home > Forums > General Forums > Main CFD Forum

udf on parallel fluent

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

LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2008, 07:45
Default udf on parallel fluent
Posts: n/a
hi, when i run parallel fluent and execute my udf I have no problem but I have no result. this is my udf.. I don't find the problem. DEFINE_ON_DEMAND(asus) {

#if !RP_HOST Domain *d = Get_Domain(1); int ID=18; cell_t c; face_t f; #endif Thread *t=Lookup_Thread(d,ID); /* Thread *tt=Lookup_Thread(d, ID);*/ int i,ntot; #if PARALLEL int pe; #endif

real x[ND_ND]; #if !RP_NODE FILE *fp; fp=fopen("temperature.dat","w");


zeta= z0+delta/2.; i=ntot=0;

zeta= z0+delta/2.; i=ntot=0; #if RP_NODE do {

/*thread_loop_c (t,d) {*/

begin_c_loop_int (c,t)



if ((x[2]<(zeta+toll)) && (x[2]>(zeta-toll)))


t = C_T(c,t);

u = C_W(c,t);

sum_t += C_VOLUME(c,t)*C_R(c,t)*teta*ustar;

sum_u += C_VOLUME(c,t)*C_R(c,t)*ustar;



end_c_loop_int (c,t)

tetab[i] =sum_t/sum_u ;

zeta +=delta;


i++; } while(zeta<zout); #endif

} #if !RP_NODE do {

fprintf(fp,"%g %g\n",zeta,tetab[i]);

zeta +=delta; ntot=i; i++; }while (zeta<zout); fclose(fp); #endif

} can you help me?
  Reply With Quote


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
Fluent UDF on parallel computing Andrea Fluent UDF and Scheme Programming 22 August 12, 2015 07:44
Fluent parallel license problem brothershuai Main CFD Forum 0 July 1, 2009 15:41
UDF of Zimont model in fluent Z Main CFD Forum 0 February 17, 2005 03:07
UDF in parallel version. yobee FLUENT 0 August 17, 2004 04:12
pressures in MDM - parallel fluent paolo FLUENT 1 April 7, 2004 00:38

All times are GMT -4. The time now is 12:24.