CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   C_VOF_G for Volume fraction gradient (http://www.cfd-online.com/Forums/fluent/35308-c_vof_g-volume-fraction-gradient.html)

Fred December 18, 2004 06:14

C_VOF_G for Volume fraction gradient
 
Hi , I am using VOF model and I want to add a source term on the continuity equation for the Volume fraction F.

-The source term is : A.(dF/dx) wher A is constant and F is the VOF variable... -please can some body tell me if it is possible to use C_VOF_G macro for this DEFINE_SOURCE UDF ?? I can not find any example on the Fluent manual about this macro

thanks a lot Fred

KP December 24, 2004 22:42

Re: C_VOF_G for Volume fraction gradient
 
DEFINE_ADJUST. Solution ID# 972

Fred December 27, 2004 09:29

Re: C_VOF_G for Volume fraction gradient
 
dear KP , please can you explain with more details ?,

jwwang January 10, 2005 06:04

Re: C_VOF_G for Volume fraction gradient
 
my udf for eulerian model,i holp it can help you! #include "udf.h"

DEFINE_SOURCE(x_solid_pressure, cell, thread, dS, eqn) {

real void_s, con,v_s, source=0.0;

void_s = C_VOF(cell, thread);

con = -8.686*(1.0-void_s)+6.385;

if (NULL != THREAD_STORAGE(thread,SV_VOF_G))

{

v_s = C_VOF_G(cell, thread)[0];

}

source = -pow(10,con)*v_s;

dS[eqn] = 0.0;

return source; }


All times are GMT -4. The time now is 10:11.