0% found this document useful (0 votes)
33 views2 pages

Assingnment No. 9 - Jupyter Notebook

Uploaded by

Soham Mhetre
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views2 pages

Assingnment No. 9 - Jupyter Notebook

Uploaded by

Soham Mhetre
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

15/10/24 , 11:39AM Assingnment No.

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:

1. Diameter upto 0.1mm, follow Stoke's law (Laminar flow Formula):


2. Diameter ranging from 0.1mm to 1mm, follow Newton's law (Trasition flow Formula):
3. Diameter ranging greater than 1mm, follow Newton's law (Turbulent flow Formula):

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 :

T=float(input("Enter Temperature : "))


# approximate settling velocity
Vs4=418*(SG-1)*D**2*((3*T+70)/100)

#Reynold’s Number
R=((p*Vs4*D)/u)

# drag coefficient
Cd=(24/R)+(3/math.sqrt(R))+0.34

# Trasition flow Formula)


Vs3=math.sqrt((4/3)*(g/Cd)*((p1-p)/p)*D)

print ("STANDARD VALUE OF CONSTANT")

print("settling velocity of suspended solids : " , round(Vs3,2))

specific gravity of particle : 2.67


Diameter of particle : 0.004
settling velocity of suspended solids : 133.6

localhost:8888/notebooks/Desktop/Mhetre Rohan (401C038) /Assignment No. - 9.ipynb 1/2


9/14/23, 12:03 AM Assingnment No. 9 - Jupyter Notebook

In [ ]:

localhost:8888/notebooks/Desktop/Mhetre Rohan (401C038) /Assingnment No. 9.ipynb 2/2

You might also like