|
[Sponsors] |
May 9, 2008, 00:13 |
Problem on Parallel DEFINE_SOURCE
|
#1 |
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. |
|
|
|
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 05: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 12:29 |