Assingnment No. 9 - Jupyter Notebook
Assingnment No. 9 - Jupyter Notebook
9 - Jupyter Notebook
Assingnment No. 9
Application of python for Solid Waste Engineering (Determine the settling velocity of suspended solids)
Problem statement: Write a python code to determine, settling velocity of suspended solids. Depending
upon the diameter (d in mm) of the particle, the formulae's for settling velocity are:
In [1]:
import math
SG=float(input("specific gravity of particle : "))
D=float(input("Diameter of particle : "))
### STANDARD VALUE OF CONSTANT
g=9.8 ##(acceleration of gravity in m2/s)
p=1000 ##(mass density of the water in kg/m3)
u=0.0001 ##(dyanamic viscosity of the water in pascal.second )
# mass desnsity of the give particle
p1=SG*p
if D<=0.1 :
Vs1=(9/18)*((p1-p)/u)*D**2
print("settling velocity of suspended solids : " , round(Vs1,2))
elif D>1 :
Vs2=math.sqrt(3.33*g*((p1-p)/p)*D)
print("settling velocity of suspended solids : " , round(Vs2,2))
else :
#Reynold’s Number
R=((p*Vs4*D)/u)
# drag coefficient
Cd=(24/R)+(3/math.sqrt(R))+0.34
In [ ]: