CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   WenYu Define_DPM_Drag (https://www.cfd-online.com/Forums/fluent-udf/213757-wenyu-define_dpm_drag.html)

blerli_91 January 8, 2019 04:28

WenYu Define_DPM_Drag
 
Dear Forum,


For future projects I want to implement alternative Drag laws for the DDPM model. For getting experience in UDF programming (I am quite new to the topic) I am trying to recreate the Fluent Build-In Drag law by Wen and Yu. I have a 1D test case for comparison of the original drag law and my UDF. For comparison I am using a DPM-Sample at the Outlet for a patched Flow-Field.
According to UDF Manual the Define_DPM_Drag should return an expression equal to: \frac{18 Cd Re }{24} . First I tried to directly insert the Wen-Yu Cd given in the Theory Guide into the expression:

C_D = \frac{24}{\alpha_g Re_s} (1 + 0.15 (\alpha_g Re_s)^{0.687})


However, I was not able to recreate the results of the original Drag Law. So I guess I will need another formulation for Cd? Maybe someone has experience with that? I am not sure which kind of expression I should use for : \frac{18 C_D Re }{24} in case of Wen-Yu.
The code I was using.:

Code:

#include "udf.h"

#include "dpm.h"

DEFINE_DPM_DRAG(particle_drag_force,Re,tp)

{ real drag_force, void_s,void_g;

 cell_t cell; Thread *thread_s, *mix_thread; 

cell=P_CELL(tp);
 
 mix_thread=P_CELL_THREAD(tp); 

thread_s = THREAD_SUB_THREAD(mix_thread,1);

void_s = C_VOF(cell, thread_s);  void_g =1-void_s ;
 //drag_force = 18.0 * pow(void_g,-2.65) * (1 + 0.15 * pow(void_g * Re,0.687))/void_g ;
 
drag_force = 18.0 * (1 + 0.15 * pow(void_g * Re,0.687))/void_g ;
return
(drag_force); }

Thank You and Best Regards

blerli_91 January 10, 2019 08:56

Looks like I found the problem here,


The Formulation ANSYS offers for the WenYu model in the Theory Guide is not complete.

Looks like Fluent is setting C_D = 0.43245 for particle Reynolds numbers > 1000 (Similar like for the Gidaspow model with C_D = 0.44 for Rep > 1000).

As far as I know this is not included in the original WenYu Formulation?



best regards

filippo February 19, 2019 18:35

Hi Blerli,

I have your same problem. Have you managed to solve it? Even if I set a constant CD, I still don't get the same results of the Fluent Wen-Yu model.

Thanks and best regards

filippo April 8, 2019 19:42

Hi,

I'm writing this in case someone is dealing with the same problem.

We were getting the wrong result because we were missing an alpha_g. The correct formula to get the drag force from the gas-solid exchange coefficient and viceversa is:

alpha_g*alpha_g*ro_p*F_D=K_pg*(Ug_Up) (alpha_g*ro_p comes from the assumption that n_p*m_p=alpha_g*ro_p in each cell)

So that finally the value that must be returned by the UDF is:

drag_force = 18.0 * pow(void_g,-3.65) * (1 + 0.15 * pow(void_g * Re,0.687))

I still get vaguely different results, but at least now they are comparable to the Fluent Wen-Yu model.

Best regards,
Filippo

taha91_1@hotmail.com April 29, 2019 07:01

Quote:

Originally Posted by filippo (Post 730223)
alpha_g*alpha_g*ro_p*F_D=K_pg*(Ug_Up) (alpha_g*ro_p comes from the assumption that n_p*m_p=alpha_g*ro_p in each cell)

I do not understand how n_p*m_p=alpha_g*ro_p, left side has units of mass while right side has units of density.

filippo April 29, 2019 19:24

Quote:

Originally Posted by taha91_1@hotmail.com (Post 732109)
I do not understand how n_p*m_p=alpha_g*ro_p, left side has units of mass while right side has units of density.

n_p is the number of particles per unit volume, so 1/m^3


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