CFD Online Logo CFD Online URL
Home > Forums > FLUENT

Problem on Parallel DEFINE_SOURCE

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

LinkBack Thread Tools Display Modes
Old   May 8, 2008, 23:13
Default Problem on Parallel DEFINE_SOURCE
Posts: n/a
Hi everyone, I met a probelm.the following code is running well in serial FLUENT.

DEFINE_SOURCE(src_number_hom,c,t,dS,eqn) {


return C_UDMI(c,t,9); }

However, it gives wrong result in parallel FLUENT, therefore i modified it to,

DEFINE_SOURCE(src_number_hom,c,t,dS,eqn) { /* serial */ #if !PARALLEL


return C_UDMI(c,t,9); #endif

/* node */ #if RP_NODE




return C_UDMI(c,t,9);





return 0.0;

} #endif

/* host */ #if RP_HOST

Message("%d %d in src_mass in host\n",C_PART(c,t),myid); dS[eqn]=0.0;

return 0.0; #endif }

but i still found it cannot give right result. anybody can help me? thanks.
  Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with DEFINE_SOURCE Jacques FLUENT 4 December 16, 2008 10:44
Problem in using DEFINE_SOURCE for continuity zbpeng FLUENT 0 July 25, 2008 04:19
Kind attn:problem in DEFINE_SOURCE in my UDF Phanindra FLUENT 1 February 23, 2007 10:03
Ask about DEFINE_SOURCE. mazao FLUENT 1 November 15, 2005 07:20
DEFINE_SOURCE CN FLUENT 2 August 5, 2005 11:29

All times are GMT -4. The time now is 16:06.