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

Problem on Parallel DEFINE_SOURCE

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 8, 2008, 23:13
Default Problem on Parallel DEFINE_SOURCE
  #1
Li
Guest
 
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) {

dS[eqn]=0.0;

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

dS[eqn]=0.0;

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

/* node */ #if RP_NODE

if(C_PART(c,t)==myid)

{

dS[eqn]=0.0;

return C_UDMI(c,t,9);

}

else

{

dS[eqn]=0.0;

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

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
Problem with DEFINE_SOURCE Jacques FLUENT 4 December 16, 2008 09: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 09:03
Ask about DEFINE_SOURCE. mazao FLUENT 1 November 15, 2005 06:20
DEFINE_SOURCE CN FLUENT 2 August 5, 2005 11:29


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