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

source term in multiphase flow+Urgent

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 20, 2007, 15:30
Default source term in multiphase flow+Urgent
  #1
sara
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; }
  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
Large source term in species equation MACFD FLUENT 4 January 4, 2011 15:16
calculate the source term (urgent need help) magda FLUENT 1 May 1, 2007 17:31
UDF Source Term Units? Brian FLUENT 1 October 24, 2005 10:15
how to set velocity in certain place in CFX5 cfxbeginer CFX 6 July 7, 2003 19:38
How Fluent treat the pressure term in imcompressible flow Ray FLUENT 1 May 24, 2000 17:50


All times are GMT -4. The time now is 20:22.