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

Pls help UDF about particle size (Rosin-Rammler)

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By ch3coohminh
  • 1 Post By ghost82
  • 2 Post By ghost82

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 21, 2011, 17:50
Post Pls help UDF about particle size (Rosin-Rammler)
  #1
New Member
 
minh nguyen van
Join Date: Nov 2011
Posts: 5
Rep Power: 15
ch3coohminh is on a distinguished road
Hi every body
I have a code about particle size distribution (Rosin-Ramsler)
D = d_tb. (-ln(1- Y ))^(1/n)
PHP Code:
#include "udf.h" 
#include "math.h"
DEFINE_PROPERTY(particle_dia,cell,thread
{         
        
real n=3//size distribution constant
        
real d_tb=0.0000040//d_tb is the mean particle size
        
real d// particle diameter
        
real y
        
real v;
        
real e=2.71828182845904523536;
        
real temp1,temp2;
        
real dens;
        
C_VOLUME(cell,thread);  // get info about volume of cell
        
dens C_R(cell,thread); //get ifo about density of cell
        
y=v*dens//caculate mass fraction of cell
        
temp1=(log(-(1-y)))/log(e);
        
temp2=exp ((1/n)*log(temp1));
        
d=d_tb*temp2;
    

   return 
d;
  } 
but when i run this code
Error: This is a post-processing only executable.
Error Object: #f
please help me or give a suggest
wadekar likes this.
ch3coohminh is offline   Reply With Quote

Old   November 22, 2011, 04:18
Default
  #2
Senior Member
 
ghost82's Avatar
 
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27
ghost82 will become famous soon enough
Why don't you use the built-in fluent Rosin-Rammler capability?You can specify this distribution without a special udf.

Daniele
DungPham likes this.
ghost82 is offline   Reply With Quote

Old   November 23, 2011, 06:15
Default
  #3
New Member
 
minh nguyen van
Join Date: Nov 2011
Posts: 5
Rep Power: 15
ch3coohminh is on a distinguished road
Quote:
Originally Posted by ghost82 View Post
Why don't you use the built-in fluent Rosin-Rammler capability?You can specify this distribution without a special udf.

Daniele
thanks ghost82 for suggest.Can you tell me more details about using built in ROSIN RAMMLER distribution ?
I have not found other way specify this distribution without udf.
thank again so much.
ch3coohminh is offline   Reply With Quote

Old   November 25, 2011, 04:23
Default
  #4
Senior Member
 
ghost82's Avatar
 
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27
ghost82 will become famous soon enough
Quote:
Originally Posted by ch3coohminh View Post
thanks ghost82 for suggest.Can you tell me more details about using built in ROSIN RAMMLER distribution ?
I have not found other way specify this distribution without udf.
thank again so much.
Sure!
You have to use the dpm (discrete phase model); for example for a steady state simulation, first you solve your problem without the dpm; after you reach the solution, you can enable the dpm model (in the same window where you define turbulence/laminar model, energy equation, etc.); after you enable the dpm, you have to set the max number of time steps (this could be changed if after the particles tracking you have an important amount of "incomplete" particles - incomplete means that particles are still in your domain); you have to define injection(s) of particles (click on injections..) and there you can chose to inject a single, a group, or a surface etc. of particles; you define the type of particles (for example inert), and in the same window you will see the possibility to change the diameter of particles from "constant" to "Rosin-Rammler" or to "Rosin-Rammler-logaritmic".
If you choose Rosin-Rammler you have to input some parameters, based on your particle distribution: see here for the how calculate these parameters:
Code:
https://www.sharcnet.ca/Software/Fluent12/html/ug/node692.htm
You may want to enable the stochastic tracking and write the number of stochastic tries: for example, if you set the number of stochastic tries to 2 this means that 2 particles will be tracked in their possible paths, starting from the same point.
You can also choose if your particles interact with the continuous phase or not and after how many iteration the particles interact.

After you define the injection you have to modify the particle material in the material panel.
Then you can modify boundary condition: for example you can set the wall to reflect the particles, and the outlet to let escape the particles.

At the end, to view the particle path you have to set in the graphics and animation window the particle track, choose the release injection point/surface and wait for the result.

Hope this help,

Daniele
DungPham and soheil_r7 like this.
ghost82 is offline   Reply With Quote

Old   December 20, 2011, 00:46
Default Varying PSD
  #5
New Member
 
Carlos
Join Date: Dec 2011
Posts: 14
Rep Power: 14
chmurillor is on a distinguished road
Hi guys

Do you know any UDF to vary the particle size distribution? I have already included a DPM model and have a solid particles dispersion in air. I want to consider collisions to aggregate and fragment particles during dispersion.

Thanks for suggestions

Carlos
chmurillor is offline   Reply With Quote

Old   December 23, 2011, 22:36
Default
  #6
New Member
 
minh nguyen van
Join Date: Nov 2011
Posts: 5
Rep Power: 15
ch3coohminh is on a distinguished road
Quote:
Originally Posted by chmurillor View Post
Hi guys

Do you know any UDF to vary the particle size distribution? I have already included a DPM model and have a solid particles dispersion in air. I want to consider collisions to aggregate and fragment particles during dispersion.

Thanks for suggestions

Carlos
hi
Please tell more details .
ch3coohminh is offline   Reply With Quote

Old   December 24, 2011, 12:44
Default
  #7
New Member
 
Carlos
Join Date: Dec 2011
Posts: 14
Rep Power: 14
chmurillor is on a distinguished road
The UDF should consider the velocity and position of the particle and the velocity and stresses of the fluid near the particles.

I'd like to know how to invoke these parameters.

Thanks in advance

Best regards

Carlos
chmurillor is offline   Reply With Quote

Old   December 28, 2011, 11:09
Default
  #8
New Member
 
minh nguyen van
Join Date: Nov 2011
Posts: 5
Rep Power: 15
ch3coohminh is on a distinguished road
Quote:
Originally Posted by chmurillor View Post
The UDF should consider the velocity and position of the particle and the velocity and stresses of the fluid near the particles.

I'd like to know how to invoke these parameters.

Thanks in advance

Best regards

Carlos
please contact me by email ch3coohminh@gmail.com
We will disscus about this problem.
Minh Van Nguyen
ch3coohminh is offline   Reply With Quote

Old   January 22, 2016, 10:47
Default
  #9
Member
 
souria
Join Date: Mar 2013
Location: Nancy
Posts: 66
Rep Power: 13
souria is on a distinguished road
Hey, I know its an old post.
Is anyone can tell me how to introduce a log-normal distribution or a modified Rosin-Rammler in Fluent. Because I had adjusted the distribution law to my own experimental data and I get a modified Rosin-Rammler (and or a log-Normal) which correspond exactly to my data.


Thanks for help

Souria
souria is offline   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
Problem with a simple UDF to calculate cell-averaged particle values kmayank FLUENT 1 January 18, 2011 02:40
UDF for Particle reaction and DPM_Property saifulraju ANSYS 0 September 22, 2010 08:24
Particle Tacking and UDF Häwimeddel FLUENT 1 September 29, 2009 10:56
udf about particle concentration--who can help me? zhaoh FLUENT 1 January 17, 2007 12:46
Particle size distribution-concentration contours Umesh Shah FLUENT 3 July 22, 2003 15:46


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