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

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 8, 2004, 06:49
Default If it's right to use this UDF in DPM calculation?
  #1
welch
Guest
 
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;

else

bforce=0.0;

/* 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

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
How can I stop the calculation in UDF Seyoung Oh Fluent UDF and Scheme Programming 1 September 24, 2013 08: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 02:18
How to run DPM using UDF williams FLUENT 0 May 29, 2007 16:29
UDF DPM injection M.A. Rakib FLUENT 0 June 13, 2000 09:28


All times are GMT -4. The time now is 14:40.