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

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 27, 2010, 06: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: 16
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, 07:28
Default
  #2
Member
 
majid kamyab
Join Date: Jul 2014
Posts: 32
Rep Power: 12
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, 11:23
Default
  #3
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
"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


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
[Other] refineWallLayer Error Yuby OpenFOAM Meshing & Mesh Conversion 2 November 11, 2021 12:04
[snappyHexMesh] How to define to right point for locationInMesh Mirage12 OpenFOAM Meshing & Mesh Conversion 7 March 13, 2016 15:07
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 18:36


All times are GMT -4. The time now is 16:45.