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
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
Total Comments 1
Comments
-
Thanks for sharing this!
Posted March 22, 2021 at 10:16 by Nomis