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

bubbles diameter: UDF function that defines the particles growth as they move along x

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 27, 2010, 05:26
Default bubbles diameter: UDF function that defines the particles growth as they move along x
  #1
New Member
 
fabien tagada
Join Date: Oct 2010
Posts: 5
Rep Power: 6
tagada is on a distinguished road
I try to write an UDF function that defines the particles growth as they move along x axis (nucleation). i'm working with an axisymetric case and an eulerian model, the particles (bubbles) are injected in the x direction.
Ther is two phases, the bubbles are injected in the BC xith the velocity inlet.

This UDF doesn't work:

#include "udf.h"

#define puissance 1./3

DEFINE_PROPERTY(bubble_diameter, c, tc)
{

real x[ND_ND];

C_CENTROID(x,c,tc);

x[1] = P_POS(p)[1];

real cte1;

cte1 = (0.015 / 2.0 * 0.7 * 1000.0 * 9.81) * 0.000300;

P_DIAM(p) = cte1;

return 6 * pow(cte1 * x, puissance);
}

I need some help, thank you.
tagada is offline   Reply With Quote

Old   June 11, 2015, 06:28
Default
  #2
Member
 
majid kamyab
Join Date: Jul 2014
Posts: 31
Rep Power: 3
majid_kamyab is on a distinguished road
what exactly do you mean by not working
are you using population balance model?
majid_kamyab is offline   Reply With Quote

Old   June 15, 2015, 10:23
Default
  #3
Senior Member
 
Join Date: Nov 2013
Posts: 677
Rep Power: 9
pakk is on a distinguished road
"This UDF doesn't work" is very little information. Be more specific.
pakk is offline   Reply With Quote

Reply

Tags
diameter, particles, udf inlet boundary

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
refineWallLayer Error Yuby OpenFOAM Meshing & Mesh Conversion 0 April 27, 2015 18:25
How to define to right point for locationInMesh Mirage12 OpenFOAM Native Meshers: snappyHexMesh and Others 4 April 10, 2014 10:12
Can I change the diameter and density of Particles depend on the pressure using UDF Yanlong Li Fluent UDF and Scheme Programming 2 January 13, 2013 11:46
Droplet Evaporation Christian Main CFD Forum 2 February 27, 2007 07:27
Udf about the distribution of the diameter as FLUENT 7 April 3, 2005 17:36


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