CFD Online Logo CFD Online URL
Home > Forums > FLUENT

If it's right to use this UDF in DPM calculation?

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   May 8, 2004, 05:49
Default If it's right to use this UDF in DPM calculation?
Posts: n/a
Hi,all when i calculate the gas-liquid two phase flow, i use the following UDF to impose the body forces on particles

#include "udf.h"

#define r 0.01 /* particle diameter*/ #define pi 3.14 /* pi */ #define dens 2.1*1000 /* bath density*/ #define g 9.8 /*gravity acceleration*/

DEFINE_DPM_BODY_FORCE(particle_body_force, p, i) {

real bforce;

if(i==0) bforce=0;

else if(i==1) bforce=4*3.14*(P_DIAM(p)/2)*(P_DIAM(p)/2)*(P_DIAM(p)/2)*dens*g/3;



/* an acceleration should be returned */

return (bforce/P_MASS(p)); }

obtain the bubble volume (4*3.14*(P_DIAM(p)/2)*(P_DIAM(p)/2)*(P_DIAM(p)/2)/3) at first,then multiply the gas density(dens) and gravity acceleration(g) to get the buoyant force.

but the result was not good, the velocity of the fluid flow is larger than the water modelling, and the turbulent energy and dissipation rate were in the order of 10e+0 and 10e+2 respectively; the residual of the mass, velocity and k,e were in the order of 10e-4.

I don't know if I have used the UDF correctly and how to reduce the reidual.would you please help me out the trouble?

Any help from you would be appreciated.
  Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I stop the calculation in UDF Seyoung Oh Fluent UDF and Scheme Programming 1 September 24, 2013 07:44
Droplet Collision Efficiency Calculation using DPM Virk FLUENT 0 January 22, 2010 10:37
DPM: using UDF for creating and deleting Particles Markus Alzon FLUENT 0 July 4, 2007 01:18
How to run DPM using UDF williams FLUENT 0 May 29, 2007 15:29
UDF DPM injection M.A. Rakib FLUENT 0 June 13, 2000 08:28

All times are GMT -4. The time now is 00:01.