Momentum Source Term - CFD Online Discussion Forums
Momentum Source Term - CFD Online Discussion Forums
Momentum Source Term - CFD Online Discussion Forums
[Sponsors]
Home
News
Forums
Wiki
Links
Jobs
Books
Events
Tools
Feeds
About
Search
Home > Forums > Software User Forums > ANSYS > FLUENT
3 Likes
Could anybody tell me that the way I add the source term is right or
wrong? I have no experiences for adding source term. Must I add
each source term usually or some specific source terms depending
on different cases?
Zwdi
September 28, 2010, 02:36 Adding momentum source terms in multiphase eulerian simulation #2
https://www.cfd-online.com/Forums/fluent/33135-momentum-source-term.html 1/8
12/11/2019 momentum source term -- CFD Online Discussion Forums
Gas phase g)
alpha/k_gas*(A*Reg/Gag + B*Reg^2/Gag)*rho_g*g
DEFINE_SOURCE(gas_phase_xmom_source,c,t,dS,eqn)
{
x_vel_g = C_U(c,t);
y_vel_g = C_V(c,t);
rho_g = C_R(c,t); /*Gas Density*/
mu_g = C_MU_L(c,t); /*Gas Viscosity*/
abs_U=sqrt(x_vel_g*x_vel_g + y_vel_g*y_vel_g);
void_g = C_VOF(c,t); /* gas vol frac*/
Reg = rho_g*abs_U*dp/(mu_g*(1-ep));
Gag =
pow(rho_g,2)*g*pow(dp,3)*pow(ep,3)/(pow(mu_g,2)*pow(1-
ep,3));
E0 = rho_l*g*pow(dp,2)*pow(ep,2)/(sigma * pow((1-ep),2));
/*Eotvos no*/
eps = 1.0/(20.0 + 0.9*E0);/*static liq hold up*/
sg = 1.0 - eps/ep;
kg = pow(sg,4.80);
Fg = (void_g*rho_g*g/kg)*(E1*Reg/Gag + E2*pow(Reg,2)/Gag);
drv1_g = E1*rho_g*dp/(mu_g*(1-ep));
drv = rho_g*dp/(mu_g*(1-ep));
drv2_g = E2*2*abs_U*pow(drv,2);
source = Fg;
dS[eqn] = void_g*rho_g*g/kg*(drv1_g*E1*Reg/Gag +
drv2_g*E2*pow(Reg,2)/Gag);
return source;
https://www.cfd-online.com/Forums/fluent/33135-momentum-source-term.html 2/8
12/11/2019 momentum source term -- CFD Online Discussion Forums
Regards,
SM
--> use none considering loss against solid phase is much more than
https://www.cfd-online.com/Forums/fluent/33135-momentum-source-term.html 3/8
12/11/2019 momentum source term -- CFD Online Discussion Forums
gas-liquid interaction
Subhasish Mitra
Join Date: Oct 2009
Location: Australia --> Use Attou et al's (1999) fluid fluid interaction model
Posts: 56
Rep Power: 12 Hope it helps
SM
exclusive.
Hope it helps,
SM
Subhasish Mitra
Join Date: Oct 2009
Location: Australia
Posts: 56
Rep Power: 12
https://www.cfd-online.com/Forums/fluent/33135-momentum-source-term.html 5/8
12/11/2019 momentum source term -- CFD Online Discussion Forums
Quote:
p08tm007
New Member Originally Posted by subha_meter
I don't think it should be a problem for cylindrical geometry.
Hanumanth
Join Date: Aug 2009 In cylinder, we need to define the axial and radial
Posts: 6 momentum source terms which I believe can be done
Rep Power: 12 specifying the source term in 'y' direction to account for
axial and 'x' & 'z" directions (should be same) to account for
the radial change.
Thanks in Advance.
subha_meter If this momentum source term is constant, you need to enter this
Member value to
cell zone condition--> fluid--> source term --> x and z momentum.
Hope it helps,
Subhasish Mitra
Join Date: Oct 2009
Location: Australia ahmed banna likes this.
Posts: 56
Rep Power: 12
__________________
SM
Thanks in advance.
subha_meter You need to realize that it's not possible to get direct access to radial
Member direction in Cartesian Coordinate which is native to Cylindrical
https://www.cfd-online.com/Forums/fluent/33135-momentum-source-term.html 6/8
12/11/2019 momentum source term -- CFD Online Discussion Forums
Coordinate system.
-----for x-momentum----
#include "udf.h"
#define rho_l 1544.0
#define rho_s 1648.0
DEFINE_SOURCE(x_momentum_source,c,t,dS,eqn)
{
real source;
source = -(rho_l*(1+C_VOF(c,t))*C_U(c,t)*((C_LIQF(c,t)-
C_LIQF_M1(c,t))/CURRENT_TIMESTEP));
dS[eqn] = 0;
return source;
}
----for y-momentum-----
#include "udf.h"
#define rho_l 1544.0
#define rho_s 1648.0
DEFINE_SOURCE(y_momentum_source,c,t,dS,eqn)
{
real source;
source = -(rho_l*(1+C_VOF(c,t))*C_V(c,t)*((C_LIQF(c,t)-
C_LIQF_M1(c,t))/CURRENT_TIMESTEP));
dS[eqn] = 0;
return source;
}
i hooked it in the cell zone section. i was using the VOF module.
IT is giving me a segmentation fault.
I am not able to understand the mistake here. can anybody help?
https://www.cfd-online.com/Forums/fluent/33135-momentum-source-term.html 7/8
12/11/2019 momentum source term -- CFD Online Discussion Forums
Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On
Forum Rules
Similar Threads
Thread Thread Starter Forum Replies Last Post
December 2,
Version 15 on Mac OS X gschaider OpenFOAM Installation 113
2009 11:23
© CFD Online
https://www.cfd-online.com/Forums/fluent/33135-momentum-source-term.html 8/8