|
[Sponsors] |
June 20, 2007, 14:30 |
source term in multiphase flow+Urgent
|
#1 |
Guest
Posts: n/a
|
I have a two phase problem, one phase is air and the other phase is water, I wrote a source term to add in mass equation of air, although, there is not any error during the interpret of the udf, but the flow field doesn't change. I've attached my udf. Thank You sara #include "udf.h" #define C2 .0009672 DEFINE_SOURCE(mass_source,c,t,dS,eqn) { real xc[ND_ND]; real source, vf, vol, den; vf = C_VOF(c,t); vol = C_VOLUME(c,t); den = C_R(c,t); source = -1*C2*den*(pow(vf,0.6667)/pow(vol,0.333)); dS[eqn] = 0.0; C_CENTROID(xc,c,t); if (xc[1] == 0.84) source =source+80.84; else source =source+0.0; return source; }
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Large source term in species equation | MACFD | FLUENT | 4 | January 4, 2011 14:16 |
calculate the source term (urgent need help) | magda | FLUENT | 1 | May 1, 2007 16:31 |
UDF Source Term Units? | Brian | FLUENT | 1 | October 24, 2005 09:15 |
how to set velocity in certain place in CFX5 | cfxbeginer | CFX | 6 | July 7, 2003 18:38 |
How Fluent treat the pressure term in imcompressible flow | Ray | FLUENT | 1 | May 24, 2000 16:50 |