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

Modification on Ranz-Marshall Model for granular flow

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 28, 2018, 08:28
Default Modification on Ranz-Marshall Model for granular flow
  #1
Member
 
Emerson
Join Date: May 2018
Posts: 35
Rep Power: 7
souza.emer is on a distinguished road
Hello all,

I'm new with Fluent and UDF.
I want to make a modification on the Ranz-Marshall Model using a base UDF given in the documentation. This modification is simply to change the constants and add a Gamma expression.
The purpose is to test if this function will help me to heat a granular phase with a gas phase entering in a domain at 2373 K (blast furnace tuyere process)
My doubt is: this UDF that I wrote is really taking the properties of the granular secondary phase (Eulerian-Eulerian)? I'm already using the UDF and fluent successfully read it.

Here are the subroutines:

--------------------------

FLUENT DOCUMENTATION Ranz-Marshall Model

#include "udf.h"
#define PR_NUMBER(cp,mu,k) ((cp)*(mu)/(k))
#define IP_HEAT_COEFF(vof,k,nu,d) ((vof)*6.*(k)*(Nu)/(d)/(d))
static real heat_ranz_marshall(cell_t c, Thread *ti, Thread *tj)
{
real h;
real d = C_PHASE_DIAMETER(c,tj);
real k = C_K_L(c,ti);
real NV_VEC(v), vel, Re, Pr, Nu;
NV_DD(v,=,C_U(c,tj),C_V(c,tj),C_W(c,tj),-,C_U(c,ti),C_V(c,ti),C_W(c,ti));
vel = NV_MAG(v);
Re = RE_NUMBER(C_R(c,ti),vel,d,C_MU_L(c,ti));
Pr = PR_NUMBER (C_CP(c,ti),C_MU_L(c,ti),k);
Nu = 2. + 0.6*sqrt(Re)*pow(Pr,1./3.);
h = IP_HEAT_COEFF(C_VOF(c,tj),k,Nu,d);
return h;
}
DEFINE_EXCHANGE_PROPERTY(heat_udf, c, t, i, j)
{
Thread *ti = THREAD_SUB_THREAD(t,i);
Thread *tj = THREAD_SUB_THREAD(t,j);
real val;
val = heat_ranz_marshall(c,ti, tj);
return val;
}

------------------

Ranz-Marshall Model MODIFIED

#include "udf.h"
#include "math.h"

#define PR_NUMBER(cp,mu,k) ((cp)*(mu)/(k))
#define IP_HEAT_COEFF(vof,k,nu,d) ((vof)*6.*(k)*(Nu)/(d)/(d))

static real heat_ranz_marshall(cell_t c, Thread *ti, Thread *tj) /* i -- gas phase; j -- granular-phase */
{
real gamma; /*paper shen*/
real t_sec = C_T(c, tj); /*secondary phase (coke) temperature*/
gamma = 0.2 - 0.18*MIN(1.0, MAX(0, (t_sec - 1473.) / 200.));

real h;
real d = C_PHASE_DIAMETER(c, tj); /*secondary phase (coke) diameter*/
real k = C_K_L(c, ti);
real NV_VEC(v), vel, Re, Pr, Nu;
NV_DD(v,=, C_U(c, tj), C_V(c, tj), C_W(c, tj), -, C_U(c, ti), C_V(c, ti), C_W(c, ti));
vel = NV_MAG(v);
Re = RE_NUMBER(C_R(c, ti), vel, d, C_MU_L(c, ti));
Pr = PR_NUMBER(C_CP(c, ti), C_MU_L(c, ti), k);
Nu = 2. + 0.6*pow(Pr,0.333)*pow(9.*Re,0.5);
h = IP_HEAT_COEFF(C_VOF(c, tj), k, Nu, d);
h = gamma*h;
return h;
}
DEFINE_EXCHANGE_PROPERTY(heat_udf, c, t, i, j)
{
Thread *ti = THREAD_SUB_THREAD(t, i);
Thread *tj = THREAD_SUB_THREAD(t, j);
real val;
val = heat_ranz_marshall(c, ti, tj);
return val;
}

---------------------------

Can anyone help with ANY suggestions? If need more details, just ask.
Sorry for my bad English.

PS: the formulas are attached

Paper: Three-Dimensional Modeling of Flow and Thermochemical
Behavior in a Blast Furnace (YANSONG Shen, BAOYU GUO, SHENG CHEW, PETER AUSTIN, and AIBING YU)

Results so far: I can't heat my granular phase with my gas (Figures attached)
Attached Images
File Type: png paper formula.PNG (73.9 KB, 11 views)
File Type: png same formula at a book.PNG (75.6 KB, 7 views)
File Type: jpg gas temperature.jpg (65.6 KB, 14 views)
File Type: jpg granular phase temperature.jpg (54.0 KB, 12 views)

Last edited by souza.emer; August 28, 2018 at 08:37. Reason: Forget the results with the previous try
souza.emer 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
CFD analaysis of Pelton turbine amodpanthee CFX 31 April 19, 2018 18:02
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
Enabling Open Channel Flow Sub-Model in Mixture model cod213 FLUENT 0 January 10, 2017 13:40
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 01:27
Coupling Radiation with Flow model tongx051 FLUENT 0 October 22, 2011 16:03


All times are GMT -4. The time now is 09:15.