CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

Lognormal Distribution for Particle Size in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Rate this Entry

Lognormal Distribution for Particle Size in OpenFOAM

Posted May 1, 2018 at 12:13 by Mehar

This is for future reference, if anyone wants to use lognormal particle distribution in OpenFoam.
1) Generate PDF from following formula


Here mu and sigma are the geometric mean and standard deviation of the particle size distribution
Here is an example plot of the lognormal distribution with mean 1 and standard deviations of 1.8, and 3. You can first re-create lognormal distribution with these parameters and compare with the one in the fig, to be sure that you are doing it write.


you can use programs like MS excel or matlab to generate data from above distribution
2) Select general distribution in the cloud properties dictionary in constant directory, and copy and paste your generated values under distribution,
the first column is particle size and the second is the probability.
I hope this will help you.
Thank you.
PS:
I have attached an excel file that I used to generate lognormal distribution for my work. I have also attached the a sample kinematicCloudProperties dict.

logNormal Pdf.xlsx

kinematicCloudProperties.txt
Posted in OpenFoam
Views 2897 Comments 1 Edit Tags Email Blog Entry
« Prev     Main     Next »
Total Comments 1

Comments

  1. Old Comment
    Thanks for sharing this!
    permalink
    Posted March 22, 2021 at 10:16 by Nomis Nomis is offline
 

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