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

Pls help UDF about particle size (Rosin-Rammler)

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

Like Tree2Likes
  • 1 Post By ghost82
  • 1 Post By ghost82

Reply
 
LinkBack Thread Tools 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: 5
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
ch3coohminh is offline   Reply With Quote

Old   November 22, 2011, 04:18
Default
  #2
Senior Member
 
ghost82's Avatar
 
Daniele
Join Date: Oct 2010
Location: Italy
Posts: 910
Rep Power: 15
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: 5
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
 
Daniele
Join Date: Oct 2010
Location: Italy
Posts: 910
Rep Power: 15
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 likes 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: 13
Rep Power: 5
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: 5
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: 13
Rep Power: 5
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: 5
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

Reply

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
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 07:24
Particle Tacking and UDF Häwimeddel FLUENT 1 September 29, 2009 09: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 14:46


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