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

porous medium setting

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 14, 2019, 20:44
Default porous medium setting
  #1
New Member
 
wuming
Join Date: Nov 2018
Posts: 26
Rep Power: 7
wuming is on a distinguished road
hi all!
I want to use a porous medium to simulate a gas-liquid-solid three-phase trickle bed.
I use UDF to describe the momentum exchange coefficient.gas-solid and liquid-solid are setting in zone conditions by source term.gas-liquid are add to phase interaction.but the result is wrong, the pressure is too low.Part of the UDF content and exchange coefficienas are follows:



GS[SIZE="<font style="vertical-align: inherit;"><font style="vertical-align: inherit;">1</font></font>"][/SIZE]
rho_g = 1.225;
mu_g = 1.7894e-05;
E1 = 180;
E2 = 1.8;
cta = C_UDMI(cell, t, 0);
cgmb = 1 - void_g * cta;
a = (1 - cta) / cgmb;
b = void_g * cta;
Ags = 180 * pow(cgmb, 2)*pow(a, 0.66667) / b / b / pow(0.0016, 2);
Bgs = 1.8 * cgmb*pow(a, 0.33333) / b / b / 0.0016;
source = -(Ags * mu_g*y_vel_g + Bgs * rho_g*fabs(y_vel_g)*y_vel_g) - Fvol;
dS[eqn] = -0.8* (Ags * mu_g + 2 * Bgs * rho_g*y_vel_g );
return source;
wuming is offline   Reply With Quote

Old   January 17, 2019, 07:45
Default
  #2
New Member
 
wuming
Join Date: Nov 2018
Posts: 26
Rep Power: 7
wuming is on a distinguished road
please help me
wuming is offline   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
UDF for Sorption in Species Transport through Porous Medium Kosch Fluent UDF and Scheme Programming 6 October 21, 2020 17:46
multiphase cylindrical flow through porous medium; BC adrianabm OpenFOAM Running, Solving & CFD 1 September 7, 2015 10:37
modeling 3D porous medium cecilia_xiao559 FLUENT 0 May 25, 2015 14:14
Cell zone for porous medium eallymehr FLUENT 0 January 31, 2015 01:48
Setting up a porous medium Omerta CFX 16 January 28, 2012 17:09


All times are GMT -4. The time now is 02:52.