CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

DPM - UDF for fluctuating bubble size

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

LinkBack Thread Tools Search this Thread Display Modes
Old   April 18, 2006, 11:06
Default DPM - UDF for fluctuating bubble size
Jaroslav Kotara
Posts: n/a
I am concerning with DPM model for the gas bubble tracking in viscous liquid. I use UDF to simulate fluctuating bubble diameter with respect to the temperature and pressure of the continuum. I have an empirical formula for the bubble diameter but probably have problem to set this in the DEFINE_DPM_LAW(name, p, ci).

My UDF causes fatal error and doesn't work.

DEFINE_DPM_LAW(bubble_size,p,ci) {

Thread *t;

cell_t c;

real A;

real T = C_T(c,t);

real ro = C_R(c,t);

real eta = C_MU_L(c,t);

/* compute variable A*/

A = 0.382 * 8.31434 * T * pow(9.81,(1/3)) * pow(ro,(1/3)) * pow(eta,(1/3));

/* compute new particle diameter */

P_DIAM(p) = P_DIAM0(p) + A/101325/44*(1.4e-9 - 1.04e-14 * 101325) * P_TIME(p);


Does anyone know where is the problem? This UDF doesn't work yet and causes fatal error while DPM is beeing calculated in the 10th flow iteration.

  Reply With Quote

Old   April 19, 2006, 09:02
Default Re: DPM - UDF for fluctuating bubble size
Posts: n/a
you should define the varialbe in the same line ,may be this is problem, fluent documentation said if you don't do like this ,it may some problem. I suggest you ,first,only calculate A,if there is no problem ,then calculate P_DIAM(p)=P_TIME(p) or P_DIAM(p)=A/101325/44*(1.4e-9 - 1.04e-14 * 101325) * P_TIME(p),last ,assume P_DIAM0(p) is a constant ,then try, you will find the problem.
  Reply With Quote


Thread Tools Search this Thread
Search this Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
DPM model, droplet size distribution in atomizer model davidx FLUENT 3 May 5, 2017 03:18
Convert VOF droplet to DPM particle via UDF TedBrogan Fluent UDF and Scheme Programming 1 May 1, 2012 11:01
Hooking a DPM Particle Heat and Mass Transfer UDF to FLUENT subhankar_bhandari FLUENT 0 August 19, 2010 03:01
Hooking a DPM Particle Heat and Mass Transfer UDF to FLUENT subhankar_bhandari Main CFD Forum 0 August 19, 2010 03:01
udf of DPM questions! winnie FLUENT 6 April 30, 2003 02:52

All times are GMT -4. The time now is 06:05.