Documente Academic
Documente Profesional
Documente Cultură
# PART A
moment = num/den
return moment
1
# Print Mean, Standard Deviation, Skewness, and Kurtosis for
# Particle Density
print('Question 2:')
print()
print('PART A:')
print()
print('i) Particle Density:')
print(' The Mean is: %.15f mg/mm^3 ' %Mean_pd)
print(' The Standard Deviation is: %.14f mg/mm^3 ' %Std_pd)
print(' The Skewness is: %.15f ' %Skewness_pd)
print(' The Kurtosis is: %.14f ' %Kurtosis_pd)
print()
plt.figure(1)
plt.hist(np.log(Density),bins);
plt.title('Particle Density Distribution');
plt.ylabel('Frequency');
plt.xlabel('log(Particle Density)');
plt.show();
plt.figure(2)
2
plt.hist(Dv,bins);
plt.title('Equivalent Volume Diameter Distribution');
plt.ylabel('Frequency');
plt.xlabel('Equivalent Volume Diameter');
plt.show();
for i in range(len(FD1)):
FD_max[i] = max(FD1[i],FD2[i])
FD_min[i] = min(FD1[i],FD2[i])
FD_L = FD_max
plt.figure(3)
plt.hist(FD_L,bins);
plt.title('Large Feret Diameter Distribution');
plt.ylabel('Frequency');
plt.xlabel('Large Feret Diameter');
plt.show();
3
Mean_ar = moments(AR,w)
Variance_ar = moments(AR,w,y0=Mean_ar,m=2)
Std_ar = np.sqrt(Variance_ar)
Skewness_ar = moments(AR,w,y0=Mean_ar,m=3)/Std_ar**3
Kurtosis_ar = moments(AR,w,y0=Mean_ar,m=4)/Std_ar**4
plt.figure(4)
plt.hist(AR,bins);
plt.title('Particle Aspect Ratio Distribution');
plt.ylabel('Frequency');
plt.xlabel('Particle Aspect Ratio');
plt.show();
# PART B
# Calculate D[4,3]
w_v = Volume
4
D_43 = moments(Dv,w_v)
print('ii) D[4,3]:')
print(' The D[4,3] is: %.17f mm' %D_43)
print()
print(' The Debrouker Mean Diameter, D[4,3] is used in particle distributions')
print(' because it reflects the size of the particles that form the bulk of')
print(' the sample volume. The D[4,3] is useful when the goal of the project')
print(' is to monitor the size of the coarse particles that make up the bulk')
print(' of the sample')
print()
# Calculate Median
D_50 = np.percentile(FD_min,50)
print('iii) 50th Percentile - Median:')
print(' The Median is: %.18f mm ' %D_50)
print()
print(' The Median is used when wanting to separate out the smaller or larger')
print(' half of a distribution of particles. Since the Median is directly in')
print(' the middle of the sample size the correct screen size can be selected')
print(' based on its value. This would allow for the sample to be screened')
print(' correctly')
print()
Question 2:
PART A:
i) Particle Density:
The Mean is: 58.906775310830561 mg/mmˆ3
The Standard Deviation is: 472.80851289028720 mg/mmˆ3
The Skewness is: 20.766836073542905
The Kurtosis is: 510.80982540947474
5
ii) Equivalent Volume Diameter:
The Mean is: 0.30559675699354327 mm
The Standard Deviation is: 0.15667567141572547 mm
The Skewness is: 1.3710714999368980
The Kurtosis is: 5.8219838388329608
6
iii) Large Feret Diameter:
The Mean is: 0.57105432094587605 mm
The Standard Deviation is: 0.31207533565872692 mm
The Skewness is: 2.2133938299183855
The Kurtosis is: 13.559023806204134
7
iv) Particle Aspect Ratio:
The Mean is: 0.26498199022201135
The Standard Deviation is: 0.22111885607863277
The Skewness is: 1.1776314019540022
The Kurtosis is: 3.7668709878765205
8
PART B:
ii) D[4,3]:
The D[4,3] is: 0.57584809312927210 mm
9
The Median is used when wanting to separate out the smaller or larger
half of a distribution of particles. Since the Median is directly in
the middle of the sample size the correct screen size can be selected
based on its value. This would allow for the sample to be screened
correctly
The 10th and 90th percentile is used to determine if there are any
major changes in the main particle size due to disturbances. The
10th and 90th percentile creates a range for acceptable particle
sizes. When there are changes in the extremes of the distribution
the change could be due to fines or agglomerates being present in
the system
In [ ]:
10